@media (max-width:640px){.header-inner{padding:8px 16px;gap:8px;flex-wrap:wrap;align-items:center}.brand-sub{display:none}.brand{flex:1 1;min-width:0}.nav{margin-left:0;order:99;flex-basis:100%;width:100%;display:flex;justify-content:stretch;gap:4px;padding:4px;background:var(--surface-hover);border:1px solid var(--rule);border-radius:10px}.nav-tab{flex:1 1;padding:10px 12px;text-align:center;font-size:14px;border-radius:7px}.signout-btn{font-size:11px;padding:5px 8px;margin-left:0}.main{padding:20px max(16px,env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.page-title{font-size:22px}.page-description{font-size:13px}.card{padding:16px}.card-footer{flex-direction:column-reverse;align-items:stretch;gap:10px}.card-footer .primary-btn{width:100%;padding:12px 16px;font-size:14px}.meta-text{text-align:center}.gate-input,.input{padding:11px 14px;font-size:16px}.textarea-brief{font-size:16px;min-height:180px;padding:12px;line-height:1.55}.toolbar{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.toolbar-right{width:100%;justify-content:space-between}.toolbar-right .secondary-btn,.toolbar-right .tertiary-btn{flex:1 1;padding:10px;font-size:13px;text-align:center}.result-card{padding:16px}.question{font-size:13px}.answer{padding:12px 14px;font-size:14px}.copy-btn{top:8px;right:8px;padding:3px 8px;font-size:10px}.chat-bubble-user{padding:12px 14px;font-size:14px;max-width:95%}.chat-input{font-size:16px;padding:10px}.chat-input-box{padding:4px 4px 4px 8px}.send-btn{width:36px;height:36px}.chat-hint{font-size:10px}.gate-card{padding:24px 20px;margin:0 8px}.gate-title{font-size:17px}.chat-list,.results-list{gap:14px}}@media (max-width:400px){.header-inner{gap:8px}}@media (max-width:640px){.history-drawer{width:100%;max-width:100%}.header-icon-btn{width:36px;height:36px}.tone-toggle{padding:12px 14px;font-size:14px}.tone-status{font-size:12px}.slider-row{flex-direction:column;align-items:stretch;gap:6px}.slider-label{width:auto;font-size:11px}.slider-option{font-size:11px;padding:6px 8px}.aux-row{flex-direction:column}.aux-panel{min-width:0}.triage-card{padding:16px}.triage-header{flex-direction:column;align-items:stretch;gap:8px;padding-bottom:12px}.triage-prep{margin-left:0}.triage-grid{grid-template-columns:1fr 1fr;gap:10px}.prep-card{padding:16px}.prep-section-title{font-size:13px}.prep-hook{flex-wrap:wrap}.prep-copy-btn{font-size:9px}.prep-answer{margin-left:0;font-size:13px}.prep-question-header{flex-wrap:nowrap}.para-regen-btn{opacity:1}.chat-submode{width:100%}.submode-btn{flex:1 1;text-align:center}}.typing-text{font-size:12px;color:var(--text-muted);font-weight:500;margin-left:8px}.batch-submode{display:flex;gap:2px;background:var(--surface-hover);padding:3px;border-radius:8px;align-self:flex-start}.parse-meta-card{background:var(--indigo-50);border:1px solid var(--indigo-100);border-radius:10px;padding:12px 16px;display:flex;flex-wrap:wrap;gap:14px 24px}.parse-meta-row{display:flex;align-items:baseline;gap:6px}.parse-meta-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--indigo-700)}.parse-meta-value{font-size:13px;color:var(--ink);font-weight:500}.parse-questions{gap:10px}.parse-question,.parse-questions{display:flex;flex-direction:column}.parse-question{background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:14px 16px;gap:6px;transition:border-color .15s ease}.parse-question:hover{border-color:var(--indigo-100)}.parse-question-header{display:flex;align-items:center;gap:10px}.parse-question-num{width:22px;height:22px;background:var(--gradient-indigo);color:#fff;border-radius:50%;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.parse-question-length,.parse-question-num{font-size:11px;font-family:JetBrains Mono,ui-monospace,monospace}.parse-question-length{font-weight:500;background:var(--indigo-50);color:var(--indigo-700);padding:3px 8px;border-radius:5px;cursor:help}.parse-question-text{font-size:14px;color:var(--ink);line-height:1.5;padding-left:32px}.parse-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}@media (max-width:640px){.parse-meta-card{gap:8px 16px}.parse-question-text{padding-left:0;padding-top:4px}.parse-actions{flex-direction:column-reverse}.parse-actions .primary-btn,.parse-actions .secondary-btn{width:100%}.presets-bar{gap:8px;padding:8px 0}.presets-label{font-size:10px}.preset-chip{font-size:11px;padding:3px 8px}.reporter-grid{grid-template-columns:1fr}.refine-actions{gap:4px}.refine-action-btn{padding:4px 8px}.refine-action-label{font-size:11px}.refine-action-hint{font-size:9px}.likeness-row{font-size:11px;gap:6px;padding:6px 10px}.likeness-bucket{display:none}.likeness-dim-row{grid-template-columns:64px 1fr 80px;font-size:10px}.variants-trigger-row{flex-direction:column;align-items:flex-start;gap:6px}.variants-trigger-hint{font-size:10px}.variant-card-header{gap:6px}.variant-body{font-size:13px}.triage-priority-row{gap:6px;padding:8px 10px}.priority-tier-label{font-size:11px}.priority-rationale{width:100%;flex-basis:100%;font-size:11px}.assessment-card{padding:10px 12px}.nav{display:none!important}.header-user .signout-btn,.header-user-name{display:none}.brand-logo{height:44px}.header-inner{padding:8px 14px}}.bottom-nav{display:none}@media (max-width:640px){.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;transform:translateY(calc(-1 * var(--vv-bottom-gap, 0px)));background:var(--paper);border-top:1px solid var(--rule);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:env(safe-area-inset-bottom);z-index:60}}.bottom-nav-tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:8px 4px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--galley);font:inherit;font-size:10px;font-weight:500;cursor:pointer;min-height:56px;transition:color .12s ease}.bottom-nav-tab-active{color:var(--press)}.bottom-nav-icon{line-height:0;display:inline-flex}.bottom-nav-label{letter-spacing:.01em}.bottom-nav-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:70;animation:bottom-nav-fade .15s ease}.bottom-nav-sheet{position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--rule);border-radius:16px 16px 0 0;padding:10px max(16px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-shadow:0 -8px 24px rgba(0,0,0,.2);z-index:80;max-height:75vh;max-height:75dvh;overflow-y:auto;animation:bottom-nav-slide .2s ease}.bottom-nav-sheet-grip{width:40px;height:4px;background:var(--rule);border-radius:2px;margin:0 auto 10px}.bottom-nav-sheet-list{list-style:none;padding:0;margin:0}.bottom-nav-sheet-item{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:14px 6px;display:flex;align-items:center;gap:14px;font:inherit;font-size:15px;color:var(--ink);cursor:pointer;text-align:left;border-radius:6px}.bottom-nav-sheet-item:active{background:var(--surface-hover)}.bottom-nav-sheet-item-active{color:var(--press);font-weight:600}.bottom-nav-sheet-sep{height:1px;background:var(--rule);margin:6px 0}.bottom-nav-sheet-user{font-size:12px;color:var(--galley);padding:8px 4px 4px}.bottom-nav-signout{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid var(--rule);border-radius:8px;padding:12px;font:inherit;font-size:14px;color:#b91c1c;cursor:pointer;margin-top:6px}.bottom-nav-signout:active{background:var(--surface-hover)}@keyframes bottom-nav-fade{0%{opacity:0}to{opacity:1}}@keyframes bottom-nav-slide{0%{transform:translateY(100%)}to{transform:translateY(0)}}:root,[data-theme=light]{--ink:#1C1C1A;--paper:#FAFAF8;--press:#5B5BD6;--galley:#75726B;--rule:#ECEAE4;--surface:#ffffff;--surface-muted:#F5F4F1;--surface-hover:#EFEEE9;--text-primary:var(--ink);--text-muted:var(--galley);--header-bg:rgba(250,250,248,0.85);--press-50:#EEEEFB;--press-100:#DCDCF7;--press-200:#BEBEF0;--press-300:#9E9EE8;--press-400:#7C7CDF;--press-500:#5B5BD6;--press-600:#4A4AB8;--press-700:#3B3B96;--press-800:#2D2D73;--press-900:#202052;--indigo-50:var(--press-50);--indigo-100:var(--press-100);--indigo-200:var(--press-200);--indigo-300:var(--press-300);--indigo-400:var(--press-400);--indigo-500:var(--press-500);--indigo-600:var(--press-600);--indigo-700:var(--press-700);--indigo-800:var(--press-800);--indigo-900:var(--press-900);--gradient-press:linear-gradient(135deg,var(--press-500),var(--press-700));--gradient-indigo:var(--gradient-press);--btn-primary-bg:#18181b;--btn-primary-bg-hover:#27272a;--btn-primary-text:#ffffff;--btn-secondary-bg:#ffffff;--btn-secondary-bg-hover:#f4f4f5;--font-serif:"Instrument Serif","Times New Roman",serif;--font-sans:"Geist","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}[data-theme=dark]{--ink:#E7E6E2;--paper:#171716;--galley:#92908A;--rule:#2A2A28;--press:#7B7BE8;--surface-muted:#1C1C1B;--surface:#212120;--surface-hover:#2A2A28;--text-primary:var(--ink);--text-muted:var(--galley);--header-bg:rgba(26,24,21,0.85);--press-50:#2D1B16;--press-100:#3D2418;--press-200:#5F341D;--press-300:#884726;--press-400:#B65932;--press-500:#D26841;--press-600:#E0815F;--press-700:#EA9A7E;--press-800:#F1B69D;--press-900:#F7D2BD;--btn-primary-bg:#E5E0D5;--btn-primary-bg-hover:#F4F1EA;--btn-primary-text:#1A1815;--btn-secondary-bg:#2D2924;--btn-secondary-bg-hover:#38332C}*{box-sizing:border-box}body,html{margin:0;padding:0;background:var(--paper);color:var(--ink);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background .2s ease,color .2s ease}html{color-scheme:light dark}[data-theme=light]{color-scheme:light}[data-theme=dark]{color-scheme:dark}button,input,textarea{font-family:inherit;font-feature-settings:inherit}@media (hover:none) and (pointer:coarse){body:has(>.root),html:has(body>.root){height:100%;overflow:hidden;overscroll-behavior:none}body>.root{height:100vh;height:100dvh;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}.root :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=range]){font-size:16px}.root button:not(.bottom-nav-tab):not(.memo-fab){min-height:40px}.nav-tab{min-height:44px;padding:8px 14px;font-size:14px}.header-icon-btn,.send-btn{width:40px;height:40px}.history-topic-chip{min-height:36px}.submode-btn,.write-submode button{min-height:40px}}:root{--vv-bottom-gap:0px}html[data-kbd="1"] .bottom-nav,html[data-kbd="1"] .memo-fab,html[data-kbd="1"] .toast{visibility:hidden}::placeholder{color:var(--text-muted);opacity:.6}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--rule);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--galley);opacity:.5}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-3px);opacity:1}}@keyframes shimmer{0%,to{opacity:.5}50%{opacity:1}}@keyframes blink{0%,60%{opacity:1}61%,to{opacity:0}}@keyframes pulse-dot{0%,to{box-shadow:0 0 0 3px rgba(34,197,94,.15)}50%{box-shadow:0 0 0 6px rgba(34,197,94,.08)}}