:root{--ink:#142c2b;--muted:#637572;--green:#126451;--mint:#e6f3ea;--bg:#f6f8f5;--line:#dce4de;--amber:#8d6618}*{box-sizing:border-box}body{margin:0;font-family:Tahoma,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.6}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:white;padding:10px 16px;color:var(--ink);font-weight:600}button:hover{background:var(--mint)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0e4c3e}.quiet{background:transparent;border:0}.muted{color:var(--muted)}.eyebrow{letter-spacing:1.8px;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:10px}.wordmark{font-weight:800;letter-spacing:2px;font-size:16px}.wordmark b{font-size:11px;letter-spacing:1px;border:1px solid currentColor;border-radius:4px;padding:4px 6px;margin-left:4px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;line-height:1.5;letter-spacing:-.5px}h2{font-size:24px;letter-spacing:-.5px}h3{font-size:17px}label{display:block;margin-bottom:16px;font-weight:600}input,select{display:block;width:100%;padding:11px 12px;margin-top:6px;background:white;color:var(--ink);border:1px solid #cbd7d0;border-radius:7px}input:focus,select:focus,button:focus-visible{outline:2px solid #5fae92;outline-offset:2px}input[type=checkbox]{display:inline;width:auto;margin:0 6px 0 0}.check{display:inline-block;margin:6px 16px 10px 0;font-weight:400}.error{color:#b42b30;min-height:10px}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:#123f36;color:white;padding:9vh 8vw;display:flex;flex-direction:column;justify-content:center}.login-brand h1{margin-top:70px}.login-brand p{color:#b8d4c4}.brand-line{height:1px;width:100%;background:#417063;margin:65px 0 20px}.login-brand>span:last-child{color:#9abcad;font-size:11px;letter-spacing:3px}.login-card{width:min(420px,85%);margin:auto}.login-card form{margin-top:32px}.login-card .primary{width:100%}.test-note{border:1px solid #e3d7ae;background:#fff9e8;padding:12px;border-radius:8px;color:var(--amber);font-size:12px}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:32px 24px;display:flex;flex-direction:column}.sidebar .wordmark{margin-bottom:50px}.sidebar nav{display:grid;gap:5px}.sidebar nav button{text-align:left;background:none;border:0;font-weight:500;padding:13px 15px}.sidebar nav button.active{background:var(--mint);color:var(--green);font-weight:700}.sidebar-bottom{margin-top:auto;display:grid;gap:16px}.workspace{margin-left:240px;padding:0 40px 48px}.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-bottom:36px;color:var(--muted);font-size:12px}#identity{color:var(--ink);text-align:right}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px;gap:20px}.page-head h1{margin-bottom:2px;font-size:30px}.page-head p{margin:0;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:30px}.metric,.panel,.shop-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}.metric span{color:var(--muted);font-size:12px}.metric b{display:block;font-size:40px;line-height:1.5;font-weight:500}.metric small{color:var(--green)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px}.section-head h2{font-size:19px;margin:0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.shop-card .shop-mark{width:42px;height:42px;display:grid;place-items:center;color:var(--green);background:var(--mint);border-radius:10px;font-weight:700;margin-bottom:18px}.shop-card h3{margin-bottom:3px}.shop-card .access{margin-top:24px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.pill{display:inline-block;border-radius:20px;background:var(--mint);padding:4px 10px;font-size:10px;font-weight:700;color:var(--green);letter-spacing:.3px}.pill.warning{background:#fbf1d6;color:var(--amber)}.pill.inactive{background:#ecefed;color:#6e7771}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:11px;color:var(--muted);font-weight:600;background:#f9faf8}th,td{padding:16px 20px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}td button{font-size:12px;padding:6px 10px}td small{display:block;color:var(--muted)}.empty{padding:35px;text-align:center;color:var(--muted);background:white;border:1px dashed var(--line);border-radius:10px}.notice,#notice{padding:12px 18px;border-radius:8px;background:var(--mint);margin-bottom:20px}.notice.warning{background:#fff7df;color:var(--amber)}dialog{width:min(600px,94vw);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:28px;color:var(--ink)}dialog::backdrop{background:#132a2966}.dialog-heading,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{font-size:21px}.dialog-actions{justify-content:flex-end;padding-top:16px;border-top:1px solid var(--line)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 18px;padding:14px}legend{font-size:12px;font-weight:700;padding:0 6px}.search{max-width:320px;margin-bottom:20px}.access-description{font-size:12px;color:var(--muted);margin-top:28px}.password-panel{max-width:500px}footer{margin-top:32px;color:var(--muted);font-size:11px}@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,1fr)}.workspace{padding:0 24px 30px}.sidebar{width:205px;padding:28px 16px}.workspace{margin-left:205px}}@media(max-width:700px){.login-shell{grid-template-columns:1fr}.login-brand{padding:30px 8vw}.login-brand h1{font-size:24px;margin:30px 0 12px}.brand-line,.login-brand>span:last-child{display:none}.login-card{padding:35px 0}.sidebar{position:static;width:auto;padding:20px}.sidebar .wordmark{margin-bottom:16px}.sidebar .eyebrow{display:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar nav button{font-size:12px;padding:8px}.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.workspace{margin:0;padding:0 18px 30px}.topbar{height:60px;margin-bottom:24px}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.metrics{gap:10px}.metric{padding:16px}.metric b{font-size:32px}.two-cols{grid-template-columns:1fr}}

.audit-table td{vertical-align:top}.audit-table pre{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px;max-width:440px;background:#f6f8f5;border-radius:6px;padding:12px;font-size:12px}.audit-table summary{cursor:pointer;color:var(--green)}#audit-more{margin-top:18px}
.panel svg {display:block;width:100%;height:auto;min-height:180px;}
.panel svg circle:focus {stroke:#172e2b;stroke-width:3;outline:none;}

textarea {font:inherit;width:100%;padding:12px;border:1px solid #ccdcd3;border-radius:8px;box-sizing:border-box;}
.log-text {white-space:pre-wrap;overflow-wrap:anywhere;}

summary {cursor:pointer;font-weight:600;padding:12px 0;}
.work-history {margin-top:20px;}
.work-history .notice {margin-top:12px;}
.work-actions {display:flex;gap:12px;flex-wrap:wrap;}
#navigation details {padding:8px 14px;}
#navigation details button {font-size:0.9em;}

#browser-frame { width: 100%; height: 80vh; border: 1px solid #dce5df; }

/* Consistent Thai typography and workspace spacing. */
:root{--ink:#203a36;--muted:#74827e;--green:#176b55;--mint:#eaf5ef;--bg:#f4f7f5;--line:#e1e9e4}
body{font-family:"Thonburi","Leelawadee UI","Noto Sans Thai",system-ui,sans-serif;font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-weight:650;letter-spacing:-.3px}button,input,select,textarea{font-family:inherit}button{min-height:42px;border-radius:10px;font-weight:600;transition:background .15s,border-color .15s}button:disabled{cursor:wait}input,select,textarea{border-radius:10px;min-height:44px}textarea{resize:vertical}
.sidebar{width:244px;padding:30px 20px}.sidebar .wordmark{margin-bottom:40px;font-size:15px}.sidebar nav{gap:8px}.sidebar nav>button{padding:12px 16px}.sidebar nav button.active{font-weight:600}.sidebar nav details{padding:0!important}.sidebar nav summary{list-style:none;padding:14px 16px;color:var(--muted);font-size:13px}.sidebar nav summary::-webkit-details-marker{display:none}.sidebar nav summary::after{content:'⌄';float:right}.sidebar nav details[open] summary::after{content:'⌃'}.sidebar nav details button{display:block;width:100%;padding:10px 16px 10px 28px;font-size:13px!important}.sidebar-bottom{gap:12px}.sidebar-bottom .pill{align-self:start;width:max-content}
.workspace{margin-left:244px;padding:0 40px 48px}.topbar{height:76px;margin-bottom:36px}.topbar #identity{background:white;border:1px solid var(--line);padding:7px 13px;border-radius:24px;font-size:12px}#content{max-width:1200px;margin:0 auto}.page-head{margin-bottom:28px}.page-head h1{font-size:28px;line-height:1.4;margin:0 0 8px}.page-head .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:8px}.page-head p{font-size:13px}.panel,.metric,.shop-card{border-radius:16px;box-shadow:0 3px 14px #203a3604}.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:20px;align-items:start}.store-card{padding:24px;max-width:440px}.store-heading{display:flex;align-items:center;gap:14px}.store-card .shop-mark{margin:0;width:48px;height:48px;flex-shrink:0;border-radius:14px;font-size:16px}.store-card h3{font-size:19px;line-height:1.4;margin:0 0 3px;overflow-wrap:anywhere}.store-code{font-size:12px;margin:0}.store-caption{font-size:12px;color:var(--muted);margin:20px 0 16px}.store-actions{display:grid;gap:10px}.store-actions button{width:100%;min-height:46px}.store-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin-top:20px;padding-top:14px}.store-footer span{font-size:11px;color:var(--muted)}.store-footer button{font-size:12px;padding:4px 0;min-height:32px;color:var(--green)}.metrics{gap:16px}.metric b{font-size:34px;font-weight:600}.table-wrap{border-radius:14px}th,td{padding:14px 18px}summary{font-weight:600}.empty{padding:40px 24px}#notice{font-size:13px;border:1px solid #d3e9dc}.login-card h2{font-size:28px}.login-brand h1{font-size:36px;line-height:1.65}
@media(max-width:1000px){.sidebar{width:216px;padding:28px 16px}.workspace{margin-left:216px;padding:0 24px 32px}}
@media(max-width:700px){.sidebar{position:static;width:auto;padding:18px}.sidebar .wordmark{margin-bottom:14px}.sidebar nav{gap:4px}.sidebar nav details button{padding:8px 12px}.sidebar nav summary{padding:9px 12px}.sidebar-bottom{margin-top:14px}.workspace{margin:0;padding:0 18px 30px}.topbar{height:64px;margin-bottom:24px;gap:12px}.topbar>span{font-size:11px}.topbar #identity{font-size:11px;padding:5px 9px}.page-head h1{font-size:25px}.store-card{max-width:none;padding:20px}.login-brand h1{font-size:26px}}

#task-counts{grid-template-columns:repeat(2,minmax(0,220px));margin-bottom:24px}.task-search{padding:12px 20px;margin-bottom:24px}.task-search summary{font-size:13px;color:var(--green)}#task-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:16px;align-items:end;padding-top:14px}#task-filters label{margin:0}#task-filters button{margin-bottom:0}.handover-form{max-width:720px;margin-bottom:32px}.handover-form h2{font-size:18px;margin-bottom:24px}.handover-form textarea{min-height:150px}.handover-form>.primary{min-width:180px}.handover-record{margin-bottom:16px;max-width:900px}.handover-record h3{font-size:15px;margin-bottom:8px}.handover-record h4{font-size:13px;margin:20px 0 8px}.handover-record .log-text{background:var(--bg);padding:16px;border-radius:10px}.handover-record details{border-top:1px solid var(--line);font-size:12px}.handover-record .pill{white-space:normal}#tasks-table td{vertical-align:top}#tasks-table .log-text{max-width:420px;white-space:normal}#tasks-more{margin-top:20px}@media(max-width:700px){#task-filters{grid-template-columns:1fr}#task-counts{grid-template-columns:1fr 1fr}.handover-form>.primary{width:100%}}

/* Administration tables and editors. */
.table-wrap th{font-size:12px;letter-spacing:0;background:#f0f5f2;color:#536d62}.table-wrap td{font-size:13px;vertical-align:middle}.table-wrap tbody tr:hover{background:#fbfdfb}.table-wrap td small{margin-top:4px;font-size:11px}.table-wrap td:last-child{white-space:normal;min-width:160px}.table-wrap td button{margin:3px 4px 3px 0;min-height:34px;border-radius:8px}.table-wrap .pill{font-size:11px;font-weight:500;letter-spacing:0}.search{max-width:420px;margin-bottom:22px}.section-head{margin-top:32px}.section-head h2{font-size:18px}dialog{padding:28px;border:0;box-shadow:0 24px 80px #163a3629;border-radius:18px}.dialog-heading{border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:12px}.dialog-heading h2{margin:0;font-size:20px}.dialog-heading .quiet{min-width:40px}.dialog-actions{margin-top:24px;gap:10px}.dialog-actions button{min-width:96px}fieldset{padding:20px;border-radius:12px;background:#fbfdfb}legend{font-size:13px;color:var(--green)}.check{font-size:13px;line-height:2}.shop-card:not(.store-card){margin-bottom:16px}.shop-card:not(.store-card)>button{margin:4px 8px 4px 0}.shop-card:not(.store-card)>p{font-size:13px}.password-panel h2{font-size:20px}

.shop-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:24px}.shop-toolbar .search{margin:0;flex:1;min-width:220px}.shop-toolbar select{width:auto;min-width:160px;margin:0}.shop-toolbar>span{font-size:12px;margin-left:auto}@media(max-width:700px){.shop-toolbar .search{max-width:none;width:100%}.shop-toolbar select{flex:1}.shop-toolbar>span{margin:0}}

.audit-table{white-space:normal}.audit-table td:first-child{min-width:160px}.audit-table td:nth-child(2){min-width:150px}.audit-table td:nth-child(3){min-width:190px}.audit-table summary{padding:4px 0;font-size:12px}.audit-table pre{font-family:ui-monospace,monospace;font-size:11px;max-width:360px;line-height:1.6;margin:12px 0 0}.audit-table details>small{overflow-wrap:anywhere}

.field-error{display:block;color:#b13a3a;font-size:12px;font-weight:400;margin-top:7px;line-height:1.6}[aria-invalid="true"]{border-color:#cd7070;background:#fffafa}.error:not(:empty){border:1px solid #f0d3d3;background:#fff5f5;padding:12px 14px;border-radius:10px;font-size:13px}.feedback{display:flex;align-items:flex-start;gap:12px;background:#eef8f1!important;border:1px solid #cce5d5!important;padding:16px!important}.feedback.error{background:#fff5f4!important;border-color:#efd2cd!important;color:#8b3434}.feedback-icon{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:#d7eddf;color:#176b55;font-weight:700}.feedback.error .feedback-icon{background:#f9dfdc;color:#a53d3d}.feedback strong{font-size:13px}.feedback p{margin:3px 0 0;font-size:13px}.feedback>.quiet{margin-left:auto;min-height:28px;padding:0 8px;font-size:20px}

#confirm-dialog{max-width:440px;padding:28px}#confirm-dialog h2{font-size:21px;margin:18px 0 10px}#confirm-message{font-size:14px;color:var(--muted);line-height:1.8}.confirm-symbol{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#fff1e1;color:#a76619;font-size:22px;font-weight:700}.danger{background:#b74c45;color:white;border-color:#b74c45}.danger:hover{background:#9e3c36}#confirm-dialog .dialog-actions{margin-top:24px;padding-top:20px}#confirm-dialog .dialog-actions button{flex:1}@media(max-width:450px){#confirm-dialog{padding:22px}}

.loading-state{display:flex;align-items:center;justify-content:center;gap:12px;min-height:200px;color:var(--muted);font-size:14px}.loading-dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--green);animation:ops-spin .8s linear infinite}@keyframes ops-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading-dot{animation:none}}.load-error{padding:36px 24px;background:white;border:1px solid var(--line);border-radius:16px;text-align:center;max-width:640px;margin:24px auto}.load-error .confirm-symbol{margin:0 auto 16px}.load-error h2{font-size:19px;margin-bottom:10px}.load-error p{font-size:13px;color:var(--muted);margin-bottom:22px}.load-error button{min-width:150px}
/* Responsive forms, navigation and contained tables. */
.workspace,#content,.page-head>div,.store-heading>div,.two-cols>*{min-width:0}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.table-wrap:focus-visible{outline:2px solid #5fae92;outline-offset:3px}.page-head{flex-wrap:wrap}.page-head>button{flex-shrink:0}#report-filter{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;align-items:end;margin-bottom:24px}#report-filter label{margin:0}.dialog-actions{flex-wrap:wrap}dialog{max-height:calc(100dvh - 32px)}.feedback p,.field-error{overflow-wrap:anywhere}
@media(max-width:700px){.sidebar nav{display:grid;grid-template-columns:1fr 1fr;align-items:start}.sidebar nav>button{min-height:44px;text-align:center}.sidebar nav details{grid-column:1/-1}.sidebar nav details[open]{background:#f7faf8;border-radius:12px}.sidebar nav summary{min-height:44px;padding:11px 14px}.sidebar nav details button{min-height:44px}.sidebar-bottom{border-top:1px solid var(--line);padding-top:12px}.sidebar-bottom #logout{min-height:44px}.page-head>button{width:100%}input,select,textarea{font-size:16px}.panel{padding:20px}.table-wrap th,.table-wrap td{padding:12px 14px}#report-filter{grid-template-columns:1fr}#report-filter button{width:100%}.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:12px 0}.store-footer{flex-wrap:wrap}.login-card{width:calc(100% - 40px)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-actions button{flex:1}.feedback{gap:8px}}

#notice.feedback{transition:opacity .3s ease,transform .3s ease}#notice.feedback.is-dismissing{opacity:0;transform:translateY(-8px);pointer-events:none}@media(prefers-reduced-motion:reduce){#notice.feedback{transition:none}#notice.feedback.is-dismissing{transform:none}}

.store-card.check-red{border:2px solid #c94747}.store-card.check-green{border:2px solid #218462}
.check-status{font-size:13px;font-weight:600;margin:0 0 14px;color:#a22e2e}.check-green .check-status{color:#166c50}
.check-overdue{animation:check-reminder 1.8s ease-in-out infinite}
@keyframes check-reminder{50%{box-shadow:0 0 0 5px #d749492b}}
@media(prefers-reduced-motion:reduce){.check-overdue{animation:none;box-shadow:0 0 0 3px #d749492b}}

.store-card.check-next{border:3px solid #d13636;box-shadow:0 0 0 5px #d136361a}.check-next .check-status{background:#fff0f0;border-radius:8px;padding:10px;color:#ab2525}

.cards.store-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;align-items:stretch}
.store-grid .store-card{padding:12px;max-width:none;border-radius:12px;min-width:0}
.store-grid .store-heading{gap:8px}.store-grid .shop-mark{width:32px;height:32px;font-size:12px;border-radius:8px}
.store-grid h3{font-size:15px;margin:0}.store-grid .store-code{font-size:10px}
.store-grid .store-caption{display:none}.store-grid .check-status{font-size:11px;min-height:20px;margin:10px 0 8px;padding:5px 7px;border-radius:5px}
.store-grid .store-actions{grid-template-columns:1fr 1fr;gap:6px}
.store-grid .store-actions [data-local-browser]{grid-column:1/-1}
.store-grid .store-actions button{min-height:32px;padding:6px 7px;font-size:11px;border-radius:6px}
.store-grid .store-actions .launch-progress{grid-column:1/-1;font-size:10px;margin:2px 0}
.store-grid .store-footer{margin-top:10px;padding-top:7px;gap:4px}.store-grid .store-footer span{font-size:9px}.store-grid .store-footer button{font-size:10px;min-height:24px}
.queue-controls{display:flex;align-items:center;gap:3px;margin-bottom:7px}.queue-controls button{font-size:10px;min-height:24px;padding:2px 5px}.queue-controls [data-queue-handle]{cursor:grab;margin-right:auto}
.store-grid .check-next{border-width:2px;box-shadow:0 0 0 3px #d136361a}
@media(max-width:700px){.cards.store-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}

.analysis-panel{background:#fff;border:1px solid #dbe6e2;border-radius:18px;padding:24px;margin:20px 0}.analysis-title h2{margin:0;font-size:24px}.compare-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.compare-controls label{display:grid;gap:8px}.analysis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.analysis-kpi{border:1px solid #dbe6e2;border-radius:14px;padding:20px;background:#f8fbfa}.analysis-kpi>span{color:#536b63;font-size:14px}.analysis-kpi strong{display:block;font-size:28px;margin:12px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.analysis-kpi strong small{font-size:12px;font-weight:400}.comparison-baseline{color:#6b7e77;font-size:13px;border-top:1px solid #dbe6e2;padding-top:12px}.analysis-delta{margin-top:8px;font-size:15px;font-weight:600}.analysis-delta.increase{color:#1765ad}.analysis-delta.decrease{color:#a84d17}.analysis-delta.neutral{color:#6b7e77}.compare-note{padding:12px;background:#eef5f2;border-radius:10px;font-size:14px}@media(max-width:850px){.analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-panel{padding:16px}}@media(max-width:560px){.compare-controls,.analysis-grid{grid-template-columns:1fr}.analysis-kpi strong{font-size:25px}}

.hourly-analysis{margin-top:20px}.table-scroll{overflow-x:auto}.hourly-bar{display:block;height:5px;background:#197b64;margin-bottom:6px;border-radius:4px}.hourly-analysis td{font-variant-numeric:tabular-nums}

.hour-highlights{margin-top:24px;border-top:1px solid #dbe6e2;padding-top:16px}.hour-highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.hour-highlight-grid article{background:#eef5f2;border-radius:12px;padding:16px}.hour-highlight-grid span,.hour-highlight-grid strong,.hour-highlight-grid b{display:block}.hour-highlight-grid strong{font-size:24px;margin:8px 0}.hour-highlight-grid p{margin:8px 0}.hour-highlight-grid small{color:#536b63}@media(max-width:650px){.hour-highlight-grid{grid-template-columns:1fr}}

.login-password-field{display:flex;align-items:center;gap:8px;margin-bottom:16px}.login-password-field input{flex:1;min-width:0;margin:0}.login-password-field button{flex-shrink:0;padding:12px;font-size:13px;white-space:nowrap}

.login-password-field{position:relative;display:block}.login-password-field input{width:100%;padding-right:52px;box-sizing:border-box}.login-password-field #toggle-login-password{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;min-height:0;padding:8px;margin:0;border:0;border-radius:8px;background:transparent;color:#647b73;display:flex;align-items:center;justify-content:center}.login-password-field #toggle-login-password:hover{background:#eef5f2;color:#176b55}.login-password-field #toggle-login-password:focus-visible{outline:2px solid #176b55;outline-offset:1px}.eye-slash[hidden]{display:none}

.growth-panel{background:#fff;border:1px solid #d9e5df;border-radius:20px;padding:26px;margin:20px 0;color:#203c34}.growth-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.growth-eyebrow{font-size:11px;letter-spacing:1.5px;color:#658277;font-weight:700}.growth-heading h2{font-size:28px;line-height:1.35;margin:10px 0}.growth-heading p{color:#6b7e76;margin:0}.growth-overall{min-width:140px;border-left:1px solid #d9e5df;padding-left:22px;display:grid;gap:6px}.growth-overall>span{font-size:12px}.growth-overall strong{font-size:34px}.growth-overall small{font-size:11px;color:#6b7e76}.growth-context{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:#6b7e76;padding:18px 0}.growth-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.growth-card{border:1px solid #d9e5df;background:#f8fbf9;padding:18px;border-radius:14px;min-width:0}.growth-card-top{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.growth-index{font-size:10px;border:1px solid #c8dbd1;border-radius:6px;padding:4px;color:#497563}.growth-score{font-size:36px;line-height:1.2;margin:22px 0 10px;font-variant-numeric:tabular-nums}.growth-score small{font-size:12px;font-weight:400;color:#71877d;margin-left:6px}.growth-card-status{font-size:11px;min-height:32px;color:#6b7e76}.growth-coverage{height:5px;border-radius:9px;background:#e3ede7;margin:12px 0 7px;overflow:hidden}.growth-coverage span{height:100%;display:block;background:#21745b}.growth-card>small{font-size:10px;color:#6b7e76}.growth-card ul{list-style:none;padding:0;margin:14px 0 0;font-size:11px}.growth-card li{border-top:1px solid #e1eae5;padding-top:8px;margin-top:8px}.growth-card b{display:block;font-size:14px;margin-top:5px}.growth-note{color:#6b7e76;font-size:12px;line-height:1.8}.growth-next{background:#edf5ef;border-radius:12px;padding:16px 20px;margin:18px 0}.growth-next strong{font-size:13px}.growth-next ol{font-size:12px;line-height:1.9;margin:8px 0;padding-left:20px}.growth-section{border-top:1px solid #dce7e0;padding:18px 0}.growth-section>summary{cursor:pointer;font-weight:600;font-size:15px}.growth-section>summary+*{margin-top:18px}.growth-section table{font-size:12px}.growth-caption{display:block;color:#788b81;font-size:10px;margin-top:5px;line-height:1.6}.growth-baseline{display:flex;justify-content:space-between;align-items:center;gap:12px}.growth-baseline p{font-size:12px;color:#6b7e76}.growth-badge{font-size:10px;white-space:nowrap;color:#4b7661;background:#eef5ef;padding:6px 8px;border-radius:8px}.growth-up{color:#1765ad}.growth-down{color:#a84d17}.growth-empty{padding:18px;background:#f6f9f7;border:1px dashed #cddfd4;border-radius:12px}.growth-empty p{font-size:12px;color:#6b7e76}.growth-action-form{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:12px;margin:20px 0}.growth-action-form label{font-size:12px}.growth-wide{grid-column:1/-1}.growth-action-form button{justify-self:start;grid-column:1/-1}.growth-timeline article{border-left:2px solid #cadfd1;padding:0 0 14px 16px;margin:12px 0}.growth-timeline span{display:block;font-size:10px;color:#6b7e76}.growth-timeline strong{font-size:12px}.growth-timeline p{font-size:12px;margin:5px 0;color:#6b7e76}.growth-group{background:#f1f6f2}.growth-section input[data-target]{width:130px;min-width:110px;font-size:12px;padding:9px}.growth-panel button{font-size:12px;min-height:36px;padding:9px 14px}.growth-panel [data-growth-feedback]{font-size:12px;color:#a84d17}
@media(max-width:1100px){.growth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.growth-panel{padding:16px}.growth-heading{display:block}.growth-heading h2{font-size:23px}.growth-overall{border-left:0;border-top:1px solid #d9e5df;padding:14px 0 0;margin-top:16px}.growth-grid{grid-template-columns:1fr}.growth-action-form{grid-template-columns:1fr}.growth-baseline{align-items:flex-start;flex-direction:column}.growth-context{gap:6px}}
.growth-baseline-choice{max-width:420px;font-size:12px;margin:16px 0}.growth-baseline-choice select{font-size:12px}
.owner-page{background:linear-gradient(145deg,#e6f3ee,#f5f8f7);min-height:100vh}.owner-shell{max-width:780px;margin:48px auto;padding:40px;background:white;border:1px solid #dce8e3;border-radius:24px;box-shadow:0 16px 60px #123d3210}.owner-brand{font-weight:750;letter-spacing:.16em;color:#124c40;margin-bottom:32px}.owner-brand span{font-size:12px;letter-spacing:.04em;border:1px solid #216b58;padding:5px 9px;border-radius:7px}.owner-shell h1{font-size:clamp(28px,5vw,40px);line-height:1.3}.owner-shell h2{font-size:21px;margin-top:30px}.owner-shell p,.owner-steps{line-height:1.85}.owner-steps{padding-left:24px}.owner-steps li{margin:16px 0}.owner-steps p{margin:4px 0;color:#5f746d}.owner-shell #owner-start{background:#176d58;color:white;width:100%;padding:16px;font-size:17px;margin-top:18px}.owner-shell footer{border-top:1px solid #dce8e3;margin-top:32px;padding-top:20px;font-size:13px}.owner-icon{font-size:36px;color:#176d58}#owner-error{color:#a63b32}@media(max-width:640px){.owner-shell{margin:16px;padding:24px;border-radius:18px}}

.sync-times{display:grid;gap:6px;margin-top:12px}.sync-times small{display:block}

.team-count-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.team-count-guide>div{border:1px solid #dce8e3;border-radius:16px;background:#fff;padding:20px}.team-count-guide h3{margin:0 0 8px;font-size:16px;line-height:1.5}.team-count-guide p{margin:6px 0;color:#5f746d;font-size:14px;line-height:1.7}.team-count-guide .team-count-example{margin-top:14px;color:#284c42}.team-count-example strong{display:block;font-size:24px;font-variant-numeric:tabular-nums;margin-bottom:4px}.team-count-guide small{display:block;color:#5f746d;font-size:12px;line-height:1.6;margin-top:8px}@media(max-width:700px){.team-count-guide{grid-template-columns:1fr;gap:12px}.team-count-guide>div{padding:16px}}

.team-roster{table-layout:fixed;width:100%;min-width:640px}.team-roster th,.team-roster td{white-space:normal;overflow-wrap:anywhere}.team-roster th:nth-child(1){width:30%}.team-roster th:nth-child(2){width:14%}.team-roster th:nth-child(3),.team-roster th:nth-child(4){width:28%}.team-roster th small{display:block;font-weight:400;font-size:11px;line-height:1.6;margin-top:6px;color:#5f746d}

@media(max-width:700px){
 #team-date,#team-shift{width:100%;min-width:0;max-width:100%}
 .shop-toolbar:has(#team-date){display:grid;grid-template-columns:1fr;gap:12px}
 .shop-toolbar:has(#team-date)>label{margin:0;min-width:0}
 .team-mobile-table{overflow:visible;background:transparent;border:0;border-radius:0}
 .team-mobile-table table,.team-mobile-table tbody{display:block;width:100%;min-width:0;table-layout:auto}
 .team-mobile-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .team-mobile-table tbody tr{display:grid;grid-template-columns:1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;margin:0 0 14px;padding:4px 16px}
 .team-mobile-table td,.team-mobile-table td:last-child{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;border:0;border-bottom:1px solid #edf1ee;padding:12px 0;font-size:16px;line-height:1.7}
 .team-mobile-table td:last-child{border-bottom:0}
 .team-mobile-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px}
 .team-mobile-table td small{font-size:13px;line-height:1.6;white-space:normal}
 .team-roster td:nth-child(3),.team-roster td:nth-child(4){font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
 .team-roster td:first-child{font-weight:600;font-size:17px}
 .team-mobile-table td button{min-height:44px;max-width:100%;white-space:normal;text-align:left;font-size:15px}
 .team-brands td:first-child button{width:100%;font-size:17px}
 .team-count-guide h3{font-size:17px}.team-count-guide p{font-size:15px}
}

#brand-history,#brand-timeline{min-width:0;max-width:100%}#history-brand{width:100%;min-width:0;max-width:100%}.brand-care-card{position:relative;margin:18px 0;border-left:4px solid #72a998;overflow-wrap:anywhere}.brand-care-card header{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}.brand-care-card header h3{margin:4px 0;font-size:19px}.brand-care-card header p{margin:4px 0}.brand-care-date{color:var(--green);font-weight:600}.brand-care-note,.brand-care-result{padding:16px;border-radius:10px;margin:12px 0;background:#f1f7f4}.brand-care-result{background:#f8faf9;border:1px solid var(--line)}.brand-care-card h4{font-size:15px;margin:0 0 10px}.brand-care-card .log-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.85;margin:0}.brand-care-card .muted{font-size:13px;line-height:1.7;margin:12px 0}.brand-care-card details{border-top:1px solid var(--line);margin-top:18px;padding-top:10px}.brand-care-card summary{min-height:44px;cursor:pointer;line-height:1.7;padding:10px 0}.brand-care-card details .log-text{padding:12px;background:#f7faf8;border-radius:8px}
@media(max-width:700px){#brand-timeline>h2{font-size:22px;line-height:1.5;overflow-wrap:anywhere;margin:20px 0 10px}#brand-timeline>.muted{font-size:13px;line-height:1.8}.brand-care-card{padding:16px;margin:16px 0;border-radius:14px}.brand-care-card header h3{font-size:19px}.brand-care-card header p{font-size:14px}.brand-care-card .log-text{font-size:16px}.brand-care-note,.brand-care-result{padding:12px;margin:12px 0}.brand-care-card h4{font-size:16px}.brand-care-card summary{font-size:14px}.brand-care-card .muted{font-size:13px}#brand-history>label{font-size:15px}#brand-history select{font-size:16px}#brand-history-more{width:100%;min-height:44px}}

.team-capacity-guide{padding:18px 0;max-width:760px}.team-capacity-guide h3{margin:0 0 10px}.team-capacity-guide p,.team-capacity-guide li{line-height:1.8}.team-capacity-guide ol{padding-left:22px}.team-capacity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.team-capacity-card{border:1px solid var(--line);padding:20px;border-radius:14px;min-width:0;background:#fbfdfb}.team-capacity-card h3{margin:0;overflow-wrap:anywhere}.team-capacity-card>small{color:var(--muted)}.team-capacity-card dl{margin:16px 0}.team-capacity-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.team-capacity-card dt{color:var(--muted);font-size:13px}.team-capacity-card dd{margin:0;font-weight:600}.team-capacity-card button{width:100%;min-height:44px}@media(max-width:700px){.team-capacity-grid{grid-template-columns:1fr}.team-capacity-card{padding:16px}.team-capacity-guide p,.team-capacity-guide li{font-size:15px}}

#navigation .nav-section{font-size:11px;font-weight:600;color:var(--muted);padding:16px 10px 5px;letter-spacing:.2px}#navigation button[data-view]{display:flex;align-items:center;gap:10px;width:100%;line-height:1.5;min-height:44px}#navigation button[data-view]>span{min-width:0;overflow-wrap:anywhere}.nav-icon{width:19px;height:19px;flex:0 0 19px;opacity:.85}#navigation button.active .nav-icon{opacity:1}#navigation details{padding:8px 0}#navigation details>button{padding-left:14px}.sidebar nav{min-height:0}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:20px}@media(max-width:700px){#navigation>button[data-view]{justify-content:center}#navigation details>button[data-view]{text-align:left}#navigation .nav-section{padding-left:14px}}

.team-overview{margin-bottom:18px}.team-overview h2{font-size:22px;margin-bottom:12px}.team-overview p,.team-overview-grid p{color:var(--muted);line-height:1.8}.team-overview .notice{margin:18px 0}.team-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.team-overview-grid .panel{display:flex;flex-direction:column}.team-overview-grid button{margin-top:auto;align-self:flex-start}@media(max-width:700px){.team-overview-grid{grid-template-columns:1fr}.team-overview button,.team-overview-grid button{width:100%;min-height:44px}.team-overview h2{font-size:20px}}

.brand-work-slot{border-top:1px solid var(--line);padding:14px 0;margin-top:12px}.brand-work-slot .log-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.brand-work-slot h4{margin:0 0 8px}.brand-work-slot button{margin:8px 6px 8px 0;min-height:44px}.shop-manage{display:inline-block;vertical-align:top;margin:4px}.shop-manage summary{cursor:pointer;padding:10px 14px;border:1px solid var(--line);border-radius:8px;min-height:44px}.shop-manage[open]{display:block;padding:10px;border:1px solid var(--line);border-radius:10px}.shop-tool{position:relative;min-width:44px;min-height:44px;font-size:19px}.shop-tool .tool-label{position:absolute;bottom:100%;left:0;background:#183f35;color:#fff;padding:6px 10px;border-radius:6px;font-size:13px;width:max-content;max-width:220px;display:none;z-index:5}.shop-tool:hover .tool-label,.shop-tool:focus-visible .tool-label{display:block}@media(hover:none){.shop-tool .tool-label{position:static;display:inline;background:none;color:inherit;font-size:13px;padding:0 0 0 6px}.shop-tool{font-size:17px}}
#all-shop-results td:last-child{position:relative;min-width:210px}.shop-manage[open]{position:absolute;right:8px;width:280px;max-width:calc(100vw - 48px);z-index:12;background:white;box-shadow:0 12px 32px #163a3626}.shop-manage[open]>button{display:block;width:100%;margin:6px 0;text-align:left;white-space:normal}.shop-manage[open]>summary{margin-bottom:8px}@media(max-width:700px){.shop-manage[open]{position:static;width:100%;box-shadow:none}}

/* Work cards show decisions first; long notes stay behind one disclosure. */
#shop-results .store-grid{align-items:start;grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}.brand-work-slot{margin-top:12px;padding:12px 0}.work-slot-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.work-slot-date{font-size:13px;font-weight:600}.work-slot-time{font-size:12px;color:var(--muted);margin:6px 0 10px;line-height:1.6}.work-slot-heading .pill{font-size:11px;margin:0}.work-notes{margin:10px 0}.work-notes>summary{cursor:pointer;min-height:40px;padding:8px 0;color:var(--green);font-weight:600;font-size:13px}.work-notes>div{background:#f5f9f7;padding:14px;border-radius:10px;margin-top:8px}.work-notes h4{font-size:13px;margin:12px 0 6px}.work-notes h4:first-child{margin-top:0}.work-notes .log-text{font-size:14px;line-height:1.8}.brand-work-slot>button{width:100%;margin:6px 0}.store-actions .shop-tool{width:44px;padding:8px;flex:0 0 44px}.store-actions .shop-tool .tool-label{bottom:calc(100% + 6px);left:auto;right:0;pointer-events:none}.store-card .store-footer{margin-top:16px}.store-card .check-status{font-size:12px}@media(max-width:700px){#shop-results .store-grid{grid-template-columns:1fr}.work-notes .log-text{font-size:15px}}@media(hover:none){.store-actions .shop-tool{width:auto;flex:0 1 auto}.store-actions .shop-tool .tool-label{pointer-events:auto}}

.shop-tool>svg{display:block;width:22px;height:22px;min-width:22px;min-height:22px;flex-shrink:0;margin:auto}.work-read-button{text-align:left;background:#f1f7f4;color:var(--green)}#work-notes-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;overflow:auto}#work-notes-dialog::backdrop{background:#102f2966}.work-dialog-head,.work-dialog-foot{padding:18px 24px;background:white;position:sticky;z-index:1}.work-dialog-head{top:0;display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.work-dialog-head h2{font-size:20px;margin:0;overflow-wrap:anywhere}.work-dialog-head button{font-size:24px;min-width:44px;min-height:44px}.work-dialog-foot{bottom:0;display:flex;justify-content:flex-end;border-top:1px solid var(--line)}#work-notes-body{padding:20px 24px}#work-notes-body h4{font-size:15px;margin:20px 0 10px}#work-notes-body .log-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;margin:0;background:#f5f9f7;padding:16px;border-radius:10px}@media(max-width:700px){#work-notes-body,.work-dialog-head,.work-dialog-foot{padding:16px}#work-notes-body .log-text{font-size:16px}.shop-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px}}

#shop-results .store-grid{align-items:stretch}#shop-results .store-card{display:flex;flex-direction:column;min-height:450px}#shop-results .store-card>.store-footer{margin-top:auto;padding-top:14px}#shop-results .store-card>.store-actions{margin-bottom:14px}.queue-placeholder{height:34px;flex-shrink:0}.future-status{padding:7px 10px;background:#f2f6f4;border-radius:7px;color:var(--muted)}#shop-results .store-heading{min-height:64px}#shop-results .store-code{margin:3px 0 0}.brand-work-slot{flex-shrink:0}@media(max-width:700px){#shop-results .store-card{min-height:0}.queue-placeholder{display:none}}
/* Dense work grid for employees handling 20–30 brands. */
#shop-results .store-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px}#shop-results .store-card{min-height:0;padding:14px;border-radius:12px}#shop-results .store-heading{min-height:44px;gap:9px}#shop-results .store-heading h3{font-size:15px;line-height:1.45;margin:0}#shop-results .store-code{font-size:11px;line-height:1.4}#shop-results .shop-mark{width:32px;height:32px;min-width:32px;font-size:12px;margin:0}#shop-results .queue-controls{margin-bottom:7px;min-height:24px;gap:4px}#shop-results .queue-controls button{min-height:24px;padding:2px 6px;font-size:11px}.queue-placeholder{height:31px}#shop-results .check-status{font-size:11px;line-height:1.5;padding:5px 7px;margin:8px 0}.brand-work-slot{padding:9px 0;margin-top:5px}.work-slot-date{font-size:12px}.work-slot-heading .pill{font-size:10px;padding:3px 7px}.work-slot-time{font-size:11px;margin:3px 0 6px}.brand-work-slot>button{min-height:34px;font-size:12px;line-height:1.45;padding:7px 9px;margin:4px 0}.store-card .store-actions{gap:6px}#shop-results .store-card>.store-actions{margin-bottom:6px}.store-actions .shop-tool{min-height:34px;width:34px;min-width:34px;flex-basis:34px;padding:6px}.shop-tool>svg{width:19px;height:19px;min-width:19px;min-height:19px}#shop-results .store-card>.store-footer{padding-top:8px;font-size:10px;gap:5px}#shop-results .store-footer button{font-size:11px;min-height:30px;padding:4px}.future-status{font-size:11px}@media(max-width:700px){#shop-results .store-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}#shop-results .store-card{padding:14px}#shop-results .store-heading h3{font-size:16px}.brand-work-slot>button{min-height:44px;font-size:14px}.store-actions .shop-tool{min-width:44px;min-height:44px;width:auto;flex-basis:auto}#shop-results .store-footer button{min-height:44px;font-size:12px}.work-slot-date{font-size:13px}.work-slot-time{font-size:12px}.queue-placeholder{height:0}}

.brand-work-slot>.work-icon-button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:36px;min-height:36px;height:36px;padding:7px;margin:4px 6px 4px 0;position:relative;color:var(--green);background:#f3f8f5}.work-icon-button>svg{width:20px;height:20px;flex-shrink:0}.work-icon-short{display:none}.work-icon-tooltip{display:none;position:absolute;bottom:calc(100% + 7px);left:0;width:max-content;max-width:210px;white-space:normal;background:#183f35;color:#fff;border-radius:7px;padding:7px 10px;font-size:12px;line-height:1.5;text-align:left;z-index:20;pointer-events:none}.work-icon-button:hover .work-icon-tooltip,.work-icon-button:focus-visible .work-icon-tooltip{display:block}@media(hover:none){.brand-work-slot>.work-icon-button{width:auto;height:auto;min-height:44px;padding:9px 11px;gap:6px}.work-icon-short{display:inline;font-size:12px}.work-icon-tooltip{display:none!important}}

.brand-work-slot>.shop-tool{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:36px;min-width:36px;min-height:36px;height:36px;padding:7px;margin:4px 6px 4px 0;border-radius:8px;background:#f3f8f5;color:var(--green)}.brand-work-slot>.shop-tool>svg{width:20px;height:20px;min-width:20px;min-height:20px}.brand-work-slot>.shop-tool .tool-label{bottom:calc(100% + 7px);left:auto;right:0;pointer-events:none}.store-actions:empty{display:none!important}@media(hover:none){.brand-work-slot>.shop-tool{width:auto;height:auto;min-height:44px;padding:9px 11px;gap:6px}.brand-work-slot>.shop-tool .tool-label{position:static;pointer-events:auto}}

#shop-mail-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;overflow:auto}#shop-mail-dialog::backdrop{background:#102f2966}#shop-mail-body{padding:20px 24px;line-height:1.8}.mail-address{font-weight:600;overflow-wrap:anywhere}.mail-code-panel{background:#f1f7f4;border-radius:12px;padding:18px;margin-top:18px}.mail-code-panel strong{display:block;font-size:32px;letter-spacing:5px;margin:12px 0;overflow-wrap:anywhere}.mail-code-panel .muted{font-size:12px;margin-top:14px}#shop-mail-body button{min-height:44px}@media(max-width:700px){#shop-mail-body{padding:16px}.mail-code-panel strong{font-size:28px}}
/* Keep secondary tools together instead of distributing them across grid columns. */
.store-grid .store-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px}.store-grid .store-actions [data-local-browser],.store-grid .store-actions .launch-progress{flex:0 0 100%;width:100%}.store-grid .store-actions .shop-tool{flex:0 0 36px;width:36px;min-width:36px;min-height:36px;height:36px;margin:0;padding:7px;display:inline-flex;align-items:center;justify-content:center}.store-grid .store-actions .shop-tool>svg{width:20px;height:20px;min-width:20px;min-height:20px;margin:0}#shop-results .store-card>.store-actions{margin-top:4px;margin-bottom:8px}@media(hover:none){.store-grid .store-actions .shop-tool{flex:0 1 auto;width:auto;min-width:44px;min-height:44px;height:auto;padding:9px 11px;gap:6px}}
/* Shared compact tool rhythm for every store card and work slot. */
.store-grid .brand-work-slot{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:8px}
.store-grid .brand-work-slot>*{flex:0 0 100%;min-width:0}
.store-grid .brand-work-slot>.work-icon-button,.store-grid .brand-work-slot>.shop-tool,.store-grid .store-actions>.shop-tool{flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:7px;gap:0;position:relative}
.store-grid .work-icon-button>svg,.store-grid .shop-tool>svg{width:20px;height:20px;min-width:20px;min-height:20px;margin:0}
.store-grid .work-icon-short{display:none}
@media(max-width:700px),(hover:none){
 .store-grid .brand-work-slot>.work-icon-button,.store-grid .brand-work-slot>.shop-tool,.store-grid .store-actions>.shop-tool{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:11px}
 .store-grid .shop-tool .tool-label{display:none;position:absolute;bottom:calc(100% + 7px);top:auto;left:0;right:auto;width:max-content;max-width:210px;pointer-events:none}
 .store-grid .shop-tool:focus .tool-label,.store-grid .work-icon-button:focus .work-icon-tooltip{display:block!important}
}
/* Inline management tools never overlay or get clipped by the shop table. */
#all-shop-results .shop-admin-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:388px}
#all-shop-results .shop-admin-tool{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:7px;margin:0;border-radius:8px}
.shop-admin-tool svg{width:20px;height:20px;flex-shrink:0}
.shop-admin-tool[data-action="CANCEL"]{color:#a83b38}
@media(max-width:700px){#all-shop-results .shop-admin-tool{flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:11px}}
@media(max-width:700px){
 #all-shop-results .table-wrap{overflow:visible;background:none;border:0}
 #all-shop-results table,#all-shop-results tbody{display:block;width:100%;min-width:0}
 #all-shop-results thead{display:none}
 #all-shop-results tbody tr{display:block;border:1px solid var(--line);border-radius:12px;background:white;margin:0 0 12px;padding:14px}
 #all-shop-results td{display:block;width:auto;min-width:0!important;border:0;padding:5px 0;white-space:normal;overflow-wrap:anywhere}
 #all-shop-results td:nth-child(2)::before{content:'ลูกค้า · ';color:var(--muted)}
 #all-shop-results td:last-child{padding-top:12px;margin-top:8px;border-top:1px solid var(--line)}
 #all-shop-results .shop-admin-tools{max-width:100%}
}
/* Current shift only on the card; other shifts are read in the dialog. */
#shop-results .store-grid{align-items:start}
#shop-results .store-card>.store-footer{margin-top:8px}

.session-loading{max-width:560px;margin:15vh auto;padding:28px;text-align:center;line-height:1.8}.session-loading[hidden]{display:none}
#absence-multiple-label{display:flex;align-items:center;gap:8px}#absence-multiple-label input{width:18px;height:18px;flex:0 0 18px;margin:0}#absence-multiple-label[hidden]{display:none}
/* Bounded brand list: compact rows, short statuses, details in existing history. */
.team-brand-tools{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,240px);gap:12px;margin-bottom:12px}.team-brand-tools label{margin:0;font-size:12px}.team-brand-tools input,.team-brand-tools select{margin-top:5px}
#team-brand-list .team-brands{table-layout:fixed;width:100%}#team-brand-list .team-brands th:first-child{width:34%}#team-brand-list .team-brands th:nth-child(2){width:28%}#team-brand-list .team-brands td{padding:6px 12px;font-size:13px;line-height:1.4;min-width:0;overflow-wrap:anywhere}#team-brand-list .team-brands small{font-size:11px;margin:0;line-height:1.4}#team-brand-list [data-calendar-history]{border:0;background:transparent;padding:3px 0;text-align:left;font-size:13px;min-height:30px}.team-brand-owner{display:flex;align-items:center;justify-content:space-between;gap:8px}#team-brand-list .team-owner-edit{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:6px;flex:0 0 32px}.team-owner-edit svg{width:18px;height:18px}.team-brand-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 20px}.team-brand-pagination span{font-size:12px;text-align:center}.team-brand-pagination button{min-height:40px;white-space:nowrap}
@media(max-width:700px){.team-brand-tools{grid-template-columns:1fr}.team-brand-pagination{flex-wrap:wrap}.team-brand-pagination span{order:-1;flex:0 0 100%}.team-brand-pagination button{min-height:44px}#team-brand-list .team-brands tr{grid-template-columns:1fr 1fr;padding:8px 12px;margin-bottom:10px}#team-brand-list .team-brands td{padding:6px 0;font-size:13px;line-height:1.5}#team-brand-list .team-brands td:first-child,#team-brand-list .team-brands td:nth-child(2){grid-column:auto}#team-brand-list .team-brands td:first-child::before{display:none}#team-brand-list [data-calendar-history]{font-size:15px;min-height:44px}#team-brand-list .team-owner-edit{width:44px;height:44px;min-height:44px;flex-basis:44px}#team-brand-list .team-brands td:last-child{border-bottom:0}}

@media(max-width:700px){#team-brand-list .team-brands tr{column-gap:12px}#team-brand-list .team-brands td small{overflow-wrap:anywhere}}
/* Compact team tools directly after the count guide. */
.team-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.team-tool{min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.team-tool>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:68px;padding:12px 16px;font-weight:600;line-height:1.5}.team-tool>summary::-webkit-details-marker{display:none}.team-tool>summary::after{content:'⌄';margin-left:auto;font-size:18px;color:var(--muted)}.team-tool[open]>summary::after{transform:rotate(180deg)}.team-tool>summary>svg{width:20px;height:20px;flex:0 0 20px;color:var(--green)}.team-tool>summary>span{min-width:0}.team-tool>summary small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}.team-tool-count{font-size:11px;white-space:nowrap;color:var(--green);background:var(--mint);padding:3px 7px;border-radius:12px}.team-tool[open]{grid-column:1/-1}.team-tool[open]>summary{border-bottom:1px solid var(--line)}.team-tool>p{padding:12px 16px;margin:0;border-bottom:1px solid var(--line);line-height:1.8}.team-tool>.team-capacity-guide,.team-tool>#team-capacities{padding:16px}.team-tool>summary:hover{background:#f4f8f5}.team-tool>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
@media(max-width:700px){.team-tools{grid-template-columns:1fr;gap:8px;margin-bottom:14px}.team-tool>summary{padding:10px 12px;min-height:64px;font-size:14px}.team-tool-count{font-size:10px}.team-tool>p button{min-height:44px}}
/* Work chat: bounded conversation, no growing brand cards. */
.chat-disclosure{font-size:13px;color:var(--muted)}.chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;height:70vh;min-height:500px}.chat-sidebar{overflow:auto;display:flex;flex-direction:column;gap:8px}.chat-room{text-align:left;display:block;width:100%;padding:12px}.chat-room strong,.chat-room small{display:block;white-space:normal;overflow-wrap:anywhere}.chat-room.selected{background:#e8f4ee}.chat-conversation{display:flex;flex-direction:column;min-width:0;background:white;border:1px solid #dce7e2;border-radius:16px;overflow:hidden}.chat-head,.chat-search,.chat-tools{display:flex;align-items:center;gap:8px;padding:10px;flex-wrap:wrap}.chat-head small{display:block}.chat-head #chat-back{display:none}.chat-messages{flex:1;overflow:auto;padding:12px;min-height:150px}.chat-message{margin-bottom:12px;padding:12px;background:#f3f8f5;border-radius:12px;overflow-wrap:anywhere}.chat-message p{white-space:pre-wrap;margin:8px 0}.chat-message small{display:block;font-size:12px}.chat-message button{padding:6px 10px;margin:4px 4px 0 0}.chat-image{max-width:240px;max-height:220px;object-fit:contain}.chat-compose{padding:10px;border-top:1px solid #dce7e2;max-height:45vh;overflow:auto}.chat-compose textarea{width:100%;min-height:60px}.chat-tools button,.chat-tools select{padding:8px;font-size:13px}.chat-file-label{font-size:13px;max-width:180px}.chat-file-label input{max-width:100%;font-size:12px}#chat-status{font-size:12px;padding:0 10px;margin:4px}#chat-extra[hidden]{display:none}#chat-extra label{display:block;margin:8px 0}
@media(max-width:700px){.chat-layout{display:block;height:auto;min-height:0}.chat-sidebar{max-height:65vh}.chat-conversation{display:none}.chat-conversation.chat-open{display:flex;position:fixed;inset:0;z-index:1000;border-radius:0;height:100dvh}.chat-head #chat-back{display:block}.chat-image{max-width:100%}.chat-head{font-size:14px}.chat-tools button{min-height:44px}.chat-compose{max-height:45dvh}}

.chat-sticker{font-size:44px}.chat-unread{background:#dff3e9;border-radius:12px;padding:2px 6px;font-size:12px}

.brand-chat-page{max-width:1200px;margin:auto;padding:16px}.chat-sticker-choice{font-size:36px}

.brand-chat-dialog{width:min(1100px,96vw);max-width:96vw;max-height:96dvh;padding:14px}.brand-chat-dialog .chat-layout{height:65vh;min-height:350px}.brand-chat-dialog h1{font-size:22px}.chat-head{flex-shrink:0}.chat-search{flex-shrink:0}

.brand-chat-dialog .chat-sidebar{display:none}.brand-chat-dialog .chat-layout{grid-template-columns:minmax(0,1fr)}.brand-chat-dialog #chat-back{display:none}

.chat-recipients{max-height:190px;overflow:auto;padding:8px}.chat-recipients label{display:flex!important;align-items:center;gap:8px;font-size:14px;margin:4px!important}.chat-recipients input{width:auto}.chat-sidebar>button{padding:8px;font-size:13px}

#chat-stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.chat-sticker-preview{width:90px;max-width:100%}.chat-inline-sticker{display:inline-block;width:120px;height:120px;vertical-align:middle}

.chat-head>div{min-width:0;flex:1;overflow-wrap:anywhere}.chat-tools>select{min-width:0;max-width:100%}
/* Compact messenger workspace */
body.chat-mode .sidebar,body.chat-mode .topbar{display:none}body.chat-mode .workspace{margin:0;padding:0}body.chat-mode footer{display:none}.chat-shell{display:grid;grid-template-columns:64px minmax(0,1fr);height:100dvh;background:white;overflow:hidden;color:#29313c}.chat-rail{background:#263148;display:flex;align-items:center;flex-direction:column;gap:24px;padding:24px 8px}.chat-rail button,.chat-rail span{border:0;background:transparent;color:#b5c0d1;width:44px;height:44px;border-radius:12px;font-size:22px;display:grid;place-items:center;padding:0}.chat-rail button:first-child{font-size:17px;font-weight:800;color:white;background:#39465e}.chat-rail .rail-active{background:#42516b;color:white}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-tabs{display:flex;align-items:center;gap:22px;padding:0 24px;height:66px;border-bottom:1px solid #e6e8eb;flex-shrink:0}.chat-tabs>button{padding:20px 0 17px;white-space:nowrap;background:none;border:0;border-radius:0;color:#9399a1;font-size:15px;font-weight:600;border-bottom:3px solid transparent}.chat-tabs>button.active{color:#242a32;border-bottom-color:#242a32}.chat-settings{position:relative;margin-left:auto;z-index:5}.chat-settings>summary{list-style:none;font-size:24px;color:#737b83;padding:8px}.chat-settings-menu{position:absolute;right:0;top:46px;width:240px;padding:12px;background:white;border:1px solid #e3e7eb;border-radius:12px;box-shadow:0 8px 30px #26314820;display:grid;gap:8px}.chat-settings-menu button{width:100%;text-align:left;padding:10px;font-size:13px}.chat-settings-menu label{font-size:12px}.chat-settings-menu select{margin-top:6px;width:100%}.chat-main .chat-layout{flex:1;min-height:0;height:auto;grid-template-columns:340px minmax(0,1fr);gap:0;overflow:hidden}.chat-sidebar{border-right:1px solid #e3e7eb;gap:0;overflow:hidden}.chat-find{display:flex;gap:8px;align-items:center;margin:20px 16px 12px;border-radius:8px;background:#f4f5f6;padding:0 12px;color:#a3a9ae}.chat-find input{background:none;border:0;margin:0;padding:13px 0;min-width:0;font-size:13px}.chat-find span{font-size:24px}#chat-room-list{overflow:auto;flex:1;min-height:0}.chat-room{display:flex;align-items:center;gap:12px;border:0;border-radius:0;min-height:90px;padding:15px 18px;background:white;color:#2c3036;margin:0}.chat-room:hover{background:#f6f7f8}.chat-room.selected{background:#eef0f3}.chat-avatar{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e6edea;color:#246953;font-size:16px;font-weight:700;overflow:hidden}.kind-TEAM{background:#263148;color:white}.kind-BRAND{background:#eae7f6;color:#6b5394}.kind-DIRECT{background:#edf0f8;color:#4e6394}.chat-room-copy{flex:1;min-width:0;text-align:left}.chat-room-copy strong{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-room-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#92989e;font-size:12px;margin-top:5px;line-height:1.5}.chat-room-copy em{display:block;color:#4773ae;font-style:normal;font-size:11px}.chat-room-meta{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex-shrink:0}.chat-room-meta time{font-size:11px;color:#a7acb1}.chat-room-meta b{background:#08b63c;color:white;border-radius:20px;min-width:21px;height:21px;padding:2px 5px;font-size:11px;display:grid;place-items:center}.chat-no-rooms{padding:24px;color:#999;font-size:13px}.chat-main .chat-conversation{border:0;border-radius:0;background:white;min-height:0}.chat-welcome{margin:auto;text-align:center;color:#a5aaaf}.chat-welcome>span{display:grid;place-items:center;width:92px;height:82px;border-radius:40px;background:#eff0f1;font-size:32px;font-weight:800;color:#b7bdc2;margin:0 auto 20px}.chat-welcome p{font-size:18px;margin:0 0 8px}.chat-welcome small{font-size:12px}.chat-disclosure{margin:0;padding:7px 18px;font-size:10px;color:#9299a0;border-top:1px solid #edf0f2;flex-shrink:0}.chat-head{height:76px;border-bottom:1px solid #edf0f2;padding:12px 24px;flex-wrap:nowrap}.chat-head strong{font-size:16px}.chat-head small{font-size:11px;margin-top:4px;color:#9299a1}.chat-head button{font-size:12px;padding:7px 10px;border:0;background:transparent;color:#848d96}.chat-search-panel{border-bottom:1px solid #edf0f2}.chat-search-panel>summary{padding:8px 22px;font-size:12px;font-weight:400;color:#899199;list-style:none}.chat-search{padding:0 18px 10px;flex-wrap:nowrap}.chat-search input{margin:0;min-width:0}.chat-search button{white-space:nowrap;font-size:12px;padding:8px}.chat-messages{padding:22px 26px;background:#f8fafb;min-height:0;display:flex;flex-direction:column;gap:18px}.chat-message{flex-shrink:0;max-width:82%;align-self:flex-start;background:#fff;border:1px solid #e7ebed;padding:13px 16px;margin:0;border-radius:0 16px 16px 16px;font-size:14px;line-height:1.65}.chat-message.chat-own{align-self:flex-end;background:#e0f4db;border-color:#d5ebd0;border-radius:16px 0 16px 16px}.chat-message>small:first-child{color:#78838c;font-size:10px}.chat-message>small{font-size:11px;color:#66747b}.chat-message details{margin-top:8px;border-top:1px solid #0000000b}.chat-message summary{font-size:12px;padding:8px 0}.chat-message details p{font-size:12px}.chat-message button{background:transparent;border:1px solid #bdcec3;font-size:11px;padding:4px 9px;border-radius:7px}.chat-compose{padding:12px 20px 10px;max-height:46vh;border-top:1px solid #e8ecef;background:white;flex-shrink:0}.chat-compose textarea{border:0;background:white;resize:vertical;min-height:54px;padding:8px 0;font-size:14px}.chat-tools{gap:12px;padding:4px 0;flex-wrap:nowrap}.chat-tools button{border:0;background:transparent;color:#7e8891;padding:6px;font-size:22px;line-height:1}.chat-tools select{width:auto;max-width:160px;border:0;background:#f4f6f7;border-radius:6px;font-size:12px;padding:7px}.chat-tools .primary{margin-left:auto;background:#08ac45;color:white;font-size:13px;padding:10px 20px;border-radius:7px}.chat-file-label{position:relative;width:30px;height:30px;overflow:hidden;display:grid;place-items:center;cursor:pointer;font-size:23px;color:#7e8891;margin:0}.chat-file-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.chat-compose #chat-extra{margin-top:12px;padding:12px;background:#f7f9fa;border-radius:8px}.chat-compose #chat-extra button{font-size:12px;padding:6px 10px}.chat-compose #chat-extra label{font-size:12px}.chat-compose #chat-extra input,.chat-compose #chat-extra select{padding:8px}.brand-chat-dialog .chat-shell{height:75dvh;grid-template-columns:0 minmax(0,1fr)}.brand-chat-dialog .chat-rail{visibility:hidden;padding:0}.brand-chat-dialog .chat-main .chat-layout{grid-template-columns:minmax(0,1fr)}.brand-chat-dialog .chat-tabs{display:none}.brand-chat-page{padding:0;max-width:none}.brand-chat-page .chat-shell{height:100dvh}
@media(max-width:1000px){.chat-main .chat-layout{grid-template-columns:290px minmax(0,1fr)}.chat-tabs{gap:16px}.chat-message{max-width:90%}}
@media(max-width:700px){.chat-shell{grid-template-columns:48px minmax(0,1fr)}.chat-rail{padding:14px 3px;gap:18px}.chat-rail button,.chat-rail span{width:40px;height:40px}.chat-tabs{height:56px;gap:12px;padding:0 10px;overflow-x:auto}.chat-tabs>button{font-size:12px;padding:17px 0 14px}.chat-settings{position:static}.chat-settings-menu{top:55px;right:8px}.chat-main .chat-layout{display:block;height:auto}.chat-sidebar{height:100%;max-height:none;border:0}.chat-find{margin:12px 10px}.chat-room{padding:14px 12px;gap:10px;min-height:86px}.chat-avatar{width:42px;height:42px;flex-basis:42px;font-size:14px}.chat-room-meta time{font-size:10px}.chat-room-copy strong{font-size:13px}.chat-room-copy small{font-size:11px}.chat-conversation.chat-open{position:fixed;inset:0;z-index:1000;height:100dvh;display:flex}.chat-head{height:70px;padding:10px 12px;gap:8px}.chat-head #chat-back{display:block;font-size:0;width:34px;height:44px;padding:0}.chat-head #chat-back:before{content:'‹';font-size:32px}.chat-head strong{font-size:14px}.chat-head small{font-size:10px}.chat-head #chat-mute{font-size:11px;padding:6px}.chat-head .chat-avatar{flex-basis:36px;width:36px;height:36px}.chat-messages{padding:16px 12px}.chat-message{max-width:92%;padding:10px 12px;font-size:13px}.chat-compose{padding:8px 12px;max-height:48dvh}.chat-tools{gap:6px}.chat-tools select{max-width:112px;font-size:11px;padding:5px}.chat-tools button{min-height:40px;min-width:30px}.chat-tools .primary{padding:8px 12px;min-width:48px;font-size:12px}.chat-disclosure{font-size:9px;padding:6px 10px}.chat-image{max-width:100%}.chat-search{gap:5px;padding:0 10px 8px}.chat-search button{font-size:10px;padding:8px}.chat-search-panel>summary{padding:8px 12px}.brand-chat-dialog .chat-shell{grid-template-columns:0 minmax(0,1fr)}}
body.chat-mode #content{max-width:none;margin:0}.chat-file-label:focus-within{outline:2px solid #1e8060;outline-offset:2px}.chat-search-panel[open]{flex-shrink:0}.chat-compose [hidden]{display:none!important}
body.chat-mode #notice:not([hidden]){position:fixed;z-index:2200;left:50%;top:16px;transform:translateX(-50%);width:min(560px,calc(100vw - 24px));max-height:40dvh;overflow:auto;box-sizing:border-box;box-shadow:0 8px 28px #26314830}

/* Keep the app refresh action aligned with account navigation on touch screens. */
#navigation #reload-latest{display:flex;align-items:center;gap:12px;min-height:44px;text-align:left}
#reload-latest .nav-icon{width:20px;height:20px;flex:0 0 20px}

/* One persistent inbox entry, independent of page/card layout. */
#chat-bell-host{position:fixed;top:max(12px,env(safe-area-inset-top));right:16px;z-index:2100}
#chat-bell{position:relative;width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:50%;box-shadow:0 2px 8px #142c2b12}
#chat-bell-count{position:absolute;right:-5px;top:-5px;min-width:20px;padding:0 4px;border-radius:12px;background:#c32d3d;color:white;font-size:11px;line-height:20px}
#chat-bell-count[hidden]{display:none}
#chat-bell-panel{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 40px);padding:0;overflow:auto;border-radius:18px}
#chat-bell-panel header{display:flex;align-items:flex-start;gap:12px;padding:18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}
#chat-bell-panel h2{font-size:18px;margin:0}#chat-bell-panel header p{font-size:12px;color:var(--muted);margin:4px 0 0}
#chat-bell-close{margin-left:auto;min-width:44px;min-height:44px;padding:4px;font-size:24px}
.bell-room{display:block;border:0;border-radius:0;border-bottom:1px solid var(--line);width:100%;text-align:left;padding:16px 18px;font-weight:400;white-space:normal}
.bell-room-top{display:flex;justify-content:space-between;gap:12px}.bell-room-top strong{overflow-wrap:anywhere}.bell-room-top b{background:var(--green);color:white;border-radius:12px;padding:0 7px;font-size:11px;align-self:flex-start}
.bell-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:5px 0}.bell-room small{color:var(--muted);font-size:11px}.bell-empty{text-align:center;padding:36px 16px;color:var(--muted)}
#chat-bell-error{padding:0 16px}.topbar{padding-right:64px}.chat-head{padding-right:76px!important}
@media(max-width:700px){#chat-bell-host{right:12px}#chat-bell-panel{margin:auto;max-height:85dvh}.chat-head>div{min-width:0}.chat-head strong{overflow-wrap:anywhere}#chat-mute{flex-shrink:0}}
.chat-head #chat-back[aria-label="กลับหน้าที่ทำงาน"]{display:block;white-space:nowrap;font-size:12px;padding:6px}
@media(max-width:700px){.chat-head #chat-back[aria-label="กลับหน้าที่ทำงาน"]{font-size:0;width:34px;min-width:34px;padding:0}}

/* Compact conversation bubbles: content inside, light metadata/actions outside. */
.chat-messages{gap:10px;padding:16px 20px;background:#fff}
.chat-message,.chat-message.chat-own{width:fit-content;max-width:78%;padding:0;border:0;background:transparent;border-radius:0;font-size:14px;line-height:1.5;min-width:0}
.chat-message-meta{font-size:10px;line-height:1.4;color:#7c878c;margin:0 8px 3px;font-weight:400;overflow-wrap:anywhere}
.chat-own .chat-message-meta{text-align:right}
.chat-bubble{background:#eff0f2;border-radius:16px;padding:7px 12px;overflow-wrap:anywhere;min-width:0}
.chat-own .chat-bubble{background:#cef3bb}
.chat-bubble>p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bubble>small{display:block;font-size:10px;color:#64736b;margin-top:4px}
.chat-bubble blockquote{margin:0 0 6px;padding:4px 8px;border-left:2px solid #9cafab;font-size:12px;color:#677371}
.chat-message .chat-message-footer{display:flex;justify-content:flex-end;align-items:center;gap:7px;min-height:26px;margin:1px 3px 0}
.chat-message-footer>small{font-size:10px;color:#85908c;line-height:1.3}
.chat-message-actions{display:flex;align-items:center;gap:2px}
.chat-message button.chat-message-action{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:#87948e}
.chat-message button.chat-message-action:hover,.chat-message button.chat-message-action:focus-visible{background:#e8efea;color:#126451}
.chat-message button.chat-message-action[aria-pressed=true]{color:#126451;background:#e6f3ea}
.chat-message .chat-message-footer:has(.chat-message-actions:empty):not(:has(small)){display:none}
.chat-message details{margin-top:5px}.chat-message summary{padding:5px 0}.chat-message details p{margin:4px 0}
.chat-tools .chat-send{display:grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;border-radius:50%;background:#08ac45;color:white}
.chat-compose textarea{min-height:40px;margin:0;resize:vertical}
.chat-compose{padding:8px 16px}.chat-tools{padding:3px 0;gap:10px}
#chat-status{font-size:11px;margin:0;padding:2px 14px;min-height:0}#chat-status:empty{display:none}
@media(max-width:700px){.chat-messages{padding:12px 10px;gap:8px}.chat-message,.chat-message.chat-own{max-width:90%;font-size:13px}.chat-bubble{padding:7px 10px;border-radius:15px}.chat-message button.chat-message-action{width:32px;height:32px}.chat-message .chat-message-footer{min-height:32px;margin-top:0}.chat-compose{padding:6px 10px}.chat-tools .chat-send{width:40px;min-width:40px;height:40px;padding:0}.chat-tools{gap:6px}}
.chat-message button.chat-message-action{min-width:26px;min-height:26px;margin:0}
@media(max-width:700px){.chat-message button.chat-message-action{min-width:32px;min-height:32px}}

/* Safari flex sizing and keyboard: let text wrap, never size a bubble to a long word. */
.chat-conversation,.chat-messages,.chat-compose,.chat-bubble{min-width:0;max-width:100%;box-sizing:border-box}
.chat-messages{width:100%}
.chat-message,.chat-message.chat-own{width:auto;min-width:0;box-sizing:border-box}
.chat-bubble>p,.chat-bubble a,.chat-bubble blockquote,.chat-message-meta{word-break:break-word;overflow-wrap:anywhere}
.chat-bubble img{max-width:100%;height:auto}
.chat-compose textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word}
@media(max-width:700px){.chat-compose textarea{font-size:16px;line-height:1.45}.chat-conversation.chat-open{width:100%;max-width:100vw;min-width:0}.chat-message,.chat-message.chat-own{max-width:90%}}

.chat-message button.chat-image-open{display:block;width:auto;max-width:100%;min-width:0;min-height:0;margin:5px 0 0;padding:0;border:0;background:transparent;border-radius:10px;overflow:hidden;cursor:zoom-in}
.chat-image-open .chat-image{display:block;margin:0;max-width:100%;height:auto}
#chat-image-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#101617;color:white;overflow:hidden}
#chat-image-dialog::backdrop{background:#101617}
.chat-image-stage{position:absolute;inset:0;display:grid;place-items:center;padding:0;min-width:0;min-height:0}
.chat-image-stage img{position:absolute;inset:0;display:block;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;touch-action:pinch-zoom}
.chat-image-stage p{position:absolute;margin:16px;font-size:14px;z-index:1;pointer-events:none}
.chat-image-close{position:absolute;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));z-index:2;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:#142c2b;border-radius:50%}
.chat-image-close::before{content:'';position:absolute;inset:6px;border-radius:50%;background:#fffffff0;box-shadow:0 1px 5px #0003}
.chat-image-close svg{position:relative;display:block;width:18px;height:18px}
.chat-image-close:hover{background:transparent}.chat-image-close:hover::before{background:white}

/* Fit the entire image proportionally within each device viewport. */
.customer-login{width:min(440px,calc(100% - 32px));margin:6vh auto;background:white;padding:24px;border:1px solid var(--line);border-radius:16px}.customer-login h1{font-size:24px;margin:0}.customer-login p{font-size:13px}.customer-login label{display:block;margin:14px 0}.customer-login input{width:100%;font-size:16px}.customer-login form>button{min-width:44px;min-height:44px;font-size:20px}.customer-login [hidden]{display:none!important}
.customer-team-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:20px;overflow:auto}.customer-team-dialog header,.customer-team-member{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-team-dialog h2{margin:0}.customer-team-dialog label{display:block;margin:12px 0}.customer-team-dialog input{width:100%;box-sizing:border-box;font-size:16px;min-width:0}.customer-team-dialog button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px}.customer-team-member{padding:12px 0;border-bottom:1px solid #dce7e3}.customer-team-member>div{min-width:0;overflow-wrap:anywhere}.customer-team-member small{display:block}.customer-team-dialog p{overflow-wrap:anywhere}
.chat-person-avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#e8f1ed;color:#206c58;border:2px solid #b8c2be;box-sizing:border-box;font-size:12px;overflow:hidden}.chat-person-avatar.is-online{border-color:#19ad68;box-shadow:0 0 0 2px #d6f5e3}.chat-person-avatar img{width:100%;height:100%;object-fit:cover}.chat-person-avatar.tiny{width:22px;height:22px;flex-basis:22px;font-size:9px;margin-right:6px;vertical-align:middle}.chat-person-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e1e8e5}.chat-person-row>div{min-width:0;overflow-wrap:anywhere}.chat-person-row small{display:block;color:#7b8983}.chat-head .chat-members-count{display:block;padding:2px 0;margin:2px 0;min-height:24px;background:none;border:0;font-size:12px;color:#647b70}.chat-head>div{min-width:0}.chat-profile-dialog{width:min(420px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;padding:20px}.chat-profile-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}.chat-profile-dialog h2{font-size:20px;margin:0}.chat-profile-dialog button{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}.chat-profile-dialog label{display:block;margin:12px 0}.chat-profile-dialog input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;font-size:16px}.chat-profile-preview img{width:72px;height:72px;border-radius:50%;object-fit:cover}.chat-profile-dialog .chat-profile-remove{display:flex;align-items:center;gap:8px}.chat-profile-dialog p,.chat-profile-dialog small{overflow-wrap:anywhere}.chat-message-meta [data-profile-key]{display:inline-block;vertical-align:middle}
/* Compact, rounded chat settings and personal-profile dialogs. */
.chat-settings-menu{border-radius:20px;padding:6px;box-shadow:0 10px 32px #153c2920}.chat-settings-menu button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:38px;margin:0;padding:8px 12px;border:0;border-radius:12px;background:transparent;line-height:1.3;font-size:14px}.chat-settings-menu button:hover{background:#edf5f1}.chat-settings-menu button svg{flex:0 0 20px}.chat-settings-menu .chat-person-avatar.tiny{margin:0}.chat-profile-dialog,.customer-team-dialog{border:0;border-radius:24px;padding:20px;box-shadow:0 18px 60px #173f2b24}.chat-profile-dialog header,.customer-team-dialog header{gap:12px}.chat-profile-dialog h2,.customer-team-dialog h2{font-size:20px;line-height:1.3}.chat-profile-dialog .chat-modal-close,.customer-team-dialog [data-team-close]{position:relative;flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:#f0f4f2;font-size:21px;color:#39594c}.chat-profile-dialog .chat-modal-close:before,.customer-team-dialog [data-team-close]:before{content:"";position:absolute;inset:-8px}.customer-team-dialog [data-team-close] svg{width:16px;height:16px}.profile-modern{width:min(352px,calc(100vw - 24px))}.profile-modern .profile-photo-picker{display:block;position:relative;width:144px;height:144px;min-width:144px;min-height:144px;margin:20px auto 6px;padding:0;border:0;border-radius:50%;background:#e7f1ec;overflow:hidden}.profile-modern .chat-profile-preview{display:flex;width:144px;height:144px;align-items:center;justify-content:center;font-size:30px;color:#287458}.profile-modern .chat-profile-preview img{width:144px;height:144px;border-radius:50%;object-fit:cover}.profile-camera{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:white;background:#122b231f}.profile-camera svg{width:36px;height:36px;filter:drop-shadow(0 1px 3px #0008)}.profile-modern .profile-change-link{display:block;min-height:32px;margin:0 auto 16px;padding:2px 6px;border:0;background:none;color:#227f78;font-size:15px;font-weight:600}.profile-modern input[name=display_name]{border-radius:14px;padding:10px 12px}.profile-modern label{font-size:13px;margin:10px 0 6px}.profile-modern small{font-size:11px;color:#7b8e84}.profile-modern .profile-save{display:flex;margin:16px 0 0 auto;min-width:38px;min-height:34px;padding:4px 12px;border-radius:18px;font-size:18px}.profile-modern [role=alert]:empty{display:none}.customer-team-dialog input{border-radius:14px}.customer-team-dialog .customer-team-member{padding:8px 0}.customer-team-dialog form h3{margin:14px 0 8px;font-size:16px}
.customer-team-dialog{width:min(420px,calc(100vw - 24px))}.profile-modern .profile-save{position:relative}.profile-modern .profile-save:before{content:"";position:absolute;inset:-5px 0}
/* One room-members entry: small live avatars under the main room identity. */
.chat-head{height:auto;min-height:76px;flex-shrink:0;row-gap:6px}.chat-head .chat-members-count{flex:0 0 100%;display:flex;align-items:center;gap:8px;min-width:0;min-height:34px;margin:0;padding:2px 4px;border-radius:12px;font-size:11px;text-align:left;white-space:nowrap}.chat-member-avatars{display:flex;align-items:center;gap:4px;flex-shrink:0}.chat-member-avatars .chat-person-avatar.header-avatar{width:26px;height:26px;flex-basis:26px;font-size:10px}.chat-members-more{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e9f0ec;color:#547565;font-size:10px}.chat-member-chevron{margin-left:auto;color:#84968b;font-size:22px;line-height:1}.chat-head .chat-members-count:hover{background:#f2f7f4}
/* Sender photo belongs beside the bubble, not in its name/time line. */
.chat-message,.chat-message.chat-own{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;align-self:flex-start;max-width:82%}.chat-message .chat-message-meta{grid-column:2;grid-row:1;margin:0 3px 3px}.chat-sender-avatar{grid-column:1;grid-row:2;align-self:start;padding-top:1px;line-height:0}.chat-sender-avatar .chat-person-avatar.message-avatar{width:32px;height:32px;flex-basis:32px;font-size:11px}.chat-message .chat-bubble{grid-column:2;grid-row:2}.chat-message .chat-message-footer{grid-column:2;grid-row:3}.chat-message.chat-own{grid-template-columns:minmax(0,1fr) 32px;align-self:flex-end}.chat-own .chat-message-meta,.chat-own .chat-bubble,.chat-own .chat-message-footer{grid-column:1}.chat-own .chat-sender-avatar{grid-column:2}
@media(max-width:700px){.chat-head{height:auto;min-height:70px;row-gap:4px;padding-bottom:6px}.chat-head .chat-members-count{gap:6px;font-size:10px;min-height:32px}.chat-member-avatars{gap:3px}.chat-member-avatars .chat-person-avatar.header-avatar,.chat-members-more{width:24px;height:24px;flex-basis:24px}.chat-message,.chat-message.chat-own{max-width:96%;column-gap:6px;grid-template-columns:28px minmax(0,1fr)}.chat-message.chat-own{grid-template-columns:minmax(0,1fr) 28px}.chat-sender-avatar .chat-person-avatar.message-avatar{width:28px;height:28px;flex-basis:28px;font-size:10px}}
.chat-head{flex-wrap:wrap}.chat-head>div{flex:1 1 0;min-width:0}.chat-head .chat-members-count{width:100%;flex-basis:100%}
.chat-message .chat-bubble{justify-self:start;max-width:100%}.chat-message.chat-own .chat-bubble{justify-self:end}.chat-members-count #chat-member-count-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Smaller chat typography; retain 16px mobile input to avoid iOS focus zoom. */
.chat-message,.chat-message.chat-own{font-size:13px;line-height:1.45}.chat-message-meta{font-size:9px}.chat-message-footer>small{font-size:9px}.chat-compose textarea{font-size:13px;line-height:1.4}.chat-compose textarea::placeholder{font-size:11px;line-height:1.35}#chat-status{font-size:10px;padding:2px 12px}@media(max-width:700px){.chat-message,.chat-message.chat-own{font-size:12px}.chat-compose textarea{font-size:16px}.chat-compose textarea::placeholder{font-size:11px}}
.chat-head #chat-mute{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:6px;border:0;border-radius:50%;background:transparent;color:#467261;flex-shrink:0}.chat-head #chat-mute:before{content:"";position:absolute;inset:-6px}.chat-head #chat-mute[aria-pressed=true]{color:#8a9690;background:#f1f4f2}.chat-head #chat-mute:hover{background:#e9f2ed}
/* Standing popup theme: content only, compact rounded panel and floating close. */
#chat-bell-panel.chat-compact-popup,#chat-members-dialog.chat-compact-popup{position:fixed;width:min(320px,calc(100vw - 28px));box-sizing:border-box;min-height:0;max-height:min(70dvh,520px);padding:28px 12px 10px;border:0;border-radius:22px;overflow:auto;box-shadow:0 16px 48px #173e2a26}dialog.chat-compact-popup .chat-popup-close{position:absolute;z-index:2;top:7px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:#eef3f0;color:#3e6252;box-shadow:none}dialog.chat-compact-popup .chat-popup-close:before{content:"";position:absolute;inset:-10px}.chat-compact-popup .chat-person-row{padding:8px 2px;gap:9px}.chat-compact-popup .chat-person-row:last-child{border-bottom:0}.chat-compact-popup .chat-person-row strong{font-size:12px;font-weight:600}.chat-compact-popup .chat-person-row small{font-size:10px}.chat-compact-popup .chat-person-avatar{width:30px;height:30px;flex-basis:30px;font-size:10px}.chat-compact-popup .bell-room{padding:9px 3px;border-radius:10px;font-size:12px}.chat-compact-popup .bell-room:last-child{border-bottom:0}.chat-compact-popup .bell-room-top strong{font-size:12px}.chat-compact-popup .bell-preview{font-size:11px;margin:3px 0}.chat-compact-popup .bell-room small{font-size:10px}.chat-compact-popup .bell-empty{padding:12px 4px 14px;font-size:12px}.chat-compact-popup #chat-bell-error{font-size:11px;padding:4px;margin:0}
#chat-bell-panel .chat-popup-close,#chat-members-dialog .chat-popup-close{position:absolute;top:7px;right:8px;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:#eef3f0;box-shadow:none}#chat-bell-panel.chat-compact-popup:has(.bell-empty){width:min(240px,calc(100vw - 28px))}.chat-compact-popup .chat-person-row strong{line-height:1.35}.chat-compact-popup .chat-person-row small{line-height:1.4}.chat-compact-popup .chat-person-row{padding:7px 2px}
#chat-members-dialog.chat-compact-popup{width:max-content;min-width:240px;max-width:min(320px,calc(100vw - 28px))}#chat-bell-panel.chat-compact-popup,#chat-members-dialog.chat-compact-popup{overflow:hidden}#chat-bell-panel.chat-compact-popup[open],#chat-members-dialog.chat-compact-popup[open]{display:flex;flex-direction:column}#chat-bell-list,.chat-compact-popup .chat-members-list{min-height:0;max-height:min(calc(70dvh - 38px),482px);overflow-y:auto;overscroll-behavior:contain}
/* Compact tab/search/list rhythm for the conversation sidebar. */
.chat-tabs{height:44px;min-height:44px;gap:18px;padding:0 16px;box-sizing:border-box}.chat-tabs>button{display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:0;box-sizing:border-box;padding:0;border-bottom-width:2px;font-size:13px;line-height:1.3}.chat-settings>summary{padding:4px;font-size:22px;line-height:1.2}.chat-settings-menu{top:calc(100% + 6px)}.chat-find{margin:8px 12px;padding:0 10px;min-height:36px;border-radius:12px}.chat-find input{height:36px;min-height:36px;box-sizing:border-box;padding:6px 0;font-size:13px;line-height:1.3}.chat-find span{font-size:20px}.chat-room{min-height:68px;padding:10px 14px;gap:10px}.chat-room .chat-avatar{width:40px;height:40px;flex-basis:40px;font-size:14px}.chat-room-copy small{margin-top:2px}
@media(max-width:700px){.chat-tabs{height:44px;min-height:44px;gap:12px;padding:0 10px}.chat-tabs>button{height:44px;padding:0;font-size:12px}.chat-settings-menu{top:48px}.chat-find{margin:6px 10px;min-height:40px}.chat-find input{height:40px;min-height:40px;font-size:16px}.chat-find input::placeholder{font-size:12px}.chat-room{min-height:68px;padding:8px 12px}.chat-room .chat-avatar{width:38px;height:38px;flex-basis:38px;font-size:13px}}
.chat-tabs{padding-right:72px}@media(max-width:700px){.chat-tabs{padding-right:72px}}
@media(max-width:700px){.brand-chat-page .chat-settings-menu{top:48px}}
/* Customer OWNER and MEMBER share one scoped shop conversation, not staff navigation. */
.chat-shell.customer-single{grid-template-columns:minmax(0,1fr)}.customer-single .chat-rail,.customer-single .chat-tabs,.customer-single .chat-sidebar{display:none}.customer-single .chat-main .chat-layout{grid-template-columns:minmax(0,1fr)}.customer-single .chat-head #chat-back{display:none}.customer-single .chat-head .chat-settings{position:relative;margin:0;flex:0 0 32px;align-self:center}.customer-single .chat-head .chat-settings>summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;box-sizing:border-box;padding:4px;font-size:20px;border-radius:50%;color:#657b70}.customer-single .chat-head .chat-settings-menu{top:calc(100% + 6px);right:0}.customer-single .chat-conversation{position:relative;inset:auto;height:100%;width:100%;max-width:100%}.customer-single .chat-head>.chat-avatar{flex-shrink:0}

.customer-single .chat-head{padding-right:16px}.customer-single #chat-new-messages{align-self:center;flex:0 0 auto;padding:5px 12px;margin:4px;border-radius:20px;font-size:12px;background:#e8f4ed;color:#176b53}
/* Customer header: one aligned action pair; member chevron follows its label. */
.customer-single .chat-head{display:grid;grid-template-columns:48px minmax(0,1fr) 32px 32px;column-gap:8px;align-items:center}.customer-single .chat-head>.chat-members-count{grid-column:1/-1;width:auto;justify-content:flex-start}.customer-single .chat-head .chat-member-chevron{margin-left:2px}.customer-single .chat-head #chat-mute,.customer-single .chat-head .chat-settings{align-self:center;margin:0}.customer-single .chat-head .chat-settings>summary{line-height:1;padding:0}.customer-single .chat-head .chat-settings>summary:before{content:"";position:absolute;inset:-6px}
@media(max-width:700px){.customer-single .chat-head{grid-template-columns:36px minmax(0,1fr) 32px 32px;column-gap:8px;padding-left:12px;padding-right:12px}}
/* No global inbox in customer portal: release its old reserved right gutter. */
.customer-single .chat-head{padding-right:16px!important}
@media(max-width:700px){.customer-single .chat-head{padding-right:12px!important}}
/* Staff/CEO navigation actions share one compact aligned top-right pair. */
body.chat-mode:not(:has(.customer-single)) #chat-bell-host{top:max(6px,env(safe-area-inset-top));right:16px}
body.chat-mode:not(:has(.customer-single)) #chat-bell{width:32px;height:32px;min-height:32px;box-shadow:none;border:0;background:transparent}
body.chat-mode:not(:has(.customer-single)) #chat-bell:before{content:"";position:absolute;inset:-6px}
body.chat-mode:not(:has(.customer-single)) .chat-tabs>.chat-settings{position:fixed;top:max(6px,env(safe-area-inset-top));right:56px;width:32px;height:32px;margin:0;z-index:2100}
body.chat-mode:not(:has(.customer-single)) .chat-tabs>.chat-settings>summary{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;box-sizing:border-box;padding:0;line-height:1;font-size:20px;border-radius:50%;color:#657b70}
body.chat-mode:not(:has(.customer-single)) .chat-tabs>.chat-settings>summary:before{content:"";position:absolute;inset:-6px}
body.chat-mode:not(:has(.customer-single)) .chat-tabs{padding-right:104px}
body.chat-mode:not(:has(.customer-single)) .chat-settings-menu{top:calc(100% + 8px);right:0;max-width:calc(100vw - 24px)}
body.chat-mode:not(:has(.customer-single)) .chat-head .chat-member-chevron{margin-left:2px}
@media(max-width:700px){body.chat-mode:not(:has(.customer-single)) #chat-bell-host{right:12px}body.chat-mode:not(:has(.customer-single)) .chat-tabs>.chat-settings{right:52px}body.chat-mode:not(:has(.customer-single)) .chat-tabs{padding-right:100px}body.chat-mode:not(:has(.customer-single)) .chat-settings-menu{right:-40px}}
@media(max-width:700px){body.chat-mode:not(:has(.customer-single)) .chat-head #chat-mute{position:fixed;top:max(6px,env(safe-area-inset-top));right:92px;z-index:2100}body.chat-mode:not(:has(.customer-single)) .chat-conversation.chat-open .chat-head{padding-top:48px;padding-right:12px!important}}
/* One bounded, rounded account menu across staff and customer portals. */
.chat-settings-menu{box-sizing:border-box;width:240px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 76px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;border-radius:20px;padding:8px;gap:4px}
.chat-settings-menu>button:not(.chat-menu-close){min-height:40px;padding:8px 10px;border-radius:12px;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.chat-settings-menu>label{padding:4px 8px;margin:0;font-size:12px}.chat-settings-menu select{min-height:36px;font-size:13px;padding:6px 8px;border-radius:10px}
.chat-settings-menu>.chat-menu-close{position:sticky;top:0;z-index:2;justify-self:end;display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:0;margin:2px 2px 4px 0;border:0;border-radius:50%;background:#eef3f0;color:#39594c}
.chat-settings-menu>.chat-menu-close:before{content:"";position:absolute;inset:-10px}
/* Chat submenus use the same small close control as account/profile popups. */
body.chat-mode #editor{border-radius:20px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box}
body.chat-mode #editor .dialog-heading h2{font-size:15px;line-height:1.4;margin:0}
body.chat-mode #editor #close-editor{position:relative;flex:0 0 24px;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#eef3f0;color:#39594c;font-size:14px;line-height:1}
body.chat-mode #editor #close-editor:before{content:"";position:absolute;inset:-10px}
.chat-send-feedback{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;line-height:1.4;color:#73857b;padding:2px 0;overflow-wrap:anywhere}.chat-send-feedback[data-state=failed],.chat-send-feedback[data-state=invalid]{color:#a24b38}.chat-send-feedback .chat-send-retry{position:relative;display:grid;place-items:center;width:28px;height:28px;min-height:28px;min-width:28px;border:0;border-radius:50%;padding:0;font-size:19px;background:#f7eee9}.chat-send-feedback .chat-send-retry:before{content:"";position:absolute;inset:-8px}.chat-send-feedback .chat-send-retry[hidden]{display:none}
.customer-login h1{font-size:20px}.customer-login #customer-forgot{font-size:12px;border:0;background:none;color:#467261;padding:4px 8px}.customer-login #recovery-start>button,.customer-login #recovery-complete>button,.customer-login #recovery-back{font-size:13px;border-radius:14px}.customer-login #recovery-status{font-size:12px}.customer-login #recovery-back{min-height:40px;padding:6px 10px;background:transparent}
