
:root { --bg:#f5f1e9; --paper:#fffdf8; --ink:#382b2b; --muted:#796967; --line:#e3d9cf; --accent:#713445; --accent-hover:#542433; --accent-soft:#f2e4e6; --green:#49634e; --caramel:#ba8753; --radius:14px; --ease:cubic-bezier(.2,.7,.3,1); font-family:'DM Sans',sans-serif; font-size:14px; color:var(--ink); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); }
body.modal-open { overflow:hidden; }
button,input,textarea,select { font:inherit; }
button { color:inherit; cursor:pointer; }
button:disabled { opacity:.55; cursor:default; }
a { color:inherit; text-decoration:none; }
button,a,input,textarea { -webkit-tap-highlight-color:transparent; }
[hidden] { display:none!important; }
:focus-visible { outline:3px solid #b87b35; outline-offset:3px; }
h1,h2,h3,h4,p { margin-top:0; }
h1 { font-family:Georgia,'Times New Roman',serif; font-size:42px; line-height:1.12; letter-spacing:-1.6px; font-weight:400; margin-bottom:12px; }
h2 { font-size:20px; line-height:1.35; letter-spacing:-.5px; font-weight:600; }
h3 { font-size:15px; line-height:1.45; font-weight:600; }
h4 { font-size:14px; }
.icon { width:20px; height:20px; stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; flex-shrink:0; }
.skip { position:fixed; top:-100px; left:20px; background:var(--accent); color:white; padding:14px; z-index:100; }
.skip:focus { top:10px; }
/* A quiet, permanent home for the store. */
.sidebar { position:fixed; inset:0 auto 0 0; width:238px; padding:42px 18px 22px; background:#592b38; background-image:linear-gradient(165deg,#6e3545 0%,#502632 80%); color:#fff7ec; display:flex; flex-direction:column; z-index:20; border-right:1px solid #43212b; }
.brand { display:flex; flex-direction:column; align-items:flex-start; padding:0 18px 34px; margin-bottom:27px; border-bottom:1px solid #e7be9638; }
.brand-small { font-size:9px; font-weight:600; letter-spacing:2.3px; margin-bottom:7px; }
.brand-name { display:block; font:italic 500 53px/.95 Georgia,serif; letter-spacing:-2.5px; }
.brand-period { color:#dba774; }
.workspace-label { margin:0 15px 14px; text-transform:uppercase; font-size:9px; font-weight:500; letter-spacing:2px; color:#d4b4ae; }
.sidebar nav { display:grid; gap:7px; }
.nav-item { width:100%; display:flex; align-items:center; gap:12px; min-height:49px; padding:12px 14px; border:1px solid transparent; border-radius:9px; background:transparent; color:#ecdcd6; font-size:13px; text-align:left; font-weight:500; transition:background 180ms var(--ease),color 180ms var(--ease),transform 180ms var(--ease); }
.nav-item:hover { background:#ffffff0d; }
.nav-item.active { background:#fff4e4; color:#622c3d; border-color:#ffe9cf; box-shadow:0 4px 16px #28121b22; }
.nav-count { margin-left:auto; min-width:21px; padding:3px 5px; border-radius:5px; background:#ffffff14; font-size:10px; text-align:center; }
.active .nav-count { background:#eadbd7; }
.sidebar-bottom { margin-top:auto; }
.store-mini { display:flex; align-items:center; gap:10px; padding:23px 4px 16px; border-top:1px solid #ffffff25; }
.store-mini strong { display:block; font-size:11px; line-height:1.6; }
.store-mini small { display:block; font-size:10px; margin-top:3px; color:#dcc5c1; }
.store-avatar,.avatar { width:38px; height:38px; display:grid; place-items:center; flex-shrink:0; border:1px solid #d5b894; background:#f3e5d1; color:var(--accent); border-radius:50%; font:italic 500 25px Georgia,serif; }
.avatar { width:32px; height:32px; font-size:21px; margin-left:12px; }
.logout { display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 7px; background:none; border:0; color:#e8d7d4; font-size:12px; }
.logout .icon { width:17px; height:17px; }
.workspace { margin-left:238px; }
.topbar { height:74px; display:flex; align-items:center; justify-content:space-between; padding:0 40px; border-bottom:1px solid var(--line); background:#fffdf8c9; }
.breadcrumb { display:flex; gap:12px; color:var(--muted); font-size:12px; }
.breadcrumb strong { font-weight:500; color:var(--ink); }
.breadcrumb span { color:#b9a9a0; }
.topbar-right { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--muted); }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--green); }
.status-dot.muted { background:#aa8d71; }
main { max-width:1510px; margin:auto; min-height:calc(100dvh - 133px); padding:36px 40px 56px; }
.page-title>div { min-width:0; }
.page-title { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:30px; }
.subtitle { color:var(--muted); font-size:13px; line-height:1.7; margin:0; }
.eyebrow { display:block; color:var(--accent); font-size:9px; font-weight:600; letter-spacing:2px; margin-bottom:11px; }
.page-footer { max-width:1510px; margin:auto; border-top:1px solid var(--line); padding:20px 40px; display:flex; justify-content:space-between; font-size:10px; color:var(--muted); }
/* Shared controls: deliberate shape, comfortable targets. */
.btn { display:inline-flex; justify-content:center; align-items:center; gap:9px; min-height:44px; border:1px solid transparent; border-radius:9px; padding:12px 18px; font-size:12px; font-weight:600; white-space:nowrap; transition:background 180ms var(--ease),border-color 180ms var(--ease),box-shadow 180ms var(--ease),transform 180ms var(--ease); }
.btn.primary { background:var(--accent); color:#fffaf2; border-color:var(--accent); box-shadow:0 3px 8px #5c2b3718,inset 0 1px #ffffff14; }
.btn.primary:hover { background:var(--accent-hover); box-shadow:0 5px 14px #5c2b3724; transform:translateY(-1px); }
.btn.secondary { background:var(--paper); border-color:#d4c5bd; color:#594640; }
.btn.secondary:hover { background:#f3ece3; border-color:#b9a49b; }
.btn.dark { background:var(--ink); color:white; }
.btn.danger { background:#a13c37; border-color:#a13c37; color:white; }
.btn.small { padding:9px 13px; font-size:11px; }
.btn.full { width:100%; }
.btn:active:not(:disabled) { transform:translateY(1px); }
.btn .icon { width:17px; height:17px; }
.text-button { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:44px; border:0; padding:7px 0; background:none; color:var(--accent); font-size:12px; font-weight:600; }
.text-button:hover { text-decoration:underline; text-underline-offset:3px; }
.text-button .icon { width:15px; height:15px; }
label { display:block; font-size:12px; font-weight:500; color:#5e4c46; margin-bottom:19px; }
input:not([type=checkbox]),textarea,select { display:block; width:100%; min-height:44px; margin-top:8px; padding:11px 12px; border:1px solid #d8cbc1; border-radius:7px; background:var(--paper); color:var(--ink); font-size:14px; }
input::placeholder,textarea::placeholder { color:#887873; opacity:1; }
textarea { resize:vertical; line-height:1.6; }
input[type=checkbox] { accent-color:var(--accent); width:18px; height:18px; flex-shrink:0; }
.switch { appearance:none; position:relative; width:38px!important; height:24px!important; min-height:24px!important; margin:0!important; padding:0!important; border:0!important; border-radius:20px!important; background:#b9afa5!important; cursor:pointer; flex-shrink:0; }
.switch:after { content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:white; box-shadow:0 1px 3px #0002; transition:transform .15s; }
.switch:checked { background:var(--green)!important; }
.switch:checked:after { transform:translateX(14px); }
.switch-label { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:17px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.form-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.inline-check { display:flex; align-items:center; gap:10px; margin:0; font-weight:400; font-size:12px; min-height:44px; line-height:1.6; }
.icon-btn { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--line); background:var(--paper); border-radius:9px; font-size:26px; color:var(--muted); }
.error { color:#a13132; font-size:12px; line-height:1.6; margin-bottom:12px; }
.error:empty { display:none; }
.note,.muted-text { color:var(--muted); font-size:12px; line-height:1.75; }
.note { margin:16px 0 0; }
.toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%); padding:16px 22px; border-radius:10px; max-width:90vw; background:#39292c; color:white; box-shadow:0 8px 28px #30232b26; font-size:13px; line-height:1.5; z-index:100; }
/* Catalog: product information carries the page. */
.catalog-summary { display:flex; flex-wrap:wrap; align-items:center; gap:12px 30px; padding:18px 0; margin-bottom:24px; border-block:1px solid var(--line); color:var(--muted); font-size:12px; }
.catalog-summary>span { display:inline-flex; align-items:center; gap:5px; }
.catalog-summary b { color:var(--accent); font-size:18px; font-weight:500; font-variant-numeric:tabular-nums; }
.summary-ready i { width:6px; height:6px; border-radius:50%; background:var(--green); margin-right:3px; }
.setup-notice { display:flex; align-items:center; gap:11px; border:1px solid #dfcfb4; border-radius:8px; background:#efe6d5; padding:14px 17px; color:#705434; margin-bottom:25px; }
.setup-notice .icon { width:18px; height:18px; }
.setup-notice p { font-size:12px; line-height:1.7; margin:0; }
.catalog-toolbar,.order-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-bottom:22px; border-bottom:0; margin-bottom:10px; }
.tabs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; padding:3px; }
.tab { display:inline-flex; align-items:center; justify-content:center; gap:8px; max-width:100%; min-height:44px; padding:10px 14px; margin:0; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--muted); font-size:13px; font-weight:500; white-space:normal; overflow-wrap:anywhere; text-align:left; transition:background 180ms,color 180ms; }
.tab.active { color:var(--accent); border-color:#dfc7c9; background:var(--paper); box-shadow:0 2px 5px #54243307; font-weight:600; }
.tab:hover { color:var(--accent); }
.tab small { display:inline-block; background:#eae2d7; color:#6f5e51; margin-left:0; flex-shrink:0; padding:2px 6px; border-radius:4px; font-size:10px; }
.tab.active small { background:#ead5d8; color:#713a46; }
.search { position:relative; width:230px; margin:0; flex-shrink:0; }
.search .icon { position:absolute; top:14px; left:12px; width:16px; height:16px; color:var(--muted); }
.search input { margin:0; padding-left:37px; font-size:12px; background:var(--paper); }
.product-list { display:grid; gap:27px; }
.category-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.category-heading h2 { min-width:0; overflow-wrap:anywhere; display:block; margin:0; font:400 26px/1.2 Georgia,serif; letter-spacing:-.5px; }
.category-heading h2>span { display:inline-block; margin-left:10px; vertical-align:middle; font:500 11px/1.6 "DM Sans",sans-serif; color:var(--muted); padding:2px 7px; border:1px solid var(--line); border-radius:5px; }
.category-heading .text-button { font-size:11px; flex-shrink:0; }
.badge { display:inline-flex; align-items:center; padding:5px 8px; border-radius:5px; background:#e8eee4; color:#436046; font-size:10px; font-weight:500; white-space:nowrap; }
.badge.pending { color:#80591f; background:#f5ead1; }
.badge.paused { color:#665f59; background:#eae5df; }
.availability-control { display:flex; align-items:center; gap:8px; margin:0; min-height:44px; color:var(--muted); font-size:10px; font-weight:400; }
.edit-button:hover { background:#f0e7dd; }
.list-caption { display:flex; justify-content:space-between; gap:12px; padding:19px 0 0; font-size:10px; color:var(--muted); }
.empty { padding:62px 25px; border:1px solid var(--line); border-radius:12px; background:var(--paper); text-align:center; }
.empty>.icon { width:34px; height:34px; color:#a08670; margin-bottom:18px; }
.empty h3 { font-size:18px; margin-bottom:10px; }
.empty p { color:var(--muted); font-size:13px; line-height:1.7; margin-bottom:0; }
/* Editor and destructive-action confirmation are native modal surfaces. */
.drawer { position:fixed; inset:0; width:min(1080px,calc(100% - 64px)); max-width:none; height:min(850px,calc(100dvh - 64px)); max-height:none; margin:auto; padding:0; border:1px solid #e4d8cc; border-radius:16px; background:var(--paper); color:var(--ink); box-shadow:0 28px 90px #24171c45; }
dialog::backdrop { background:#30232ad1; backdrop-filter:blur(3px); }
.drawer form { display:flex; flex-direction:column; height:100%; }
.drawer-header { display:flex; justify-content:space-between; align-items:center; padding:24px 28px; border-bottom:1px solid var(--line); flex-shrink:0; background:#faf4eb; }
.drawer-header .eyebrow { font-size:9px; color:var(--accent); }
.drawer-header h2 { font:400 30px/1.2 Georgia,serif; margin:0; }
.drawer-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:28px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:30px; align-content:start; }
.drawer-body section+section { border-left:1px solid var(--line); padding-left:30px; }
.section-title { display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.section-title>span { padding:6px 8px; border-radius:5px; background:var(--accent-soft); color:var(--accent); font-size:10px; }
.section-title h3 { margin:0; }
.upload-box { display:flex; align-items:center; gap:15px; padding:15px; border:1px dashed #cdb9a7; border-radius:9px; background:#f8f2e8; margin-bottom:23px; }
.upload-box strong { font-size:13px; }
.upload-box p { font-size:11px; color:var(--muted); margin:7px 0 10px; }
.photo-preview { display:grid; place-items:center; flex-shrink:0; width:77px; height:90px; border-radius:6px; overflow:hidden; background:#eae0d2; color:#947c67; }
.photo-preview img { width:100%; height:100%; object-fit:cover; }
.photo-preview .icon { width:28px; height:28px; }
.file-button { position:relative; overflow:hidden; cursor:pointer; margin:0; }
.file-button input { position:absolute; inset:0; margin:0; padding:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.file-button:focus-within { outline:3px solid #b87b35; outline-offset:3px; }
.upload-box .text-button { margin-left:8px; font-size:11px; }
.flavor-head,.flavor-row { display:grid; grid-template-columns:minmax(0,1fr) 88px 38px 36px; gap:9px; align-items:center; }
.flavor-head { font-size:10px; color:var(--muted); margin-bottom:10px; }
.flavor-row { margin-bottom:10px; }
.flavor-row input:not([type=checkbox]) { margin:0; padding:10px; font-size:13px; }
.flavor-row button { min-height:44px; min-width:36px; border:0; border-radius:6px; background:none; color:var(--muted); font-size:25px; }
.flavor-row button:hover { background:#f4e4df; color:#a13132; }
.rules-box { margin-top:24px; padding:18px; border:1px solid var(--line); border-radius:9px; background:#f4eee4; }
.rules-box h4 { margin-bottom:17px; }
.rules-box small { display:block; color:var(--muted); line-height:1.7; font-size:11px; }
.rules-box label { font-size:11px; }
.drawer-footer { flex-shrink:0; padding:17px 28px; border-top:1px solid var(--line); background:#faf6ef; }
.drawer-footer>div { display:flex; justify-content:flex-end; gap:10px; }
.confirm-dialog { width:min(440px,calc(100% - 32px)); padding:28px; border:1px solid var(--line); border-radius:16px; background:var(--paper); color:var(--ink); box-shadow:0 25px 80px #24171c45; }
.confirm-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#f2e2df; color:#9b433c; margin-bottom:20px; }
.confirm-content h2 { margin-bottom:12px; font-size:23px; }
.confirm-content p { font-size:13px; line-height:1.75; color:var(--muted); }
.confirm-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:14px; }
/* Operations and store settings. */
.panel { min-width:0; padding:28px; border:1px solid var(--line); border-radius:14px; background:var(--paper); box-shadow:0 3px 12px #49312804; scroll-margin-top:90px; }
.panel+.panel { margin-top:22px; }
.panel h2 { font:400 25px/1.25 Georgia,serif; letter-spacing:-.4px; margin-bottom:10px; }
.panel .subtitle { font-size:12px; margin-bottom:25px; }
.settings-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr); gap:24px; align-items:start; }
.settings-grid>*,.settings-grid form { min-width:0; }
.settings-actions { display:flex; gap:17px; align-items:center; margin-top:22px; }
.settings-actions small { color:var(--muted); }
.settings-nav { position:sticky; top:0; z-index:5; display:flex; flex-wrap:wrap; gap:7px; padding:12px 3px; margin:0 0 18px; background:var(--bg); }
.settings-nav button { min-height:44px; padding:10px 14px; border:1px solid #d8ccc0; border-radius:7px; background:var(--paper); color:#684c45; font-size:12px; white-space:nowrap; }
.settings-nav button:hover,.settings-nav button.active { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.key-label { margin-top:22px; }
.button-setting { margin-top:18px; }
.connection-box { padding:24px 17px; border:1px solid #dfd1bf; border-radius:9px; background:#f4ede2; text-align:center; }
.connection-state { font-size:13px; font-weight:600; margin-bottom:16px; }
.connection-box>.icon { width:30px; height:30px; color:#8c775f; margin:5px 0; }
.connection-box p { color:#74634f; font-size:12px; line-height:1.7; margin-top:15px; }
.connection-box img { display:block; width:220px; max-width:100%; margin:12px auto; border-radius:7px; }
.tip-card { display:flex; align-items:flex-start; gap:12px; border:1px solid #e0d3bf; background:#eee5d5; padding:20px; border-radius:10px; margin-top:22px; }
.tip-card>.icon { width:18px; height:18px; color:#8b6b46; }
.tip-card strong { display:block; font-size:12px; margin-bottom:7px; }
.tip-card p { margin:0; font-size:12px; line-height:1.75; color:#705e47; }
.panel-heading { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.panel-heading h2 { margin:0; }
.panel-heading .eyebrow { margin-bottom:4px; font-size:9px; }
.voice-emblem { display:grid; place-items:center; width:44px; height:44px; border:1px solid #dfc7c9; border-radius:12px; background:var(--accent-soft); color:var(--accent); font:26px Georgia,serif; }
.voice-panel,.notification-panel { margin-top:22px; }
.voice-option { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0; padding:16px 0; border-block:1px solid var(--line); min-height:70px; cursor:pointer; }
.voice-option strong { display:block; font-size:13px; font-weight:600; }
.voice-option small { display:block; color:var(--muted); font-size:11px; line-height:1.5; margin-top:6px; }
#voice-feedback:empty,#voice-sample-feedback:empty { display:none; }
#voice-details { margin-top:20px; }
.voice-name { font-size:14px; font-weight:600; margin:17px 0; overflow-wrap:anywhere; }
.voice-name small { display:block; font-size:11px; font-weight:400; color:var(--muted); margin-top:5px; }
.audio-label { margin-bottom:9px; }
audio { display:block; width:100%; max-width:100%; min-width:0; height:44px; }
.options-preview { background:#faf6ef; }
.option-labels { border:1px solid #d9cdbf; border-radius:9px; overflow:hidden; margin-top:19px; background:var(--paper); }
.option-labels span { display:flex; align-items:center; justify-content:space-between; padding:14px; font-size:12px; color:var(--accent); line-height:1.5; }
.option-labels span+span { border-top:1px solid var(--line); }
.option-labels i { font-style:normal; }
.notification-option { margin-top:12px; }
.notification-entry { padding:16px 0; border-top:1px solid var(--line); }
.notification-entry p { font-size:11px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; margin:9px 0; }
.notification-entry small { font-size:10px; color:var(--muted); }
.order-card { padding:26px; background:var(--paper); border:1px solid var(--line); border-left:3px solid #b48559; border-radius:12px; margin-bottom:18px; box-shadow:0 3px 14px #49312805; }
.order-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.order-top small { font-size:10px; color:var(--muted); letter-spacing:.6px; }
.order-top h3 { margin:7px 0 0; font-size:17px; }
.order-details { display:grid; grid-template-columns:1fr 1fr; gap:22px; border-top:1px solid var(--line); padding-top:18px; margin:20px 0; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.order-details strong { font-weight:600; }
.order-details p { margin:3px 0 0; color:var(--muted); }
.order-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.order-bottom>b { font-size:21px; font-variant-numeric:tabular-nums; }
.order-bottom>div { display:flex; gap:9px; flex-wrap:wrap; }
.handoff-row { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--line); padding:17px 0; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
/* Inbox: clear division between customer messages and team replies. */
.inbox-layout { display:grid; grid-template-columns:290px minmax(0,1fr); height:min(740px,74dvh); min-height:470px; background:var(--paper); border:1px solid #d8c8bd; border-radius:16px; overflow:hidden; box-shadow:0 8px 28px #50352908; }
.inbox-sidebar { min-width:0; display:flex; flex-direction:column; border-right:1px solid #dfd2c8; background:var(--paper); }
.inbox-list-title { display:flex; align-items:center; justify-content:space-between; padding:23px 18px 17px; }
.inbox-list-title h2 { font:400 23px/1.25 Georgia,serif; letter-spacing:-.5px; margin:0; }
.inbox-list-title>span { color:var(--muted); font-size:11px; }
.inbox-search { width:auto; margin:0 15px 16px; }
.thread-list { overflow-y:auto; flex:1; min-height:0; }
.thread { display:flex; align-items:flex-start; gap:11px; width:100%; padding:18px 15px; border:0; border-bottom:1px solid var(--line); background:var(--paper); text-align:left; }
.thread:hover { background:#f6eee4; }
.thread.selected { background:#f1e3e3; box-shadow:inset 3px 0 var(--accent); }
.contact-avatar { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; background:#eee2d2; color:#7a6149; border-radius:50%; font-size:13px; font-weight:600; }
.thread-copy { min-width:0; flex:1; }
.thread-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; font-size:12px; margin-bottom:7px; }
.thread-copy>span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:var(--muted); }
.thread-copy small { display:block; color:var(--muted); font-size:9px; line-height:1.6; margin-top:8px; }
.unread-count { min-width:19px; padding:3px 5px; border-radius:10px; background:var(--accent); color:white; text-align:center; font-size:10px; }
.thread-empty { padding:30px 20px; font-size:12px; line-height:1.7; }
.thread-empty p { margin-top:9px; color:var(--muted); }
.inbox-footnote { padding:14px 16px; margin:0; border-top:1px solid var(--line); color:var(--muted); font-size:10px; line-height:1.6; }
.inbox-conversation { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; background-color:#f4ede3; background-image:radial-gradient(#bca18424 .7px,transparent .7px); background-size:12px 12px; }
.inbox-placeholder { margin:auto; padding:35px; max-width:430px; text-align:center; }
.inbox-placeholder>.icon { box-sizing:content-box; width:35px; height:35px; padding:24px; border:1px solid #d5b79b; outline:7px solid #f5ebe0; border-radius:28px 28px 12px 12px; color:var(--accent); background:#fcf6ed; margin-bottom:28px; }
.inbox-placeholder h2 { font:400 32px/1.15 Georgia,serif; letter-spacing:-.8px; }
.inbox-placeholder p { font-size:12px; line-height:1.8; color:var(--muted); margin-bottom:23px; }
.conversation-header { display:flex; align-items:center; gap:12px; flex-shrink:0; padding:12px 20px; border-bottom:1px solid var(--line); background:var(--paper); box-shadow:0 2px 7px #4c2b3004; }
.contact-heading { flex:1; min-width:0; overflow-wrap:anywhere; }
.contact-heading h2 { font-size:14px; margin:0 0 4px; }
.contact-heading p { color:var(--muted); font-size:11px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-mode { flex-shrink:0; background:#f9f6ef; color:var(--muted); font-size:11px; line-height:1.6; padding:7px 20px; border-bottom:1px solid var(--line); }
.chat-messages { display:flex; flex-direction:column; flex:1; min-height:0; gap:13px; overflow-y:auto; overscroll-behavior:contain; padding:22px; }
.message { white-space:pre-wrap; overflow-wrap:anywhere; max-width:88%; padding:13px 16px; border:1px solid #e5dccc; border-radius:3px 12px 12px; background:var(--paper); font-size:13px; line-height:1.7; }
.message.incoming,.message.bot { align-self:flex-start; }
.message.outgoing,.message.user { align-self:flex-end; background:#e3e8d9; border-color:#d6dec9; border-radius:12px 3px 12px 12px; }
.message footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:8px; font-size:9px; color:#66705c; }
.message-status.failed { color:#a13132; }
.message-status.read { color:#316174; }
.message audio { width:280px; max-width:100%; margin-top:10px; }
.voice-message-status { display:block; color:#526248; font-size:10px; margin-top:9px; white-space:normal; }
.chat-form { display:flex; align-items:flex-end; gap:9px; padding:13px; border-top:1px solid var(--line); background:var(--paper); }
.chat-form input,.chat-form textarea { margin:0; }
.chat-form textarea { min-height:50px; max-height:150px; resize:vertical; }
.composer-note { padding:10px 15px 0; background:var(--paper); font-size:10px; line-height:1.6; color:var(--muted); }
.composer-note:empty { padding:0; }
.inbox-back { display:none; font-size:23px; min-width:44px; }
/* Staff entrance. The wordmark is the only ornament. */
.login-screen { min-height:100dvh; display:grid; grid-template-columns:1fr 1fr; background:var(--paper); }
.login-brand-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; padding:60px; background:#63313c; color:#fff5e6; overflow:hidden; }
.login-brand-panel:after { content:''; position:absolute; inset:25px; border:1px solid #f0d5b72b; border-radius:200px 200px 12px 12px; pointer-events:none; }
.login-brand { display:flex; flex-direction:column; align-items:center; }
.login-brand .brand-name { font-size:96px; letter-spacing:-5px; }
.login-brand .brand-small { font-size:12px; letter-spacing:3.6px; margin-bottom:13px; }
.login-brand-caption { font-size:12px; color:#e0c9c1; letter-spacing:.5px; margin:32px 0 0; }
.login-form { width:calc(100% - 64px); max-width:370px; justify-self:center; align-self:center; padding:30px 0; }
.login-form .eyebrow { color:var(--accent); margin-bottom:20px; }
.login-form h1 { font-size:29px; margin-bottom:13px; }
.login-form>p { font-size:13px; line-height:1.8; color:var(--muted); margin-bottom:32px; }
.login-form label { margin-top:28px; }
.login-form .btn { width:100%; justify-content:space-between; margin:5px 0 25px; }
.login-form>small { display:block; color:var(--muted); font-size:11px; }
.boot-overlay { position:fixed; inset:0; z-index:80; display:flex; flex-direction:column; gap:22px; align-items:center; justify-content:center; background:var(--bg); color:var(--accent); }
.boot-overlay p { color:var(--muted); font-size:12px; }
.loading-state { display:flex; align-items:center; justify-content:center; gap:12px; min-height:170px; color:var(--muted); font-size:13px; }
.loading-state:before { content:''; width:19px; height:19px; border:2px solid #e1cecd; border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
.skeleton { border-radius:8px; background:#e7dfd4; min-height:20px; animation:pulse 1.5s ease-in-out infinite; }
@keyframes spin { to { transform:rotate(360deg); }
}
@keyframes pulse { 50% { opacity:.5; }
}
/* Tablet keeps the operational hierarchy; the editor becomes one column. */
@media (max-width:1200px) { .sidebar { width:216px; padding-inline:13px; }
.workspace { margin-left:216px; }
main { padding:30px 26px 45px; }
.topbar,.page-footer { padding-inline:26px; }
.inbox-layout { grid-template-columns:240px minmax(0,1fr); }
.settings-grid { grid-template-columns:1fr; }
.settings-grid>aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.settings-grid>aside>.panel,.settings-grid>aside>.tip-card { margin-top:0; }
}
@media (max-width:1000px) {
.catalog-toolbar { flex-wrap:wrap; gap:12px; padding-bottom:14px; }
.catalog-toolbar .tabs { width:100%; }
.search { width:100%; margin:0; }
.inbox-search { width:auto; margin:0 15px 16px; }
.drawer { width:min(690px,calc(100% - 40px)); }
.drawer-body { display:block; }
.drawer-body section+section { border-left:0; border-top:1px solid var(--line); padding:25px 0 0; margin-top:12px; }
.conversation-header { flex-wrap:wrap; gap:9px; padding:14px; }
.settings-grid>aside { display:block; }
.settings-grid>aside>.panel,.settings-grid>aside>.tip-card { margin-top:20px; }
.settings-grid>aside>:first-child { margin-top:0; }
}
/* Four thumb-accessible tabs remain visible on every phone screen. */
@media (max-width:760px) { .sidebar { position:relative; width:100%; height:83px; padding:17px 20px; display:block; }
.brand { display:inline-flex; padding:0; margin:0; border:0; }
.brand-small { font-size:7px; letter-spacing:1.8px; margin-bottom:5px; }
.brand-name { font-size:35px; letter-spacing:-1.8px; }
.workspace-label,.store-mini { display:none; }
.sidebar-bottom { position:absolute; top:21px; right:16px; }
.logout { font-size:11px; gap:7px; }
.sidebar nav { position:fixed; inset:auto 0 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; padding:7px 8px calc(7px + env(safe-area-inset-bottom)); border-top:1px solid #d8c5ba; background:#fffcf7; box-shadow:0 -4px 18px #402d2410; z-index:30; }
.nav-item { position:relative; min-height:57px; padding:7px 2px; flex-direction:column; justify-content:center; gap:5px; border-radius:8px; color:#78665f; font-size:10px; text-align:center; }
.nav-item .icon { width:20px; height:20px; }
.nav-item.active { background:#f0e1e1; color:#713a46; box-shadow:none; }
.nav-item:hover { background:#f4eae3; }
.nav-count { position:absolute; right:calc(50% - 29px); top:1px; min-width:17px; padding:2px 4px; font-size:8px; background:#e9e0d5; }
.active .nav-count { background:#713a46; color:white; }
.workspace { margin-left:0; padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
.topbar { height:43px; padding:0 20px; }
.breadcrumb { font-size:10px; gap:7px; }
.topbar-right { font-size:10px; gap:6px; }
.topbar-right .avatar { display:none; }
main { padding:27px 20px 35px; min-height:calc(100dvh - 250px); }
h1 { font-size:33px; letter-spacing:-1px; }
.page-title { gap:14px; align-items:flex-start; margin-bottom:22px; }
.page-title .btn { padding:11px 13px; font-size:11px; gap:6px; }
.page-title .btn .icon { width:15px; height:15px; }
.subtitle { font-size:12px; line-height:1.7; }
input:not([type=checkbox]),textarea,select,.search input,.flavor-row input:not([type=checkbox]) { font-size:16px; }
.catalog-summary { flex-wrap:wrap; gap:10px 17px; font-size:11px; padding-bottom:20px; }
.catalog-summary b { font-size:12px; }
.setup-notice { align-items:flex-start; padding:13px; gap:9px; margin-bottom:22px; }
.setup-notice .icon { margin-top:3px; }
.setup-notice p { font-size:11px; }
.catalog-toolbar { margin-bottom:20px; }
.catalog-toolbar .search { order:-1; }
.tabs { gap:8px; }
.tab { font-size:12px; }
.search input { min-height:46px; }
.search .icon { top:15px; }
.category-heading h2 { font-size:17px; }
.category-heading .text-button { font-size:10px; }
.category-heading .text-button .icon { width:13px; height:13px; }
.product-list { gap:25px; }
.badge { font-size:9px; padding:4px 6px; }
.availability-control { min-height:44px; font-size:9px; }
.availability-control>span { display:none; }
.list-caption { flex-wrap:wrap; gap:7px; font-size:10px; }
.page-footer { padding:18px 20px; font-size:10px; }
.page-footer span:last-child { display:none; }
.drawer { width:100%; height:100dvh; margin:0; border:0; border-radius:0; }
.drawer-header { padding:18px 20px; }
.drawer-header h2 { font-size:23px; }
.drawer-body { padding:24px 20px; }
.drawer-footer { padding:14px 20px calc(14px + env(safe-area-inset-bottom)); }
.drawer-footer>div { gap:12px; }
.drawer-footer .btn { flex:1; padding-inline:12px; }
.flavor-head,.flavor-row { grid-template-columns:minmax(0,1fr) 80px 38px 36px; gap:7px; }
.flavor-head { font-size:9px; }
.rules-box { padding:16px 12px; }
.rules-box label { font-size:10px; }
.form-grid { gap:13px; }
.form-grid.three { gap:8px; }
.panel { padding:23px 20px; }
.settings-nav { position:static; padding:10px 3px; margin-bottom:16px; }
.settings-actions { flex-direction:column; align-items:stretch; gap:13px; }
.settings-actions .btn { width:100%; }
.order-toolbar .tabs { gap:8px; }
.order-card { padding:20px; }
.order-details { grid-template-columns:1fr; gap:16px; }
.order-bottom { flex-wrap:wrap; }
.order-bottom>div { width:100%; }
.order-bottom .btn { flex:1; padding-inline:10px; font-size:11px; }
.inbox-layout { display:block; height:calc(100dvh - 310px); min-height:420px; max-height:760px; }
.inbox-sidebar,.inbox-conversation { height:100%; }
.inbox-conversation { display:none; }
.inbox-layout.has-selection .inbox-sidebar { display:none; }
.inbox-layout.has-selection .inbox-conversation { display:flex; }
.inbox-back { display:inline-flex; }
.conversation-header { gap:7px; padding:12px 10px; flex-wrap:nowrap; }
.conversation-header .contact-avatar { display:none; }
.conversation-header .btn { max-width:113px; white-space:normal; padding:8px; font-size:10px; }
.conversation-mode { padding:10px 15px; }
.chat-messages { padding:16px; }
.message { max-width:95%; font-size:12px; }
.chat-form { padding:10px; }
.chat-form .btn { padding:12px; }
.message audio { width:220px; }
.inbox-placeholder { padding:26px; }
.toast { bottom:calc(88px + env(safe-area-inset-bottom)); width:max-content; max-width:calc(100% - 32px); font-size:12px; }
.login-screen { display:flex; flex-direction:column; justify-content:flex-start; min-height:100dvh; }
.login-brand-panel { width:100%; min-height:230px; padding:47px 25px; }
.login-brand-panel:after { inset:14px; border-radius:90px 90px 7px 7px; }
.login-brand .brand-name { font-size:63px; letter-spacing:-3px; }
.login-brand .brand-small { font-size:9px; letter-spacing:2.6px; margin-bottom:9px; }
.login-brand-caption { margin-top:22px; font-size:10px; }
.login-form { width:calc(100% - 48px); padding:38px 0; margin:auto; }
.login-form h1 { font-size:27px; }
.login-form .eyebrow { margin-bottom:14px; }
.confirm-dialog { padding:24px; max-height:calc(100dvh - 32px); overflow-y:auto; }
.confirm-actions .btn { flex:1; }
}
@media (max-width:360px) { main { padding-inline:14px; }
.confirm-actions { flex-direction:column-reverse; }
.confirm-actions .btn { width:100%; white-space:normal; }
.nav-item { font-size:9px; }
.page-title { flex-wrap:wrap; }
.flavor-head,.flavor-row { grid-template-columns:minmax(0,1fr) 68px 38px 30px; gap:6px; }
.drawer-body { padding-inline:15px; }
}
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Atendimento: independent scrolling keeps the customer and reply controls in view. */
body[data-view="chat"] .page-footer { display:none; }
body[data-view="chat"] main { max-width:none; padding-bottom:24px; }
.inbox-layout { grid-template-columns:clamp(270px,25%,320px) minmax(0,1fr); height:calc(100dvh - 240px); min-height:420px; }
.inbox-list-title { padding:18px 18px 13px; }
.inbox-list-title h2 { font:600 16px/1.4 'DM Sans',sans-serif; letter-spacing:-.3px; }

.inbox-list-title>span { border-radius:6px; background:var(--accent-soft); padding:4px 8px; color:var(--accent); }
.inbox-search { margin:0 16px 12px; }
.inbox-search input { font-size:14px; }
.inbox-filters { display:flex; flex-wrap:wrap; gap:6px; padding:0 16px 16px; border-bottom:1px solid var(--line); }
.inbox-filters button { min-height:38px; padding:8px 11px; border:1px solid var(--line); border-radius:7px; background:var(--paper); color:var(--muted); font-size:12px; }
.inbox-filters button[aria-pressed="true"] { background:var(--accent-soft); border-color:#bb969f; color:var(--accent); font-weight:600; }
.thread { width:calc(100% - 16px); margin:3px 8px; padding:12px 10px; align-items:center; gap:11px; border:1px solid transparent; border-radius:11px; }
.thread.selected { background:#f1e8e8; border-color:#dfcdd1; box-shadow:inset 3px 0 var(--accent); }
.thread-list { padding:5px 0; }
.contact-avatar { width:42px; height:42px; background:#eee1e2; color:var(--accent); font-size:15px; }
.thread-copy>.thread-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; white-space:normal; }
.thread-heading strong { color:var(--ink); min-width:0; font-size:14px; margin:0; white-space:nowrap; }
.thread-heading time { flex-shrink:0; font-size:10px; color:var(--muted); }
.thread-copy>span:not(.thread-heading) { font-size:12px; margin-top:3px; }
.thread-copy small { font-size:10px; margin-top:4px; }
.thread-list { overscroll-behavior:contain; }


.contact-heading h2 { font-size:16px; }
.contact-heading p { font-size:12px; }

.conversation-mode[data-mode="human"] { background:var(--accent-soft); color:var(--accent); }
.chat-messages { gap:9px; padding:20px 28px; }
.message-day { align-self:center; flex-shrink:0; margin:5px 0 10px; padding:6px 13px; border:1px solid #e0d2c2; border-radius:20px; background:#faf6ef; color:var(--muted); font-size:10px; font-weight:500; text-align:center; }
.message { flex-shrink:0; max-width:min(76%,620px); font-size:14px; line-height:1.6; padding:12px 15px; box-shadow:0 1px 2px #342a2906; }
.message.outgoing { background:#e6f1e9; border-color:#d2e3d7; border-radius:14px 4px 14px 14px; }
.message.incoming { border-radius:4px 14px 14px; border-color:#e7dfd5; }
.message footer { font-size:10px; color:var(--muted); }
.composer-note { flex-shrink:0; padding:12px 18px 0; font-size:11px; }
.chat-form { flex-shrink:0; padding:12px 18px 16px; border-top:0; gap:12px; }
.chat-form textarea { min-height:48px; max-height:136px; resize:none; font-size:15px; line-height:1.5; }
.chat-form .btn { width:48px; min-height:48px; flex-shrink:0; padding:12px; }
.latest-messages { position:absolute; bottom:112px; right:22px; z-index:2; min-height:40px; padding:9px 14px; border:1px solid #d3b6bd; border-radius:20px; color:var(--accent); background:var(--paper); box-shadow:0 3px 12px #342a291a; font-size:12px; }
@media (max-width:1000px) and (min-width:761px) {
 .inbox-layout { grid-template-columns:240px minmax(0,1fr); }
 .conversation-header { flex-wrap:wrap; padding:14px; gap:8px; }
 .conversation-header .contact-avatar { display:none; }
 .conversation-header .btn { width:100%; }
 .thread { padding:14px 10px; gap:8px; }
 .thread .contact-avatar { width:32px; height:32px; }
 .thread-heading strong { font-size:12px; }
 .inbox-filters { padding-inline:10px; gap:4px; }
 .inbox-filters button { padding-inline:7px; }
 .message { max-width:95%; }
}
@media (max-width:760px) {
 .keyboard-hint { display:none; }
 body[data-view="chat"] .sidebar { height:0; padding:0; }
 body[data-view="chat"] .sidebar>.brand,body[data-view="chat"] .sidebar-bottom { display:none; }
 body[data-view="chat"] main { padding:16px 12px 12px; min-height:0; }
 body[data-view="chat"] .page-title { margin-bottom:12px; }
 body[data-view="chat"] .page-title h1 { font-size:23px; margin:0; }
 body[data-view="chat"] .page-title .subtitle { display:none; }
 .inbox-layout { height:calc(100dvh - 185px - env(safe-area-inset-bottom)); min-height:300px; max-height:none; }
 .inbox-filters button { min-height:44px; }
 .inbox-footnote { font-size:10px; padding:10px 16px; }
 .conversation-header { padding:12px 10px; gap:8px; }
 .contact-heading h2 { font-size:14px; }
 .conversation-header .btn { font-size:11px; max-width:110px; }
 .conversation-mode { font-size:11px; padding:9px 14px; }
 .chat-messages { padding:14px; }
 .message { max-width:92%; font-size:14px; }
 .composer-note { font-size:10px; padding:10px 12px 0; }
 .chat-form { padding:10px 12px 12px; gap:8px; }
 .chat-form textarea { font-size:16px; }
 .latest-messages { right:14px; bottom:112px; }
}

/* Photos, voice notes and attachments share the same conversation tools. */
.composer-tool { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; margin:0 0 2px; padding:10px; border:1px solid transparent; border-radius:50%; background:transparent; color:#546560; cursor:pointer; }
.composer-tool:hover { background:#e8eeea; color:#075e54; }
.composer-tool .icon { width:24px; height:24px; stroke-width:1.8; }
.composer-tool:disabled,.attachment-trigger:has(input:disabled) { opacity:.45; cursor:not-allowed; }
.composer-tool:focus-within { outline:2px solid #128c7e; outline-offset:2px; }
.attachment-trigger input[type=file] { position:absolute; inset:0; width:100%; height:100%; min-height:0; margin:0; padding:0; opacity:0; cursor:pointer; }
.chat-form textarea { flex:1; min-width:0; border-radius:24px; padding:12px 17px; border-color:#dce3de; background:#fff; }
.chat-form textarea:focus { border-color:#128c7e; box-shadow:0 0 0 3px #128c7e15; outline:none; }
.chat-form button:focus-visible,.open-once:focus-visible,#send-attachment:focus-visible,#stop-recording:focus-visible { outline:2px solid #128c7e; outline-offset:3px; }
.chat-form button[type=submit] { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; min-height:48px; padding:12px; border:0; border-radius:50%; background:#008069; color:#fff; box-shadow:0 2px 5px #075e541c; }
.chat-form button[type=submit]:hover { background:#006e5a; transform:none; box-shadow:0 3px 8px #075e5426; }
.chat-form button[type=submit] .icon { width:23px; height:23px; }
.chat-form button[type=submit]:disabled { background:#7d9b91; box-shadow:none; }
#send-attachment,#stop-recording { background:#008069; border-color:#008069; border-radius:24px; }
#send-attachment:hover,#stop-recording:hover { background:#006e5a; border-color:#006e5a; transform:none; }
.recording-bar { flex-shrink:0; display:flex; align-items:center; gap:12px; padding:14px 18px; background:var(--accent-soft); color:var(--accent); border-top:1px solid #ddc5cb; }
.recording-bar strong { flex:1; font-size:13px; }
.recording-dot { flex-shrink:0; width:9px; height:9px; background:#ad3737; border-radius:50%; animation:pulse 1s infinite; }
.chat-form.is-recording { display:none; }
.message-photo { position:relative; display:block; max-width:100%; width:320px; padding:0; margin:0 0 8px; border:0; border-radius:8px; overflow:hidden; background:#e5d9cc; color:var(--ink); text-align:left; }
.message-photo img { display:block; width:100%; max-height:340px; object-fit:cover; }
.message-photo span { display:block; padding:9px 12px; background:var(--paper); font-size:11px; }
.message-photo:hover span { color:var(--accent); }
.message-audio>span { display:block; font-size:12px; font-weight:600; }
.message-audio audio { display:block; width:300px; max-width:100%; height:44px; margin:8px 0; }
.media-error,.media-unavailable { display:block; font-size:12px; line-height:1.6; color:var(--muted); }
.protected-media { display:flex; align-items:center; gap:12px; max-width:300px; padding:4px 0; white-space:normal; }
.protected-media strong { font-size:13px; }
.protected-media p { font-size:12px; color:var(--muted); margin:4px 0 0; }
.once-symbol { display:grid; place-items:center; flex-shrink:0; width:35px; height:35px; border:1.5px dashed #7d9990; color:#075e54; border-radius:50%; font-weight:600; }
.attachment-dialog,.media-viewer { width:min(560px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:0; border:1px solid var(--line); border-radius:14px; background:var(--paper); color:var(--ink); box-shadow:0 24px 80px #24171c45; }
.attachment-dialog[open] { display:flex; flex-direction:column; }
.attachment-dialog>header,.media-viewer>header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; padding:20px 24px; border-bottom:1px solid var(--line); }
.attachment-dialog h2,.media-viewer h2 { margin:0; font-size:21px; }
.attachment-body { overflow-y:auto; min-height:0; padding:20px 24px; }
.attachment-media { background:#f2ebe2; border:1px solid var(--line); border-radius:10px; overflow:hidden; padding:12px; text-align:center; }
.attachment-media img { display:block; max-width:100%; max-height:32dvh; margin:auto; object-fit:contain; border-radius:6px; }
.attachment-media audio { display:block; width:100%; }
.attachment-file { font-size:11px; color:var(--muted); margin:10px 0 20px; overflow-wrap:anywhere; }
.attachment-once { display:flex; align-items:flex-start; gap:10px; padding:15px; background:#f7f1eb; border:1px solid var(--line); border-radius:9px; margin:0; }
.attachment-once input { margin:2px 0 0; }
.attachment-once strong { display:block; margin-bottom:5px; font-size:13px; }
.attachment-once small { display:block; color:var(--muted); font-size:11px; line-height:1.6; }
.attachment-dialog>footer { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; padding:16px 24px; border-top:1px solid var(--line); background:#faf6f0; }
.attachment-dialog>footer p { font-size:11px; color:var(--muted); margin:0; }
#attachment-error { margin:14px 0 0; }
.media-viewer { width:min(1040px,calc(100vw - 32px)); }
.media-viewer-content { padding:16px; background:#342a29; }
.media-viewer-content img { display:block; margin:auto; max-width:100%; max-height:calc(100dvh - 170px); object-fit:contain; }
@media (max-width:760px) {
 .chat-form { display:grid; grid-template-columns:44px 44px minmax(0,1fr) 44px; gap:7px; align-items:end; }
 .chat-form textarea { grid-column:1/-1; grid-row:1; }
 .chat-form .attachment-trigger { grid-column:1; grid-row:2; }
 .chat-form #record-audio { grid-column:2; grid-row:2; }
 .chat-form button[type=submit] { grid-column:4; grid-row:2; width:44px; height:44px; min-height:44px; }
 .composer-tool { width:44px; height:44px; flex-basis:44px; margin-bottom:0; }
 .recording-bar { gap:8px; padding:12px; flex-wrap:wrap; }
 .recording-bar .btn { padding-inline:10px; }
 .message-photo { width:260px; }
 .message-audio audio { width:240px; }
 .attachment-dialog>header,.media-viewer>header { padding:16px; }
 .attachment-body { padding:16px; }
 .attachment-dialog>footer { padding:14px 16px; flex-wrap:wrap; }
 .attachment-dialog>footer .btn { width:100%; }
 .attachment-dialog input:not([type=checkbox]),.attachment-dialog textarea { font-size:16px; }
}


/* Conversation identity, context and the in-thread search shelf. */
.contact-avatar[data-tone="1"] { background:#e9e3ce; color:#6d603d; }
.contact-avatar[data-tone="2"] { background:#dfe9df; color:#49624e; }
.contact-avatar[data-tone="3"] { background:#e4e2ee; color:#635975; }
.thread.has-unread .thread-preview { color:var(--ink); font-weight:500; }
.thread-copy .thread-mode { display:inline-flex; align-items:center; gap:5px; margin-top:8px; color:var(--muted); font-size:9px; }
.thread-mode::before { content:''; width:5px; height:5px; border-radius:50%; background:#809079; }
.thread-mode[data-mode="human"] { color:var(--accent); }
.thread-mode[data-mode="human"]::before { background:var(--accent); }
.conversation-search { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 18px; border-bottom:1px solid var(--line); background:#faf4eb; flex-shrink:0; }
.conversation-search label { flex:1; min-width:110px; margin:0; }
.conversation-search input { margin:0; font-size:13px; min-height:44px; }
.conversation-search output { color:var(--muted); font-size:10px; white-space:nowrap; }
.conversation-search-actions { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.conversation-search .icon-btn { flex:0 0 36px; width:36px; min-height:44px; height:44px; font-size:18px; }
#conversation-search-toggle { flex-shrink:0; }
#conversation-search-toggle[aria-expanded="true"] { color:var(--accent); background:var(--accent-soft); border-color:#cba1ac; }
.message.search-match { border-color:#bd9458; box-shadow:0 0 0 2px #bd945820; }
.message.search-current { outline:2px solid #a37736; outline-offset:3px; background:#fff1cc; }
.inbox-illustration { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:15px; width:126px; min-height:145px; margin:0 auto 28px; border:1px solid #cbaa86; border-radius:64px 64px 12px 12px; outline:8px solid #f6eee3; background:#fffaf1; color:var(--accent); transform:rotate(-4deg); box-shadow:7px 7px 0 #dfc9ad45; }
.inbox-illustration .icon { width:37px; height:37px; stroke-width:1.2; }
.inbox-illustration span { font:italic 25px/1 Georgia,serif; }
.placeholder-kicker { display:block; font-size:9px; font-weight:600; letter-spacing:2px; color:var(--accent); margin-bottom:12px; }
@media (max-width:760px) {
 .conversation-search { padding:8px 10px; gap:6px; }
 .conversation-search label { flex-basis:100%; }
 .conversation-search input { font-size:16px; }
 .conversation-search output { margin-right:auto; }
 #conversation-search-toggle { width:36px; border:0; background:transparent; }
 body[data-view="chat"] .page-title .eyebrow { font-size:8px; margin-bottom:4px; }
}
body[data-view="chat"].chat-short .conversation-search { padding-block:4px; }
body[data-view="chat"].chat-short .conversation-search label { flex-basis:auto; min-width:90px; }
body[data-view="chat"].chat-short .conversation-search output { display:none; }

/* Menu cards: each item has its own photograph, price and availability controls. */
.category-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.product-columns { display:none; }
.product-card { display:grid; grid-template-columns:88px minmax(0,1fr); align-content:start; gap:18px; min-width:0; padding:22px; border:1px solid var(--line); border-radius:14px; background:var(--paper); box-shadow:0 3px 12px #49312804; transition:border-color 180ms var(--ease),box-shadow 180ms var(--ease),transform 180ms var(--ease); }
.product-card:hover { border-color:#cbb3a2; box-shadow:0 6px 20px #4931280a; transform:translateY(-2px); }
.product-card.paused { background:#f0ece5; }
.product-image { width:88px; height:94px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; overflow:hidden; border:1px solid #e3d3bf; border-radius:10px; background:#f0e6d6; color:#947251; }
.product-image .icon { width:27px; height:27px; stroke-width:1.3; }
.product-image span { font-size:9px; color:#796755; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform 220ms var(--ease); }
.product-card:hover .product-image img { transform:scale(1.04); }
.product-info { min-width:0; align-self:center; }
.product-info h3 { overflow-wrap:anywhere; font-size:16px; font-weight:600; line-height:1.4; margin:0 0 7px; }
.product-info p { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; font-size:12px; line-height:1.65; color:var(--muted); margin:0 0 7px; }
.product-detail { color:var(--muted); font-size:10px; line-height:1.6; }
.product-controls { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-top:1px solid var(--line); padding-top:16px; }
.product-price { margin-right:auto; font-size:20px; font-weight:500; letter-spacing:-.5px; color:var(--accent); font-variant-numeric:tabular-nums; white-space:nowrap; }
.product-price small { display:block; white-space:normal; letter-spacing:0; font-size:10px; font-weight:400; color:var(--muted); margin-top:5px; }
.product-availability { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.availability-control>span { display:none; }
.edit-button { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:9px 11px; background:var(--paper); border:1px solid #d8c9c0; border-radius:8px; font-size:11px; color:#654b42; transition:background 180ms,border-color 180ms; }
.edit-button .icon { width:14px; height:14px; }
@media (max-width:1250px) { .category-products { grid-template-columns:1fr; } }
@media (max-width:760px) {
 .product-card { grid-template-columns:76px minmax(0,1fr); gap:16px; padding:18px; }
 .product-image { width:76px; height:86px; }
 .product-info h3 { font-size:15px; }
 .product-price { font-size:18px; }
 .product-controls { gap:10px; padding-top:14px; }
 .product-detail { font-size:9px; }
}
@media (max-width:360px) {
 .product-card { padding:15px; gap:12px; grid-template-columns:62px minmax(0,1fr); }
 .product-image { width:62px; height:76px; }
 .product-controls { gap:8px; }
 .product-price { font-size:16px; }
 .edit-button { padding:9px; }
 .edit-button span { display:none; }
}
/* Small moments of motion follow the action, without moving the chat viewport. */
input:not([type=checkbox]),textarea,select { transition:border-color 180ms,box-shadow 180ms; }
input:not([type=checkbox]):focus,textarea:focus,select:focus { border-color:#a67480; box-shadow:0 0 0 3px #7134450b; }
.thread,.icon-btn,.composer-tool { transition:background 180ms var(--ease),border-color 180ms var(--ease); }
.icon-btn:hover { background:var(--accent-soft); border-color:#d6b8bf; }
.thread-list,.chat-messages,.drawer-body { scrollbar-width:thin; scrollbar-color:#cfb9ac transparent; }
body:not([data-view="chat"]) #view>.page-title { animation:page-arrive 220ms var(--ease) both; }
dialog[open] { animation:surface-arrive 220ms var(--ease) both; }
dialog[open]::backdrop { animation:backdrop-arrive 180ms ease both; }
@keyframes page-arrive { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes surface-arrive { from { opacity:0; transform:translateY(10px) scale(.99); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes backdrop-arrive { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } .product-card:hover,.btn.primary:hover { transform:none; } }

/* The chat owns the visible viewport; only the list and messages scroll. */
body[data-view="chat"] { overflow:hidden; }
body[data-view="chat"] #shell { position:fixed; top:var(--chat-viewport-top,0px); left:0; right:0; height:var(--chat-viewport-height,100dvh); }
body[data-view="chat"] .workspace { height:100%; display:flex; flex-direction:column; min-height:0; }
body[data-view="chat"] .topbar { flex-shrink:0; height:56px; background:var(--paper); }
body[data-view="chat"] main { display:flex; flex:1; min-height:0; width:100%; margin:0; padding:16px 24px 20px; }
body[data-view="chat"] #view { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; }
body[data-view="chat"] .page-title { flex-shrink:0; margin-bottom:14px; min-height:40px; }
body[data-view="chat"] .page-title>div { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
body[data-view="chat"] .page-title h1 { font:600 24px/1.25 'DM Sans',sans-serif; letter-spacing:-.7px; margin:0; }
body[data-view="chat"] .page-title .eyebrow { display:none; }
body[data-view="chat"] .page-title .subtitle { font-size:12px; margin:0; padding-left:18px; border-left:1px solid var(--line); }
body[data-view="chat"] .inbox-layout { border-color:#e0d7cd; border-radius:14px; box-shadow:0 5px 24px #382b2b07; }
body[data-view="chat"] .inbox-footnote { padding:10px 16px; font-size:9px; }
body[data-view="chat"] .conversation-header .icon-btn { border-color:transparent; background:transparent; border-radius:50%; }
body[data-view="chat"] .conversation-header .icon-btn:hover { background:#f0ece5; }
body[data-view="chat"] #conversation-mode { border-radius:22px; padding-inline:16px; }
body[data-view="chat"] .composer-note { padding-top:8px; font-size:10px; }
body[data-view="chat"] .chat-form { padding-top:9px; padding-bottom:12px; }
body[data-view="chat"] .message-status.read { color:#167278; }
body[data-view="chat"] .inbox-layout { flex:1; height:auto; min-height:0; max-height:none; }
.inbox-sidebar,.inbox-conversation { min-height:0; }
.chat-messages { overflow-x:hidden; scrollbar-gutter:stable; }
.message { min-width:0; }
.conversation-header .contact-heading h2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
body[data-view="chat"] .toast { top:12px; bottom:auto; max-width:calc(100vw - 32px); padding:12px 18px; }
@media (max-width:1000px) {
 body[data-view="chat"] .inbox-layout { display:block; }
 .inbox-sidebar,.inbox-conversation { height:100%; }
 .inbox-conversation { display:none; }
 .inbox-layout.has-selection .inbox-sidebar { display:none; }
 .inbox-layout.has-selection .inbox-conversation { display:flex; }
 .inbox-back { display:inline-flex; }
 .conversation-header { flex-wrap:nowrap; }
 .conversation-header .btn { width:auto; flex-shrink:0; }
}
@media (max-width:760px) {
 body[data-view="chat"] .workspace { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
 body[data-view="chat"] main { padding:12px 10px 10px; }
 body[data-view="chat"] .page-title { margin-bottom:8px; min-height:30px; }
 body[data-view="chat"] .page-title h1 { font-size:21px; }
 body[data-view="chat"] .page-title .subtitle { display:none; }
 body[data-view="chat"] .topbar { height:42px; }
 body[data-view="chat"] .chat-messages { padding:16px 12px; }
 body[data-view="chat"] .message { max-width:92%; }
 body[data-view="chat"].chat-keyboard .sidebar nav { display:none; }
 body[data-view="chat"].chat-keyboard .workspace { padding-bottom:env(safe-area-inset-bottom); }
 body[data-view="chat"].chat-short .topbar { display:none; }
}
body[data-view="chat"].chat-short .page-title { display:none; }
body[data-view="chat"].chat-short main { padding-top:8px; padding-bottom:8px; }
body[data-view="chat"].chat-short .conversation-header { padding:8px 12px; }
body[data-view="chat"].chat-short .conversation-header .contact-heading h2 { -webkit-line-clamp:1; }
body[data-view="chat"].chat-short .conversation-mode { padding:5px 12px; font-size:10px; }
body[data-view="chat"].chat-short .composer-note { display:none; }
body[data-view="chat"].chat-short .chat-form { padding:8px 10px; }
body[data-view="chat"].chat-short .chat-form textarea { max-height:72px; }
body[data-view="chat"].chat-short .inbox-list-title { padding:10px 16px; }
body[data-view="chat"].chat-short .inbox-footnote { display:none; }
.open-once.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; margin-top:10px; padding:9px 15px; border:1px solid #bdd2c9; border-radius:24px; background:#f1f8f4; color:#075e54; font-size:12px; font-weight:600; line-height:1.4; }
.open-once.btn:hover { background:#e1f0e8; border-color:#8fb7a5; }
.open-once .icon { width:18px; height:18px; stroke-width:1.7; }
.once-help { margin-top:10px; font-size:12px; line-height:1.6; }
.once-help summary { min-height:44px; align-content:center; color:#075e54; font-weight:600; cursor:pointer; }
.once-help summary:focus-visible { outline:2px solid #128c7e; outline-offset:2px; border-radius:4px; }
.once-help p { padding-bottom:4px; }
.once-viewer .media-viewer-content { text-align:center; }
.once-notice { color:#f5ede5; font-size:12px; line-height:1.6; padding:0 12px; margin:0 0 16px; }
.once-loading,.once-error { padding:48px 24px; margin:0; color:#fff6ed; line-height:1.7; }
.once-viewer .media-viewer-content img { max-height:calc(100dvh - 225px); }
.once-viewer audio { display:block; width:min(480px,100%); margin:24px auto; }

/* Stickers retain the original WebP, including transparency and animation. */
.message-sticker { width:170px; max-width:100%; background:transparent; border:0; }
.message-sticker img { width:160px; height:160px; object-fit:contain; background:transparent; }
.message-sticker span { background:transparent; color:var(--muted); font-size:10px; }
.sticker-viewer .media-viewer-content img { width:320px; max-width:100%; object-fit:contain; }

/* Focused workspaces. Warm paper, clear boundaries and one task at a time. */
:root { --bg:#f7f6f2; --paper:#fff; --ink:#302a2d; --muted:#777176; --line:#e9e5e2; --accent:#702e43; --accent-hover:#542033; --accent-soft:#f5eaf0; --radius:12px; }
body { text-rendering:optimizeLegibility; }
h1 { font:600 30px/1.22 'DM Sans',sans-serif; letter-spacing:-1.1px; margin-bottom:9px; }
h2 { letter-spacing:-.4px; }
.sidebar { width:224px; padding:30px 14px 18px; background:#fff; color:var(--ink); border-color:var(--line); }
.brand { padding:0 16px 27px; margin-bottom:26px; border-color:var(--line); color:var(--accent); }
.brand-small { font-size:8px; letter-spacing:2px; }
.brand-name { font-size:43px; letter-spacing:-2px; }
.brand-period { color:#c28a62; }
.workspace-label { margin:0 16px 12px; font-size:9px; letter-spacing:1.5px; color:#8d8086; }
.sidebar nav { gap:5px; }
.nav-item { min-height:46px; color:#71676c; font-size:12px; border-radius:8px; gap:11px; }
.nav-item .icon { width:18px; height:18px; }
.nav-item:hover { background:#f8f4f5; }
.nav-item.active { border-color:transparent; background:var(--accent-soft); color:var(--accent); box-shadow:none; font-weight:600; }
.nav-count { font-size:10px; background:#f1eeef; color:#786771; }
.active .nav-count { background:#e9d5de; color:var(--accent); }
.store-mini { border-color:var(--line); padding:20px 5px 12px; gap:9px; }
.store-mini strong { font-size:10px; }
.store-mini small { color:var(--muted); font-size:10px; }
.store-avatar,.avatar { border:1px solid #e5d7dc; background:#f8eef2; color:var(--accent); }
.store-avatar { width:33px; height:33px; font-size:22px; }
.logout { color:var(--muted); font-size:11px; }
.workspace { margin-left:224px; }
.topbar { height:64px; padding-inline:36px; background:#ffffffd9; }
.breadcrumb { font-size:11px; gap:10px; }
.breadcrumb strong { font-weight:600; }
.topbar-right { font-size:10px; }
.avatar { margin-left:10px; width:30px; height:30px; font-size:20px; }
main { max-width:1440px; padding:34px 36px 48px; min-height:calc(100dvh - 121px); }
.page-title { margin-bottom:26px; }
.eyebrow { font-size:9px; letter-spacing:1.6px; margin-bottom:9px; }
.subtitle { font-size:12px; line-height:1.7; }
.page-footer { max-width:1440px; padding:19px 36px; color:#948a8d; }
.btn { min-height:42px; border-radius:8px; font-size:12px; padding:11px 16px; }
.btn.primary { box-shadow:0 2px 4px #53253712; }
.btn.secondary { background:#fff; border-color:#ded5da; color:#5e4652; }
.btn.secondary:hover { background:#fbf6f8; border-color:#c6adb9; }
label { color:#554a50; font-size:12px; }
input:not([type=checkbox]),textarea,select { border-color:#ddd7da; background:#fff; border-radius:8px; }
input::placeholder,textarea::placeholder { color:#9a9095; }
.catalog-summary { padding:14px 18px; gap:12px 26px; border:1px solid var(--line); border-radius:10px; background:#fff; margin-bottom:22px; font-size:11px; }
.catalog-summary b { font:600 16px 'DM Sans',sans-serif; }
.catalog-toolbar,.order-toolbar { gap:16px; margin-bottom:10px; }
.tabs { gap:3px; padding:3px; background:#eeebea; border-radius:9px; }
.tab { font-size:12px; min-height:38px; padding:9px 13px; border-radius:7px; }
.tab.active { background:#fff; border-color:#e4dadd; box-shadow:0 1px 3px #35222b09; }
.tab small { background:#e6e0e2; }
.tab.active small { background:var(--accent-soft); }
.category-heading { margin-bottom:13px; }
.category-heading h2 { font:600 17px/1.4 'DM Sans',sans-serif; letter-spacing:-.4px; }
.category-heading h2>span { font-size:10px; border:0; background:#ebe7e7; padding:2px 7px; }
.product-list { gap:29px; }
.category-products { gap:16px; }
.product-card { padding:20px; gap:17px; border-radius:12px; box-shadow:0 2px 6px #37252c03; }
.product-card:hover { border-color:#d4b8c3; box-shadow:0 4px 16px #49233207; transform:none; }
.product-card.paused { background:#f4f2f1; }
.product-image { background:#f7f2eb; border-color:#eee5db; border-radius:9px; }
.product-info h3 { font-size:15px; letter-spacing:-.2px; }
.product-info p { color:#82777c; }
.product-price { font-weight:600; font-size:19px; letter-spacing:-.5px; }
.product-controls { padding-top:14px; }
.edit-button { border-color:#e2d9de; color:var(--accent); }
.edit-button:hover { background:var(--accent-soft); }
.badge { border-radius:5px; }
.setup-notice { background:#fcf6e9; border-color:#eadfc6; }
.empty { background:#fff; border-style:dashed; border-radius:12px; }
.empty>.icon { color:#9d7687; }
.panel { border-radius:12px; padding:28px; box-shadow:none; }
.panel h2 { font:600 20px/1.35 'DM Sans',sans-serif; letter-spacing:-.5px; margin-bottom:9px; }
.panel .subtitle { font-size:12px; }
.order-card { padding:23px; border-left:3px solid #b68296; border-radius:12px; box-shadow:none; }
.order-top h3 { font-size:16px; }
.order-bottom>b { color:var(--accent); font-size:20px; }
.order-details { border-color:var(--line); }
/* The overview is a short set of doors into the work, never a reporting wall. */
.home-intro { margin-bottom:27px; }
.home-intro h1 { font:400 35px/1.2 Georgia,serif; letter-spacing:-1px; }
.home-intro p { color:var(--muted); font-size:13px; line-height:1.7; margin-bottom:0; }
.home-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:28px; }
.home-stat { position:relative; min-width:0; display:grid; grid-template-columns:1fr auto; padding:21px; background:#fff; border:1px solid var(--line); border-radius:12px; transition:border-color 180ms,box-shadow 180ms; }
.home-stat:hover { border-color:#caaeba; box-shadow:0 4px 14px #59304408; }
.home-stat-icon { grid-column:2; grid-row:1/3; display:grid; place-items:center; align-self:start; width:36px; height:36px; border-radius:10px; background:#f8f0f3; color:var(--accent); }
.home-stat-icon .icon { width:18px; height:18px; }
.home-stat strong { grid-column:1; grid-row:1; font-size:29px; line-height:1.2; letter-spacing:-1px; font-weight:600; font-variant-numeric:tabular-nums; }
.home-stat>span:not(.home-stat-icon) { grid-column:1/-1; grid-row:3; color:#51474d; font-size:12px; font-weight:500; margin-top:16px; }
.home-stat small { grid-column:1/-1; color:var(--muted); font-size:10px; margin-top:7px; line-height:1.5; }
.home-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); gap:22px; align-items:start; }
.home-section { min-width:0; border:1px solid var(--line); border-radius:12px; padding:24px; background:#fff; }
.home-section>header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:19px; border-bottom:1px solid var(--line); }
.home-section h2 { margin:0; font-size:16px; font-weight:600; }
.home-section>header>a { color:var(--accent); font-size:11px; font-weight:500; white-space:nowrap; }
.home-section .empty { padding:34px 16px; border:0; }
.home-section .empty h3 { font-size:15px; }
.home-section .empty p { font-size:12px; }
.home-order { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:18px 0; border-bottom:1px solid var(--line); }
.home-order:last-child { border-bottom:0; padding-bottom:0; }
.home-order strong { display:block; font-size:12px; font-weight:600; }
.home-order small { display:block; font-size:10px; color:var(--muted); line-height:1.6; margin-top:5px; }
.home-order>span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.home-order>span:last-child { flex-shrink:0; max-width:35%; text-align:right; }
.home-order-icon { flex-shrink:0; color:var(--accent); }
.home-empty { padding:34px 16px 12px; text-align:center; }
.home-empty>.icon { width:28px; height:28px; color:#9d7687; margin-bottom:15px; }
.home-empty h3 { margin-bottom:9px; font-size:15px; }
.home-empty p { max-width:380px; margin:0 auto 15px; color:var(--muted); font-size:12px; line-height:1.7; }
.home-empty>a { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); font-size:11px; font-weight:500; }
.home-actions { display:grid; gap:0; }
.home-actions>a { display:flex; align-items:center; gap:12px; padding:19px 0; font-size:12px; line-height:1.5; border-bottom:1px solid var(--line); }
.home-actions>a:last-child { border-bottom:0; padding-bottom:0; }
.home-actions>a>.icon { color:var(--accent); width:19px; height:19px; }
.home-actions>a>span:not([aria-hidden]) { flex:1; min-width:0; }
.home-actions>a>span[aria-hidden] { flex:none; margin-left:auto; color:var(--accent); }
.home-actions strong { display:block; font-size:12px; font-weight:500; }
.home-actions small { display:block; font-size:10px; margin-top:4px; color:var(--muted); }
.home-actions>a:hover strong,.home-section>header>a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
/* Settings have their own secondary navigation and one visible form. */
.settings-layout { display:grid; grid-template-columns:184px minmax(0,760px); gap:28px; align-items:start; }
.settings-layout .settings-nav { display:flex; flex-direction:column; flex-wrap:nowrap; position:sticky; top:22px; gap:5px; padding:0; margin:0; background:transparent; }
.settings-layout .settings-nav a,.settings-layout .settings-nav button { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; text-align:left; padding:12px 14px; border:1px solid transparent; background:transparent; border-radius:8px; color:var(--muted); font-size:12px; font-weight:500; }
.settings-layout .settings-nav .icon { width:17px; height:17px; }
.settings-layout .settings-nav [aria-current="page"],.settings-layout .settings-nav .active { background:#fff; color:var(--accent); border-color:#e5d9df; box-shadow:0 2px 4px #39212b04; }
.settings-layout .settings-nav a:hover,.settings-layout .settings-nav button:hover { color:var(--accent); background:#fff; }
.settings-content { min-width:0; }
.settings-content .panel { margin:0; }
.settings-content label[for] { margin-bottom:0; }
.settings-content label[for]+textarea { margin-bottom:19px; }
.settings-content>form+.panel,.settings-content>.panel+.panel { margin-top:22px; }
.settings-content .connection-box { background:#f8f7f3; border-color:var(--line); padding:27px; }
.settings-content .voice-option { border-color:var(--line); }
.settings-content .tip-card { background:#f7f2e9; border-color:#e9dfcf; }
.settings-content .settings-actions { padding-top:22px; border-top:1px solid var(--line); }
.settings-content .options-preview { background:#fff; }
/* The editor is a focused sheet, with drafts retained across its two tabs. */
.drawer { width:min(720px,calc(100% - 48px)); height:min(840px,calc(100dvh - 48px)); border-radius:14px; border-color:#e6dade; background:#fff; }
.drawer-header { background:#fff; padding:23px 28px; border:0; }
.drawer-header h2 { font:600 24px/1.3 'DM Sans',sans-serif; letter-spacing:-.7px; }
.drawer-header .eyebrow { font-size:8px; }
.editor-tabs { display:flex; gap:24px; padding:0 28px; flex-shrink:0; border-bottom:1px solid var(--line); }
.editor-tabs button { display:flex; align-items:center; gap:8px; min-height:49px; margin-bottom:-1px; padding:9px 0 13px; background:none; border:0; border-bottom:2px solid transparent; color:var(--muted); font-size:12px; font-weight:500; }
.editor-tabs button>span { display:grid; place-items:center; width:21px; height:21px; font-size:10px; background:#f0eced; color:#83747d; border-radius:50%; }
.editor-tabs button[aria-selected="true"] { color:var(--accent); border-bottom-color:var(--accent); }
.editor-tabs button[aria-selected="true"]>span { background:var(--accent-soft); color:var(--accent); }
.drawer-body { display:block; padding:25px 28px; }
.drawer-body section+section { border:0; padding:0; margin:0; }
.drawer-body .section-title { display:none; }
.drawer-body label { margin-bottom:18px; }
.drawer-footer { background:#fcfafb; padding:18px 28px; }
.upload-box { background:#fbf9f6; border-color:#d9ccc5; }
.rules-box { background:#faf8f7; border-color:var(--line); }
.icon-btn { background:#fff; }
.login-brand-panel { background:#662b40; }
.login-brand-panel:after { border-color:#f0d5b722; border-radius:2px; inset:32px; }
.login-brand .brand-name { font-size:90px; }
.login-form h1 { font-size:30px; }
.login-form .eyebrow { font-size:9px; }
/* Keep the established compact chat controls and viewport sizing. */
.inbox-list-title h2 { font:600 18px/1.3 'DM Sans',sans-serif; letter-spacing:-.4px; }
.inbox-conversation { background-color:#f6f2ed; }
.thread.selected { background:#f6edf1; }
.thread:hover { background:#faf7f8; }
.thread.selected:hover { background:#f6edf1; }
.inbox-illustration { width:92px; min-height:104px; border-radius:18px; transform:none; box-shadow:none; outline:5px solid #f2e9e3; margin-bottom:24px; }
.inbox-illustration .icon { width:28px; height:28px; }
.inbox-illustration span { font-size:20px; }
.inbox-placeholder h2 { font:500 25px/1.25 'DM Sans',sans-serif; }
@media (max-width:1200px) {
 .sidebar { width:206px; padding-inline:12px; }
 .workspace { margin-left:206px; }
 main { padding:30px 26px 40px; }
 .topbar,.page-footer { padding-inline:26px; }
 .home-overview { gap:12px; }
 .home-stat { padding:17px; }
 .home-grid { gap:18px; }
 .settings-layout { grid-template-columns:164px minmax(0,1fr); gap:20px; }
}
@media (max-width:1000px) {
 .home-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .home-grid { grid-template-columns:1fr; }
 .settings-layout { grid-template-columns:1fr; gap:18px; }
 .settings-layout .settings-nav { position:static; flex-direction:row; overflow-x:auto; padding-bottom:3px; }
 .settings-layout .settings-nav a,.settings-layout .settings-nav button { width:auto; flex-shrink:0; white-space:nowrap; }
}
@media (max-width:760px) {
 .sidebar { position:relative; width:100%; height:72px; padding:16px 20px; background:#fff; border-bottom:1px solid var(--line); }
 .brand { padding:0; margin:0; border:0; }
 .brand-small { font-size:6px; letter-spacing:1.7px; margin-bottom:4px; }
 .brand-name { font-size:31px; letter-spacing:-1.5px; }
 .sidebar-bottom { top:14px; right:17px; }
 .logout { font-size:10px; gap:6px; }
 .sidebar nav { grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; padding:7px 5px calc(7px + env(safe-area-inset-bottom)); border-color:var(--line); background:#fff; box-shadow:0 -3px 14px #39212b06; }
 .nav-item { min-height:57px; padding:7px 1px; gap:5px; font-size:9px; letter-spacing:-.15px; }
 .nav-item .icon { width:19px; height:19px; }
 .nav-item.active { background:var(--accent-soft); }
 .nav-count { font-size:8px; min-width:16px; top:0; right:calc(50% - 27px); }
 .active .nav-count { background:var(--accent); color:#fff; }
 .workspace { margin-left:0; }
 .topbar { height:42px; padding-inline:20px; }
 .breadcrumb { font-size:10px; }
 .topbar-right { font-size:9px; }
 main { padding:25px 18px 32px; min-height:calc(100dvh - 245px); }
 h1 { font-size:27px; letter-spacing:-.8px; }
 .eyebrow { font-size:8px; }
 .page-title { margin-bottom:23px; gap:12px; }
 .page-title .btn { min-height:42px; padding:10px 12px; font-size:10px; }
 .subtitle { font-size:12px; }
 .page-footer { padding-inline:20px; }
 .catalog-summary { gap:9px 16px; padding:13px 14px; font-size:10px; }
 .catalog-summary b { font-size:13px; }
 .tabs { gap:2px; }
 .tab { padding:9px 10px; font-size:11px; }
 .product-card { padding:17px; grid-template-columns:76px minmax(0,1fr); gap:14px; }
 .product-info h3 { font-size:14px; }
 .product-price { font-size:18px; }
 .category-heading h2 { font-size:16px; }
 .home-intro { margin-bottom:23px; }
 .home-intro h1 { font-size:30px; }
 .home-intro p { font-size:12px; }
 .home-overview { gap:11px; margin-bottom:22px; }
 .home-stat { padding:16px; }
 .home-stat strong { font-size:27px; }
 .home-stat-icon { width:29px; height:29px; border-radius:8px; }
 .home-stat-icon .icon { width:16px; height:16px; }
 .home-stat>span:not(.home-stat-icon) { font-size:11px; margin-top:15px; }
 .home-stat small { font-size:9px; }
 .home-section { padding:20px; }
 .home-section h2 { font-size:15px; }
 .home-grid { gap:16px; }
 .settings-layout { gap:17px; }
 .settings-layout .settings-nav { margin-inline:-18px; padding-inline:18px; padding-bottom:5px; gap:5px; }
 .settings-layout .settings-nav a,.settings-layout .settings-nav button { padding:11px 13px; font-size:11px; }
 .panel { padding:23px 20px; }
 .panel h2 { font-size:19px; }
 .drawer { width:100%; height:100dvh; margin:0; border:0; border-radius:0; }
 .drawer-header { padding:20px; }
 .drawer-header h2 { font-size:22px; }
 .editor-tabs { padding-inline:20px; gap:24px; }
 .editor-tabs button { font-size:11px; }
 .drawer-body { padding:22px 20px; }
 .drawer-footer { padding:15px 20px calc(15px + env(safe-area-inset-bottom)); }
 .login-brand-panel:after { inset:18px; }
 .login-brand .brand-name { font-size:60px; }
 input:not([type=checkbox]),textarea,select,.search input { font-size:16px; }
}
@media (max-width:360px) {
 .nav-item { font-size:8px; }
 .product-card { padding:14px; grid-template-columns:62px minmax(0,1fr); gap:12px; }
 .home-stat { padding:13px; }
 .home-stat strong { font-size:25px; }
 .home-stat-icon { width:26px; height:26px; }
 .home-stat small { font-size:9px; }
 .editor-tabs { gap:18px; }
}
