: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}.account-identity{display:block;margin-top:5px;overflow-wrap:anywhere}.company-return{display:inline-block;margin-top:7px;font-size:12px;font-weight:800;color:#066347;text-decoration:underline;text-underline-offset:3px}.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}}
.fact-review{margin:12px 20px;padding:14px;border:1px solid #d4e3d4;border-radius:12px;background:#f7faf5}.fact-review summary{font-size:13px;font-weight:750;cursor:pointer;color:#165b46}.fact-review .hint{margin:10px 0}.fact-item{border-top:1px solid #dce8da;padding:12px 0;display:grid;gap:5px}.fact-item strong{font-size:13px}.fact-item .body{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.fact-item .subtle{justify-self:start;padding:7px 10px}
/* Authenticated, in-page attention queue: visible only while the page is open. */
.attention-shortcut{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 10px;border:1px solid #a97511;border-radius:9px;background:#fff7e6;color:#4e3708;font-size:12px;font-weight:750;white-space:nowrap}
.attention-shortcut #attention-shortcut-count{min-width:21px;display:inline-grid;place-items:center;border-radius:30px;padding:3px 6px;background:#d18d01;color:#1b2d1d}
.attention-shortcut.has-attention{background:#ffedc0;border-color:#d18d01}
.attention-panel{margin:12px 12px 0;padding:12px;border:1px solid #e7d7ad;border-radius:12px;background:#fffaf0}
.attention-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.attention-heading h3{margin:0;color:#274936;font-size:14px}
.attention-panel .hint{margin:6px 0 9px;color:#6c675b}
.attention-list{max-height:235px;overflow:auto;display:grid;gap:8px}
.attention-item{display:block;width:100%;text-align:left;padding:10px;border-radius:8px;border:1px solid #e6d9b8;background:#fff;color:#203e31}
.attention-item:hover{background:#fdf4dd}.attention-item.seen{border-color:#dbe6d8;background:#f7faf4}
.attention-item strong{font-size:13px;display:block;overflow-wrap:anywhere}
.attention-item .attention-reason{display:block;font-size:12px;line-height:1.4;margin-top:4px;overflow-wrap:anywhere}
.attention-item .attention-meta{display:block;font-size:11px;color:#6c7368;margin-top:6px}
@media(max-width:650px){.attention-shortcut{font-size:11px;gap:4px;padding:6px}.attention-panel{margin:10px 12px 0}.attention-list{max-height:185px}}
/* Real per-device Web Push opt-in; no customer text on the lock screen. */
.push-panel{border:1px solid #d8e4d5;background:#f5faf3;border-radius:12px;margin:14px 18px;padding:15px}
.push-panel h3{font-size:16px;margin:5px 0;color:#214634}
.push-panel .hint{margin:9px 0;color:#586f62}
.push-status{font-size:13px;font-weight:700;line-height:1.5;margin:10px 0;color:#075343;overflow-wrap:anywhere}
.push-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.push-buttons button{font-size:12px;padding:8px;min-height:42px}
.push-buttons button:first-child{grid-column:1/-1;background:#f8e8b9;border-color:#ba871b}
@media(max-width:650px){.push-panel{margin:12px;padding:14px}.push-buttons{grid-template-columns:1fr 1fr}}
.attention-panel #push-shortcut{font-size:11px;padding:7px 9px;margin:1px 0 10px;background:#fff;border-color:#dac99c}
/* Mobile fix: the old 280px inbox cap let a taller Needs-an-answer card
   paint over the thread list and the next column. Let the column grow. */
@media(max-width:650px){
  .topbar{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;padding:12px 16px;min-height:0}
  .brand-inline{min-width:0}
  .brand-inline .brand-mark{flex:0 0 40px}
  .top-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;width:100%;align-items:center}
  .top-actions #attention-shortcut{min-width:0;justify-content:center;white-space:normal;text-align:center}
  .top-actions .subtle{white-space:nowrap}
  .workspace{display:block;max-height:none}
  .thread-column{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none;overflow:visible}
  .thread-column .column-head,.attention-panel,.thread-column .column-description{flex:none}
  .thread-list{flex:none;max-height:50vh;overflow-y:auto;overscroll-behavior:contain}
  .chat-column{min-height:520px}
}

/* Two intentional entry points: OWNER at /, assigned STAFF at /company/work/. */
.owner-portal .auth-wrap{background:radial-gradient(circle at 22% 18%,#fff2d5,#f7f8f2 56%,#eaf2e9)}
.owner-portal .topbar{background:#244733}
.staff-work .auth-wrap{background:radial-gradient(circle at 22% 18%,#e4eee7,#f5f8f2 56%,#e8f1e8)}
.staff-work .topbar{background:#00301e}
.owner-picker{max-width:560px}
.owned-business-list{display:grid;gap:9px;margin:24px 0 20px}
.owned-business-list a{display:block;border:1px solid #b9d6c1;background:#eef8ef;border-radius:10px;
 padding:15px 17px;color:#16513a;text-decoration:none;font-weight:750;overflow-wrap:anywhere}
.owned-business-list a:hover,.owned-business-list a:focus-visible{border-color:#126c4d;background:#e3f3e7}
@media(max-width:650px){.owner-picker{width:100%}.staff-work .brand-inline strong{font-size:12px}}
.older-thread-messages{margin:10px auto 0;max-width:calc(100% - 32px);align-self:center;flex:none}
/* Account setup is available on the OWNER sign-in only; business access is not. */
.auth-card .auth-switch{margin-top:10px;min-height:42px}
.auth-card #signup-form{margin-top:23px}
.auth-card #signup-help{margin-bottom:0}
