/* Compact operational data; Miami palette is inherited. */
.server-mode .order-context{margin:0 0 20px}.order-context-row,.date-filter-row,.date-presets,.date-basis,.density-switch,.date-custom{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.order-context-row{margin-bottom:12px}.order-context button,.order-context summary,.density-switch button{font-size:12px;min-height:38px;padding:8px 11px}.order-context button[aria-pressed=true],.density-switch button[aria-pressed=true]{background:#50304e;border-color:var(--pink);color:#ffd9ed}.order-filter-menu{position:relative}.order-filter-menu summary{cursor:pointer;background:#251e35;border:1px solid #463653;border-radius:7px;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e2d2eb}.filter-options{position:absolute;top:calc(100% + 8px);left:0;z-index:4;background:#21192f;border:1px solid #725275;border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px;width:max-content;max-width:min(340px,calc(100vw - 40px));max-height:320px;overflow:auto;box-shadow:0 12px 28px #08051066}.filter-options button{text-align:left;white-space:normal;min-height:40px}.filter-options small{margin-left:8px;color:var(--muted)}#order-filter-count{margin-left:auto;color:var(--muted);font-size:12px}.date-basis{padding-right:12px;border-right:1px solid var(--line)}.date-basis button{border:0;background:transparent}.date-filter-note{font-size:12px;color:var(--muted);margin:10px 0 0}.date-custom{margin-top:12px}.date-custom label{display:flex;align-items:center;gap:8px;font-size:12px}.date-custom input{font-size:13px}.date-custom [role=alert]{color:#ffb3cf}.density-switch{margin-left:auto;gap:3px}.server-mode .board-tools{margin-bottom:14px}.server-mode.orders-compact .kanban-board{grid-template-columns:repeat(6,minmax(180px,1fr));min-width:1130px;gap:10px}.server-mode.orders-compact .kanban-column{padding:0 8px 10px;min-height:320px}.server-mode.orders-compact .column-hint{display:none}.server-mode.orders-compact .column-title{padding-top:12px}.server-mode.orders-compact .column-title h2{font-size:13px}.server-mode.orders-compact .column-total{font-size:13px;margin-bottom:12px}.server-mode.orders-compact .column-cards{gap:8px}.server-mode .order-mini{padding:10px;border-radius:9px;position:relative;overflow:hidden}.mini-partner{font-size:12px;font-weight:650;color:var(--aqua);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px;line-height:1.5}.mini-open{display:block;width:100%;text-align:left;padding:0;border:0;background:transparent;border-radius:3px;min-width:0}.mini-open:hover{background:transparent}.mini-number{font-size:11px;color:var(--muted);margin-right:6px}.mini-open strong{font-size:13px;line-height:1.5}.mini-product,.mini-address{display:block;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;color:#d5c4df}.mini-address{color:var(--muted)}.mini-delivery{display:flex;justify-content:space-between;align-items:start;gap:6px;font-size:11px;line-height:1.6;margin-top:8px}.mini-delivery span{flex:1;min-width:0}.mini-delivery b{white-space:nowrap;font-size:12px}.mini-bottom{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:11px;color:#c5b4d2;min-height:30px}.mini-bottom>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-mode .mini-move{font-size:11px;padding:6px 8px;min-height:30px}.mini-alert{font-size:11px;padding:4px 0;background:transparent;border:0;color:#ffcc9f;text-align:left;min-height:28px}.mini-cash{font-size:11px;color:var(--aqua);display:block;margin-top:4px}.server-mode .order-mini:hover{border-color:#a75b8f;transform:none}
.chat-transport{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.6}.chat-error{color:#ffb3cf;font-size:13px;min-height:0}.chat-error:empty{display:none}.chat-shell{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100dvh - 300px);min-height:620px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.chat-sidebar{padding:18px 12px;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);min-width:0}.chat-sidebar>label{font-size:14px;font-weight:600;margin-bottom:12px}.chat-sidebar input{flex:none;font-size:13px;min-height:42px}.chat-scopes{display:flex;gap:5px;margin:12px 0}.chat-scopes button{flex:1;font-size:12px;padding:8px}.chat-scopes button[aria-pressed=true]{background:#50304e;border-color:var(--pink)}.chat-list{overflow:auto;flex:1;min-height:0}.chat-room{display:flex;align-items:start;gap:8px;width:100%;text-align:left;background:transparent;border:0;padding:14px 8px;border-radius:7px;margin-bottom:5px}.chat-room.selected{background:#39213b}.chat-room-icon{flex:none;border:1px solid #634561;color:#d7bfdc;width:30px;height:30px;display:grid;place-items:center;border-radius:8px;font-size:12px}.chat-room>span:nth-child(2){min-width:0;flex:1}.chat-room strong{font-size:13px;line-height:1.4;display:block}.chat-room small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:5px}.chat-room>span>span{display:block;font-size:12px;line-height:1.5;color:#c8b8d3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.chat-room-mode{flex:none;font-size:10px!important}.chat-demo{margin-top:12px;font-size:12px;min-height:42px}.chat-pane{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.chat-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.chat-head h2{font-size:17px;line-height:1.4;margin:0}.chat-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.chat-head button{font-size:12px;min-height:42px;flex:none}.chat-toolbar{display:flex;align-items:center;gap:8px;padding:10px 20px}.chat-toolbar button{font-size:11px;padding:7px}.chat-toolbar span{font-size:11px;color:var(--muted);flex:1}.chat-timeline{flex:1;min-height:160px;overflow:auto;padding:12px 20px;display:flex;flex-direction:column;gap:12px;background:#171321;overscroll-behavior:contain}.chat-bubble{max-width:85%;width:fit-content;background:#292035;padding:12px 14px;border-radius:10px;flex-shrink:0;overflow-wrap:anywhere}.chat-bubble.outgoing{align-self:flex-end;background:#40304a}.chat-bubble>div{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.chat-bubble b{font-size:12px;color:#d7bfdc}.chat-bubble time,.chat-bubble small{font-size:11px;color:#bdaccb}.chat-bubble p{white-space:pre-wrap;margin:8px 0;font-size:14px;line-height:1.6}.chat-bubble button{display:block;font-size:12px;padding:7px;margin-top:8px}.chat-bubble details{font-size:12px;margin-top:8px}.chat-bubble summary{cursor:pointer;color:#bfaaca;padding:5px 0}.chat-compose{padding:14px 20px;border-top:1px solid var(--line)}.chat-compose label{display:block;font-size:12px;color:#c3b1ce;margin-bottom:8px}.chat-compose textarea{width:100%;resize:vertical;min-height:70px;max-height:180px;border-radius:7px;border:1px solid #614561;padding:10px 12px;background:#171320;color:var(--ink);font-family:inherit;font-size:14px;line-height:1.5}.chat-compose textarea:disabled{opacity:.6}.chat-compose>div{display:flex;align-items:center;gap:12px;margin-top:8px}.chat-compose button{font-size:12px;min-height:42px}.chat-compose span{font-size:11px;color:var(--muted)}.chat-readonly{padding:16px 20px;font-size:13px;line-height:1.6;color:var(--muted)}.chat-context{padding:0 20px 12px;max-height:180px;overflow:auto;flex:none}.chat-context summary{font-size:12px;padding:8px 0;cursor:pointer}.chat-context p{font-size:12px;color:var(--muted)}.chat-context button{font-size:12px;margin:0 8px 8px 0}.chat-empty{margin:auto;color:var(--muted);font-size:14px;line-height:1.6}
@media(max-width:1050px){.chat-shell{grid-template-columns:240px minmax(0,1fr)}.chat-head{align-items:start;flex-direction:column}.chat-bubble{max-width:95%}.chat-room-mode{display:none}}
@media(max-width:760px){.server-mode.orders-compact .kanban-board{grid-template-columns:repeat(6,240px);min-width:1490px}.order-context-row{gap:8px}.order-filter-menu{max-width:100%}.order-filter-menu summary{max-width:100%;font-size:12px;min-height:44px}.order-context button,.density-switch button{min-height:44px}#order-filter-count{margin-left:0;flex-basis:100%}.date-basis{border:0;padding:0}.date-presets{gap:6px}.date-presets button{font-size:11px}.density-switch{margin:0}.server-mode .mini-move,.server-mode .mini-alert{min-height:44px}.chat-shell{display:flex;flex-direction:column;height:auto;min-height:0}.chat-sidebar{border-right:0;border-bottom:1px solid var(--line);max-height:340px}.chat-list{max-height:180px}.chat-sidebar>label{font-size:14px}.chat-pane{min-height:620px}.chat-head{padding:16px}.chat-head button{min-height:44px}.chat-toolbar{padding:10px 12px;flex-wrap:wrap}.chat-toolbar button{min-height:40px}.chat-timeline{min-height:260px;max-height:440px;padding:12px}.chat-compose{padding:14px 12px}.chat-compose>div{flex-wrap:wrap}.chat-compose textarea{font-size:16px}.chat-compose button{min-height:44px}.chat-context{padding:0 12px 12px}.chat-room{min-height:54px}.chat-bubble{max-width:95%}.chat-head h2{font-size:16px}}
.server-mode.orders-compact[data-page="orders"] .pipeline-banner{display:none}
.chat-mobile-back{display:none}
@media(max-width:760px){
 .chat-sidebar{max-height:none}
 .chat-list{max-height:480px}
 .chat-shell .chat-pane{display:none}
 .chat-shell.chat-show-dialogue{height:calc(100dvh - 24px);min-height:600px}
 .chat-shell.chat-show-dialogue .chat-sidebar{display:none}
 .chat-shell.chat-show-dialogue .chat-pane{display:flex;min-height:0;height:100%}
 .chat-show-dialogue .chat-timeline{max-height:none;min-height:100px}
 .chat-mobile-back{display:block}
 .chat-head{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px}
 .chat-head>button[data-mode]{grid-column:1/-1}
}
@media(max-width:760px){.server-mode.orders-compact[data-page="orders"] .titleline p{display:none}}
@media(max-width:760px){
 .order-filter-menu[open]{flex-basis:100%;width:100%}
 .order-filter-menu .filter-options{position:static;width:100%;max-width:none;margin-top:8px;box-shadow:none}
}

.chat-message-menu{margin-top:6px}.chat-message-menu summary{cursor:pointer;width:32px;text-align:center;font-size:20px}.chat-message-menu button{margin:4px}.chat-action-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:24px;width:min(520px,calc(100vw - 32px))}.chat-action-dialog::backdrop{background:#080613b8}.chat-action-dialog textarea{display:block;width:100%;box-sizing:border-box;margin:12px 0;background:var(--bg);color:var(--ink);padding:12px;border:1px solid var(--line)}.chat-action-dialog form>div{display:flex;justify-content:flex-end;gap:12px}
.chat-scopes[hidden]{display:none}

.chat-group{border-bottom:1px solid var(--line);padding:8px 0}.chat-group>summary{cursor:pointer;font-weight:650;padding:10px;font-size:13px}.chat-group .chat-room{padding-left:18px}.chat-group-path{color:var(--muted);font-size:12px;margin:0 0 4px}.chat-send-target{margin:0 0 10px;font-size:12px;color:var(--muted)}.chat-send-target b{color:var(--aqua)}.chat-topics-dialog{max-height:85vh;overflow:auto}.chat-topics-dialog fieldset{border:1px solid var(--line);margin:12px 0;padding:12px}.topic-toggle{display:flex;gap:12px;align-items:center;padding:10px 0}.topic-toggle input{width:18px;height:18px;flex:none}
.chat-topics-dialog[open]{display:flex;flex-direction:column;box-sizing:border-box}.chat-topics-dialog [data-topic-list]{overflow:auto;min-height:0}.chat-topics-dialog>[data-close]{align-self:flex-end;flex:none;margin-top:12px}.chat-topics-dialog>h2,.chat-topics-dialog>p{flex:none}

.topic-settings-group{border:1px solid var(--line);border-radius:8px;margin:10px 0}.topic-settings-group>summary{cursor:pointer;padding:14px;display:list-item;list-style-position:inside}.topic-settings-group>summary strong{font-size:14px}.topic-settings-group>summary small{display:block;margin:6px 0 0 19px;color:var(--muted)}.topic-settings-group>summary:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}.topic-settings-items{padding:0 14px 10px}

.chat-message-more{display:inline-flex;padding:0 8px;margin:4px 0 0;line-height:22px;font-size:20px;border:0;background:transparent;color:var(--muted)}.chat-context-menu{position:fixed;z-index:10000;min-width:210px;max-width:calc(100vw - 16px);background:#292136;color:var(--ink);border:1px solid #594563;border-radius:10px;padding:6px;box-shadow:0 8px 30px #0008}.chat-context-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:11px 14px;border-radius:6px}.chat-context-menu button:hover,.chat-context-menu button:focus-visible{background:#493350}.chat-context-menu .danger{color:#ff8bad}.chat-context-menu small{display:block;padding:10px 14px;color:var(--muted)}

.telegram-intake{border:1px solid var(--line);border-radius:10px;margin:14px 0 20px;padding:14px;background:var(--surface)}.telegram-intake>summary{cursor:pointer}.telegram-intake>summary>span{margin-left:14px;font-size:12px;color:var(--aqua)}.telegram-intake>p{font-size:12px;color:var(--muted)}.intake-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;max-height:390px;overflow:auto}.intake-card{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;min-width:0}.intake-card small,.intake-card>span{font-size:12px;color:var(--muted)}.intake-card>b{font-size:12px;color:var(--aqua)}.intake-product{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intake-card>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.intake-card button{font-size:12px;padding:8px}@media(max-width:600px){.intake-cards{grid-template-columns:1fr}.telegram-intake>summary>span{display:block;margin:8px 0 0}}

.source-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:8px;max-height:55vh;overflow:auto}.chat-message-highlight{outline:2px solid var(--aqua);outline-offset:3px;box-shadow:0 0 0 5px #63e5dc18}
.chat-bubble{touch-action:pan-y pinch-zoom}.chat-quote{display:flex;flex-direction:column;text-align:left;border:0;border-left:3px solid var(--aqua);border-radius:4px;background:#63e5dc0c;padding:8px 10px;margin:8px 0;max-width:100%;color:var(--muted);font-size:12px}.chat-quote b{color:var(--aqua)}.chat-quote span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.chat-reply-preview{display:flex;align-items:center;gap:12px;border-left:3px solid var(--aqua);padding:8px 12px;margin:8px 0;background:#63e5dc0c;border-radius:4px}.chat-reply-preview[hidden]{display:none}.chat-reply-preview>div{min-width:0;flex:1}.chat-reply-preview b{display:block;color:var(--aqua);font-size:12px}.chat-reply-preview span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--muted)}.chat-reply-preview button{flex:none;padding:6px 10px}

/* Conversation workspace: prioritize the transcript over repeated chrome. */
.server-mode[data-page="messages"] header,
.server-mode[data-page="messages"] .demobanner,
.server-mode[data-page="messages"] .titleline p,
.server-mode[data-page="messages"] footer{display:none}
.server-mode[data-page="messages"] .content{padding:12px 16px;max-width:none}
.server-mode[data-page="messages"] .titleline{margin:0 0 6px}
.server-mode[data-page="messages"] .titleline h1{font-size:22px;line-height:1.3;letter-spacing:-.02em}
.server-mode[data-page="messages"] .chat-transport{margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.server-mode[data-page="messages"] .chat-shell{height:calc(100dvh - 92px);min-height:0;grid-template-columns:240px minmax(0,1fr)}
.chat-sidebar{padding:12px 8px}
.chat-sidebar>label{margin-bottom:8px}
.chat-sidebar>[data-topic-settings]{margin:8px 0;min-height:36px;font-size:12px}
.chat-group>summary{padding:8px;font-size:12px}
.chat-room{padding:10px 8px;margin:0}
.chat-group .chat-room{padding-left:10px}
.chat-room-icon{width:24px;height:24px}
.chat-head{padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;flex:none}
.chat-head>div{min-width:0}
.chat-head h2{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head .chat-group-path{font-size:11px;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head>div>p:not(.chat-group-path){display:none}
.chat-head>.chat-mobile-back{display:block;min-height:36px;padding:6px 10px;font-size:12px}
.chat-head>button[data-mode]{grid-column:auto;min-height:36px;width:auto;max-width:140px;padding:6px 10px;background:transparent;border:1px solid var(--line);color:var(--ink);font-weight:500}
.chat-toolbar{padding:4px 12px;min-height:32px;flex:none;gap:8px}
.chat-toolbar button{min-height:28px;padding:4px 8px}
.chat-toolbar button:disabled{display:none}
.chat-timeline{padding:12px;gap:8px;min-height:0;max-height:none;scroll-padding:16px}
.chat-bubble{position:relative;max-width:min(94%,88ch);padding:10px 12px}
.chat-bubble>div{padding-right:30px;gap:8px}
.chat-bubble p{font-size:14px;line-height:1.5;margin:6px 0}
.chat-bubble>.chat-message-more{position:absolute;top:2px;right:2px;display:grid;place-items:center;min-height:32px;width:32px;height:32px;margin:0;padding:0;border:0;opacity:.6}
.chat-bubble:hover>.chat-message-more,.chat-bubble:focus-within>.chat-message-more{opacity:1}
.chat-bubble .chat-quote{display:flex;padding-right:32px}
.chat-bubble.chat-service{display:flex;align-items:center;gap:10px;max-width:100%;min-height:40px;padding:2px 4px 2px 12px;background:transparent;border-radius:4px;color:var(--muted)}
.chat-bubble.chat-service p{font-size:12px;line-height:1.4;margin:0;color:var(--muted);font-style:italic}
.chat-bubble.chat-service time{font-size:11px;white-space:nowrap}
.chat-bubble.chat-service>.chat-message-more{position:static;flex:none;opacity:1}
.chat-compose{padding:10px 12px;flex:none}
.chat-compose .chat-send-target{display:none}
.chat-compose>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-compose textarea{display:block;box-sizing:border-box;min-height:44px;max-height:128px;resize:none;padding:9px 12px;line-height:1.5}
.chat-compose>div:last-child{margin-top:4px}
.chat-compose #chat-send-help{font-size:11px;line-height:1.5}
.chat-compose .chat-reply-preview{margin:0 0 8px;padding:6px 10px}
.chat-compose .chat-reply-preview>div{padding:0}
.chat-context{padding:0 12px 4px;max-height:160px}
.chat-context summary{padding:4px 0;font-size:11px}
@media(min-width:761px){
 .server-mode[data-page="messages"] .chat-shell.chat-focus-mode{grid-template-columns:minmax(0,1fr)}
 .chat-focus-mode>.chat-sidebar{display:none}
}
@media(max-width:1050px) and (min-width:761px){
 .server-mode[data-page="messages"] .chat-shell{grid-template-columns:210px minmax(0,1fr)}
}
@media(max-width:760px){
 .server-mode[data-page="messages"] .content{padding:8px}
 .server-mode[data-page="messages"] .titleline h1{font-size:20px}
 .server-mode[data-page="messages"] .chat-shell,
 .server-mode[data-page="messages"] .chat-shell.chat-show-dialogue{height:calc(100dvh - 156px);min-height:0;display:flex}
 .chat-sidebar{height:100%;box-sizing:border-box;border-bottom:0}
 .chat-list{max-height:none}
 .chat-head{padding:8px;gap:8px;grid-template-columns:auto minmax(0,1fr) auto}
 .chat-head h2{font-size:14px}
 .chat-head>button[data-mode]{grid-column:auto;max-width:112px;font-size:11px;min-height:40px;padding:6px 8px}
 .chat-head>.chat-mobile-back{min-height:40px}
 .chat-toolbar{padding:2px 8px}
 .chat-toolbar button{min-height:32px}
 .chat-timeline{padding:8px;min-height:0;max-height:none}
 .chat-bubble{max-width:97%}
 .chat-bubble>.chat-message-more{min-height:40px;width:40px;height:40px}
 .chat-bubble>div{padding-right:34px}
 .chat-bubble.chat-service{min-height:40px;padding-left:8px;gap:8px}
 .chat-bubble.chat-service>.chat-message-more{width:40px;height:40px}
 .chat-compose{padding:8px}
 .chat-compose textarea{font-size:16px}
 .chat-context{padding:0 8px 4px}
}

@media(max-width:760px){
 .chat-head h2{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .chat-head>button[data-mode],.chat-head>.chat-mobile-back{min-height:44px}
 .chat-bubble>.chat-message-more,.chat-bubble.chat-service>.chat-message-more{min-height:44px;width:44px;height:44px}
}

.delivery-workspace{display:grid;gap:16px;min-width:0}
.delivery-workspace section{border-top:1px solid var(--line,#49354e);padding-top:14px}
.delivery-workspace p{overflow-wrap:anywhere;line-height:1.5}
.delivery-workspace small{display:block;margin:8px 0;color:#aca3ba;line-height:1.5}
.delivery-workspace h3{margin:0 0 8px}
.delivery-mode{color:#63e5dc;font-weight:600;margin:0}
.delivery-workspace iframe{border:0;width:100%;height:280px;margin-top:12px;border-radius:8px}
.delivery-workspace button{margin:3px 0;min-height:40px}

#drawer.order-detail-drawer{width:min(700px,100vw);padding:0 24px 28px;font-size:14px;line-height:1.5}
.order-drawer-top{position:sticky;top:0;z-index:2;background:#1d172b;padding:20px 0 12px;border-bottom:1px solid #49354e}
.order-eyebrow{color:#63e5dc;font-size:13px;font-weight:600;display:block;overflow-wrap:anywhere}
#drawer .order-drawer-top h2{font-size:24px;margin:5px 0 8px;line-height:1.3}
#drawer .order-drawer-top h2 small{display:inline-block;font-size:12px;color:#bfb2ce;font-weight:400;margin-left:8px}
.order-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}
.order-pager span{font-size:12px;color:#bfb2ce;font-variant-numeric:tabular-nums}
#drawer .order-pager button{min-height:40px;font-size:12px}
.order-summary{padding:22px 0 18px}
.order-route-head{display:flex;gap:18px;align-items:center}
.order-route-head>div{min-width:0;flex:1}.order-route-head>span{color:#63e5dc;font-size:24px}
.order-route-head small,.order-product>small{display:block;color:#bfb2ce;font-size:12px}
.order-route-head strong{display:block;font-size:22px;line-height:1.3;color:#f4edf9;margin-top:4px;overflow-wrap:anywhere}
#drawer .order-task-caption{margin:10px 0 18px;color:#63e5dc;font-size:13px}
.order-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:18px 0}
.order-facts>div{min-width:0}.order-fact-wide{grid-column:1/-1}.order-facts dt{font-size:12px;color:#bfb2ce;margin-bottom:4px}.order-facts dd{margin:0;color:#f4edf9;font-size:14px;overflow-wrap:anywhere}
#drawer .order-product p{font-size:14px;font-weight:550;line-height:1.5;margin:4px 0 8px;color:#f4edf9}
.order-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
#drawer button{min-height:40px}#drawer .order-quick-actions button{font-size:12px}
.order-local-leg,.order-execution{border-top:1px solid #49354e;padding:18px 0}
#drawer .order-local-leg h3,#drawer .order-execution h3,#drawer .order-review h3{margin:0 0 10px;font-size:15px;color:#f4edf9}
#drawer .order-local-leg p{margin:8px 0}.order-local-leg>small,.order-execution>small{display:block;color:#bfb2ce;font-size:12px;line-height:1.5}
.order-missing{color:#ffc38e!important}
.order-review{border-left:3px solid #ffc38e;padding:14px 16px;background:#2a2030;margin:0 0 20px}
.order-review ul{margin:0;padding-left:18px;color:#f0c7b1;font-size:13px;display:grid;gap:8px}
.order-more{border-top:1px solid #49354e;padding:15px 0}.order-more summary{font-weight:550;cursor:pointer;min-height:32px;color:#d5c4df}
#drawer .server-order-actions{gap:8px}#drawer .server-order-actions .primary{margin:0}
@media(max-width:540px){#drawer.order-detail-drawer{padding:0 16px 24px}.order-route-head{gap:10px}.order-route-head strong{font-size:19px}.order-facts{gap:14px}.order-drawer-top{padding-top:16px}.order-pager button{padding:8px;font-size:12px}#drawer .order-drawer-top h2 small{display:block;margin:4px 0 0}#drawer button{min-height:44px}.order-quick-actions button{flex:1 1 auto}}
#drawer .drawerhead>div{min-width:0}
#drawer .order-pager{flex-direction:row}
#drawer .order-pager button{width:auto;flex:0 1 auto}
#server-dialog:has(.cdek-shipment-fields){width:min(760px,calc(100vw - 24px))}
.cdek-shipment-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
@media(max-width:540px){.cdek-shipment-fields{grid-template-columns:1fr}}
#drawer .order-pager{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:16px 0 0}

/* Messages: category navigation, hierarchy and local unread indicators. */
.chat-categories{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0;border-top:1px solid var(--line);margin-top:10px}.chat-categories button{min-height:44px;padding:9px 11px;font-size:12px;text-align:left;flex:1 1 42%;border:1px solid #584366;background:#211a2c;color:#d4c6df;border-radius:8px}.chat-categories button[aria-pressed=true]{background:#394344;border-color:var(--aqua);color:#dbfff7}.chat-categories button:focus-visible,.chat-group>summary:focus-visible{outline:2px solid var(--aqua);outline-offset:3px}.chat-group{border:1px solid #4a385c;border-radius:10px;padding:0;margin:10px 0;overflow:hidden}.chat-group>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#38263f;color:#f5d9f4;padding:13px 12px;font-size:13px;font-weight:750;line-height:1.5;border-left:3px solid #cb80bd;overflow-wrap:anywhere}.chat-group .chat-room strong{font-weight:500;color:#d1c6dd;font-size:12px}.chat-group .chat-room{margin:3px 0;border-radius:0;padding:12px}.chat-room.selected{box-shadow:inset 3px 0 var(--aqua)}.chat-unread{display:inline-flex!important;align-items:center;justify-content:center;background:#82ebd5;color:#142724!important;border-radius:20px;min-width:20px;padding:2px 6px;font-size:11px!important;font-weight:750;margin-left:6px;white-space:nowrap}.chat-unread:empty{display:none!important}.chat-category-empty{font-size:13px;color:#c8b8d3;line-height:1.6;padding:14px 8px}.chat-sidebar .chat-list{scrollbar-gutter:stable}.chat-room strong .chat-unread{font-size:10px!important}.chat-group>summary:hover{background:#49314f}@media(max-width:760px){.chat-categories button{flex-basis:30%}.chat-group>summary{font-size:14px}}

.chat-courier-links{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px 20px;border-bottom:1px solid var(--line);background:#202c2c;flex:none}.chat-courier-links label{flex:1;min-width:180px;font-size:12px;line-height:1.6}.chat-courier-links label span{display:block;color:var(--muted)}.chat-courier-links input{display:block;width:100%;min-height:44px;margin-top:6px}.chat-courier-links button{min-height:44px;font-size:12px}

/* Category toolbar spans the workspace; sidebar is reserved for conversations. */
.server-mode .chat-categories{display:flex;flex-wrap:nowrap;gap:8px;margin:0 0 10px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#211a2c;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;box-sizing:border-box}
.server-mode .chat-categories button{flex:0 0 auto;min-height:44px;padding:10px 16px;white-space:nowrap;font-size:13px;border-radius:7px}
@media(min-width:761px){.server-mode[data-page="messages"] .chat-shell{grid-template-columns:320px minmax(0,1fr);height:calc(100dvh - 162px)}.server-mode[data-page="messages"] .chat-shell.chat-focus-mode{grid-template-columns:minmax(0,1fr)}}
@media(min-width:761px) and (max-width:1050px){.server-mode[data-page="messages"] .chat-shell{grid-template-columns:290px minmax(0,1fr)}}
@media(max-width:760px){.server-mode .chat-categories{padding:6px;gap:6px;margin-bottom:8px}.server-mode .chat-categories button{flex:0 0 auto;padding:9px 12px;font-size:12px}.server-mode[data-page="messages"] .chat-shell{height:calc(100dvh - 208px)}.server-mode[data-page="messages"] .chat-shell.chat-show-dialogue{height:calc(100dvh - 208px)}}
