/* ZED Motors palette; Bitrix-inspired structure and system typography are unchanged. */
:root{--zed-red:#d84250;--zed-graphite:#0c0f12;--zed-surface:#181e25;--zed-line:#343c46;--zed-white:#f4f5f6;--b24-primary:#c63543;--b24-link:#ad3041;--b24-ink:#181e25;--b24-muted:#626b77;--b24-line:#dce0e4;--b24-panel:#f4f5f6;--rd-action:#c63543;--rd-ink:#181e25;--rd-muted:#626b77;--rd-line:#dce0e4;--rd-soft:#faedef;--ui-action:#c63543;--ui-ink:#181e25;--ui-muted:#626b77}
body.b24-theme{background:var(--zed-white);color:var(--zed-surface);caret-color:var(--zed-red)}
body.b24-theme #app>.sidebar{background:var(--zed-graphite);color:var(--zed-white);border-right:1px solid #20262d;scrollbar-color:#4b535d transparent}
body.b24-theme .sidebar .logo{border-bottom-color:#2b3139;background:transparent}
body.b24-theme .sidebar nav>a{color:#dde1e7;background:transparent}
body.b24-theme .sidebar nav>a:hover{background:#232930;color:#fff}
body.b24-theme .sidebar nav>a.active{background:#312127;color:#fff}
body.b24-theme .sidebar nav>a>svg{color:#b9c2cd}
body.b24-theme .sidebar nav>a.active>svg{color:#ee939e}
body.b24-theme .sidebar .section-card-count{background:#29313a;color:#e8edf3}
body.b24-theme .sidebar nav>a.active .section-card-count{background:#56303a;color:#ffe6eb}
body.b24-theme .b24-nav-group{color:#a8b1bd}
body.b24-theme .sidebar .sidefoot{border-color:#2b3139;color:#f4f5f6}
body.b24-theme .sidebar .sidefoot small{color:#a8b1bd}
body.b24-theme .sidebar .sidefoot button{color:#d4dbe4}
body.b24-theme .sidebar :is(.cabinet-role,.cabinet-role-badge){background:#272d34;color:#edf1f6;border-color:#343c46}
body.b24-theme .sidebar :is(.cabinet-role,.cabinet-role-badge)>svg{color:#c7cfd9}
.b24-theme .b24-appbar{background:#f8f9fa;border-color:#dde1e5;color:#4f5864}
.b24-theme .b24-space>strong{color:#181e25}
.b24-theme .b24-space>span{color:#626b77;border-color:#d9dde2}
.b24-theme .b24-quick-search{border-color:#dce0e4;color:#626b77}
.b24-theme .b24-quick-search:hover{border-color:#bd7b85}
.b24-theme .b24-quick-search>kbd{color:#66717e;border-color:#dde1e6}
.b24-theme .b24-avatar{background:#f4e5e9;color:#ad3041}
.b24-theme .b24-profile-button{color:#181e25}
.b24-theme .b24-profile-button small{color:#626b77}
.b24-theme .b24-profile-menu button:hover{background:#faedef}
body.b24-theme .pagehead h1{color:#181e25}
body.b24-theme .pagehead>div>p{color:#626b77}
body.b24-theme .primary{background:#c63543;border-color:#c63543;color:#fff}
body.b24-theme .primary:hover{background:#ad3041;border-color:#ad3041}
body.b24-theme .secondary{border-color:#cfd4da;color:#4f5a68;background:#fff}
body.b24-theme .secondary:hover{border-color:#b79ba3;background:#faf4f6}
body.b24-theme :is(input,textarea,select):focus{border-color:#d97884;outline-color:#d8425028}
body.b24-theme .view-switch button.selected{border-bottom-color:#d84250;color:#ad3041}
body.b24-theme .view-switch button:hover{background:#faf0f2}
body.b24-theme .table-title{color:#ad3041}
body.b24-theme :is(.request-table,.vehicle-list-table) thead th{background:#f4f5f6;color:#626b77;border-color:#dce0e4}
body.b24-theme :is(.request-table,.vehicle-list-table) tbody tr:hover{background:#fcf6f7}
body.b24-theme .compact-vehicle-card .vehicle-option-actions .vehicle-details{color:#ad3041}
body.b24-theme .compact-vehicle-card .vehicle-option-actions .vehicle-details:hover{color:#982b3b;background:#faedef}
body.b24-theme .compact-vehicle-card .vehicle-option-meta .vehicle-price{color:#20262e}
body.b24-theme .vehicle-options-grid .vehicle-add-placeholder{border-color:#d7c7cc;background:#faf8f9;color:#8f4857}
body.b24-theme .vehicle-options-grid .vehicle-add-placeholder:hover{border-color:#bd7b85;background:#fbf0f3}
body.b24-theme .board-empty{border-color:#d8dde2;background:#f8f9fa;color:#626b77}
body.b24-theme .vehicle-workspace .vehicle-navigation-rail{background:#f5f6f7;border-color:#dce0e4}
body.b24-theme .vehicle-workspace-tabs button.selected{color:#ad3041;background:#faedef;border-color:#e3bfc7}
body.b24-theme .vehicle-workspace-tabs button:hover{background:#f9edef}
body.b24-theme .ux-timeline-navigation .ux-timeline>li.is-current{background:#fae9ed;color:#a52f41}
body.b24-theme .deal-workspace-dialog>.ux-timeline-navigation .ux-timeline>li.is-current{background:#fae9ed;color:#a52f41}
body.b24-theme .deal-workspace-dialog .deal-status-text{color:#626b77}
body.b24-theme .crm-next-task:not(.is-compact){background:#f5f6f7;border-color:#dde1e5;color:#4b5764}
body.b24-theme .crm-task-jump{color:#ad3041}
body.b24-theme .vehicle-primary-slot .vehicle-book.booking-white{border-color:#d6c4ca;color:#9f3446;background:#fff}
body.b24-theme .variant-price{color:#181e25}
body.b24-theme .variant-specs a,body.b24-theme .option-links a,body.b24-theme .dealer-original a,body.b24-theme .variant-notes a{color:#ad3041}
body.b24-theme .vehicle-workspace .variant-specs .field-discuss{color:#9f3446}
body.b24-theme .chat-audience-tabs button.selected{color:#ad3041;background:#fff}
body.b24-theme .chat-thread.selected,body.b24-theme .ux-request-thread.selected,body.b24-theme .ux-vehicle-thread.selected{background:#f8e9ed}
body.b24-theme .chat-messages{background:#f4f5f7}
body.b24-theme .chat-message.own .message-bubble{background:#f8e9ed}
body.b24-theme .quick-chat-heading{background:#f7f7f8;border-color:#dde1e5;color:#181e25}
body.b24-theme .quick-chat-widget{border-color:#d6dce2;box-shadow:0 14px 44px #181e2526}
body.b24-theme .chat-send,body.b24-theme .tg-send{background:#c63543;border-color:#c63543;color:#fff}
body.b24-theme .chat-send:hover,body.b24-theme .tg-send:hover{background:#ad3041}
body.b24-theme .b24-command-search>svg{color:#ad3041}
body.b24-theme .b24-command-results>button:hover,body.b24-theme .b24-command-results>button:focus-visible{background:#faedef}
body.b24-theme .b24-command-dialog{color:#181e25;border-color:#dce0e4}
body.b24-theme .b24-tool-button[aria-expanded=true]{color:#ad3041;border-color:#dba3ae;background:#fcf0f3}
body.b24-theme .b24-saved-filter-list button:hover,body.b24-theme .b24-context-popover>button:hover,body.b24-theme .b24-context-popover>button:focus{background:#faedef;color:#ad3041}
body.b24-theme .b24-workspace-popover :focus-visible,body.b24-theme .b24-card-menu:focus-visible,body.b24-theme .b24-tool-button:focus-visible{outline-color:#d84250}
body.b24-theme ::selection{background:#f4ccd3;color:#6b2330}
body.b24-theme :focus-visible{outline-color:#d84250}
body.b24-theme .b24-column-options label:hover{background:#faf0f2}
body.b24-theme .b24-mobile-view-select{border-color:#cfd4da;color:#4f5a68;background-color:#fff}
body.b24-theme .publication-draft-note{background:#f7f3f5;border-color:#e0d5da;color:#73535f}
body.b24-theme .vehicle-source-links input:focus{border-color:#d97884}
body.b24-theme a:not(.logo):not(.sidebar nav a){color:#ad3041}
body.b24-theme .workflow-tile .tile-comment .crm-next-task.is-compact{color:#53606c}
body.b24-theme .request-car-count:not(.has-cars){color:#626b77}
body.b24-theme .chat-welcome{background:#f4f5f6;color:#626b77}
body.b24-theme .chat-welcome strong{color:#343c46}
body.b24-theme .chat-welcome p{color:#626b77}
body.b24-theme .ux-request-number,body.b24-theme .ux-request-thread>small,body.b24-theme .ux-vehicle-thread>small{color:#626b77}
body.b24-theme .unread-badge{background:#c63543;color:#fff}
body.b24-theme .chat-count{background:#c63543;color:#fff}
body.b24-theme .login{grid-template-columns:204px minmax(0,1fr)}
body.b24-theme .login .brand{background:#0c0f12}
body.b24-theme .login-content{background:#f4f5f6}
body.b24-theme .login-card{border-color:#dce0e4;border-radius:8px;box-shadow:none}
body.b24-theme .login-card h1{font-size:24px;font-weight:400;color:#181e25}
body.b24-theme .login-card>p:not(.form-error){color:#626b77}
body.b24-theme .login-card label{font-size:12px;font-weight:500;color:#4f5a68}
body.b24-theme .tg-filter-toggle.has-filters{color:#ad3041;background:#f9ebee}
body.b24-theme .tg-filter-toggle>b{background:#c63543;color:#fff}
body.b24-theme .vehicle-price,body.b24-theme .vehicle-decision-column .variant-price{color:#181e25!important}

/* v76 audit: preserve compact cards, keep operation labels readable. */
body.b24-theme .mobile-menu-close{line-height:1;padding:0;align-items:center;justify-content:center}
.deal-workspace-dialog[data-view-section=overview]>.crm-next-task{display:none}
.ux-invoice-summary:empty{display:none}
.deal-document-info>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
@media(max-width:420px){
 :is(.deal-form-dialog,.deal-upload-dialog,.deal-booking-packet,.buyer-files-dialog) .form-actions{flex-direction:column-reverse;align-items:stretch}
 :is(.deal-form-dialog,.deal-upload-dialog,.deal-booking-packet,.buyer-files-dialog) .form-actions>button{width:100%;min-height:34px;white-space:normal}
}

.request-vehicle-distribution{font-size:11px;line-height:1.7;color:var(--b24-muted);margin:0 0 10px;overflow-wrap:anywhere}.finance-routing{font-size:12px;line-height:1.6;margin:12px 0}.finance-restore{font-size:11px;white-space:normal}

.ux-stage-help{font-size:10px;color:var(--b24-muted);display:block;margin:2px 0 6px;line-height:1.5}

/* Override the earlier drawer rule that prevented the form pane from shrinking. */
dialog.deal-workspace-dialog[open]>.deal-layout{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain}
@media(max-height:560px){
 dialog.deal-workspace-dialog[open]{overflow-y:auto}
 dialog.deal-workspace-dialog[open]>.deal-layout{flex:none;overflow:visible}
}

.compact-vehicle-card .vehicle-option-actions{grid-template-columns:minmax(0,1fr)}
.crm-partner>svg,.crm-next-task>svg{display:none}
.vehicle-workspace.is-inspection-workspace.is-report-editor[open]{inset:0 0 0 auto;margin:0;width:min(760px,calc(100vw - 96px));max-width:760px;height:100dvh;max-height:100dvh;display:block;overflow-y:auto;border-radius:16px 0 0 16px;border-left:1px solid var(--b24-line)}
.vehicle-workspace.is-report-editor>[data-car-pane=inspection]{height:auto;overflow:visible}
.is-report-editor .inspection-workspace-shell{display:block;height:auto}
.is-report-editor .inspection-context-panel{padding:12px 24px;border:0;border-bottom:1px solid var(--b24-line);overflow:visible;background:#fff}
.is-report-editor .inspection-car-navigation,.is-report-editor .inspection-panel-toggle{display:none}
.is-report-editor .inspection-context-details{display:block}
.is-report-editor .inspection-context-panel .inspection-toolbar{margin:8px 0 0}
.is-report-editor .inspection-context-panel .inspection-toolbar .view-switch{flex-direction:row;flex-wrap:wrap;gap:4px}
.is-report-editor .inspection-context-panel .inspection-toolbar button{width:auto;font-size:11px;min-height:30px;padding:5px 8px}
.is-report-editor .inspection-context-panel .inspection-pane-heading{margin:0}
.is-report-editor .inspection-material-summary{padding:8px 0;margin:8px 0 0}
.is-report-editor .inspection-reading-panel{display:block;overflow:visible}
.is-report-editor .inspection-reading-heading{padding:16px 24px 10px}
.is-report-editor .inspection-pane-body{padding:0 24px 20px;overflow:visible;max-height:none}
.is-report-editor .inspection-actions{padding:12px 24px;display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--b24-line)}
@media(max-width:650px){.vehicle-workspace.is-inspection-workspace.is-report-editor[open]{width:100vw;max-width:100vw;border-radius:0}.is-report-editor .inspection-context-panel,.is-report-editor .inspection-reading-heading,.is-report-editor .inspection-pane-body,.is-report-editor .inspection-actions{padding-left:14px;padding-right:14px}}

.chat-compose-row>[data-send]:has(.crm-icon)::after{display:none}.chat-compose-row>[data-send]>.crm-icon{width:20px;height:20px;color:#fff}
.is-report-editor .inspection-actions>div:first-child{display:flex;gap:16px;align-items:center;flex-wrap:wrap}

/* A single SVG supplies the send icon; earlier pseudo-elements must not draw another. */
body .chat-workspace .chat-conversation .chat-compose-row>button[data-send]::before,
body .chat-workspace .chat-conversation .chat-compose-row>button[data-send]::after{content:none!important;display:none!important;background:none!important}
body.b24-theme .vehicle-link-row>button.secondary{display:inline-grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:5px;border:0;background:transparent;box-shadow:none;color:var(--b24-muted);font-size:0;line-height:1}
body.b24-theme .vehicle-link-row>button.secondary>.crm-icon{margin:0}
body.b24-theme .vehicle-link-row>button.secondary:hover{background:#eef0f2;color:var(--b24-ink)}

/* System events live only on the independent graphite rail. */
body .important-toast-stack.system-notice-rail{position:fixed;inset:76px 16px auto auto;width:280px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow:auto;display:grid;gap:10px;margin:0;padding:14px;border:1px solid #ffffff12;border-radius:16px;background:linear-gradient(145deg,#292e35f5,#171c23f7);box-shadow:0 10px 30px #10182020,inset 0 1px #ffffff0a;z-index:80;pointer-events:auto;scrollbar-width:thin;color:#f4f6f8}
body .system-notice-rail[hidden]{display:none!important}
body .system-notice-rail .system-notice-heading{padding:0 2px 2px;font-size:11px;font-weight:600;letter-spacing:.04em;color:#c5ccd5}
body .system-notice-rail .important-notice{position:relative;min-width:0;display:block}
body .system-notice-rail .important-toast{display:block;width:100%;height:auto;min-height:88px;max-height:none;text-align:left;padding:13px 38px 13px 13px;border:1px solid #ffffff20;border-radius:11px;background:linear-gradient(120deg,#ffffff14,#ffffff08);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:inset 0 1px #ffffff0c,0 3px 12px #0000000c;color:#f4f6f8;transition:background-color .15s,border-color .15s}
body .system-notice-rail .important-toast:hover{background-color:#ffffff0d;border-color:#ffffff35}
body .system-notice-rail .important-toast>span{display:block;min-width:0}
body .system-notice-rail .important-toast strong{display:block;margin:0 0 6px;font-size:12px;font-weight:600;line-height:1.45;color:#f4f6f8;white-space:normal;overflow-wrap:anywhere}
body .system-notice-rail .important-notice-context{display:block;font-size:11px;line-height:1.5;color:#bfc8d3;overflow-wrap:anywhere}
body .system-notice-rail .important-toast small{display:block;margin-top:8px;font-size:10px;line-height:1.5;color:#ced5de}
body .system-notice-rail .important-event-count{background:#ffffff14;color:#f4f6f8}
body .system-notice-rail .important-dismiss{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:7px;border:0;border-radius:8px;background:transparent;color:#c5ccd5;box-shadow:none;font-size:18px;line-height:1}
body .system-notice-rail .important-dismiss:hover{background:#ffffff14;color:#fff}
body .system-notice-rail .important-dismiss .crm-icon{width:16px;height:16px;margin:0}
body .system-notice-rail .important-compact-all{position:static;display:block;width:100%;min-height:32px;margin:0;padding:7px;border:0;border-radius:7px;background:transparent;color:#c5ccd5;font-size:11px;text-align:center;box-shadow:none}
body .system-notice-rail .important-compact-all:hover{background:#ffffff0b;color:#fff}
body .system-notice-rail button:focus-visible{outline:2px solid #d7e2f0;outline-offset:2px}
body.b24-theme .pagehead>.notification-bell.has-important{background:#f1f3f5;border-color:#d8dde3;color:#303944}

@media(max-width:1199px){body .important-toast-stack.system-notice-rail{width:250px;max-height:38dvh;top:auto;bottom:16px}}
@media(max-width:650px){body .important-toast-stack.system-notice-rail{inset:auto 10px 10px auto;width:260px;max-width:calc(100vw - 20px);max-height:28dvh;padding:10px;gap:8px}body .system-notice-rail .important-dismiss{width:40px;height:40px;min-height:40px}body .system-notice-rail .important-toast{padding-right:44px}}

/* System notifications belong below the left navigation, not over the workspace. */
body .sidebar>.important-toast-stack.system-notice-rail{position:relative;inset:auto;width:100%;max-width:100%;max-height:280px;flex:none;overflow:auto;margin:18px 0 12px;padding:0 2px;background:transparent;border:0;border-radius:0;box-shadow:none;z-index:auto;gap:8px}
body .sidebar>.system-notice-rail .system-notice-heading{color:#9fa9b5;font-size:10px;padding:0 8px 2px}
body .sidebar>.system-notice-rail .important-toast{min-height:0;padding:11px 30px 11px 10px;background:linear-gradient(125deg,#ffffff20,#ffffff0d);border-color:#ffffff25;border-radius:10px;box-shadow:inset 0 1px #ffffff12,0 3px 10px #00000010}
body .sidebar>.system-notice-rail .important-toast strong{font-size:11px;line-height:1.5;color:#f6f8fb}
body .sidebar>.system-notice-rail .important-notice-context{font-size:10px;line-height:1.5;color:#c3ccd8}
body .sidebar>.system-notice-rail .important-toast small{font-size:10px;color:#d4dce6}
body .sidebar>.system-notice-rail .important-dismiss{width:26px;height:28px;min-height:28px;padding:6px;right:2px;top:3px}
body.b24-theme.has-system-notices #app>.workspace{margin-right:16px}

body .inspection-pending-files .ux-upload-row{display:flex;align-items:center;gap:10px;min-width:0;padding:8px}
body .inspection-pending-files .ux-upload-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
body .inspection-pending-files .ux-upload-row>progress{width:64px;max-width:15%;flex:none}
body .inspection-pending-files button.inspection-upload-thumb{display:block;width:64px;height:52px;min-height:52px;flex:0 0 64px;padding:0;overflow:hidden;border:1px solid #dce1e6;border-radius:6px;background:#f3f5f7}
body .inspection-upload-thumb img{display:block;width:100%;height:100%;object-fit:cover}
body .inspection-saved-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
body button.inspection-saved-thumb{display:block;width:76px;padding:0;border:1px solid #dde3e7;border-radius:7px;overflow:hidden;background:#fff}
body .inspection-saved-thumb img{display:block;width:74px;height:58px;object-fit:cover}
body .inspection-saved-thumb span{display:block;padding:3px;font-size:9px;color:#4c7764}
/* The prepare button must not sit above the file drop target. */
body .vehicle-workspace.is-report-editor .inspection-packet-form>.deal-actions{position:static;inset:auto;margin-top:14px;padding:12px 0;z-index:auto}
body .vehicle-workspace.is-inspection-workspace.is-report-editor[open]>[data-car-pane=inspection]{display:block;height:auto;overflow:visible}
body .vehicle-workspace.is-report-editor .inspection-packet-drop{scroll-margin-block:90px;min-height:112px}

/* Clipboard attachments remain drafts until Send. */
.chat-compose-meta .chat-pending-file{display:flex;align-items:center;gap:8px;min-width:0}.chat-compose-meta .chat-pending-thumb{width:52px;height:44px;object-fit:cover;border-radius:6px;flex:none}.chat-compose-meta .chat-pending-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body .system-notice-rail:popover-open{position:fixed!important;inset:var(--notice-top) auto auto var(--notice-left)!important;width:var(--notice-width)!important;max-width:var(--notice-width)!important;max-height:min(340px,var(--notice-height))!important;margin:0!important;padding:8px 2px!important;background:#18212bd9!important;border-radius:10px!important;backdrop-filter:blur(16px);pointer-events:auto!important;overflow:auto!important}
body .system-notice-rail::backdrop{background:transparent;pointer-events:none}

body .system-notice-rail:popover-open .important-toast{min-height:0;padding:11px 30px 11px 10px;font-size:11px}body .system-notice-rail:popover-open .important-toast strong{font-size:11px}body .system-notice-rail:popover-open .important-notice-context{font-size:10px}body .system-notice-rail:popover-open .important-dismiss{width:26px;height:28px;min-height:28px;padding:6px;right:2px;top:3px}

/* v95: one destructive entry in the context menu; preserve original confirmation handler. */
.compact-vehicle-card.b24-has-context .vehicle-remove-icon{display:none!important}
body.b24-theme .library-toolbar input,body.b24-theme .library-toolbar select{box-sizing:border-box;min-height:34px;padding:7px 10px;border:1px solid var(--b24-border,#d5dce3);border-radius:4px;background:#fff;color:var(--b24-text,#333);font:inherit;font-size:12px;outline-offset:2px}
body.b24-theme .library-toolbar input:focus-visible,body.b24-theme .library-toolbar select:focus-visible{outline:2px solid var(--b24-link,#ad3041)}
body.b24-theme .compact-vehicle-card .vehicle-request-reference{max-width:calc(100% - 20px);pointer-events:auto}
body.b24-theme .compact-vehicle-card:has(.purchase-entered-at) .vehicle-request-reference{max-width:calc(100% - 115px)}
@media(max-width:650px){body.b24-theme .request-toolbar{margin-bottom:8px}body.b24-theme .request-filters{gap:8px}body.b24-theme .library-toolbar{gap:8px;margin-bottom:12px}body.b24-theme .library-toolbar input{width:100%}body.b24-theme .library-toolbar select{flex:1;min-width:140px;width:auto}}
