﻿input.platform-search-input{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368778b' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;background-size:18px 18px;border:1px solid var(--line,#dce3eb);border-radius:7px;min-height:34px;height:34px;padding:6px 10px 6px 38px!important;box-sizing:border-box;font-size:13px;color:var(--text,#172033)}
input.platform-search-input:focus{outline:2px solid #376db333;outline-offset:1px;border-color:#376db3}
.platform-search-host>svg{display:none}
.platform-filterbar{position:sticky;top:var(--filterbar-top,var(--platform-header-height,58px));z-index:6;background:var(--card,#fff);border:1px solid var(--line,#dce3eb);border-radius:8px;padding:8px 10px;box-sizing:border-box}
.work-queue-card>.row:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}
.work-queue-card>.row:last-child>button,.work-queue-card>.row:last-child>button.primary{width:100%;min-width:0;min-height:36px;height:36px;padding:4px 6px;border:1px solid var(--line);border-radius:7px;font-size:11px;font-weight:400;line-height:1.15;white-space:normal;box-sizing:border-box}
.work-queue-card>.row:last-child>button.primary{border-color:transparent}
.work-filters.overview-filter-row{grid-template-columns:minmax(140px,1.5fr) repeat(6,minmax(90px,1fr)) auto auto}
#overviewObjectArchive{white-space:nowrap;align-self:end}
.production-calendar-header{display:none}
#content:has(.production-calendar-page){padding:10px 14px}
.production-calendar-toolbar{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;gap:12px;flex-wrap:wrap}
.production-calendar-toolbar button,.production-calendar-toolbar select{min-height:34px}
.production-calendar-toolbar .calendar-filters{flex:1;justify-content:flex-end;min-width:0}
.production-calendar-toolbar .calendar-filters label{width:auto;min-width:120px;flex:1;max-width:280px}
@media(max-width:900px){input.platform-search-input{min-height:38px;height:38px;font-size:16px}.work-filters.overview-filter-row{display:flex;flex-wrap:wrap}.work-filters.overview-filter-row>label{flex:1 1 140px}.production-calendar-toolbar .calendar-month-controls{flex-wrap:wrap}.production-calendar-toolbar .calendar-filters{width:100%;flex-basis:100%}.work-queue-card>.row:last-child>button,.work-queue-card>.row:last-child>button.primary{min-height:42px;height:42px}}

.topbar .workspace-title[title="Производственный календарь"]{font-size:15px}
.platform-search-only-panel{display:block;margin-top:0}

.order-search-panel.order-portfolio-filters{grid-template-columns:minmax(190px,1.6fr) repeat(4,minmax(120px,1fr)) auto auto}
.production-calendar-grid.calendar-due-days{grid-template-columns:1fr;grid-template-rows:none;min-width:0;min-height:0;height:auto;gap:8px;padding:10px;background:var(--bg);align-content:start}
.calendar-due-day{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.calendar-due-day .calendar-day-number{font-size:14px;gap:10px;text-transform:capitalize}
.calendar-due-day .calendar-day-orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;overflow:visible}
.calendar-due-day .calendar-order{padding:8px 10px}.calendar-due-day .calendar-order strong,.calendar-due-day .calendar-order span{font-size:12px}
@media(max-width:1150px){.order-search-panel.order-portfolio-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.order-search-panel.order-portfolio-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.order-search-panel.order-portfolio-filters>label:first-child{grid-column:1/-1}.calendar-due-day .calendar-day-orders{grid-template-columns:1fr}}

.chat-group-options{display:grid;grid-template-columns:minmax(200px,1fr) minmax(200px,1fr);gap:12px;align-items:center;margin:8px 22px 0;flex-shrink:0}
.chat-group-options>.check{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:var(--text)}
.chat-compose-dialog .chat-group-options #chatGroupNameLabel{margin:0}
.chat-broadcast-label{margin:8px 22px 0;font-size:12px;flex-shrink:0}.chat-broadcast-label textarea{min-height:70px;max-height:120px;resize:vertical;font-size:13px;margin-top:4px}
@media(max-width:650px){.chat-group-options{margin:8px 12px 0;grid-template-columns:1fr;gap:6px}.chat-broadcast-label{margin:8px 12px 0}.chat-broadcast-label textarea{min-height:60px;max-height:90px}.chat-compose-footer{margin-top:6px}}

.main>.topbar:has(.workspace-search){z-index:80}

/* Consistent controls in the participant picker. */
.chat-compose-filters input.platform-search-input,.chat-compose-filters select{box-sizing:border-box;width:100%;height:38px;min-height:38px;border:1px solid var(--line);border-radius:7px;font-family:inherit;font-size:13px;line-height:normal;margin:4px 0 0;background-color:#fff;color:var(--text)}
.chat-compose-filters select{padding:6px 10px}
.chat-compose-filters label{display:flex;flex-direction:column;justify-content:flex-end}
.calendar-all-due-dates .calendar-period-label,.calendar-all-due-dates #calendarPrevious,.calendar-all-due-dates #calendarNext,.calendar-all-due-dates #calendarToday{display:none}
.calendar-all-months{font-size:13px;color:var(--muted);padding:0 8px}
.calendar-due-month{display:grid;gap:8px;min-width:0}
.calendar-due-month h2{margin:8px 2px 2px;font-size:16px;color:var(--text);text-transform:capitalize}
@media(max-width:900px){.chat-compose-filters input.platform-search-input,.chat-compose-filters select{height:40px;min-height:40px;font-size:16px}}

/* Keep the collapsed contacts tab clear of order fields. */
#manualOrderForm:has(#favoriteRail){padding-right:24px}
#favoriteRail.favorite-rail{box-sizing:border-box;width:22px;padding:44px 2px 4px}
#favoriteRail .favorite-rail-header{left:1px;right:1px}
#favoriteRail .favorite-rail-header #favoriteRailToggle{width:18px;min-width:18px;height:28px;min-height:28px;font-size:16px;padding:0}
#favoriteRail.favorite-rail:is(.open,:hover,:focus-within){width:min(260px,calc(100vw - 24px));padding:44px 12px 12px}
#favoriteRail:is(.open,:hover,:focus-within) .favorite-rail-header{left:8px;right:8px}
#favoriteRail:is(.open,:hover,:focus-within) .favorite-rail-header #favoriteRailToggle{width:26px;min-width:26px;font-size:20px}

.order-summary-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
.order-summary-actions button{min-height:34px;padding:6px 10px;font-size:12px}
.order-change-table{width:100%;border-collapse:collapse;table-layout:fixed}
.order-change-table th[scope=row]{width:30%;font-weight:500;text-align:left;color:var(--muted);background:var(--bg)}
.order-change-table th,.order-change-table td{vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
body .main>#content.content:has(>#inlineProjectFiles){height:calc(100dvh - var(--platform-header-height,58px) - var(--platform-footer-height,0px));max-width:none;min-height:0;padding:8px 12px 0;display:flex;flex-direction:column;overflow:hidden}
body:has(.inline-document-frame) #content>.heading:empty{display:none}
body:has(.inline-document-frame) .inline-document-frame{flex:1 1 0;height:auto;min-height:0;margin:0;border-radius:8px 8px 0 0}
@media(max-width:650px){.order-summary-actions{gap:6px}.order-change-table th[scope=row]{width:38%}body .main>#content.content:has(>#inlineProjectFiles){padding:6px 8px 0}}

body:has(.inline-document-frame) .layout>.main{height:100dvh;min-height:0;padding-bottom:0;overflow:hidden}

.manual-section .manual-operations{margin-top:8px;padding-top:8px}
.manual-section .manual-operations>summary{margin-bottom:4px}
.manual-section .manual-operations .operation{margin-top:0;padding:8px 0}
.manual-operations .operation>.row:first-child{margin-top:0;gap:8px}
.manual-operations .operation>.row:first-child>h3{font-size:13px;line-height:1.4}
.manual-operations .operation>p{margin:4px 0 0;font-size:12px;line-height:1.4}
.manual-operations .operation>.operation-actions{margin-top:6px;gap:6px}

.work-order>header>div{font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;align-items:center}
.work-order>header>div :is(small,h2,p){font-family:inherit;font-size:14px;font-weight:600;line-height:1.4}
#modal:has(.work-stage-summary){width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:18px 20px;overflow:auto}
.work-stage-summary>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.work-stage-summary>header>div{min-width:0}.work-stage-summary>header small{font-size:12px;color:var(--muted)}
.work-stage-summary h2{font-size:18px;margin:4px 0 0;overflow-wrap:anywhere}
.work-stage-summary>header>button{min-height:32px;padding:5px 10px;font-size:12px;flex-shrink:0}
.work-stage-state{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 12px;font-size:13px}
.work-stage-facts{display:grid;grid-template-columns:1.4fr 1.2fr 1fr;gap:10px 14px;margin:0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.work-stage-facts>div{min-width:0}.work-stage-facts dt{font-size:11px;color:var(--muted);margin-bottom:3px}.work-stage-facts dd{margin:0;font-size:13px;overflow-wrap:anywhere}
.work-stage-summary p{font-size:12px;line-height:1.5;margin:10px 0 0;overflow-wrap:anywhere}
.work-stage-dependencies,.work-stage-participants{color:var(--muted)}
.work-stage-waiting{padding:8px 10px;background:#fff7dc;border-radius:6px;color:#785918}
.work-stage-summary>footer{margin-top:14px;display:flex}
.work-stage-problem{background:#c43d43;border:1px solid #c43d43;color:#fff;min-height:34px;padding:6px 14px;font-size:13px}
.work-stage-problem:hover{background:#aa2f35;border-color:#aa2f35;color:#fff}
@media(max-width:550px){#modal:has(.work-stage-summary){padding:14px}.work-stage-facts{grid-template-columns:1fr 1fr}.work-stage-facts>div:last-child{grid-column:1/-1}}

#adminApp .main>#content.content{width:100%;max-width:none;padding:10px 14px;margin:0}
#adminApp .heading.page-actions{display:flex;justify-content:flex-start;gap:8px;margin:0 0 10px}
#adminApp .heading.page-actions:empty{display:none}
#adminApp .admin-header>.workspace-title{font-size:16px;font-weight:650;color:var(--text);line-height:1.3;text-align:center;flex:1;min-width:0}
#adminApp .admin-user-filters{grid-template-columns:minmax(230px,1.5fr) repeat(5,minmax(110px,1fr));gap:8px 10px;padding:10px 12px;margin-bottom:10px;align-items:end}
#adminApp .admin-user-filters label{font-size:11px}
#adminApp .admin-user-filters :is(input,select){height:34px;min-height:34px;font-size:13px;margin-top:3px;padding:6px 9px;border:1px solid var(--line);border-radius:7px}
#adminApp .admin-user-filter-footer{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px;font-size:12px}
#adminApp .admin-user-filter-footer>span{margin-right:auto}
#adminApp .admin-user-filter-footer button{min-height:34px;padding:6px 10px;font-size:12px}
@media(max-width:1150px){#adminApp .admin-user-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#adminApp .main>#content.content{padding:8px}#adminApp .admin-user-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}#adminApp .admin-user-filters>label:first-child{grid-column:1/-1}#adminApp .admin-user-filters :is(input,select){height:40px;min-height:40px;font-size:16px}#adminApp .admin-user-filter-footer{flex-wrap:wrap}#adminApp .admin-user-filter-footer>span{width:100%}#adminApp .admin-header>.workspace-title{font-size:14px}}

.work-order>header>.work-order-toggle,.work-order>header>.work-order-toggle :is(small,h2,p){font-weight:700}
.work-order-toggle{cursor:pointer;border-radius:5px;flex:1;min-height:32px}
.work-order-toggle:focus-visible{outline:2px solid var(--blue,#3568ad);outline-offset:3px}
.work-order-toggle::before{content:'▾';color:var(--muted);font-size:14px}
.work-order-toggle[aria-expanded=false]::before{content:'▸'}
.work-order-content[hidden]{display:none}
.work-filters.overview-filter-row{display:flex;flex-wrap:nowrap;overflow-x:auto;align-items:end}
.work-filters.overview-filter-row>label{flex:1 0 125px}.work-filters.overview-filter-row>label:first-child{flex-basis:195px}
.work-filters.overview-filter-row>button{flex-shrink:0;white-space:nowrap}
#workProblemForm textarea{min-height:110px}

.chat-header{flex-wrap:wrap}
.chat-dialog-tools{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0;max-width:100%}
.chat-dialog-search{margin:0;min-width:130px;max-width:260px;flex:1}
.chat-dialog-tools input{margin:0;width:100%;min-width:0;height:34px;font-size:13px}
.chat-dialog-tools button{white-space:nowrap;min-height:34px;font-size:12px;padding:6px 10px}
.chat-start-state,.chat-dialog-no-matches{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;min-height:200px;margin:auto;padding:28px 16px;color:var(--muted)}
.chat-start-state strong,.chat-dialog-no-matches strong{font-size:18px;color:var(--text)}
.chat-start-state p,.chat-dialog-no-matches p{margin:0;max-width:430px;line-height:1.6;font-size:13px}
.chat-start-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#edf3fc;color:#3568ad;font-size:30px}
.chat-bubble[hidden],.chat-start-state[hidden],.chat-dialog-no-matches[hidden],.chat-dialog-search-count[hidden]{display:none}
.chat-dialog-search-count{margin:0;color:var(--muted);font-size:12px}
.chat-message-located{outline:2px solid #3568ad;outline-offset:3px}
.chat-files-dialog{width:min(1000px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 40px);padding:20px;border:1px solid var(--line);border-radius:12px;color:var(--text);box-sizing:border-box}
.chat-files-dialog::backdrop{background:rgba(23,34,53,.35)}
.chat-files-dialog>header{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:14px}
.chat-files-dialog h2{margin:0;font-size:18px}.chat-files-dialog header p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.chat-files-list{max-height:65dvh;overflow:auto;margin-top:12px}
.chat-files-list table{width:100%;border-collapse:collapse;font-size:13px}
.chat-files-list th,.chat-files-list td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top}
.chat-files-list td:first-child{min-width:170px;overflow-wrap:anywhere}.chat-files-list small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.chat-files-list button{white-space:nowrap;padding:6px 9px;min-height:32px;font-size:12px}
@media(max-width:1100px){.chat-header{flex-wrap:wrap}.chat-dialog-tools{flex-basis:100%;margin-left:0}.chat-dialog-search{max-width:none}}
.topbar>.workspace-title.platform-title-bounded{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip}
.workspace-title-text{display:inline-block;white-space:nowrap;vertical-align:bottom;max-width:none}
.workspace-title.is-overlong{text-align:left!important}
.workspace-title.is-overlong>.workspace-title-text{animation:platform-title-scroll var(--title-duration,12s) linear infinite alternate}
.workspace-title:is(:hover,:focus-within)>.workspace-title-text{animation-play-state:paused}
.workspace-title.platform-title-bounded:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}
.platform-title-tooltip{position:fixed;z-index:10000;max-width:min(680px,calc(100vw - 24px));padding:10px 14px;border:1px solid var(--line,#dce3eb);border-radius:7px;background:#17283f;color:#fff;box-shadow:0 5px 18px #17223533;font:500 14px/1.5 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere;pointer-events:none}
.platform-title-tooltip[hidden]{display:none}
@keyframes platform-title-scroll{0%,12%{transform:translateX(0)}88%,100%{transform:translateX(var(--title-travel,0))}}
@media(min-width:651px){.topbar:has(>.platform-title-bounded){flex-wrap:nowrap;height:58px;min-height:58px}.topbar>.workspace-title.platform-title-bounded{position:absolute;left:var(--title-left,100px);right:var(--title-right,450px);top:50%;bottom:auto;max-width:none;width:auto;transform:translateY(-50%);margin:0}.topbar>.header-actions{margin-left:auto;flex-shrink:0;width:auto}}
@media(prefers-reduced-motion:reduce){.workspace-title.is-overlong>.workspace-title-text{animation:none}}
@media(max-width:650px){.chat-files-dialog{padding:12px;width:calc(100vw - 16px);max-height:calc(100dvh - 20px)}.chat-dialog-tools{gap:6px}.chat-dialog-tools input{font-size:16px;height:40px}.chat-dialog-tools button{min-height:40px}.chat-files-list{max-height:65dvh}}

/* The file history uses all available vertical space; only its list scrolls. */
.chat-files-dialog{height:100dvh;max-height:100dvh;margin:0 auto;border-radius:0;overflow:hidden}.chat-files-dialog[open]{display:flex;flex-direction:column}.chat-files-dialog>header,.chat-files-dialog>input{flex-shrink:0}.chat-files-dialog>.chat-files-list{flex:1;min-height:0;max-height:none;overflow-y:auto}
.chat-forward-dialog{width:min(680px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:white}.chat-forward-dialog::backdrop{background:#17223570}.chat-forward-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 62px);min-height:0}.chat-forward-dialog header{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-shrink:0}.chat-forward-dialog h2{font-size:18px;margin:0}.chat-forward-dialog header p{font-size:12px;color:var(--muted);margin:6px 0 10px}.chat-forward-source{border-left:3px solid var(--blue);background:var(--blueSoft,#eaf2ff);border-radius:4px;padding:8px 10px;margin:0 0 10px;max-height:150px;overflow:auto;flex-shrink:0}.chat-forward-source p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:5px 0}.chat-forward-source small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.chat-forward-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow-y:auto;min-height:100px;max-height:360px;padding:8px 0}.chat-forward-contact{display:flex;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:7px;cursor:pointer;min-width:0}.chat-forward-contact:has(input:checked){border-color:var(--blue);background:var(--blueSoft,#eaf2ff)}.chat-forward-contact>input{width:auto;flex:0 0 auto}.chat-forward-contact :is(.employee-avatar,.chat-avatar){width:34px;height:34px;min-width:34px;font-size:15px}.chat-forward-contact>span:last-child{min-width:0}.chat-forward-contact strong,.chat-forward-contact small{display:block;overflow-wrap:anywhere;font-size:12px}.chat-forward-contact small{color:var(--muted);font-size:11px}.chat-forward-dialog footer{display:flex;align-items:center;gap:8px;padding-top:10px;flex-shrink:0}.chat-forward-dialog footer>span{font-size:12px;color:var(--muted);margin-right:auto}.chat-forward-dialog [data-forward-search]{flex-shrink:0}.chat-forwarded{font-size:11px;color:var(--muted);border-left:2px solid #9cb4cf;padding-left:7px;margin:3px 0 6px}.chat-message-actions .chat-forward-action{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:4px 7px;border:1px solid #c5d4e6;border-radius:5px;background:#ffffffb0;color:#285a98;font-size:11px;white-space:nowrap}.chat-forward-action svg{width:15px;height:15px;flex-shrink:0}.chat-message-actions .chat-forward-action+.chat-reply-action{margin-left:0}
@media(max-width:650px){.chat-files-dialog{height:100dvh;max-height:100dvh;margin:0 auto}.chat-forward-dialog{padding:12px}.chat-forward-list{grid-template-columns:minmax(0,1fr)}.chat-forward-dialog footer{flex-wrap:wrap}.chat-forward-dialog footer>span{flex:0 0 100%}.chat-message-actions .chat-forward-action>span{display:none}.chat-message-actions .chat-forward-action{padding:4px 6px}}

.chat-list-top{display:flex;align-items:stretch;gap:6px;width:100%;flex-shrink:0;margin-bottom:7px}.chat-sidebar-search{display:block;flex:1 1 0;min-width:0;transition:flex .18s ease}.chat-list-top .chat-new-direct{flex:1 1 0;min-width:36px;width:auto;margin:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:flex .18s ease;font-size:12px;padding:5px 7px}.chat-list-top input{width:100%;min-width:0;margin:0!important;height:36px;min-height:36px;font-size:12px}.chat-list-top .chat-new-direct{height:36px;min-height:36px}.chat-new-full{display:none}.chat-list-top:has(.chat-new-direct:hover) .chat-new-direct,.chat-list-top:has(.chat-new-direct:focus-visible) .chat-new-direct{flex:3}.chat-new-direct:is(:hover,:focus-visible) .chat-new-short{display:none}.chat-new-direct:is(:hover,:focus-visible) .chat-new-full{display:inline}.chat-list-top:has(.chat-sidebar-search:hover) .chat-sidebar-search,.chat-list-top:has(input:focus) .chat-sidebar-search{flex:4}.chat-list-top:has(input:focus) .chat-new-direct{flex:1}.chat-list-top:has(input:focus) .chat-new-short{font-size:0}.chat-list-top:has(input:focus) .chat-new-short:before{content:'＋';font-size:18px}.chat-list-tabs{display:flex;gap:4px;overflow-x:auto;flex:0 0 auto;max-width:100%;padding:0 0 6px;margin-bottom:4px;scrollbar-width:thin;overscroll-behavior-x:contain}.chat-list-tabs button{flex:0 0 auto;white-space:nowrap;font-size:11px;padding:5px 7px;min-height:30px;border:0;background:transparent;color:var(--muted)}.chat-list-tabs button[aria-pressed=true]{background:var(--blueSoft,#eaf2ff);color:var(--blue);font-weight:600;border-radius:6px}.chat-saved-entry>button{display:block!important;width:100%;text-align:left;padding:8px!important}.chat-saved-entry small{white-space:normal!important;line-height:1.4}.chat-saved-label{color:var(--blue)!important;font-size:10px!important;margin-top:4px}
.chat-pinned-bar{flex:0 0 auto;min-width:0;max-width:100%;display:flex;align-items:center;gap:8px;padding:5px 12px;background:#f5f8fd;border-bottom:1px solid var(--line)}.chat-pinned-bar>strong{font-size:11px;white-space:nowrap;color:var(--blue)}.chat-pinned-bar>div{display:flex;gap:6px;overflow-x:auto;min-width:0;scrollbar-width:thin}.chat-pinned-bar button{max-width:230px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:27px;padding:3px 7px;font-size:11px}.chat-message-actions{flex-wrap:wrap}.chat-message-actions .chat-more-action{margin-left:auto;width:28px;min-height:28px;padding:0;border:1px solid #c5d4e6;border-radius:5px;color:#285a98;background:#ffffffb0;font-size:20px;line-height:1}.chat-message-actions .chat-more-action+.chat-forward-action{margin-left:0}.chat-bubble .chat-message-meta>.chat-read-state{font-size:11px;font-weight:700;line-height:1.4;padding:0;border:0;background:transparent;min-height:0;color:#23518c;cursor:pointer;margin:0!important;white-space:nowrap}.chat-message-pinned{box-shadow:inset 3px 0 #9db6d7}.chat-message-menu{position:fixed;inset:auto;margin:0;width:220px;max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);padding:5px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 28px #17223530}.chat-message-menu::backdrop{background:transparent}.chat-message-menu>button{display:block;width:100%;text-align:left;border:0;padding:8px;min-height:34px;font-size:12px}.chat-message-menu>button:hover{background:var(--blueSoft,#eaf2ff)}.chat-feature-dialog{width:min(520px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff;color:var(--text)}.chat-feature-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.chat-feature-dialog h2{margin:0;font-size:17px}.chat-feature-body{overflow:auto;max-height:calc(100dvh - 120px);padding-top:12px}.chat-feature-body p{font-size:12px;color:var(--muted)}.chat-feature-body footer,.chat-reminder-presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.chat-feature-body input{width:100%;min-height:38px}.chat-reader{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;border-bottom:1px solid var(--line);padding:10px 0;font-size:12px}.chat-reader small{grid-column:1/-1;color:var(--muted)}.chat-reader .is-read{color:#26734a}.chat-reader .is-unread{color:var(--muted)}.chat-mention{background:#deebff;color:#24599b;font-weight:600;border-radius:3px;padding:0 2px}.chat-composer{position:relative}.chat-mention-picker{position:absolute;bottom:calc(100% + 3px);left:42px;right:44px;max-height:180px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:7px;z-index:75;box-shadow:0 -4px 22px #17223520;padding:4px}.chat-mention-picker[hidden]{display:none!important}.chat-mention-picker button{display:block;width:100%;text-align:left;border:0;padding:7px;min-height:36px}.chat-mention-picker button[aria-selected=true]{background:var(--blueSoft,#eaf2ff)}.chat-mention-picker strong,.chat-mention-picker small{display:block;font-size:12px}.chat-mention-picker small{font-size:10px;color:var(--muted)}
.chat-forward-dialog.chat-compose-dialog{width:min(1080px,calc(100vw - 32px));height:min(860px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);padding:0;overflow:hidden}.chat-forward-dialog.chat-compose-dialog form{height:100%;max-height:100%;min-height:0}.chat-forward-dialog .chat-forward-source{margin:10px 22px 0;max-height:100px}.chat-forward-dialog .chat-forward-list{display:grid;grid-auto-rows:76px;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;flex:1;max-height:none;min-height:0;padding:0 22px;overflow-y:auto;gap:8px}.chat-forward-dialog [data-forward-count]{font-size:12px;color:var(--muted);margin:10px 22px}.chat-forward-dialog .chat-forward-contact{margin:0;min-height:0}.chat-forward-dialog .chat-forward-contact .employee-avatar{width:38px;height:50px;flex:0 0 38px}.chat-forward-dialog form>footer{padding:12px 22px;border-top:1px solid var(--line);margin-top:10px}.chat-forward-dialog form>p.error{margin:5px 22px}.chat-files-dialog>header{align-items:center;flex-wrap:nowrap;gap:12px;margin-bottom:0}.chat-files-dialog>header>div{flex:0 1 auto;min-width:0}.chat-files-dialog>header>input[data-files-search]{flex:1 1 250px;min-width:100px;width:auto;margin:0;max-width:550px}.chat-files-dialog>header>[data-files-close]{flex-shrink:0}.chat-files-dialog>header h2{white-space:nowrap}.chat-files-dialog>.chat-files-list{margin-top:10px}
@media(max-width:650px){.chat-forward-dialog.chat-compose-dialog{width:calc(100vw - 16px);height:calc(var(--chat-viewport-height,100dvh) - 16px);max-height:calc(var(--chat-viewport-height,100dvh) - 16px)}.chat-forward-dialog .chat-forward-source{margin:8px 12px 0;max-height:90px}.chat-forward-dialog .chat-forward-list{grid-template-columns:minmax(0,1fr);grid-auto-rows:68px;padding:0 12px}.chat-forward-dialog form>footer{padding:10px 12px}.chat-forward-dialog [data-forward-count]{margin:8px 12px}.chat-files-dialog>header{gap:6px}.chat-files-dialog>header h2{font-size:14px}.chat-files-dialog>header p{font-size:10px}.chat-files-dialog>header>input[data-files-search]{min-width:70px;flex-basis:90px;font-size:12px!important;padding-left:26px!important}.chat-files-dialog>header>[data-files-close]{min-width:28px;padding:4px;min-height:32px}.chat-pinned-bar{padding:4px 8px}.chat-pinned-bar button{max-width:170px}.chat-pinned-bar>strong{font-size:10px}}
@media(max-width:360px){.chat-message-actions{gap:4px}.chat-message-actions .chat-reply-action{font-size:0;width:28px;padding:4px!important;gap:0}.chat-message-actions .chat-download-all{padding:4px!important}}
@media(prefers-reduced-motion:reduce){.chat-sidebar-search,.chat-list-top .chat-new-direct{transition:none}}
.chat-list-top .chat-sidebar-search,.chat-list-top .chat-new-direct{flex-basis:calc(50% - 3px)}.chat-list-top:is(:hover,:focus-within) .chat-sidebar-search,.chat-list-top:is(:hover,:focus-within) .chat-new-direct{flex-basis:0}

.chat-sidebar-search{margin:0!important}.chat-files-dialog>header>div{flex:0 0 auto;max-width:40%}.chat-files-dialog>header p{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:650px){.chat-list-top input,.chat-feature-dialog input,.chat-files-dialog>header>input[data-files-search]{font-size:16px!important}.chat-files-dialog>header:has(input:focus)>div{flex:0 1 90px;overflow:hidden}.chat-files-dialog>header:has(input:focus) h2{overflow:hidden;text-overflow:ellipsis}}
.chat-list-top:has(.chat-new-direct:hover) .chat-new-direct{flex-grow:4;flex-basis:0}.chat-list-top:has(.chat-new-direct:hover) .chat-sidebar-search{flex-grow:1;flex-basis:0}
.chat-forward-dialog .chat-forward-contact :is(.employee-avatar,.chat-avatar){width:38px;height:57px;min-width:38px;flex:0 0 38px;aspect-ratio:2/3;object-fit:cover}
.chat-message-actions :is(.chat-more-action,.chat-forward-action,.chat-reply-action){height:24px!important;min-height:24px!important;padding-top:2px!important;padding-bottom:2px!important}.chat-message-actions .chat-more-action{line-height:20px}
.chat-bubble .chat-message-actions .chat-reply-action,.chat-file-tile .chat-file-actions .chat-file-preview,.chat-file-tile .chat-file-actions .chat-file-download{box-sizing:border-box;height:22px!important;min-height:22px!important;max-height:22px!important;padding:1px 6px!important;line-height:18px!important}.chat-file-tile .chat-file-actions{min-height:22px}
.chat-bubble .chat-message-actions .chat-download-all,.chat-files-message>.chat-download-all{box-sizing:border-box;height:22px!important;min-height:22px!important;max-height:22px!important;padding:1px 6px!important;line-height:18px!important}.chat-bubble:has(.chat-file-tiles>.chat-file-tile:only-child){min-width:min(360px,100%)}.chat-bubble .chat-file-tiles>.chat-file-tile:only-child{flex:1 1 320px;width:320px;max-width:100%}.chat-bubble .chat-file-tiles>.chat-file-tile:only-child .chat-file-thumbnail{height:160px}@media(max-width:650px){.chat-bubble:has(.chat-file-tiles>.chat-file-tile:only-child){min-width:0;width:88%;max-width:88%}.chat-bubble .chat-file-tiles>.chat-file-tile:only-child .chat-file-thumbnail{height:auto;aspect-ratio:2/1}}
.chat-bubble:has(.chat-file-group){padding-top:8px;padding-bottom:8px}.chat-bubble .chat-file-group{margin:3px 0}.chat-bubble .chat-file-tile{padding:5px;gap:3px}.chat-bubble .chat-file-thumbnail{height:64px}.chat-bubble .chat-file-tiles>.chat-file-tile:only-child .chat-file-thumbnail{height:128px}.chat-bubble:has(.chat-file-group) .chat-message-meta{margin-bottom:2px}.chat-bubble:has(.chat-file-group) .message-body:empty{display:none}.chat-bubble:has(.chat-file-group) .chat-message-actions{margin-top:3px;min-height:24px}.chat-bubble .chat-file-tiles{padding-bottom:0}@media(max-width:650px){.chat-bubble .chat-file-tiles>.chat-file-tile:only-child .chat-file-thumbnail{height:auto;aspect-ratio:5/2}}
.chat-bubble .chat-message-meta>.chat-read-state{color:#23518c}.chat-bubble .chat-message-meta>.chat-read-state.is-read{color:#26834a}.chat-stream .chat-bubble{padding:8px 10px}.chat-bubble .chat-message-meta{margin-bottom:2px}.chat-bubble .message-body{line-height:1.4}.chat-bubble .message-body p{margin:2px 0}.chat-bubble .message-body:empty{display:none}.chat-bubble .chat-quote{margin:3px 0;padding:4px 7px}.chat-bubble .chat-message-actions{margin-top:3px;min-height:24px}.chat-bubble .chat-forwarded{margin:2px 0 4px}
.chat-list-tabs{padding-top:0;padding-bottom:2px;margin-top:0;margin-bottom:2px;gap:3px}.chat-list-tabs button{min-height:25px;height:25px;padding:2px 6px;line-height:19px}.chat-list-tabs button:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}.chat-list-top{margin-bottom:3px}
.chat-list-tabs{padding:0;margin:0;gap:2px}.chat-list-tabs button{height:21px;min-height:21px;padding:0 5px;line-height:19px}.chat-list-top{margin-bottom:1px}
.chat-list{gap:2px}.chat-list-tabs{margin:0;padding:0}.chat-list-tabs button{height:25px;min-height:25px;padding:2px 6px;line-height:19px}.chat-list-top{margin-bottom:0}

.shared-note-count{background:#c83240;color:white;border-radius:10px;padding:1px 5px;font-size:11px;margin-left:5px}.shared-note-count[hidden]{display:none}.note-preview.note-unread{box-shadow:inset 3px 0 #c83240;background:#eef5ff}

.note-editor:has(>.note-empty-state){display:flex;align-items:center;justify-content:center;min-height:420px}.note-empty-state{box-sizing:border-box}.note-empty-state .chat-empty-icon{flex:0 0 60px}

/* Document cards and notes use the shared platform controls and colors. */
#materialCards{align-items:start;align-content:start;grid-auto-rows:max-content;gap:12px}
#materialCards>.material-card{height:auto;min-height:0;padding:14px;gap:6px}
#materialCards>.material-card p{margin:2px 0}
#materialCards>.material-card>.row{margin-top:6px;gap:6px}
#materialCards>.material-card>.row :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;font-size:12px;line-height:20px;white-space:nowrap;border:1px solid var(--line);border-radius:6px;background:var(--card,#fff);color:var(--text);text-decoration:none}
#materialCards>.material-card>.row :is(button,a):hover{color:var(--blue);border-color:var(--blue);background:var(--blueSoft,#edf4ff)}
.notes-workspace{background:var(--card,#fff);border-color:var(--line)}
.notes-workspace>.notes-list{background:var(--bg);border-color:var(--line)}
.notes-workspace .notes-accent{color:var(--blue);background:var(--card,#fff);border:1px solid var(--line);border-radius:6px}
.notes-workspace .note-scopes button.active{background:var(--blueSoft,#edf4ff)!important;color:var(--blue)!important}
.notes-workspace .note-list-item.selected{background:var(--blueSoft,#edf4ff)}
.notes-workspace .note-preview.selected{background:var(--blueSoft,#edf4ff)!important;color:var(--text)}
.notes-workspace .note-preview:hover{background:var(--blueSoft,#edf4ff)!important}
.notes-workspace .note-preview small,.notes-workspace .note-date-group h3{color:var(--muted)}
.notes-workspace .note-editor{background:var(--card,#fff);color:var(--text)}
.notes-workspace :is(input,textarea,select){color:var(--text);accent-color:var(--blue)}
.notes-workspace .note-preview.note-unread{background:var(--blueSoft,#edf4ff)!important;box-shadow:inset 3px 0 var(--blue)}

/* PIN entry follows the platform card, control and focus styles. */
.shop-login.wpf-pin-panel{width:calc(100% - 32px);max-width:400px;margin:clamp(20px,6vh,64px) auto;padding:24px;background:var(--card,#fff);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);font-family:inherit}
.shop-login.wpf-pin-panel .shop-pin-brand{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line);gap:12px}
.shop-login.wpf-pin-panel .shop-pin-brand img{width:130px;max-width:52%}
.shop-login.wpf-pin-panel h1{font-size:21px;line-height:1.3;font-weight:600;margin:0 0 6px}
.shop-login.wpf-pin-panel>p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 18px}
.shop-login.wpf-pin-panel form{gap:10px}
.shop-login.wpf-pin-panel .pin-label>span:first-child{color:var(--muted);font-size:12px}
.shop-login.wpf-pin-panel .pin-entry{margin-top:8px}
.shop-login.wpf-pin-panel .pin-boxes{gap:8px}
.shop-login.wpf-pin-panel .pin-boxes>span{height:54px;border-radius:6px;border-color:var(--line);background:var(--bg)}
.shop-login.wpf-pin-panel .pin-boxes>span.filled{background:var(--blueSoft,#edf4ff);border-color:var(--blue)}
.shop-login.wpf-pin-panel .pin-entry:focus-within .pin-boxes{outline:2px solid var(--blue);outline-offset:3px;border-radius:6px}
.shop-login.wpf-pin-panel .pin-error{color:var(--red);font-size:12px;min-height:17px}
.shop-login.wpf-pin-panel .pin-keypad{gap:8px}
.shop-login.wpf-pin-panel .pin-keypad button{height:54px;min-height:48px;border:1px solid var(--line);border-radius:6px;background:var(--card,#fff);color:var(--text);font-family:inherit;font-size:22px;font-weight:500;line-height:1.2;padding:8px}
.shop-login.wpf-pin-panel .pin-keypad button:hover{background:var(--blueSoft,#edf4ff);border-color:var(--blue);color:var(--blue)}
.shop-login.wpf-pin-panel .pin-keypad button:active{background:var(--blueSoft,#edf4ff);border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.shop-login.wpf-pin-panel .shop-pin-brand button,.shop-login.wpf-pin-panel .pin-actions button{font-family:inherit;font-size:13px;font-weight:400;border-radius:6px;line-height:20px}
.shop-login.wpf-pin-panel .shop-pin-brand button{min-height:34px;padding:6px 10px;background:var(--card,#fff);color:var(--text);border:1px solid var(--line)}
.shop-login.wpf-pin-panel .pin-actions{gap:8px;margin-top:6px}
.shop-login.wpf-pin-panel .pin-actions button{height:40px;min-height:40px;padding:9px 12px}
.shop-login.wpf-pin-panel .close-button{background:var(--card,#fff);color:var(--text);border:1px solid var(--line)}
.shop-login.wpf-pin-panel .confirm-pin{background:var(--blue);color:#fff;border:1px solid var(--blue)}
.shop-login.wpf-pin-panel .confirm-pin:disabled{opacity:.45;cursor:not-allowed}
.shop-login.wpf-pin-panel button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:650px){.shop-login.wpf-pin-panel{width:calc(100% - 24px);margin:16px auto;padding:20px}.shop-login.wpf-pin-panel .shop-pin-brand{margin-bottom:16px;padding-bottom:12px}}

.note-members-dropdown{position:relative;min-width:0;color:var(--text)}
.note-members-dropdown>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;gap:5px;border:1px solid var(--line);border-radius:6px;background:var(--card,#fff);font-size:12px;line-height:20px;cursor:pointer;white-space:nowrap}
.note-members-dropdown>summary::-webkit-details-marker{display:none}
.note-members-dropdown>summary:hover,.note-members-dropdown[open]>summary{background:var(--blueSoft,#edf4ff);border-color:var(--blue);color:var(--blue)}
.note-members-dropdown>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.note-members-list{position:absolute;top:calc(100% + 6px);right:0;width:300px;max-width:calc(100vw - 48px);max-height:280px;overflow-y:auto;overscroll-behavior:contain;background:var(--card,#fff);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #17223520;padding:5px;z-index:12}
.note-member{display:flex;align-items:center;gap:9px;padding:8px;border-bottom:1px solid var(--line)}
.note-member:last-child{border-bottom:0}.note-member>span:last-child{min-width:0}.note-member strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.note-member small{display:block;font-size:11px;color:var(--muted)}
.note-member-initial{display:grid;place-items:center;width:28px;height:42px;flex:0 0 28px;border-radius:5px;background:var(--blueSoft,#edf4ff);color:var(--blue);font-size:16px;font-weight:600}
@media(max-width:650px){.note-members-list{right:auto;left:0;width:min(260px,calc(100vw - 48px))}}

/* Navigation counters stay anchored to the upper right corner. */
[data-group="management"],[data-view="notes"],.workspace-flyout>[data-destination="notes"]{position:relative}
[data-group="management"]>.shared-note-count,[data-view="notes"]>.shared-note-count,.workspace-flyout>[data-destination="notes"]>.shared-note-count{position:absolute;top:5px;right:8px;bottom:auto;left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;margin:0;border-radius:99px;background:var(--red,#c83240);color:#fff;font-size:10px;font-weight:700;line-height:17px;pointer-events:none;box-sizing:border-box}
.workspace-flyout>[data-destination="notes"]>.shared-note-count{top:9px;right:12px}
.workspace-flyout>[data-destination="notes"]{padding-right:40px}
[data-group="management"]>.shared-note-count[hidden],[data-view="notes"]>.shared-note-count[hidden],.workspace-flyout>[data-destination="notes"]>.shared-note-count[hidden]{display:none}

@media(max-width:700px){
 .work-order>header{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .work-order>header>.work-order-toggle{position:relative;display:block;flex:none;width:100%;min-width:0;padding-left:16px}
 .work-order-toggle::before{position:absolute;top:0;left:0}
 .work-order>header>.work-order-toggle :is(small,h2,p){display:block;width:100%;max-width:100%;margin:0;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.45}
 .work-order>header>.work-order-toggle h2{margin:3px 0;font-size:14px}
 .work-order>header>.work-order-toggle :is(small,p){font-size:12px}
 .work-order>header>.row{display:flex;flex-wrap:wrap;align-items:stretch;width:100%;gap:6px}
 .work-order>header>.row>button{flex:1 1 140px;min-width:0;white-space:normal;line-height:1.35;padding:7px 8px}
 .work-filters.overview-filter-row{display:block;overflow:visible;min-width:0;padding:10px;margin-bottom:8px}
 .work-filters.overview-filter-row>label{display:block;width:100%;min-width:0;margin:0}
 .work-filters.overview-filter-row :is(input,select){width:100%;max-width:100%;font-size:16px}
 .work-filters.overview-filter-row .mobile-filter-fields>button{width:100%;white-space:normal}
}

/* Employee-card chat: one aligned header including the close action. */
dialog.social-chat-modal.employee-chat{width:min(1200px,calc(100vw - 32px))}
.social-chat-modal.employee-chat .chat-header>.employee-chat-close{position:static!important;top:auto;right:auto;align-self:center!important;margin:0!important;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0}
@media(min-width:801px){
.social-chat-modal.employee-chat .chat-header{display:grid!important;grid-template-columns:auto minmax(130px,1fr) auto auto 36px;align-items:center;flex-wrap:nowrap;gap:10px;padding:12px!important}
.social-chat-modal.employee-chat .chat-header>div:has(>h2){min-width:0}
.social-chat-modal.employee-chat .chat-header h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.social-chat-modal.employee-chat .chat-header-format{display:flex;align-items:center;flex-wrap:nowrap;margin:0!important;gap:6px}
.social-chat-modal.employee-chat .chat-dialog-tools{display:flex;align-items:center;flex-wrap:nowrap;flex-basis:auto;margin:0;gap:8px}
.social-chat-modal.employee-chat .chat-dialog-search{width:clamp(130px,17vw,230px);max-width:230px;margin:0}
.social-chat-modal.employee-chat .chat-header button,.social-chat-modal.employee-chat .chat-header select,.social-chat-modal.employee-chat .chat-header input{height:36px;min-height:36px;margin:0}
}
@media(max-width:800px){dialog.social-chat-modal.employee-chat{width:calc(100vw - 12px)}.social-chat-modal.employee-chat .chat-header{grid-template-columns:auto 32px minmax(0,1fr) auto auto auto 36px}.social-chat-modal.employee-chat .chat-header>.employee-chat-close{grid-column:7;grid-row:1}}

.chat-list-tabs[aria-label="Разделы сообщений"]{gap:0;align-items:center}
.chat-list-tabs[aria-label="Разделы сообщений"]>button{position:relative;display:inline-flex;align-items:center;gap:4px;padding-left:7px;padding-right:7px;min-height:27px;height:auto;flex-shrink:0}
.chat-list-tabs[aria-label="Разделы сообщений"]>button+button{margin-left:5px}
.chat-list-tabs[aria-label="Разделы сообщений"]>button+button:before{content:'';position:absolute;left:-3px;top:5px;bottom:5px;width:1px;background:var(--line,#dce3eb)}
.chat-list-tabs .chat-scope-unread{display:inline-flex;justify-content:center;align-items:center;min-width:16px;height:17px;padding:0 4px;border-radius:5px;font-size:10px;line-height:1;background:#edf1f6;color:var(--muted,#68778b);font-weight:500}
.chat-list-tabs .chat-scope-unread.has-unread{background:#e2edff;color:var(--blue,#3768ad);font-weight:700}

/* Room for all message sections and counters without widening the workspace. */
@media(min-width:901px){body:has(.chat-layout) .chat-layout{grid-template-columns:clamp(430px,28%,460px) minmax(0,1fr)}}
@media(min-width:651px) and (max-width:900px){body:has(.chat-layout) .chat-layout{grid-template-columns:420px minmax(0,1fr)}}
.chat-list-tabs[aria-label="Разделы сообщений"]>button{gap:3px;padding-left:4px;padding-right:4px;font-size:10.5px;min-height:25px}
.chat-list-tabs[aria-label="Разделы сообщений"]>button+button{margin-left:3px}
.chat-list-tabs[aria-label="Разделы сообщений"]>button+button:before{left:-2px}
.chat-list-tabs[aria-label="Разделы сообщений"] .chat-scope-unread{min-width:14px;height:16px;padding:0 3px;font-size:10px}

@media(min-width:651px){
.chat-header>.chat-header-format{flex:0 0 auto;flex-wrap:nowrap!important;white-space:nowrap;gap:6px;margin:0!important}
.chat-header>.chat-header-format>button,.chat-header>.chat-header-format>select{flex:none;margin:0;height:34px;min-height:34px}
.chat-header>.chat-header-format>select[name=font]{width:124px;max-width:124px}
.chat-header>.chat-header-format>select[name=fontSize]{width:48px;max-width:48px}
.chat-header>div:has(>h2){min-width:0;flex:1 1 180px}
.chat-header>div>h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
