/* Approved Warm Office shell. No source cell fills, column sizes or calculations changed. */
html:root[data-theme=light]{--bg:#f2eee8;--surface:#fffdf9;--ink:#29241f;--muted:#675e54;--line:#e3dcd2;--ui-soft:#f8f5f0;--ui-accent:#8b4a35;--ui-on-accent:#fff;--ui-accent-soft:#f1e2d7;--ui-hover:#f6eee5;--green:#8b4a35;color-scheme:light}
html:root[data-theme=light] .sidebar{background:#fffdf9;border-color:#e3dcd2}
html:root[data-theme=light] .main>header{background:#f8f5f0;border-color:#e3dcd2}
html:root[data-theme=light] nav a.active{background:#f1e2d7;color:#7c402e}
html:root[data-theme=light] nav a:hover{background:#f6eee5}
html:root[data-theme=light] .workspace-service-links{margin-top:14px;color:#675e54}
.workspace-service-links>summary{padding:10px;cursor:pointer}
.workspace-service-links nav a{font-size:12px}
html:root[data-theme=light] .table-wrap,html:root[data-theme=light] .workspace-table-scroll,html:root[data-theme=light] .payroll-workspace>.panel{background:transparent}
html:root[data-theme=light] .table-wrap>table{background:#fff}
html:root[data-theme=light] .local-status{color:#675e54}
html:root[data-theme=light] [data-save-state=error],html[data-save-state=error] .local-status{color:#983e2d!important}
:focus-visible{outline:3px solid #8b4a35;outline-offset:2px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.workspace-table-scale{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 8px;color:#493c31;font-size:12px}.workspace-table-scale .button{min-height:32px;padding:5px 9px}.workspace-table-scale output{min-width:42px;text-align:center;font-variant-numeric:tabular-nums}.workspace-table-scale [data-scale-hint]{color:#675e54}

.approved-payroll-source{width:3400px;table-layout:fixed;background:#fff;font-size:12px;color:#172538;border-collapse:collapse}.approved-payroll-source th,.approved-payroll-source td{border:1px solid #9eafc7;padding:5px 4px;text-align:center;vertical-align:middle;white-space:nowrap}.approved-payroll-source td{background:var(--person-fill,#fff)}.approved-payroll-source td.payroll-in-period{background:#ffff00}.approved-payroll-source th{white-space:normal;line-height:1.2}.approved-payroll-source .text-button{color:#174ea6;text-decoration:underline;background:none;border:0;font:inherit;padding:0;white-space:normal;max-width:100%}.approved-payroll-source .direction-icon{width:20px;height:20px}.approved-payroll-source tfoot th,.approved-payroll-source tfoot td{background:#fff2cc;font-weight:600}

.approved-task-source{width:775px;max-width:none;table-layout:fixed;border-collapse:collapse;background:#fff;color:#172538;font-size:13px}.approved-task-source th,.approved-task-source td{border:1px solid #9eafc7;padding:6px 7px;text-align:center;white-space:nowrap}.approved-task-source th{background:#fff}.approved-task-source td{background:var(--person-fill,#fff)}.approved-task-source td:nth-child(3){white-space:normal;overflow-wrap:anywhere}.approved-task-source td:last-child{font-variant-numeric:tabular-nums;font-weight:600}.approved-task-source tfoot th,.approved-task-source tfoot td{background:#fff2cc;font-weight:600}.payroll-workspace .payroll-component-summary td:nth-child(2){background:#e2efda}.payroll-workspace .payroll-component-summary td:nth-child(3),.payroll-workspace .payroll-component-summary td:nth-child(4){background:#fff2cc}.payroll-workspace .payroll-component-summary td.payroll-total{background:#c9daf8}

.approved-statistics-source{width:max-content;min-width:420px;border-collapse:collapse;background:#fff;color:#172538;font-size:12px}.approved-statistics-source th,.approved-statistics-source td{border:1px solid #9eafc7;padding:5px 6px;text-align:center;white-space:nowrap;min-width:88px}.approved-statistics-source th:nth-child(2){width:240px;min-width:240px;white-space:normal;text-align:left}.approved-statistics-source td:first-child,.approved-statistics-source th:first-child{min-width:30px;width:30px}.approved-statistics-source thead th,.approved-statistics-source .statistics-row-section th{background:#fbbc04}.approved-statistics-source .statistics-right-total{background:#fff2cc;font-weight:600}.approved-statistics-source .statistics-row-blank>*{height:10px;padding:0}.approved-statistics-source .statistics-row-unavailable td{color:#675e54}.source-statistics-scroll{background:transparent!important}

.home-report-workspace .home-welcome{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.home-report-workspace section{margin:18px 0;background:transparent}.approved-home-daily{width:700px}.approved-home-video{width:800px}.approved-home-daily,.approved-home-video{table-layout:fixed;border-collapse:collapse;background:#fff;font-size:13px;color:#172538}.approved-home-daily th,.approved-home-daily td,.approved-home-video th,.approved-home-video td{border:1px solid #9eafc7;text-align:center;padding:6px;white-space:nowrap}.approved-home-daily th,.approved-home-video th{background:#fff}.approved-home-daily td,.approved-home-video td{background:var(--person-fill,#fff)}.approved-home-daily td:nth-child(2),.approved-home-video td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.approved-home-daily tr.home-unfilled td{background:#fce8e6}.approved-home-video tr[data-video-state=due] td{background:#ffd966;color:#171717}.approved-home-video tr[data-video-state=overdue] td{background:#e06666;color:#171717}.home-report-workspace small{display:block;white-space:normal}.home-report-workspace [role=alert]{color:#983e2d}

/* Typography alignment in the warm shell; approved spreadsheet fonts and sizing stay local. */
html:root[data-theme] .main #content>.page-head h1{font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
html:root[data-theme] .main #content h1{font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
html:root[data-theme] .main #content :is(h2,h3){text-wrap:balance}
html:root[data-theme] :is(.workspace-table-scale output,.workspace-filters input[type=date],.mm-controls input,.approved-project-sheet input,.mm-workspace input){font-variant-numeric:tabular-nums}
html:root[data-theme] .approved-project-sheet>[data-ap-refresh]{font:400 13px/1.5 "Golos Text",Arial,sans-serif}

/* Table headings inherit the approved spreadsheet size instead of generic 14px UI headings. */
html:root[data-theme] :is(.approved-payroll-source,.approved-task-source,.approved-statistics-source,.approved-home-daily,.approved-home-video) thead th{font-size:inherit;line-height:1.35;padding:7px 6px;overflow-wrap:normal;word-break:normal;white-space:normal}

html:root[data-theme] :is(.approved-payroll-source,.approved-statistics-source){font-size:12px}
html:root[data-theme] :is(.approved-task-source,.approved-home-daily,.approved-home-video){font-size:13px}
html:root[data-theme] .approved-home-video col:nth-child(4){width:76px!important}
html:root[data-theme] .approved-home-video{width:816px}

html:root[data-theme] .approved-payroll-source tbody :is(td:nth-child(3),td:nth-child(17),td:nth-child(18)){white-space:normal;overflow-wrap:anywhere;line-height:1.4}
html:root[data-theme] .approved-payroll-source tbody td:nth-child(3) .text-button{overflow-wrap:anywhere}

html:root[data-theme] .mm-workspace .daily-month-grid thead th{font-size:inherit;line-height:1.35;padding:7px 6px;white-space:nowrap}

/* Channel blocks retain source cell colours; separators remain visible across the full sheet. */
.approved-statistics-source .statistics-row-blank>*{height:12px;background:#b7b7b7!important;border-top:1px solid #999;border-bottom:1px solid #999}
.approved-statistics-source .statistics-row-section>*{border-top:2px solid #888;border-bottom:2px solid #888;padding-top:10px;padding-bottom:10px}
.approved-statistics-source .statistics-row-section th{font-weight:700}
@media(max-width:720px){
 .workspace-table-scale{gap:8px;max-width:100%}
 .workspace-table-scale .button{min-width:44px;min-height:44px}
 .workspace-table-scale>span:first-child{flex-basis:100%;font-weight:600}
 .workspace-table-scale [data-scale-hint]{flex-basis:100%}
 .source-statistics-workspace .toolbar{flex-wrap:wrap;gap:12px}
 .source-statistics-workspace .toolbar>label{min-width:0;max-width:100%}
 .source-statistics-workspace .toolbar select{max-width:100%;min-height:44px;font-size:16px}
 .source-statistics-scroll,.workspace-table-scroll,.table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
}

/* A single platform frame; image dimensions follow compact table contexts. */
html:root[data-theme] .direction-platform{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;padding:0;background:transparent;border:0;border-radius:8px;line-height:1;vertical-align:middle;overflow:hidden;color:var(--ui-accent)}
html:root[data-theme] .direction-platform>img,html:root[data-theme] .direction-platform>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
html:root[data-theme] .approved-payroll-source .direction-platform,html:root[data-theme] .table-direction .direction-platform{width:20px;height:20px;border-radius:4px}
@media(max-width:900px){
 .main,.main #content{min-width:0}
 html:root[data-theme] .main>.page-head,html:root[data-theme] .main #content>.page-head{flex-wrap:wrap;gap:12px}
 html:root[data-theme] .main #content>.page-head>.button{min-height:44px}
}

/* Navigation stays reachable while reading long sheets, without covering the first row. */
html:root[data-theme] .main>header{position:sticky;top:0;z-index:200;box-shadow:0 2px 8px #29241f0a}
html{scroll-padding-top:82px}
@media(max-width:900px){
 html:root[data-theme] .main>header{flex-wrap:nowrap;gap:8px;min-height:66px;height:auto;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));}
 html:root[data-theme] .main>header .local-status{display:none}
 html:root[data-theme] .main>header .breadcrumbs{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] .main>header .button{min-height:44px;flex-shrink:0}
 html:root[data-theme] .sidebar{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
 .mobile-menu-toggle,.mobile-menu-close,.mobile-profile-dates{touch-action:manipulation}
 .notices-panel{position:fixed;inset:76px 12px auto;width:auto;max-height:calc(100dvh - 90px);}
}
@media(max-width:380px){html:root[data-theme] .main>header .breadcrumbs{display:none}}

@media(max-width:900px){.sidebar .mobile-extra-work{width:100%;justify-content:center;min-height:44px;margin-top:12px}}

/* Direction bands requested by the owner; metric-cell source colours stay intact. */
.approved-statistics-source [data-statistics-direction="vk"]{--statistics-block-fill:#ddeaff;--statistics-block-line:#7297d0}
.approved-statistics-source [data-statistics-direction="avito"]{--statistics-block-fill:#e1f2df;--statistics-block-line:#79a774}
.approved-statistics-source [data-statistics-direction="direct"]{--statistics-block-fill:#fff0bd;--statistics-block-line:#b79b40}
.approved-statistics-source [data-statistics-direction="instagram"]{--statistics-block-fill:#f6dfeb;--statistics-block-line:#bd82a3}
.approved-statistics-source [data-statistics-direction="telegram"]{--statistics-block-fill:#ddf3f6;--statistics-block-line:#69a8b3}
.approved-statistics-source [data-statistics-direction="max"]{--statistics-block-fill:#ebe2fa;--statistics-block-line:#9a82bd}
.approved-statistics-source .statistics-row-section[data-statistics-direction]>*{background:var(--statistics-block-fill)!important;border-top-color:var(--statistics-block-line);border-bottom-color:var(--statistics-block-line);color:#292520}
.approved-statistics-source [data-statistics-direction]>th[scope="row"],.approved-statistics-source [data-statistics-direction]>td:first-child{background:var(--statistics-block-fill)!important;color:#292520}
.approved-statistics-source [data-statistics-direction]>td:first-child{border-left:4px solid var(--statistics-block-line)}
.statistics-direction-heading{display:flex;align-items:center;gap:8px;min-width:0}
.statistics-direction-heading>.direction-platform{width:34px;height:34px;min-width:34px;border-radius:6px;flex:none}
.statistics-direction-heading>.direction-platform img{width:100%;height:100%;object-fit:contain}
.statistics-direction-heading>span:last-child{min-width:0;overflow-wrap:anywhere}

.approved-home-video tr[data-video-state=due] .home-project-link,.approved-home-video tr[data-video-state=overdue] .home-project-link{color:#171717}
