@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
/* One shared palette for navigation, controls, dialogs and study states. */
:root{
  font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif;
  font-synthesis:none;
  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --primary-strong:#1e40af;
  --primary-soft:#eff6ff;
  --primary-soft-hover:#e8f1ff;
  --primary-tint:#dbeafe;
  --primary-border:#bfdbfe;
  --text-primary:#172b4d;
  --text-secondary:#475569;
  --text-muted:#5f6f85;
  --text-inverse:#ffffff;
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --canvas:#f4f7fc;
  --border:#e2e8f0;
  --border-strong:#cbd5e1;
  --shadow-color:#172b4d;
  --focus-ring:0 0 0 3px #2563eb26;
  --ink:var(--text-primary);
  --muted:var(--text-muted);
  --line:var(--border);
  color:var(--text-primary);
  background:var(--canvas);
  accent-color:var(--primary);
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--primary);outline-offset:4px}a{text-decoration:none;color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:var(--primary);color:var(--text-muted);padding:37px 23px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:white;margin:0 9px 58px}.brand-icon{width:42px;height:42px;display:grid;place-items:center;background:var(--primary);border-radius:13px;color:var(--text-primary);font-size:24px;font-weight:800;transform:rotate(-5deg)}.brand strong{font-size:25px;letter-spacing:3px;line-height:1.1}.brand strong span{display:block;font-size:10px;letter-spacing:4px;font-weight:400;margin-top:8px;color:var(--text-muted)}.nav-label{font-size:12px;letter-spacing:2px;color:var(--text-muted);margin:0 17px 18px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:15px 16px;margin-bottom:9px;border-radius:8px;text-align:left;font-size:14px}.nav-item>span{font-size:21px;line-height:1}.nav-item.active{background:var(--primary);color:var(--text-primary);font-weight:600}.nav-item:not(.active):hover{background:var(--primary)}.nav-item small{margin-left:auto;font-size:10px;border:1px solid var(--primary);padding:1px 4px;border-radius:3px}.nav-item b{margin-left:auto;font-size:12px;font-weight:400}.sidebar-note{margin-top:auto;padding:22px 14px 32px}.note-symbol{font-family:Georgia,serif;color:var(--primary);font-size:55px;height:42px;display:block}.sidebar-note h3{color:var(--text-muted);font-size:18px;line-height:1.8;font-weight:500}.sidebar-note p{font-size:12px;line-height:1.9;color:var(--text-muted)}.side-share{font-size:12px;color:var(--primary);padding:12px 0}.side-share span{margin-left:20px}.sidebar-bottom{border-top:1px solid var(--border-strong);padding:24px 4px 0;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text-muted)}.avatar{border:1px solid var(--border-strong);border-radius:50%;padding:8px;background:var(--primary);color:var(--primary)}.sidebar-bottom small{display:block;font-size:10px;color:var(--text-muted);margin-top:5px}.online{width:6px;height:6px;border-radius:50%;background:var(--primary);margin-left:auto}.page{margin-left:228px}.topbar{height:82px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 42px}.breadcrumb{font-size:13px;color:var(--text-muted);display:flex;gap:17px}.breadcrumb strong{color:var(--text-secondary);font-weight:500}.top-right{display:flex;gap:24px;align-items:center}.demo-label{font-size:11px;color:var(--text-muted)}.button{border-radius:7px;padding:11px 20px;font-size:13px;font-weight:600}.primary{background:var(--ink);color:var(--text-inverse)}.primary:hover{background:var(--primary)}.button>span{font-size:18px;margin-right:6px}main{max-width:1480px;margin:auto;padding:39px 42px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:31px}.eyebrow{font-size:10px;letter-spacing:2.3px;font-weight:600;color:var(--text-muted)}.page-heading h1{font-size:32px;letter-spacing:-1.3px;margin:12px 0 11px;line-height:1.5;font-weight:700}.page-heading h1 span{position:relative;z-index:0}.page-heading h1 span:after{content:'';position:absolute;background:var(--primary-tint);bottom:2px;height:12px;left:0;right:0;z-index:-1}.page-heading p{font-size:13px;color:var(--text-muted);margin:0}.heading-mark{font-family:Georgia,serif;color:var(--text-muted);font-size:82px;line-height:1;position:relative;margin-right:17px;transform:rotate(-12deg)}.heading-mark span{font-family:sans-serif;font-size:38px;color:var(--primary);position:absolute;right:-16px;bottom:0}.metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.1fr;background:white;border:1px solid var(--line);border-radius:10px;padding:22px 0;margin-bottom:29px}.metrics>div{display:flex;gap:15px;padding:0 23px;align-items:center;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metric-icon{color:var(--text-muted);background:var(--surface-subtle);border:1px solid var(--border);border-radius:11px;display:grid;place-items:center;width:39px;height:39px;font-size:22px}.metrics strong{font-family:Arial,sans-serif;font-size:26px;font-weight:600;letter-spacing:-1px}.metrics strong span{font-size:15px;padding-left:3px}.metrics p{font-size:11px;color:var(--text-muted);margin:5px 0 0}.metric-tip{font-size:10px;color:var(--primary);background:var(--primary-soft);padding:4px 6px;border-radius:4px;margin-left:auto}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px}.search-box{background:white;border:1px solid var(--border);border-radius:8px;height:52px;display:flex;align-items:center;padding:0 17px;gap:11px;box-shadow:0 2px 4px #172b4d03}.search-box>span{font-size:28px;color:var(--text-muted)}.search-box input{min-width:0;width:100%;outline:0;border:0;font-size:13px;color:var(--text-primary);background:none}.search-box input::placeholder{color:var(--text-muted)}.search-box kbd{white-space:nowrap;font-size:10px;border:1px solid var(--border);padding:4px 6px;border-radius:4px;color:var(--text-muted)}.filter-panel{margin-top:15px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:19px 18px 0}.filter-row{display:flex;align-items:flex-start;gap:18px;margin-bottom:15px}.filter-label{font-size:12px;color:var(--text-muted);white-space:nowrap;padding-top:6px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{font-size:12px;padding:6px 10px;border-radius:5px;color:var(--text-muted);white-space:nowrap}.chip.active{background:var(--primary-soft);color:var(--primary-strong);font-weight:600}.chip:hover{background:var(--surface-subtle)}.filter-bottom{border-top:1px dashed var(--border);display:flex;align-items:center;justify-content:space-between;padding:12px 0;color:var(--text-muted);font-size:10px}.filter-bottom button{font-size:10px;color:var(--text-muted)}.list-toolbar{display:flex;align-items:center;justify-content:space-between;margin:23px 0 15px;font-size:11px;color:var(--text-muted)}.tabs{display:flex;gap:25px}.tabs button{font-size:13px;padding:0 0 9px;color:var(--text-muted);border-bottom:2px solid transparent}.tabs button.active{color:var(--text-primary);border-color:var(--primary);font-weight:600}.list-toolbar b{color:var(--text-secondary);font-weight:500}.question-card{background:white;border:1px solid var(--line);border-radius:9px;padding:22px 23px;margin-bottom:13px;transition:transform .2s,border-color .2s}.question-card:hover{border-color:var(--border-strong);transform:translateY(-2px)}.card-top{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-muted)}.company-logo{width:30px;height:30px;background:var(--surface-subtle);border-radius:8px;display:grid;place-items:center;font-size:14px;font-weight:700;flex-shrink:0;letter-spacing:-1px}.card-top strong{font-size:12px;color:var(--text-secondary);font-weight:600}.card-top .role{padding-left:11px;border-left:1px solid var(--border)}.card-top .date{margin-left:auto;font-size:10px}.question-title{padding:0;text-align:left;display:block;font-size:17px;font-weight:600;line-height:1.6;margin:16px 0 9px;letter-spacing:-.3px}.question-title:hover{color:var(--primary-strong)}.card-excerpt{font-size:12px;line-height:1.9;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 17px}.card-footer{display:flex;align-items:center;gap:6px}.tag{font-size:10px;background:var(--surface-subtle);color:var(--text-muted);border-radius:4px;padding:4px 8px}.tag.difficulty{background:#fcf5e6;color:#b29a60}.tag.hard{background:#fbefeb;color:#b88b77}.card-actions{margin-left:auto;display:flex;gap:12px;color:var(--text-muted);font-size:11px}.save-button{font-size:12px;padding:4px}.save-button.saved{color:var(--primary-strong)}.sample-badge{font-size:9px;background:var(--surface-subtle);border:1px solid var(--border);padding:1px 4px;border-radius:3px;color:var(--text-muted)}.share-card{background:var(--primary-tint);border:1px solid var(--primary-border);border-radius:10px;padding:25px 24px;position:relative;overflow:hidden}.small-tag{font-size:8px;letter-spacing:1.3px;color:var(--text-muted)}.share-card h2{font-size:22px;line-height:1.7;font-weight:600;letter-spacing:-.5px;margin:18px 0 12px}.share-card p{font-size:11px;line-height:2;color:var(--text-muted);margin:0 0 22px}.share-card button{background:var(--primary);color:var(--text-muted);width:100%;padding:13px 15px;border-radius:6px;display:flex;justify-content:space-between;font-size:12px}.share-card small{display:block;text-align:center;font-size:9px;color:var(--text-muted);margin-top:12px}.popular{margin-top:23px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:20px}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title h3{font-size:13px;margin:0}.section-title>span{font-size:10px;color:var(--text-muted)}.popular-item{display:flex;align-items:center;width:100%;gap:11px;padding:13px 0;border-bottom:1px solid var(--border);text-align:left}.popular-item:last-child{border-bottom:0;padding-bottom:0}.rank{font-family:Arial,sans-serif;font-size:11px;color:var(--text-muted);width:9px}.popular-item:nth-child(-n+3) .rank{color:var(--primary)}.popular-info{flex:1}.popular-info strong{display:block;font-size:12px;font-weight:500}.popular-info small{display:block;font-size:10px;color:var(--text-muted);margin-top:3px}.popular-item>span:last-child{font-size:11px;color:var(--text-muted)}.notice{padding:23px 7px;color:var(--text-muted)}.notice h3{color:var(--text-muted)}.notice p{font-size:11px;line-height:2;margin-top:13px}.notice-foot{font-size:10px;color:var(--text-muted);margin-top:15px}.load-more{background:var(--surface);border:1px solid var(--line);width:100%;padding:14px;border-radius:8px;color:var(--text-muted);font-size:12px}.load-more span{margin-left:8px}footer{margin-top:32px;display:flex;justify-content:space-between;font-size:10px;color:var(--text-muted);border-top:1px solid var(--border);padding-top:22px}footer i{font-style:normal;margin:0 12px}dialog{width:min(620px,calc(100% - 32px));max-height:90vh;border:1px solid var(--border);border-radius:16px;padding:30px;box-shadow:0 24px 90px #172b4d35;color:var(--text-primary)}dialog::backdrop{background:#172b4d80;backdrop-filter:blur(4px)}.modal-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.modal-heading h2{font-size:24px;line-height:1.6;margin:8px 0}.close{font-size:26px;line-height:1;padding:4px 7px;color:var(--text-muted)}.modal-intro{font-size:12px;line-height:1.8;background:var(--surface-subtle);border-radius:6px;padding:12px 14px;color:var(--text-muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}form label{font-size:13px;font-weight:500;display:block;margin-top:18px}form input,form select,form textarea{display:block;width:100%;border:1px solid var(--border);border-radius:6px;padding:11px 12px;margin-top:8px;color:var(--text-secondary);font-size:13px;background:var(--surface);outline-color:var(--primary)}form textarea{resize:vertical}em{font-style:normal;color:var(--primary)}.form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:24px;font-size:11px;color:var(--text-muted)}.detail-body{white-space:pre-wrap;line-height:2;font-size:15px;margin:24px 0;color:var(--text-muted)}.detail-meta{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.empty{text-align:center;padding:50px 20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--text-muted)}.empty h3{color:var(--text-secondary);font-size:18px}.empty p{font-size:13px;line-height:1.8}.company-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.company-tile{padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:9px;text-align:left}.company-tile .company-logo{width:44px;height:44px;font-size:20px}.company-tile h3{font-size:17px}.company-tile p{font-size:12px;color:var(--text-muted)}#toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);background:var(--primary);color:var(--text-inverse);padding:14px 24px;border-radius:9px;font-size:13px;opacity:0;pointer-events:none;transition:.25s;z-index:10}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1500px){main{padding-top:48px}.question-card{padding:25px}.page-heading h1{font-size:37px}}@media(max-width:1200px){.sidebar{width:196px;padding-left:15px;padding-right:15px}.page{margin-left:196px}main{padding:30px 26px}.topbar{padding:0 26px}.content-grid{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.metric-tip{display:none}.metrics>div{padding:0 15px;gap:10px}.metric-icon{width:32px;height:32px}.share-card{padding:22px 18px}.page-heading h1{font-size:29px}}@media(max-width:1000px){.right-column{display:none}.content-grid{grid-template-columns:1fr}.metrics>div{padding:0 12px}.metric-icon{display:none}.demo-label{font-size:10px}.sidebar{width:180px}.page{margin-left:180px}}@media(max-width:700px){.sidebar{position:static;width:auto;height:auto;padding:16px 18px;flex-direction:row;align-items:center;justify-content:space-between}.brand{margin:0;gap:9px}.brand-icon{width:33px;height:33px;font-size:19px}.brand strong{font-size:20px}.brand strong span{display:none}.nav-label,.sidebar-note,.sidebar-bottom{display:none}nav{display:flex;gap:5px}.nav-item{width:auto;margin:0;padding:9px;font-size:12px;gap:5px}.nav-item>span,.nav-item small,.nav-item b{display:none}.page{margin:0}.topbar{height:66px;padding:0 20px}.demo-label{display:none}.button{padding:9px 14px}.breadcrumb{font-size:12px}main{padding:27px 18px 20px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:27px;letter-spacing:-1px}.page-heading p{font-size:12px;max-width:260px;line-height:1.9}.heading-mark{font-size:59px;margin-right:8px}.heading-mark span{font-size:27px}.metrics{padding:18px 0;margin-bottom:22px}.metrics>div{padding:0 10px}.metrics strong{font-size:22px}.metrics p{font-size:9px;white-space:nowrap}.metrics strong span{font-size:11px}.filter-row{gap:9px}.chip{font-size:11px;padding:5px 8px}.filter-panel{padding:16px 12px 0}.search-box{padding:0 12px}.search-box input{font-size:12px}.search-box kbd{display:none}.question-card{padding:18px 16px}.card-top{gap:7px}.card-top .date{font-size:9px}.card-top .role{padding-left:7px;font-size:10px}.question-title{font-size:16px}.sample-badge{display:none}.card-actions{gap:3px}.tag{font-size:9px;padding:4px 6px}footer{gap:20px;line-height:1.8}footer>span{max-width:50%}dialog{padding:22px}.modal-heading h2{font-size:22px}.form-footer{gap:10px}.form-footer span{font-size:10px}.eyebrow{font-size:9px}}

.main-column{min-width:0}.chips{min-width:0}[hidden]{display:none!important}

.filter-label{min-width:48px}.frequency-hint{font-size:12px;line-height:1.8;color:var(--text-muted);margin:0 0 13px 66px}.frequency-stat{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text-muted);margin:16px 0}.frequency-stat strong{font-size:16px;color:var(--primary-strong);margin:0 3px}.frequency-stat small{font-size:11px;color:var(--text-muted)}.frequency-badge{border-radius:5px;background:var(--surface-subtle);color:var(--text-muted);padding:4px 8px;font-size:12px}.frequency-badge.frequent{color:#a96c29;background:#fff2db}.knowledge-path{font-size:12px;color:var(--text-muted);margin-bottom:15px}.knowledge-path span{color:var(--text-muted);margin:0 6px}.knowledge-path button{padding:0;color:var(--primary-strong)}.knowledge-path button:hover{text-decoration:underline}.detail-knowledge{display:flex;gap:14px;font-size:14px;margin-top:22px}.detail-knowledge>span{color:var(--text-muted)}.detail-knowledge strong{font-weight:500}.frequency-explanation{font-size:12px;line-height:1.9;color:var(--text-muted)}.card-excerpt{font-size:14px}.chip{font-size:14px}.filter-label{font-size:13px}.form-grid input:disabled{background:var(--surface-subtle);color:var(--text-muted);font-size:12px}.tabs{gap:22px}@media(max-width:700px){.chip{font-size:12px}.frequency-hint{margin-left:0;font-size:11px}.filter-row{gap:7px}.filter-label{min-width:50px;font-size:12px}.frequency-stat{font-size:12px}.tabs{gap:17px}.card-excerpt{font-size:13px}}

:root{--topbar-height:82px;--list-controls-height:185px}.topbar{position:sticky;top:0;z-index:20;background:#fffefc}.list-controls{position:sticky;top:calc(var(--topbar-height) - 1px);z-index:10;background:var(--surface-subtle);padding:14px 0 0;margin:18px 0 15px;border-bottom:1px solid var(--border);box-shadow:0 8px 10px -10px #172b4d60}.compact-filters{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:13px 15px}.browse-summary{display:flex;align-items:center;gap:13px;font-size:12px;color:var(--text-muted);margin-bottom:12px}.browse-summary strong{font-size:14px;color:var(--text-secondary)}.browse-summary button{margin-left:auto;color:var(--text-muted);font-size:12px;white-space:nowrap}.compact-selects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.compact-selects label{min-width:0;display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:5px;padding:7px 8px;background:var(--surface-subtle)}.compact-selects label span{font-size:11px;color:var(--text-muted);white-space:nowrap}.compact-selects select{min-width:0;width:100%;border:0;background:transparent;font-size:12px;color:var(--text-secondary);outline-color:var(--border-strong)}.list-controls .list-toolbar{margin:15px 0 5px;gap:10px}.quick-pages{display:flex;justify-content:flex-end;align-items:center;gap:7px;font-size:12px;color:var(--text-muted);padding:0 0 10px}.quick-pages button,.page-buttons button{border:1px solid var(--border);background:var(--surface);border-radius:5px;min-width:32px;height:32px;font-size:14px}.quick-pages button{min-width:25px;height:25px}.quick-pages button:disabled,.page-buttons button:disabled{opacity:.35;cursor:default}.page-buttons button[aria-current=page]{background:var(--primary);color:var(--text-inverse);border-color:var(--border-strong)}.pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:18px 15px}.pagination-meta{font-size:12px;color:var(--text-muted)}.page-buttons{display:flex;align-items:center;gap:6px}.page-buttons>span{color:var(--text-muted)}.page-size select{padding:7px;border:1px solid var(--border);border-radius:5px;color:var(--text-muted);background:var(--surface);font-size:12px}#question-list{scroll-margin-top:calc(var(--topbar-height) + var(--list-controls-height) + 10px);outline:none}.filter-panel{scroll-margin-top:calc(var(--topbar-height) + 15px)}.question-card{padding:20px}.question-title{margin-top:12px}.frequency-stat{margin:12px 0}.card-excerpt{margin-bottom:12px}.knowledge-path{margin-bottom:12px}@media(max-width:700px){:root{--topbar-height:66px}.list-controls{padding-top:8px}.compact-filters{padding:10px}.compact-selects{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.browse-summary{gap:8px;margin-bottom:9px}.browse-summary>span{font-size:10px}.browse-summary strong{font-size:12px}.browse-summary button{font-size:10px}.compact-selects label{padding:5px 7px}.list-controls .list-toolbar{margin-top:12px}.quick-pages{padding-bottom:8px}.pagination{justify-content:center;gap:12px;padding:15px 10px}.pagination-meta{width:100%;text-align:center}.page-buttons{gap:5px}.page-buttons button{min-width:30px}.question-card{padding:18px 16px}}

/* Compact question workspace: one filter bar, persistent pagination. */
:root{--topbar-height:60px;--pagination-height:70px}.topbar{height:60px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:25px;margin:7px 0}.page-heading p{font-size:12px}.heading-mark{font-size:56px}.eyebrow{font-size:9px}.metrics{padding:12px 0;margin-bottom:18px}.metrics strong{font-size:22px}.metric-icon{width:31px;height:31px;font-size:18px}main{padding-top:22px;padding-bottom:calc(var(--pagination-height) + 24px)}.content-grid{grid-template-columns:minmax(0,1fr)}.right-column{display:none}.search-box{height:42px}.list-controls{padding:8px 0 0;margin:10px 0 0;box-shadow:0 5px 8px -7px #172b4d60}.compact-filters{border-radius:7px;padding:9px 12px}.compact-selects label{padding:5px 8px}.list-controls .list-toolbar{margin:10px 0 0;min-height:32px}.tabs button{padding-bottom:7px}.question-card{border-radius:0;margin:0;padding:13px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;row-gap:7px;border-bottom:0}.question-card:first-child{border-radius:8px 8px 0 0}.question-card:last-child{border-bottom:1px solid var(--line);border-radius:0 0 8px 8px}.question-card:hover{transform:none;background:var(--primary-soft)}.card-top{grid-column:1;grid-row:1;gap:9px}.card-top .company-logo{width:23px;height:23px;font-size:12px;border-radius:5px}.card-top .date{margin-left:6px}.question-title{grid-column:1;grid-row:2;font-size:16px;line-height:1.6;margin:0}.card-excerpt{display:none}.frequency-stat{grid-column:2;grid-row:1 / span 2;align-self:center;margin:0;font-size:12px;gap:7px}.frequency-stat strong{font-size:15px}.knowledge-path{grid-column:1;grid-row:3;margin:0;font-size:12px}.card-footer{grid-column:2;grid-row:3;justify-content:flex-end}.card-footer>.tag{display:none}.card-footer>.difficulty{display:inline-block}.card-actions{margin-left:10px}.tag{padding:2px 6px}#detail-content .frequency-stat{margin:16px 0}.pagination{position:fixed;bottom:0;left:228px;right:0;z-index:25;border-radius:0;border-width:1px 0 0;padding:12px 42px;box-shadow:0 -5px 18px #172b4d08;min-height:64px;flex-wrap:nowrap}.pagination-meta{font-size:13px}.page-buttons button{min-width:34px;height:34px}.page-size select{font-size:13px}.search-box{scroll-margin-top:calc(var(--topbar-height) + 12px)}footer{margin-top:20px}#toast{bottom:calc(var(--pagination-height) + 16px)}@media(max-width:1200px){.pagination{left:196px;padding-left:26px;padding-right:26px}}@media(max-width:1000px){.pagination{left:180px}.frequency-stat{font-size:11px}.question-card{column-gap:10px}}@media(max-width:700px){:root{--topbar-height:54px}.topbar{height:54px}.page-heading{display:none}.metrics{margin-bottom:12px;padding:10px 0}.metrics strong{font-size:19px}.metrics p{font-size:9px}main{padding-top:14px}.search-box{height:39px}.list-controls{margin-top:7px;padding-top:5px}.compact-filters{padding:7px}.compact-selects{gap:5px}.compact-selects label{padding:4px 6px}.list-controls .list-toolbar{margin-top:7px;min-height:31px}.tabs button{font-size:12px}.tabs{gap:16px}.question-card{padding:11px 12px;gap:6px;grid-template-columns:minmax(0,1fr) auto}.card-top{grid-column:1 / -1;font-size:10px;gap:6px}.card-top .company-logo{width:21px;height:21px}.card-top .date{margin-left:auto}.question-title{grid-column:1 / -1;font-size:15px;line-height:1.6}.frequency-stat{grid-column:1 / -1;grid-row:3;font-size:11px;gap:6px}.frequency-stat strong{font-size:14px}.frequency-badge{padding:2px 5px;font-size:10px}.knowledge-path{grid-column:1;grid-row:4;font-size:11px}.card-footer{grid-column:2;grid-row:4}.pagination{left:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr auto;gap:6px;min-height:76px}.pagination-meta{width:auto;text-align:left;font-size:11px}.page-size{grid-row:1;grid-column:2}.page-size select{padding:3px 5px;font-size:11px}.page-buttons{grid-column:1 / -1;justify-content:center;gap:8px}.page-buttons button{height:30px;min-width:32px}.card-actions{gap:4px}.list-toolbar>span{font-size:10px}footer{font-size:9px}}

.discussion-link{font-size:12px;color:var(--text-muted);white-space:nowrap;padding:4px}.discussion-link:hover{color:var(--text-primary);text-decoration:underline}#detail-dialog{width:min(720px,calc(100% - 32px))}#discussion{margin-top:30px;padding-top:24px;border-top:1px solid var(--border);scroll-margin-top:16px}.discussion-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.discussion-heading h3{font-size:18px;margin:0}.discussion-heading h3 span{font-size:13px;background:var(--surface-subtle);padding:3px 8px;border-radius:12px;color:var(--primary);margin-left:6px}.discussion-heading>span{font-size:12px;color:var(--text-muted)}.discussion-note{font-size:12px;color:var(--text-muted);line-height:1.8;margin:12px 0}.comment-form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px;color:var(--text-muted)}#comment-form label{font-size:14px}#comment-body{font-size:14px;line-height:1.7}#comment-error{font-size:12px;color:#b46948;margin:8px 0}.comment-thread{border-top:1px solid var(--border);padding:17px 0}.comment{display:flex;gap:11px}.comment-avatar{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:var(--surface-subtle);color:var(--text-muted);font-size:13px}.comment-main{min-width:0;flex:1}.comment-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px;color:var(--text-muted)}.comment-meta strong{font-size:13px;color:var(--text-secondary);font-weight:500}.comment-meta time{margin-left:auto}.comment-main p{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.reply-button{padding:0;font-size:12px;color:var(--text-muted)}.comment-reply{margin:14px 0 0 40px;padding:12px;background:var(--surface-subtle);border-radius:6px}.reply-context{display:flex;align-items:center;gap:10px;padding:9px 12px;background:var(--surface-subtle);font-size:12px;line-height:1.6;color:var(--text-muted);margin-top:10px;border-radius:5px}.reply-context span{flex:1;overflow-wrap:anywhere}.reply-context button{white-space:nowrap;font-size:11px;color:var(--text-secondary)}.discussion-empty{text-align:center;background:var(--surface-subtle);padding:28px 16px;border-radius:8px;font-size:13px;color:var(--text-muted);margin-top:20px}@media(max-width:700px){.discussion-link{font-size:11px}.card-actions{gap:3px}.comment-reply{margin-left:20px;padding:10px}.discussion-heading>span{font-size:10px}#detail-dialog{padding:20px}.comment-meta{gap:6px}.comment-meta time{font-size:10px}}

/* Connected account and shared discussion flows. */
.auth-button{border:1px solid var(--border);background:var(--surface);color:var(--primary-strong)}.auth-tabs{display:flex;gap:20px;margin:20px 0 6px}.auth-tabs button{font-size:15px;border-bottom:2px solid transparent;padding:8px 2px}.auth-tabs .active{border-color:var(--primary);color:var(--primary-strong);font-weight:600}.auth-submit{width:100%;margin-top:14px}.form-error{font-size:13px;color:#ad583e;line-height:1.7;overflow-wrap:anywhere}.form-error:empty{display:none}#password-hint{font-size:12px;color:var(--text-muted);line-height:1.7}#auth-dialog{max-width:440px}.top-right{gap:12px}#logout-button{font-size:12px;color:var(--text-muted)}#session-label{max-width:210px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.delete-link{color:#a76f53}.comment-actions{display:flex;gap:16px}.deleted-comment{color:var(--text-muted);font-style:italic}.encounter-panel{margin-top:20px;padding:14px 16px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:7px}.encounter-panel summary{font-size:14px;color:var(--text-secondary);cursor:pointer}#encounter-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}#encounter-form label{flex:1;min-width:170px}.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}#confirm-dialog{max-width:460px}#confirm-message{font-size:15px;line-height:1.8}.danger{background:#9f523d;color:var(--text-inverse)}button:disabled{opacity:.5;cursor:wait}.loading{min-height:160px}.modal-heading{position:sticky;top:-30px;padding:10px 0;background:var(--surface);z-index:2}.detail-body{overflow-wrap:anywhere}.question-title{overflow-wrap:anywhere}.frequency-stat{white-space:nowrap}@media(max-width:700px){.topbar .breadcrumb{gap:8px}.top-right{gap:7px}.topbar .button{font-size:11px;padding:8px 10px}.topbar .button>span{display:none}#logout-button{font-size:11px}.modal-heading{top:-20px}.frequency-stat{white-space:normal}#encounter-form{align-items:stretch}#encounter-form .button{margin-top:8px}#comment-body{font-size:16px}}
/* Study workspace: compact filters, calendar presets, and private notes. */
.ui-icon{width:16px;height:16px;flex:none;vertical-align:middle}
.compact-filters{padding:8px;border-radius:12px;border-color:var(--border);box-shadow:0 2px 6px #172b4d03}
.compact-selects{grid-template-columns:1fr 1fr 1.05fr 1.5fr 1fr;gap:6px}
.filter-trigger{height:40px;min-width:0;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid transparent;border-radius:8px;text-align:left;background:var(--surface-subtle);color:var(--text-secondary);font-size:12px;transition:background .15s,border-color .15s}
.filter-trigger>span{color:var(--text-muted);white-space:nowrap;font-size:11px}
.filter-trigger strong{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.filter-trigger>.ui-icon:last-child{width:14px;color:var(--text-muted);margin-left:auto}
.filter-trigger:hover{background:var(--surface-subtle);border-color:var(--primary-border)}
.filter-trigger[aria-expanded=true],.filter-trigger:focus-visible{background:var(--surface);outline:2px solid var(--primary-border);outline-offset:1px}
.filter-trigger.is-filtered{background:var(--primary-soft);color:var(--primary-strong);border-color:var(--border)}
.list-controls .list-toolbar{min-height:41px;margin:5px 0 0;gap:10px}
.list-meta{display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:11px;color:var(--text-muted)}
.study-progress{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--primary-strong)}
.study-progress .ui-icon{width:14px;height:14px}
.study-progress strong{font-weight:650}.study-progress span{color:var(--text-muted)}
.reset-filters{font-size:11px;color:var(--primary-strong);padding:4px 0}.reset-filters:hover{text-decoration:underline}
.exam-date{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:11px;color:var(--text-muted);align-self:center;white-space:nowrap}
.exam-date time{color:var(--text-secondary);font-size:12px;font-variant-numeric:tabular-nums}
.exam-date.unknown time{color:var(--text-muted);font-size:11px}
.exam-date .ui-icon{width:14px;height:14px;color:var(--text-muted)}
.question-card{padding:14px 17px;row-gap:8px;column-gap:14px;grid-template-columns:minmax(0,1fr) auto}
.question-card.is-reviewed{background:var(--primary-soft)}.question-card.is-reviewed:hover{background:var(--primary-soft)}
.question-title{font-size:15px;line-height:1.55}
.knowledge-path{display:flex;align-items:center;gap:10px;font-size:11px}
.knowledge-path .tag{font-size:10px;padding:2px 7px;font-weight:400}
.card-footer{grid-column:2;grid-row:3}.card-actions{margin:0;gap:8px;align-items:center;white-space:nowrap}
.review-button,.note-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;border-radius:6px;font-size:11px;line-height:1.5;white-space:nowrap}
.review-button{background:var(--surface-subtle);color:var(--text-muted);border:1px solid var(--border)}
.review-button:hover{background:var(--primary-soft);border-color:var(--primary-border)}
.review-button.reviewed{background:var(--primary-tint);border-color:var(--primary-border);color:var(--primary-strong)}
.review-button .ui-icon,.note-button .ui-icon{width:14px;height:14px}
.note-button{color:var(--text-muted);background:var(--surface-subtle);border:1px solid var(--border)}
.note-button:hover,.note-button.has-note{color:var(--primary-strong);background:var(--surface-subtle);border-color:var(--border)}
.action-divider{height:14px;border-left:1px solid var(--border);margin:0 2px}
.card-actions .discussion-link,.card-actions .save-button{font-size:11px}
.detail-actions .review-button,.detail-actions .note-button{padding:9px 12px;font-size:13px}
#detail-content .exam-date{justify-content:flex-start;margin:18px 0;font-size:12px}
#detail-content .exam-date time{font-size:13px}
button:focus-visible,a:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
form input:not([type=hidden]),form select,form textarea{border-radius:9px;border-color:var(--border);background:var(--surface-subtle);transition:border-color .15s,box-shadow .15s}
form input:focus,form select:focus,form textarea:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #172b4d20;background:var(--surface)}
form select,.page-size select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6f85' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat}
form label>small{font-size:11px;color:var(--text-muted);font-weight:400;margin-left:4px}
.date-input{display:flex;width:100%;height:43px;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;border:1px solid var(--border);border-radius:9px;padding:0 12px;background:var(--surface-subtle);font-size:13px;color:var(--text-secondary);text-align:left;font-variant-numeric:tabular-nums}
.date-input:hover,.date-input[aria-expanded=true]{background:var(--surface);border-color:var(--primary)}.date-input-icon{color:var(--text-muted)}
#control-popover{position:fixed;inset:auto;margin:0;padding:7px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text-secondary);box-shadow:0 12px 44px #172b4d20,0 2px 7px #172b4d06;max-height:calc(100dvh - 24px);overflow:auto;font-size:13px}
#control-popover::backdrop{background:transparent;backdrop-filter:none}
#control-popover:not(:popover-open){display:none}
#control-popover button{font-family:inherit}
.select-popover{width:258px;max-width:calc(100vw - 24px)}
.picker-heading{font-size:11px;color:var(--text-muted);font-weight:500;letter-spacing:.3px;padding:9px 11px 8px}
.option-search{display:flex;align-items:center;gap:8px;margin:4px 6px 9px;padding:8px 10px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:7px;color:var(--text-muted)}
.option-search input{width:100%;min-width:0;outline:0;border:0;background:transparent;font-size:12px;color:var(--text-secondary)}
.option-list{max-height:270px;overflow-y:auto;padding:0 2px;overscroll-behavior:contain}
.select-option{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border-radius:7px;padding:10px 12px;text-align:left;font-size:13px;min-height:38px;color:var(--text-secondary)}
.select-option[aria-selected=true]{background:var(--primary-soft);color:var(--primary-strong);font-weight:550}
.select-option:hover,.select-option:focus-visible{background:var(--surface-subtle);outline-offset:-2px}
.select-option .ui-icon{width:15px}.picker-empty{color:var(--text-muted);text-align:center;padding:20px}
.date-popover{max-width:calc(100vw - 24px)}
.range-presets{width:246px}.range-expanded{width:520px;display:flex}.single-date{width:316px}
.date-presets{min-width:170px}.range-expanded .date-presets{border-right:1px solid var(--border);padding-right:7px}
.date-presets>button{width:100%;padding:12px;border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text-secondary);font-size:13px;text-align:left}
.date-presets>button.selected{color:var(--primary-strong);background:var(--surface-subtle)}.date-presets>button:hover{background:var(--surface-subtle)}
.date-presets>p{font-size:10px;line-height:1.8;color:var(--text-muted);padding:9px 12px 2px;margin:4px 0}
.calendar-panel{min-width:0;flex:1;padding:5px 8px}
.range-values{display:flex;align-items:center;gap:7px;padding-top:5px;white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}
.range-values>span{flex:1;text-align:center;background:var(--surface-subtle);border:1px solid var(--border);border-radius:6px;padding:8px 5px;color:var(--text-muted)}.range-values>span.active{border-color:var(--primary);color:var(--primary-strong);background:var(--primary-soft)}
.range-values i{font-style:normal;color:var(--text-muted)}
.calendar-hint{font-size:10px;color:var(--text-muted);margin:7px 0 5px}
.calendar-nav{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:10px 0 8px}.calendar-nav>button{border-radius:6px;height:30px;width:26px;font-size:22px;color:var(--text-muted)}.calendar-nav>button:hover{background:var(--surface-subtle)}
.calendar-nav>div{display:flex;gap:2px}.calendar-nav select{padding:5px 0;border:0;border-radius:5px;margin:0;background:var(--surface);color:var(--text-secondary);width:auto;font-size:12px;cursor:pointer}
.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:3px 0}
.calendar-week{color:var(--text-muted);font-size:10px;padding:4px 0 8px}
.calendar-grid>button{height:33px;font-size:12px;color:var(--text-secondary);border-radius:6px;font-variant-numeric:tabular-nums;position:relative}
.calendar-grid>button:hover{background:var(--primary-soft)}.calendar-grid>button.in-range{background:var(--primary-soft);border-radius:0}.calendar-grid>button.selected{background:var(--primary);color:var(--text-inverse);font-weight:600}
.calendar-grid>button.today:after{content:'';position:absolute;bottom:3px;width:3px;height:3px;border-radius:50%;background:currentColor;left:calc(50% - 1.5px)}
.calendar-grid>button:disabled{color:var(--text-muted);opacity:1;cursor:default;background:transparent}
.calendar-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);margin-top:12px;padding:10px 0 2px;font-size:11px;color:var(--text-muted)}
.calendar-footer button{padding:6px 10px;color:var(--text-muted);border-radius:6px;font-size:12px}.calendar-footer .calendar-apply{background:var(--primary);color:var(--text-inverse);padding:7px 13px}
#note-dialog{width:min(650px,calc(100% - 32px));padding:26px 30px}.note-private{font-size:12px;color:var(--text-muted);background:var(--surface-subtle);border-radius:7px;padding:9px 12px;margin:4px 0 18px}
#note-question-title{font-size:16px;line-height:1.7;margin:0 0 17px}#note-form>label{font-size:12px;color:var(--text-muted)}
#note-body{line-height:1.9;font-size:14px;min-height:230px;max-height:45vh;padding:15px 17px}
.note-status-line{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--text-muted);gap:10px;margin-top:9px}
.note-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:10px}.note-footer>small{color:var(--text-muted);font-size:10px}
#note-discard{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fcf7e9;border:1px solid #eee3c3;border-radius:8px;padding:10px 12px;margin-top:15px;font-size:12px;color:#9d8555}
#note-discard span{flex-basis:100%}#note-discard button{font-size:12px;text-decoration:underline}
@media(max-width:1150px){.compact-selects{grid-template-columns:repeat(3,minmax(0,1fr))}.date-filter{grid-column:1 / span 2}.question-card{grid-template-columns:minmax(0,1fr)}.card-top{grid-column:1;grid-row:1}.question-title{grid-column:1;grid-row:2}.exam-date{grid-column:1;grid-row:3;justify-content:flex-start}.knowledge-path{grid-column:1;grid-row:4;justify-self:start}.card-footer{grid-column:1;grid-row:4;justify-self:end}.study-progress{font-size:10px}.list-meta{gap:8px}}
@media(max-width:700px){.compact-filters{padding:6px;border-radius:10px}.compact-selects{gap:4px}.filter-trigger{height:34px;padding:0 7px;gap:4px;font-size:11px}.filter-trigger>span{font-size:10px}.filter-trigger>.ui-icon:last-child{width:12px}.filter-trigger>strong{font-size:11px}.list-controls .list-toolbar{flex-wrap:wrap;gap:0;margin-top:8px;min-height:34px;padding-bottom:5px}.list-toolbar .tabs{gap:18px}.list-meta{margin-left:auto;gap:7px;font-size:10px}.study-progress{order:1}.list-meta:has(.study-progress:not([hidden])){width:100%;justify-content:flex-end;margin:4px 0}.study-progress{margin-right:auto;order:0}.reset-filters{font-size:10px}.question-card{padding:12px;row-gap:8px}.question-title{font-size:14px}.card-top{gap:6px}.card-top .sample-badge{display:none}.exam-date{grid-column:1;grid-row:3;font-size:10px;gap:5px}.exam-date time{font-size:11px}.knowledge-path{grid-row:4;font-size:11px}.card-footer{grid-row:5;justify-self:stretch}.card-actions{width:100%;gap:7px;margin-top:2px}.review-button,.note-button{padding:6px 8px;font-size:11px}.card-actions .action-divider{margin-left:auto}.card-actions .discussion-link,.card-actions .save-button{font-size:10px}.question-card .company-logo{width:19px;height:19px}.range-expanded{width:350px;display:block}.range-expanded .date-presets{border-right:0;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;gap:3px;padding:2px 2px 7px}.range-expanded .date-presets>.picker-heading{width:100%;padding:6px}.range-expanded .date-presets>button{width:auto;padding:7px 8px;font-size:11px}.range-expanded .date-presets>p{display:none}.range-expanded .date-presets .ui-icon{display:none}.calendar-panel{padding:5px 8px}.calendar-grid>button{height:31px}.calendar-footer{margin-top:8px}#note-dialog{padding:20px}#note-body{font-size:16px;min-height:180px}.note-footer>small{max-width:150px;line-height:1.6}.note-footer .button{white-space:nowrap}.detail-actions{gap:8px}.detail-actions .button{padding:8px}.page-size select{padding-right:22px;background-position:right 4px center}}

@media(max-width:700px){.question-card .knowledge-path{grid-row:3;justify-self:end;gap:6px}.question-card .card-footer{grid-row:4}.question-card .exam-date>span{display:none}}
@media(max-width:380px){.card-actions{gap:4px}.review-button,.note-button{padding:5px 6px}.tabs{gap:12px}}
/* Top navigation and complete interview experiences. */
.page{margin-left:0}.topbar{height:72px;padding:0 max(24px,calc((100vw - 1320px)/2));display:flex;gap:30px;border-bottom:1px solid var(--border);background:var(--surface);align-items:center}
.topbar .brand{color:var(--text-primary);gap:9px;flex-shrink:0;margin:0}.topbar .brand-icon{width:33px;height:35px;font-size:22px;border-radius:10px}.topbar .brand strong{font-size:21px;letter-spacing:1px}.topbar .brand strong>span{font-size:7px;letter-spacing:4px;margin-top:2px;color:var(--text-muted)}
.main-nav{display:flex;align-self:stretch;align-items:stretch;gap:22px;min-width:0;flex:1}.main-nav button{position:relative;white-space:nowrap;font-size:13px;color:var(--text-muted);padding:0 1px}.main-nav button.active{color:var(--primary-strong);font-weight:650}.main-nav button.active:after{content:'';height:3px;background:var(--primary);position:absolute;bottom:0;left:4px;right:4px;border-radius:3px}.main-nav b{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;background:var(--surface-subtle);padding:1px 5px;border-radius:7px;margin-left:3px;color:var(--text-muted)}
.topbar .top-right{gap:10px;flex-shrink:0}.topbar .button{padding:10px 14px;font-size:12px}.topbar #session-label{max-width:150px;font-size:10px}.topbar #logout-button{font-size:11px}
main{max-width:1320px;margin:0 auto;padding:25px 32px calc(var(--pagination-height) + 24px)}.page-heading{align-items:center;margin-bottom:20px}.page-heading h1{font-size:27px}.page-heading .eyebrow{color:var(--text-muted);font-size:10px;letter-spacing:2px}.page-heading p{font-size:12px;color:var(--text-muted)}.heading-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-size:11px;color:var(--text-muted)}.heading-actions .button{font-size:12px;padding:11px 16px}.metrics{border-radius:12px;padding:13px 0}.metrics>div{padding:0 24px}.metrics strong{font-size:24px}
.pagination{left:0;padding-left:max(24px,calc((100vw - 1256px)/2));padding-right:max(24px,calc((100vw - 1256px)/2))}.pagination-meta{font-size:12px}.search-box{border-radius:10px}.list-controls{background:var(--surface-subtle)}
#experience-scope{display:flex;padding:4px;background:var(--surface-subtle);border-radius:9px;gap:3px}#experience-scope button{padding:7px 14px;border-radius:6px;font-size:12px;color:var(--text-muted)}#experience-scope button.active{background:var(--surface);color:var(--primary-strong);box-shadow:0 2px 4px #172b4d10}
.experience-view .compact-selects{grid-template-columns:1fr 1fr 1.5fr}.experience-view .date-filter{grid-column:auto}.experience-view .metrics{display:none}.experience-view .page-heading{padding-top:6px;padding-bottom:8px}
.experience-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:23px 25px;margin:14px 0;transition:border-color .2s}.experience-card:hover{border-color:var(--primary-border)}.experience-card:first-child{margin-top:12px}.experience-card-meta{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--text-muted)}.experience-card-meta strong{font-size:12px;color:var(--text-muted);font-weight:500}.author-avatar{width:28px;height:28px;border-radius:50%;background:var(--surface-subtle);display:grid;place-items:center;font-size:12px;color:var(--text-muted)}.experience-count{margin-left:auto;background:var(--surface-subtle);padding:4px 8px;border-radius:5px;color:var(--text-muted)}.own-badge{padding:2px 6px;border-radius:4px;background:var(--primary-soft);color:var(--text-muted);font-size:9px}
.experience-title{display:block;text-align:left;font-size:19px;line-height:1.6;font-weight:600;color:var(--text-primary);margin:13px 0 11px;overflow-wrap:anywhere}.experience-title:hover{color:var(--primary)}.experience-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--text-muted)}.experience-tags>span{background:var(--surface-subtle);border-radius:4px;padding:3px 7px;display:inline-flex;align-items:center;gap:4px}.experience-tags .ui-icon{width:12px;height:12px}.experience-card>p{line-height:1.9;font-size:12px;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0 17px}.experience-card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding-top:13px}.experience-card-footer button{font-size:11px;color:var(--primary)}.experience-card-footer>div{display:flex;gap:18px}.experience-card-footer .delete-link{color:#a98d76}.experience-card-footer>button span{margin-left:10px}
#experience-detail-dialog{width:min(860px,calc(100% - 32px));padding:30px}#experience-detail-dialog h2{font-size:24px;line-height:1.7;margin:10px 0 20px;overflow-wrap:anywhere}#experience-detail-dialog>.experience-tags,#experience-detail-content>.experience-tags{margin:16px 0}.experience-section-label{font-size:15px;color:var(--text-secondary);margin:25px 0 0}.experience-detail-questions{margin-top:17px}.experience-detail-questions>section{display:flex;align-items:flex-start;gap:12px;padding:17px 0;border-top:1px solid var(--border)}.experience-detail-questions>section>div{flex:1;min-width:0}.experience-detail-questions button{text-align:left;font-size:14px;font-weight:550;line-height:1.8;overflow-wrap:anywhere}.experience-detail-questions .experience-tags{margin-top:7px}.experience-detail-questions p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;color:var(--text-muted)}.experience-detail-questions .open-question{color:var(--primary);padding:3px}.experience-owner-actions{display:flex;align-items:center;gap:12px;border-top:1px solid var(--border);padding-top:18px;margin-top:20px}.source-experience{width:100%;text-align:left;padding:10px 13px;background:var(--primary-soft);border:1px solid var(--border);border-radius:7px;color:var(--text-muted);font-size:12px;margin-bottom:12px}
.question-number{font-family:monospace;font-size:11px;color:var(--primary);border-radius:6px;background:var(--primary-soft);padding:5px 7px;flex:none}
.publish-identity{padding:22px 30px}.publish-identity h3{font-size:14px;margin:0;color:var(--text-secondary);font-weight:500}.publish-identity>div>p{font-size:11px;color:var(--text-muted);margin:8px 0 15px}.identity-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.identity-options label{display:flex;align-items:center;gap:10px;margin:0;padding:13px 15px;border:1px solid var(--border);border-radius:8px;color:var(--text-muted);cursor:pointer;font-size:12px}.identity-options label:has(input:checked){background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary-strong)}.identity-options input[type=radio]{appearance:auto;accent-color:var(--primary);width:15px;height:15px;padding:0;margin:0;box-shadow:none;flex:none}.identity-options small{display:block;font-size:10px;color:var(--text-muted);font-weight:400;margin-top:4px}.compact-identity{padding:20px 0 0}.compact-identity label{font-size:12px}
#experience-discard{max-width:440px}#experience-discard h2{font-size:20px;margin:0 0 12px}#experience-discard p{font-size:14px;line-height:1.8;color:var(--text-muted);margin:0}#experience-discard::backdrop{background:#172b4d38;backdrop-filter:blur(2px)}
.algorithm-view .compact-selects{grid-template-columns:1fr 1fr 1fr .75fr 1.5fr 1.05fr}.algorithm-table-heading,article.algorithm-row{display:grid;grid-template-columns:minmax(0,1fr) 70px 110px 270px;gap:16px;align-items:center;padding:17px 18px}.algorithm-table-heading{font-size:11px;color:var(--text-muted);background:var(--surface-subtle);border:1px solid var(--border);border-bottom:0;border-radius:9px 9px 0 0}.algorithm-table-heading>span:last-child{text-align:right;padding-right:95px}.algorithm-row .algorithm-question{min-width:0}.algorithm-row .question-title{font-size:14px;line-height:1.7;margin:0}.algorithm-question>div{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--text-muted);margin-top:4px;flex-wrap:wrap}.algorithm-question>div>button{font-size:10px;color:var(--text-muted)}.algorithm-row .algorithm-difficulty{justify-self:start;font-size:10px;padding:4px 7px}.algorithm-date{font-size:11px;color:var(--text-muted);font-variant-numeric:tabular-nums}.algorithm-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}.algorithm-actions .discussion-link{font-size:10px}.algorithm-actions .save-button{font-size:13px}
@media(max-width:1150px){.topbar{gap:20px;padding:0 24px}.main-nav{gap:18px}.topbar #session-label{display:none}main{padding-left:24px;padding-right:24px}.compact-selects{grid-template-columns:1fr 1fr 1fr 1.4fr 1fr}.date-filter{grid-column:auto}.algorithm-view .compact-selects{grid-template-columns:repeat(3,minmax(0,1fr))}.algorithm-table-heading,article.algorithm-row{grid-template-columns:minmax(0,1fr) 60px 95px 250px;gap:10px}.algorithm-actions{gap:4px}.pagination{left:0;padding-left:24px;padding-right:24px}}
@media(max-width:900px){.topbar{gap:15px}.topbar .brand strong{font-size:19px}.main-nav{gap:14px}.main-nav button{font-size:12px}.topbar .button{font-size:11px;padding:9px 10px}.algorithm-table-heading,article.algorithm-row{grid-template-columns:minmax(0,1fr) 60px 240px}.algorithm-table-heading>span:nth-child(3){display:none}.algorithm-row .algorithm-date{grid-column:1;grid-row:2}.algorithm-row .algorithm-actions{grid-column:3;grid-row:1 / span 2}.algorithm-row .algorithm-difficulty{grid-column:2;grid-row:1}.algorithm-row .algorithm-question{grid-column:1;grid-row:1}}
@media(max-width:700px){.topbar{height:auto;padding:10px 16px 0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px}.topbar .brand{grid-column:1;grid-row:1}.topbar .brand-icon{width:28px;height:30px;font-size:19px}.topbar .brand strong{font-size:18px}.topbar .brand strong>span{font-size:6px}.main-nav{grid-column:1/-1;grid-row:2;overflow-x:auto;scrollbar-width:none;gap:22px;min-height:39px;white-space:nowrap;max-width:100%}.main-nav button{font-size:12px;flex-shrink:0;padding-bottom:9px}.main-nav b{font-size:9px}.topbar .top-right{grid-column:2;grid-row:1;justify-content:flex-end;gap:8px}.topbar .top-right .button{padding:8px 10px;font-size:10px}.topbar #logout-button{font-size:10px}.page{margin-left:0}main{padding:16px 16px calc(var(--pagination-height) + 20px)}.page-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}.page-heading .eyebrow{font-size:9px;letter-spacing:1px}.page-heading h1{font-size:20px;margin:7px 0 4px}.page-heading p{font-size:10px;line-height:1.8;margin:0;max-width:250px}.heading-actions{align-items:flex-end;gap:0}.heading-actions #account-summary{display:none}.heading-actions .button{font-size:10px;padding:9px 10px;white-space:nowrap}.metrics{padding:10px 0}.metrics>div{padding:0 9px}.metrics strong{font-size:18px}.metrics p{font-size:9px}.metric-tip{display:none}.compact-selects{grid-template-columns:repeat(3,minmax(0,1fr))}.date-filter{grid-column:1 / span 2}.algorithm-view .date-filter{grid-column:auto}.algorithm-view .compact-selects{grid-template-columns:repeat(3,minmax(0,1fr))}.experience-view .compact-selects{grid-template-columns:1fr 1fr}.experience-view .date-filter{grid-column:1 / -1}.experience-view .page-heading{flex-direction:column;align-items:flex-start;gap:13px}.experience-view .page-heading p{max-width:none}.experience-view .heading-actions{width:100%}.experience-view #experience-scope{align-self:flex-start}#experience-scope button{padding:6px 13px;font-size:11px}.pagination{left:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
.experience-card{padding:17px;margin:10px 0}.experience-title{font-size:16px;margin:12px 0 9px}.experience-card-meta{gap:6px;flex-wrap:wrap;font-size:9px}.experience-card-meta strong{font-size:11px}.experience-count{font-size:9px}.author-avatar{width:24px;height:24px}.experience-tags{gap:5px;font-size:9px}.experience-tags>span{padding:3px 5px}.experience-card>p{font-size:11px}.experience-card-footer button{font-size:10px}.experience-card-footer>div{gap:12px}.experience-card .own-badge{display:none}#experience-detail-dialog{padding:20px}#experience-detail-dialog h2{font-size:19px}.experience-detail-questions>section{gap:8px}.experience-detail-questions button{font-size:13px}.experience-detail-questions p{font-size:12px}.experience-owner-actions{gap:6px}.experience-owner-actions .button{font-size:11px;padding:10px}.source-experience{font-size:11px}.experience-section-label{font-size:13px}
.publish-identity{padding:18px}.compact-identity{padding:18px 0 0}.identity-options{gap:8px}.identity-options label{padding:10px;gap:7px;font-size:11px}.identity-options small{font-size:9px}
.algorithm-table-heading{display:none}article.algorithm-row{grid-template-columns:minmax(0,1fr) 50px;row-gap:9px;padding:15px 12px;column-gap:8px}.algorithm-row .algorithm-question{grid-column:1;grid-row:1}.algorithm-row .question-title{font-size:13px}.algorithm-question>div{font-size:9px;gap:7px}.algorithm-row .algorithm-difficulty{grid-column:2;grid-row:1;font-size:9px;justify-self:end}.algorithm-row .algorithm-date{grid-column:1 / -1;grid-row:2;font-size:10px}.algorithm-row .algorithm-date:before{content:'最近考察  ';color:var(--text-muted)}.algorithm-row .algorithm-actions{grid-column:1 / -1;grid-row:3;justify-content:flex-start;gap:8px}.algorithm-actions .discussion-link{margin-left:auto}.algorithm-view .page-heading{align-items:flex-start}.algorithm-view .page-heading p{max-width:220px}}

.algorithm-view .metrics{display:none}
@media(max-width:700px){.algorithm-view .page-heading p{display:none}.algorithm-view .page-heading{align-items:center;margin-bottom:15px}}

/* Each exam report remains individually visible, with a lifetime count. */
.encounter-count{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:4px 8px;border:1px solid var(--border);border-radius:6px;background:var(--primary-soft);color:var(--text-muted);font-size:11px;font-weight:400;line-height:1.5}.encounter-count:hover{background:var(--primary-soft);border-color:var(--primary-border)}.encounter-count strong{font-size:13px;color:var(--primary-strong);font-variant-numeric:tabular-nums}.exam-date>.encounter-count{margin-left:5px}.algorithm-date{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.algorithm-date .encounter-count{font-size:10px;padding:2px 6px}.algorithm-date .encounter-count strong{font-size:12px}
#encounter-history{margin-top:24px;padding-top:23px;border-top:1px solid var(--border);scroll-margin-top:75px}.encounter-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.encounter-heading h3{font-size:17px;margin:0}.encounter-heading h3>span{font-size:12px;background:var(--surface-subtle);padding:3px 8px;border-radius:12px;color:var(--primary);margin-left:6px}.encounter-heading>span{font-size:11px;color:var(--text-muted)}.encounter-help{font-size:12px;color:var(--text-muted);line-height:1.8;margin:9px 0 14px}.encounter-records{list-style:none;padding:0;margin:0;border-top:1px solid var(--border)}.encounter-records li{display:grid;grid-template-columns:92px minmax(70px,1fr) 45px 130px;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:13px 0;font-size:12px}.encounter-records time{font-variant-numeric:tabular-nums;color:var(--text-muted)}.encounter-records strong{font-weight:500;overflow-wrap:anywhere;color:var(--text-secondary)}.encounter-round{color:var(--text-muted)}.encounter-source{font-size:10px;color:var(--text-muted);text-align:right}.encounter-source button{font-size:inherit;color:var(--primary);padding:0}.encounter-empty{font-size:12px;color:var(--text-muted);background:var(--surface-subtle);border:1px dashed var(--border);padding:20px;border-radius:9px;text-align:center}.encounter-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:12px;font-size:11px;color:var(--text-muted)}.encounter-pagination>span{margin-right:auto}.encounter-pagination button{border:1px solid var(--border);border-radius:5px;padding:5px 8px}.encounter-pagination button:disabled{cursor:default}
#encounter-history .encounter-panel{margin-top:16px;border-radius:10px;background:var(--surface-subtle);padding:14px 16px}#encounter-form{display:block}#encounter-form .encounter-fields{display:grid;grid-template-columns:1.1fr 1fr .7fr 1fr;gap:12px}#encounter-form label{min-width:0;font-size:12px;margin-top:14px}#encounter-form input,#encounter-form select{height:43px;font-size:12px;padding:10px}#encounter-form select{padding-right:28px}.encounter-form-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px}.encounter-form-footer small{color:var(--text-muted);font-size:10px;line-height:1.7}.encounter-form-footer button{white-space:nowrap;font-size:12px;padding:10px 14px}#encounter-error:empty{margin:0}
@media(max-width:700px){.question-card:not(.algorithm-row) .exam-date{grid-column:1 / -1;grid-row:3;flex-wrap:wrap;justify-content:flex-start}.question-card:not(.algorithm-row) .knowledge-path{grid-row:4;justify-self:start}.question-card:not(.algorithm-row) .card-footer{grid-row:5}.exam-date .encounter-count{font-size:10px}.exam-date .encounter-count strong{font-size:12px}#detail-content .exam-date{flex-wrap:wrap;font-size:11px}.algorithm-row .algorithm-date{flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px}#encounter-history{scroll-margin-top:65px}.encounter-heading h3{font-size:16px}.encounter-heading>span{font-size:10px}.encounter-records li{grid-template-columns:85px minmax(0,1fr) auto;gap:7px;font-size:11px;padding:11px 0}.encounter-source{grid-column:2 / -1;text-align:left;font-size:10px}.encounter-help{font-size:11px}#encounter-history .encounter-panel{padding:12px}#encounter-form .encounter-fields{grid-template-columns:1fr 1fr;gap:0 10px}#encounter-form .encounter-fields label:first-child{grid-column:1 / -1}#encounter-form input{font-size:16px}#encounter-form .date-input{font-size:11px;padding:0 8px;height:43px}.encounter-form-footer{align-items:stretch;flex-direction:column;gap:10px}.encounter-form-footer .button{width:100%;margin:0}#encounter-form select{font-size:12px}.encounter-pagination{gap:7px;font-size:10px}}

/* The plaza has two clear spaces: complete interviews and open conversations. */
.plaza-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--border);margin:0 0 23px;padding:0 2px}.plaza-tabs button{position:relative;font-size:14px;font-weight:500;padding:12px 2px 15px;color:var(--text-muted)}.plaza-tabs button.active{color:var(--primary-strong);font-weight:650}.plaza-tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--primary);border-radius:3px}.plaza-tabs>span{margin-left:auto;color:var(--text-muted);font-size:11px}.forum-view .compact-selects{display:flex;flex-wrap:wrap;gap:6px}.forum-category-filter{padding:9px 15px;font-size:12px;color:var(--text-muted);border-radius:8px;white-space:nowrap}.forum-category-filter.active{background:var(--primary-soft);color:var(--primary-strong);font-weight:600}.forum-category-filter:hover{background:var(--surface-subtle)}.forum-view .compact-filters{padding:7px}.forum-view .list-controls{margin-bottom:15px}
.forum-card{background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:22px 25px;margin:12px 0;transition:border-color .15s}.forum-card:hover{border-color:var(--primary-border)}.forum-card-meta{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--text-muted);flex-wrap:wrap}.forum-card-meta strong{color:var(--text-secondary);font-size:12px;font-weight:500}.forum-card-meta .author-avatar{width:27px;height:27px}.forum-category{margin-left:auto;color:var(--text-muted);background:var(--primary-soft);border-radius:5px;padding:4px 9px;font-size:10px}.forum-title{display:block;text-align:left;font-size:19px;font-weight:650;line-height:1.65;margin:14px 0 8px;padding:0;overflow-wrap:anywhere}.forum-title:hover{color:var(--primary-strong)}.forum-card>p{font-size:13px;line-height:1.9;color:var(--text-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.forum-card-footer{display:flex;align-items:center;gap:18px;border-top:1px solid var(--border);margin-top:18px;padding-top:13px;font-size:10px;color:var(--text-muted)}.forum-card-footer>button{display:flex;align-items:center;gap:6px;padding:0;color:var(--text-muted);font-size:11px}.forum-card-footer>button>span{margin-left:8px;color:var(--text-muted)}.forum-card-footer>div{margin-left:auto;display:flex;gap:12px}.forum-card-footer>div button{font-size:11px;padding:0}.forum-empty{padding:50px 20px;border-style:dashed;background:var(--primary-soft)}.forum-empty-symbol{display:inline-grid;place-items:center;width:48px;height:48px;background:var(--primary-soft);color:var(--primary);border-radius:14px;margin-bottom:5px}.forum-empty-symbol svg{width:24px;height:24px}.forum-empty .button{margin-top:10px}
#post-editor{width:min(710px,calc(100% - 32px));padding:26px 30px}#post-fields{border:0;padding:0;margin:0;min-width:0}#post-fields>label:first-child{margin-top:10px}#post-fields select{max-width:230px}#post-fields textarea{font-size:14px;line-height:1.9;min-height:200px;max-height:45dvh;resize:vertical}.forum-editor-intro{font-size:12px;color:var(--text-muted);margin:3px 0 20px}.forum-identity{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px}.forum-identity>label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;color:var(--text-muted);cursor:pointer}.forum-identity input[type=radio]{accent-color:var(--primary);display:inline-block;width:15px;height:15px;padding:0;margin:0;box-shadow:none}.forum-identity>input{flex:1 1 170px;max-width:260px;margin:0;font-size:12px;padding:9px 11px}.forum-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:23px;border-top:1px solid var(--border);padding-top:18px}.forum-editor-footer>span{font-size:11px;color:var(--text-muted)}#post-discard{max-width:440px}#post-discard h2{font-size:20px;margin:0 0 12px}#post-discard p{font-size:14px;color:var(--text-muted);line-height:1.8}#post-discard::backdrop{background:#172b4d38;backdrop-filter:blur(2px)}
#post-detail{width:min(800px,calc(100% - 32px));padding:26px 30px}#post-heading h2{font-size:24px;line-height:1.6;margin:15px 0;overflow-wrap:anywhere}.forum-owner-actions{display:flex;gap:16px;justify-content:flex-end;margin-top:13px;font-size:11px;color:var(--text-muted)}.forum-owner-actions button{font-size:11px;padding:0}.forum-post-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2.05;color:var(--text-secondary);margin:25px 0 30px}#post-replies{border-top:1px solid var(--border);padding-top:24px;scroll-margin-top:65px}.forum-reply{border-bottom:1px solid var(--border);padding:17px 0}.forum-reply .comment-meta{gap:8px}.forum-reply .author-avatar{width:25px;height:25px;font-size:11px}.forum-reply .comment-meta strong{font-size:12px}.forum-reply>p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.forum-reply blockquote{margin:12px 0 0;padding:10px 13px;border-left:3px solid var(--primary-border);background:var(--surface-subtle);font-size:11px;color:var(--text-muted);border-radius:0 6px 6px 0}.forum-reply blockquote p{margin:5px 0 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.forum-muted,.forum-replies-empty{color:var(--text-muted);font-size:12px;padding:22px 0}.forum-replies-empty{text-align:center;background:var(--surface-subtle);border:1px dashed var(--border);margin-top:15px;border-radius:8px}#post-reply-form{margin-top:22px;padding-top:4px}#post-reply-form textarea{font-size:14px;line-height:1.8}.forum-reply-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.forum-reply-footer small{color:var(--text-muted);font-size:10px}
@media(max-width:700px){.plaza-tabs{gap:22px;margin-bottom:16px}.plaza-tabs button{font-size:13px;padding:10px 0 12px}.plaza-tabs>span{font-size:9px}.forum-view .compact-selects{gap:3px}.forum-category-filter{font-size:10px;padding:7px 9px}.forum-view .list-toolbar .tabs{gap:15px}.forum-view .list-meta{margin-left:auto}.forum-view .list-controls{margin-bottom:10px}.forum-card{padding:16px;margin:10px 0}.forum-card-meta{font-size:9px;gap:6px}.forum-card-meta strong{font-size:11px}.forum-category{font-size:9px;padding:3px 6px}.forum-card-meta .own-badge{display:none}.forum-title{font-size:16px;margin:11px 0 7px}.forum-card>p{font-size:12px}.forum-card-footer{gap:8px;flex-wrap:wrap;margin-top:13px;padding-top:11px}.forum-card-footer>button{font-size:10px}.forum-card-footer>button>span{display:none}.forum-card-footer>span{font-size:9px}.forum-card-footer>div{gap:10px}.forum-card-footer>div button{font-size:10px}#post-editor,#post-detail{padding:20px;width:calc(100% - 20px)}#post-editor .modal-heading h2{font-size:21px}#post-fields>label{font-size:12px}#post-fields input,#post-fields textarea,#post-reply-form textarea{font-size:16px}#post-fields textarea{min-height:170px}.forum-identity{gap:12px}.forum-identity>label{font-size:11px}.forum-identity>input{font-size:16px;max-width:none}.forum-editor-footer .button{font-size:12px}#post-heading h2{font-size:21px}.forum-post-body{font-size:14px;line-height:1.95}.forum-reply>p{font-size:13px}.forum-reply .comment-meta strong{font-size:11px}.forum-reply .comment-meta time{font-size:9px}.forum-reply blockquote{padding:9px 11px}.forum-empty{padding:35px 16px}.forum-empty h3{font-size:17px}}
@media(max-width:380px){.plaza-tabs>span{display:none}.forum-card-footer>span{display:none}.forum-card-meta time{font-size:8px}.forum-card{padding:13px}}
@media(max-width:700px){.forum-view .page-heading{flex-direction:row;align-items:center;gap:10px}.forum-view .page-heading p{display:none}.forum-view .heading-actions{width:auto;flex:none}.forum-view #experience-scope button{font-size:10px;padding:6px 8px}.forum-view .compact-selects{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.forum-category-filter{flex-shrink:0}.forum-view .page-heading .eyebrow{font-size:8px}.forum-view .page-heading h1{font-size:19px}}
.profile-button{display:flex;align-items:center;gap:7px;min-width:0;max-width:180px;padding:5px 8px;border-radius:22px;color:var(--text-secondary);background:var(--surface-subtle)}.profile-button:hover{background:var(--surface-subtle)}.profile-button:focus-visible{outline:2px solid var(--primary-border);outline-offset:3px}#profile-avatar,#profile-preview-avatar{display:grid;place-items:center;flex:none;background:var(--primary-tint);color:var(--primary-strong);border-radius:50%;width:28px;height:28px;font-size:13px}#profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px;font-size:12px}#profile-dialog{max-width:480px}#profile-dialog h2{font-size:24px;margin-bottom:5px}.profile-summary{display:flex;align-items:center;gap:13px;margin:20px 0 25px}#profile-preview-avatar{width:50px;height:50px;font-size:22px}.profile-summary>div{min-width:0}.profile-summary strong{display:block;overflow-wrap:anywhere;font-size:16px}.profile-summary p{font-size:12px;color:var(--text-muted);margin:5px 0 0}.profile-help,.identity-hint{font-size:12px;line-height:1.8;color:var(--text-muted);overflow-wrap:anywhere}.profile-help{margin:9px 0 22px}.profile-email{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;border:1px solid var(--border);border-radius:9px;background:var(--surface-subtle);padding:14px;font-size:12px}.profile-email strong{color:var(--text-secondary);font-weight:500;overflow-wrap:anywhere;min-width:0}.profile-email small{color:var(--text-muted);margin-left:auto}.profile-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:26px}.forum-identity .identity-hint{flex-basis:100%;margin:0}.publish-identity .identity-hint{margin:10px 0 0}.profile-button[hidden]{display:none}@media(max-width:700px){.profile-button{padding:3px;max-width:95px}#profile-name{max-width:52px;font-size:10px}#profile-avatar{width:24px;height:24px;font-size:11px}#profile-dialog{padding:20px}#profile-form input{font-size:16px}.profile-email{align-items:flex-start;flex-direction:column}.profile-email small{margin-left:0}}
@media(max-width:700px){.topbar .top-right .button{white-space:nowrap}}@media(max-width:380px){#profile-name{display:none}.profile-button{gap:0}}

#note-conflict{padding:18px;margin:16px 0;border:1px solid var(--primary-border);border-radius:12px;background:var(--surface-subtle)}#note-conflict pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font:inherit;background:white;border-radius:8px;padding:12px}#note-conflict p{font-size:13px;color:var(--text-muted)}#note-conflict>div{display:flex;flex-wrap:wrap;gap:8px}.withdrawn-notice{padding:14px 18px;background:var(--surface-subtle);border-radius:10px;color:var(--text-secondary);font-size:14px}

/* Shared theme components. */
body{background:var(--surface-subtle);color:var(--text-primary)}.topbar{border-bottom-color:var(--border)}.brand-icon{background:var(--primary-soft);color:var(--primary)}.brand strong{color:var(--text-primary)}.brand strong span{color:var(--text-muted)}.main-nav button{color:var(--text-secondary)}.main-nav button.active,.plaza-tabs button.active{color:var(--primary)}.main-nav button.active:after,.plaza-tabs button.active:after{background:var(--primary)}.main-nav b{background:var(--primary-soft);color:var(--primary)}
.button.primary,.calendar-footer .calendar-apply{background:var(--primary);color:white;border-color:var(--primary)}.button.primary:hover{background:var(--primary)}.button.danger,.delete-link{color:#b42318}.button.danger{background:#fff1f0;border:1px solid #fecaca}.button:disabled{opacity:.5;cursor:default}.page-heading h1{color:var(--text-primary)}.page-heading h1 span{background:linear-gradient(transparent 65%,var(--primary-soft) 65%)}
.page-heading p,.account-summary,.eyebrow,.modal-intro,.editor-help,.editor-heading p,.publish-identity p,.identity-hint,.profile-help,.profile-summary p,.forum-editor-intro{color:var(--text-muted)}.demo-label,#logout-button{color:var(--text-muted)}.profile-button{color:var(--text-secondary);background:var(--primary-soft)}.profile-button:hover{background:var(--primary-soft)}#profile-avatar,#profile-preview-avatar,.author-avatar{color:var(--primary);background:var(--primary-soft)}
#submissions-button,#admin-button{color:var(--text-secondary);font-size:12px;white-space:nowrap;padding:7px 4px}#admin-button{color:var(--primary);font-weight:600}.top-right{gap:10px}.main-nav{gap:20px}
.search-box{border-color:var(--border)}.search-box input::placeholder{color:var(--text-muted)}.compact-filters{border-color:var(--border)}.filter-trigger{background:var(--primary-soft);color:var(--text-secondary)}.filter-trigger>span{color:var(--text-muted)}.filter-trigger.is-filtered{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary)}.filter-trigger:hover{background:var(--primary-soft)}.filter-trigger .ui-icon,.date-input .ui-icon{color:var(--text-muted)}.tabs button{color:var(--text-muted)}.tabs button.active{color:var(--primary);border-color:var(--primary)}.study-progress{color:var(--primary-strong)}.list-meta,.result-count,.reset-filters,.pagination-meta{color:var(--text-muted)}.pagination{border-color:var(--border)}.page-buttons button[aria-current=page]{background:var(--primary);color:white}
.question-card{background:var(--surface);border-color:var(--border);box-shadow:none}.question-card.is-reviewed{background:var(--primary-soft);box-shadow:inset 4px 0 0 var(--primary)}.question-card:hover{border-color:var(--primary-border);background:var(--primary-soft)}.question-card.is-reviewed:hover{background:var(--primary-soft)}.question-title{color:var(--text-primary)}.card-top,.exam-date,.exam-date time,.knowledge-path,.card-actions .discussion-link,.card-actions .save-button{color:var(--text-secondary)}.card-top strong{color:var(--text-secondary)}.card-top .sample-badge{background:var(--surface-subtle);color:var(--text-muted);border-color:var(--border)}.knowledge-path button{color:var(--primary)}.review-button{color:var(--primary);border:1px solid var(--primary-border);background:var(--primary-soft);font-weight:600}.review-button.reviewed{color:white;background:var(--primary);border-color:var(--primary)}.review-button.reviewed:hover{background:var(--primary)}.note-button{background:var(--primary-soft);border-color:var(--border);color:var(--text-secondary)}.note-button.has-note{background:var(--primary-soft);color:var(--primary);border-color:var(--primary-border)}.encounter-count{background:var(--primary-soft);border-color:var(--border);color:var(--primary-strong)}.algorithm-question>div,.algorithm-date{color:var(--text-muted)}.difficulty{background:#fff4d6;color:#865200}.difficulty.hard{background:#ffebe8;color:#a92d1c}
input,select,textarea{border-color:var(--border);color:var(--text-primary);background:var(--primary-soft)}input::placeholder,textarea::placeholder{color:var(--text-muted)}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #172b4d1a}button:focus-visible,a:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.close{color:var(--text-muted)}.tag{color:var(--text-secondary);background:var(--surface-subtle)}.detail-body,.forum-post-body{color:var(--text-secondary)}.detail-knowledge>span,.note-status-line,.comment-meta time,.discussion-note,.encounter-help,.encounter-heading>span,.encounter-source,.note-footer>small{color:var(--text-muted)}.detail-knowledge strong{color:var(--text-primary)}.encounter-panel{background:var(--primary-soft);border-color:var(--border)}.encounter-panel summary{color:var(--primary-strong)}.source-experience{background:var(--primary-soft);border-color:var(--border);color:var(--primary-strong)}.comment-form-footer>span,.comment-actions button{color:var(--text-muted)}.form-error{color:#b42318}
.select-option.selected,.date-presets>button.selected{background:var(--primary-soft);color:var(--primary)}.select-option:hover,.date-presets>button:hover{background:var(--primary-soft)}.date-presets>button,.calendar-grid>button{color:var(--text-secondary)}.calendar-grid>button.selected{background:var(--primary);color:var(--text-inverse)}.calendar-grid>button.in-range{background:var(--primary-soft)}.calendar-week,.calendar-hint,.calendar-footer{color:var(--text-muted)}.range-values>span.active{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary)}.calendar-nav>button,.calendar-nav select,.calendar-footer button{color:var(--primary-strong)}.date-input{color:var(--text-secondary);border-color:var(--border);background:var(--primary-soft)}
.experience-tags>span{color:var(--text-secondary);background:var(--surface-subtle)}.experience-card-meta,.experience-card>p,.experience-count,.experience-card-footer,.forum-card>p,.forum-card-meta{color:var(--text-muted)}.experience-title,.forum-title{color:var(--text-primary)}.experience-card-footer button,.forum-card-footer>button{color:var(--primary-strong)}.identity-options label:has(input:checked){background:var(--primary-soft);border-color:var(--primary-border)}.identity-options label span,.editor-section h3,.publish-identity h3{color:var(--text-secondary)}.identity-options label small{color:var(--text-muted)}.question-number,.editor-section h3>span{background:var(--primary-soft);color:var(--primary)}.add-question-actions button{border-color:var(--primary-border);color:var(--primary-strong)}.forum-category-filter.active{color:var(--primary);background:var(--primary-soft);border-color:var(--primary-border)}
.moderation-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:11px;padding:4px 8px;border-radius:6px;font-weight:600;line-height:1.4;background:#fff4d6;color:#8a5900}.moderation-badge.approved{background:var(--primary-soft);color:var(--primary-strong)}.moderation-badge.rejected{background:#ffebe8;color:#a92d1c}.moderation-notice,.my-encounter-submissions{background:#fff8e8;padding:14px;border:1px solid #f0ddb1;border-radius:9px;color:#795917;font-size:13px;line-height:1.8}.my-encounter-submissions{margin-top:15px}.my-encounter-submissions p{margin:9px 0}.my-encounter-submissions p>span:last-child:not(.moderation-badge){display:block}.moderation-reason{color:#9c3f22;font-size:13px;line-height:1.8;background:#fff4ee;border-radius:6px;padding:8px 12px;white-space:pre-wrap;overflow-wrap:anywhere}
#moderation-dialog{width:min(1050px,calc(100% - 32px));padding:0;max-height:90dvh}#moderation-dialog>p,#moderation-dialog>form,#moderation-tabs,#moderation-list{margin-left:24px;margin-right:24px}.moderation-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:white;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--border)}.moderation-heading h2{font-size:24px;margin:5px 0 0}.moderation-tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);margin-bottom:15px}.moderation-tabs button{padding:12px 0;border-bottom:2px solid transparent;color:var(--text-muted)}.moderation-tabs button.active{border-color:var(--primary);color:var(--primary);font-weight:600}.moderation-filter{display:flex;align-items:flex-end;gap:12px;padding:5px 0 15px}.moderation-filter label{margin:0;font-size:12px}.moderation-filter label:nth-child(2){flex:1}.moderation-filter input,.moderation-filter select{margin-top:5px;height:39px;padding:8px 12px}.moderation-filter .button{height:39px;white-space:nowrap}.moderation-card{border:1px solid var(--border);border-radius:10px;padding:17px;margin-bottom:12px}.moderation-card h3{font-size:16px;margin:12px 0;color:var(--text-primary);overflow-wrap:anywhere}.moderation-card-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--text-muted)}.moderation-card-top time{margin-left:auto}.moderation-body{font-size:14px;line-height:1.8;color:var(--text-secondary);white-space:pre-wrap;overflow-wrap:anywhere}.moderation-card-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.moderation-card-actions button{font-size:12px;padding:7px 12px}.moderation-empty{text-align:center;padding:50px 0;color:var(--text-muted)}.moderation-card>time{display:block;color:var(--text-muted);font-size:12px;margin-top:8px}.moderation-card>p{font-size:13px;overflow-wrap:anywhere}.moderation-pagination{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--border);padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--text-muted)}.moderation-pagination>div{display:flex;gap:8px}#moderation-action{width:min(650px,calc(100% - 32px));padding:24px}#moderation-action h2{font-size:22px}#moderation-action-source{color:var(--text-secondary);font-size:14px;line-height:1.8;overflow-wrap:anywhere}#moderation-action-fields{padding:0;border:0;min-width:0}.moderation-target-search{display:flex;gap:8px;align-items:center}.moderation-target-search input{margin:0;min-width:0}.moderation-target-search button{white-space:nowrap}.moderation-target-option{display:flex;gap:10px;align-items:center;border:1px solid var(--border);border-radius:7px;padding:10px;margin:7px 0;font-size:13px}.moderation-target-option input{width:16px;flex-shrink:0;margin:0}.moderation-target-option small{display:block;margin-top:5px;color:var(--text-muted)}.moderation-target-option strong{overflow-wrap:anywhere}.moderation-target-option:has(input:checked){border-color:var(--primary);background:var(--primary-soft)}#moderation-target-results{max-height:240px;overflow:auto;margin-top:10px}.moderation-merge-help{color:var(--text-muted);font-size:12px;line-height:1.8}.moderation-action-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
.experience-card-footer{flex-wrap:wrap;gap:10px}.experience-feedback-summary{font-size:12px;margin-right:auto}.experience-evaluations{border:1px solid var(--border);border-radius:12px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:25px 0;background:var(--primary-soft)}.experience-evaluations h3{font-size:16px;margin:0 0 8px}.experience-evaluations p{color:var(--text-muted);font-size:12px;line-height:1.7;margin:0}.experience-evaluations>div:last-child{display:flex;gap:8px;flex-shrink:0}.evaluation-button{padding:10px 14px;border:1px solid var(--primary-border);border-radius:8px;background:var(--surface);color:var(--primary-strong);font-size:13px}.evaluation-button.selected{background:var(--primary);border-color:var(--primary);color:var(--text-inverse)}.evaluation-button:disabled{opacity:.6;cursor:default}#experience-comments{border-top:1px solid var(--border);padding-top:20px}.experience-comment{padding:17px 0;border-bottom:1px solid var(--border)}.experience-comment-reply{padding-left:24px;border-left:2px solid var(--border)}.experience-comment>p{font-size:14px;white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere;color:var(--text-secondary)}.experience-comment>small{font-size:11px;color:var(--text-muted)}.experience-comment-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--text-muted)}.experience-comment-footer>label{display:flex;align-items:center;gap:6px;margin:0}.experience-comment-footer input{width:15px;margin:0}.experience-comment-footer button{margin-left:auto}.experience-comment-footer>span{overflow-wrap:anywhere}
@media(max-width:1200px){.topbar{flex-wrap:wrap;gap:8px}.topbar .main-nav{order:3;width:100%;height:40px}.topbar .top-right{margin-left:auto}.topbar .main-nav button{padding-top:8px;padding-bottom:10px}}
@media(max-width:700px){#submissions-button,#admin-button{font-size:10px;padding:4px 2px}.top-right{gap:6px}.topbar{padding:10px 12px}.topbar .top-right .button{font-size:11px;padding:8px}.topbar .main-nav{gap:20px;overflow-x:auto;height:36px}.main-nav button{white-space:nowrap}.question-card.is-reviewed{box-shadow:inset 3px 0 0 var(--primary)}.review-button{font-size:10px}.moderation-filter{flex-wrap:wrap}.moderation-filter label:nth-child(2){flex-basis:60%}.moderation-filter .button{margin-left:auto}#moderation-dialog{width:calc(100% - 16px)}#moderation-dialog>p,#moderation-dialog>form,#moderation-tabs,#moderation-list{margin-left:14px;margin-right:14px}.moderation-heading{padding:16px 14px}.moderation-heading h2{font-size:21px}.moderation-tabs{gap:16px;overflow:auto;white-space:nowrap;font-size:12px}.moderation-card{padding:13px}.moderation-card h3{font-size:15px}.moderation-pagination{padding:12px 14px;flex-wrap:wrap}.moderation-pagination .button{padding:8px 10px}#moderation-action{padding:18px}.experience-evaluations{padding:15px;flex-direction:column;align-items:flex-start}.evaluation-button{font-size:12px}.experience-comment-footer{gap:8px}.experience-comment-footer>span{flex-basis:55%;font-size:11px}.experience-feedback-summary{flex-basis:100%;font-size:11px}.experience-card-footer>button{font-size:11px}.experience-comment .comment-meta{flex-wrap:wrap}.experience-comment .comment-meta time{font-size:10px}}

#moderation-dialog .modal-intro,.note-private{background:var(--primary-soft);color:var(--text-secondary);border-color:var(--border)}#account-summary,.plaza-tabs>span,.page-footer,.page-size,.stat-card p,.stat-card .stat-icon,.stat-badge,.experience-scope button{color:var(--text-muted)}.experience-scope{background:var(--primary-soft)}.experience-scope button.active{color:var(--primary)}.page-size select{color:var(--text-secondary);border-color:var(--border)}#toast{background:var(--primary);color:var(--text-inverse)}

/* Reuse the same blue accent; completion also has a check and explicit label. */
body,.list-controls{background:var(--canvas)}
.topbar{background:var(--surface)}
.topbar .brand{color:var(--text-primary)}
.topbar .brand-icon{background:var(--primary);color:var(--text-inverse)}
.topbar .brand strong>span{color:var(--text-muted)}
.metric-icon{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary)}
.metric-icon .ui-icon{width:18px;height:18px}
.metric-tip{background:var(--primary-soft);color:var(--primary-strong)}
.metrics p,footer{color:var(--text-muted)}
.search-box>span{color:var(--text-muted);display:flex;align-items:center}
.search-box>span .ui-icon{width:19px;height:19px}
.option-search:focus-within{border-color:var(--primary-border);box-shadow:var(--focus-ring)}
.option-search input:focus-visible{outline:none}
.search-box:focus-within{border-color:var(--primary-border);box-shadow:var(--focus-ring)}
.button.primary,.calendar-footer .calendar-apply{background:var(--primary);border-color:var(--primary);color:var(--text-inverse)}
.button.primary:hover,.calendar-footer .calendar-apply:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.filter-trigger:hover,.date-input:hover{border-color:var(--primary-border);background:var(--primary-soft)}
.filter-trigger[aria-expanded=true],.date-input[aria-expanded=true]{border-color:var(--primary);box-shadow:var(--focus-ring)}
.select-option[aria-selected=true],.date-presets button.selected{background:var(--primary-soft);color:var(--primary-strong)}
.calendar-grid button.selected{background:var(--primary);color:var(--text-inverse)}
.calendar-grid button.in-range{background:var(--primary-soft);color:var(--primary-strong)}
.calendar-grid button.selected:hover{background:var(--primary-hover);color:var(--text-inverse)}
.auth-tabs button.active{border-color:var(--primary);color:var(--primary)}
.question-card.is-reviewed{background:var(--primary-soft);box-shadow:inset 4px 0 0 var(--primary)}
.question-card.is-reviewed:hover{background:var(--primary-soft-hover)}
.review-button,.note-button{background:var(--surface);border:1px solid var(--border-strong);color:var(--text-secondary)}
.review-button:hover,.note-button:hover{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary-strong)}
.review-button.reviewed,
.review-button.reviewed:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:var(--text-inverse)}
.note-button.has-note{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary-strong)}
.study-progress{color:var(--primary-strong)}
.moderation-badge.approved{background:var(--primary-soft);color:var(--primary-strong)}
.publish-identity label:has(input:checked),.identity-options label:has(input:checked){border-color:var(--primary-border);background:var(--primary-soft)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
@media(max-width:700px){.question-card.is-reviewed{box-shadow:inset 3px 0 0 var(--primary)}}

/* Shared folded-M brand mark; favicons use a separate optical size. */
.topbar .brand{gap:8px}
.brand .brand-icon{display:block;flex:none;width:36px;height:36px;background:transparent;border-radius:0;transform:none}
.brand-icon img{display:block;width:100%;height:100%;object-fit:contain}
.topbar .brand strong{letter-spacing:.6px}
.topbar .brand strong>span{letter-spacing:3.3px;font-weight:500}
@media(max-width:700px){.topbar .brand-icon{width:30px;height:30px}.topbar .brand{gap:6px}}

/* Shared author choice: anonymous checkbox or the signed-in username. */
.identity-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0;margin:16px 0 0}
.identity-control label,.publish-identity .identity-control label{display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;border:0;background:transparent;color:var(--text-secondary);font-size:12px;line-height:1.6;cursor:pointer;font-weight:500}
.identity-control input[type=checkbox]{appearance:auto;accent-color:var(--primary);display:inline-block;flex:none;width:16px;height:16px;margin:0;padding:0;border:0;border-radius:3px;box-shadow:none}
.identity-control input[type=checkbox]:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.identity-control .identity-hint,.publish-identity .identity-control .identity-hint{font-size:12px;line-height:1.6;margin:0;color:var(--text-muted);overflow-wrap:anywhere}
.comment-form-footer,.experience-comment-footer,.forum-reply-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
.comment-form-footer .identity-control,.experience-comment-footer .identity-control,.forum-reply-footer .identity-control{margin:0;flex:1 1 220px}
.comment-form-footer>button,.experience-comment-footer>button,.forum-reply-footer>button{margin-left:auto;flex:none}
.comment-form-footer #comment-length{font-size:11px;color:var(--text-muted)}
.publish-identity{padding-top:18px;padding-bottom:18px}
.publish-identity .identity-control{margin:0}
.compact-identity{padding-left:0;padding-right:0}
/* Composite search fields own their border and focus ring; inner inputs do not. */
.search-box{height:46px;padding:0 14px;gap:10px;border-radius:12px;background:var(--surface);box-shadow:none;transition:border-color .15s,box-shadow .15s}
.search-box:hover{border-color:var(--border-strong)}
.search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb14}
.search-box input,.search-box input:focus,.search-box input:focus-visible{appearance:none;flex:1;width:100%;min-width:0;height:100%;padding:0;margin:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;font-size:13px;font-weight:400;line-height:1.5}
.search-box input::placeholder{color:var(--text-muted);font-weight:400}
.search-box input::-webkit-search-cancel-button,#control-popover .option-search input::-webkit-search-cancel-button{appearance:none}
.search-box kbd{border:0;background:var(--surface-subtle);padding:4px 7px;border-radius:5px;font-weight:400}
.search-clear{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;font-size:20px;line-height:1;color:var(--text-muted);padding:0}
.search-clear:hover{background:var(--surface-subtle);color:var(--text-primary)}
.search-clear[hidden]{display:none}
#control-popover .option-search{height:38px;margin:5px 6px 10px;padding:0 11px;gap:8px;border-radius:9px;background:var(--surface-subtle);border:1px solid var(--border);box-shadow:none;transition:border-color .15s,box-shadow .15s}
#control-popover .option-search:focus-within{border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 2px #2563eb14}
#control-popover .option-search .ui-icon{width:16px;height:16px;flex:none}
#control-popover .option-search input,#control-popover .option-search input:focus,#control-popover .option-search input:focus-visible{appearance:none;flex:1;width:100%;min-width:0;height:100%;padding:0;margin:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;font-size:12px;font-weight:400;line-height:1.5}
#control-popover .option-search input::placeholder{color:var(--text-muted);font-weight:400}
.compact-filters{padding:8px;border-radius:12px}
.filter-trigger{background:var(--surface-subtle);border:1px solid transparent;border-radius:9px}
.filter-trigger:hover{background:var(--surface);border-color:var(--border-strong)}
.filter-trigger.is-filtered{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary-strong)}
.filter-trigger[aria-expanded=true],.filter-trigger:focus-visible{outline:none;border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 2px #2563eb14}
@media(max-width:700px){.search-box{height:42px;padding:0 12px}.search-box input{font-size:16px}.search-box kbd{display:none}.compact-filters{padding:6px}.identity-control{gap:6px 10px}.identity-control label,.publish-identity .identity-control label,.identity-control .identity-hint,.publish-identity .identity-control .identity-hint{font-size:11px}.comment-form-footer,.experience-comment-footer,.forum-reply-footer{gap:10px}.comment-form-footer .identity-control,.experience-comment-footer .identity-control,.forum-reply-footer .identity-control{flex-basis:100%}.comment-form-footer #comment-length{margin-right:auto}.comment-form-footer>button,.experience-comment-footer>button,.forum-reply-footer>button{font-size:12px;padding:10px 16px}}

/* Shared menu configuration and collapsible comment conversations. */
#catalog-dialog{width:min(940px,calc(100vw - 32px));padding:28px}
#catalog-add-form fieldset{border:0;padding:0;margin:0;min-width:0}
#catalog-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--text-primary);font-weight:500;min-width:0}
#catalog-dialog input:not([type=checkbox]),#catalog-dialog select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--border);border-radius:9px;background:white;color:var(--text-primary);padding:10px 12px;font:inherit}
#catalog-dialog [hidden]{display:none!important}
.catalog-kind-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.catalog-kind-tabs button{border:1px solid var(--border);background:white;border-radius:8px;padding:8px 13px;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.catalog-kind-tabs button.active{background:var(--primary-soft);color:var(--primary);border-color:#bed2ff}
.catalog-add-fields{display:flex;align-items:end;gap:12px!important;background:var(--primary-soft);padding:16px!important;border-radius:12px}
.catalog-add-fields>label{flex:1}.catalog-add-fields>label:has([name=position]){flex:0 0 94px}
.catalog-help{color:var(--muted);font-size:13px;line-height:1.8;margin:14px 0 20px}
.catalog-option-row{display:flex;align-items:center;gap:18px;padding:13px 0;border-top:1px solid var(--border)}
.catalog-option-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.catalog-option-row strong{display:block;font-size:15px}.catalog-option-row small{display:block;color:var(--muted);margin-top:3px}
#catalog-dialog .catalog-enabled{flex-direction:row;align-items:center;white-space:nowrap}.catalog-enabled input{width:16px;height:16px;accent-color:var(--primary)}
.catalog-option-row>label:has([name=position]){flex-direction:row!important;align-items:center;width:130px}.catalog-option-row [name=position]{width:90px!important}
.comment-replies{margin:0 0 20px 48px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#f8faff}
.comment-replies>summary{display:flex;align-items:center;gap:8px;padding:11px 16px;color:var(--primary);font-size:14px;font-weight:600;cursor:pointer;list-style:none;user-select:none}
.comment-replies>summary::-webkit-details-marker{display:none}.thread-chevron{font-size:22px;line-height:16px;transition:transform .15s}.comment-replies[open] .thread-chevron{transform:rotate(90deg)}
.comment-replies .thread-content{border-top:1px solid var(--border);padding:0 16px;background:white}
.comment-replies .experience-comment-reply,.comment-replies .comment-reply,.comment-replies .forum-reply{margin:0!important;padding:16px 0!important;border-left:0!important;background:transparent}
.comment-replies .thread-loading{font-size:13px;color:var(--muted);padding:12px 0}.comment-replies .load-more{margin:10px 0 16px}
.comment-thread{min-width:0}.comment-thread p{overflow-wrap:anywhere}.comment-replies .comment-meta time{font-size:12px}
@media(max-width:640px){
 #catalog-dialog{padding:18px;width:calc(100vw - 20px)}
 .catalog-add-fields{flex-wrap:wrap;align-items:stretch}.catalog-add-fields>label{flex-basis:100%}.catalog-add-fields>label:has([name=position]){flex:1}
 .catalog-option-row{flex-wrap:wrap;gap:10px}.catalog-option-row>div{flex-basis:calc(100% - 80px)}.catalog-option-row>label:has([name=position]){width:auto;flex:1}
 .comment-replies{margin-left:12px}.comment-replies .thread-content{padding:0 12px}.comment-replies .comment-meta{flex-wrap:wrap}.comment-replies .comment-meta time{margin-left:0}
}
#catalog-dialog .catalog-enabled input[type=checkbox]{appearance:auto;flex:0 0 16px;width:16px;min-width:16px;max-width:16px;height:16px;margin:0;padding:0;border:0;box-shadow:none;accent-color:var(--primary)}
@media(max-width:640px){.catalog-add-fields>.button{align-self:flex-end}.catalog-option-row .catalog-enabled{flex:0 0 auto}}
@media(max-width:640px){
 #catalog-dialog .catalog-option-row{display:grid;grid-template-columns:minmax(0,1fr) 82px 50px;gap:12px 8px;width:100%;min-width:0}
 #catalog-dialog .catalog-option-row>div{grid-column:1/-1}
 #catalog-dialog .catalog-option-row .catalog-enabled{grid-column:1;align-self:end;height:38px}
 #catalog-dialog .catalog-option-row>label:has([name=position]){grid-column:2;display:flex;flex-direction:column!important;align-items:stretch;width:82px;gap:5px}
 #catalog-dialog .catalog-option-row [name=position]{flex:none;width:100%!important;max-width:100%;min-width:0;padding:8px}
 #catalog-dialog .catalog-option-row>.button{grid-column:3;align-self:end;padding:10px 4px;min-width:0}
}

.admin-footer-link{margin-left:14px;color:var(--primary);text-decoration:none}.admin-footer-link:hover{text-decoration:underline}

.password-field{position:relative;display:block;min-width:0;width:100%}
#auth-form .password-field input{width:100%;padding-right:52px}
.password-field .password-toggle{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:40px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-muted);cursor:pointer;touch-action:manipulation}
.password-field .password-toggle .ui-icon{width:20px;height:20px}
.password-field .password-toggle:hover{background:var(--primary-soft);color:var(--primary)}
.password-field .password-toggle[aria-pressed=true]{color:var(--primary)}
.password-field .password-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.password-field .password-toggle:disabled{cursor:default;opacity:.5}

#feedback-list{width:min(850px,calc(100vw - 32px));min-width:0;padding:28px}
#feedback-form fieldset{border:0;padding:0;margin:0;min-width:0}
#feedback-form label,#feedback-list label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px;color:var(--text-primary);font-weight:500;min-width:0}
#feedback-form textarea,#feedback-status{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-primary);font:inherit}
#feedback-form textarea{margin-top:0;resize:vertical;min-height:150px;line-height:1.8}
.feedback-read-time,.feedback-sender{font-size:13px;color:var(--text-muted);overflow-wrap:anywhere}
.feedback-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.feedback-footer>span{font-size:13px;color:var(--text-muted)}
.feedback-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.feedback-toolbar label{width:140px}
.feedback-card{padding:20px;border:1px solid var(--border);border-radius:12px;margin:14px 0;min-width:0}
.feedback-card-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--text-muted);font-size:12px;overflow-wrap:anywhere}.feedback-card-heading time{margin-left:auto}
.feedback-badge{border-radius:5px;padding:4px 8px;font-weight:600}.feedback-badge.unread{background:var(--primary-soft);color:var(--primary)}.feedback-badge.read{background:var(--surface-subtle);color:var(--text-muted)}
.feedback-body{font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-primary);margin:16px 0}
.admin-page #feedback-list{padding:0;width:100%;max-width:none}
@media(max-width:640px){#feedback-list{padding:18px;width:calc(100vw - 20px)}.feedback-footer{flex-wrap:wrap}.feedback-footer .button{width:100%}#feedback-form textarea{font-size:16px}.feedback-card{padding:16px}.feedback-card-heading time{margin-left:0;width:100%}.feedback-toolbar label{width:120px}}

#feedback-form{padding:0 0 24px;border-bottom:1px solid var(--border)}
.feedback-history-title{font-size:18px;margin:24px 0 0;color:var(--text-primary)}
#feedback-list .feedback-toolbar{margin-top:16px}
#feedback-button:hover{color:var(--primary)}
.main-nav{overflow-x:auto;scrollbar-width:none}.main-nav button{flex-shrink:0}
#feedback-list .moderation-pagination{position:static;padding:14px 0}
.main-nav button:focus-visible{outline-offset:-3px}

/* Keep long option lists inside the visible viewport, including the phone keyboard. */
#control-popover.select-popover{display:flex;flex-direction:column;overflow:hidden}
#control-popover.select-popover:not(:popover-open){display:none}
.select-popover .picker-heading,.select-popover .option-search{flex-shrink:0}
.select-popover .option-list{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
@media(max-width:600px){.option-search input{font-size:16px}.select-option{min-height:44px}}

.feedback-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#feedback-thread{width:680px;max-width:calc(100vw - 24px)}
.feedback-conversation{border:1px solid var(--border);border-radius:12px;padding:16px;margin:14px 0;background:var(--surface-subtle)}
.feedback-conversation.admin-reply{background:var(--primary-soft)}
.feedback-conversation>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.feedback-conversation time{color:var(--text-muted);font-size:12px}.feedback-conversation p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin-bottom:0}
#feedback-reply-form{border-top:1px solid var(--border);margin-top:20px;padding-top:12px}
#feedback-thread .moderation-pagination{position:static}

.email-code-row{display:flex;align-items:center;gap:10px;margin-top:8px}.email-code-row input{min-width:0;flex:1;margin-top:0}.email-code-row button{flex-shrink:0;margin:0;white-space:nowrap}
.auth-forgot{display:block;margin:14px 0 0 auto;color:var(--primary);font-size:13px}.form-error.form-success{color:#24804c}
#password-dialog{max-width:460px}#password-form fieldset{border:0;margin:0;padding:0;min-width:0}

/* Interview editor: a compact form with a separate scrolling body. */
#experience-editor{width:min(960px,calc(100vw - 64px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;border-radius:16px;background:var(--surface)}
#experience-form{display:flex;flex-direction:column;width:100%;max-height:inherit;min-height:0}
#experience-editor .editor-heading{display:flex;align-items:flex-start;gap:14px;flex:none;padding:24px 30px 22px;border-bottom:1px solid var(--border)}
#experience-editor .editor-heading-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;margin-top:2px;border-radius:10px;background:var(--primary-soft);color:var(--primary)}
#experience-editor .editor-heading-icon .ui-icon{width:21px;height:21px}
#experience-editor .editor-heading h2{margin:0;font-size:25px;line-height:1.4;font-weight:700;letter-spacing:-.5px}
#experience-editor .editor-heading p{margin:7px 0 0;font-size:13px;line-height:1.6;color:var(--text-muted)}
#experience-editor .editor-heading .close{margin-left:auto;flex:none;width:32px;height:32px;padding:0;border-radius:7px;font-size:27px}
#experience-editor .editor-heading .close:hover{background:var(--surface-subtle)}
#experience-editor .editor-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:20px}
#experience-fields{min-width:0;border:0;padding:0;margin:0}
#experience-editor .editor-section{padding:24px 30px;border-bottom:1px solid var(--border)}
#experience-editor .editor-section h3{display:flex;align-items:center;gap:10px;margin:0;color:var(--text-primary);font-size:16px;font-weight:600;line-height:1.5}
#experience-editor .editor-section h3>span{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:7px;background:var(--primary-soft);color:var(--primary);font:600 12px monospace}
#experience-editor .editor-section h3>b{padding:2px 8px;border-radius:7px;background:var(--surface-subtle);color:var(--text-muted);font-size:12px;font-weight:500}
#experience-editor .editor-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px}
#experience-editor .editor-section-title>span{font-size:12px;font-weight:400;color:var(--text-muted)}
#experience-editor .editor-section label{display:block;min-width:0;margin:16px 0 0;font-size:13px;line-height:1.5;font-weight:500;color:var(--text-primary)}
#experience-editor .editor-section small{margin-left:6px;font-size:12px;font-weight:400;color:var(--text-muted)}
#experience-editor .editor-section input:not([type=hidden]),#experience-editor .editor-section select,#experience-editor .editor-section textarea,#experience-editor .date-input{width:100%;min-width:0;margin-top:7px;border:1px solid var(--border);border-radius:9px;background-color:var(--surface-subtle);color:var(--text-primary);font-size:14px;font-weight:400;line-height:1.5}
#experience-editor .editor-section input:not([type=hidden]),#experience-editor .editor-section select,#experience-editor .date-input{height:44px;padding:10px 12px}
#experience-editor .editor-section select{padding-right:32px}
#experience-editor .editor-section textarea{padding:11px 13px;min-height:78px;resize:vertical}
#experience-editor .editor-section input::placeholder,#experience-editor .editor-section textarea::placeholder{color:#8592a3;font-weight:400}
#experience-editor .editor-section input:focus,#experience-editor .editor-section select:focus,#experience-editor .editor-section textarea:focus{outline:none;border-color:var(--primary);background-color:var(--surface);box-shadow:var(--focus-ring)}
#experience-editor .date-input:hover{border-color:var(--primary-border);background:var(--surface)}
#experience-editor .date-input[aria-expanded=true]{border-color:var(--primary);box-shadow:var(--focus-ring)}
#experience-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
#experience-editor .editor-interview-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}
#experience-editor .editor-section .editor-field-help{display:block;margin:6px 0 0;font-size:11px}
#experience-editor .experience-question-editor{margin-top:16px;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
#experience-editor .question-editor-heading{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--border)}
#experience-editor .question-number{display:grid;place-items:center;width:30px;height:30px;flex:none;padding:0;border-radius:7px;font:600 12px monospace}
#experience-editor .question-editor-heading .question-kind{width:104px;height:34px;margin:0;padding:6px 28px 6px 12px;font-size:13px;font-weight:500;background-color:var(--surface-subtle)}
#experience-editor .question-editor-heading>div{display:flex;align-items:center;gap:4px;margin-left:auto}
#experience-editor .question-editor-heading button{min-width:30px;height:32px;padding:4px 8px;border-radius:6px;font-size:13px;color:var(--text-muted)}
#experience-editor .question-editor-heading button:hover:not(:disabled){background:var(--surface-subtle);color:var(--primary)}
#experience-editor .question-editor-heading button:disabled{opacity:.35;cursor:default}
#experience-editor .question-editor-title{margin-top:12px}
#experience-editor .question-editor-title textarea{height:64px;min-height:64px}
#experience-editor .question-editor-settings{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px}
#experience-editor .question-followup-label textarea{font-size:13px;line-height:1.7}
#experience-editor .add-question-actions{display:flex;gap:12px;margin-top:14px}
#experience-editor .add-question-actions button{flex:1;min-width:0;min-height:42px;padding:10px 14px;border:1px solid var(--primary-border);border-radius:8px;background:var(--surface);font-size:13px;font-weight:500;color:var(--primary)}
#experience-editor .add-question-actions button:hover{background:var(--primary-soft);border-color:var(--primary)}
#experience-editor .editor-help{margin:10px 0 0;font-size:11px;line-height:1.7;color:var(--text-muted)}
#experience-editor .editor-review{border-bottom:0;padding-top:20px;padding-bottom:20px}
#experience-editor .editor-review summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
#experience-editor .editor-review summary::-webkit-details-marker{display:none}
#experience-editor .editor-review summary>span{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:12px}
#experience-editor .editor-review summary .ui-icon{width:16px;height:16px}
#experience-editor .editor-review[open] summary .ui-icon{transform:rotate(180deg)}
#experience-editor .editor-review summary:focus-visible{outline:2px solid var(--primary);outline-offset:5px;border-radius:5px}
#experience-editor .editor-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;flex:none;padding:16px 30px;border-top:1px solid var(--border);background:var(--surface)}
#experience-editor .editor-publish-status{min-width:0;flex:1}
#experience-editor .identity-control{margin:0;gap:5px 14px}
#experience-editor .identity-control label{margin:0;font-size:13px}
#experience-editor .identity-control .identity-hint{font-size:12px}
#experience-publish-hint{display:block;margin-top:4px;font-size:11px;color:var(--text-muted)}
#experience-editor .editor-footer .button{flex:none;min-height:44px;padding:10px 22px;border-radius:9px;font-size:14px;white-space:nowrap}
#experience-form-error{flex-basis:100%;margin:0;font-size:12px;line-height:1.6}
#experience-form-error:empty{display:none}
@media(max-width:700px){
 #experience-editor{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:13px}
 #experience-editor .editor-heading{padding:20px;gap:10px}
 #experience-editor .editor-heading h2{font-size:22px}
 #experience-editor .editor-heading p{font-size:12px}
 #experience-editor .editor-heading-icon{width:32px;height:32px}
 #experience-editor .editor-section{padding:20px}
 #experience-editor .editor-section-title>span{display:none}
 #experience-editor .form-grid{grid-template-columns:minmax(0,1fr)}
 #experience-editor .editor-interview-meta{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 #experience-editor .editor-interview-meta>label:last-child{grid-column:1/-1}
 #experience-editor .editor-section input:not([type=hidden]),#experience-editor .editor-section select,#experience-editor .editor-section textarea,#experience-editor .date-input{font-size:16px}
 #experience-editor .experience-question-editor{padding:14px}
 #experience-editor .question-editor-heading{gap:8px}
 #experience-editor .question-editor-heading .question-kind{width:100px;font-size:14px}
 #experience-editor .question-editor-heading button{padding:4px 5px;font-size:12px;min-width:27px}
 #experience-editor .question-editor-heading>div{gap:0}
 #experience-editor .question-editor-settings{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px}
 #experience-editor .question-editor-title textarea{min-height:76px}
 #experience-editor .add-question-actions{gap:10px}
 #experience-editor .add-question-actions button{padding:10px 5px;font-size:12px;min-height:44px}
 #experience-editor .editor-review{padding-top:18px;padding-bottom:18px}
 #experience-editor .editor-footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));gap:10px}
 #experience-editor .identity-control{gap:3px}
 #experience-editor .identity-control .identity-hint{flex-basis:100%;font-size:11px}
 #experience-editor .editor-footer .button{padding:10px 16px;font-size:13px}
}
@media(max-width:360px){
 #experience-editor .editor-heading,#experience-editor .editor-section,#experience-editor .editor-footer{padding-left:14px;padding-right:14px}
 #experience-editor .editor-heading-icon{display:none}
 #experience-editor .experience-question-editor{padding:12px}
 #experience-editor .question-editor-heading .question-kind{width:90px;padding-left:8px}
}

/* Shared content editor and safe Markdown rendering. */
.content-editor{border:1px solid var(--line,#dde4ee);border-radius:12px;overflow:hidden;background:#fff;min-width:0;margin-top:8px}
.content-toolbar{display:flex;align-items:center;gap:3px;padding:8px 10px;border-bottom:1px solid var(--line,#dde4ee);background:#f8fafc;flex-wrap:wrap}
.content-toolbar button{border:0;background:transparent;color:#52637d;padding:6px 8px;border-radius:6px;font-size:13px;line-height:20px;min-width:30px;cursor:pointer;font-weight:600}
.content-toolbar button:hover,.content-toolbar button[aria-pressed=true]{background:#eaf1ff;color:#2563eb}
.content-toolbar-spacer{flex:1}.content-editor textarea{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;min-height:110px;width:100%;padding:14px 16px!important}
.content-editor:focus-within{border-color:#5985ff;box-shadow:0 0 0 3px #2563eb12}.content-editor-hint{padding:7px 14px;color:#8190a5;font-size:11px;border-top:1px solid #f1f4f8;font-weight:400}
.content-preview{padding:16px;min-height:110px;max-height:440px;overflow:auto}.content-placeholder{color:#8490a4}
.rich-content{font-size:14px;line-height:1.8;color:inherit;overflow-wrap:anywhere;white-space:normal!important;min-width:0}
.rich-content p{margin:0 0 12px;white-space:normal!important}.rich-content>:last-child{margin-bottom:0}.rich-content h2,.rich-content h3,.rich-content h4,.rich-content h5{margin:20px 0 8px;font-weight:650;line-height:1.5}.rich-content h2{font-size:20px}.rich-content h3{font-size:17px}.rich-content h4,.rich-content h5{font-size:15px}.rich-content>:first-child{margin-top:0}
.rich-content ul,.rich-content ol{margin:8px 0 14px;padding-left:24px}.rich-content li{margin:3px 0}.rich-content blockquote{margin:12px 0;padding:10px 16px;border-left:3px solid #8ca9ec;background:#f4f7fd;border-radius:0 7px 7px 0;color:#617087}.rich-content a{color:#2563eb;text-decoration:underline;text-underline-offset:3px}.rich-content img{display:block;max-width:100%;max-height:600px;border-radius:8px;margin:12px 0;height:auto}.rich-content code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#eef2f8;padding:2px 5px;border-radius:4px;font-size:.9em;color:#374b75}.content-code{margin:12px 0;border:1px solid #e2e7f0;border-radius:9px;overflow:hidden;background:#f7f9fc}.content-code-heading{display:flex;justify-content:space-between;align-items:center;padding:5px 12px;background:#eef2f7;color:#748097;font-size:11px}.content-code-heading button{border:0;background:transparent;color:#526b98;cursor:pointer;font-size:11px;padding:4px}.rich-content pre{margin:0;padding:14px;overflow:auto;line-height:1.65;white-space:pre}.rich-content pre code{padding:0;background:none;white-space:pre;word-break:normal;overflow-wrap:normal}.rich-content hr{border:0;border-top:1px solid #e5eaf3;margin:20px 0}.content-table{overflow:auto;margin:12px 0}.rich-content table{border-collapse:collapse;width:100%;font-size:13px}.rich-content th,.rich-content td{border:1px solid #e1e7f0;padding:8px 12px;text-align:left}.rich-content th{background:#f5f7fb}.reply-target{font-size:12px;color:#7b889b;margin:7px 0;padding:6px 10px;background:#f6f8fc;border-left:2px solid #d6e0f0;border-radius:4px;white-space:normal}
@media(max-width:600px){.content-toolbar{gap:0;padding:6px}.content-toolbar button{padding:5px 6px;font-size:12px;min-width:26px}.content-editor-hint{font-size:10px}.rich-content{font-size:13px}}
.poll-add{border:1px dashed #c7d5ef;padding:9px 14px;color:#3764b1;border-radius:8px;font-size:13px;background:#fafcff;margin:14px 0}
.poll-editor,.discussion-poll{background:#f8faff;border:1px solid #dfe7f4;border-radius:12px;padding:18px;margin:14px 0;min-width:0}.poll-editor-heading,.poll-view-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.poll-editor-heading>button{font-size:12px;color:#8794a6}.poll-editor label{font-size:13px}.poll-editor input{font-size:13px;padding:10px 12px;margin-top:6px;height:auto}.poll-option-editor{display:flex;align-items:center;gap:10px;margin:8px 0}.poll-option-editor>span{color:#9ba8bd;font-size:12px}.poll-option-editor>input{flex:1;margin:0;min-width:0}.poll-option-editor>button{color:#a4afc0}.poll-editor [data-poll-option-add]{font-size:12px;color:#426bc1;padding:5px 0}.poll-settings{display:flex;gap:25px;align-items:center;margin:14px 0 4px;flex-wrap:wrap}.poll-multiple{display:flex;align-items:center;gap:7px;white-space:nowrap}.poll-multiple input{width:16px!important;height:16px!important;margin:0;accent-color:#2563eb}.poll-help{font-size:11px!important;line-height:1.7;color:#8a98ae;margin:10px 0 0}.poll-view-heading{font-size:11px;color:#7a8ba7}.discussion-poll h3{font-size:16px;margin:0 0 14px;line-height:1.5}.poll-vote-options{display:grid;gap:9px}.poll-vote-option{display:flex!important;align-items:center;gap:10px;position:relative;overflow:hidden;border:1px solid #e0e7f3;border-radius:8px;padding:11px 13px;margin:0!important;font-size:13px!important;background:white;font-weight:400!important}.poll-vote-option.selected{border-color:#98b3f5}.poll-vote-option>*:not(.poll-result-bar){position:relative}.poll-vote-option>input{width:15px!important;height:15px!important;padding:0;margin:0;accent-color:#2563eb;flex-shrink:0}.poll-vote-option>span:not(.poll-result-bar){flex:1}.poll-vote-option>b{font-size:12px;color:#4d71b3;white-space:nowrap}.poll-vote-option small{font-size:10px;font-weight:400;color:#899ab3;margin-left:5px}.poll-result-bar{position:absolute;inset:0 auto 0 0;background:#edf3ff}.poll-view-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.poll-view-footer>span{flex:1;font-size:11px;color:#8a98ae}.poll-view-footer .button{padding:8px 14px;font-size:12px}
#post-editor{width:760px;max-width:calc(100vw - 28px);padding:24px 28px}#post-editor .eyebrow{display:none}#post-editor h2{font-size:25px}#post-editor .forum-editor-intro{font-size:12px;margin:8px 0 18px;color:#8a96a9}#post-fields>label:first-child{max-width:220px}#post-editor .content-editor textarea{min-height:200px;max-height:330px}#post-editor label{font-size:13px}#post-editor input,#post-editor select{font-size:13px;padding:11px 13px}#post-editor .content-editor{margin-top:7px}#post-editor .forum-editor-footer{margin-top:18px;padding-top:18px;font-size:11px}#post-editor .forum-editor-footer .button{font-size:13px;padding:11px 20px}
@media(max-width:600px){#post-editor{padding:20px 16px}#post-editor h2{font-size:22px}.poll-editor,.discussion-poll{padding:14px}.poll-vote-option b small{display:block;text-align:right;margin:0}}
.content-editor [hidden]{display:none!important}
#post-editor{padding:0;overflow:hidden;max-height:calc(100dvh - 40px)}#post-form{display:flex;flex-direction:column;max-height:min(940px,calc(100dvh - 40px));min-height:0}#post-form>.modal-heading{flex-shrink:0;padding:22px 28px 16px;margin:0;position:static;background:#fff;border-bottom:1px solid #eef1f6}#post-form>.post-editor-content{overflow:auto;min-height:0;padding:0 28px 18px}#post-form>.forum-editor-footer{flex-shrink:0;margin:0;padding:16px 28px;border-top:1px solid #e7ebf3;background:#fff}#post-form>#post-error{flex-shrink:0;margin:0;padding:8px 28px;font-size:12px;max-height:62px;overflow:auto}#post-error:empty{display:none}.post-editor-content>fieldset{margin:0}.post-editor-content>.forum-editor-intro{margin:16px 0 18px!important}
@media(max-width:600px){#post-editor{padding:0;max-height:calc(100dvh - 24px)}#post-form{max-height:calc(100dvh - 24px)}#post-form>.modal-heading{padding:18px 16px 14px}#post-form>.post-editor-content{padding:0 16px 16px}#post-form>.forum-editor-footer{padding:14px 16px}#post-form>#post-error{padding:7px 16px}}

.user-profile-link{padding:0;background:none;border:0;color:inherit;font:inherit;font-weight:inherit;text-align:left;overflow-wrap:anywhere}.user-profile-link:hover{color:var(--primary);text-decoration:underline;text-underline-offset:3px}.user-profile-link:focus-visible,.user-profile-avatar:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:4px}.user-profile-avatar{padding:0;border:0;flex-shrink:0;font:inherit}.user-profile-avatar:hover{box-shadow:0 0 0 2px var(--primary-border)}
#profile-dialog{max-width:640px;padding:0;overflow:hidden}#profile-form{display:flex;flex-direction:column;max-height:min(86dvh,860px);padding:0}#profile-form>.modal-heading{padding:24px 28px 18px;margin:0;flex-shrink:0;border-bottom:1px solid var(--border)}#profile-dialog h2{margin:0;font-size:24px}.profile-subtitle{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--text-muted)}.profile-edit-body{padding:0 28px 24px;overflow-y:auto;overscroll-behavior:contain}.profile-summary{margin:22px 0 24px}.profile-fields{margin:0;padding:0;border:0;min-width:0}.profile-fields legend,.profile-account h3{width:100%;margin:0 0 16px;font-size:14px;font-weight:650;color:var(--text-primary)}.profile-fields legend small,.profile-account h3 small{margin-left:10px;font-size:11px;color:var(--text-muted);font-weight:400}.profile-fields label{display:block;margin:0 0 16px;font-size:13px}.profile-fields input,.profile-fields select,.profile-fields textarea{margin-top:8px;padding:11px 12px;font-size:14px;border-radius:8px}.profile-fields textarea{resize:vertical;min-height:84px;max-height:160px}.profile-fields label:has([name=username]){margin-bottom:0}.profile-fields .profile-help{margin:6px 0 18px;font-size:11px}.profile-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.profile-fields .profile-field-grid+.profile-help{margin-top:-5px}.profile-account{border-top:1px solid var(--border);padding-top:20px;margin-top:8px}.profile-email{padding:12px;font-size:12px}.profile-security-link{margin-top:12px;padding:0;font-size:12px;color:var(--primary)}#profile-form>.profile-footer{margin:0;padding:16px 28px;border-top:1px solid var(--border);background:var(--surface);flex-shrink:0}#profile-error{margin:0;padding:0 28px;flex-shrink:0;font-size:12px}#profile-error:not(:empty){padding-top:10px;padding-bottom:10px}
#public-profile-dialog{max-width:500px;width:calc(100% - 32px);padding:24px;overflow-y:auto;max-height:85dvh}#public-profile-dialog h2{font-size:17px;margin:0}.public-profile-summary{display:flex;align-items:center;gap:16px;margin:28px 0 20px}.public-profile-avatar{display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:26px}.public-profile-summary h3{margin:0;font-size:22px;overflow-wrap:anywhere}.public-profile-summary p,.profile-loading{font-size:12px;color:var(--text-muted);margin:7px 0 0}.public-profile-bio{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 22px}.public-profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px 0;border-top:1px solid var(--border);margin:0}.public-profile-facts dt{font-size:11px;color:var(--text-muted);margin-bottom:8px}.public-profile-facts dd{font-size:13px;margin:0;overflow-wrap:anywhere}.public-profile-skills{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 22px}.public-profile-skills span{font-size:12px;padding:6px 10px;border-radius:6px;background:var(--surface-subtle);color:var(--text-secondary)}.public-profile-website{display:block;font-size:13px;text-decoration:none;color:var(--primary);border-top:1px solid var(--border);padding-top:16px;overflow-wrap:anywhere}.public-profile-website span{display:block;margin-top:7px;color:var(--text-muted);font-size:12px}.public-profile-empty{color:var(--text-muted);font-size:13px;line-height:1.8;margin:24px 0}.public-profile-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--border);padding-top:16px;margin-top:22px}
@media(max-width:600px){#profile-dialog{width:calc(100% - 24px);padding:0}#profile-form{max-height:90dvh}#profile-form>.modal-heading{padding:20px 20px 16px}.profile-edit-body{padding:0 20px 20px}.profile-field-grid{grid-template-columns:minmax(0,1fr)}#profile-form>.profile-footer{padding:14px 20px}#profile-error{padding-left:20px;padding-right:20px}#profile-form input,#profile-form textarea,#profile-form select{font-size:16px}.profile-fields legend small{display:block;margin:5px 0 0}#public-profile-dialog{padding:20px}.public-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Lighter filters without a second surrounding card. */
.compact-filters{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.compact-selects,.algorithm-view .compact-selects,.experience-view .compact-selects{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.filter-trigger{height:36px;min-width:116px;flex:0 1 auto;padding:0 11px;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:7px;font-size:12px}.filter-trigger>strong{max-width:180px;font-weight:500}.filter-trigger>.ui-icon:last-child{margin-left:10px}.filter-trigger:hover{background:var(--surface-subtle);border-color:var(--border-strong)}.filter-trigger.is-filtered{background:var(--primary-soft);border-color:var(--primary-border);color:var(--primary)}.filter-trigger[aria-expanded=true]{border-color:var(--primary-border);box-shadow:none}.filter-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.date-filter{min-width:174px}.forum-view .compact-filters{padding:0}
#comment-form,#experience-comment-form,#post-reply-form{scroll-margin-top:70px}
#catalog-dialog .catalog-option-row{display:grid;grid-template-columns:minmax(0,1fr) auto 126px 44px;align-items:center;gap:20px;padding:12px 0;margin:0;min-height:64px}#catalog-dialog .catalog-option-row>div{grid-column:auto}#catalog-dialog .catalog-option-row label{margin:0;font-size:12px}#catalog-dialog .catalog-option-row strong{font-size:14px}#catalog-dialog .catalog-option-row small{font-size:11px}#catalog-dialog .catalog-option-row .catalog-enabled{display:flex;flex-direction:row;gap:6px;height:auto;grid-column:auto;align-self:center}#catalog-dialog .catalog-option-row .catalog-enabled input{width:15px;height:15px;margin:0;accent-color:var(--primary)}#catalog-dialog .catalog-option-row>.catalog-position{display:flex;flex-direction:row!important;align-items:center;gap:8px;width:126px;grid-column:auto}#catalog-dialog .catalog-option-row [name=position]{width:86px!important;height:36px;margin:0;padding:7px 10px;font-size:13px}#catalog-dialog .catalog-delete{padding:7px 0;color:#a55b4d;font-size:12px;background:none;align-self:center}.catalog-row-status{display:block;margin-top:4px;font-size:11px;color:var(--primary)}.catalog-row-status:empty{display:none}.pending-delete .catalog-row-status{color:#a55b4d}.pending-delete strong{color:var(--text-muted);text-decoration:line-through}.catalog-save-bar{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 0 0;background:var(--surface);border-top:1px solid var(--border)}#catalog-pending{font-size:12px;color:var(--text-muted);line-height:1.7}.catalog-save-bar>div{display:flex;align-items:center;gap:8px;flex-shrink:0}.catalog-save-bar .button{font-size:12px;padding:9px 12px}#catalog-dialog .catalog-help{font-size:11px;line-height:1.7}#catalog-dialog .catalog-add-fields{margin:0;border:1px solid var(--border);background:var(--surface-subtle);padding:14px!important;border-radius:9px}#catalog-dialog .catalog-add-fields>label{margin:0;font-size:12px}#catalog-dialog .catalog-add-fields input,#catalog-dialog .catalog-add-fields select{font-size:13px;margin-top:6px;padding:9px 10px;height:38px}#catalog-dialog .catalog-add-fields>.button{font-size:12px;height:38px;white-space:nowrap;background:var(--surface);border:1px solid var(--border);padding:9px 12px}
@media(max-width:700px){.compact-selects,.algorithm-view .compact-selects,.experience-view .compact-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.filter-trigger{height:35px;min-width:0;width:100%;font-size:11px;padding:0 9px;gap:6px}.filter-trigger>span{font-size:10px}.filter-trigger>strong{font-size:11px;max-width:none}.filter-trigger>.ui-icon:last-child{margin-left:auto}.date-filter{grid-column:1 / -1;min-width:0}.forum-view .compact-selects{display:flex}.catalog-save-bar{flex-wrap:wrap;gap:9px;padding-top:12px}.catalog-save-bar>div{width:100%;gap:5px;justify-content:flex-end}.catalog-save-bar .button{padding:9px 8px;font-size:11px}#catalog-dialog .catalog-option-row{grid-template-columns:minmax(0,1fr) 104px 42px;gap:10px 8px}#catalog-dialog .catalog-option-row>div{grid-column:1/-1}#catalog-dialog .catalog-option-row .catalog-enabled{grid-column:1}#catalog-dialog .catalog-option-row>.catalog-position{grid-column:2;flex-direction:row!important;width:104px;font-size:11px;gap:5px}#catalog-dialog .catalog-option-row [name=position]{width:70px!important;min-width:0;padding:7px}#catalog-dialog .catalog-delete{grid-column:3}#catalog-dialog .catalog-add-fields{padding:12px!important}#catalog-dialog .catalog-add-fields [name=value]{font-size:16px}.catalog-kind-tabs{gap:6px}}

/* External problem and interview sources. */
.source-link{display:inline-flex;align-items:center;gap:5px;max-width:100%;color:var(--primary-strong);font-size:12px;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
.source-link:hover{text-decoration:underline;text-underline-offset:3px}.source-link>span{flex:none}
.detail-source-links{display:flex;flex-wrap:wrap;gap:12px 22px;margin:14px 0 22px}.detail-source-links .source-link{font-size:13px}
.algorithm-question .source-link,.experience-tags .source-link{font-size:inherit}
.source-field-help{display:block;font-weight:400;font-size:11px;color:var(--text-muted);line-height:1.7;margin-top:6px}
@media(max-width:700px){.detail-source-links{gap:10px 18px}.detail-source-links .source-link{font-size:12px}.experience-card-footer .source-link{font-size:11px}.source-field-help{font-size:11px}}

#catalog-dialog .catalog-option-name select[name=scope]{display:block;width:150px;max-width:100%;height:30px;font-size:12px;padding:3px 24px 3px 8px;margin-top:5px}
