/* Work board: three live delivery stages plus the independent CDEK lane. */
.server-mode.orders-compact .kanban-board,.server-mode:not(.orders-compact) .kanban-board{grid-template-columns:repeat(4,minmax(240px,1fr));min-width:996px;gap:12px}
.brief-dispatch-card .operator-card-heading{margin-bottom:7px}.brief-dispatch-card .operator-created{font-size:10px}.brief-dispatch-card .operator-created b{font-size:13px}.brief-dispatch-card .dispatch-product{font-size:14px;margin:7px 0}.brief-dispatch-card .dispatch-address{font-size:12px;margin-bottom:8px}.brief-dispatch-card .dispatch-identity{margin:5px 0;font-size:11px}.brief-deadline{display:flex;flex-direction:column;gap:3px;font-size:12px;line-height:1.5;margin-top:8px}.brief-deadline>span{font-size:11px;color:#c2b7cd}.brief-deadline strong{font-size:13px;font-weight:650;overflow-wrap:anywhere}
.brief-details{margin-top:10px;border-top:1px solid #49394e}.brief-details>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:40px;cursor:pointer;font-size:12px;color:#b6e8df}.brief-details>summary::-webkit-details-marker{display:none}.brief-details>summary svg{transition:transform .18s ease}.brief-details[open]>summary svg{transform:rotate(180deg)}.brief-details-body{font-size:13px;line-height:1.6}.brief-details-body>p{margin:7px 0;overflow-wrap:anywhere}.brief-details-body .dispatch-extra{margin-top:10px;padding-top:10px}.brief-details>summary:focus-visible{outline:2px solid #63e5dc;outline-offset:2px}
.completed-target{border-color:#527463;color:#c6ead6}.completed-target span{font-variant-numeric:tabular-nums;margin-left:5px;font-weight:700}.completed-deliveries{box-sizing:border-box;width:min(1500px,95vw);max-width:95vw;max-height:92dvh;overflow:auto;background:#191423;color:#f4edf9;border:1px solid #49394e;border-radius:14px;padding:22px}.completed-deliveries::backdrop{background:#080710b8}.completed-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.completed-head h2{font-size:23px;margin:0}.completed-head button{min-height:44px}.completed-deliveries>p{font-size:13px;color:#c2b7cd;line-height:1.6}.completed-tools{display:flex;gap:18px;flex-wrap:wrap;margin:22px 0}.completed-tools label{display:grid;gap:8px;font-size:13px;min-width:220px}.kanban-completion-layer{pointer-events:none}
/* Manager attention desk: identity and a clear action, in one row. */
.attention-workspace{max-width:1500px;margin:auto}.attention-work-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:8px 0 24px}.attention-work-head h2{font-size:27px;margin:0 0 10px}.attention-work-head p{font-size:14px;color:#c2b7cd;line-height:1.65;max-width:65ch;margin:0}.attention-work-head button{min-height:44px;flex:none}.attention-work-tools{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.attention-work-tools label{display:grid;gap:8px;font-size:13px;color:#d8cce1}.attention-work-tools label:first-child{flex:1;min-width:240px}.attention-work-tools input{width:100%;box-sizing:border-box}.attention-work-tools button{min-height:44px}.attention-work-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 10px}.attention-work-tabs button{font-size:13px;min-height:44px}.attention-work-tabs button[aria-pressed=true]{background:#33423f;border-color:#63e5dc;color:#d7fff5}.attention-work-tabs span{margin-left:5px;font-variant-numeric:tabular-nums}.attention-work-live{font-size:12px;color:#b6d5c8;line-height:1.6;margin:12px 0 24px}.attention-work-live.offline{color:#ffd0a2}
.attention-task-section{margin-bottom:32px}.attention-task-section>h3{font-size:17px;color:#e7ddeb;margin:0 0 14px}.attention-task-section>h3>span{font-size:13px;color:#c2b7cd;margin-left:7px}.attention-task{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;padding:24px;background:#1c182b;border:1px solid #49394e;border-radius:12px;margin-bottom:14px}.attention-task.urgent{border-color:#ad7656}.attention-task.past{background:#191624}.attention-task-source{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px;color:#c2b7cd;flex-wrap:wrap}.attention-task-source button{border:0;background:transparent;padding:0;font-size:13px;color:#8ce3db;font-weight:650;min-height:30px;text-align:left;white-space:normal;overflow-wrap:anywhere}.attention-task-source button:disabled{opacity:1;color:#c2b7cd}.attention-task-product{padding:0;border:0;background:transparent;text-align:left;display:block;font-size:18px;font-weight:650;color:#f4edf9;white-space:normal;overflow-wrap:anywhere;line-height:1.45;margin:10px 0;min-height:40px}.attention-task-product:hover,.attention-task-source button:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}.attention-task-address{font-size:14px;line-height:1.6;margin:9px 0;color:#ded3e7;overflow-wrap:anywhere}.attention-task-person{font-size:13px;color:#c2b7cd;line-height:1.6}.attention-task-person a{color:#b6e8df;text-underline-offset:3px}.attention-task-dates{margin:16px 0 0;display:grid;gap:9px}.attention-task-dates>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;font-size:13px;line-height:1.5}.attention-task-dates dt{color:#c2b7cd}.attention-task-dates dd{margin:0;color:#e8deee;overflow-wrap:anywhere}
.attention-task-decision{border-left:1px solid #49394e;padding-left:28px}.attention-task-label{font-size:12px;color:#e1c5a8}.attention-task-decision h3{font-size:19px;line-height:1.5;margin:8px 0}.attention-task-decision>p{font-size:14px;color:#cfc2da;line-height:1.65;margin:10px 0 18px;max-width:65ch}.attention-task-primary{min-height:44px;background:#324d42;border-color:#5c8b72;color:#d8ffea;font-size:13px;white-space:normal;text-align:left}.attention-task-links{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:14px}.attention-task-links button{font-size:12px;background:transparent;border:0;color:#acdcd6;padding:5px 0;min-height:32px;text-decoration:underline;text-underline-offset:4px}.attention-work-empty{padding:30px 0;color:#c2b7cd;line-height:1.6}.attention-work-empty h3{color:#f4edf9;font-size:19px}.attention-workspace button:focus-visible{outline:2px solid #63e5dc;outline-offset:3px}
/* Chat navigator: one full clickable row for a regular group or private chat. */
.chat-thread-row{border:0!important;border-radius:9px!important;padding:13px 11px!important;min-height:90px;display:flex!important;align-items:center!important;gap:12px!important;width:100%;margin:2px 0!important;cursor:pointer;background:transparent!important;box-shadow:none!important}.chat-thread-row.selected{background:#3b2a44!important;box-shadow:inset 2px 0 #63e5dc!important}.chat-thread-row:hover{background:#2d2338!important}.chat-thread-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;flex:none;color:#dbfff6;background:#36534e;font-size:14px;font-weight:650}.chat-thread-copy{flex:1;min-width:0}.chat-thread-title{display:flex!important;gap:8px;align-items:baseline;justify-content:space-between;margin:0!important}.chat-thread-title strong{font-size:14px!important;font-weight:650!important;color:#eee3f5!important;line-height:1.4!important;white-space:normal;overflow-wrap:anywhere}.chat-thread-title time{font-size:11px;color:#c2b7cd;flex:none}.chat-thread-preview{display:block!important;font-size:13px!important;color:#c2b7cd!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px!important}.chat-thread-meta{display:block!important;font-size:11px!important;color:#b5a6c2!important;margin-top:4px!important}.chat-thread-row>.chat-unread{flex:none;margin:0;align-self:center}.chat-topic-group{margin:9px 0;border:1px solid #49394e;border-radius:10px;overflow:hidden}.chat-topic-heading{display:flex;align-items:center;gap:8px;background:#2f233a;padding:5px}.chat-topic-heading>button:first-child{flex:1;min-width:0;text-align:left;background:transparent;border:0;padding:10px;color:#f4ddf4;white-space:normal}.chat-topic-heading strong{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.chat-topic-heading small{display:block;font-size:11px;color:#cdb8d6;margin-top:4px}.chat-topic-toggle{display:grid;place-items:center;flex:none;width:40px;min-height:40px;padding:8px;background:transparent;border:0}.chat-topic-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}.chat-topic-children[hidden]{display:none}.chat-topic-children .chat-thread-row{border-radius:0!important;margin:0!important}.topic-row .chat-thread-avatar{width:30px;height:30px;border-radius:7px;background:#40344a;font-size:15px}.chat-topic-heading .chat-unread{margin:0}.chat-thread-row:focus-visible,.chat-topic-heading button:focus-visible{outline:2px solid #63e5dc;outline-offset:-2px}
/* Conversation: familiar message bubbles, no parser or CRM diagnostics in the text. */
.server-mode .chat-timeline{background:#14111f;padding:20px;gap:7px}.telegram-bubble{position:relative;max-width:min(82%,680px)!important;border:0!important;border-radius:12px!important;padding:10px 34px 8px 14px!important;box-shadow:none!important;background:#292235!important;min-width:90px}.telegram-bubble.outgoing{background:#2a4441!important;border-bottom-right-radius:4px!important}.telegram-bubble.incoming{border-bottom-left-radius:4px!important}.telegram-bubble .chat-message-author{display:block;font-size:12px;color:#91dfd4;font-weight:650;margin-bottom:5px}.telegram-bubble .chat-message-text{font-size:14px;line-height:1.6;margin:0 0 3px;white-space:pre-wrap;overflow-wrap:anywhere;color:#f4edf9}.telegram-bubble .chat-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:5px;line-height:1.3;margin:3px -19px 0 10px;color:#b8c9c5;font-size:10px}.telegram-bubble.incoming .chat-message-meta{color:#b9acc8}.telegram-bubble time{font-size:10px;color:inherit}.chat-message-local{font-size:10px;color:#d8c5ab}.chat-message-failed{font-size:11px;color:#ffc0ba}.telegram-bubble .chat-message-more{position:absolute;top:5px;right:3px;padding:5px;min-height:30px;width:30px;border:0;background:transparent;color:#c2b7cd;opacity:0}.telegram-bubble:hover .chat-message-more,.telegram-bubble:focus-within .chat-message-more{opacity:1}.telegram-bubble .chat-quote{border-left:1px solid #63e5dc;background:#ffffff08;margin:4px 0 8px;padding:7px 9px;max-width:100%;min-height:38px}.telegram-bubble .chat-quote span{font-size:12px}.chat-order-link{font-size:11px!important;min-height:28px!important;padding:3px 0!important;background:transparent!important;border:0!important;color:#a4e4d9!important}.chat-day-divider{display:flex;justify-content:center;align-self:stretch;margin:12px 0 8px;flex:none}.chat-day-divider span{font-size:11px;color:#d5c9e0;background:#332b40;padding:5px 11px;border-radius:12px;line-height:1.4}.chat-submit{min-height:40px;font-size:13px}.server-mode .chat-compose>div{justify-content:space-between}.server-mode .chat-toolbar{padding:7px 20px}.server-mode .chat-toolbar button{font-size:11px;padding:5px 8px;min-height:32px}.chat-context-menu button{min-height:40px;font-size:13px}
@media(max-width:850px){.attention-task{grid-template-columns:1fr;gap:18px}.attention-task-decision{border-left:0;border-top:1px solid #49394e;padding:18px 0 0}.attention-work-head{flex-direction:column;gap:16px}.attention-task-product{font-size:17px}}
@media(max-width:600px){.attention-task{padding:17px}.attention-work-tools label{width:100%}.attention-task-dates>div{grid-template-columns:90px minmax(0,1fr)}.telegram-bubble{max-width:92%!important}.telegram-bubble .chat-message-more{opacity:1;min-height:36px;width:32px}.server-mode .chat-timeline{padding:12px}.chat-thread-row{min-height:90px}.chat-thread-title strong{font-size:14px!important}.chat-thread-avatar{width:36px;height:36px}.completed-deliveries{padding:16px}}
@media(prefers-reduced-motion:reduce){.brief-details>summary svg{transition:none}}
.telegram-bubble .chat-message-text a{color:#9ae4dc;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.telegram-bubble.outgoing .chat-message-text a{color:#b2eedc}

/* A single vertical page flow; columns never trap the mouse wheel. */
.server-mode[data-page="orders"] .column-cards{max-height:none;overflow:visible;overscroll-behavior:auto}
.server-mode[data-page="orders"] .kanban-board{align-items:stretch}
.server-mode[data-page="orders"] .kanban-column{min-width:0;overflow:visible}
.server-mode[data-page="orders"] .column-sticky{background:#171321;padding-bottom:2px;z-index:4}
@media(min-width:1200px){
 .server-mode[data-page="orders"] .board-scroll{overflow:visible;padding-bottom:18px}
 .server-mode[data-page="orders"] .kanban-board{grid-template-columns:repeat(4,minmax(0,1fr));min-width:0}
 .server-mode[data-page="orders"] .column-sticky{position:sticky;top:0}
}
@media(max-width:1199px){
 .server-mode[data-page="orders"] .board-scroll{overflow-x:auto;max-height:none;height:auto}
 .server-mode[data-page="orders"] .kanban-board{min-width:996px}
}
