/* Vector interface polish. Presentation only; no character or voice behavior. */
:root {
  --bg: #080c12; --bg-2: #101720; --panel-solid: #141d28;
  --panel: rgba(20,29,40,.94); --line: #2a3949; --line-strong: #526477;
  --text: #edf3f8; --muted: #b0bfce;
  --accent: #69d5ed; --accent-hi: #a6e9f5; --accent-dim: rgba(105,213,237,.10);
  --ice: #c2f2fb; --radius: 14px;
}
body { --ui-banner-height: 0px; padding-top: 0; background: radial-gradient(ellipse at 70% 0, #10212b 0, transparent 55%),var(--bg); }
body:has(> .development-banner) { --ui-banner-height: 28px; padding-top: var(--ui-banner-height); }
.shell { min-height: calc(100dvh - var(--ui-banner-height)); }
.main-col { min-width: 0; height: calc(100dvh - var(--ui-banner-height)); }
.sidebar { background: #0b1119; }
.topbar { background: rgba(11,17,25,.96); flex-wrap: wrap; gap: 8px; }
.tabs { min-width: 0; scrollbar-width: thin; scrollbar-color: #526477 transparent; }
.tab { min-height: 44px; border-radius: 9px; }
.tab[aria-current="page"] { color: var(--ice); border-color: #385666; background: #142934; box-shadow: inset 0 -2px var(--accent); }
button { min-height: 44px; line-height: 1.35; transition: background-color .15s,border-color .15s; }
button:hover:not(:disabled) { background-color: #1b2b39; border-color: #8fbdce; }
button:disabled { opacity: .65; }
.primary { color: #09202a; background: linear-gradient(#a6e9f5,#69d5ed); border: 1px solid #a6e9f5; box-shadow: none; }
.primary:hover:not(:disabled) { background: #bceff8; filter: none; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
input:not([type=checkbox]):not([type=radio]),select,textarea { min-width: 0; min-height: 44px; border-color: #526477; background: #0c131d; }
input[type=checkbox],input[type=radio] { width: auto; accent-color: #69d5ed; flex: 0 0 auto; }
label { line-height: 1.5; }
.glass { background: var(--panel); border-color: var(--line); box-shadow: 0 8px 24px #0003; }
.view { max-width: 1120px; }
.view h1 { font-size: clamp(24px,2.3vw,32px); letter-spacing: -.025em; }
.view h2 { font-size: 20px; line-height: 1.35; }
.view-head { justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.view-head > * { min-width: 0; }
.view p,.view li,.pool-card p,.cabinet-card,.worker-chip { overflow-wrap: anywhere; }
.panel { padding: 20px; }
.settings-grid,.organization-grid,.recommendation-grid,.cabinet-grid { gap: 18px; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.settings-grid > *,.organization-grid > *,.cabinet-grid > *,.recommendation-grid > * { min-width: 0; }
.organization-grid form,.cabinet-card,.recommendation-card,#mission-heading,#mission-recommendations,#mission-cabinet { border: 1px solid var(--line); background: #141d28; border-radius: 14px; padding: 20px; }
.organization-grid h2 { margin-top: 0; }
.organization-grid button { white-space: normal; }
.vault-theme-controls { background: #101a25; border-color: var(--line); padding: 14px; }
.vault-theme-controls label { display: flex; flex-direction: row; align-items: center; margin: 0; }
.vault-theme-controls input { width: auto; }
.vault-tree summary,.vault-tree .mission-leaf { min-height: 44px; overflow-wrap: anywhere; }
.vault-tree summary { gap: 6px; }
.unfiled-projects > summary { line-height: 1.6; letter-spacing: .025em; }
.project-list button { white-space: normal; overflow-wrap: anywhere; min-height: 44px; }
.unfiled-projects #new-project { color: var(--text); border-color: #526477; background: #18303d; }
.strip-card { min-width: 160px; background: #111b26; border-color: var(--line); }
.strip-card .v { font-size: 15px; }
.strip-card .k { letter-spacing: .08em; }
.command-strip { gap: 12px; }
.team-working { gap: 8px; padding: 12px; margin: 16px 0; border: 1px solid #365969; border-radius: 12px; background: #10242d; }
.worker-chip { font-size: 13px; background: #1c3340; border: 1px solid #3e5a69; line-height: 1.5; }
.work-orb { flex: 0 0 10px; width: 10px; height: 10px; box-shadow: none; }
.is-working .work-orb { animation: ui-work-fade 1.6s ease-in-out infinite; }
@keyframes ui-work-fade { 50% { opacity: .55; } }
.team-controls,.team-guidance,.cabinet-tabs,#mission-cabinet-tabs { gap: 10px; }
.team-controls { align-items: center; }
#team-participants { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 14px; }
#team-participants > label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #111c28; }
#team-participants input { width: auto; }
#team-form > label:has(input[type=checkbox]),#team-guidance-consent-label { display: flex; gap: 10px; align-items: start; }
#team-guidance-consent-label input { width: auto; margin-top: 5px; }
#team-auto-route-label,#team-consent-label { display: block; overflow-wrap: anywhere; }
#team-auto-route-label input,#team-consent-label input { vertical-align: middle; margin-inline-end: 8px; }
#team-form > label:has(input[type=checkbox]) { display: block; }
.cabinet-tabs [aria-pressed=true] { border-color: var(--accent); background: #17313d; box-shadow: none; }
.msg,.team-post { border-color: var(--line); }
.msg pre,.team-post pre { max-width: 100%; overflow: auto; }
dialog,.sync-dialog,.spark-pool-dialog { color: var(--text); background: #101923; border: 1px solid #526477; border-radius: 18px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 24px; overflow: auto; box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: #020711c9; backdrop-filter: blur(4px); }
.spark-pool-dialog { width: min(1120px,calc(100vw - 32px)); }
.pool-header { align-items: start; }
.pool-header h1 { font-size: 28px; letter-spacing: -.025em; }
.pool-toolbar > * { flex: 1 1 160px; min-width: 0; }
.pool-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 18px; }
.pool-card { min-width: 0; padding: 18px; border: 1px solid #344a5d; background: #15212e; border-radius: 14px; }
.pool-card h2 { font-size: 21px; }
.pool-specialty { color: #b1e8f4; }
.pool-avatar { background: #0c1722; }
.pool-card audio { width: 100%; max-width: 100%; }
.pool-score { gap: 8px; }
.pool-score div { color: var(--text); background: #0b1621; line-height: 1.5; }
.pool-card details > summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.home-ask { min-width: 0; }
.home-ask:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; box-shadow: none; }
.home-ask button { min-width: 44px; }
.poster-word { letter-spacing: .12em; }
.poster-tag { color: #bdcbd7; }
.poster-always,.poster-item p,.feature-strip { color: var(--muted); }
/* Existing microphone status remains a separate full-width row; no voice behavior changes. */
.dictation-note { position: static; min-height: 1.5em; margin-block: 4px; color: var(--ice); }
.dictation-note:empty { display: none; }
@media(max-width:1100px) {
  .topbar .tabs { flex: 1 1 100%; order: 2; }
  .topbar #global-pool-open { margin-left: auto; }
}
@media(max-width:820px) {
  .topbar { padding: 10px 12px; }
  .topbar .tabs { flex-basis: 100%; }
  main { padding: 18px 12px 24px; }
  .sidebar { overflow-y: auto; padding-bottom: max(18px,env(safe-area-inset-bottom)); }
  .command-strip { padding-inline: 12px; }
  .view-head { align-items: start; }
  .view-head button { max-width: 100%; }
  .panel,.organization-grid form,#mission-heading,#mission-recommendations,#mission-cabinet { padding: 16px; }
  .home-ask { grid-template-columns: minmax(0,1fr) 44px; }
  .home-ask button[type=submit],.home-ask > .primary { grid-column: 1/-1; }
  .home-ask .dictation-note { grid-column: 1/-1; }
  dialog,.spark-pool-dialog,.sync-dialog { padding: 16px; max-width: calc(100vw - 20px); width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .pool-grid { grid-template-columns: minmax(0,1fr); }
  .pool-header h1 { font-size: 24px; }
  .pool-header button { flex-shrink: 0; }
  #team-participants > label { width: 100%; }
  .team-controls > button { flex: 1 1 auto; }
}
@media(max-width:400px) {
  .feature-strip,.mode-row { grid-template-columns: minmax(0,1fr); }
  .pool-score { grid-template-columns: minmax(0,1fr); }
  .badge,.chip { white-space: normal; }
}
@media(prefers-reduced-motion:reduce) {
  button,.sidebar { transition: none; }
  .is-working .work-orb { animation: none; box-shadow: none; }
}
@media(forced-colors:active) {
  button,.pool-card,.worker-chip,.glass { border: 1px solid CanvasText; }
  .tab[aria-current=page],.cabinet-tabs [aria-pressed=true] { outline: 2px solid Highlight; }
}
