:root{color-scheme:light;--ink:#25352e;--muted:#70796e;--line:#e1e5dc;--paper:#f7f7f1;--white:#fff;--green:#344f3e;--green-soft:#edf2e9;--orange:#b85d35;--note:#fff6dc;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #a5bd96;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}button{border:0}textarea{width:100%;resize:vertical;min-height:92px;max-height:240px;padding:14px 16px;border:1px solid #d5dbce;border-radius:12px;color:var(--ink);background:#fff;line-height:1.6}textarea::placeholder{color:#91998d}label{display:block;font-weight:600;margin:0 0 9px}.preview-banner{background:#e7ecdf;color:#42543a;text-align:center;padding:8px 20px;font-size:11px;letter-spacing:.025em}.preview-banner a{margin-left:16px;text-underline-offset:3px}.brandbar,.staff-header{display:flex;align-items:center;justify-content:space-between;padding:26px 6vw;border-bottom:1px solid var(--line)}.wordmark{font-family:Georgia,serif;font-size:30px;letter-spacing:-1.3px;font-weight:700;text-decoration:none;line-height:1}.wordmark span{display:block;font-family:Arial,sans-serif;font-size:8px;letter-spacing:2.4px;margin-top:8px;font-weight:400}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:650;color:var(--muted)}.customer-shell{max-width:820px;padding:38px 24px 36px;margin:auto}.order-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.order-heading h1{font-family:Georgia,serif;font-size:36px;font-weight:400;letter-spacing:-.8px;margin:4px 0}.order-heading p:not(.eyebrow){color:var(--muted)}.order-seal{font:italic 16px/1.5 Georgia,serif;color:#8b917c;text-align:right}.journey-card{background:#edf1e7;border-radius:var(--radius);padding:24px 28px;margin-bottom:24px}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.section-heading h2{font-family:Georgia,serif;font-size:21px;font-weight:400}.status{display:inline-flex;align-items:center;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:650;white-space:nowrap;color:#516448;background:#e8edde;line-height:1.4}.status-new{color:#9b522d;background:#faeddf}.status-waiting_customer{color:#6a6388;background:#efecf6}.status-resolved{color:#617368;background:#eaf0ec}.journey{display:flex;justify-content:space-between;list-style:none;padding:23px 0 0;margin:0;gap:8px}.journey li{position:relative;flex:1;padding-top:21px;font-size:11px;color:#8b9382}.journey li::before{content:"";width:10px;height:10px;border:2px solid #bdc6b5;border-radius:50%;position:absolute;top:0;left:0;z-index:1;background:#edf1e7}.journey li::after{content:"";height:1px;background:#cdd5c5;position:absolute;top:5px;left:15px;right:0}.journey li:last-child::after{display:none}.journey .done,.journey .active{color:var(--green);font-weight:600}.journey .done::before{background:var(--green);border-color:var(--green)}.journey .active::before{border-color:var(--green);box-shadow:0 0 0 4px #dbe4d3}.chat-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 35px #28382306;overflow:hidden}.chat-heading{display:flex;align-items:center;gap:16px;padding:26px 28px}.chat-monogram{display:grid;place-items:center;background:var(--green);color:#eff1e8;border-radius:14px;height:50px;width:50px;flex-shrink:0;font:italic 31px Georgia,serif}.chat-heading h2{font-family:Georgia,serif;font-size:25px;letter-spacing:-.4px;font-weight:400;margin:3px 0}.chat-heading p:last-child{color:var(--muted);font-size:12px}.conversation-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 28px;border-top:1px solid #f0f1eb;border-bottom:1px solid #f0f1eb;background:#fcfcf8}.text-button{background:transparent;color:var(--green);font-size:12px;font-weight:600;padding:8px}.conversation-scroll{height:320px;overflow:auto;padding:26px 28px;scrollbar-width:thin;scrollbar-color:#ccd4c5 transparent;overscroll-behavior:contain}.messages{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:20px}.message{max-width:90%;padding:14px 16px;border-radius:14px;background:#f1f3ed;border:1px solid #e9ece2;align-self:flex-start}.customer-page .message-customer{align-self:flex-end;background:var(--green);color:#fff;border-color:var(--green);border-bottom-right-radius:4px}.customer-page .message-reply{border-bottom-left-radius:4px}.staff-page .message-reply{align-self:flex-end;background:#eaf0e5;border-color:#e0e8da}.message-note{max-width:100%;align-self:stretch;background:var(--note);border:1px solid #eddfac}.message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:10px;margin-bottom:7px;color:#77836c}.message-meta strong{font-size:11px;color:var(--ink)}.customer-page .message-customer .message-meta,.customer-page .message-customer .message-meta strong{color:#dce6d6}.message-meta time{font-size:9px;opacity:.85}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:13px}.private-label{font-size:9px;letter-spacing:.3px;color:#936e27;text-transform:uppercase}.composer{border-top:1px solid var(--line);padding:20px 28px;background:#fff}.composer label{font-size:11px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}.composer-bottom p{font-size:10px;line-height:1.5;color:var(--muted);max-width:65%}.primary{background:var(--green);color:#fff;font-weight:600;padding:11px 18px;border-radius:9px;font-size:12px;white-space:nowrap;min-height:42px}.primary:hover:not(:disabled){background:#253d2d}.secondary{border:1px solid #d5ddce;border-radius:9px;padding:10px 15px;color:var(--green);background:#fff;font-size:12px;font-weight:600;min-height:40px}.secondary:hover:not(:disabled){background:#f0f4eb}.small{padding:7px 10px;font-size:10px;min-height:34px}.chat-footer{display:flex;align-items:center;gap:7px;padding:11px 28px;border-top:1px solid #f0f1eb;font-size:9px;color:#85907c;background:#fcfcf9}.live-dot{height:5px;width:5px;border-radius:50%;background:#90a782}.text-pilot{margin-left:auto}.customer-footnote{font-size:10px;text-align:center;color:#919686;margin-top:18px;line-height:1.7}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;height:100%;padding:20px;color:var(--muted)}.empty-mark{height:48px;width:48px;display:grid;place-items:center;font-size:25px;color:#7b8c70;background:#edf1e7;border-radius:15px;margin-bottom:16px}.empty-state h3,.empty-state h2{font-family:Georgia,serif;font-size:23px;color:var(--ink);font-weight:400;margin-bottom:8px}.empty-state p{font-size:12px;line-height:1.8}.older{display:block;margin:0 auto 20px;background:#f3f5ef;color:#516448;border-radius:20px;padding:7px 14px;font-size:11px}.error{padding:12px 18px;background:#fff0e9;color:#93472e;border:1px solid #eed2c3;border-radius:10px;font-size:12px;margin:12px 20px}.draft-warning{font-size:11px;color:#8c6426;margin-top:8px}.stale{color:#a16b35!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.staff-header{padding:22px 4vw;background:#fff}.staff-header .wordmark{font-size:27px}.staff-identity{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600}.avatar{background:#f0ece0;border-radius:50%;height:30px;width:30px;display:grid;place-items:center;font:16px Georgia,serif}.staff-shell{max-width:1440px;margin:auto;padding:30px 4vw}.workspace-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.workspace-title h1{font-family:Georgia,serif;font-size:42px;letter-spacing:-1px;font-weight:400;margin:2px 0 6px}.title-dot{color:var(--orange)}.workspace-title p:last-child{color:var(--muted);font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:26px}.metrics>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.metrics .metric-attention{background:#f8ede1;border-color:#ead8c4}.metric-label{font-size:11px;color:var(--muted)}.metrics strong{font:29px Georgia,serif}.workspace{display:grid;grid-template-columns:335px minmax(0,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;min-height:600px}.inbox-panel{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.inbox-heading{display:flex;flex-direction:column;gap:6px;padding:23px 20px 15px}.inbox-heading h2{font-size:15px;font-weight:650}.inbox-heading span{font-size:10px;color:var(--muted)}.filters{display:flex;flex-wrap:wrap;gap:5px;padding:0 16px 18px;border-bottom:1px solid var(--line)}.filters button{font-size:10px;padding:6px 9px;background:#f5f6f1;border-radius:6px;color:#727d68}.filters button[aria-pressed=true]{background:var(--green);color:#fff}.inbox{max-height:520px;overflow:auto}.ticket{display:flex;flex-direction:column;gap:6px;width:100%;padding:20px;border-bottom:1px solid #edf0e7;text-align:left;background:#fff;border-left:3px solid transparent;color:var(--ink)}.ticket.selected{border-left-color:var(--green);background:#f1f5ec}.ticket:hover{background:#f6f8f2}.ticket-top,.ticket-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.ticket-top strong{font-size:13px}.ticket-product{font-size:11px;color:#6f7b64}.ticket-preview{font-size:12px;color:#747e6c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%}.ticket-bottom{margin-top:7px}.ticket-bottom>span:last-child{font-size:10px;color:#8a9380}.unread{background:#e4ecd9;color:#425d34;border-radius:10px;font-size:9px;padding:3px 7px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:15px;margin-top:auto;font-size:10px;color:#8a9380;gap:8px;border-top:1px solid var(--line)}.pagination button{font-size:10px;background:transparent;color:var(--green);padding:6px}.inbox-empty{padding:30px 20px;color:var(--muted);font-size:12px}.detail-panel{min-width:0}.detail-empty{min-height:600px}.detail-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 28px;gap:14px}.detail-heading h2{font:25px Georgia,serif;margin:3px 0 6px}.detail-heading p:last-child{font-size:12px;color:var(--muted)}.assignment-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 28px;background:#fcfcf8;border-top:1px solid #eff1e9;border-bottom:1px solid var(--line);gap:10px}.assignment-bar>span{font-size:11px;color:#6d7a63}.assignment-bar>div{display:flex;align-items:center;gap:8px}.needs-reply{font-size:10px;color:#9a633a;background:#fbf5e9;padding:7px 28px}.staff-scroll{height:290px}.composer-tabs{display:flex;gap:7px;margin-bottom:15px}.composer-tabs button{padding:7px 11px;border-radius:7px;font-size:11px;background:#f4f6ee;color:#718066}.composer-tabs button[aria-pressed=true]{background:#e6eddf;color:#38512e;font-weight:600}.composer-tabs button[data-mode=private][aria-pressed=true]{background:#ecdba8;color:#775c23}.private-composer{background:#fffbef}.private-composer textarea{border-color:#e3d4a6}.private-composer .primary{background:#866c2e}.workspace-footnote{font-size:10px;color:#8a9380;text-align:center;margin-top:17px}.launcher{max-width:760px;margin:60px auto;padding:24px}.launcher h1{font:40px Georgia,serif;margin-bottom:12px}.launcher>p{color:var(--muted);margin-bottom:25px}.launch-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.launch-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:24px}.launch-card h2{font:24px Georgia,serif;margin-bottom:16px}.launch-card a{display:block;margin:14px 0;font-size:13px}.launch-card form{margin:12px 0}.launch-card p{font-size:12px;color:var(--muted);margin:12px 0}
@media(min-width:1300px){.workspace{grid-template-columns:370px minmax(0,1fr)}.staff-scroll{height:340px}}
@media(max-width:850px){.staff-shell{padding:25px 20px}.metrics{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:275px minmax(0,1fr)}.detail-heading,.assignment-bar,.composer{padding-left:18px;padding-right:18px}.conversation-scroll{padding:20px 18px}.composer-bottom{gap:10px}.composer-bottom p{max-width:55%}.message{max-width:96%}.assignment-bar{flex-wrap:wrap}.detail-heading .status{white-space:normal}.message-meta{gap:5px}}
@media(max-width:650px){.brandbar{padding:22px 24px}.brandbar>.eyebrow{font-size:8px;max-width:110px;text-align:right;line-height:1.6}.wordmark{font-size:26px}.customer-shell{padding:26px 16px}.order-heading h1{font-size:32px}.order-seal{font-size:13px}.journey-card{padding:20px}.section-heading h2{font-size:19px;max-width:160px}.journey{gap:5px}.journey li{font-size:9px}.chat-heading{padding:22px 20px;gap:12px}.chat-heading h2{font-size:22px}.chat-monogram{width:42px;height:42px;font-size:28px}.conversation-toolbar{padding:9px 18px}.chat-footer{padding:12px 18px}.conversation-scroll{height:330px}.composer-bottom{align-items:flex-end}.composer-bottom p{font-size:9px}.primary{padding:11px 13px;font-size:11px}.staff-header{padding:20px}.staff-shell{padding:24px 14px}.workspace-title h1{font-size:34px}.workspace-title>.secondary{font-size:10px;padding:9px}.workspace-title .eyebrow{font-size:8px;max-width:220px}.metrics{gap:8px;margin-bottom:18px}.metrics>div{padding:13px}.metrics strong{font-size:25px}.metric-label{font-size:10px}.workspace{display:block}.inbox-panel{border-right:0;border-bottom:1px solid var(--line)}.inbox{max-height:240px}.inbox-heading{flex-direction:row;justify-content:space-between;padding:18px}.filters{padding:0 15px 14px}.ticket{padding:14px 18px;gap:4px}.ticket-bottom{margin-top:4px}.pagination{padding:8px 16px}.detail-empty{min-height:260px}.detail-heading{padding-top:20px}.staff-scroll{height:330px}.composer-tabs button{padding:8px 10px;font-size:11px}.staff-page .composer-bottom{align-items:center}.workspace-footnote{line-height:1.8;padding:0 12px}.preview-banner{font-size:10px;padding:8px 12px}.preview-banner a{margin-left:8px}.launch-grid{grid-template-columns:1fr}.launcher{margin:20px auto}.launcher h1{font-size:32px}.message-meta time{flex-basis:100%}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s,border-color .15s}}

