@font-face{font-family:Inter;src:url('assets/inter-latin.woff2?v=1') format('woff2');font-weight:100 900;font-display:swap}*{box-sizing:border-box}body{margin:0;color:#242829;background:#fff;font-family:Inter,Arial,sans-serif;font-size:13px}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:2px solid #77547f;outline-offset:3px}button:disabled{cursor:default}svg.icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center}[hidden]{display:none!important}aside{position:fixed;left:0;top:0;bottom:0;width:246px;background:#f8f8f9;border-right:1px solid #e6e6e9;display:flex;flex-direction:column;padding:26px 15px 0}.brand{display:flex;align-items:center;gap:10px;color:#38243e;text-decoration:none;padding:0 11px 26px}.brand>span:first-of-type{font-size:20px;letter-spacing:4px;font-weight:550}.beta{font-size:8px;letter-spacing:1px;border:1px solid #dedce2;border-radius:4px;padding:3px 4px;margin-left:auto;color:#86828e}.quick{display:flex;align-items:center;gap:9px;border:1px solid #e1e1e5;border-radius:7px;background:#fff;height:35px;padding:0 10px;color:#6f6c74;font-size:11px}.quick kbd{margin-left:auto;font-family:inherit;color:#98969e;font-size:10px}.mode{display:flex;padding:3px;background:#dbecee;background:#ebebee;border-radius:7px;margin:13px 0 17px}.mode button{flex:1;display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;padding:7px;border-radius:5px;color:#807d85}.mode .selected{background:white;color:#40294b;box-shadow:0 1px 3px #14182a14}.mode svg.icon{width:14px;height:14px}nav{overflow-y:auto;scrollbar-width:thin;padding-bottom:14px}.nav-item{width:100%;display:flex;gap:10px;align-items:center;text-align:left;min-height:33px;padding:7px 10px;font-size:11.5px;color:#64626a;border-radius:6px}.nav-item:hover:not(:disabled){background:#ebeaf0;color:#472e57}.nav-item.active{background:#e7e6ed;color:#3a284b;font-weight:550}.nav-item:disabled{color:#a09fa5}.nav-item small{margin-left:auto;font-size:8px;color:#9a98a1}.nav-label{font-size:8px;letter-spacing:1.3px;font-weight:600;color:#9c9ba3;margin:23px 10px 8px}.more{padding-left:37px;font-size:10.5px;color:#7f7d88;justify-content:space-between}.nav-divider{height:1px;background:#e6e6e9;margin:14px 9px}.account{display:flex;align-items:center;gap:10px;border-top:1px solid #e4e5e9;padding:17px 9px;margin-top:auto;flex-shrink:0}.avatar{width:29px;height:29px;background:#dde2e8;color:#454b62;border:1px solid #ced4dd;border-radius:50%;display:grid;place-items:center;font-size:11px}.account strong{display:block;font-size:11px;font-weight:550}.account span{display:block;font-size:9px;color:#95939b;margin-top:3px}.account .account-dot{width:5px;height:5px;background:#837f9b;border-radius:50%;margin-left:auto}.empty-recent{color:#9a99a1;font-size:11px;line-height:1.7;padding:0 10px}main{margin-left:246px;min-height:100vh}header{height:66px;border-bottom:1px solid #eef0f1;padding:0 33px;display:flex;align-items:center;justify-content:space-between}.breadcrumb,.header-right{display:flex;align-items:center;gap:12px;color:#807e87;font-size:11px}.breadcrumb .icon{width:14px;height:14px}.header-right{gap:20px}.preview{font-size:10px;color:#94929a;display:flex;align-items:center;gap:6px}.preview i{width:5px;height:5px;border-radius:50%;background:#abb0bc}.icon-button{display:flex;color:#94929b;padding:5px}#mobile-menu{display:none}#home-view{min-height:calc(100vh - 66px);display:flex;flex-direction:column}.hero{width:min(690px,calc(100% - 70px));margin:auto;padding:58px 0 40px;text-align:center}.spectra-mark{width:62px;height:62px;margin:0 auto 23px;color:#615176}.spectra-mark svg{width:100%;height:100%}.eyebrow{font-size:9px;letter-spacing:2.1px;font-weight:550;color:#8a8491}.hero h1{font-size:clamp(27px,2.55vw,38px);letter-spacing:-1.6px;font-weight:480;margin:15px 0 13px;line-height:1.2}.subtitle{font-size:12px;color:#8e8c93;line-height:1.6;margin:0}#composer{margin-top:31px;border:1px solid #dcdce4;border-radius:13px;text-align:left;box-shadow:0 4px 22px #2b234906,0 0 0 4px #f6f7f9;background:linear-gradient(140deg,#fff,#fcfdfe);padding:18px 18px 13px}textarea{display:block;width:100%;resize:none;border:0;outline:none;line-height:1.7;font-size:12px;background:transparent;color:#383343}textarea::placeholder{color:#97979e}.composer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.context-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#655d74}.context-label .icon{width:14px;height:14px}.tiny-tag{font-size:8px;padding:3px 5px;border:1px solid #e4e7eb;border-radius:4px;color:#949ca6}.send-tools{display:flex;align-items:center;gap:13px}.enter-hint{font-size:9px;color:#b0b1b7}.send{width:29px;height:29px;border-radius:7px;background:#4c385e;color:white;font-size:19px;display:grid;place-items:center}.send:hover{background:#342546}.under-composer{font-size:9px;color:#a1a1a8;margin:13px 0 29px}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}.suggestions button{display:flex;align-items:center;gap:12px;border:1px solid #e7e9ed;border-radius:8px;padding:15px 13px;background:#fafbfc;text-align:left;transition:background .15s,border-color .15s}.suggestions button:hover{background:#eef0f5;border-color:#bcbfcf}.suggestion-icon{width:32px;height:32px;border:1px solid #dce1e9;border-radius:7px;color:#626b84;background:#f3f7fa;flex-shrink:0}.suggestion-icon .icon{width:16px;height:16px}.suggestions small{display:block;font-size:7px;letter-spacing:1.05px;color:#8e95a0;margin-bottom:7px}.suggestions strong{display:block;font-size:10.5px;font-weight:450;color:#4c4c57}.card-arrow{margin-left:auto;color:#a2aab5;font-size:13px}.explore{margin-top:43px}.explore>span{font-size:9px;color:#a1a2aa}.explore>div{display:flex;justify-content:center;gap:20px;margin-top:14px}.explore button{font-size:10px;color:#707581;padding:4px 0}.explore button:hover{color:#392d53}.explore button span{margin-left:7px;color:#9aa4b1}footer{display:flex;justify-content:center;gap:11px;padding:25px;font-size:8px;color:#b2b4bb;align-items:center}.footer-mark{font-size:8px;letter-spacing:2px;border-right:1px solid #e2e6e9;padding-right:11px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{border:1px solid #dfe0e7;border-radius:14px;padding:32px;max-width:calc(100vw - 32px);color:#383442;box-shadow:0 25px 100px #21123420}dialog::backdrop{background:#281c3033;backdrop-filter:blur(3px)}dialog h2{font-size:23px;font-weight:500;letter-spacing:-.7px}dialog p{line-height:1.8;color:#858790;font-size:12px}#info-dialog{width:450px}.primary{background:#4c385e;color:white;padding:11px 18px;border-radius:7px;margin-top:15px;font-size:11px}.x{position:absolute;right:15px;top:12px;font-size:22px;color:#8b8c98}#search-dialog{width:520px;padding:12px}.dialog-search{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8edf0;padding:5px 6px 15px}.dialog-search input{border:0;outline:0;flex:1;min-width:0;padding:8px;font-size:13px;background:white;color:#383343}.dialog-search .close{font-size:10px;background:#edf1f4;border-radius:4px;padding:5px;color:#838b96}.dialog-label{font-size:8px!important;letter-spacing:1.4px;padding:0 10px}#search-results{max-height:340px;overflow:auto}#search-results button{display:flex;justify-content:space-between;width:100%;text-align:left;padding:12px;border-radius:6px;font-size:12px}#search-results button:hover{background:#e9eff4}#themes-dialog{width:850px}#theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}#theme-grid h3{font-size:11px;font-weight:550}#theme-grid button{display:block;font-size:11px;color:#757c88;padding:6px 0;text-align:left}#theme-grid button:hover{color:#362f58}#chat-view{max-width:740px;margin:0 auto;padding:60px 30px}.chat-heading{margin-bottom:35px}.chat-heading h1{font-size:30px;font-weight:450;letter-spacing:-1px}.message{margin:15px 0;padding:20px;border-radius:10px;font-size:13px;line-height:1.8;white-space:pre-wrap}.message.user{background:#eef0f4;margin-left:60px}.message.agent{border:1px solid #e0e5eb;margin-right:25px}.message b{display:block;font-size:10px;letter-spacing:1px;color:#576382;margin-bottom:10px}#followup{display:flex;gap:10px;border:1px solid #d6dce4;border-radius:9px;padding:12px;margin-top:35px}#followup input{border:0;outline:0;flex:1;min-width:0;padding:0 8px;font-size:12px}.chat-note{text-align:center;color:#98a0aa;font-size:9px}@media(min-height:950px){.hero{padding-top:95px;padding-bottom:90px}}@media(max-width:1000px){aside{width:218px;padding-left:12px;padding-right:12px}main{margin-left:218px}.hero{width:calc(100% - 55px)}.suggestions{grid-template-columns:1fr}.suggestions button{padding:12px}.hero{padding-top:40px}.brand{gap:7px}.brand>span:first-of-type{font-size:18px}.explore>div{gap:13px}}@media(max-width:640px){aside{transform:translateX(-100%);z-index:5;transition:transform .2s}body.menu-open aside{transform:translateX(0);box-shadow:20px 0 90px #22183330}main{margin-left:0}header{height:55px;padding:0 18px}#mobile-menu{display:block;padding:5px}.hero{width:calc(100% - 40px);padding-top:38px}.hero h1{font-size:28px;letter-spacing:-1px}.hero .subtitle{font-size:11px}.spectra-mark{height:48px;width:48px;margin-bottom:20px}.suggestions{gap:9px}.explore>div{gap:14px;flex-wrap:wrap}.enter-hint{display:none}#theme-grid{grid-template-columns:1fr}#themes-dialog{max-height:85vh;overflow:auto}.preview{font-size:9px}#chat-view{padding:35px 20px}.message.user{margin-left:20px}.message.agent{margin-right:0}}

/* Use the original supplied artwork; crop its transparent right margin in CSS. */
.brand{height:66px;flex-shrink:0;padding:10px 12px;margin:0 0 20px;gap:10px;background:#16283e;border:1px solid #203b56;border-radius:9px}
.brand-logo{display:block;position:relative;width:143px;height:44px;overflow:hidden;flex-shrink:0}
.brand-logo img{display:block;width:auto;height:44px;max-width:none}
.brand .beta{color:#b6d3e4;border-color:#476077;margin-left:auto;font-size:7px;letter-spacing:.8px;padding:3px}
.spectra-mark{width:70px;height:62px;overflow:hidden;color:inherit}
.spectra-mark img{display:block;height:62px;width:auto;max-width:none}
.send,.primary{background:#19689c}
.send:hover,.primary:hover{background:#16496c}
.mode .selected{color:#195d88}
.nav-item.active{background:#e6f0f7;color:#18557e}
button:focus-visible,a:focus-visible{outline-color:#2189c9}
@media(max-width:1000px){.brand{padding:10px 8px;gap:6px}.brand-logo{width:133px;height:41px}.brand-logo img{height:41px}}
@media(max-width:640px){.spectra-mark{width:55px;height:48px}.spectra-mark img{height:48px}}

/* Semantic surfaces keep every prototype view in the selected theme. */
:root{color-scheme:light;--tech-blue:#004dc0;--sapphire:#0e1334;--rich-black:#0a0a0a;--ice-blue:#d8ecf9;--page:#ffffff;--sidebar:#f8fafc;--surface:#ffffff;--soft:#f8fafc;--hover:#edf5fc;--selected:var(--ice-blue);--border:#dce4ed;--text:var(--rich-black);--secondary:#4f5d73;--muted:#68758a;--disabled:#8b96a7;--accent:var(--tech-blue);--accent-text:var(--tech-blue);--ring:#f0f5fb;--shade:#0e13340a}
:root[data-theme="dark"]{color-scheme:dark;--page:var(--rich-black);--sidebar:#0d1020;--surface:#11172b;--soft:#0f1424;--hover:#192547;--selected:#152b51;--border:#29334b;--text:#ffffff;--secondary:#b8c4d6;--muted:#93a2ba;--disabled:#71809a;--accent:var(--tech-blue);--accent-text:var(--ice-blue);--ring:#0e1334;--shade:#00000030}
body{color:var(--text);background:var(--page)}
aside{background:var(--sidebar);border-color:var(--border)}
header,.account,.footer-mark{border-color:var(--border)}
.quick,.mode .selected{background:var(--surface);border-color:var(--border);color:var(--secondary)}
.mode{background:var(--ring)}
.mode button,.nav-item,.breadcrumb,.header-right,.icon-button,.subtitle,.context-label,.suggestions strong,.explore button{color:var(--secondary)}
.mode .selected,.nav-item.active{color:var(--accent-text)}
.nav-item.active{background:var(--selected)}
.nav-item:hover:not(:disabled),.suggestions button:hover,#search-results button:hover{background:var(--hover);color:var(--accent-text);border-color:var(--border)}
.nav-item:disabled,.nav-item small{color:var(--disabled)}
.nav-divider{background:var(--border)}
.nav-label,.more,.empty-recent,.account span,.preview,.eyebrow,.tiny-tag,.enter-hint,.under-composer,.suggestions small,.card-arrow,.explore>span,.explore button span,footer,.chat-note,.quick kbd,.x{color:var(--muted)}
.avatar{background:var(--selected);color:var(--accent-text);border-color:var(--border)}
#composer{background:var(--surface);border-color:var(--border);box-shadow:0 4px 22px var(--shade),0 0 0 4px var(--ring)}
textarea,#followup input,.dialog-search input{color:var(--text);background:transparent}
textarea::placeholder,input::placeholder{color:var(--muted)}
.tiny-tag{border-color:var(--border)}
.send,.primary{background:var(--accent);color:#fff}
.suggestions button{background:var(--soft);border-color:var(--border)}
.suggestion-icon{background:var(--ring);color:var(--accent-text);border-color:var(--border)}
dialog{background:var(--surface);color:var(--text);border-color:var(--border);box-shadow:0 25px 100px var(--shade)}
dialog p,#theme-grid button{color:var(--secondary)}
dialog::backdrop{background:#08152280}
.dialog-search{border-color:var(--border)}
.dialog-search .close{color:var(--secondary);background:var(--ring)}
.message.user{background:var(--selected)}
.message.agent,#followup{background:var(--surface);border-color:var(--border)}
.message b,#theme-grid button:hover,.explore button:hover{color:var(--accent-text)}
.theme-toggle{display:flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--surface);color:var(--secondary);border-radius:6px;padding:5px 8px;font-size:10px;min-height:30px}
.theme-toggle:hover{background:var(--hover);color:var(--accent-text)}
#theme-icon{font-size:15px;line-height:1}
@media(max-width:640px){.header-right{gap:10px}#theme-label{display:none}.theme-toggle{width:30px;justify-content:center;padding:5px}}

/* Match the supplied wordmark to the selected theme. */
.brand{background:transparent;border-color:transparent}
.brand .beta{color:var(--muted);border-color:var(--border)}
.brand-logo .logo-dark{display:none}
.brand-logo .logo-light{display:block;height:44px}
:root[data-theme="dark"] .brand-logo .logo-dark{display:block}
:root[data-theme="dark"] .brand-logo .logo-light{display:none}
@media(max-width:1000px){.brand-logo .logo-light{height:41px}}

@font-face{font-family:'JetBrains Mono';src:url('assets/jetbrains-mono.woff2') format('woff2'),url('assets/jetbrains-mono.ttf') format('truetype');font-weight:100 800;font-display:swap}
.eyebrow,.nav-label,.suggestions small,.tiny-tag,.beta,footer,.numeric{font-family:'JetBrains Mono',monospace}
.numeric{font-variant-numeric:tabular-nums}
.hero h1{font-weight:650;letter-spacing:-1.5px}
.eyebrow{color:var(--accent-text)}
.send,.primary{border-radius:4px}
.send:hover,.primary:hover{background:#003e9b}
button:focus-visible,a:focus-visible{outline-color:var(--accent-text)}
:root[data-theme="dark"] #home-view{background:radial-gradient(ellipse at 65% 30%,#0e133466,transparent 65%)}

/* Compact navigation: keep every Browse destination above the account row. */
aside{padding:10px 12px 0;transition:transform .18s ease}
.brand{height:48px;padding:3px 8px;margin-bottom:8px}
.brand-logo{height:40px}
.brand-logo img,.brand-logo .logo-light{height:40px}
.quick{height:32px;flex-shrink:0}
.mode{margin:8px 0;flex-shrink:0}
.mode button{padding:6px}
nav{min-height:0;padding-bottom:4px}
.nav-item{min-height:28px;padding:5px 10px;line-height:18px}
.nav-label{margin:12px 10px 4px;line-height:12px}
.nav-divider{margin:6px 9px}
.account{padding:10px 8px}
#mobile-menu{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:5px;border:1px solid var(--border);border-radius:5px;color:var(--secondary)}
#mobile-menu:hover{background:var(--hover);color:var(--accent-text)}
#sidebar-close{display:none}
#sidebar-backdrop{position:fixed;inset:0;background:#080f2455;z-index:4}
@media(min-width:641px){body.sidebar-collapsed aside{transform:translateX(-100%)}body.sidebar-collapsed main{margin-left:0}}
@media(max-height:740px){
  aside{padding-top:6px}
  .brand{height:40px;margin-bottom:5px}
  .brand-logo,.brand-logo img,.brand-logo .logo-light{height:34px}
  .quick{height:29px}
  .mode{margin:6px 0}.mode button{padding:5px}
  .nav-item{min-height:24px;padding:3px 10px}
  .nav-label{margin-top:8px;margin-bottom:3px;line-height:11px}
  .nav-divider{margin:4px 9px}
  .account{padding:8px}
}
@media(max-width:640px){
  #sidebar-close{display:block;position:absolute;right:10px;top:14px;width:28px;height:28px;font-size:21px;color:var(--secondary)}
  .brand .beta{display:none}
  body.menu-open aside{box-shadow:12px 0 40px #00000020}
}
@media(prefers-reduced-motion:reduce){aside{transition:none}}

/* Balanced density: comfortable rows, with smaller gaps only on short screens. */
.nav-item{min-height:32px;padding:6px 10px;font-size:12px;line-height:20px}
.nav-label{font-size:8.5px;letter-spacing:1px;margin:12px 10px 5px}
.quick{font-size:12px}
.mode button{font-size:12px}
.more{font-size:11px}
@media(max-height:740px){
  .nav-item{min-height:26px;padding:3px 10px;line-height:20px}
  .nav-label{margin-top:8px;margin-bottom:3px}
}
@media(max-height:620px){
  .nav-item{min-height:24px;padding:2px 10px}
}

/* Account actions float above their trigger without consuming navigation space. */
aside{z-index:5}
.account-wrap{position:relative;margin-top:auto;flex-shrink:0}
.account{width:100%;margin-top:0;text-align:left;border-radius:0;gap:9px}
.account:hover,.account[aria-expanded="true"]{background:var(--hover)}
.account .avatar{display:grid;place-items:center;flex-shrink:0;margin:0;color:var(--accent-text);font-size:10px}
.account .account-details{margin:0;color:var(--text)}
.account-chevron{margin-left:auto;flex-shrink:0;color:var(--muted)}
.account-menu{position:absolute;bottom:calc(100% + 8px);left:0;width:260px;max-width:calc(100vw - 24px);padding:8px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text);box-shadow:0 12px 40px #00000026;z-index:6}
.account-menu-profile{display:flex;align-items:center;gap:10px;padding:10px 9px 14px;margin-bottom:5px;border-bottom:1px solid var(--border)}
.account-menu-profile .avatar{width:32px;height:32px;flex-shrink:0}
.account-menu-profile strong{display:block;font-size:13px;font-weight:550}
.account-menu-profile div>span{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.account-menu button{display:flex;align-items:center;gap:11px;width:100%;height:39px;border-radius:7px;padding:0 10px;text-align:left;font-size:12px;color:var(--secondary)}
.account-menu button:hover,.account-menu button:focus-visible{background:var(--hover);color:var(--text)}
.account-menu button .icon{width:18px;height:18px}
.account-menu-divider{height:1px;background:var(--border);margin:5px 8px}
@media(max-width:640px){.account-menu{width:260px}}

/* Keep the account popup proportional to the sidebar. */
.account-menu{width:100%;padding:5px;border-radius:10px;bottom:calc(100% + 6px)}
.account-menu-profile{gap:8px;padding:7px 7px 10px;margin-bottom:3px}
.account-menu-profile .avatar{width:25px;height:25px;font-size:9px}
.account-menu-profile strong{font-size:11px}
.account-menu-profile div>span{font-size:9px;margin-top:2px}
.account-menu button{height:30px;padding:0 8px;gap:9px;font-size:11px;border-radius:5px}
.account-menu button .icon{width:15px;height:15px}
.account-menu-divider{margin:3px 7px}

#intelligence-shortcuts .theme-shortcut-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.soon-badge{display:inline-block;flex-shrink:0;margin-left:8px;padding:2px 5px;border:1px solid var(--border);border-radius:4px;font-family:Inter,sans-serif;font-size:8px;font-weight:400;line-height:1.2;color:var(--muted)}
#theme-grid button{display:flex;align-items:center;gap:6px;width:100%}
#theme-grid .soon-badge{margin-left:auto}
#search-results button{align-items:center;gap:8px}
#search-results .soon-badge{margin-left:auto}
#search-results button>span:last-child{margin-left:auto}
#intelligence-shortcuts .soon-badge{margin-left:auto;color:var(--muted)}

/* Coming-soon destinations match the muted portfolio treatment. */
.soon-badge{border:0;padding:0;background:none;color:var(--disabled)}
#theme-grid button.coming-soon,#search-results button.coming-soon,#intelligence-shortcuts button.coming-soon{color:var(--disabled)}
#theme-grid .soon-badge,#search-results .soon-badge,#intelligence-shortcuts .soon-badge{color:var(--disabled)}

.intelligence-heading{display:flex;align-items:center;justify-content:space-between}
#customize-themes{display:grid;place-items:center;width:25px;height:25px;margin:5px 4px 0 0;border-radius:5px;color:var(--muted)}
#customize-themes:hover{background:var(--hover);color:var(--accent-text)}
#customize-dialog{width:470px;max-height:calc(100dvh - 32px);overflow:auto}
#theme-selects{display:grid;gap:15px;margin-top:23px}
#theme-selects label{display:grid;gap:7px;font-size:11px;color:var(--secondary)}
#theme-selects select{width:100%;min-width:0;padding:10px;border:1px solid var(--border);border-radius:6px;background:var(--soft);color:var(--text);font:inherit;font-size:12px}
#theme-selects select:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
#theme-choice-status{font-size:10px;min-height:18px;margin:14px 0}
.theme-preference-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}
.theme-preference-actions .primary{margin-top:0;white-space:nowrap}
#use-recent-themes{font-size:11px;color:var(--accent-text);text-align:left;padding:8px 0}
#save-themes:disabled{opacity:.45;cursor:not-allowed}

.workspace-heading{display:flex;align-items:center;justify-content:space-between}
#arrange-sidebar{display:grid;place-items:center;width:25px;height:25px;margin:5px 4px 0 0;border-radius:5px;color:var(--muted);font-size:15px}
#arrange-sidebar:hover,#arrange-sidebar[aria-pressed="true"]{background:var(--hover);color:var(--accent-text)}
.sidebar-row{display:flex;align-items:center;border-radius:6px;position:relative}
.sidebar-row>.nav-item{min-width:0;flex:1}
.sidebar-move-controls{display:none;flex-shrink:0;gap:1px}
.reordering-sidebar .sidebar-move-controls{display:flex}
.sidebar-move-controls button{width:22px;height:26px;padding:0;color:var(--accent-text);border-radius:4px}
.sidebar-move-controls button:hover:not(:disabled){background:var(--hover)}
.sidebar-move-controls button:disabled{opacity:.25}
.reordering-sidebar .sidebar-row{cursor:grab}
.sidebar-row.dragging{opacity:.4}
.sidebar-row.drop-target{outline:1px solid var(--accent-text);background:var(--hover)}

.section-drag-handle{display:block;padding:0;text-align:left;cursor:grab;background:none}
.section-drag-handle:active,.sidebar-row:active{cursor:grabbing}
.section-drag-handle:hover{color:var(--accent-text)}
.sidebar-row{cursor:grab}
.sidebar-section.dragging{opacity:.4}
.sidebar-section.section-drop-target{outline:1px dashed var(--accent-text);outline-offset:2px;border-radius:6px}

/* Fit the additional Other destinations without crowding taller layouts. */
@media(min-height:741px) and (max-height:850px){.nav-item{min-height:30px;padding-top:5px;padding-bottom:5px}}
@media(max-height:740px){.nav-label{margin-top:5px}}


.section-drag-handle{display:flex;align-items:center;gap:5px;cursor:pointer}
.section-chevron{width:12px;height:12px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.section-collapsed .section-chevron{transform:rotate(-90deg)}
.section-collapsed #customize-themes{visibility:hidden}
@media(prefers-reduced-motion:reduce){.section-chevron{transition:none}}

.send{font-size:16px}

#composer + .suggestions{margin-top:28px}

/* Approved light-mode sidebar typography: brand black, retaining state colours. */
:root[data-theme="light"] #sidebar{--secondary:var(--rich-black);--muted:var(--rich-black)}

/* Edge handle lives outside the sidebar so it remains reachable when collapsed. */
#sidebar-edge-toggle{position:fixed;z-index:8;left:calc(var(--sidebar-edge,246px) - 12px);top:50%;transform:translateY(-50%);display:grid;place-items:center;width:24px;height:40px;padding:3px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);box-shadow:0 2px 7px #0000000d;transition:left .18s ease}
#sidebar-edge-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#sidebar-edge-toggle:hover{background:var(--hover);color:var(--accent-text);border-color:var(--accent-text)}
body.sidebar-collapsed #sidebar-edge-toggle{left:0;border-radius:0 7px 7px 0}
@media(min-width:641px){#mobile-menu{display:none}}
@media(max-width:640px){#sidebar-edge-toggle{display:none}}
@media(prefers-reduced-motion:reduce){#sidebar-edge-toggle{transition:none}}

/* Identical section rows prevent margin collapse and wrapped-heading drift. */
#browse-nav{display:flex;flex-direction:column;gap:8px}
#browse-nav .sidebar-section{margin:0;padding:0;flex-shrink:0;display:flex;flex-direction:column}
#browse-nav .section-drag-handle{height:26px;min-height:26px;margin:0;padding:0 10px;line-height:1;box-sizing:border-box}
#browse-nav .intelligence-heading{height:26px;min-height:26px;margin:0;display:flex;align-items:center}
#browse-nav .intelligence-heading .section-drag-handle{flex:1}
#browse-nav #customize-themes{height:26px;margin:0 4px 0 0}
#browse-nav .section-content{padding-top:4px}

#more>span,.explore button>span,.card-arrow{font-size:10px;line-height:1}

#more>span,.explore button>span,.card-arrow,#search-results button>span:last-child{font-family:Inter,Arial,sans-serif;font-size:12px;line-height:1}
/* Shared disclosure chevron (PrismFormat.chevron); rotates when its control is expanded. */
.prism-chevron{width:12px;height:12px;flex:none;transition:transform .15s ease;vertical-align:-1px}[aria-expanded=true]>.prism-chevron,details[open]>summary>.prism-chevron{transform:rotate(90deg)}
/* Quick search sections (quick-search.js) */
#search-results .qs-section{margin:10px 10px 4px;font:600 10px/1.4 'JetBrains Mono',monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#6b7280)}
#search-results .qs-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
#search-results .qs-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#search-results .qs-meta{margin-left:auto;flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px 'JetBrains Mono',monospace;opacity:.7}
#search-results .qs-row .soon-badge{margin-left:0}
#search-results .qs-active{background:var(--hover);color:var(--accent-text)}
#search-results .qs-empty{padding:4px 10px;opacity:.7}
/* 641–1099px: sidebar opens as an overlay over full-width content (app.js midSidebar). */
@media(min-width:641px) and (max-width:1099px){body.sidebar-collapsed.sidebar-overlay aside{transform:none;box-shadow:12px 0 40px #00000026;z-index:6}body.sidebar-overlay #sidebar-edge-toggle{left:calc(var(--sidebar-edge,246px) - 12px);border-radius:7px}}
/* The overlay side menu must cover page content: sticky bars (company tabs z 10/12, rails up to 30) painted over it.
   Docked menu is unchanged; only the overlay states (phone drawer, collapsed overlay) lift. Dialogs/tooltips stay above. */
#sidebar-backdrop{z-index:44}
@media(max-width:640px){aside{z-index:45}#sidebar-edge-toggle{z-index:46}}
@media(min-width:641px) and (max-width:1099px){body.sidebar-collapsed.sidebar-overlay aside{z-index:45}body.sidebar-overlay #sidebar-edge-toggle{z-index:46}}

/* Give the three navigation groups breathing room while keeping rows compact. */
#browse-nav{gap:18px}
#browse-nav .section-drag-handle,#browse-nav .intelligence-heading{height:24px;min-height:24px}
#browse-nav #customize-themes{height:24px}
#browse-nav .section-content{padding-top:0}
#browse-nav .nav-item{min-height:28px;padding-top:4px;padding-bottom:4px}
#theme-grid .theme-pending{grid-column:1/-1;margin:0;font-size:11px;color:var(--muted)}
.explore>.explore-hint{display:block;margin-top:14px}

/* Skip link: hidden until focused, first tab stop. */
.skip-link{position:fixed;left:12px;top:10px;z-index:100;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--accent-text);font-size:12px;text-decoration:none;transform:translateY(-200%)}
.skip-link:focus{transform:none}
#main:focus,main>section:focus{outline:none}

/* Home prompt shows the shared 2px focus ring while the textarea has focus. */
#composer:focus-within{outline:2px solid var(--accent-text);outline-offset:2px}

/* Collapsed sidebar: a larger, labelled edge handle. */
body.sidebar-collapsed #sidebar-edge-toggle{width:32px;height:48px}
#sidebar-edge-toggle::after{content:attr(aria-label);position:absolute;left:calc(100% + 6px);top:50%;transform:translateY(-50%);padding:4px 8px;border:1px solid var(--border);border-radius:5px;background:var(--surface);color:var(--text);font:500 11px/1.4 Inter,Arial,sans-serif;white-space:nowrap;box-shadow:0 2px 7px #0000000d;opacity:0;pointer-events:none;transition:opacity .12s}
#sidebar-edge-toggle:is(:hover,:focus-visible)::after{opacity:1}
@media(prefers-reduced-motion:reduce){#sidebar-edge-toggle::after{transition:none}}

/* Compact navigation rows; section spacing is shared above. */
#browse-nav .nav-item{min-height:26px;padding-top:3px;padding-bottom:3px}
#browse-nav .section-content{padding-top:0}

/* Homepage prompt cards: readable labels and supporting text at every viewport. */
#home-view .suggestions button > span:nth-child(2){min-width:0}
#home-view .suggestions small{font-family:Inter,Arial,sans-serif;font-size:11px;font-weight:400;line-height:1.4;letter-spacing:.65px;color:var(--secondary);margin-bottom:6px}
#home-view .suggestions strong{font-size:13px;font-weight:450;line-height:1.5;color:var(--text)}

/* 20 Oct: no raw browser links. A plain link inside the app reads as text (accent on hover); links that need colour
   carry a class. Theme stylesheets load later and can still style their own links. */
:where(#main a:not([class])){color:inherit;text-decoration:none}   /* :where = zero specificity: replaces only the browser default */
:where(#main a:not([class])):hover{color:var(--accent-text,#004dc0)}
:where(#main a:not([class])):focus-visible{outline:2px solid var(--accent,#004dc0);outline-offset:2px;border-radius:3px}
/* 20 Oct: a table's filter box clears with a small × inside the box (all themes), instead of a "Clear" link beside it. */
[class$="-table-filter"] input{padding-right:30px!important}
[class$="-table-filter"] input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
button.prism-filter-x{margin:0 0 0 -36px!important;width:22px;height:22px;padding:0!important;border:0!important;border-radius:50%;background:transparent!important;color:var(--muted)!important;font:400 16px/1 Inter,Arial,sans-serif!important;display:inline-grid;place-items:center;cursor:pointer;position:relative;z-index:1}
button.prism-filter-x[hidden]{display:none}
button.prism-filter-x:hover{background:var(--hover)!important;color:var(--text)!important}
button.prism-filter-x:focus-visible{outline:2px solid var(--accent,#004dc0);outline-offset:1px}
