:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172b2a;background:#d9e2dc;font-synthesis:none;--green:#075e54;--mint:#dcf8c6;--border:#e6ebe8}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #24b69a;outline-offset:2px}[hidden]{display:none!important}a{color:inherit}button:disabled{cursor:wait;opacity:.55}.app{height:100dvh;max-width:1600px;margin:auto;display:grid;grid-template-columns:370px 1fr;background:#fff;box-shadow:0 4px 45px #193c3024}.sidebar{min-width:0;display:flex;flex-direction:column;border-right:1px solid #d7dfda;background:#fff;position:relative;z-index:2}.brandbar{display:flex;gap:11px;align-items:center;background:var(--green);color:white;padding:18px 18px 16px;position:relative;min-height:86px}.brandbar img{border-radius:12px}.brandbar>div{min-width:0;flex:1}.brandbar h1{font-size:22px;letter-spacing:-.7px;margin:0;font-weight:650}.brandbar span{font-size:11px;color:#c6e6dc}.icon{display:inline-flex;justify-content:center;align-items:center;width:44px;height:44px;border:0;background:transparent;color:inherit;text-decoration:none;font-size:27px;border-radius:50%;flex:none}.icon:hover{background:#ffffff24}#menu{position:absolute;top:72px;right:12px;width:260px;border-radius:12px;padding:8px;background:#fff;color:#172b2a;box-shadow:0 8px 40px #172b2a40;z-index:10}#menu a,#menu button{display:block;width:100%;text-align:left;font-size:13px;padding:14px 12px;text-decoration:none;border:0;background:none;border-radius:8px}#menu a:hover,#menu button:hover{background:#edf5ef}.search{display:flex;align-items:center;gap:10px;margin:16px 14px 11px;background:#f0f3f1;border-radius:13px;padding:0 12px}.search span{font-size:25px;color:#60756b}.search input{width:100%;height:44px;font-size:13px;background:transparent;border:0;outline-offset:0;color:#172b2a;min-width:0}.filters{display:flex;gap:7px;padding:0 14px 12px}.filters button{min-height:34px;padding:6px 13px;border:0;border-radius:20px;background:#f0f3f1;color:#5c6c63;font-size:12px;font-weight:600}.filters button.selected{color:#075e54;background:#d9f3e5}#list-status{font-size:11px;color:#687e72;margin:0;padding:0 19px 10px;min-height:24px}.contacts{flex:1;overflow:auto;overscroll-behavior:contain}.contact{width:100%;display:flex;gap:12px;text-align:left;align-items:center;border:0;background:#fff;color:inherit;padding:13px 17px;min-height:79px;position:relative}.contact:after{content:"";position:absolute;bottom:0;left:78px;right:16px;height:1px;background:var(--border)}.contact:hover,.contact.active{background:#edf5f0}.avatar{height:45px;width:45px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e5efea;color:#255d48;font-size:15px;font-weight:650;flex:none}.avatar.ai{background:#e9e8f8;color:#615592;font-size:23px}.contact .info{flex:1;min-width:0}.contact strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600}.contact .preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6d7c74;font-size:12px;margin-top:5px}.contact .meta{align-self:flex-start;padding-top:5px;font-size:10px;color:#789084;text-align:right}.unread{display:block;background:#20b56a;color:white;border-radius:20px;min-width:20px;line-height:20px;text-align:center;margin-top:8px;float:right;font-size:11px}.section-label{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;font-weight:700;color:#7a8d82;padding:17px 19px 6px;margin:0}.empty{color:#74857a;font-size:13px;padding:20px;line-height:1.7}.bottomnav{display:flex;border-top:1px solid var(--border);padding:7px 7px max(7px,env(safe-area-inset-bottom));background:#fcfdfc}.bottomnav>*{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;font-size:10px;padding:5px;border:0;background:transparent;color:#687a70;min-height:48px}.bottomnav span{font-size:21px;height:25px}.bottomnav .active{color:var(--green);font-weight:650}.main{min-width:0;min-height:0;position:relative;background:#f1f5f1}.welcome{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;border-bottom:6px solid #25d366}.welcome img{border-radius:32px;box-shadow:0 12px 32px #123a2b1c;margin-bottom:22px}.welcome h2{font-size:25px;letter-spacing:-.8px;margin:0 0 12px;font-weight:550}.welcome p{max-width:340px;color:#718076;font-size:14px;line-height:1.7;margin:0}.old-space{padding:12px 20px;background:#e4eee6;border-radius:24px;font-size:12px;font-weight:600;text-decoration:none;margin:25px 0 45px;color:#2e6950}.welcome small{font-size:10px;color:#7f9185}.chat{height:100%;display:flex;flex-direction:column;min-height:0}.chatbar{min-height:72px;padding:8px 17px;display:flex;gap:12px;align-items:center;background:#f9fbf9;border-bottom:1px solid #dbe4dd}.chatbar #back{display:none}.chat-title{flex:1;min-width:0}.chat-title h2{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 4px;font-weight:650}.chat-title>span{font-size:11px;color:#708375}.person-view{flex:1;min-height:0;display:flex;flex-direction:column;background-color:#efeae2;background-image:radial-gradient(#9eaa9f1c .9px,transparent .9px);background-size:17px 17px}.privacy-note{text-align:center;font-size:10px;background:#fff6da;color:#797258;border-radius:8px;padding:9px 13px;margin:15px auto 3px;max-width:86%;line-height:1.5}.messages{flex:1;min-height:0;overflow-y:auto;padding:20px 6%;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}.bubble{border-radius:0 10px 10px 10px;padding:9px 11px 6px;background:white;box-shadow:0 1px 2px #172b2a19;max-width:82%;align-self:flex-start;min-width:100px;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:var(--mint);border-radius:10px 0 10px 10px}.bubble .body{white-space:pre-wrap;line-height:1.5;font-size:14px}.bubble footer{font-size:9px;color:#788578;text-align:right;margin-top:5px;display:flex;gap:6px;justify-content:flex-end;align-items:center}.receipt{font-size:13px;letter-spacing:-3px;padding-right:3px}.receipt.read{color:#3b9fc0}.file{display:flex;gap:10px;background:#132e1910;border:1px solid #172b2a0c;padding:10px;border-radius:7px;margin:4px 0;color:#245846;font-size:12px;text-decoration:none;word-break:break-word}.file .file-icon{font-size:23px;flex:none}.file strong{display:block}.file small{font-size:9px;color:#6c7c6f;display:block;margin-top:4px}.date-label{align-self:center;background:#ffffffa8;border-radius:7px;font-size:10px;color:#65786a;padding:5px 10px;margin:7px 0}.older{align-self:center;margin:8px 0 0;border:0;background:#ffffffb8;color:#296d50;border-radius:18px;padding:8px 15px;font-size:11px;min-height:34px}#composer{display:flex;gap:8px;align-items:flex-end;padding:9px 13px 5px}#composer .attach{color:#657c6c;background:#fff;cursor:pointer}#message-input{flex:1;min-width:0;resize:none;min-height:46px;max-height:140px;padding:12px 15px;border-radius:23px;border:0;background:white;color:#172b2a;line-height:22px;font-size:16px}#send-message{height:46px;width:46px;flex:none;border:0;background:#00866a;color:white;border-radius:50%;font-size:22px}.send-status{font-size:10px;padding:3px 20px max(9px,env(safe-area-inset-bottom));color:#617868;min-height:23px}.attachment-list{display:flex;flex-wrap:wrap;gap:6px;padding:0 13px}.attachment-list:empty{display:none}.attachment-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;background:#fff;font-size:11px;border-radius:8px;padding:7px 10px;overflow-wrap:anywhere}.attachment-chip button{border:0;background:none;color:#456958;font-size:18px;min-height:30px;min-width:30px}.ai-view{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;background:#fff}.ai-actions{display:flex;align-items:center;gap:6px;padding:5px 12px;flex-wrap:wrap;border-bottom:1px solid var(--border);background:#fff}.ai-actions>span{font-size:10px;color:#7a8a80;flex:1;min-width:120px}.ai-actions button{min-height:34px;border:0;border-radius:18px;font-size:10px;color:#276349;background:#edf6ee;padding:6px 12px}.ai-view iframe{width:100%;flex:1;min-height:0;border:0}.ai-loading{position:absolute;top:95px;left:15px;right:15px;background:#edf5ef;border-radius:10px;padding:14px;font-size:12px;color:#38674c;text-align:center;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.login{display:block;color:#075e54;background:#e4f4ea;padding:16px;border-radius:12px;text-align:center;text-decoration:none;margin:14px}.error{color:#a24634!important}
body{overflow:hidden}.sidebar,.contacts{min-height:0}.brandbar,.search,.filters,#list-status,.bottomnav{flex-shrink:0}
@media(min-width:1400px){.app{height:calc(100dvh - 40px);margin:20px auto;border-radius:8px;overflow:hidden}}@media(max-width:760px){.app{grid-template-columns:1fr}.sidebar{border:0}.main{display:none}body.chat-open .sidebar{display:none}body.chat-open .main{display:block}.brandbar{padding:14px 16px 12px;min-height:78px;padding-top:max(14px,env(safe-area-inset-top))}.brandbar h1{font-size:23px}.brandbar img{width:40px;height:40px}.brandbar>span{font-size:10px}.chatbar{background:#075e54;color:white;min-height:66px;padding:8px 8px;padding-top:max(8px,env(safe-area-inset-top));gap:7px}.chatbar #back{display:inline-flex;width:32px}.chatbar .avatar{width:37px;height:37px}.chatbar .chat-title>span{color:#bfdfcf;font-size:10px}.chat-title h2{font-size:14px}.messages{padding:16px 14px}.bubble{max-width:88%}.ai-actions{gap:3px;padding:5px}.ai-actions>span{display:none}.ai-actions button{flex:1;font-size:9px;padding:5px;min-height:34px}.privacy-note{font-size:9px;margin-top:12px}.contact{min-height:77px;padding:12px 17px}.filters{padding-bottom:10px}.search{margin-top:13px}.send-status{padding-bottom:max(8px,env(safe-area-inset-bottom))}#composer{padding-inline:8px;gap:6px}}@media(prefers-reduced-motion:no-preference){.contact{transition:background .15s}}

.receipt{letter-spacing:-2px;padding:0 2px;font-size:15px;color:#708077;white-space:nowrap}.receipt.queued{letter-spacing:0;font-size:16px;color:#8a846e}.receipt.read,.receipt-read-help{color:#168fc3}.receipt.failed{letter-spacing:0;background:none;border:1px solid #b75635;color:#b75635;border-radius:50%;min-width:24px;min-height:24px;font-weight:bold;cursor:pointer}#receipt-dialog{max-width:min(90vw,440px);border:0;border-radius:18px;padding:24px;color:#234a3d;box-shadow:0 15px 90px #123b3366}#receipt-dialog::backdrop{background:#092f2b88}#receipt-dialog form{text-align:right}#receipt-dialog button{border:0;background:#e5f1e8;border-radius:50%;width:36px;height:36px;font-size:23px}#receipt-dialog h2{font-size:20px}#receipt-dialog p{font-size:13px;line-height:1.7}#receipt-dialog small{font-size:11px}.contact:focus-visible{outline-offset:-3px}

.contact[data-contact="assistant:general"] .avatar,.chatbar .avatar.ai{background:#d9f3e5;color:#075e54;font-size:16px}.contact[data-contact="assistant:general"] strong:after{content:" · IA";font-size:10px;color:#6d7c74}
.assistant-native{flex:1;min-height:0;display:flex;flex-direction:column;background:#efeae2;color:#172b2a;color-scheme:light}
.assistant-native .messages{padding:14px 12px;gap:12px}
.assistant-native .bubble{background:#fff;color:#172b2a;font-size:14px;line-height:1.5;max-width:90%}
.assistant-native .bubble.mine{background:#d9fdd3}
.assistant-native .bubble small{display:block;color:#617868;font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.assistant-context-bar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 11px;font-size:10px;color:#617868;background:#efeae2}
.assistant-context-bar button{max-width:68%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:16px;background:#fff;color:#075e54;padding:7px 11px;font-size:11px;min-height:32px}
#assistant-form{display:flex;align-items:flex-end;gap:7px;padding:7px 8px 3px;background:#efeae2;margin:0}
#assistant-form .attach{background:#fff;color:#617868;flex:none;width:42px;height:44px;font-size:25px;border:0;border-radius:50%;display:grid;place-items:center}
#assistant-input{flex:1;min-width:0;resize:none;min-height:46px;max-height:126px;height:46px;border:0;border-radius:23px;padding:12px 14px;background:#fff;color:#172b2a;font:16px/22px system-ui;outline-offset:2px}
#assistant-input::placeholder{color:#617868;opacity:1}
#assistant-send{flex:none;width:46px;height:46px;border:0;border-radius:50%;background:#00866a;color:#fff;font-size:23px}
#assistant-status{background:#efeae2;color:#617868;min-height:23px}
.assistant-detail{font-size:11px;color:#617868;margin-top:7px}
.assistant-detail summary{padding:3px 0}
.assistant-detail p{font-size:11px;overflow-wrap:anywhere}
#assistant-context-dialog{border:0;border-radius:14px;max-width:min(90vw,400px);padding:20px;background:#fff;color:#172b2a;color-scheme:light;font:14px/1.5 system-ui}
#assistant-context-dialog::backdrop{background:#0005}
#assistant-context-dialog form{text-align:right}#assistant-context-dialog form button{border:0;background:transparent;font-size:23px;min-width:36px;min-height:36px;color:#075e54}
#assistant-context-dialog select{width:100%;min-height:44px;background:#f0f3f1;color:#172b2a;border:1px solid #dbe4dd;border-radius:9px;padding:8px;margin-top:7px;font:16px system-ui}
.assistant-native{overflow:hidden;flex:1 1 0%}
.assistant-native .messages{flex:1 1 0%;height:0;min-height:0;overflow-y:auto}
.assistant-context-bar,#assistant-form,#assistant-files,#assistant-status{flex:0 0 auto}
#assistant-form{min-height:56px}
#assistant-status{min-height:23px}
.ai-actions,.chatbar{flex-shrink:0}

/* One navigation system: two views, secondary actions in the conversation menu. */
:root{--wa-surface:#fff;--wa-soft:#f0f2f5;--wa-border:#e5ebe8;--wa-ink:#172b2a;--wa-accent:#008069;color-scheme:light}
.conversation-tabs{display:flex;flex:0 0 44px;min-height:44px;background:var(--wa-surface);border-bottom:1px solid var(--wa-border);padding:0 12px;gap:16px}
.conversation-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#687b73;font-size:13px;font-weight:600;padding:8px 12px 6px}
.conversation-tabs button[aria-selected=true]{color:var(--wa-accent);border-bottom-color:var(--wa-accent)}
.conversation-tabs svg,.sheet-actions svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.conversation-tabs button:hover{background:#f6faf8}.conversation-tabs button:focus-visible{outline-offset:-3px}
.assistant-context-bar{padding:4px 12px;min-height:36px;background:#efeae2}
.assistant-context-bar button{background:transparent;max-width:100%;padding:5px 4px;min-height:32px;font-size:12px;text-align:left}
.assistant-context-bar button:after{content:'⌄';margin-left:7px;color:#617868}.context-hint{display:none}
.chatbar .chat-title>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
#conversation-menu{width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:18px;background:#fff;color:var(--wa-ink);box-shadow:0 18px 70px #0b292d33;overflow-y:auto;overscroll-behavior:contain}
#conversation-menu::backdrop{background:#0b141a66}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 4px;gap:12px}
.sheet-heading h2{font-size:18px;font-weight:600;margin:0}.sheet-heading .icon{color:#617868;font-size:26px}
.sheet-actions{padding:4px 8px 10px}
.sheet-actions>button{display:flex;align-items:center;gap:14px;width:100%;padding:12px;min-height:64px;border:0;border-radius:10px;background:#fff;color:#075e54;text-align:left;font-size:17px}
.sheet-actions>button>span:not(.menu-chevron){flex:1;min-width:0}
.sheet-actions strong{display:block;font-size:14px;font-weight:600;color:#172b2a}.sheet-actions small{display:block;font-size:11px;color:#687b73;line-height:1.5;margin-top:3px}
.sheet-actions>button:hover,.sheet-links a:hover{background:#f0f5f2}.menu-chevron{font-size:22px;color:#82928a}
.sheet-links{padding:5px 20px 16px;border-top:1px solid var(--wa-border)}.sheet-links p{font-size:11px;color:#687b73;margin:10px 0 4px}
.sheet-links a{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:13px;text-decoration:none;color:#172b2a;border-radius:8px}
.sheet-links a span{font-size:19px;color:#82928a}
.bottomnav .active span{background:#d9f3e5;border-radius:18px;min-width:52px;text-align:center}
@media(max-width:760px){#conversation-menu{margin:auto auto 0;width:100%;max-width:100%;max-height:85dvh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.sheet-heading{padding-top:14px}.chatbar{gap:9px}.conversation-tabs{padding:0 12px;gap:16px}}
.app{height:var(--evwa-height,100dvh);grid-template-rows:minmax(0,1fr);overflow:hidden}.sidebar,.main{height:100%;max-height:100%}
@media(min-width:1400px){.app{height:calc(var(--evwa-height,100dvh) - 40px)}}
.manuscript-demo{display:flex;flex-direction:column;min-height:0;flex:1 1 0%;overflow:hidden;background:#efeae2;color:#172b2a;color-scheme:light}
.manuscript-demo-bar{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none;padding:4px 12px;background:#f5f8f6;border-bottom:1px solid #dfe8e2;font-size:11px;color:#617868}
.manuscript-demo-bar button{border:0;background:transparent;color:#075e54;min-height:36px;padding:6px;font-size:12px}
.manuscript-log{flex:1 1 0%;height:0;min-height:0;overflow-y:auto;padding:14px 12px;gap:12px;scroll-behavior:smooth}
.manuscript-log .bubble{max-width:90%;font-size:14px;line-height:1.45;background:#fff;color:#172b2a;overflow-wrap:anywhere}
.manuscript-log .bubble.mine{background:#d9fdd3}.manuscript-log .bubble>small{display:block;color:#617868;font-size:11px;margin-top:7px}
.manuscript-photo{display:block;width:min(230px,100%);height:auto;max-height:300px;object-fit:contain;border-radius:8px;margin-bottom:7px;background:#ece9df}
.manuscript-controls{flex:none;padding:9px 12px max(9px,env(safe-area-inset-bottom));display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;background:#f7f9f7;border-top:1px solid #dfe8e2}
.manuscript-controls>small{width:100%;text-align:center;color:#617868;font-size:11px}.manuscript-controls button{background:#008069;color:#fff;border:0;border-radius:24px;min-height:44px;padding:10px 18px;font-size:13px}.manuscript-controls button+button{background:#e2efe7;color:#075e54}
.manuscript-progress p{margin:6px 0;font-size:13px}.manuscript-progress strong{font-weight:600}.manuscript-progress small{font-size:11px;color:#617868}.manuscript-steps{display:flex;gap:5px;margin:10px 0 5px}.manuscript-steps span{width:32px;height:4px;border-radius:4px;background:#e3ece6}.manuscript-steps span.done{background:#008069}.manuscript-progress.is-slow{border-left:3px solid #d2aa54}
.manuscript-file{display:flex;gap:9px;align-items:center;border-radius:9px;padding:10px;background:#f1f7f3;text-decoration:none;margin-bottom:9px;font-size:12px;white-space:pre-line}.manuscript-file>span:nth-child(2){min-width:0;flex:1}.manuscript-file-icon{font-weight:700;color:#087f69;background:#d8eee2;border-radius:6px;padding:13px 7px}.manuscript-file>span:last-child{font-size:24px;color:#008069}
.manuscript-details{font-size:11px;color:#617868;margin-top:9px}.manuscript-details summary{min-height:28px;cursor:pointer}.manuscript-details p{white-space:pre-wrap}.manuscript-error{border-left:3px solid #d2aa54}
@media(prefers-reduced-motion:reduce){.manuscript-log{scroll-behavior:auto}}
.manuscript-file strong{display:block;font-size:14px;font-weight:600}.manuscript-file small{display:block;margin-top:4px;font-size:11px;color:#617868}
.manuscript-file-actions{display:flex;gap:8px;margin:4px 0 8px}.manuscript-file-actions button{flex:1;min-height:40px;border:1px solid #d4e5db;border-radius:9px;background:#fff;color:#008069;font-size:13px;font-weight:600}
.manuscript-viewer{width:100vw;max-width:100vw;height:var(--evwa-height,100dvh);max-height:100dvh;margin:0;padding:0;border:0;background:#f1f4f2;color:#172b2a;overflow:hidden;border-radius:0}
.manuscript-viewer[open]{display:flex;flex-direction:column}.manuscript-viewer::backdrop{background:#0b141a99}.manuscript-viewer>header{display:flex;justify-content:space-between;align-items:center;padding:8px 14px;background:#075e54;color:#fff;flex:none}.manuscript-viewer>header strong{font-size:16px}.manuscript-viewer>header button{min-width:44px;min-height:44px;font-size:28px;background:transparent;color:inherit;border:0}
.document-toolbar{display:flex;align-items:center;gap:5px;padding:7px 8px;background:#fff;flex-wrap:wrap;flex:none}.document-toolbar button,.document-toolbar select{font-size:12px;min-height:40px;border:1px solid #d4e5db;border-radius:8px;background:#fff;color:#075e54;padding:7px 9px;max-width:100%}.document-toolbar button[aria-pressed=true]{background:#d9f3e5;border-color:#83bda2}.document-toolbar select{flex:1;min-width:105px}.document-toolbar button:last-child{font-size:11px}
.document-status{font-size:11px;color:#617868;padding:5px 12px;margin:0;min-height:28px;flex:none}.document-viewport{overflow:auto;flex:1 1 0%;min-height:0;min-width:0;padding:8px;overscroll-behavior:contain}.document-viewport img{display:block;width:100%;height:auto;box-shadow:0 2px 9px #172b2a19;background:white}.document-viewport img:not([src]){display:none}.document-viewport.expanded img{width:1100px;max-width:none}
.manuscript-viewer>footer{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d4e5db;flex:none}.manuscript-viewer>footer small{font-size:11px;color:#617868}.manuscript-viewer>footer a{padding:12px 14px;background:#008069;color:white;border-radius:20px;text-decoration:none;font-size:12px;white-space:nowrap}

.topography-panel{min-height:0;flex:1;display:flex;flex-direction:column;background:#f6f8f7;color:#172923;overflow:hidden}.topography-panel[hidden]{display:none!important}.topography-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff;border-bottom:1px solid #dce5df}.topography-bar button,.topography-content button{background:#fff;color:#075e54;border:1px solid #abc3b7;border-radius:8px;padding:10px;cursor:pointer;font:inherit}.topography-content{padding:12px;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:12px}.topography-content p{margin:0;line-height:1.45}.topography-content label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#304b40}.topography-content input,.topography-content select{min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid #bdcec5;border-radius:7px;background:#fff;color:#172923;font:inherit}.topography-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.topography-fields[hidden],.topography-plot[hidden],.topography-table[hidden]{display:none}.topography-fields label:last-of-type,.topography-generate{grid-column:1/-1}.topography-content .topography-generate{background:#075e54;color:white;font-weight:600}.topography-summary{background:#e4f0e8;border-radius:9px;padding:10px;font-size:13px;line-height:1.6}.topography-summary:empty{display:none}.topography-warnings,.topography-status.error{color:#923716;font-size:13px}.topography-status{color:#075e54;font-size:13px}.topography-plot{width:100%;max-width:600px;align-self:center;border:1px solid #d8e2dc;border-radius:6px;background:white}.topography-table{overflow-x:auto}.topography-table table{border-collapse:collapse;width:100%;font-size:12px;background:#fff}.topography-table th,.topography-table td{white-space:nowrap;padding:7px;border-bottom:1px solid #dae5de;text-align:right}.topography-table th:first-child,.topography-table td:first-child{text-align:left}.topography-table th{background:#eef5f0}.topography-outputs{display:flex;flex-wrap:wrap;gap:10px}.topography-download{display:inline-block;background:#075e54;color:#fff;padding:12px;border-radius:9px;text-decoration:none}.topography-content small{color:#547062;font-size:11px;line-height:1.5}.topography-content button:disabled{opacity:.6;cursor:wait}

+.topography-mode{display:flex;gap:8px;padding:8px 12px;background:#fff;border-bottom:1px solid #dce5df}.topography-mode button{flex:1;padding:10px;border:1px solid #abc3b7;border-radius:8px;background:white;color:#075e54;font:inherit}.topography-mode button[aria-pressed="true"]{background:#e4f0e8;font-weight:600}.topography-content[hidden]{display:none!important}.topography-history-list{display:flex;flex-direction:column;gap:12px}.topography-history-card{background:white;border:1px solid #d4e1d9;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}.topography-history-card p{margin:0;line-height:1.45}.topography-history-card small{display:block;color:#567063}.topography-history-card button,.topography-public-view button{padding:10px;border:1px solid #abc3b7;border-radius:7px;background:white;color:#075e54;font:inherit}.topography-public-view{position:fixed;inset:0;z-index:10000;background:#f6f8f7;color:#172923;display:flex;flex-direction:column;font:14px Arial;overflow:hidden}.topography-public-view[hidden]{display:none!important}.topography-public-view header{padding:12px;display:flex;align-items:center;gap:8px;background:#fff;border-bottom:1px solid #dce5df}.topography-public-view header strong{flex:1}.topography-public-view>div{padding:12px;overflow:auto;min-height:0}.topography-public-view .topography-download{font-size:14px}.topography-pending:empty{display:none}
/* Document evidence stays with its message; the workspace keeps one composer. */
.document-sources{margin-top:12px;padding-top:10px;border-top:1px solid #cadbd2;font-size:13px}.document-sources>strong{display:block;margin-bottom:7px}.document-source{padding:7px 0;border-bottom:1px solid #dce6df}.document-source summary{cursor:pointer;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.document-source blockquote{margin:8px 0;padding:9px 12px;border-left:3px solid #438774;background:#f4f8f3;white-space:pre-wrap}.document-source button,.document-source a{display:inline-block;min-height:44px;padding:10px 12px;color:#075e54;background:#e5f1e7;border:1px solid #b6d4c2;border-radius:8px;font:600 13px system-ui;text-decoration:none}.document-location,.document-hash{font-size:12px;color:#50665b;overflow-wrap:anywhere}.document-fallback{display:block;color:#79580c;background:#fff5d7;padding:8px;border-radius:6px}.document-viewer{max-width:900px;width:calc(100% - 20px);max-height:94dvh;padding:18px;border:1px solid #b8d3c4;border-radius:14px;color:#16372b;background:#fff}.document-viewer header{display:flex;gap:12px;align-items:start;justify-content:space-between;position:sticky;top:-18px;background:white;z-index:1;padding:10px 0}.document-viewer h2{font-size:18px;line-height:1.35;margin:0;overflow-wrap:anywhere}.document-viewer header button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#e7f2e9;font-size:24px}.document-literal{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.65 system-ui;background:#f4f7f2;padding:14px;border:1px solid #dbe5dc;border-radius:8px}.document-viewer img{max-width:100%;height:auto;background:white}.document-viewer>a{display:inline-block;padding:12px;color:#075e54;border:1px solid #b6d4c2;border-radius:8px}.document-viewer::backdrop{background:#10251acc}#assistant-attach:focus-visible,.document-source summary:focus-visible{outline:3px solid #168b6a;outline-offset:2px}

.visual-sources{display:grid;gap:12px;padding-top:12px}.section-card{margin:0;border:1px solid #d8e4df;border-radius:13px;overflow:hidden;background:#fff}.section-card figcaption{font-size:12px;font-weight:650;overflow-wrap:anywhere;padding:10px 12px 3px}.section-card>.document-location{display:block;padding:0 12px 11px;font-size:11px}.section-thumbnail{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;width:100%;min-height:145px;max-height:290px;overflow:hidden;padding:12px;border:0;border-bottom:1px solid #d8e4df;background:#f4f7f5;color:#315c50;cursor:zoom-in}.section-thumbnail img{max-width:100%;max-height:260px;object-fit:contain;background:white}.section-placeholder{font-size:13px}.section-enlarge{position:absolute;right:9px;bottom:9px;padding:6px 10px;background:#075e54ed;color:#fff;border-radius:18px;font-size:11px}.section-unavailable{font-size:12px;line-height:1.5;color:#786549;max-width:36em}.section-more>summary{cursor:pointer;padding:12px 4px;font-size:12px}.section-more .section-card{margin-top:12px}.image-section-viewer{width:min(94vw,1100px);max-width:none;max-height:94dvh;padding:16px;border:0;border-radius:16px;background:#fff;color:#172b2a}.image-section-viewer::backdrop{background:#12362fd9}.image-section-viewer header{display:flex;align-items:start;gap:14px}.image-section-viewer h2{flex:1;font-size:15px;margin:0;overflow-wrap:anywhere}.image-section-viewer header button{border:0;border-radius:50%;font-size:25px;width:40px;height:40px;background:#e8f2ec;flex:none}.section-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:center}.section-toolbar button,.section-toolbar a{min-height:40px;min-width:40px;border:1px solid #bdd5c9;border-radius:9px;background:#f0f7f2;padding:7px 12px;color:#075e54;font-size:13px}.section-toolbar a{margin-left:auto;text-decoration:none}.section-viewport{max-height:65dvh;overflow:auto;background:#dbe3df;border:1px solid #cad9d0;border-radius:10px;padding:12px;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}.section-viewport img{display:block;width:100%;max-width:none;height:auto;background:#fff;margin:0 0 12px}.image-section-viewer .document-hash{display:block;margin-top:10px;font-size:10px;overflow-wrap:anywhere}
.device-library{width:min(960px,100% - 16px);height:min(92dvh,1000px);max-height:94dvh;border:0;border-radius:20px;padding:16px;color:#203c36;background:#f6f9f5;box-shadow:0 15px 90px #001c2166;overflow:auto;box-sizing:border-box}.device-library::backdrop{background:#001f24aa}.device-library header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-16px;background:#f6f9f5;z-index:2;padding:12px 0}.device-library h2{font-size:20px;margin:0;overflow-wrap:anywhere}.device-library header button{border:0;border-radius:50%;width:44px;height:44px;font-size:26px;background:#e2ece5;color:#174e43}.device-library button,.device-library a{cursor:pointer;font:inherit;touch-action:manipulation}.device-status{font-size:13px;color:#217252;overflow-wrap:anywhere;min-height:20px}.device-description{font-size:14px;line-height:1.5;color:#5a7066}.device-controls,.device-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.device-controls button,.device-controls a,.device-filters button,#device-backup-download{border:1px solid #b7cfc0;background:white;color:#185442;border-radius:12px;padding:10px 13px;text-decoration:none;min-height:44px;box-sizing:border-box}.device-controls button:disabled{opacity:.5}.device-filters [aria-pressed=true]{background:#096753;color:white}.device-library input[type=search]{box-sizing:border-box;border:1px solid #b7cfc0;border-radius:13px;width:100%;padding:13px;font:inherit}.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:12px;margin:16px 0}.device-card{display:flex;flex-direction:column;text-align:left;gap:8px;min-width:0;max-width:100%;border:1px solid #dfE7df;background:white;border-radius:16px;padding:10px;color:#193e33}.device-card strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.device-card small{font-size:11px;color:#638477}.device-art{height:112px;display:flex;align-items:center;justify-content:center;background:#edf4ed;border-radius:10px;font-size:45px;width:100%;overflow:hidden}.device-art img{width:100%;height:100%;object-fit:contain}.device-preview-body{overflow:auto;background:#dfe6df;max-height:65dvh;min-height:180px;padding:10px;box-sizing:border-box}.device-preview-body img,.device-preview-body canvas{display:block;width:100%;max-width:none;height:auto;margin:0 auto 10px;background:white;box-shadow:0 2px 7px #2338}.device-copy-status{display:block;color:#287554;margin-top:5px;font-size:11px}.section-toolbar{flex-wrap:wrap}.section-toolbar button{min-height:40px}.device-library :focus-visible{outline:3px solid #dc9d15;outline-offset:2px}#device-backup-download{display:inline-block;background:#096753;color:white;margin:10px 0}@media(max-width:500px){.device-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.device-library{padding:12px;border-radius:17px}.device-controls{gap:6px}.device-controls button,.device-controls a{font-size:13px;padding:9px}.device-art{height:100px}}
