:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19302c;background:#f3f5f1}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:#096b54}h1,h2,p{margin-top:0}h1{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.035em;line-height:1.2}h2{font-size:19px;letter-spacing:-.025em;margin:2px 0 0}strong{font-weight:700}.muted{color:#667772}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#668078}.hint{font-size:12px;line-height:1.5;color:#778681}.brand-mark{width:52px;height:52px;border-radius:15px;background:#123e34;color:white;display:grid;place-items:center;font-size:36px;font-weight:800;letter-spacing:-.1em}.brand-mark span{color:#d5ef8f}.brand-mark.small{width:36px;height:36px;border-radius:11px;font-size:27px}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 30% 20%,#e5eddd,#f7f8f4 60%)}.auth-card{background:white;border:1px solid #dfe6de;border-radius:20px;box-shadow:0 30px 80px #1d3d2e12;max-width:440px;padding:36px;width:100%}.auth-card .eyebrow{margin:22px 0 10px}.auth-card .muted{line-height:1.6}.auth-card form{display:grid;gap:10px;margin-top:28px}.auth-card label{font-size:12px;font-weight:700;margin-top:7px}.auth-card input,.composer textarea{border:1px solid #d4dfd6;border-radius:9px;background:#fff;padding:12px 13px;outline:none;width:100%}.auth-card input:focus,.composer textarea:focus{border-color:#15836b;box-shadow:0 0 0 3px #0e80551c}.primary{background:#0e735c;color:white;border:1px solid #0e735c;border-radius:9px;font-size:13px;font-weight:750;padding:11px 16px;min-height:40px}.primary:not(:disabled):hover{background:#095e4b}.ghost,.outline,.subtle{border:1px solid #cbd9cf;background:#fff;color:#174b3d;border-radius:9px;font-size:13px;font-weight:700;padding:10px 13px}.ghost:hover,.outline:hover,.subtle:hover{background:#f1f7f1}.wide{width:100%}.auth-card .hint{margin:20px 0 0}.notice{background:#ecf7ee;color:#215d49;border:1px solid #b3dec3;border-radius:9px;padding:10px 13px;margin:10px 18px;font-size:13px;line-height:1.5}.auth-card .notice{margin:18px 0 0}.notice.warn{background:#fff7e7;color:#805318;border-color:#ead9ae}.notice.error{background:#fff1ec;color:#8e3a2e;border-color:#ecc5bd}.desk{min-height:100vh;display:flex;flex-direction:column}.topbar{height:65px;padding:0 24px;background:#143e34;color:white;display:flex;justify-content:space-between;align-items:center}.brand-inline{display:flex;gap:10px;align-items:center}.brand-inline .brand-mark{background:#255848}.brand-inline strong{display:block;font-size:15px;margin-top:2px}.topbar .eyebrow{color:#b8d9c5}.top-actions{display:flex;align-items:center;gap:8px}.top-actions .subtle{background:#265449;color:#e9f4e9;border-color:#376557}.top-actions .subtle:hover{background:#326457}.pill{display:inline-flex;align-items:center;border-radius:99px;padding:6px 10px;background:#e5ede4;color:#466455;font-size:11px;font-weight:750;line-height:1.15}.pill.good{color:#105a42;background:#daf1de}.pill.warn{color:#865d18;background:#fff0cf}.pill.quiet{background:#edf0eb;color:#547066}.topbar .pill{background:#275849;color:#d8ebd9}.connection-strip{background:#fff;border-bottom:1px solid #e1e7df;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px}.connection-strip h1{margin:2px 0 2px}.connection-strip .muted{font-size:13px}.connection-indicators{display:flex;gap:7px;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:minmax(235px,300px) minmax(320px,1fr) minmax(250px,300px);flex:1;min-height:calc(100vh - 178px);max-height:calc(100vh - 178px)}.thread-column,.chat-column,.case-column{background:#fff;min-width:0;display:flex;flex-direction:column}.thread-column,.chat-column{border-right:1px solid #e4e9e2}.column-head{padding:20px 20px 14px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #eff1ee;min-height:86px}.column-description{font-size:12px;color:#85938d;margin:12px 18px}.count{background:#eaf0e9;border-radius:99px;padding:4px 9px;color:#38624d;font-size:12px;font-weight:700}.thread-list{overflow:auto;flex:1}.thread{width:100%;display:block;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef2ec;padding:16px 18px;color:#23413a}.thread:hover{background:#f6faf5}.thread.active{background:#edf6ee;border-left:3px solid #0d8061;padding-left:15px}.thread-title{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:14px}.thread-detail{display:block;color:#7a8a82;font-size:12px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state{padding:26px 20px;color:#84928a;line-height:1.55;font-size:13px}.centered{margin:auto;max-width:300px;text-align:center}.chat-head .muted{font-size:12px;display:block;margin-top:4px}.messages{background:#f8faf6;flex:1;overflow:auto;padding:25px 22px;display:flex;flex-direction:column;gap:14px}.message{max-width:min(74%,550px);padding:11px 14px;border:1px solid #e5eae3;background:white;border-radius:12px 12px 12px 4px;box-shadow:0 2px 5px #173b2310}.message.out{align-self:flex-end;background:#e5f3e6;border-color:#d3e9d4;border-radius:12px 12px 4px 12px}.message .body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.message .meta{display:block;color:#73837a;font-size:11px;margin-top:7px;text-align:right}.composer{background:white;border-top:1px solid #e2e8e0;padding:13px 18px 17px}.composer label{display:block;margin-bottom:9px}.composer textarea{resize:vertical;min-height:64px;font-size:14px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.composer-bottom .muted{font-size:11px;line-height:1.4}.case-column{overflow:auto;padding-bottom:20px}.case-column .column-head{min-height:86px}.case-column #case-panel{padding:18px 20px}.case-title{display:block;margin:7px 0 5px;font-size:16px}.case-column .muted{font-size:13px;line-height:1.55}.key-value{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:9px 0;border-bottom:1px solid #edf0ec}.control-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.control-buttons button:last-child{grid-column:1/-1}.divider{border-top:1px solid #e3eae2;margin:18px 0}.help-box{background:#eff6ef;border-radius:12px;margin:20px;padding:16px;font-size:12px;line-height:1.5;color:#3d6454}.help-box p{margin:6px 0 9px}footer{background:#fff;border-top:1px solid #e6ebe4;color:#83918a;font-size:11px;padding:8px 24px;text-align:center}[hidden]{display:none!important}@media(max-width:1050px){.workspace{grid-template-columns:minmax(200px,250px) minmax(340px,1fr);max-height:none}.case-column{grid-column:1/-1;border-top:1px solid #e4e9e2;display:block}.case-column #case-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.case-column .help-box{max-width:420px}}@media(max-width:650px){.topbar{padding:0 12px}.top-actions{gap:3px}.top-actions .subtle{font-size:11px;padding:8px}.top-actions .pill{display:none}.connection-strip{padding:16px;display:block}.connection-indicators{margin-top:12px}.workspace{display:block;max-height:none}.thread-column,.chat-column,.case-column{border-right:0;border-bottom:1px solid #e4e9e2}.thread-column{min-height:180px;max-height:280px}.chat-column{min-height:520px}.case-column #case-panel{display:block}.message{max-width:90%}}
/* Colours sampled from Iscalid's supplied logo: deep green and gold. */
:root{--brand-green:#00301e;--brand-gold:#d18d01;--brand-cream:#fbf8f0;color:#15352b;background:#f6f7f4}
.auth-wrap{background:radial-gradient(circle at 25% 18%,#fff4d9 0%,#f8f8f3 58%,#edf4ef 100%)}
.auth-card{border-color:#e8e3d5;border-top:4px solid var(--brand-gold);box-shadow:0 24px 72px #00301e17}
.brand-mark,.brand-inline .brand-mark{background:var(--brand-cream);border:1px solid #e8dfc7;display:grid;place-items:center;overflow:hidden;padding:5px;border-radius:14px}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.auth-card .brand-mark{width:64px;height:64px;padding:5px}
.brand-mark.small{width:40px;height:40px;padding:3px;border-radius:10px}
.auth-card .eyebrow{color:#78530b}
.topbar{background:var(--brand-green);border-bottom:3px solid var(--brand-gold);min-height:67px;height:auto}
.topbar .eyebrow{color:#f2d38c}
.top-actions .subtle{background:#174633;color:#fff;border-color:#37674f}
.top-actions .subtle:hover{background:#24573d}
.topbar .pill{background:#174633;color:#f5f7ef}
.connection-strip{border-bottom-color:#e7e3d7}
.primary{background:var(--brand-green);border-color:var(--brand-green);color:#fff}
.primary:not(:disabled):hover{background:#005038}
a{color:#005637}
.auth-card input:focus,.composer textarea:focus{border-color:#946200;box-shadow:0 0 0 3px #d18d0144}
:where(button,input,textarea,a):focus-visible{outline:2px solid var(--brand-gold);outline-offset:3px}
.ghost,.outline,.subtle{color:var(--brand-green);border-color:#ccd8cd}
.ghost:hover,.outline:hover,.subtle:hover{background:#fbf7e9}
.thread.active{background:#fff8e9;border-left-color:var(--brand-gold)}
.count{background:#f7e8c5;color:#4b350b}
.message.out{background:#eaf3e9;border-color:#cee3cf}
.help-box{background:#fcf6e9;border-left:3px solid var(--brand-gold);color:#244b36}
footer{background:#fefdf9;border-top-color:#e7e3d7}
@media(max-width:650px){.auth-card{padding:26px}.topbar{padding:7px 12px}.brand-inline{gap:8px}}
