
:root{color-scheme:dark;--bg:#131312;--fg:#eee8dc;--muted:#a49f94;--surface:#23221f;--line:#ffffff24;--accent:#e6ac52;--shadow:#0005}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-family:Georgia,serif;transition:background .25s,color .25s}body.light{color-scheme:light;--bg:#f8f6f0;--fg:#25241f;--muted:#6f6a60;--surface:#ebe7df;--line:#00000028;--accent:#a96a13;--shadow:#51432b12}button,input,textarea,.sans{font-family:system-ui,sans-serif}button{color:inherit;cursor:pointer;background:none;border:0;font-size:14px}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}header{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;position:fixed;top:0;width:100%;background:var(--bg);z-index:3}.logo{font-size:32px;letter-spacing:3px}.o{position:relative}.o:before{content:'';position:absolute;background:var(--accent);height:2px;width:15px;left:3px;top:0}.tools{display:flex;align-items:center;gap:18px}.profile{background:var(--accent);color:#1b160e;border-radius:50%;width:38px;height:38px}.icon{font-size:23px;width:34px;height:38px}.demo{font:11px system-ui;color:var(--muted);letter-spacing:1.2px}.main{max-width:960px;margin:0 auto;padding:125px 24px 210px}.date{text-align:center;font:12px system-ui;color:var(--muted);margin:0 0 38px}.message{margin:26px 0;line-height:1.6;font-size:19px}.user{margin-left:auto;background:var(--surface);padding:14px 20px;border-radius:16px 16px 3px 16px;max-width:82%;font:15px/1.6 system-ui}.assistant{animation:arrive .25s ease}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.card{padding:0;text-align:left;border-radius:10px;outline-offset:5px}.portrait{aspect-ratio:1.02;overflow:hidden;position:relative;border-radius:9px;background:#333}.portrait img{position:absolute;width:503.5%;max-width:none;top:-87.1%;left:-96.5%}.card:nth-child(2) img{left:-202.2%}.card:nth-child(3) img{left:-307.3%}.caption{display:block;margin-top:10px;font:16px Georgia}.number{color:var(--accent);margin-right:10px}.card.selected .portrait{outline:2px solid var(--accent);outline-offset:3px}.source{font:12px system-ui;color:var(--muted);text-decoration:underline;padding:0}.dock{position:fixed;bottom:0;left:0;width:100%;padding:35px 24px 20px;background:linear-gradient(transparent,var(--bg) 24%);z-index:3}.composer{max-width:850px;margin:auto;display:flex;align-items:flex-end;gap:12px;min-height:90px;padding:16px 18px;border:1px solid var(--line);border-radius:30px;background:var(--surface);box-shadow:0 10px 40px var(--shadow)}textarea{resize:none;flex:1;width:100%;min-height:48px;max-height:160px;border:0;background:none;color:var(--fg);font-size:17px;line-height:1.5;padding:10px 0}textarea:focus{outline:0}textarea::placeholder{color:var(--muted)}.round{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;flex-shrink:0}.send,.primary{background:var(--accent);color:#18140e}.send{font-size:24px}.listening{color:var(--accent);box-shadow:0 0 24px #e6ac5250;border-color:var(--accent);animation:pulse 1.5s infinite}.status{text-align:center;margin:13px auto 0;display:block;color:var(--muted);font-size:12px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:8px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}.chip,.action{border:1px solid var(--line);border-radius:20px;padding:9px 14px;font-size:12px}.chip:hover,.action:hover{border-color:var(--accent)}.note{font:12px/1.6 system-ui;color:var(--muted)}dialog{background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:20px;padding:28px;max-width:600px;width:calc(100% - 32px);box-shadow:0 30px 100px #0007}dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:20px}h2{font-weight:400;margin:0 0 20px}h3{font-weight:400}p{line-height:1.65}.row{border-top:1px solid var(--line);padding:18px 0;font:14px/1.6 system-ui}.primary{padding:11px 18px;border-radius:20px}.search{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);padding:14px;font-size:16px}.toast{position:fixed;top:100px;left:50%;transform:translateX(-50%);background:var(--surface);padding:12px 22px;border:1px solid var(--line);border-radius:30px;z-index:10;font:13px system-ui;box-shadow:0 5px 30px var(--shadow)}.attachment{font:12px system-ui;color:var(--accent);margin-top:8px}.mini-status{border-left:2px solid var(--accent);padding:10px 18px;font:14px/1.8 system-ui}.foot-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.error{color:#e7a695}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes pulse{50%{box-shadow:0 0 35px #e6ac5270}}@media(max-width:650px){header{height:75px;padding:0 20px}.tools{gap:8px}.demo{display:none}.main{padding:95px 20px 210px}.message{font-size:18px}.user{max-width:95%;font-size:14px}.cards{gap:10px;overflow-x:auto;padding:4px;grid-template-columns:repeat(3,minmax(180px,1fr))}.caption{font-size:14px}.composer{padding:12px;gap:6px;border-radius:25px;min-height:82px}.dock{padding:25px 12px 12px}.round{width:38px;height:38px}textarea{font-size:16px}.date{margin-bottom:25px}}


.brand-group{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.brand-home{padding:0}.menu-toggle{font:11px system-ui;letter-spacing:.6px;color:var(--muted);padding:0 2px}.nav-menu{position:fixed;top:91px;left:38px;z-index:8;min-width:210px;padding:9px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 60px var(--shadow)}.nav-menu[hidden],.workspace[hidden]{display:none}.nav-menu button{display:block;text-align:left;width:100%;padding:12px 15px;border-radius:8px}.nav-menu button:hover{background:var(--bg);color:var(--accent)}.workspace{position:fixed;inset:94px 0 0;background:var(--bg);z-index:4;overflow:auto;padding:12px max(28px,calc((100vw - 1050px)/2)) 35px}.workspace-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:12px 0 20px;gap:15px}.back-chat{padding:0;color:var(--accent);white-space:nowrap}.view-kicker{font:11px system-ui;letter-spacing:1px;color:var(--muted);text-transform:uppercase}.workspace h1{font-size:38px;font-weight:400;margin:30px 0 10px}.workspace h2{font-size:23px}.view-intro{font:14px/1.7 system-ui;color:var(--muted);margin-bottom:28px}.view-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.work-card{border:1px solid var(--line);border-radius:14px;padding:23px;margin:15px 0}.work-card p{font:14px/1.7 system-ui;color:var(--muted)}.work-card .tag{font:11px system-ui;color:var(--accent);display:block;margin-bottom:12px}.file-row{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid var(--line);padding:19px 0}.file-row strong{font:15px system-ui}.file-row small{display:block;font:12px system-ui;color:var(--muted);margin-top:6px}.week{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));min-width:800px;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.day{background:var(--bg);min-height:310px;padding:14px 9px;font:12px system-ui}.day b{display:block;margin:8px 0 25px;font:23px Georgia}.event{background:var(--surface);border-left:2px solid var(--accent);border-radius:5px;padding:10px 7px;font:12px/1.5 system-ui;margin-bottom:12px;text-align:left;width:100%}.calendar-scroll{overflow:auto}.history-item{display:block;text-align:left;width:100%;padding:20px 0;border-bottom:1px solid var(--line);line-height:1.6}.history-item span{display:block;font:11px system-ui;color:var(--muted);margin-bottom:8px}.review-layout{display:flex;flex-direction:column;height:calc(100dvh - 280px);min-height:400px;margin-top:15px}.review-visual{flex:1;min-height:160px;display:flex;justify-content:center;align-items:center;background:#0d0d0c;border-radius:12px;overflow:hidden;position:relative}.review-portrait{width:min(100%,500px);height:auto;aspect-ratio:1.02;flex-shrink:0;position:relative;overflow:hidden}.review-portrait img{width:503.5%;position:absolute;max-width:none;top:-87.1%;left:-202.2%}.visual-label{position:absolute;bottom:12px;left:16px;color:#eee8dc;font:12px system-ui;background:#111b;padding:6px 10px;border-radius:20px}.splitter{height:18px;cursor:row-resize;display:flex;align-items:center;justify-content:center;touch-action:none;flex-shrink:0}.splitter:after{content:'';height:3px;width:42px;border-radius:4px;background:var(--line)}.review-notes{height:190px;min-height:130px;max-height:65%;display:flex;flex-direction:column}.review-note-head{display:flex;justify-content:space-between;gap:10px;align-items:center;font:12px system-ui;margin-bottom:8px}.review-send-row{display:flex;justify-content:flex-end;padding-top:8px}.review-send-row button:disabled{opacity:.4;cursor:default}.review-notes textarea{width:100%;flex:1;max-height:none;min-height:70px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:15px;font:15px/1.65 system-ui}.save-indicator{font:11px system-ui;color:var(--muted)}.editor-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0 12px}.editor-text{width:100%;height:55dvh;max-height:none;resize:vertical;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:20px;font:14px/1.7 ui-monospace,monospace}.editor-preview{min-height:45dvh;padding:25px;border:1px solid var(--line);border-radius:10px;white-space:pre-wrap;line-height:1.8}.highlight-jump{outline:1px solid var(--accent);outline-offset:8px;border-radius:8px}.view-actions{display:flex;flex-wrap:wrap;gap:8px}.workspace-open .main,.workspace-open .dock{visibility:hidden}.workspace-open header{border-bottom:1px solid var(--line)}@media(max-width:650px){.nav-menu{top:78px;left:18px}.workspace{inset:75px 0 0;padding:10px 20px 25px}.workspace h1{font-size:30px}.view-grid{grid-template-columns:1fr;gap:0}.review-layout{height:calc(100dvh - 290px)}.review-note-head{font-size:11px}.review-notes{height:180px}.file-row{align-items:flex-start}.file-row .action{padding:8px 10px}.workspace-header{font-size:12px}}
/* M1 keeps the approved prototype tokens and layout. Only state/accessibility additions below. */
[hidden]{display:none!important}button:disabled{opacity:.45;cursor:default}a{color:var(--accent)}.message{white-space:pre-wrap;overflow-wrap:anywhere}.message .foot-actions{white-space:normal}.source-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.source-links button{color:var(--muted);font-size:12px;text-decoration:underline}.save-indicator.error{color:#e7a695;max-width:60%;text-align:right}.editor-text{display:block;min-height:260px}.muted{color:var(--muted)}.review-send-row{align-items:center;gap:12px}.review-send-row .note{margin-right:auto}.notes-submission{white-space:pre-wrap;font:14px/1.7 system-ui;overflow-wrap:anywhere}.save-warning{color:#e7a695;font:13px/1.6 system-ui;margin:12px 0}.search-results{margin-top:20px}.action-link{display:inline-block;text-decoration:none;font:12px system-ui}.empty-state{max-width:560px;padding:30px 0}.history-item{overflow-wrap:anywhere}.review-layout{min-height:430px}.review-visual{min-height:170px}.review-notes{min-height:150px}.nav-menu button:focus-visible{outline-offset:-2px}.work-card h2{margin-top:0}.file-row .note{max-width:70ch}.conversation-meta{font:11px system-ui;color:var(--muted);margin-bottom:7px}.toast{max-width:calc(100% - 30px);width:max-content}.editor-text:focus-visible,.review-notes textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.offline-banner{color:#e7a695}.search{box-sizing:border-box}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@media(max-width:650px){.review-layout{height:calc(100dvh - 245px);min-height:470px}.review-send-row .note{font-size:11px}.workspace .editor-bar{font-size:12px}.file-row{flex-wrap:wrap}.save-indicator.error{max-width:100%}}