/* Attachment drafts and private, cookie-authorized message media. */
.attachment-composer{margin-top:12px}.attachment-label{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px}.attachment-label input{max-width:100%;font-size:12px}.file-hint{font-size:11px;line-height:1.5;color:var(--muted,#686d64);margin:8px 0}.file-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}.file-draft{display:flex;gap:8px;align-items:center;padding:10px;background:#f2f2e9;border-radius:8px}.file-draft-info{flex:1;min-width:0;overflow-wrap:anywhere}.file-draft strong{font-size:12px}.file-draft small{display:block;font-size:11px;margin-top:4px}.file-draft .text-button{flex:none;font-size:11px;padding:5px}.message-attachment{display:grid;gap:7px;max-width:320px;margin-top:12px}.message-attachment img,.message-attachment video{display:block;max-width:100%;width:100%;height:auto;max-height:260px;object-fit:contain;border-radius:10px;background:#e4e7df}.attachment-download{font-size:13px;color:inherit;font-weight:600;overflow-wrap:anywhere}.message-attachment small,.media-error{font-size:11px;color:var(--muted,#686d64)}

.customer-page .message-customer .message-attachment small,.customer-page .message-customer .media-error{color:#dce6d6}.attachment-label input::file-selector-button{border:1px solid #ccd5c5;border-radius:7px;background:#f1f4ed;color:#304936;padding:9px 12px;min-height:40px;font:inherit;margin-right:10px;cursor:pointer}

.shared-team .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Ticket controls reuse the existing workspace and private composer. */
.workspace-switch{display:flex;gap:8px;margin:20px 0}.workspace-switch [aria-pressed="true"]{background:#253f35;color:#fff}
.link-finder{margin:0 0 20px;padding:16px;background:#fff;border:1px solid #dedfd9;border-radius:12px}.link-finder summary,.order-link-controls summary{cursor:pointer;font-weight:600}
.link-finder form,.ticket-controls form,.order-link-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.link-finder input,.ticket-controls input,.assignment-bar input,.filters input{min-width:0;max-width:100%;padding:9px;border:1px solid #cbd0c8;border-radius:6px;font:inherit}
#customer-link{display:block;width:100%;margin:8px 0}#customer-link-result p{font-size:13px}select{padding:9px;border:1px solid #cbd0c8;border-radius:6px;background:#fff;font:inherit;max-width:100%}.ticket-controls{padding:16px 24px;border-bottom:1px solid #dedfd9}.ticket-controls input{width:150px}.ticket-controls p{margin:4px 0;font-size:13px}.order-link-controls{padding-top:10px}#linked-order{flex-basis:100%}.order-link-controls details{max-width:100%}#link-order-context{max-width:420px}.assignment-bar{flex-wrap:wrap;gap:8px}.assignment-bar input{width:140px}
dialog{width:min(520px,calc(100% - 32px));max-height:90dvh;overflow:auto;border:1px solid #d6dcd5;border-radius:16px;padding:24px;color:inherit}dialog::backdrop{background:#102c2377}dialog label{display:block;margin:12px 0 5px;font-size:13px;font-weight:600}dialog input,dialog textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbd0c8;border-radius:6px;font:inherit}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}#new-ticket-error{color:#9a3429}.status-closed{background:#e9ebe7;color:#536052}.status-in_progress{background:#e3eddf;color:#315435}.status-waiting{background:#fff0d5;color:#825f22}.ticket-controls [hidden],.staff-page [hidden]{display:none!important}
@media(max-width:600px){.ticket-controls{padding:14px}.workspace-title{flex-wrap:wrap;gap:12px}.ticket-controls form{align-items:flex-start}.ticket-controls input{width:100%}.link-finder form{align-items:stretch}.link-finder form input{flex:1}.assignment-bar input{width:120px}.workspace-switch button{flex:1}}
