:root{font-family:Inter,"Segoe UI",sans-serif;color:#253330;background:#f3f5f2;font-size:var(--ui-font-size,14px);--green:#285548;--muted:#7c8880;--line:#e0e6df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:8px;padding:10px 15px;color:inherit}button:hover{background:#eaf0ea}button:disabled{opacity:.5;cursor:wait}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{border:1px solid #cdd7ce;border-radius:7px;padding:11px;background:#fff;color:#253330;min-width:0;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #80ab93;outline-offset:1px}textarea{resize:vertical;min-height:100px}h1,h2,h3,p{margin-top:0}h1{font-size:2.071429rem;letter-spacing:-1px;font-weight:600;margin-bottom:10px}h2{font-size:1.285714rem;font-weight:600}h3{font-size:1rem}small,.muted{color:#68776d}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#173e33}.danger{color:#aa483d}.layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}aside{background:#173b32;color:#d7e5dc;padding:27px 16px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:11px;color:white;font-size:1.785714rem;font-weight:650;letter-spacing:2px;padding:0 12px 25px}.brand span{display:grid;place-items:center;width:34px;height:38px;background:#b6d1a5;color:#173b32;border-radius:12px 12px 17px 17px;font-size:1.571429rem}.brand small{display:block;font-size:0.642857rem;letter-spacing:1px;font-weight:400;margin-top:3px;color:#b1c6b6}.nav-group{font-size:0.714286rem;text-transform:uppercase;letter-spacing:1.5px;color:#8eafa1;margin:23px 12px 8px}.nav{display:block;color:#d2e0d6;padding:10px 13px;margin:2px 0;border-radius:7px;font-size:0.857143rem}.nav:hover{background:#244b3e;text-decoration:none}.nav.active{background:#b6d1a5;color:#173b32;font-weight:600}.sidebar-note{margin:26px 12px;color:#91ac9b;font-size:0.785714rem;line-height:1.6}.main{min-width:0}.topbar{height:77px;border-bottom:1px solid var(--line);background:#fafbf8;padding:0 35px;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar .company{font-weight:600}.topbar small{display:block;margin-top:5px;font-size:0.785714rem}.user{display:flex;gap:12px;align-items:center}.avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#dce5d6;color:#285548}.user button{font-size:0.785714rem;padding:6px 10px}.content{padding:33px 35px 50px;max-width:1680px;margin:auto}.eyebrow{color:#6d806e;text-transform:uppercase;font-size:0.714286rem;letter-spacing:1.8px;margin-bottom:14px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.page-head p{font-size:0.857143rem;color:#748075}.actions{display:flex;gap:8px;flex-wrap:wrap}.pill{display:inline-flex;border-radius:5px;background:#e7eee1;padding:5px 8px;font-size:0.714286rem;font-weight:600;color:#4c6b43}.pill.warn{color:#9b622c;background:#f8ecd9}.pill.red{color:#9f463f;background:#f7e3dd}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:21px;display:block;color:inherit}.stat:hover{text-decoration:none;border-color:#a1b499}.stat .label{font-size:0.857143rem;color:#68786d}.stat strong{display:block;font-size:2.714286rem;font-weight:550;margin:15px 0 7px;letter-spacing:-1px}.stat small{font-size:0.714286rem}.stat .symbol{float:right;font-size:1.357143rem;color:#7e9b74}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:21px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.panel-head{padding:21px 22px 17px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0eb;gap:12px}.panel-head h2{margin:0;font-size:1.071429rem}.panel-head a{font-size:0.785714rem}.panel-body{padding:21px 22px}.empty{text-align:center;padding:45px 20px;color:#7d8a7d;line-height:1.8}.empty .empty-icon{display:block;font-size:2.428571rem;color:#a5b59e;margin-bottom:9px}.empty b{color:#4c5f4e;font-size:1rem;font-weight:500}.empty p{font-size:0.857143rem;max-width:350px;margin:8px auto 15px}.list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-bottom:1px solid #edf0eb}.list-item:last-child{border:0}.list-item b{font-size:0.857143rem;font-weight:500}.list-item small{font-size:0.714286rem;display:block;margin-top:5px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-grid a{border:1px solid var(--line);border-radius:7px;padding:14px;font-size:0.857143rem}.notice{padding:14px 18px;background:#e9eee1;border:1px solid #d7e1cb;border-radius:9px;color:#576d49;font-size:0.857143rem;line-height:1.6;margin-bottom:22px}.toolbar{display:flex;gap:10px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar input{max-width:340px}.toolbar select{max-width:210px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:0.857143rem;white-space:nowrap}th{padding:14px 19px;color:#7a867b;font-size:0.714286rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--line);background:#fafbf8}td{padding:16px 19px;border-bottom:1px solid #edf0eb;max-width:280px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8faf6}.record-link{font-weight:600;border:0;padding:0;background:transparent;color:var(--green);text-align:left}.board{display:flex;gap:14px;overflow:auto;padding-bottom:20px;align-items:flex-start}.column{min-width:240px;flex:1;background:#e9eee5;padding:14px;border-radius:10px}.column h3{font-size:0.785714rem;color:#65775e;display:flex;justify-content:space-between;margin-bottom:15px}.card{background:#fff;border:1px solid #dde5d8;border-radius:8px;padding:15px;margin-bottom:10px;box-shadow:0 2px 3px #263a2010}.card button{padding:0;border:0;font-weight:600;text-align:left;line-height:1.5;font-size:0.857143rem}.card small{display:block;font-size:0.714286rem;margin:15px 0 8px}.card select{padding:6px;font-size:0.714286rem;background:#f5f8f0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid label{font-size:0.785714rem;color:#657363;display:grid;gap:7px;align-content:start}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#173b32;color:white;padding:70px;display:flex;flex-direction:column;justify-content:center}.auth-story .brand{padding-left:0;margin-bottom:55px}.auth-story h1{font-size:3.357143rem;line-height:1.15;max-width:490px;margin-bottom:24px}.auth-story p{color:#b1c6b6;line-height:1.8;max-width:440px}.auth-form{padding:50px;display:flex;align-items:center;justify-content:center}.auth-form form{width:100%;max-width:360px}.auth-form label{display:block;font-size:0.857143rem;margin:18px 0}.auth-form input{display:block;margin-top:8px}.auth-form button{width:100%;margin-top:8px}.auth-form p{line-height:1.6;font-size:0.857143rem;color:#7d897b}.error{color:#ad4a3c!important;font-size:0.857143rem;margin-top:14px}dialog{border:1px solid var(--line);border-radius:14px;width:min(880px,94vw);max-height:90vh;padding:0;box-shadow:0 20px 80px #10271940;color:#253330}dialog::backdrop{background:#102d2466;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid var(--line);gap:20px}.dialog-head h2{margin:0}.dialog-body{padding:24px 26px}.tabs{display:flex;gap:7px;padding:0 26px;border-bottom:1px solid var(--line);overflow:auto}.tabs button{border:0;border-radius:0;font-size:0.857143rem;padding:15px 10px;white-space:nowrap}.tabs button.active{border-bottom:2px solid var(--green);color:var(--green)}.details{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-field small{display:block;font-size:0.714286rem;margin-bottom:6px}.detail-field div{font-size:0.928571rem;white-space:pre-wrap;overflow-wrap:anywhere}.history{border-left:2px solid #d9e2d1;margin-left:7px;padding:0 0 18px 18px;font-size:0.857143rem}.history small{display:block;margin:6px 0 10px}.history pre{white-space:pre-wrap;font-size:0.785714rem;color:#72816d}.comment{background:#f3f6ef;padding:14px;border-radius:8px;margin-bottom:12px;font-size:0.857143rem;white-space:pre-wrap}.comment small{display:block;font-size:0.714286rem;margin-bottom:7px}.summary{display:flex;gap:30px;align-items:center}.summary strong{font-size:1.785714rem}.summary small{display:block;font-size:0.714286rem;margin-top:5px}#toast{position:fixed;bottom:25px;right:28px;background:#214c3f;color:white;padding:14px 22px;border-radius:9px;box-shadow:0 6px 30px #14291f20;display:none;z-index:10;max-width:420px;font-size:0.857143rem}#toast.show{display:block}.mobile-menu{display:none}.section-foot{font-size:0.714286rem;color:#8b9686;display:flex;justify-content:space-between;margin-top:22px}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.layout{grid-template-columns:210px minmax(0,1fr)}.content{padding:25px}.topbar{padding:0 25px}}@media(max-width:720px){.layout{display:block}aside{display:none;position:fixed;z-index:5;width:250px;box-shadow:0 0 0 100vw #102d2470}aside.open{display:block}.mobile-menu{display:block}.topbar{height:70px;padding:0 16px}.content{padding:23px 16px}.page-head{display:block}.page-head .actions{margin-top:18px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:2.142857rem}.form-grid,.details{grid-template-columns:1fr}.auth{display:block}.auth-story{padding:35px}.auth-story h1{font-size:2.071429rem}.auth-story .brand{margin-bottom:25px}.auth-form{padding:30px}.user .username{display:none}h1{font-size:1.785714rem}.dialog-body{padding:20px}.summary{gap:15px}.toolbar{padding:12px}.toolbar input,.toolbar select{max-width:none}}

.record-photo{display:block;max-width:220px;max-height:220px;object-fit:contain;border-radius:10px;margin-bottom:22px}.attachment-photo{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:8px;margin:18px 0 0}

.record-subtitle{display:block;margin-top:5px;color:#72816e;font-size:0.785714rem;white-space:normal}.checkpoint{border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.checkpoint.visited{background:#f2f6ee}.checkpoint h3{margin-bottom:7px}.checkpoint p{font-size:0.857143rem;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.checkpoint .actions{flex-shrink:0}@media(max-width:720px){.checkpoint{display:block}.checkpoint .actions{margin-top:12px}}
.dispatch-history-title{margin-top:28px}

.read-only .primary,.read-only .danger,.read-only #archive-record,.read-only #comment-form,.read-only #upload,.read-only [data-accept-slot],.read-only [data-new-item],.read-only #create{display:none!important}

.audit-data{white-space:pre-wrap;overflow-wrap:anywhere;font-size:0.857143rem;line-height:1.6}
.mobile-workplace .topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:14px 20px;gap:14px}.mobile-workplace .brand{color:var(--green);padding:0}.mobile-workplace .brand small{color:var(--muted)}.mobile-workplace .user{flex-wrap:wrap;gap:8px}.mobile-workplace .mobile-account-name{max-width:240px;overflow-wrap:anywhere}.mobile-workplace .content{max-width:960px}.mobile-workplace .list-item{flex-wrap:wrap;align-items:flex-start;gap:14px}.mobile-workplace .list-item>div{min-width:0;flex:1 1 220px;overflow-wrap:anywhere}.mobile-workplace .list-item>button{max-width:100%}
.calendar-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}.calendar-toolbar label{max-width:190px}.calendar-toolbar select{width:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:18px 0}.calendar-day{min-height:125px;padding:10px;border:1px solid var(--line);border-radius:8px;min-width:0;background:#fff}.calendar-day h3{font-size:0.857143rem;margin-bottom:10px}.calendar-day.today{border:2px solid var(--green)}.calendar-day.other-month{background:#f1f4f0}.calendar-event{display:block;width:100%;text-align:left;padding:7px;margin-bottom:6px;font-size:0.785714rem;overflow-wrap:anywhere;white-space:normal}.calendar-event small{display:block;font-size:0.714286rem;margin-top:4px}.calendar-event.late{border-color:#b8695e;background:#fff1ee}.mobile-workplace .page-head .actions{flex-wrap:wrap}@media(max-width:900px){.calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.calendar-grid{display:block}.calendar-day{margin-bottom:10px;min-height:0}}

.photo-grid{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.photo-grid img{width:140px;height:110px;object-fit:cover;border-radius:6px}

.mobile-workplace .topbar .user{flex-wrap:wrap;flex-shrink:1;min-width:0;max-width:100%;justify-content:flex-end}

.firm-map{height:62vh;min-height:360px;background:#e8eef2;position:relative;isolation:isolate;z-index:0}.firm-map .record-link{color:#18539b}.firm-map .leaflet-popup-content{max-height:min(45vh,240px);max-width:min(300px,calc(100vw - 90px));overflow:auto}.firm-map .leaflet-control-attribution{font-size:0.785714rem}

.employee-portrait{margin:0 0 1rem}.employee-portrait figcaption{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.mobile-profile-photo{width:96px;height:112px;object-fit:cover;border-radius:12px;margin-bottom:1rem}
.portrait-editor{min-width:0}.portrait-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:24px;align-items:start}.portrait-workspace>div,.portrait-workspace form{min-width:0}.portrait-stage{position:relative;width:100%;max-width:440px;margin:auto;background:var(--surface);border-radius:12px;overflow:hidden;border:1px solid var(--line)}#portrait-canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}#portrait-canvas:active{cursor:grabbing}.portrait-guides{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent calc(33.333% - .5px),#ffffff90 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff90 66.666%,transparent calc(66.666% + .5px)),linear-gradient(transparent calc(33.333% - .5px),#ffffff90 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff90 66.666%,transparent calc(66.666% + .5px));box-shadow:inset 0 0 0 1px #0003}.portrait-guides[hidden]{display:none}#portrait-editor-form{display:grid;gap:12px}#portrait-editor-form label{margin:0}#portrait-editor-form output{float:right;font-size:.85em;font-variant-numeric:tabular-nums;color:var(--muted)}#portrait-editor-form input[type=range]{padding:0;min-height:30px;width:100%;accent-color:var(--green);cursor:pointer}#portrait-editor-form .check{display:flex;align-items:center;gap:8px}#portrait-editor-form .check input{width:auto}#portrait-status{font-size:.85em;overflow-wrap:anywhere}#modal:has(.portrait-editor){width:min(960px,calc(100vw - 24px));max-width:calc(100vw - 24px)}@media(max-width:620px){.portrait-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.portrait-stage{max-width:300px}#modal:has(.portrait-editor) .dialog-body{padding:14px}#portrait-editor-form .form-actions{flex-wrap:wrap}#portrait-editor-form .form-actions button{flex:1}}

.inquiry-text{white-space:pre-wrap;overflow-wrap:anywhere}

.customer-event-card{display:block;overflow-wrap:anywhere}.customer-event-card h3,.customer-event-card h4{margin:0 0 10px}.customer-event-card p{margin:8px 0}.customer-event-card .inquiry-text{white-space:pre-wrap}

.table-wrap td.fot-breakdown-cell{white-space:normal;max-width:none;overflow:visible}.fot-breakdown{max-width:65rem;white-space:normal;overflow-wrap:anywhere}.fot-breakdown p{white-space:normal}

:root{--accent-soft:#e7eee1;--surface:#fff;--canvas:#f3f5f2;--ink:#253330;--secondary:#fafbf8;--subtle:#68776d}
:root[data-accent=blue]{--green:#245b9d;--accent-soft:#e6eefb}
:root[data-accent=violet]{--green:#7044a5;--accent-soft:#f0e8fa}
:root[data-accent=amber]{--green:#85500c;--accent-soft:#fbefd9}
body{background:var(--canvas);color:var(--ink)}
a,.eyebrow{color:var(--green)}.primary:hover{background:var(--green);filter:brightness(.9)}
.nav.active{background:var(--accent-soft);color:var(--green)}.tabs button.active{color:var(--green);border-color:var(--green)}
.appearance-dialog{width:min(480px,94vw)}.appearance-field{display:block;margin-bottom:18px;font-weight:600}.appearance-field select{display:block;margin-top:8px;font-weight:400}.appearance-status{margin:14px 0 0;font-size:0.857143rem}
:root[data-theme=dark]{color-scheme:dark;--canvas:#141c20;--surface:#202b31;--secondary:#26333a;--ink:#e4edf0;--subtle:#afbec5;--muted:#afbec5;--line:#415159;--green:#90c8a6;--accent-soft:#2e4d3d;color:var(--ink);background:var(--canvas)}
:root[data-theme=dark][data-accent=blue]{--green:#9bc6ff;--accent-soft:#293f59}
:root[data-theme=dark][data-accent=violet]{--green:#d0afff;--accent-soft:#453454}
:root[data-theme=dark][data-accent=amber]{--green:#f3c574;--accent-soft:#51442b}
[data-theme=dark] :is(button,input,select,textarea,dialog,.panel,.stat,.calendar-day,.auth-form){background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.topbar,th,.comment,.calendar-day.other-month,.checkpoint.visited){background:var(--secondary);color:var(--ink)}
[data-theme=dark] :is(small,.muted,.page-head p,.stat .label,.empty,.empty b,.record-subtitle,.section-foot,.history pre,.auth-form p){color:var(--subtle)}
[data-theme=dark] :is(td,.panel-head,.list-item){border-color:var(--line)}
[data-theme=dark] :is(button:hover,tbody tr:hover){background:var(--secondary)}
[data-theme=dark] .primary{background:var(--green);color:#14221c;border-color:var(--green)}
[data-theme=dark] :is(.notice,.pill){background:var(--accent-soft);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.pill.warn,.calendar-event.late){background:#513d26;color:#ffdaa2}
[data-theme=dark] :is(.pill.red){background:#542e33;color:#ffc1c1}
[data-theme=dark] :is(.danger,.error){color:#ffb3a9!important}
[data-theme=dark] .firm-map{background:#26333a}
[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-layers){background:var(--surface);color:var(--ink)}
[data-theme=dark] .firm-map .record-link{color:var(--green)}
[data-theme=dark] .leaflet-control-attribution{background:#202b31ed;color:var(--ink)}
[data-theme=dark] .leaflet-control-attribution a{color:var(--green)}
[data-density=compact] td{padding-top:9px;padding-bottom:9px}
[data-density=compact] th{padding-top:10px;padding-bottom:10px}
[data-motion=reduce] *,[data-motion=reduce] *::before,[data-motion=reduce] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:720px){.appearance-dialog .dialog-body{padding:18px}.topbar .user{gap:5px}.topbar .user button{padding:7px}.appearance-dialog .actions{flex-wrap:wrap}}
.map-yandex-logo{display:block;width:90px;height:auto}.leaflet-control-attribution{white-space:normal;max-width:min(75vw,500px)}#map-connection-form>label{display:block;margin:18px 0}#map-connection-form input[type=checkbox]{width:auto}
.page-head:has(#object-map-cluster){flex-wrap:wrap}.page-head:has(#object-map-cluster)>:first-child{min-width:min(100%,300px)}
.mobile-menu{display:block;flex-shrink:0}.sidebar-close{display:none}.sidebar-backdrop{display:none}.topbar{height:auto;min-height:77px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.topbar .user{flex-wrap:wrap}.topbar .company{flex:1;min-width:130px}
@media(min-width:721px){html[data-sidebar=collapsed] .layout{grid-template-columns:minmax(0,1fr)}html[data-sidebar=collapsed] .layout>aside{display:none}}
@media(max-width:720px){.sidebar-mobile-open body{overflow:hidden}.sidebar-close{display:block;margin:0 0 18px;width:100%;background:#244b3e;color:#fff;border-color:#6f8b80}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:4;border:0;border-radius:0;background:#102d2470;padding:0}.layout>aside.open{box-shadow:none;width:min(300px,86vw)}.topbar{gap:10px}.topbar .company{font-size:0.857143rem}.topbar .user{margin-left:auto}.topbar .user .avatar{display:none}}
.map-help{margin-bottom:18px}.map-help summary{cursor:pointer;color:var(--green);padding:8px 0}.map-help p{line-height:1.6}
.work-item{display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(100px,1fr));gap:18px;padding:18px 0;border-bottom:1px solid var(--line);align-items:start}.work-item small{display:block;font-size:0.785714rem;margin:0 0 7px}.work-item .record-link{white-space:normal;text-align:left;overflow-wrap:anywhere}.work-item>div{min-width:0;overflow-wrap:anywhere}@media(max-width:850px){.work-item{grid-template-columns:repeat(2,minmax(0,1fr))}.work-item>div:first-child{grid-column:1/-1}}@media(max-width:420px){.work-item{grid-template-columns:minmax(0,1fr)}.work-item>div:first-child{grid-column:auto}}

.toolbar:has(#task-center-kind)>label{display:grid;gap:8px;min-width:180px}
.opora-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}.nav{display:flex;align-items:flex-start;gap:9px}.nav .opora-icon{width:17px;height:17px}.brand .opora-icon{width:25px;height:25px}.empty-icon .opora-icon{width:36px;height:36px}
.admin-center-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:18px}.admin-center-item{display:block;color:inherit;padding:24px}.admin-center-item .opora-icon{width:28px;height:28px;margin-bottom:18px;color:var(--green)}.admin-center-item h2{margin-bottom:10px}.admin-center-item p{margin:0;color:var(--subtle);line-height:1.6;font-size:0.857143rem}.admin-center-item:hover{text-decoration:none;border-color:var(--green)}
.identity-preview{display:block;width:160px;height:160px;object-fit:contain;border:1px solid var(--line);border-radius:12px;padding:8px;margin:0 0 22px;background:var(--surface)}.identity-avatar{border-radius:50%;object-fit:cover;padding:0}.identity-fallback{display:grid;place-items:center;color:var(--green)}.identity-fallback .opora-icon{width:60px;height:60px}.brand .company-logo{display:block;width:44px;height:44px;object-fit:contain}.brand:has(.company-logo)>span{background:transparent;width:44px;height:44px}.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.nav .opora-icon{width:18px;height:18px;stroke-width:1.8}.admin-center-item{border-radius:14px}.admin-center-item .opora-icon{width:30px;height:30px}.admin-center-item h2{font-size:1.214286rem;font-weight:600}
#access-request-form label,#access-reject-form label{display:block;margin-bottom:16px}.access-request-item{padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.access-request-item h2{font-size:1.142857rem}




.nav[hidden]{display:none!important}.navigation-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:18px 0}.navigation-options label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px}.navigation-options input{width:18px;height:18px;margin:0;accent-color:var(--green)}

.salary-edit-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(100px,1fr) auto;gap:12px;align-items:end;margin:14px 0}.salary-edit-row label{display:grid;gap:6px}@media(max-width:720px){.salary-edit-row{grid-template-columns:1fr}.salary-edit-row button{justify-self:start}}

.primary-record-photo,.primary-photo-placeholder{width:44px;height:44px;border-radius:9px;object-fit:cover;display:inline-block;vertical-align:middle}.primary-photo-placeholder{display:inline-grid;place-items:center;background:var(--accent-soft,#e6eee6);color:var(--green);font-weight:600}.primary-notes{display:block;white-space:pre-wrap;max-width:240px;min-width:120px;line-height:1.5}.primary-employment{line-height:1.6;margin:3px 0}.primary-directory td{vertical-align:middle}.primary-directory td:has(.primary-notes){white-space:normal}


.patrol-track-map{height:420px;width:100%;border:1px solid var(--line);border-radius:10px;margin:12px 0}.patrol-track-rows{max-height:260px;overflow:auto}.patrol-tracking-banner button{margin-top:4px}@media(max-width:720px){.patrol-track-map{height:320px}}

.patrol-map-layer{display:flex;align-items:center;gap:8px}.patrol-map-layer input{width:auto;margin:0}

/* Shared interface chrome, grounded in the FORT navigation reference. */
:root{--sidebar-bg:#28343a;--sidebar-hover:#34464d;--sidebar-ink:#edf1f5;--sidebar-muted:#b6c2cc;--sidebar-active:#d7e8e2;--sidebar-active-ink:#285548;--primary-ink:#fff}
.layout>aside{background:var(--sidebar-bg);color:var(--sidebar-ink);padding:14px 10px;font-family:Avenir,Helvetica,Arial,sans-serif;scrollbar-width:none;-ms-overflow-style:none;z-index:30;position:fixed;left:0;top:0;width:300px}
.layout>aside::-webkit-scrollbar{display:none;width:0;height:0}
.main{position:relative;isolation:isolate;z-index:0;grid-column:2}
.brand{padding:0 10px 22px;gap:10px;font-size:1.642857rem}.brand small{color:var(--sidebar-muted);font-size:0.642857rem}.brand:hover{text-decoration:none}
.brand>span{background:transparent;color:var(--sidebar-ink);border-radius:0}
.brand .material-icon{width:34px;height:34px}
.nav{color:var(--sidebar-ink);font-size:1rem;padding:10px 8px;gap:8px;align-items:center;border-radius:7px;line-height:1.35;min-height:48px;margin:0 0 4px}
.nav:hover{background:var(--sidebar-hover);color:#fff}.nav.active{background:var(--sidebar-active);color:var(--sidebar-active-ink)}
.nav[hidden],.navigation-group[hidden]{display:none!important}
.nav .material-icon{width:24px;height:24px;margin:0;fill:currentColor;stroke:none}
.navigation-group{border-top:1px solid #ffffff18;margin-top:12px;padding-top:6px}
.navigation-group>.nav-group{display:flex;align-items:center;gap:10px;margin:0;padding:13px 10px;color:var(--sidebar-ink);font-size:0.857143rem;font-weight:600;letter-spacing:.2px;text-transform:none;cursor:pointer;list-style:none;border-radius:7px}
.navigation-group>.nav-group::-webkit-details-marker{display:none}
.navigation-group>.nav-group:hover{background:var(--sidebar-hover)}
.navigation-group>.nav-group>.opora-icon{width:20px;height:20px}
.navigation-group>.nav-group>.opora-icon:last-child{margin-left:auto;width:17px;transition:transform .16s}
.navigation-group[open]>.nav-group>.opora-icon:last-child{transform:rotate(180deg)}
.navigation-group>.nav{padding-left:20px;font-size:0.857143rem}
.navigation-divider{border-top:1px solid #ffffff20;margin:8px 4px}
.navigation-group.nested{border-top:0;margin-top:0;padding-top:0;margin-left:8px}
.navigation-group.nested>.nav-group{font-weight:500;padding:10px 8px;font-size:0.857143rem}
.navigation-group.nested>.nav{padding-left:28px;font-size:0.857143rem}
.topbar{min-height:66px;padding:10px 26px;flex-wrap:nowrap;background:var(--surface);gap:16px}
.topbar .company{font-size:0.928571rem;min-width:0;overflow-wrap:anywhere;font-weight:600}
.mobile-menu{display:grid;place-items:center;width:38px;height:38px;min-width:38px;padding:8px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.mobile-menu .opora-icon{width:20px;height:20px}
.topbar .user{flex-wrap:nowrap;flex-shrink:0;gap:0}
.account-menu{position:relative}.account-menu>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;border-radius:24px;padding:3px 6px 3px 3px;font-size:0.857143rem;max-width:260px}
.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary:hover{background:var(--secondary)}
.account-menu>summary>.opora-icon{width:17px;height:17px;color:var(--subtle)}
.account-menu .username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu .avatar{display:grid;width:36px;height:36px;flex-shrink:0;background:var(--accent-soft);color:var(--green);font-size:1rem;font-weight:600}
.account-popover{position:absolute;right:0;top:calc(100% + 13px);width:276px;max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 34px #0c1c292b;padding:6px;z-index:4;color:var(--ink)}
.account-heading{padding:13px 12px 16px;border-bottom:1px solid var(--line);margin-bottom:5px;overflow-wrap:anywhere}.account-heading strong{font-size:1rem}.account-heading small{color:var(--subtle);font-size:0.857143rem}
.account-actions{display:grid;gap:2px}.account-actions a,.topbar .account-actions button{display:flex;align-items:center;gap:11px;font-size:0.928571rem;padding:11px 12px;color:var(--ink);text-align:left;line-height:1.4;border:0;border-radius:7px;background:transparent;width:100%;text-decoration:none}
.account-actions a:hover,.topbar .account-actions button:hover{background:var(--accent-soft);color:var(--green)}
.account-actions .opora-icon{width:20px;height:20px;color:var(--subtle)}
.account-actions #logout{border-top:1px solid var(--line);margin-top:5px;border-radius:0 0 7px 7px}
.content{padding-top:27px}.page-head h1{font-size:1.928571rem;letter-spacing:-.65px}.page-head p{line-height:1.5}
.primary,[data-theme=dark] .primary{color:var(--primary-ink);background:var(--green);border-color:var(--green)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.layout>aside :is(a,button,summary):focus-visible{outline-color:var(--sidebar-ink)}
input:focus,select:focus,textarea:focus{outline-color:var(--green)}
.material-icon{fill:currentColor;stroke:none;color:var(--subtle)}
[data-icon-color=accent] .material-icon{color:var(--green)}
.nav .material-icon,.brand .material-icon,.nav-group .material-icon{color:inherit}
.mobile-menu .material-icon,.account-menu>summary>.material-icon{color:inherit}
.appearance-dialog{width:min(590px,94vw);background:var(--surface);color:var(--ink)}
.appearance-dialog .dialog-head{padding:20px 24px}.appearance-dialog .dialog-head button{display:grid;place-items:center;border:0;background:transparent;border-radius:50%;padding:6px}
.appearance-group{border:0;margin:0 0 22px;padding:0;min-width:0}.appearance-group legend{font-size:0.928571rem;font-weight:600;margin-bottom:10px}
.appearance-options{display:flex;gap:7px;flex-wrap:wrap}.appearance-option{display:block;position:relative;flex:1;min-width:120px;cursor:pointer}
.appearance-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.appearance-option>span{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:0.857143rem;line-height:1.4;min-height:43px}
.appearance-option input:checked+span{border-color:var(--green);background:var(--accent-soft);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.appearance-option input:focus-visible+span{outline:2px solid var(--green);outline-offset:3px}
.appearance-option .opora-icon{width:18px;height:18px;color:inherit}
.appearance-swatches{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:3px}
.color-swatch{width:30px;height:30px;min-width:30px;border-radius:50%;padding:0;border:3px solid var(--surface);outline:1px solid var(--line)}
.color-swatch[aria-pressed=true]{outline:2px solid var(--green);outline-offset:2px}
.appearance-dialog .swatch-green,.appearance-dialog .swatch-green:hover{background:#397863}.appearance-dialog .swatch-blue,.appearance-dialog .swatch-blue:hover{background:#386fb0}.appearance-dialog .swatch-violet,.appearance-dialog .swatch-violet:hover{background:#8256b0}.appearance-dialog .swatch-amber,.appearance-dialog .swatch-amber:hover{background:#a66a16}.appearance-dialog .swatch-rose,.appearance-dialog .swatch-rose:hover{background:#b24a71}.appearance-dialog .swatch-teal,.appearance-dialog .swatch-teal:hover{background:#247f87}
.custom-color-picker{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:0.857143rem;margin-left:5px}
.custom-color-picker input{width:32px;height:32px;padding:2px;border:1px solid var(--line);border-radius:50%;background:var(--surface);cursor:pointer}
.color-value{display:flex;align-items:center;gap:12px;margin-top:15px;font-size:0.857143rem;color:var(--subtle)}.color-value input{width:106px;padding:8px 10px;font-family:Consolas,monospace;color:var(--ink);background:var(--surface);border-color:var(--line)}
.appearance-help{font-size:0.857143rem;line-height:1.55}.appearance-status{min-height:1em;color:var(--subtle)}
[data-theme=dark] :is(.form-grid label,.toolbar label,.calendar-toolbar label,th,.column h3){color:var(--subtle)}
.sidebar-close{background:var(--sidebar-hover);border-color:#ffffff40;color:var(--sidebar-ink)}
@media(min-width:721px){
 .layout{grid-template-columns:300px minmax(0,1fr)}
 html[data-sidebar=collapsed] .layout{grid-template-columns:55px minmax(0,1fr)}
 html[data-sidebar=collapsed] .layout>aside{display:block;width:55px;min-width:55px;padding:14px 4px;z-index:30;overflow-x:hidden}
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .nav-label,
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .brand>div,
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .nav-group>span,
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .nav-group>.opora-icon:last-child,
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .navigation-group.nested{display:none}
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .brand{padding:0 4px 22px;gap:0}
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .brand>span{width:38px;height:44px;min-width:38px}
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .nav{padding:12px;gap:0;min-height:46px}
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .nav-group{padding:13px;gap:0;min-height:46px}
 html[data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .navigation-group{margin-top:4px;padding-top:0}
 html[data-sidebar=collapsed] .layout>aside:is(:hover,[data-pointer-peek]),html[data-sidebar=collapsed] .layout>aside:focus-within{width:300px;padding:14px 10px;box-shadow:8px 0 28px #0b17292b}
}
@media(max-width:720px){.topbar{min-height:64px;padding:10px 14px;gap:11px}.topbar .company{font-size:0.857143rem}.account-menu .username,.account-menu>summary>.opora-icon{display:none}.account-menu>summary{padding:0}.topbar .account-menu .avatar{display:grid}.account-popover{top:calc(100% + 14px)}.content{padding-top:22px}.page-head h1{font-size:1.785714rem}.appearance-dialog .dialog-body{padding:20px}.appearance-options{gap:6px}.appearance-option{min-width:110px}.custom-color-picker{margin-left:0}.color-swatch{width:28px;height:28px;min-width:28px}}

/* Fluid workspace and personal palettes. */
.layout{width:100%}.layout>.main{width:100%}.layout>.main>.content{width:100%;max-width:none;margin:0}.topbar{width:100%}
.saved-palette{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.saved-color{display:flex;align-items:center;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}
.saved-color>button{border:0;border-radius:0;padding:7px 10px;background:transparent;font-size:0.785714rem}.saved-color>button:first-child{display:flex;align-items:center;gap:6px}.saved-color-dot{width:16px;height:16px;display:block;border:1px solid #80909870;border-radius:50%}.saved-color>button:hover{background:var(--accent-soft)}
.palette-save{margin-top:12px;font-size:0.857143rem}.map-open-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border:1px solid var(--green);border-radius:8px;background:var(--green);color:var(--primary-ink);font-size:0.857143rem!important;white-space:nowrap}.map-open-button:hover{color:var(--primary-ink);text-decoration:none;filter:brightness(.94)}
.map-type-label,.map-city-label{display:flex;align-items:center;gap:7px;font-size:0.857143rem}.map-type-label select,.map-city-label select{padding:7px 9px;width:auto;max-width:min(290px,68vw);font-size:0.857143rem}.dashboard-map-footer>button{font-size:0.714286rem;padding:5px 8px}.dashboard-map-toolbar>span{margin-left:auto}
.notification-record{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1}.notification-record>div{min-width:0;overflow-wrap:anywhere}.notification-type-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:var(--accent-soft);color:var(--green)}.notification-type-icon.critical{background:#b73a3418;color:#bf4141}.notification-type-icon .opora-icon{width:24px;height:24px;color:inherit}.notification-type-label{font-size:0.785714rem;color:var(--subtle);display:block;margin:0 0 7px}.notification-item{align-items:flex-start}.notification-item>.notification-record{flex:1}.notification-item>button{flex-shrink:0}
[data-theme=dark] .notification-type-icon.critical{background:#542e33;color:#ffc1c1}
@media(max-width:720px){.notification-item{flex-wrap:wrap}.notification-item>.notification-record{flex-basis:100%}.notification-item>button{margin-left:48px}.map-type-label select,.map-city-label select{max-width:240px}.map-open-button{padding:8px 10px}}

.city-search-field{display:grid;gap:9px;font-size:0.928571rem}.city-search-results{display:grid;gap:5px;margin:16px 0;max-height:min(46vh,420px);overflow:auto}.city-search-result{display:grid;gap:5px;text-align:left;padding:12px;border-radius:8px}.city-search-result>span{display:flex;align-items:center;gap:10px}.city-search-result small{padding-left:30px}.opora-map-marker{filter:drop-shadow(0 0 3px #1f764e80)}.opora-map-marker.marker-alarm{filter:drop-shadow(0 0 5px #cc41419c)}.opora-map-marker.marker-warning{filter:drop-shadow(0 0 4px #c36a1280)}

.city-search-field{display:grid;gap:9px;font-size:0.928571rem}.city-search-results{display:grid;gap:5px;margin:16px 0;max-height:min(46vh,420px);overflow:auto}.city-search-result{display:grid;gap:5px;text-align:left;padding:12px;border-radius:8px}.city-search-result>span{display:flex;align-items:center;gap:10px}.city-search-result small{padding-left:30px}.opora-map-marker{filter:drop-shadow(0 0 3px #1f764e80)}.opora-map-marker.marker-alarm{filter:drop-shadow(0 0 5px #cc41419c)}.opora-map-marker.marker-warning{filter:drop-shadow(0 0 4px #c36a1280)}

















/* Reconnect status */
.opora-connection-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;width:max-content;max-width:calc(100vw - 28px);display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#253330);box-shadow:0 8px 30px #112b342b;z-index:1200;font-size:0.857143rem;line-height:1.5}.opora-connection-bar[hidden]{display:none}.opora-connection-bar[data-state=offline]{border-color:#b87927}.opora-connection-bar button{font-size:0.785714rem;padding:6px 10px;white-space:nowrap}.connection-write-warning{display:block;width:100%;font-weight:600;color:#a05016}[data-theme=dark] .connection-write-warning{color:#ffc97f}@media(max-width:720px){.opora-connection-bar{width:calc(100vw - 28px);bottom:12px;padding:11px 13px}}
dialog .opora-connection-bar{position:static;transform:none;width:auto;max-width:none;margin:0 20px 18px;box-shadow:none}
/* End reconnect status */

.server-access-label{display:grid;gap:8px;margin-bottom:18px;font-size:0.857143rem}.server-access-label input{font-family:Consolas,monospace}.server-access-label select{max-width:100%}
.server-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
.server-overview .server-overview-card{min-width:0;margin:0;padding:16px 18px;display:grid;align-content:start;gap:9px;overflow-wrap:anywhere}
.server-overview-label{font-size:.82rem;color:var(--muted)}
.server-live-state,.server-overview-value{font-size:1.05rem}
.server-live-state{display:flex;align-items:center;gap:8px}
.server-live-state span{flex:none;width:8px;height:8px;border-radius:50%;background:#31846a;box-shadow:0 0 0 3px #31846a22}
.server-live-state[data-state=offline] span{background:#a75642;box-shadow:0 0 0 3px #a7564222}
.server-overview-card :is(p,code){margin:0;font-size:.85rem}
.server-overview-card code{white-space:normal;color:inherit;overflow-wrap:anywhere}
.server-startup-help summary{cursor:pointer;padding:13px 18px;font-weight:600}
.server-startup-help .panel-body{padding-top:0}
.server-startup-help ol{margin:0;padding-inline-start:21px;line-height:1.65}
.server-access-panels{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:14px}
.server-access-panels .server-access-panel{min-width:0;margin:0}
@media(max-width:860px){.server-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.server-access-panels{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.server-overview{grid-template-columns:minmax(0,1fr);gap:10px}.server-overview .server-overview-card{padding:14px}}

/* Employee header: keep all account actions reachable on a narrow screen. */
@media(max-width:720px){.mobile-workplace .topbar{align-items:flex-start}.mobile-workplace .topbar>.user{flex:1 1 100%;width:100%;max-width:100%;min-width:0;justify-content:flex-start;gap:8px}.mobile-workplace .mobile-account-name{order:-1;flex:1 0 100%;max-width:100%}.mobile-workplace .topbar .user>button{max-width:100%;white-space:normal}}
/* End employee header. */

















/* Object workspace card. */
#modal:has(.object-card-nav){width:min(1280px,96vw);max-width:96vw}
.object-card-nav{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;max-width:100%;padding:0 18px}.object-card-nav button{flex-shrink:0}.object-card-nav button[aria-selected=true]{color:var(--green);border-bottom:2px solid var(--green)}
.object-card-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;flex-wrap:wrap}.object-card-summary label{max-width:360px;display:grid;gap:6px;font-size:0.857143rem}.object-card-summary select{max-width:100%}
#modal:has(.post-card-nav) .form-actions{flex-wrap:wrap}
@media(max-width:650px){#modal>.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));white-space:normal;overflow:visible}#modal>.tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere}}
@media(max-width:650px){.post-card-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));white-space:normal;overflow:visible}.post-card-nav button{min-width:0;white-space:normal;overflow-wrap:anywhere}#modal:has(.post-card-nav) .form-actions{justify-content:flex-start}#modal:has(.post-card-nav) .form-actions button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}}
.object-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.object-card-grid>div{min-width:0}.object-card-section{border:1px solid var(--line);border-radius:10px;margin-bottom:16px;overflow:hidden;padding:14px}.object-card-section h3{color:var(--green);margin-bottom:12px}.object-card-section dl{margin:0}.object-card-section dl>div{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1.3fr);gap:12px;border-bottom:1px solid var(--line);padding:8px 0}.object-card-section dl>div:last-child{border-bottom:0}.object-card-section dt{color:var(--muted);font-size:0.857143rem;overflow-wrap:anywhere}.object-card-section dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.object-card-section .empty{padding:20px 8px}.object-card-section .record-link{max-width:100%;white-space:normal;overflow-wrap:anywhere}.object-card-section .table-wrap{margin-bottom:12px}
.object-card-photos{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.object-card-photos img{width:88px;height:88px;object-fit:contain;border-radius:8px;background:var(--secondary)}#object-card-map{height:220px;isolation:isolate;position:relative}#object-card-map .empty{height:100%;display:grid;align-content:center}#object-card-map-provider{display:block;margin-top:6px}
.object-card-carousel{display:grid;gap:8px;margin-bottom:12px;min-width:0}.object-card-carousel img{width:100%;max-height:240px;object-fit:contain;border-radius:8px;background:var(--secondary)}.object-photo-controls{display:flex;align-items:center;justify-content:center;gap:14px}.object-photo-controls button{font-size:1.571429rem;line-height:1;padding:5px 12px}.object-card-carousel small{overflow-wrap:anywhere;text-align:center}
.object-card-subnav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.object-card-subnav button[aria-pressed=true]{background:var(--accent-soft);color:var(--green)}.object-card-upload{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:24px}.object-card-upload>label{display:grid;gap:6px;max-width:100%;flex:1 1 220px}.object-card-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.object-card-file-grid .object-card-section{margin:0}.object-card-file{display:grid;gap:8px;border-top:1px solid var(--line);padding:14px 0;min-width:0}.object-card-file>a{overflow-wrap:anywhere}.object-card-file img{max-width:100%;max-height:180px;object-fit:contain;border-radius:8px}.object-card-file select{font-size:0.857143rem}.object-editor-group{border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0;margin:0}.object-editor-group legend{font-weight:600;padding:0 8px;color:var(--green)}
@media(max-width:1000px){.object-card-grid,.object-card-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.object-card-grid,.object-card-file-grid{grid-template-columns:minmax(0,1fr)}.object-card-nav{padding:0 8px}.object-card-nav button{font-size:0.857143rem;padding:10px}.object-card-summary label{width:100%}.object-card-section{padding:12px}.object-card-upload{align-items:stretch}.object-editor-group{padding:10px}.object-editor-group .form-grid{grid-template-columns:minmax(0,1fr)}}
/* End object workspace card. */

/* Home dashboard: source grid and compact cards. */
.opora-post-tooltip{width:max-content;max-width:min(320px,80vw);white-space:normal;overflow-wrap:anywhere}.map-post-tooltip>div+div{margin-top:8px;padding-top:8px;border-top:1px solid currentColor}.map-post-tooltip strong{font-weight:700}.map-post-tooltip-total{font-weight:600}
:root{--dashboard-surface:#f8f9fa;--dashboard-line:#dfe2e6}
:root[data-theme=dark]{--dashboard-surface:var(--surface);--dashboard-line:var(--line)}
.content:has(#dashboard-root){padding:14px 16px 22px;max-width:none}
:root:not([data-theme=dark]) .main:has(#dashboard-root){background:#fff}
#dashboard-root{font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1rem;line-height:1.4;color:var(--ink)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:36px}
.dashboard-scopes{display:flex;align-items:stretch;background:var(--secondary);border:1px solid var(--dashboard-line);border-radius:8px;overflow:hidden;flex-shrink:0}
.dashboard-scopes button{padding:9px 13px;border:0;border-radius:0;font-size:0.857143rem;line-height:16px;background:transparent;color:var(--ink);white-space:nowrap}
.dashboard-scopes button[aria-pressed=true]{background:var(--accent-soft);color:var(--green);font-weight:600}
.dashboard-date{display:flex;align-items:center;gap:9px;color:var(--subtle);font-size:1.214286rem;font-weight:600;line-height:1.35}
.dashboard-date>.opora-icon{width:24px;height:24px;color:var(--subtle)}
.dashboard-date>button{display:grid;place-items:center;width:30px;height:30px;padding:4px;border:0;background:transparent}
.dashboard-date>button>.opora-icon{width:18px;height:18px}
.dashboard-fetch-status:empty,#dashboard-scope-status:empty{display:none}
.dashboard-fetch-status,#dashboard-scope-status{margin:12px 0 0;padding:9px 12px;font-size:0.857143rem;border:1px solid var(--dashboard-line);border-radius:7px;background:var(--accent-soft);color:var(--ink)}
.dashboard-company{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:134px;margin:14px 0;background:var(--dashboard-surface);border:1px solid var(--dashboard-line);border-radius:8px;color:var(--ink);text-align:center;overflow:hidden;padding:8px 14px}
.dashboard-company:hover{text-decoration:none;border-color:var(--green)}
.dashboard-company>.opora-icon{width:50px;height:50px}.dashboard-company>strong{font-size:1.357143rem;font-weight:600;max-width:100%;overflow-wrap:anywhere}
.dashboard-company>img{max-height:102px;max-width:min(300px,100%);width:auto;object-fit:contain}.dashboard-company:has(img)>strong{font-size:0.857143rem;color:var(--subtle)}
.dashboard-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.dashboard-metric{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:118px;padding:12px 14px;border:1px solid var(--dashboard-line);border-radius:8px;background:var(--dashboard-surface);color:var(--ink)}
.dashboard-metric:hover{border-color:var(--green);text-decoration:none}
.dashboard-metric-title{display:flex;align-items:center;gap:8px;min-height:28px;font-size:1rem;font-weight:500}
.dashboard-metric-title>.opora-icon{width:28px;height:28px;color:var(--green)}
.dashboard-metric-title>.dashboard-metric-info{width:16px;height:16px;margin-left:auto;color:var(--subtle)}
.dashboard-metric-info>.opora-icon{width:16px;height:16px;display:block;color:inherit}
.dashboard-metric>strong{font-size:2rem;line-height:34px;font-weight:700;letter-spacing:0}
.dashboard-metric-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:0.857143rem;line-height:18px;margin-top:auto}
.dashboard-metric-foot small{font-size:0.857143rem;color:var(--subtle)}.dashboard-metric-foot>span:last-child{color:var(--green);white-space:nowrap}
.dashboard-metric-foot small.danger{color:#aa483d}
.dashboard-tools-section>h2{font-size:1.142857rem;line-height:20px;font-weight:600;margin:14px 0 10px}
.dashboard-tools{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}
.dashboard-tool{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:174px;padding:12px 14px;border:1px solid var(--dashboard-line);border-radius:8px;color:var(--ink);background:var(--dashboard-surface)}
.dashboard-tool:hover{border-color:var(--green);text-decoration:none}.dashboard-tool-title{display:flex;align-items:flex-start;gap:8px;min-height:36px;font-size:0.928571rem;line-height:18px;font-weight:500}
.dashboard-tool-title>.opora-icon{width:22px;height:22px;color:var(--green);flex-shrink:0}
.dashboard-tool>strong{font-size:1.714286rem;font-weight:700;line-height:29px}
.dashboard-tool dl{margin:0;font-size:0.857143rem;line-height:18px}.dashboard-tool dl>div{display:flex;justify-content:space-between;gap:8px}.dashboard-tool dt{color:var(--subtle);font-weight:400}.dashboard-tool dd{margin:0}
.dashboard-tool .danger dt{color:inherit}.dashboard-tool-open{text-align:right;color:var(--green);font-size:0.857143rem;line-height:18px;margin-top:auto}
.dashboard-columns{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:14px 0}
.dashboard-panel{height:320px;min-width:0;margin:0;border-radius:8px;border-color:var(--dashboard-line);background:var(--dashboard-surface);overflow:auto}
.dashboard-panel .panel-head{padding:12px 14px;min-height:45px;border-bottom:1px solid var(--dashboard-line);gap:8px}
.dashboard-panel .panel-head h2{font-size:1rem;font-weight:600;line-height:19px}.dashboard-panel .panel-head a{font-size:0.857143rem}
.dashboard-empty{display:grid;place-items:center;min-height:115px;padding:20px 14px;margin:0;color:var(--subtle);text-align:center;font-size:0.857143rem;line-height:1.6}
.dashboard-news-item{padding:13px 14px;border-bottom:1px solid var(--dashboard-line)}.dashboard-news-item:last-child{border:0}.dashboard-news-item>small{display:block;font-size:0.785714rem;margin:7px 0;color:var(--subtle)}.dashboard-news-item>p{font-size:0.857143rem;line-height:1.55;margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.dashboard-event{padding:10px 14px;border-bottom:1px solid var(--dashboard-line);font-size:0.857143rem;overflow-wrap:anywhere}.dashboard-event:last-child{border:0}.dashboard-event>small{display:block;font-size:0.785714rem;line-height:1.5;color:var(--subtle);margin-top:5px}
.dashboard-panel .record-link{font-size:0.857143rem;line-height:1.4;white-space:normal}
.dashboard-count-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;color:var(--ink);font-size:0.857143rem;line-height:18px}
.dashboard-count-row:hover{background:var(--accent-soft);text-decoration:none}.dashboard-count-row strong{font-weight:600;color:var(--green);flex-shrink:0}
.dashboard-period{font-size:0.785714rem;line-height:16px;color:var(--subtle);padding:8px 14px 3px;margin:0}.dashboard-report-link{display:block;padding:7px 14px;font-size:0.857143rem;text-align:right}
.dashboard-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px 8px}
.dashboard-calendar-head>h2{font-size:0.928571rem;line-height:19px;margin:0;text-transform:uppercase;font-weight:600;letter-spacing:.3px}
.dashboard-calendar-head>div{display:flex;gap:5px}.dashboard-calendar-head button{display:grid;place-items:center;width:27px;height:27px;padding:4px;border:0;background:transparent;color:var(--ink)}
.dashboard-calendar-head button>.opora-icon{width:18px;height:18px;color:inherit}.dashboard-calendar-head [data-dashboard-month="-1"]>.opora-icon{transform:rotate(90deg)}.dashboard-calendar-head [data-dashboard-month="1"]>.opora-icon{transform:rotate(-90deg)}
.dashboard-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;padding:0 12px}
.dashboard-weekday{font-size:0.785714rem;font-weight:500;text-align:center;color:var(--subtle);line-height:20px}
.dashboard-calendar-grid>button{position:relative;min-height:31px;height:31px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink);padding:3px 0;font-size:0.857143rem;line-height:20px;text-align:center}
#dashboard-calendar .dashboard-calendar-grid>button{border-color:transparent;background:transparent}
#dashboard-calendar .dashboard-calendar-grid>button[aria-current=date]{border-color:var(--green)}
#dashboard-calendar .dashboard-calendar-grid>button[aria-pressed=true],#dashboard-calendar .dashboard-calendar-grid>button:hover{background:var(--accent-soft)}
.dashboard-calendar-grid>button[aria-current=date]{border-color:var(--green);font-weight:700}
.dashboard-calendar-grid>button[aria-pressed=true]{color:var(--green);background:var(--accent-soft)}
.dashboard-calendar-grid>button:hover{background:var(--accent-soft)}.dashboard-calendar-grid>button.other-month{color:var(--subtle);opacity:.7}
.dashboard-calendar-grid>button>small{position:absolute;right:2px;top:0;min-width:12px;height:12px;line-height:12px;border-radius:6px;font-size:0.642857rem;background:var(--green);color:var(--primary-ink)}
.dashboard-calendar-agenda{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px 0}
.dashboard-calendar-agenda button{border:0;background:transparent;padding:4px 0;font-size:0.785714rem;color:var(--green)}
.dashboard-map-panel{margin:14px 0 0;border-radius:8px;border-color:var(--dashboard-line);background:var(--dashboard-surface)}
.dashboard-map-panel>.panel-head{min-height:44px;padding:12px 14px}.dashboard-map-panel>.panel-head>h2{font-size:1rem}
.dashboard-map-toolbar{display:flex;align-items:center;gap:10px;padding:9px 12px;flex-wrap:wrap;font-size:0.857143rem}
.dashboard-map-toolbar button{padding:6px 10px;font-size:0.857143rem;background:var(--dashboard-surface)}.dashboard-map-toolbar label{display:flex;align-items:center;gap:6px}.dashboard-map-toolbar input{width:15px;height:15px;margin:0;accent-color:var(--green)}
.dashboard-map-toolbar>span{margin-left:auto;color:var(--subtle);font-size:0.785714rem}
#dashboard-post-map{height:320px;min-height:270px;width:100%}
.dashboard-map-footer{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;font-size:0.785714rem;color:var(--subtle);flex-wrap:wrap;line-height:1.5}
.dashboard-map-legend{display:flex;flex-wrap:wrap;gap:12px}.map-key{display:inline-flex;gap:5px;align-items:center}.map-key:before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:#23834d}.map-key.event:before{background:#c36a12}.map-key.alarm:before{background:#bf4141}.map-key.inactive:before{background:#707780}
@media(max-width:1600px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-tools{grid-template-columns:repeat(5,minmax(0,1fr))}.dashboard-columns{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.dashboard-top{flex-wrap:wrap}.dashboard-date{margin-left:auto;font-size:1rem}}
@media(max-width:960px){.dashboard-metrics,.dashboard-tools,.dashboard-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.content:has(#dashboard-root){padding:16px 16px 20px}.dashboard-top{gap:14px}.dashboard-scopes{max-width:100%}.dashboard-scopes button{padding:9px 10px;font-size:0.785714rem}.dashboard-date{width:100%;justify-content:space-between;margin-left:0;font-size:1.214286rem;line-height:1.5}.dashboard-date>time{flex:1}.dashboard-company{height:134px}.dashboard-company>strong{font-size:1.214286rem}.dashboard-metric{padding:12px 13px;min-height:165px}.dashboard-metric-title{align-items:flex-start;font-size:1rem;line-height:20px;min-height:40px;gap:7px}.dashboard-metric-title>.opora-icon{width:24px;height:24px}.dashboard-metric-title>.dashboard-metric-info{display:none}.dashboard-metric>strong{font-size:2rem}.dashboard-metric-foot{align-items:flex-start;font-size:0.785714rem;gap:7px}.dashboard-metric-foot small{font-size:0.785714rem;line-height:17px}.dashboard-metric-foot>span:last-child{white-space:normal}.dashboard-tool{padding:12px;min-height:174px}.dashboard-tool-title{font-size:0.857143rem}.dashboard-map-toolbar>span{width:100%;margin-left:0}.dashboard-map-toolbar{gap:8px}.dashboard-map-footer{gap:8px}#dashboard-post-map{height:300px}.dashboard-panel .panel-head{padding:11px 9px}.dashboard-panel .panel-head h2{font-size:0.928571rem}.dashboard-count-row{padding:7px 9px;gap:6px}.dashboard-period{padding-left:9px;padding-right:9px}.dashboard-calendar-head{padding-left:8px;padding-right:8px}.dashboard-calendar-head>h2{font-size:0.785714rem}.dashboard-calendar-head>div{gap:1px}.dashboard-calendar-head button{width:23px;padding:2px}.dashboard-calendar-grid{padding:0 6px;gap:1px}.dashboard-calendar-grid>button{font-size:0.785714rem}.dashboard-calendar-agenda{padding-left:8px;padding-right:8px;flex-wrap:wrap;gap:0}.dashboard-calendar-agenda button{font-size:0.714286rem}.dashboard-calendar-grid>button>small{font-size:0.571429rem;min-width:9px;width:9px;height:9px;line-height:9px;right:0}}

.dashboard-attention-symbol{display:inline-flex;align-items:center;margin-right:8px;flex-shrink:0}.dashboard-attention-symbol .material-icon{width:16px;height:16px;color:inherit}.dashboard-attention-symbol.critical{color:#cf3434}.dashboard-attention-symbol.warning{color:#d87d10}.dashboard-attention-symbol.information{color:#247dd0}#dashboard-attention .dashboard-count-row>span:nth-child(2){flex:1}

.dashboard-map-attribution{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.dashboard-map-attribution>button{padding:4px 7px;font-size:0.714286rem}.dashboard-map-footer{align-items:flex-end}

.dashboard-map-attribution{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.dashboard-map-attribution>button{padding:4px 7px;font-size:0.714286rem}.dashboard-map-footer{align-items:flex-end}
.messenger{display:grid;grid-template-columns:minmax(230px,30%) minmax(0,1fr);height:clamp(520px,73vh,900px);border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);color:var(--ink)}
.messenger-sidebar{min-width:0;border-right:1px solid var(--line);display:flex;flex-direction:column}.chat-search{padding:14px;margin:0}.chat-search input{margin-top:7px}.chat-tabs{display:flex;gap:3px;padding:0 10px 10px;border-bottom:1px solid var(--line)}.chat-tabs button{padding:9px 6px;font-size:0.785714rem;flex:1;border:0;background:transparent}.chat-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--green)}
.chat-list{overflow:auto;flex:1;min-height:0;scrollbar-width:thin}.chat-contact{display:flex;width:100%;gap:10px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px;background:transparent;color:var(--ink)}.chat-contact.selected{background:var(--accent-soft)}.chat-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--accent-soft);color:var(--green);flex-shrink:0;font-size:0.928571rem;font-weight:600}.chat-contact-copy{min-width:0;flex:1}.chat-contact-copy strong,.chat-contact-copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-contact-copy small{font-size:0.785714rem;color:var(--subtle);margin-top:6px}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}.chat-header{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere}.chat-header strong{min-width:0}.chat-header #chat-back{display:none}.chat-feed{flex:1;min-height:0;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.chat-bubble{max-width:85%;width:fit-content;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);align-self:flex-start;min-width:0}.chat-bubble.outgoing{align-self:flex-end;background:var(--accent-soft)}.chat-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:0.928571rem;line-height:1.6}.chat-bubble footer{font-size:0.714286rem;color:var(--subtle);margin-top:8px}.chat-file{display:block;border:1px solid var(--line);border-radius:7px;padding:9px 12px;margin-top:9px;overflow-wrap:anywhere;color:var(--green)}.chat-file small{display:block;margin-top:5px;color:var(--subtle)}.chat-compose{padding:12px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;background:var(--surface);border-top:1px solid var(--line)}.chat-compose>label:first-child,.chat-compose>.error{grid-column:1/-1}.chat-compose label{margin:0}.chat-compose textarea{width:100%;resize:vertical;max-height:180px}.chat-attach{grid-column:1;min-width:0}.chat-attach input{max-width:100%;font-size:0.785714rem}.chat-compose #chat-file-names{grid-column:1;font-size:0.714286rem;overflow-wrap:anywhere}.chat-compose #chat-send{grid-column:2;grid-row:2/4;align-self:end}.chat-empty{margin:auto;padding:28px;text-align:center;font-size:0.928571rem;color:var(--subtle)}.chat-no-results,.chat-readonly{padding:18px}.chat-main #chat-status{font-size:0.785714rem;padding:0 18px;margin:5px 0}
@media(max-width:720px){.messenger{grid-template-columns:minmax(0,1fr);height:75vh;min-height:460px}.messenger .chat-main{display:none}.messenger.chat-selected .messenger-sidebar{display:none}.messenger.chat-selected .chat-main{display:flex}.chat-header #chat-back{display:block}.chat-bubble{max-width:95%}.chat-feed{padding:12px}.chat-compose{padding:12px}.chat-header{padding:12px}.messenger-sidebar{border:0}}
@media(max-width:720px){.chat-header{gap:8px}.chat-header .chat-avatar{display:none}.chat-header strong{flex:1;font-size:0.857143rem}.chat-header #chat-back,.chat-header #chat-newest{white-space:nowrap;padding:9px;font-size:0.785714rem}}

/* Shared employee and group messenger. */
.chat-compose>label:first-of-type{grid-column:1/-1}.chat-reply{grid-column:1/-1;display:flex;align-items:center;gap:10px;font-size:0.785714rem;flex-wrap:wrap}.chat-reply:has(span:empty){display:none}.chat-compose:has(.chat-reply span:not(:empty)) #chat-send{grid-row:3/5}.chat-members{font-size:0.785714rem;padding:0 18px;max-height:65px;overflow:auto;margin:5px 0;overflow-wrap:anywhere}.chat-members:empty{display:none}.chat-author{display:block;font-size:0.857143rem;margin-bottom:7px}.chat-message-actions{display:flex;gap:14px;margin-top:6px;flex-wrap:wrap}.chat-message-actions button{font-size:0.714286rem}.chat-bubble>button[data-chat-source]{display:block;font-size:0.714286rem;margin-bottom:5px}.chat-main>[hidden]{display:none!important}#chat-accept-members{margin:5px 18px;font-size:0.785714rem}.mobile-workplace:has(#messenger) .content{max-width:none}.chat-tabs button{min-width:0}#chat-groups-more{display:block;margin:12px auto;font-size:0.785714rem}

.messenger-shared{min-height:640px;height:clamp(640px,78vh,980px)}.messenger-shared .chat-compose textarea{min-height:72px;height:72px}.mobile-workplace:has(.messenger-shared) #mobile-handovers,.mobile-workplace:has(.messenger-shared) #mobile-password{display:none}

.mobile-workplace .brand>span{color:var(--green)}

/* Compact messenger composer and removable attachment queue. */
.chat-compose-compact{display:flex;flex-direction:column;gap:8px}
.chat-compose-tools{display:flex;gap:10px;align-items:flex-end;min-width:0}
.chat-compose-tools textarea{min-width:0;flex:1}
.messenger-shared .chat-compose-compact textarea{min-height:44px;height:48px;max-height:160px}
.chat-compose-tools>button{display:grid;place-items:center;width:42px;height:44px;padding:10px;flex-shrink:0}
.chat-compose-tools #chat-send{border-radius:50%;align-self:flex-end}
.chat-symbol{width:21px;height:21px;display:block;flex-shrink:0}
.chat-compose-compact #chat-file-names{line-height:1.5}
.chat-selected-files{display:flex;flex-wrap:wrap;gap:7px;min-width:0;max-height:148px;overflow:auto}
.chat-selected-files:empty,.chat-compose-compact .error:empty{display:none}
.chat-pending-file{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:7px 8px;background:var(--bg)}
.chat-pending-file>span{min-width:0;overflow-wrap:anywhere;font-size:0.857143rem}
.chat-pending-file small{display:block;color:var(--subtle);margin-top:3px;font-size:0.714286rem}
.chat-pending-file>button{padding:3px 7px;flex-shrink:0;font-size:1.357143rem;line-height:1.2}
@media(max-width:420px){.chat-compose-tools{gap:6px}.chat-compose-tools>button{width:38px}.chat-compose-compact{padding:10px}.chat-pending-file{width:100%}.chat-pending-file>span{flex:1}}

.chat-header strong{flex:1}.chat-header-tools{display:flex;align-items:center;gap:7px;flex-shrink:0}.chat-header-tools>button:has(svg){padding:8px;width:36px;height:36px;display:grid;place-items:center}
.chat-muted{display:inline-flex;margin-left:5px;vertical-align:middle;color:var(--subtle)}.chat-muted svg{width:14px;height:14px}
.chat-mute-option{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.chat-mute-option input,.chat-files-only input{width:auto;flex-shrink:0;margin:4px 0}.chat-mute-option span{min-width:0}.chat-mute-option small{display:block;margin-top:7px;color:var(--subtle);line-height:1.6}
.chat-mute-option>input[type=checkbox]{appearance:none;width:40px;min-width:40px;height:24px;min-height:24px;padding:2px;border:1px solid var(--line);border-radius:20px;background:var(--subtle);cursor:pointer}.chat-mute-option>input[type=checkbox]::before{content:'';display:block;width:18px;height:18px;border-radius:50%;background:var(--surface)}.chat-mute-option>input[type=checkbox]:checked{background:var(--green)}.chat-mute-option>input[type=checkbox]:checked::before{transform:translateX(16px)}.chat-mute-option>input[type=checkbox]:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.chat-participants{border:1px solid var(--line);border-radius:10px;overflow:hidden}.chat-participant{display:flex;gap:12px;align-items:center;padding:14px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.chat-participant:last-child{border-bottom:0}.chat-participant>span:last-child{min-width:0}.chat-participant small{display:block;color:var(--subtle);margin-top:5px}
.chat-history-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.chat-history-form>label:first-child{flex:1;min-width:180px}.chat-history-form label{margin:0}.chat-files-only{display:flex;gap:8px;align-items:center;max-width:100%}
.chat-search-results{display:flex;flex-direction:column;gap:18px}.chat-search-hit{padding:12px;border:1px solid var(--line);border-radius:10px;min-width:0}.chat-search-hit .chat-bubble{max-width:100%;margin-bottom:8px}.chat-search-hit>.record-link{font-size:0.857143rem;text-align:left}
#chat-history-more{margin-top:16px}#chat-tools-body h3{overflow-wrap:anywhere}
#chat-alerts{position:fixed;top:auto;left:auto;right:18px;bottom:18px;width:min(370px,calc(100vw - 36px));height:auto;min-height:0;max-height:55vh;padding:0;background:transparent;overflow:auto;z-index:45;display:flex;flex-direction:column;gap:9px}
.chat-alert{display:flex;align-items:flex-start;border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 25px #0002;background:var(--surface);color:var(--ink)}.chat-alert>button:first-child{flex:1;min-width:0;border:0;text-align:left;background:transparent;padding:14px}.chat-alert strong,.chat-alert span{display:block;overflow-wrap:anywhere}.chat-alert span{font-size:0.857143rem;margin-top:7px;color:var(--subtle);line-height:1.5}.chat-alert>button:last-child{margin:6px;flex-shrink:0;padding:3px 7px;font-size:1.285714rem;border:0;background:transparent}
@media(max-width:720px){.chat-header{flex-wrap:wrap}.chat-header-tools{flex-basis:100%;justify-content:flex-end}.chat-history-form{align-items:stretch}.chat-history-form>label:first-child{min-width:0;flex-basis:100%}.chat-mute-option{padding:12px}.chat-search-hit{padding:8px}}
.primary:hover,[data-theme=dark] .primary:hover{background:var(--green);color:var(--primary-ink);filter:brightness(.94)}
.read-only #chat-settings-form .primary,.read-only #chat-history-form .primary{display:inline-flex!important}
.chat-global-results{flex:0 1 auto;max-height:45%;overflow:auto;border-bottom:1px solid var(--line);min-height:0}.chat-global-results[hidden]{display:none}.chat-global-results h3{padding:10px 14px;margin:0;font-size:0.785714rem;color:var(--subtle)}.chat-global-results>p{padding:10px 14px;font-size:0.857143rem}
.chat-global-hit{display:block;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent;padding:11px 14px;color:var(--ink)}.chat-global-hit strong,.chat-global-hit small,.chat-global-hit span{display:block;overflow:hidden;text-overflow:ellipsis}.chat-global-hit strong{font-size:0.857143rem;white-space:nowrap}.chat-global-hit small{font-size:0.714286rem;color:var(--subtle);margin:5px 0}.chat-global-hit span{font-size:0.857143rem;line-height:1.5;overflow-wrap:anywhere}.chat-global-hit:hover{background:var(--accent-soft)}#chat-global-more{display:block;margin:10px auto;font-size:0.785714rem}
.chat-highlight{outline:2px solid var(--green);outline-offset:3px}.message-revision{padding:16px 0;border-bottom:1px solid var(--line)}.message-revision pre,#message-edit-current pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:0.928571rem;line-height:1.6}.chat-edited{font-style:italic}

.task-chat-source{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 0;margin-bottom:18px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.chat-task-share{display:flex;gap:10px;align-items:flex-start;margin-top:20px;line-height:1.5}.chat-task-share input{width:18px;flex:0 0 18px;margin-top:2px}.chat-task-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto}#chat-draft-task{align-self:flex-start;justify-self:start;font-size:0.785714rem;padding:6px 10px}
.group-control-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.group-control-heading h3{margin:0;overflow-wrap:anywhere}.group-control-member{flex-wrap:wrap}.group-member-copy{flex:1;min-width:120px;overflow-wrap:anywhere}.group-control-member .form-actions{margin:0 0 0 auto;gap:6px}.group-control-member button{font-size:0.785714rem;padding:6px 9px}.group-candidates{max-height:220px;overflow:auto;margin:12px 0}.group-candidate{display:flex;align-items:center;gap:10px;padding:8px;margin:0}.group-candidate input{width:18px;flex:0 0 18px}#group-candidate-search label{flex:1;min-width:0}.group-leave{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.read-only [data-group-confirm]{display:inline-flex!important}@media(max-width:540px){.group-control-member .form-actions{width:100%;margin-left:0}.group-control-member .form-actions button{flex:1}.group-control-heading{align-items:flex-start}}

.chat-erp-card{display:flex;gap:12px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;margin-bottom:8px;background:var(--bg)}.chat-erp-card>div{min-width:0;flex:1}.chat-erp-card strong,.chat-erp-card small{display:block;overflow-wrap:anywhere}.chat-erp-card strong{margin:5px 0;font-size:0.928571rem}.chat-erp-card .record-link{font-size:0.857143rem}.chat-erp-symbol{color:var(--green);padding-top:4px}.chat-extra-tools>button{display:inline-flex;align-items:center;gap:7px;font-size:0.785714rem;padding:5px 9px}.chat-extra-tools .chat-symbol{width:17px;height:17px}#chat-selected-card:empty{display:none}.chat-pending-card{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:0.785714rem;min-width:0}.chat-pending-card>span{flex:1;min-width:0;overflow-wrap:anywhere}.chat-pending-card strong{display:block;margin-top:4px}.chat-pending-card>button{padding:4px 7px;flex-shrink:0}.chat-card-choice{display:flex;justify-content:space-between;gap:14px;align-items:center;width:100%;padding:14px;text-align:left;margin-top:7px}.chat-card-choice>strong{min-width:0;overflow-wrap:anywhere}.chat-card-choice>small{flex-shrink:0}#chat-card-results{max-height:48vh;overflow:auto;margin:15px 0}

.chat-attachment{border:1px solid var(--line);border-radius:9px;overflow:hidden;margin:9px 0;min-width:0;max-width:360px;background:var(--bg)}.chat-attachment-info{display:flex;align-items:center;gap:10px;padding:10px 12px}.chat-attachment-info>.chat-symbol{flex:0 0 24px;width:24px;height:24px}.chat-attachment-info>span{min-width:0}.chat-attachment-info strong,.chat-attachment-info small{display:block;overflow-wrap:anywhere}.chat-attachment-info strong{font-size:0.857143rem;line-height:1.5}.chat-attachment-info small{font-size:0.714286rem;margin-top:3px;color:var(--subtle)}.chat-attachment-actions{display:flex;align-items:center;gap:18px;padding:0 12px 11px;font-size:0.785714rem}.chat-attachment-actions button{font-size:0.785714rem;padding:0}.chat-photo-preview{display:block;border:0;border-radius:0;padding:0;width:100%;max-height:240px;overflow:hidden;background:var(--surface)}.chat-photo-preview img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain}.chat-photo-preview img[hidden],.chat-photo-fallback[hidden]{display:none}.chat-photo-fallback{display:block;padding:18px;font-size:0.785714rem;color:var(--subtle)}.chat-media-dialog{width:min(1050px,94vw);background:var(--surface);color:var(--ink)}.chat-media-dialog .dialog-head h2{font-size:1.285714rem;overflow-wrap:anywhere;min-width:0}.chat-media-dialog .dialog-head button{flex-shrink:0}.chat-media-dialog .dialog-body{padding:18px 24px}.chat-media-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.chat-media-controls>label{display:flex;gap:10px;align-items:center;font-size:0.857143rem;flex:1;min-width:150px}.chat-media-controls input{min-width:60px;width:100%;padding:0}.chat-media-controls button{font-size:0.857143rem;padding:8px 12px}.chat-media-controls output{font-size:0.857143rem;min-width:40px}.chat-media-stage{height:min(55vh,550px);min-height:140px;overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--bg)}.chat-media-canvas{position:relative;margin:auto}.chat-media-image{position:absolute;left:50%;top:50%;max-width:none;object-fit:contain}.chat-media-download,.chat-pdf-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-size:0.857143rem;overflow-wrap:anywhere;max-width:100%}@media(max-width:540px){.chat-media-dialog .dialog-head{padding:16px}.chat-media-dialog .dialog-body{padding:14px}.chat-media-controls{gap:7px}.chat-media-controls label{flex-basis:100%;order:-1}.chat-media-stage{height:40vh}.chat-media-download{display:flex}.chat-attachment{max-width:100%}}

.chat-pending-photo{width:42px;height:42px;object-fit:cover;border-radius:5px;flex-shrink:0}.chat-pending-photo[hidden],.chat-pending-file .chat-symbol[hidden]{display:none}

.chat-photo-preview{height:180px}.chat-photo-preview img{height:100%;max-height:none}

[data-chat-upload-progress]{min-width:0;font-size:0.857143rem;line-height:1.5}[data-chat-upload-progress] p{margin:6px 0;overflow-wrap:anywhere}[data-chat-upload-progress] button{font-size:0.785714rem;padding:6px 10px}[data-chat-upload-progress] button[hidden]{display:none}

/* Dedicated communicator workspace: list and history own their scroll areas. */
.main:has(.messenger-shared){height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.main:has(.messenger-shared)>.topbar{flex:none}
.main>.content:has(>.messenger-shared){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:14px 20px 20px}
.communicator-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0 0 14px;min-height:40px}
.communicator-toolbar h1{font-size:1.428571rem;font-weight:400;letter-spacing:0;color:var(--subtle);margin:0;line-height:1.3}
.communicator-actions{display:flex;align-items:center;gap:8px;flex:none}
.communicator-actions>button{height:36px;min-width:44px;display:grid;place-items:center;padding:8px 12px;border-radius:4px}
.communicator-actions .opora-icon{width:21px;height:21px;color:inherit}
.chat-create-personal{background:var(--green);border-color:var(--green);color:var(--primary-ink)}
.chat-create-group{background:#007ca8;border-color:#007ca8;color:#fff}
.communicator-more{position:relative}.communicator-more>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:4px;display:grid;place-items:center;width:36px;height:36px;background:var(--surface);color:var(--ink)}
.communicator-more>summary::-webkit-details-marker{display:none}.communicator-more[open]>div{position:absolute;right:0;top:43px;z-index:3;display:grid;gap:4px;width:190px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #0002}
.communicator-more>div>button{text-align:left;border:0;background:transparent}.communicator-more>div>button:hover{background:var(--accent-soft)}
.content>.messenger-shared{flex:1;height:auto;min-height:0;border:0;border-radius:0;background:transparent;gap:24px;grid-template-columns:minmax(260px,34%) minmax(0,1fr)}
.content>.messenger-shared>.messenger-sidebar,.content>.messenger-shared>.chat-main{border:1px solid var(--line);border-radius:5px;overflow:hidden;background:var(--surface);min-height:0}
.messenger-shared .chat-search{padding:10px 12px}.messenger-shared .chat-search input{margin:0;height:40px;background:var(--bg);border-radius:4px}
.messenger-shared .chat-tabs{padding:0 8px;gap:0}.messenger-shared .chat-tabs button{border-radius:0;text-transform:uppercase;padding:12px 3px;font-size:0.714286rem;border-bottom:2px solid transparent}
.messenger-shared .chat-tabs button[aria-pressed=true]{background:transparent;border-bottom-color:var(--green)}
.messenger-shared .chat-contact{padding:12px;min-height:72px}.messenger-shared .chat-header{padding:10px 12px;min-height:60px;flex:none}
.messenger-shared .chat-feed{background:var(--bg);padding:18px;scrollbar-width:thin}
.messenger-shared .chat-bubble{border-radius:9px 9px 9px 2px}.messenger-shared .chat-bubble.outgoing{border-radius:9px 9px 2px 9px}
.messenger-shared .chat-compose-compact{flex:none;max-height:52%;overflow:auto;padding:10px 12px;gap:6px}
.messenger-shared #chat-status:empty{display:none}.messenger-shared #chat-status{flex:none}
.messenger-shared .chat-members{flex:none;max-height:40px;margin:4px 0;font-size:0.714286rem}
.messenger-shared #chat-draft-task{align-self:flex-start;font-size:0.714286rem;padding:4px 7px}
.messenger-shared .chat-extra-tools button{font-size:0.714286rem;padding:4px 7px}
@media(max-width:720px){
 .main>.content:has(>.messenger-shared){padding:10px 12px 12px}
 .content>.messenger-shared{grid-template-columns:minmax(0,1fr);gap:0}
 .communicator-toolbar{margin-bottom:10px;gap:8px}.communicator-toolbar h1{font-size:1.357143rem}
 .communicator-actions{gap:6px}.communicator-actions>button{min-width:36px;padding:7px}
 .messenger-shared .chat-feed{padding:12px}.messenger-shared .chat-header{gap:6px}
 .messenger-shared .chat-header-tools{gap:4px}.messenger-shared .chat-header-tools>button{padding:6px}
 .communicator-actions .chat-workplace-return{position:absolute;left:12px;top:100%;z-index:2;height:auto;font-size:0.714286rem;background:var(--surface)}
 .communicator-toolbar:has(.chat-workplace-return){position:relative;margin-bottom:42px}
 .messenger-shared .chat-compose-compact{max-height:55%}
}

.chat-search .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

[data-theme] .communicator-actions>.chat-create-personal{background:var(--green);border-color:var(--green);color:var(--primary-ink)}
[data-theme] .communicator-actions>.chat-create-group{background:#007ca8;border-color:#007ca8;color:#fff}
.communicator-actions>button:hover{filter:brightness(.94)}
.messenger-shared #chat-back .opora-icon{width:20px;height:20px;transform:rotate(90deg)}
.messenger-shared #chat-newest .opora-icon{width:20px;height:20px}
@media(max-width:720px){.messenger-shared .chat-header{flex-wrap:nowrap}.messenger-shared .chat-header-tools{flex-basis:auto}.messenger-shared .chat-header strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.messenger-shared #chat-back{padding:7px;flex:none}.messenger-shared #chat-newest{width:32px;height:34px}}

.reference-picker{border:1px solid var(--line);border-radius:7px;padding:12px;min-width:0;max-height:260px;overflow:auto}.reference-picker legend{padding:0 6px;font-size:0.857143rem}.reference-picker label{display:flex;align-items:flex-start;gap:10px;margin:8px 0;overflow-wrap:anywhere}.reference-picker input{width:18px;min-width:18px;height:18px;margin:0}.reference-picker span{min-width:0}.object-dress-photo{display:block;width:auto;max-width:100%;max-height:160px;object-fit:contain;border-radius:5px;margin:8px 0}.object-reference-section ul{padding-left:18px}.object-reference-section li{margin:10px 0;overflow-wrap:anywhere}

.object-catalog-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.object-catalog-actions button{font-size:0.785714rem;padding:7px 9px}
.employee-indicators{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;max-width:260px;min-width:140px}
.primary-directory button.employee-indicator{display:inline-flex;align-items:center;gap:3px;min-height:23px;padding:2px 6px;border:1px solid transparent;border-radius:999px;background:var(--indicator-color);color:var(--indicator-ink);font-size:0.785714rem;font-weight:700;line-height:1.25;white-space:nowrap;box-shadow:none}
.primary-directory button.employee-indicator:hover{filter:brightness(.94);transform:none}.primary-directory button.employee-indicator:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.primary-directory button.employee-indicator.indicator-absent{background:transparent;color:inherit;border-color:var(--line)}
.indicator-mark{display:inline-grid;place-items:center;min-width:12px;height:14px;border-radius:50%;background:var(--indicator-ink);color:var(--indicator-color);font-size:0.714286rem;font-weight:800}
.indicator-absent .indicator-mark{background:transparent;color:inherit}.indicator-expired,.indicator-failed{box-shadow:0 0 0 1px #d14343!important}
.employee-indicator-options{display:grid;gap:0}.employee-indicator-option{display:grid;grid-template-columns:minmax(180px,1fr) minmax(110px,150px) 52px;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.employee-indicator-option>label:first-child{display:flex;align-items:center;gap:9px;margin:0}.employee-indicator-option input[type=checkbox]{width:17px;min-width:17px;height:17px;margin:0;accent-color:var(--green)}
.indicator-color-control{display:flex;align-items:center;gap:8px;margin:0!important;font-size:0.857143rem}.indicator-color-control input[type=color]{width:42px;min-width:42px;height:32px;padding:2px;border-radius:8px;cursor:pointer}
.indicator-setting-example{display:inline-flex;justify-content:center;align-items:center;padding:3px 7px;border-radius:999px;font-size:0.785714rem;font-weight:700;min-width:40px}.indicator-disabled-preview{opacity:.4}.indicator-current-state{font-size:1.214286rem;font-weight:600}
@media(max-width:520px){.employee-indicator-option{grid-template-columns:minmax(0,1fr) 52px;gap:10px}.employee-indicator-option>label:first-child{grid-column:1/-1}.indicator-color-control{justify-self:start}.indicator-setting-example{justify-self:end}.employee-indicators{max-width:230px}}
.participant-fields{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;margin:18px 0;padding:16px}.participant-fields legend{padding:0 7px;font-weight:600}.participant-fields>p{font-size:0.857143rem;line-height:1.6}.participant-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.participant-roles>label{min-width:0}
.participant-multiple{min-width:0;border:1px solid var(--line);border-radius:7px;padding:10px}.participant-multiple legend{font-weight:500;font-size:0.857143rem;max-width:100%;overflow-wrap:anywhere}.participant-options{max-height:185px;overflow:auto;padding:4px 0}.participant-options label{display:flex;gap:9px;align-items:flex-start;margin:10px 0;white-space:normal;overflow-wrap:anywhere}.participant-options label[hidden]{display:none}.participant-options input{width:17px;min-width:17px;height:17px;margin:0;accent-color:var(--green)}.participant-filter{padding:8px;font-size:0.857143rem}
.participant-summary{margin:18px 0;border-top:1px solid var(--line);padding-top:18px}.participant-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:0}.participant-summary dt{font-size:0.785714rem;color:var(--muted);margin-bottom:5px}.participant-summary dd{margin:0;white-space:normal;overflow-wrap:anywhere}.participant-summary dl>div{min-width:0}
@media(max-width:600px){.participant-roles,.participant-summary dl{grid-template-columns:minmax(0,1fr)}.participant-fields{padding:12px}.participant-options{max-height:160px}}

.pill.info,.notification-type-icon.info{background:#e4effb;color:#24588b}
[data-theme=dark] :is(.pill.info,.notification-type-icon.info){background:#243e58;color:#c4e1ff}

#office-create-access{display:grid;gap:14px;margin:20px 0}
#office-create-access>label,#office-organizations-form>label{display:grid;gap:7px}
#office-create-organizations,#office-organizations-options fieldset{display:grid;gap:12px;min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px}
#office-create-organizations legend,#office-organizations-options legend{padding:0 6px;font-size:0.928571rem}
#office-organizations-options{display:grid;gap:16px;margin:16px 0}
:is(#office-create-access,#office-organizations-options) .checkbox-line{display:flex;align-items:flex-start;gap:10px;margin:0;line-height:1.5;overflow-wrap:anywhere;font-size:0.928571rem}
:is(#office-create-access,#office-organizations-options) input[type=checkbox]{width:auto;flex:0 0 auto;margin:3px 0 0;accent-color:var(--green)}
#office-create-access .muted{margin:0;font-size:0.857143rem;line-height:1.6}
#office-organizations-options[hidden],#office-create-access[hidden],#office-create-organizations[hidden],#office-create-company-option[hidden]{display:none}
.read-only .appearance-dialog .primary{display:inline-flex!important}

.crm-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px;border-bottom:1px solid var(--line)}.crm-filters>label{display:grid;gap:7px;font-size:0.857143rem;min-width:0}.crm-filter-checks{grid-column:1/-1;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.crm-check{display:flex;align-items:center;gap:7px;font-size:0.857143rem}.crm-check input{width:17px;height:17px;margin:0;accent-color:var(--green)}.crm-table .crm-name-cell{min-width:220px;white-space:normal}.crm-table small{display:block;margin-top:6px;overflow-wrap:anywhere}.crm-card-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.crm-card-groups>section{border:1px solid var(--line);border-radius:8px;padding:16px;min-width:0}.crm-card-groups h3{color:var(--green)}.crm-card-groups dl{margin:0}.crm-card-groups dl>div{margin:12px 0}.crm-card-groups dt{font-size:0.785714rem;color:var(--subtle);margin-bottom:5px}.crm-card-groups dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.crm-field-heading{margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--line);color:var(--green)}.crm-board .card>small{line-height:1.5;overflow-wrap:anywhere}.crm-board .card>select{margin-top:8px}
@media(max-width:850px){.crm-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.crm-filters,.crm-card-groups{grid-template-columns:minmax(0,1fr)}.crm-filters{padding:14px}.crm-filter-checks{gap:12px}.crm-filter-checks button{flex:1}}

.crm-card-groups dl>div{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:10px;padding:8px 0;margin:0;border-bottom:1px solid var(--line)}.crm-card-groups dl>div:last-child{border-bottom:0}.crm-card-groups dt{line-height:1.5;margin:0}.crm-card-groups dd{line-height:1.5;min-width:0}.crm-card-groups>section:last-child{grid-column:1/-1}.crm-card-groups>section:last-child dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.crm-created{margin:14px 0 0;font-size:0.785714rem}
@media(max-width:540px){.crm-card-groups>section:last-child dl{grid-template-columns:minmax(0,1fr)}.crm-card-groups dl>div{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}}

.crm-template-settings,.crm-clone-files{min-width:0;border:1px solid var(--line);border-radius:8px;padding:16px;margin:8px 0}.crm-template-settings legend,.crm-clone-files legend{padding:0 7px;font-weight:600}.form-grid .crm-template-toggle,.crm-template-toggle{display:flex;gap:10px;align-items:flex-start;margin:12px 0;white-space:normal;overflow-wrap:anywhere}.crm-template-toggle input[type=checkbox]{width:17px;min-width:17px;height:17px;padding:0;margin:0;accent-color:var(--green)}.crm-clone-files small{display:block;margin-top:4px;color:var(--subtle)}#crm-template-title>label{display:grid;gap:7px;margin-top:14px}.crm-clone-files p{line-height:1.6}.crm-template-settings [hidden]{display:none}

.crm-column-choice{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;align-items:center;gap:6px;padding:7px 0;border-bottom:1px solid var(--line)}.crm-column-choice label{display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}.crm-column-choice input{width:17px;height:17px;margin:0;flex:none;accent-color:var(--green)}.crm-column-choice button{padding:5px;min-width:0}.crm-filters #crm-filter-error:empty{display:none}.crm-filters #crm-filter-error{grid-column:1/-1}

.crm-more-filters{grid-column:1/-1;min-width:0}.crm-more-filters summary{cursor:pointer;color:var(--green);font-weight:600;padding:6px 0}.crm-advanced-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-top:12px}.crm-advanced-filters>label{display:grid;gap:7px;font-size:0.857143rem;min-width:0}@media(max-width:850px){.crm-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.crm-advanced-filters{grid-template-columns:minmax(0,1fr)}}

.read-only #crm-column-save{display:inline-flex!important}

.crm-view-select{display:flex;align-items:center;gap:8px;font-size:0.857143rem}.crm-view-select select{width:auto;min-width:120px}.crm-sort{background:transparent;border:0;border-radius:0;padding:0;color:inherit;font:inherit;text-align:left;letter-spacing:inherit;text-transform:inherit}.crm-sort:focus-visible{outline:2px solid var(--green);outline-offset:5px}.crm-presentation-error{padding:14px 20px;color:var(--red);border-bottom:1px solid var(--line)}.crm-calendar{padding:20px;min-width:0}.crm-calendar .calendar-toolbar{align-items:flex-end}.crm-calendar .calendar-toolbar strong{flex:1;min-width:170px;padding-bottom:10px;text-transform:capitalize}.crm-calendar .calendar-toolbar label{display:grid;gap:6px;font-size:0.857143rem;min-width:0}.crm-calendar-grid,.crm-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.crm-calendar-weekdays{text-align:center;font-size:0.857143rem;color:var(--subtle);padding-bottom:8px}.crm-calendar-day{border:1px solid var(--line);border-radius:7px;min-width:0;min-height:110px;padding:6px;overflow:hidden;background:var(--surface)}.crm-calendar-day.today{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.crm-calendar-day.other-month{opacity:.6}.crm-calendar-date{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;min-width:0;border:0;padding:3px 1px;background:transparent;color:var(--ink);font-weight:600;text-align:left}.crm-calendar-count{font-size:0.714286rem;color:var(--green)}.crm-calendar-event{font-size:0.785714rem;padding:7px 6px;overflow-wrap:anywhere;white-space:normal}.crm-calendar-event small{font-size:0.714286rem}.crm-priority-high{border-left:3px solid #bd7400}.crm-priority-critical{border-left:3px solid #d43c45}.crm-calendar-day .crm-calendar-events{min-width:0}.crm-calendar-day .record-link{font-size:0.785714rem}.crm-calendar-day .crm-calendar-event{width:100%}.crm-calendar-grid.crm-calendar-day{display:block;border:0;padding:0;background:transparent}.crm-calendar-unscheduled{margin-top:18px}.crm-calendar-unscheduled summary{cursor:pointer;padding:10px 0}.crm-calendar-unscheduled>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}.crm-calendar-day .crm-calendar-date:focus-visible{outline:2px solid var(--green)}
@media(max-width:850px){.crm-calendar{padding:14px}.crm-calendar-week{grid-template-columns:minmax(0,1fr)}.crm-calendar-week .crm-calendar-events,.crm-calendar-grid.crm-calendar-day .crm-calendar-events{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.crm-calendar-week .crm-calendar-day{min-height:70px}}
@media(max-width:540px){.crm-calendar-month{gap:3px}.crm-calendar-month .crm-calendar-day{padding:3px;min-height:48px}.crm-calendar-month .crm-calendar-events{display:none}.crm-calendar-month .crm-calendar-date{flex-direction:column;gap:2px;font-size:0.857143rem}.crm-calendar .calendar-toolbar strong{order:-1;flex-basis:100%;padding-bottom:0}.crm-calendar .calendar-toolbar label{flex:1;max-width:none}.crm-calendar .calendar-toolbar input{min-width:0}.crm-view-select{width:100%;justify-content:flex-end}}

@media(max-width:540px){.crm-calendar .calendar-toolbar label{flex:1 1 calc(50% - 4px)}.crm-calendar .calendar-toolbar :is(input,select){width:100%;max-width:100%;min-width:0}}@media(max-width:380px){.crm-calendar .calendar-toolbar label{flex-basis:100%}}

.crm-filter-panel>summary{cursor:pointer;padding:14px 20px;font-weight:600;color:var(--green);border-bottom:1px solid var(--line)}.crm-filter-panel:not([open])>summary{border-radius:8px 8px 0 0}.crm-filter-panel>.crm-filters{border-top:0}

.record-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;min-width:0}.record-tag{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 8px;border:1px solid var(--line);border-radius:14px;background:var(--secondary);color:var(--ink);font-size:0.785714rem;line-height:1.4;overflow-wrap:anywhere;white-space:normal}.record-tags-summary{margin-top:20px;padding:15px 0;border-top:1px solid var(--line)}.record-tags-summary h3{font-size:0.928571rem;margin:0 0 8px}.record-tags-editor{border:1px solid var(--line);border-radius:8px;padding:14px;margin:20px 0;min-width:0}.record-tags-editor legend{font-weight:600;padding:0 6px}.record-tags-editor [data-record-tags]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.record-tags-editor .record-tag button{border:0;padding:0;background:transparent;color:inherit;font-size:1.142857rem;line-height:1;width:19px;min-width:19px;flex:none;border-radius:50%}.record-tag-entry{display:flex;align-items:flex-end;gap:10px;margin-bottom:10px}.record-tag-entry label{flex:1;min-width:0;display:grid;gap:6px}.record-tag-entry input{min-width:0;width:100%}.record-tags-editor>.muted{font-size:0.785714rem}@media(max-width:380px){.record-tag-entry{flex-wrap:wrap}.record-tag-entry label{flex-basis:100%}.record-tag-entry button{width:100%}}

.customer-profile-presets{margin:14px 0}.customer-property-actions{position:relative}.customer-property-actions>summary{cursor:pointer;list-style:none}.customer-property-actions>nav{position:absolute;right:0;top:calc(100% + 7px);z-index:60;display:grid;min-width:230px;max-width:calc(100vw - 32px);padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 25px #0002}.customer-property-actions>nav>a{padding:10px 12px;color:var(--ink);border-radius:5px;text-decoration:none}.customer-property-actions>nav>a:hover,.customer-property-actions>nav>a:focus-visible{background:var(--secondary);color:var(--green)}

@media(max-width:850px){.customer-property-actions>nav{left:0;right:auto}}

/* Shared compact proportions; grids follow the space left beside navigation. */
#salary-create-form>label{display:grid;gap:7px;margin-top:16px;font-size:0.857143rem}
.organization-switcher{display:flex;align-items:center;gap:6px;min-width:0;max-width:340px}
.organization-switcher>label{display:grid;gap:2px;min-width:0;flex:1}
.organization-switcher>label>span{font-size:0.714286rem;line-height:1.3;font-weight:400;color:var(--subtle)}
.organization-switcher select{width:100%;min-width:0;max-width:100%;border:0;padding:3px 18px 3px 0;background:transparent;color:var(--ink);font-size:0.928571rem;line-height:1.4}
.organization-switcher #organization-add{display:grid;place-items:center;width:28px;min-width:28px;height:28px;padding:0;border-radius:50%;font-size:1.428571rem;line-height:1;background:var(--accent-soft);color:var(--green)}
@media(max-width:720px){.organization-switcher{max-width:100%}.organization-switcher select{font-size:0.857143rem}.organization-switcher>label>span{font-size:0.642857rem}.organization-switcher #organization-add{width:24px;min-width:24px;height:24px}}
#salary-create-form>p[role=status]{font-size:0.857143rem;line-height:1.5;margin:16px 0}
.salary-edit-row>label{font-size:0.857143rem}
:root{--navigation-width:240px}
.layout>aside{width:var(--navigation-width)}
@media(min-width:721px){
 .layout{grid-template-columns:var(--navigation-width) minmax(0,1fr)}
 html[data-sidebar=collapsed] .layout>aside:is(:hover,[data-pointer-peek]),
 html[data-sidebar=collapsed] .layout>aside:focus-within{width:var(--navigation-width)}
}
.layout .brand{padding-bottom:14px;font-size:1.571429rem}
.layout .nav{min-height:42px;margin-bottom:2px;padding:8px;border-radius:5px}
.layout .navigation-group{margin-top:6px;padding-top:3px}
.layout .navigation-group>.nav-group{min-height:42px;padding:10px 8px;border-radius:5px}
.layout>.main,dialog{font-family:Avenir,Helvetica,Arial,sans-serif}
:root:not([data-theme=dark]) .layout>.main{background:#fff}
:root:not([data-theme=dark]) .layout .panel{background:#f8f9fa;border-color:#dfe2e6}
.layout>.main>.content{padding:20px 18px 32px}
.layout .topbar{min-height:64px;padding:10px 18px}
.layout .page-head{flex-wrap:wrap;align-items:center;gap:12px 20px;margin-bottom:18px}
.layout .page-head>div{min-width:0;max-width:100%}
.layout .page-head h1{font-size:1.571429rem;line-height:1.3;letter-spacing:0;font-weight:500;margin-bottom:5px;overflow-wrap:anywhere}
.layout .page-head p{margin-bottom:0}
.layout .page-head>.actions{align-items:center}
.layout .panel{border-radius:6px}
.layout .panel-head{padding:14px 16px}
.layout .toolbar{padding:12px 16px}
.layout .crm-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));padding:16px;gap:12px}
.layout .crm-card-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.layout .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.layout .dashboard-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.layout .dashboard-tools{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.layout .dashboard-columns{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.layout .dashboard-top{flex-wrap:wrap}
.layout .dashboard-scopes{max-width:100%;flex-shrink:1}
.layout .dashboard-scopes button{min-width:0;white-space:normal;flex:1}
.layout :is(.dashboard-metric-title,.dashboard-tool-title,.dashboard-metric-foot,.dashboard-count-row){overflow-wrap:anywhere;min-width:0}
.layout .dashboard-panel{height:auto;min-height:280px;max-height:420px}
.layout #dashboard-calendar{min-height:320px}
.layout .dashboard-metric{min-height:118px}
.layout .dashboard-tool{min-height:158px}
.layout .crm-calendar{container-type:inline-size}
@container(max-width:540px){
 .crm-calendar-month .crm-calendar-events{display:none}
 .crm-calendar-month .crm-calendar-day{min-height:48px;padding:3px}
 .crm-calendar-month .crm-calendar-date{flex-direction:column;gap:2px}
 .crm-calendar .calendar-toolbar strong{flex-basis:100%;order:-1}
 .crm-calendar .calendar-toolbar label{flex:1 1 120px;max-width:none;min-width:0}
 .crm-calendar .calendar-toolbar :is(input,select){width:100%;min-width:0;max-width:100%}
}
@media(max-width:720px){
 .layout>.main>.content{padding:16px 12px 24px}
 .layout .topbar{padding:10px 12px}
 .layout .page-head h1{font-size:1.5rem}
 .layout .page-head>.actions{margin-top:10px}
 .layout .dashboard-date{font-size:1rem;justify-content:flex-start}
 .layout .dashboard-metric-foot>span:last-child{white-space:nowrap}
 .layout .crm-filters{padding:12px}
}
fieldset.salary-statement-item{min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px}fieldset.salary-statement-item legend{padding:0 6px;font-weight:600}

#salary-month-workspace{container-type:inline-size}
#salary-month-workspace .panel-body{padding:16px 20px}
#salary-month-options{padding-bottom:0!important}
.salary-month-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.salary-month-controls label,#salary-month-workspace>.panel-body>label{display:grid;gap:6px;min-width:0}
.salary-month-controls input,.salary-month-controls select{min-width:0;width:100%}
.salary-month-controls button{height:40px}
#salary-month-options details{margin-top:12px}
#salary-month-status{margin:0 0 8px;font-size:0.857143rem}
#salary-month-summary p{margin:8px 0}
#salary-month-workspace>.panel-body>p.muted{margin:8px 0;font-size:0.857143rem}
#salary-month-workspace>.panel-body>.actions{margin:12px 0}
@container(max-width:440px){.salary-month-controls{grid-template-columns:1fr 1fr}.salary-month-controls button{grid-column:1/-1;justify-self:start}}
@container(max-width:300px){.salary-month-controls{grid-template-columns:1fr}.salary-month-controls button{grid-column:auto}}

#salary-month-table .record-link{white-space:normal;overflow:visible;text-overflow:clip;text-align:left;overflow-wrap:anywhere;max-width:260px}

.contract-registry-fields{grid-column:1/-1;min-width:0}.contract-registry-fields>summary{cursor:pointer;font-weight:600;padding:12px 0}.contract-registry-fields>.form-grid{margin-top:12px}

.duty-schedule-table td:not(:first-child),.duty-schedule-table th:not(:first-child){min-width:46px;text-align:right}.duty-schedule-table td:first-child{min-width:220px}

/* Import receipts contain three short columns and fit narrow dialogs. */
#excel-import-result table{width:100%;min-width:0;table-layout:fixed}
#excel-import-result th,#excel-import-result td{padding:12px 8px;white-space:normal;overflow-wrap:anywhere}

#contract-import-root{min-width:0}
#contract-import-root label,#contract-import-root p,#contract-import-root span{overflow-wrap:anywhere}
#contract-import-root select,#contract-import-root textarea{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
#contract-import-root details{margin:12px 0}
.contract-import-card{border-top:1px solid var(--line);padding:16px 0}
.contract-import-check{display:flex;align-items:flex-start;gap:10px;font-weight:600}
.contract-import-check input{width:auto;flex:0 0 auto}
.contract-import-source{display:block;padding:8px 0}
.contract-import-note{white-space:pre-wrap}
.contract-import-receipt{overflow-wrap:anywhere}

#schedule-import-root{min-width:0}
#schedule-import-root label,#schedule-import-root p{overflow-wrap:anywhere}
#schedule-import-root select,#schedule-import-root input{min-width:0;max-width:100%;box-sizing:border-box}
#schedule-import-root select{width:100%}
.schedule-import-card,.schedule-import-mapping{border-top:1px solid var(--line);padding:14px 0}
.schedule-import-check{display:flex;align-items:flex-start;gap:10px;font-weight:600}
.schedule-import-check input{width:auto;flex:0 0 auto}
.schedule-import-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:10px}
.schedule-import-days input{width:100%}

.portrait-landmarks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.portrait-landmarks path,.portrait-landmarks circle{stroke:#38bdf8;stroke-width:2;fill:none;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #000)}.portrait-landmarks[hidden]{display:none}

/* Worked-time entries share columns instead of repeating large forms. */
#modal:has(#salary-work-form){width:min(1400px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.salary-work-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.salary-work-sheet{min-width:0;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px}.salary-work-sheet table{width:100%;min-width:1100px;border-collapse:collapse;margin:0}.salary-work-sheet th{font-weight:600;text-align:left;white-space:nowrap;background:var(--canvas);border-bottom:1px solid var(--line)}.salary-work-sheet th,.salary-work-sheet td{padding:10px 8px;vertical-align:top}.salary-work-sheet tbody tr+tr td{border-top:1px solid var(--line)}.salary-work-sheet .salary-edit-row.salary-work-row{display:table-row;margin:0}.salary-work-sheet td:first-child{min-width:190px}.salary-work-sheet td:nth-child(2){min-width:180px}.salary-work-sheet td:nth-child(2) label+label{margin-top:6px}.salary-work-sheet td:nth-child(3){min-width:100px}.salary-work-sheet td:nth-child(n+4):nth-child(-n+6){min-width:110px}.salary-work-sheet label{display:block;min-width:0}.salary-work-sheet input,.salary-work-sheet select{min-width:0;padding:8px;width:100%}.salary-work-sheet input[readonly]{background:var(--canvas);color:var(--ink)}.salary-work-sheet [data-work-subtotal]{display:block;font-weight:600;color:var(--green);white-space:nowrap;padding:9px 0}.salary-work-adjustments{min-width:155px}.salary-work-adjustments summary{cursor:pointer;padding:8px 0}.salary-work-adjustments>div{display:grid;gap:8px;padding-top:8px}.salary-work-adjustments label{font-size:.857143rem}.salary-work-adjustments input{margin-top:4px}.salary-work-sheet [data-work-remove]{padding:8px;font-size:.857143rem}#salary-work-total{font-weight:600;font-size:1.05em}#salary-work-add-status:empty{display:none}@media(max-width:600px){.salary-work-toolbar button{flex:1 1 170px}.salary-work-sheet{border-radius:8px}}


.work-start{min-width:0;width:100%;padding:clamp(16px,2.5vw,32px);background:var(--surface,#fff);border:1px solid var(--line);border-radius:16px;color:var(--ink)}
.work-start-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.work-start-heading h1,.work-start-heading h2{font-size:clamp(1.571429rem,2.4vw,2.142857rem);letter-spacing:-.025em;margin:0 0 8px}
.work-start-heading p,.work-start-company p,.work-start-copy p{color:var(--subtle,var(--muted));line-height:1.55;margin:0;overflow-wrap:anywhere}
.work-start-heading>.opora-icon{width:40px;height:40px;flex:none;color:var(--green)}
.work-start-company{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-radius:12px;background:var(--accent-soft);margin-bottom:8px}
.work-start-company>div:first-child{flex:1 1 240px;min-width:0}.work-start-company strong{display:block;font-size:1.142857rem;margin-bottom:5px}.work-start-company label{display:block;flex:1 1 180px;min-width:0}
.work-start-company select{max-width:100%;width:100%;text-overflow:ellipsis;background:var(--surface,#fff);color:var(--ink);border-color:var(--line)}
.work-start-steps{list-style:none;padding:0;margin:0;min-width:0}
.work-start-step{display:grid;grid-template-columns:32px minmax(180px,1fr) minmax(180px,.8fr);gap:14px 20px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line)}
.work-start-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--secondary,var(--canvas));color:var(--green);font-weight:650;align-self:start}
.work-start-copy{min-width:0}.work-start-copy :is(h2,h3){font-size:1.142857rem;display:flex;align-items:center;gap:8px;margin:0 0 8px}.work-start-copy :is(h2,h3) .opora-icon{width:20px;height:20px;flex:none;color:var(--green)}
.work-start-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0}.work-start-actions .button,.work-start-actions button{display:inline-flex;align-items:center;justify-content:center;white-space:normal;overflow-wrap:anywhere;text-align:center;min-width:0;font-size:0.928571rem;line-height:1.35;max-width:100%}.work-start-actions button:disabled{cursor:not-allowed}
.work-start-count{display:block;color:var(--subtle,var(--muted));font-size:0.857143rem;margin-top:8px;overflow-wrap:anywhere}.work-start-note{margin:16px 0;line-height:1.5}.work-start-help{margin-top:20px;line-height:1.55}.work-start-help summary{cursor:pointer;font-weight:600}.work-start-help p{margin:12px 0 0;color:var(--subtle,var(--muted))}.work-start-foot{font-size:0.857143rem;color:var(--subtle,var(--muted));margin:18px 0 0;line-height:1.5}.work-start-open{font-size:0.928571rem;padding:8px 12px;white-space:nowrap}.work-start-dialog{padding:0!important}.work-start-dialog .work-start{border:0;border-radius:0}
@media(max-width:1000px){.work-start-step{grid-template-columns:32px minmax(0,1fr)}.work-start-step>.work-start-actions{grid-column:2}}
@media(max-width:560px){.work-start-heading{margin-bottom:18px}.work-start-heading>.opora-icon{display:none}.work-start-company{padding:14px;gap:12px}.work-start-company>.work-start-actions{width:100%}.work-start-step{gap:10px 12px;padding:20px 0}.work-start-actions .button,.work-start-actions button{flex:1 1 150px}.work-start-step>.work-start-actions{grid-column:1/-1}.work-start-company label{flex-basis:100%}.work-start-open{white-space:normal}}

.global-search-trigger{display:inline-flex;align-items:center;gap:8px;flex:none;font-size:0.928571rem;background:var(--surface);color:var(--subtle,var(--muted));padding:9px 12px;min-width:40px}.global-search-trigger .opora-icon{width:20px;height:20px;flex:none}.global-search-trigger kbd{font:inherit;font-size:0.785714rem;border:1px solid var(--line);border-radius:4px;padding:1px 4px}
.global-search{min-width:0}.global-search-input{display:block}.global-search-input input{font-size:1.142857rem;padding:13px 14px}.global-search-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin-top:14px}.global-search-filters>label:not(.checkbox-line){display:grid;gap:6px;min-width:0}.global-search-filters select{width:100%;min-width:0}.global-search-filters .checkbox-line{margin-bottom:10px;font-size:0.928571rem;white-space:nowrap}.global-search-scope{color:var(--subtle,var(--muted));font-size:0.857143rem;margin:14px 0 8px;overflow-wrap:anywhere}.global-search-status{font-size:0.928571rem;margin:0 0 12px}
.global-search-results{list-style:none;padding:0;margin:0;min-width:0}.global-search-results>li{display:flex;align-items:center;gap:10px;min-width:0;border-top:1px solid var(--line);padding:4px 0}.global-search-result{display:flex;flex:1;align-items:flex-start;gap:12px;min-width:0;width:100%;border:0;background:transparent;text-align:left;padding:14px 8px;border-radius:8px}.global-search-result:hover{background:var(--accent-soft)}.global-search-symbol{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;background:var(--secondary,var(--canvas));color:var(--green)}.global-search-symbol .opora-icon{width:20px;height:20px}.global-search-result>span:last-child{min-width:0}.global-search-result strong,.global-search-result small,.global-search-match{display:block;overflow-wrap:anywhere;white-space:normal}.global-search-result strong{font-weight:600;margin-bottom:5px}.global-search-result small,.global-search-match{font-size:0.857143rem;line-height:1.5;color:var(--subtle,var(--muted))}.global-search-match{margin-top:4px}.global-search-more{margin-top:16px}.global-search-results>li>.button{flex:none;font-size:0.857143rem;padding:8px 10px}
@media(max-width:1000px){.global-search-trigger>span,.global-search-trigger>kbd{display:none}.global-search-trigger{padding:9px}}
@media(max-width:600px){.global-search-filters{grid-template-columns:1fr}.global-search-filters .checkbox-line{margin:0}.global-search-results>li{flex-wrap:wrap;gap:0}.global-search-results>li>.button{margin:0 8px 10px 54px}.global-search-result{padding:12px 0}.global-search-filters select{max-width:100%}}

.document-workspace-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:4px;border-bottom:1px solid var(--line)}.document-workspace-tabs a{padding:10px 14px;border-radius:8px;color:var(--subtle,var(--muted));font-weight:500;line-height:1.4}.document-workspace-tabs a[aria-current=page]{background:var(--accent-soft);color:var(--green);font-weight:600}.document-form-context{background:var(--accent-soft);border-radius:8px;padding:12px 14px;line-height:1.55;margin:0 0 18px;overflow-wrap:anywhere}.document-scope-label{display:block;font-size:0.928571rem;margin-bottom:6px;overflow-wrap:anywhere}
#record-form .form-grid>label[hidden]{display:none!important}
.record-comment-draft{border:1px solid var(--line);border-radius:10px;padding:16px;margin-top:18px}.record-comment-draft label{display:grid;gap:8px;font-weight:600}.record-comment-draft textarea{font-weight:400;min-height:120px;max-width:100%;width:100%}.record-comment-draft button{margin-top:12px}
.record-page-context{max-width:680px;margin:32px 0;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow-wrap:anywhere}.record-page-context h2{font-size:1.357143rem;line-height:1.4;margin:0 0 14px}.record-page-context p{line-height:1.65;margin:0 0 18px;color:var(--subtle,var(--muted))}.record-page-context button{margin:0 8px 8px 0;max-width:100%;white-space:normal}
.hr-form-section{grid-column:1/-1;min-width:0;margin:0;border:0;border-top:1px solid var(--line);padding:18px 0}.hr-form-section:first-child{border-top:0;padding-top:0}.hr-form-section>legend{padding:0;font-size:1.071429rem;font-weight:600;margin-bottom:14px}.hr-form-section>summary{cursor:pointer;font-size:1rem;font-weight:600;padding:0}.hr-form-section>summary:focus-visible,.employee-questionnaire-group>summary:focus-visible{outline:2px solid var(--green);outline-offset:4px}.hr-form-section[open]>summary{margin-bottom:18px}.hr-form-section .form-grid{min-width:0}.hr-form-section :is(label,input,textarea,select){min-width:0;max-width:100%}.hr-form-section input[readonly]{background:var(--accent-soft)}.employee-questionnaire{min-width:0}.employee-questionnaire-group{border-bottom:1px solid var(--line);padding:18px 0}.employee-questionnaire-group:first-child{padding-top:0}.employee-questionnaire-group>summary{font-size:1.071429rem;font-weight:600;cursor:pointer;overflow-wrap:anywhere}.employee-questionnaire-group>summary small{font-weight:400;font-size:0.857143rem;margin-left:12px;color:var(--subtle,var(--muted))}.employee-questionnaire-group dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:18px 0 0}.employee-questionnaire-group dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;padding:10px 0;font-size:0.928571rem;line-height:1.55;min-width:0}.employee-questionnaire-group dt{color:var(--subtle,var(--muted))}.employee-questionnaire-group dd{margin:0;overflow-wrap:anywhere}
@media(max-width:650px){.employee-questionnaire-group dl{grid-template-columns:minmax(0,1fr)}.employee-questionnaire-group dl>div{grid-template-columns:minmax(0,1fr);gap:4px}.hr-form-section .form-grid{grid-template-columns:minmax(0,1fr)}}
.record-page-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 18px;font-size:0.928571rem;color:var(--subtle,var(--muted))}.record-page-breadcrumbs a{color:var(--green)}.record-page-body{min-width:0;width:100%}dialog.record-page-card[open],#modal.record-page-card[open]{display:block!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit}.record-page-card>.dialog-head{background:transparent;border:0;padding:0 0 22px;display:flex;align-items:flex-start;gap:16px;justify-content:space-between}.record-page-card>.dialog-head h2{font-size:clamp(1.428571rem,2.2vw,2.142857rem);line-height:1.3;margin:0;overflow-wrap:anywhere;min-width:0;flex:1}.record-page-card>.dialog-head>#close-modal{font-size:0.928571rem;line-height:1.4;width:auto;height:auto;white-space:normal;flex:none;padding:9px 14px}.record-page-card>.dialog-body{padding:20px 0 0!important;max-height:none!important;overflow:visible!important;min-width:0}.record-page-card>.tabs{position:static;max-width:100%;margin:0;border-bottom:1px solid var(--line)}.record-page-card .object-card-section{min-width:0}.record-page-card[inert]{pointer-events:none}
@media(max-width:600px){.record-page-card>.dialog-head{flex-wrap:wrap;padding-bottom:14px}.record-page-card>.dialog-head h2{flex-basis:100%}.record-page-card>.dialog-head>#close-modal{margin:0}.record-page-card>.tabs{display:flex!important;flex-wrap:wrap;gap:4px}.record-page-card>.tabs button{flex:1 1 130px;white-space:normal;min-width:0}}
.employee-workspace{min-width:0}.employee-card-nav{display:flex;flex-wrap:wrap;gap:4px}.employee-card-nav button{white-space:normal;font-size:0.928571rem;flex:0 1 auto}.employee-card-nav [aria-selected=true]{color:var(--green);background:var(--accent-soft);font-weight:600}.employee-card-scope{font-size:0.857143rem;color:var(--subtle,var(--muted));margin:0 0 20px;overflow-wrap:anywhere}.employee-card-overview{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(0,1.6fr);gap:28px;align-items:start}.employee-card-person{min-width:0}.employee-card-person .employee-portrait{margin:0 0 16px}.employee-card-person .record-photo{width:150px;height:190px;max-width:100%;object-fit:contain;border-radius:10px;background:var(--canvas)}.employee-card-person :is(p,figcaption){overflow-wrap:anywhere}.employee-card-section{min-width:0;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--line)}.employee-card-section h3{font-size:1.071429rem;font-weight:600;margin:0 0 14px}.employee-card-section>button{font-size:0.857143rem;margin:6px 6px 0 0}.employee-card-jobs{padding:0;list-style:none;margin:0}.employee-card-jobs li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:14px;font-size:0.928571rem;overflow-wrap:anywhere}.employee-card-jobs strong{font-weight:600}.employee-card-jobs small{display:block;color:var(--subtle,var(--muted));margin-top:4px}.employee-card-field-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.employee-card-section dl{margin:0}.employee-card-section dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px;padding:9px 0;font-size:0.928571rem;line-height:1.55}.employee-card-section dt{color:var(--subtle,var(--muted))}.employee-card-section dd{margin:0;overflow-wrap:anywhere}.employee-card-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}.employee-card-toolbar label{font-size:0.928571rem}.employee-card-toolbar label:not(.checkbox-line){display:flex;align-items:center;gap:8px}.employee-card-toolbar .checkbox-line input{width:auto}.employee-card-toolbar input[type=date]{width:auto;max-width:100%}.employee-card-table{width:100%;max-width:100%;overflow-x:auto}.employee-card-table table{width:100%;font-size:0.928571rem}.employee-card-table :is(th,td){vertical-align:top;text-align:left;padding:12px 10px;white-space:normal;overflow-wrap:anywhere;min-width:110px;max-width:330px}.employee-card-table td small{display:block;font-size:0.857143rem;color:var(--subtle,var(--muted));margin-top:4px}.employee-card-empty{font-size:0.928571rem;color:var(--subtle,var(--muted));padding:16px 0}.employee-validity{font-size:0.857143rem;display:inline-flex;align-items:center;gap:6px;line-height:1.5}.employee-validity::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}.employee-validity-expired,.employee-validity-failed{color:var(--danger,#c34646)}.employee-validity-expiring{color:var(--warning,#946900)}.employee-validity-valid,.employee-validity-indefinite{color:var(--green)}
@media(max-width:700px){.employee-card-overview,.employee-card-field-groups{grid-template-columns:minmax(0,1fr);gap:16px}.employee-card-person .employee-portrait{float:none}.employee-card-nav button{flex:1 1 130px}.employee-card-jobs li{grid-template-columns:minmax(0,1fr);gap:4px}.employee-card-section dl>div{grid-template-columns:minmax(0,1fr);gap:4px}.employee-card-toolbar{align-items:stretch}.employee-card-toolbar>button{width:100%}.employee-card-toolbar input[type=date]{min-width:0}}
.file-library{min-width:0}.file-library-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:0 0 18px;border-bottom:1px solid var(--line)}.file-library-toolbar>label:not(.checkbox-line){display:grid;gap:6px;min-width:0;flex:1 1 155px}.file-library-toolbar>.file-library-query{flex:2 1 240px}.file-library-toolbar :is(input,select){width:100%;min-width:0;max-width:100%}.file-library-toolbar>.checkbox-line{flex:none;align-self:center;font-size:0.928571rem}.file-library-toolbar>.checkbox-line input{width:auto}.file-library-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0 8px;overflow-wrap:anywhere}.file-library-breadcrumbs button{border:0;padding:4px 0;background:transparent;color:var(--green);white-space:normal;text-align:left}.file-library-breadcrumbs strong{font-size:1rem}.file-library-scope{font-size:0.857143rem;color:var(--subtle,var(--muted));overflow-wrap:anywhere}.file-library-list{padding:0;list-style:none;margin:16px 0;min-width:0}.file-library-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px}.file-library-folder{display:flex;align-items:flex-start;gap:14px;width:100%;height:100%;padding:18px;text-align:left;background:var(--surface);white-space:normal;border:1px solid var(--line);border-radius:10px}.file-library-folder:hover{background:var(--accent-soft)}.file-library-folder>.opora-icon,.file-library-symbol>.opora-icon{width:24px;height:24px;flex:none;color:var(--green)}.file-library-folder>span{min-width:0}.file-library-folder strong,.file-library-folder small{display:block;overflow-wrap:anywhere}.file-library-folder small{color:var(--subtle,var(--muted));font-size:0.857143rem;line-height:1.6;margin-top:6px}.file-library-file{display:flex;align-items:flex-start;gap:14px;border-top:1px solid var(--line);padding:18px 0;min-width:0}.file-library-description{flex:1;min-width:0}.file-library-description>strong{display:block;overflow-wrap:anywhere;font-weight:600}.file-library-description small{display:block;font-size:0.857143rem;color:var(--subtle,var(--muted));line-height:1.6;overflow-wrap:anywhere}.file-library-parent{padding:4px 0;margin:2px 0;border:0;background:transparent;color:var(--green);font-size:0.928571rem;white-space:normal;text-align:left;overflow-wrap:anywhere}.file-library-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none;max-width:100%}.file-library-actions :is(a,button){font-size:0.857143rem;padding:8px 12px;white-space:normal}.file-library-empty{grid-column:1/-1}.file-library-preview img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:0 auto 16px}.file-library-upload>label{display:grid;gap:7px;margin-bottom:16px;min-width:0}.file-library-upload :is(input,select){width:100%;min-width:0;max-width:100%}.file-library-queue{list-style:none;margin:12px 0;padding:0}.file-library-queue li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 0;font-size:0.928571rem;overflow-wrap:anywhere}.file-library-queue strong{font-weight:500;min-width:0}.file-library-queue span{min-width:0;color:var(--subtle,var(--muted))}
@media(max-width:620px){.file-library-file{flex-wrap:wrap;gap:10px}.file-library-description{flex-basis:calc(100% - 38px)}.file-library-actions{margin-left:34px}.file-library-toolbar>label:not(.checkbox-line){flex-basis:100%}.file-library-toolbar>button{width:100%}.file-library-queue li{flex-direction:column;gap:4px}}
@media(max-width:520px){.document-workspace-tabs a{flex:1 1 160px;text-align:center;min-width:0}.document-form-context{padding:12px}}

/* Searchable references keep the original named select as the submitted value. */
.reference-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;clip-path:inset(50%)}
.reference-combobox{position:relative;min-width:0;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink,inherit)}
.reference-combobox:focus-within{outline:2px solid var(--green);outline-offset:2px}.reference-combobox .reference-search{border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;min-width:0;width:100%;padding:11px 12px;border-radius:inherit;color:inherit}
.reference-combobox :is(.reference-toggle,.reference-clear){display:grid;place-items:center;border:0!important;background:transparent!important;min-width:30px;width:32px;min-height:38px;padding:4px!important;font-size:1.357143rem;line-height:1;color:var(--subtle,var(--muted))}.reference-combobox .reference-clear[hidden]{display:none}.reference-combobox :is(.reference-toggle,.reference-clear):hover{color:var(--green)}.reference-combobox:has(.reference-search:disabled){opacity:.6}.reference-combobox:has([aria-invalid=true]){border-color:var(--danger,#b5473e)}
.reference-popup{position:fixed;inset:auto;margin:0;padding:6px;min-width:0;max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 34px #0003;background:var(--surface,#fff);color:var(--ink,inherit);z-index:1000;font-size:0.928571rem;line-height:1.45;text-align:left;scrollbar-width:thin}.reference-popup[hidden]{display:none!important}.reference-options{display:grid;gap:2px}.reference-option{padding:10px 11px;border-radius:7px;cursor:pointer;overflow-wrap:anywhere;white-space:normal;min-width:0}.reference-option strong{display:block;font-weight:550}.reference-option small{display:block;font-size:0.785714rem;margin-top:3px;color:var(--subtle,var(--muted))}.reference-option:hover,.reference-option[aria-selected=true]{background:var(--accent-soft,#eaf1ef);color:var(--green)}.reference-status{padding:9px 11px 5px;font-size:0.785714rem;color:var(--subtle,var(--muted));border-top:1px solid var(--line);margin-top:5px}
@media(max-width:650px){.reference-combobox .reference-search{font-size:1.142857rem}.reference-combobox :is(.reference-toggle,.reference-clear){min-height:44px}.reference-option{padding:12px}.reference-popup{font-size:1rem}}

/* Personal appearance: source preferences remain independent of record access. */
.topbar{background:var(--header-bg)!important;color:var(--header-ink)!important}.topbar :is(.company,.username,.account-menu>summary){color:var(--header-ink)}.topbar :is(small,.organization-switcher label>span){color:var(--header-muted)!important}.topbar :is(.mobile-menu,.global-search-trigger,.organization-switcher select){background:var(--header-hover)!important;color:var(--header-ink)!important;border-color:var(--header-muted)}.topbar .account-menu>summary:hover{background:var(--header-hover)}.topbar .account-popover{background:var(--surface)!important;color:var(--ink)!important}.topbar .account-popover :is(a,button){color:var(--ink)}html[data-header-tone=dark] .topbar{color-scheme:dark}html[data-header-tone=light] .topbar{color-scheme:light}
aside .brand{color:var(--sidebar-ink)}aside .brand small{color:var(--sidebar-muted)}.primary{color:var(--primary-ink)!important}.tabs button:not(.active){color:var(--secondary-accent)}.tabs button:not(.active):hover{background:var(--secondary-soft)}.record-tag{background:var(--secondary-soft);color:var(--secondary-accent)}:is(.actions,.toolbar)>button:not(.primary):not(.danger){color:var(--secondary-accent);border-color:var(--secondary-accent)}
dialog.appearance-dialog{width:min(760px,calc(100vw - 24px));min-width:0;max-height:calc(100dvh - 28px)}.appearance-color-field{display:grid;grid-template-columns:48px minmax(120px,180px);gap:10px;align-items:center;min-width:0}.appearance-color-field>span{grid-column:1/-1;color:var(--subtle,var(--muted))}.appearance-color-field input[type=color]{width:48px;height:42px;padding:4px}.appearance-font{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,2fr) 54px;gap:12px;align-items:center}.appearance-font output{font-variant-numeric:tabular-nums;text-align:right}.appearance-preview{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 0;border-block:1px solid var(--line);margin:16px 0}.appearance-preview>span{padding:9px 12px;border-radius:8px;font-size:.92rem}.preview-primary{background:var(--green);color:var(--primary-ink)}.preview-secondary{background:var(--surface);border:1px solid var(--secondary-accent);color:var(--secondary-accent)}.preview-tag{background:var(--secondary-soft);color:var(--secondary-accent)}
@media(max-width:720px){input,select,textarea{font-size:max(16px,1rem)!important}.appearance-font{grid-template-columns:minmax(0,1fr) 54px}.appearance-font>span{grid-column:1/-1}.appearance-dialog .appearance-options{flex-wrap:wrap}.appearance-dialog .dialog-body{padding:16px}}
@media(min-width:1040px){
 html[data-menu=horizontal][data-sidebar] .layout{display:flex;flex-direction:column;grid-template-columns:minmax(0,1fr)}
 html[data-menu=horizontal][data-sidebar] .layout>aside{position:sticky!important;top:0!important;left:auto!important;display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;padding:8px 16px!important;overflow:visible!important;z-index:80;box-shadow:0 1px 0 var(--line);transform:none!important}
 html[data-menu=horizontal] .layout>aside>.brand{margin:0 8px 0 0;padding:6px;flex:none;font-size:1.45rem}html[data-menu=horizontal] .layout>aside>.brand>div{display:block!important}html[data-menu=horizontal] .layout>aside>.brand small{font-size:.65rem}
 html[data-menu=horizontal] .layout>aside .nav-label{display:inline!important}html[data-menu=horizontal] .layout>aside .navigation-group.nested{display:block!important}html[data-menu=horizontal] .layout>aside .nav-group>span{display:inline!important}html[data-menu=horizontal] .layout>aside .nav-group>.opora-icon:last-child{display:inline!important}
 html[data-menu=horizontal] .layout>aside>.nav{display:inline-flex;align-items:center;margin:0;width:auto;gap:7px;padding:9px 10px;white-space:nowrap}html[data-menu=horizontal] .layout>aside>.navigation-divider,html[data-menu=horizontal] .sidebar-close{display:none!important}
 html[data-menu=horizontal] .layout>aside>.navigation-group{position:relative;display:block;margin:0;border:0}html[data-menu=horizontal] .layout>aside .navigation-group>summary{margin:0;padding:9px 10px;font-size:.9rem;letter-spacing:normal;text-transform:none;white-space:nowrap;border-radius:7px}
 html[data-menu=horizontal] .layout>aside>.navigation-group>.horizontal-group-items{position:absolute;top:calc(100% + 5px);left:0;min-width:260px;width:max-content;max-width:min(360px,calc(100vw - 24px));max-height:min(65dvh,480px);overflow:auto;padding:8px;border:1px solid var(--sidebar-muted);border-radius:10px;background:var(--sidebar-bg);box-shadow:0 12px 28px #0004;z-index:90;white-space:normal}
 html[data-menu=horizontal] .horizontal-group-items .nav{display:flex;gap:9px;align-items:center;margin:2px 0;white-space:normal}html[data-menu=horizontal] .horizontal-group-items .navigation-group{margin:5px 0}html[data-menu=horizontal] .horizontal-group-items .horizontal-group-items{padding:0 0 0 12px}
 html[data-menu=horizontal] .layout>aside [hidden],html[data-menu=horizontal] .layout>aside .navigation-group[hidden]{display:none!important}html[data-menu=horizontal] .layout>.main{width:100%;min-width:0}html[data-menu=horizontal] .topbar{top:var(--horizontal-nav-height,0px)}html[data-menu=horizontal] .sidebar-backdrop{display:none!important}
}

button:not(.primary):not(.color-swatch):hover{background:var(--accent-soft)}.primary:hover{background:var(--green)!important;border-color:var(--green)!important;filter:none!important;box-shadow:0 0 0 2px var(--accent-soft)}aside button:hover{background:var(--sidebar-hover);color:var(--sidebar-ink)}:is(.actions,.toolbar)>button:not(.primary):not(.danger):hover{background:var(--secondary-soft)}

@media(min-width:1040px){html[data-menu=horizontal] .navigation-group:has(a.active)>summary{background:var(--sidebar-active);color:var(--sidebar-active-ink)}}

.layout>aside .nav{color:var(--sidebar-ink)}.layout>aside .nav:hover{background:var(--sidebar-hover);color:var(--sidebar-ink)}.layout>aside .nav.active,.layout>aside .nav.active:hover{background:var(--sidebar-active);color:var(--sidebar-active-ink)}html[data-icon-color=accent] .layout>aside .opora-icon{color:var(--sidebar-icon)}html[data-icon-color=neutral] .layout>aside .opora-icon{color:inherit}.layout>aside .nav.active .opora-icon,.layout>aside .navigation-group:has(a.active)>summary .opora-icon{color:inherit}.topbar .opora-icon{color:inherit}html[data-icon-color=accent] .topbar .opora-icon{color:var(--header-icon)}
.chat-avatar{position:relative}.chat-avatar>.presence-dot{position:absolute;right:-1px;bottom:0}
.presence-dot{display:inline-block;width:10px;height:10px;min-width:10px;border-radius:50%;box-sizing:border-box;border:2px solid var(--surface);background:#839096;vertical-align:middle;flex:none}
.presence-dot[data-presence-status="online"]{background:#24975b}.presence-dot[data-presence-status="unknown"]{background:var(--surface);box-shadow:inset 0 0 0 1px #839096}
.chat-peer-heading{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}.chat-peer-heading>strong{flex:none}.presence-label{font-size:.785714rem;color:var(--muted);font-weight:400}.presence-label[data-presence-status="online"]{color:var(--green)}
.account-presence{border-top:1px solid var(--line);padding:8px 0;margin-top:8px}.account-presence>summary{padding:8px 10px;cursor:pointer;font-size:.857143rem}.presence-people{max-height:240px;overflow-y:auto;overscroll-behavior:contain}.presence-people>p{margin:8px 10px;font-size:.857143rem;color:var(--muted)}.presence-peer{display:flex;width:100%;align-items:center;gap:8px;padding:9px 10px;border:0;background:transparent;text-align:left;border-radius:6px}.presence-peer:hover{background:var(--accent-soft)}.presence-peer>span:last-child{min-width:0;overflow-wrap:anywhere}
.employee-ledger-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.employee-ledger-account{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1px solid var(--line);background:var(--surface);min-width:0}.employee-ledger-account[aria-pressed=true]{border-color:var(--green);background:var(--accent-soft)}.employee-ledger-account strong{font-size:1.285714rem}.employee-ledger-account small{overflow-wrap:anywhere;color:var(--muted)}.employee-ledger-totals{display:flex;flex-wrap:wrap;gap:12px 24px;padding:12px 0}.employee-ledger-totals>span{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:.857143rem}.employee-ledger-totals strong{color:var(--ink)}.employee-ledger-views{display:flex;flex-wrap:wrap;gap:6px}.employee-ledger-views [aria-pressed=true]{background:var(--accent-soft);border-color:var(--green)}.employee-ledger-photo{width:38px;height:38px;object-fit:contain;border-radius:6px;vertical-align:middle;margin-right:8px}.employee-ledger .employee-card-table small{display:block;overflow-wrap:anywhere}.employee-ledger .employee-card-toolbar{align-items:end;flex-wrap:wrap}.employee-ledger .employee-card-toolbar label{min-width:0;flex:1 1 180px}.employee-ledger .employee-card-toolbar input,.employee-ledger .employee-card-toolbar select{width:100%;min-width:0}@media(max-width:520px){.employee-ledger-accounts{gap:8px}.employee-ledger-account{padding:10px}.employee-ledger-account strong{font-size:1.071429rem}.employee-ledger .employee-card-toolbar label{flex-basis:100%}}
.employee-ledger-account strong{max-width:100%;overflow-wrap:anywhere}
.employee-access-summary{display:flex;flex-wrap:wrap;gap:12px 24px;margin:12px 0 18px}.employee-access-summary>span{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:.857143rem}.employee-access-summary strong{font-size:1.428571rem;color:var(--ink)}.employee-access-nav{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.employee-access-nav [aria-pressed=true]{background:var(--accent-soft);border-color:var(--green)}.employee-access-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}.employee-access-search>label{flex:1 1 240px;min-width:0;margin:0}.employee-access-search input{width:100%;min-width:0}.employee-access .employee-card-table small{display:block;overflow-wrap:anywhere}.employee-access .employee-card-table .actions{flex-wrap:wrap;min-width:140px}.employee-access .employee-card-table details p{white-space:pre-wrap;overflow-wrap:anywhere;max-width:480px}#employee-access-form>p{overflow-wrap:anywhere}@media(max-width:520px){.employee-access-nav>button{flex:1 1 140px}.employee-access-search>label{flex-basis:100%}.employee-access-summary{gap:12px}.employee-access-summary strong{font-size:1.285714rem}}
.object-phone-workplace{width:100%;min-width:0;min-height:100dvh;background:var(--canvas);color:var(--ink)}.object-phone-workplace .topbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 20px}.object-phone-workplace .content{width:100%;max-width:1100px;margin:0 auto;padding:20px;min-width:0;box-sizing:border-box}.object-phone-workplace .page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.object-phone-workplace .page-head>div{min-width:0}.object-phone-workplace h1{font-size:1.571429rem;overflow-wrap:anywhere}.object-phone-workplace h2{font-size:1.142857rem;margin:22px 0 12px}.object-phone-workplace .panel-body{padding:20px}.object-phone-workplace form{display:grid;gap:14px;min-width:0}.object-phone-workplace label{display:grid;gap:6px;min-width:0}.object-phone-workplace :is(input,select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box}.object-phone-workplace textarea{min-height:100px}.object-phone-workplace :is(#phone-pair,#phone-action){max-width:640px}.object-phone-workplace .list-item{display:flex;justify-content:space-between;gap:16px;padding:16px;align-items:flex-start;min-width:0}.object-phone-workplace .list-item>div:first-child{min-width:0;flex:1;overflow-wrap:anywhere}.object-phone-workplace .list-item small{display:block;margin-top:5px;color:var(--muted)}.object-phone-workplace .list-item p{white-space:pre-wrap;overflow-wrap:anywhere}.object-phone-workplace .actions{display:flex;gap:8px;flex-wrap:wrap}.object-phone-workplace .attachment-photo{width:80px;height:80px;object-fit:cover;margin:6px;border-radius:8px}.object-phone-workplace [data-phone-error]{color:var(--ink);overflow-wrap:anywhere}.object-phone-workplace [data-phone-error]:empty{display:none}.object-phone-workplace [data-phone-error]:not(:empty){padding:12px;background:var(--accent-soft);border-left:3px solid var(--green);border-radius:6px}@media(max-width:600px){.object-phone-workplace .content{padding:12px}.object-phone-workplace .panel-body{padding:14px}.object-phone-workplace .list-item{flex-direction:column;padding:14px}.object-phone-workplace .list-item>.actions{width:100%}.object-phone-workplace .actions>button{flex:1 1 120px}.object-phone-workplace .form-actions{display:flex;flex-wrap:wrap;gap:8px}.object-phone-workplace .form-actions>button{flex:1 1 160px}}

.office-card-scope{padding:10px 14px;margin:0 0 16px;border:1px solid var(--line);border-radius:8px;background:var(--secondary);color:var(--ink);font-size:.928571rem;line-height:1.5;overflow-wrap:anywhere}.office-card-scope strong{font-weight:600}

/* Reporting periods and the cached production calendar share application theme tokens. */
.report-weekdays{display:flex;flex-wrap:wrap;gap:.65rem;border:1px solid var(--line);border-radius:.65rem;padding:1rem;min-width:0}
.report-weekdays label{display:flex;align-items:center;gap:.4rem;width:auto;padding:.4rem .65rem;border:1px solid var(--line);border-radius:2rem;background:var(--surface)}
.report-weekdays input,.panel #production-automatic{width:auto;accent-color:var(--green)}
.report-weekdays p{flex-basis:100%;margin:0}
.production-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.4rem;max-width:100%;margin-block:1rem}
.production-weekday{text-align:center;color:var(--muted);padding:.5rem}
.production-day{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;padding:.65rem;min-width:0;min-height:5rem;background:var(--surface);color:var(--ink);overflow-wrap:anywhere}
.production-day small{font-size:.72rem;color:inherit}
.production-day.holiday,.production-key.holiday{background:color-mix(in srgb,var(--secondary) 18%,var(--surface));color:var(--ink)}
.production-day.shortened,.production-key.shortened{background:var(--accent-soft);color:var(--ink)}
.production-day.weekend,.production-key.weekend{background:var(--subtle);color:var(--ink)}
.production-legend{display:flex;flex-wrap:wrap;gap:.5rem}.production-key{padding:.4rem .7rem;border:1px solid var(--line);border-radius:2rem}
#production-import{display:flex;flex-wrap:wrap;align-items:end;gap:1rem;margin-block:1rem}#production-import label{flex:1;min-width:0}
#production-period{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem}#production-period label{max-width:12rem}
@media(max-width:560px){.production-month{gap:.2rem}.production-day{padding:.4rem;min-height:3.5rem}.production-day small{display:none}.production-weekday{padding:.3rem}.report-weekdays{padding:.65rem}}

.production-calendar-panel{min-width:0}.production-calendar-panel details p{overflow-wrap:anywhere}
.chat-room-call-tools{display:inline-flex;align-items:center;gap:.3rem}.chat-call-icon{width:1.3rem;height:1.3rem;display:block;flex-shrink:0}
.chat-call-menu{position:relative}.chat-call-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;padding:.55rem;border:1px solid var(--line);border-radius:.5rem;cursor:pointer;background:var(--surface)}.chat-call-menu>summary::-webkit-details-marker{display:none}.chat-call-menu>div{position:absolute;right:0;top:calc(100% + .4rem);z-index:40;display:flex;flex-direction:column;gap:.3rem;background:var(--surface);border:1px solid var(--line);border-radius:.6rem;padding:.5rem;min-width:12.5rem;max-width:calc(100vw - 2rem);box-shadow:0 .4rem 1.2rem #0002}.chat-call-menu button,[data-room-join]{display:flex;align-items:center;gap:.45rem}.chat-call-menu button{white-space:nowrap;text-align:left}
#chat-call-layer{position:fixed;right:1rem;bottom:1rem;z-index:1200;display:flex;flex-direction:column;align-items:flex-end;gap:.8rem;max-width:calc(100vw - 2rem);pointer-events:none;color:var(--ink)}
#chat-call-layer button,#chat-call-layer section{pointer-events:auto}.chat-call-invitations{display:flex;flex-direction:column;gap:.6rem;max-height:50dvh;overflow:auto;max-width:100%}
.chat-call-invitation{background:var(--surface);border:1px solid var(--line);border-left:.25rem solid var(--green);border-radius:.8rem;padding:1rem;box-shadow:0 .4rem 1.8rem #0002;width:23rem;max-width:100%;overflow-wrap:anywhere}.chat-call-invitation p{margin:.4rem 0}.chat-call-invitation small{display:block;margin-bottom:.65rem}
.chat-call-live{background:var(--surface);border:1px solid var(--line);border-radius:1rem;box-shadow:0 .5rem 2rem #0003;width:44rem;max-width:100%;max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;overflow:hidden}
.chat-call-heading{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.9rem 1rem;border-bottom:1px solid var(--line)}.chat-call-heading>div{min-width:0}.chat-call-heading strong{display:block;overflow-wrap:anywhere}.chat-call-heading small{display:block;margin-top:.25rem;color:var(--muted)}.chat-call-heading button{min-width:2.6rem}
.chat-call-body{padding:.8rem;overflow:auto;min-height:0}.chat-call-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.6rem;align-items:stretch}
.chat-call-person{position:relative;background:var(--subtle);border:1px solid var(--line);border-radius:.65rem;min-width:0;min-height:10rem;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}
.chat-call-person video{width:100%;max-height:22rem;aspect-ratio:16/10;object-fit:contain}.chat-call-person.without-video video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.chat-call-avatar{display:none;align-items:center;justify-content:center;font-size:2rem;background:var(--accent-soft);color:var(--ink);border-radius:50%;width:4rem;height:4rem;margin:1.1rem}.without-video .chat-call-avatar{display:flex}
.chat-call-label{width:100%;padding:.35rem .6rem;overflow-wrap:anywhere;font-size:.85rem;background:var(--surface)}.chat-call-peer-state{padding:.3rem .6rem;width:100%;color:var(--muted)}.chat-call-person.hand-raised{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.chat-call-play{margin:.4rem}.chat-call-hint{margin:.7rem 0 0;font-size:.82rem;color:var(--muted)}.chat-call-controls{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;padding:.7rem .8rem;border-top:1px solid var(--line)}.chat-call-controls button{min-height:2.6rem;padding:.55rem .7rem}.chat-call-controls button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--green)}.chat-call-hangup{font-weight:650}.chat-call-live.minimized{width:25rem}.chat-call-live.minimized .chat-call-body{display:none}.chat-call-live.minimized [data-call-camera],.chat-call-live.minimized [data-call-screen],.chat-call-live.minimized [data-call-hand],.chat-call-live.minimized [data-call-retry],.chat-call-live.minimized [data-call-fullscreen],.chat-call-live.minimized [data-call-end]{display:none}.chat-call-live.sharing-screen .chat-call-heading{box-shadow:inset 0 -.2rem var(--secondary)}
.chat-call-live:fullscreen{width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}.chat-call-live:fullscreen .chat-call-body{flex:1}.chat-call-history{padding:.9rem 0;border-bottom:1px solid var(--line)}
@media(max-width:560px){#chat-call-layer{right:.5rem;bottom:.5rem;max-width:calc(100vw - 1rem)}.chat-call-live{max-height:calc(100dvh - 1rem)}.chat-call-controls{gap:.3rem;padding:.5rem}.chat-call-controls button{font-size:.86rem}.chat-call-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}.chat-call-person{min-height:7rem}.chat-call-person video{max-height:14rem}.chat-room-call-tools{gap:.1rem}.chat-call-invitation{padding:.8rem}}
@media(max-width:560px){.chat-call-join-label{display:none}.chat-call-menu>summary{padding:.45rem}}
.call-device-flags{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.65rem;margin-block:1rem}.call-device-flags label{display:flex;align-items:center;gap:.5rem;line-height:1.4}.call-device-flags input[type=checkbox]{width:auto;accent-color:var(--green)}
.call-device-preview{background:var(--secondary);border:1px solid var(--line);border-radius:.65rem;padding:.7rem;margin-block:.8rem;max-width:100%}.call-device-preview video{width:100%;max-height:20rem;object-fit:contain;aspect-ratio:16/9}.call-device-preview meter{width:100%;height:1.3rem}.call-device-preview[data-kind=microphone] video,.call-device-preview[data-kind=camera] label{display:none}
.chat-call-controls [data-call-settings]{margin-left:auto}.chat-call-live.minimized [data-call-settings]{display:none}

.supply-workspace,.supply-draft-line{min-width:0}.supply-stages{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:0 0 1rem}.supply-stages li{border:1px solid var(--line);border-radius:2rem;padding:.35rem .7rem;color:var(--subtle)}.supply-stages .reached{color:var(--green)}.supply-stages [aria-current=step]{background:var(--accent-soft);border-color:var(--green);font-weight:650}.supply-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.7rem;margin-bottom:1rem;overflow-wrap:anywhere}.supply-workspace td small{display:block;margin-top:.35rem}.supply-draft-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(6rem,1fr);gap:.6rem;padding:.8rem 0;border-block-end:1px solid var(--line)}.supply-draft-line>[data-supply-remove]{justify-self:end;grid-column:1/-1}#supply-draft-form fieldset{min-width:0;border:0;margin:0;padding:0}#supply-draft-form h3{margin-block:1.1rem .3rem}#supply-draft-form details{margin-block:1rem}#supply-draft-form details label{margin-top:.7rem}@media(max-width:560px){.supply-draft-line{grid-template-columns:minmax(0,1fr)}.supply-summary{grid-template-columns:minmax(0,1fr)}}

.record-comment-composer{min-width:0;margin-top:1.2rem}.record-comment-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;padding:.5rem;background:var(--secondary);border:1px solid var(--line);border-radius:.6rem .6rem 0 0}.record-comment-toolbar button{min-width:2.3rem;padding:.4rem .6rem}.record-comment-editor.ql-container{font-family:inherit;font-size:1rem;border:1px solid var(--line);border-top:0;background:var(--surface);color:var(--ink);border-radius:0 0 .6rem .6rem}.record-comment-editor .ql-editor{min-height:8rem;max-height:28rem;line-height:1.6;padding:.8rem;overflow-wrap:anywhere}.record-comment-editor .ql-editor.ql-blank:before{color:var(--subtle);font-style:normal}.record-comment-editor .ql-editor img,.record-comment-content img{display:inline-block;max-width:100%;max-height:24rem;object-fit:contain;vertical-align:middle}.record-comment-content{white-space:pre-wrap;overflow-wrap:anywhere}.record-comment-content p{margin:.4rem 0}.record-comment-content blockquote,.record-comment-editor .ql-editor blockquote{border-inline-start:3px solid var(--green);margin:.5rem 0;padding:.25rem .8rem;color:var(--subtle)}.record-comment-files,.record-comment-upload-queue{list-style:none;margin:.65rem 0;padding:0;display:grid;gap:.4rem}.record-comment-files li,.record-comment-upload-queue li{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.45rem .6rem;border:1px solid var(--line);border-radius:.5rem;min-width:0}.record-comment-files li>span:first-child,.record-comment-upload-queue li>span:first-child{flex:1;min-width:8rem;overflow-wrap:anywhere}.record-comment-link{display:flex;align-items:end;flex-wrap:wrap;gap:.5rem;background:var(--secondary);padding:.7rem;border:1px solid var(--line)}.record-comment-link[hidden]{display:none}.record-comment-link label{flex:1;min-width:min(100%,15rem)}.record-comment-existing{margin:.7rem 0}.record-comment-existing>div{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}.record-comment .record-comment-files{font-size:.92rem}.record-comment-composer output{color:var(--subtle);font-variant-numeric:tabular-nums}@media(max-width:560px){.record-comment-toolbar button{font-size:.9rem}.record-comment-link label{flex-basis:100%}.record-comment-composer .form-actions{flex-wrap:wrap}}

.record-comment-editor .ql-editor a,.record-comment-content a{color:var(--green);text-decoration:underline}@media print{.record-comment-composer{display:none!important}}
.supply-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem;margin-block:1rem}.supply-details{min-width:0}.supply-details h3{font-size:1rem;margin:.3rem 0 .6rem}.supply-details dl{margin:0;display:grid;gap:.45rem}.supply-details dl>div{display:grid;grid-template-columns:minmax(6.5rem,.7fr) minmax(0,1fr);gap:.6rem;padding-bottom:.4rem;border-bottom:1px solid var(--line)}.supply-details dt{color:var(--subtle)}.supply-details dd{margin:0;overflow-wrap:anywhere}.supply-details dd small{display:block}
.supply-draft-stock{margin-block:.9rem}.supply-draft-stock summary{font-weight:600;padding-block:.5rem;cursor:pointer}.supply-fulfillment{margin-block:1rem;padding-top:.8rem;border-top:1px solid var(--line);min-width:0}.supply-fulfillment h3{font-size:1rem}.supply-current-result{padding-inline-start:.8rem;border-inline-start:3px solid var(--green);margin-bottom:.8rem}.supply-outcome-event{padding:.7rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.supply-outcome-event small{display:block;color:var(--subtle)}.supply-outcome-event p{margin:.5rem 0}.supply-fulfillment details{margin-top:.8rem}
.supply-list-panel{min-width:0;padding:1rem}.supply-list-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.75rem}.supply-list-filters label{min-width:0}.supply-list-filters input,.supply-list-filters select{width:100%;min-width:0}.supply-list-more{margin:.75rem 0}.supply-list-more>summary{cursor:pointer;padding:.5rem 0;font-weight:600}.supply-list-checks{display:flex;flex-wrap:wrap;gap:.65rem 1rem;align-items:center;margin:.75rem 0}.supply-list-check{display:inline-flex;gap:.35rem;align-items:center}.supply-list-check input{width:auto}.supply-list-summary{padding:.5rem 0}.supply-list-table td{vertical-align:top}.supply-list-table td .pill{display:inline-block;margin:.2rem}.supply-list-sort{font:inherit;color:inherit;background:transparent;border:0;text-align:left;padding:.2rem}.supply-list-board{max-width:100%;overflow-x:auto}.supply-list-board .column{min-width:15rem}.supply-list-column-editor{padding:0;list-style:none}.supply-list-column-editor li{display:flex;align-items:center;gap:.4rem;padding:.35rem 0}.supply-list-column-editor label{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.supply-list-column-editor input{width:auto}
.supply-unread-dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:var(--green);margin-right:.4rem;box-shadow:0 0 0 .16rem color-mix(in srgb,var(--green) 15%,transparent)}.supply-read-state{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding-top:.75rem;margin-top:.75rem;border-top:1px solid var(--line)}.supply-template-origin{padding:.5rem 0}.supply-template-origin label{display:flex;gap:.5rem;align-items:center}.supply-template-origin input[type=checkbox]{width:auto}
form[data-template-form] fieldset{min-width:0;border:0;margin:0;padding:0}

/* Selected employee when opening a shared salary register from their card. */
#salary-detail tr.salary-selected-employee>td{background:var(--accent-soft)}#salary-detail tr.salary-selected-employee{outline:2px solid var(--green);outline-offset:-2px}
.record-description-composer{min-width:0;max-width:100%}.record-description-composer .ql-editor{min-height:180px}.record-description-existing{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;min-width:0}.record-description-existing select{min-width:0;max-width:100%;flex:1 1 220px}.record-description-content{min-width:0;overflow-wrap:anywhere}.record-description-file{overflow-wrap:anywhere;text-decoration:underline}.detail-field[data-description-display]{grid-column:1/-1}

.supply-tracking{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 0;border-block:1px solid var(--line);margin:12px 0}.supply-tracking>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.supply-tracking button{padding:.4rem .65rem}

.salary-workspace{min-width:0;max-width:100%}.salary-workspace-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding-block:8px 16px;border-bottom:1px solid var(--line)}.salary-workspace-filters label{min-width:0;flex:1 1 150px}.salary-workspace-filters .salary-workspace-search{flex:2 1 220px}.salary-workspace-filters input,.salary-workspace-filters select{width:100%;min-width:0}.salary-workspace-filters [role=alert]{flex-basis:100%;margin:0}.salary-workspace-steps{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.salary-workspace-totals{display:flex;flex-wrap:wrap;gap:16px 32px;padding-block:16px;border-bottom:1px solid var(--line);margin:0}.salary-workspace-totals>div{flex:1 1 150px;min-width:0}.salary-workspace-totals dt{color:var(--subtle);font-size:.85rem}.salary-workspace-totals dd{margin:4px 0 0;font-size:1.3rem;font-weight:650;overflow-wrap:anywhere}.salary-workspace td:first-child{min-width:220px}.salary-workspace td small{display:block;color:var(--subtle);margin-top:5px}.salary-workspace-stage{display:inline-block;padding:4px 9px;border-radius:999px;background:var(--secondary);border:1px solid var(--line);font-size:.85rem}.salary-workspace-stage[data-stage=ready]{color:var(--green);border-color:currentColor}.salary-workspace-stage[data-stage=cancelled]{color:var(--subtle)}.salary-workspace-pages{margin-top:12px}.salary-workspace-pages>span{color:var(--subtle);font-size:.9rem}@media(max-width:600px){.salary-workspace-filters label{flex-basis:calc(50% - 10px)}.salary-workspace-filters .salary-workspace-search{flex-basis:100%}.salary-workspace-steps>*{flex:1 1 160px}.salary-workspace-totals{gap:14px}.salary-workspace-totals>div{flex-basis:calc(50% - 14px)}}

.payroll-enrollment{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:var(--radius,12px);background:var(--surface);min-width:0}.payroll-enrollment[hidden]{display:none}.payroll-enrollment fieldset{min-width:0}.payroll-enrollment>p{max-width:75ch}.payroll-enrollment .actions{flex-wrap:wrap}

/* Monthly planning reuses the common controls, theme and table containers. */
.shift-plan-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:620px;margin-block:12px}
.shift-plan-weekday{text-align:center;color:var(--muted);font-size:.85em}
.shift-plan-day{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:54px;gap:3px;border:1px solid var(--line);border-radius:var(--radius,8px);padding:5px;cursor:pointer;margin:0}
.shift-plan-day input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.shift-plan-day:has(input:checked){background:var(--accent-soft);border-color:var(--green);color:var(--green)}
.shift-plan-day:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}
.shift-plan-day small{font-size:.72em;color:var(--muted);white-space:nowrap}
.shift-plan-dates{margin-block:12px}.shift-plan-dates:disabled .shift-plan-day{cursor:default;opacity:.65}
[data-shift-plan] fieldset{min-width:0}[data-shift-plan] table small{display:block}
@media(max-width:480px){.shift-plan-calendar{gap:3px}.shift-plan-day{min-height:46px;padding:3px}.shift-plan-day small{font-size:.62em}}

.task-workspace{margin-block:18px;border-top:1px solid var(--line)}.task-workspace .panel-head{padding-inline:0}.task-workspace table small{display:block}
/* The task register uses the existing table scroll area at narrow widths. */
.task-register-caption{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:5px;font-size:.857143em;color:var(--muted)}
.task-register td:first-child{white-space:normal;min-width:180px}
.task-register-counts,.task-register-summary,.task-register-pages{padding:14px 20px;margin:0;align-items:center}
.task-register-counts button{white-space:normal}
.task-register .record-link{white-space:normal;overflow-wrap:anywhere;max-width:100%}

/* Keep worked-time data inside its own sheet; mobile uses the same input nodes. */
.salary-work-sheet{position:relative}
.salary-work-sheet table{white-space:normal}
.salary-work-sheet td{overflow:visible;max-width:none;white-space:normal;text-overflow:clip}
.salary-work-sheet td:nth-child(7){min-width:200px}
.salary-work-sheet .salary-work-adjustments label{display:grid;grid-template-columns:minmax(0,1fr);white-space:normal;overflow-wrap:anywhere}
.salary-work-adjustments summary{white-space:normal}
@media(max-width:700px){
 .salary-work-sheet{border:0;overflow:visible}
 .salary-work-sheet table{display:block;min-width:0}
 .salary-work-sheet thead{position:absolute;inset:0 auto auto 0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .salary-work-sheet tbody{display:grid;gap:12px}
 .salary-work-sheet .salary-edit-row.salary-work-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px}
 .salary-work-sheet .salary-work-row td{display:block;min-width:0;max-width:none;padding:0;border:0}
 .salary-work-sheet .salary-work-row td:first-child,.salary-work-sheet .salary-work-row td:nth-child(2),.salary-work-sheet .salary-work-row td:nth-child(7){grid-column:1/-1;min-width:0}
 .salary-work-sheet .salary-work-row td::before{content:attr(data-label);display:block;font-size:.85rem;font-weight:600;color:var(--subtle);margin-bottom:5px}
 .salary-work-sheet .salary-work-row td:last-child{align-self:end}
 .salary-work-sheet .salary-work-row td:last-child::before{display:none}
 .salary-work-adjustments{min-width:0}
 .salary-work-adjustments>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 .salary-work-adjustments>div>label:last-child{grid-column:1/-1}
 .salary-work-sheet [data-work-remove]{width:100%}
 #salary-work-form>.form-actions{flex-wrap:wrap}
 #salary-work-form>.form-actions button{max-width:100%;white-space:normal}
}

/* Financial confirmation uses the same readable vertical rhythm at every width. */
#financial-operation-form>fieldset{display:grid;gap:16px;min-width:0;margin:18px 0;padding:0;border:0}#financial-operation-form>fieldset:empty{display:none}#financial-operation-form>fieldset>label{display:grid;gap:7px;min-width:0}#financial-operation-form :is(input,textarea){min-width:0;max-width:100%}

/* Conditional recipients and fixed-firm template forms. */
#record-form label[hidden],#directed-template-form label[hidden]{display:none!important}
#directed-template-form>fieldset{min-width:0;border:0;padding:0;margin:0}
#directed-template-form .form-grid>*{min-width:0;max-width:100%}
#directed-template-form .form-actions{flex-wrap:wrap}
#directed-template-form input,#directed-template-form select,#directed-template-form textarea{min-width:0;max-width:100%}

#directed-template-form .check{display:flex;align-items:center;gap:10px;min-width:0;overflow-wrap:anywhere}
#directed-template-form input[type=checkbox]{width:18px;min-width:18px;flex:0 0 18px}

/* Financial/legal quick actions retain one active panel at every width. */
#directed-action-form [hidden]{display:none!important}
#directed-action-form fieldset{min-width:0;border:0;padding:0;margin:16px 0}
#directed-action-form label{display:grid;gap:7px;min-width:0}
#directed-action-form .check{display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}
#directed-action-form input[type=checkbox]{width:18px;min-width:18px;flex:0 0 18px}
#directed-action-form :is(select,input){min-width:0;max-width:100%}
#directed-action-form .form-actions{flex-wrap:wrap}

/* Personal task columns keep checkboxes, captions and ordering controls aligned. */
.task-column-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.4rem;align-items:center;padding:.3rem 0}
.task-column-row label,.task-register .task-filter-check{display:flex;align-items:center;gap:.5rem;margin:0;min-width:0}
.task-column-row input[type=checkbox],.task-register .task-filter-check input[type=checkbox]{width:auto;flex:0 0 auto;margin:0}
.task-column-row button{min-width:36px;min-height:36px;padding:.3rem .6rem}

.task-stage-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;padding:1rem}
.task-stage-column{min-width:0;border:1px solid var(--line);border-radius:.6rem;padding:.75rem}
.task-stage-column h2{font-size:1.05rem;margin:0 0 .35rem}
.task-view-card{border:1px solid var(--line);border-radius:.5rem;padding:.75rem;margin:.65rem 0;overflow-wrap:anywhere}
.task-view-card .record-link{text-align:left;white-space:normal;max-width:100%}
.task-view-card small{display:block}.task-view-card p{margin:.4rem 0}
.task-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;padding:.5rem}
.task-calendar-weekday{text-align:center;padding:.5rem;font-weight:600}
.task-calendar-day{min-width:0;min-height:90px;border:1px solid var(--line);padding:.35rem}
.task-calendar-day h3{font-size:1rem;margin:.25rem}.task-calendar-day h3 small{font-size:.75rem;font-weight:400}
.task-calendar-day .task-view-card{padding:.4rem;font-size:.82rem}.task-calendar-toolbar{padding:1rem}
@media(max-width:700px){.task-month-grid{display:block}.task-calendar-weekday,.task-calendar-blank,.task-calendar-empty{display:none}.task-calendar-day{margin-bottom:.75rem}.task-calendar-day .task-view-card{font-size:1rem}.task-stage-board{grid-template-columns:1fr}}
.financial-stock details{margin:12px 0;padding:12px 0;border-top:1px solid var(--line)}
.financial-stock summary{cursor:pointer;overflow-wrap:anywhere}
.financial-stock table{table-layout:fixed;white-space:normal}
.financial-stock th,.financial-stock td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
.financial-stock th:first-child{width:32%}
.financial-stock td small{display:block;margin-top:5px}
@media(max-width:620px){
 .financial-stock table,.financial-stock tbody,.financial-stock tr{display:block;width:100%}
 .financial-stock thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .financial-stock td{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1.2fr);gap:8px;max-width:none;width:auto}
 .financial-stock td::before{content:attr(data-label);color:var(--muted);font-weight:400}
 .financial-stock td:first-child{display:block;font-weight:600}
 .financial-stock td:first-child::before{display:none}
 .financial-stock tr{border:1px solid var(--line);border-radius:10px;margin:12px 0;padding:4px}
}
@media(max-width:620px){
 #salary-detail .table-wrap>table,#salary-detail .table-wrap>table>tbody,#salary-detail .table-wrap>table>tbody>tr,
 .salary-workspace .table-wrap>table,.salary-workspace .table-wrap>table>tbody,.salary-workspace .table-wrap>table>tbody>tr{display:block;width:100%;white-space:normal}
 #salary-detail .table-wrap>table>thead,.salary-workspace .table-wrap>table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #salary-detail .table-wrap>table>tbody>tr>td,.salary-workspace .table-wrap>table>tbody>tr>td{display:block;max-width:none;padding:10px;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
 #salary-detail tr[data-salary-employee],.salary-workspace .table-wrap>table>tbody>tr{border:1px solid var(--line);border-radius:10px;margin-top:16px;padding:4px}
 #salary-detail tr[data-salary-employee]>td:nth-child(2),#salary-detail tr[data-salary-employee]>td:nth-child(3),#salary-detail tr[data-salary-employee]>td:nth-child(4),
 .salary-workspace .table-wrap>table>tbody>tr>td:nth-child(n+2):nth-child(-n+6){display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1.2fr);gap:8px}
 #salary-detail tr[data-salary-employee]>td:nth-child(2)::before,.salary-workspace .table-wrap>table>tbody>tr>td:nth-child(3)::before{content:'К выдаче';color:var(--muted);font-weight:400}
 #salary-detail tr[data-salary-employee]>td:nth-child(3)::before,.salary-workspace .table-wrap>table>tbody>tr>td:nth-child(4)::before{content:'Выдано';color:var(--muted);font-weight:400}
 #salary-detail tr[data-salary-employee]>td:nth-child(4)::before,.salary-workspace .table-wrap>table>tbody>tr>td:nth-child(5)::before{content:'Осталось';color:var(--muted);font-weight:400}
 #salary-detail tr[data-salary-employee]>td:nth-child(4),.salary-workspace .table-wrap>table>tbody>tr>td:nth-child(5){font-weight:700}
 .salary-workspace .table-wrap>table>tbody>tr>td:nth-child(2)::before{content:'Сотрудников';color:var(--muted)}
 .salary-workspace .table-wrap>table>tbody>tr>td:nth-child(6)::before{content:'Состояние';color:var(--muted)}
 #salary-detail tr[data-salary-employee]>td:last-child .actions,.salary-workspace .table-wrap>table>tbody>tr>td:last-child{display:flex;flex-wrap:wrap;gap:8px}
}
:root[data-theme=light]{--muted:#596961}
:root[data-theme=light] th,:root[data-theme=light] .detail-field small{color:var(--muted)}
.task-month-grid.task-day-grid{grid-template-columns:minmax(0,1fr)}
.task-day-grid .task-calendar-empty{display:block}
.task-week-grid .task-calendar-day h3{overflow-wrap:anywhere}
/* Board transfers are confirmed using the same scoped domain operations. */
.task-stage-column.task-drop-target{outline:2px solid var(--primary,#2563eb);outline-offset:-2px;background:var(--hover-bg,#eef4ff)}
.task-view-card[draggable=true]{cursor:grab}
.task-view-card [data-task-transition]{font-size:.78rem;padding:.3rem .5rem;margin-top:.35rem}
.task-clock-slot{min-height:4rem;border-top:1px solid var(--border,#dce3eb);padding:.25rem 0}
.task-clock-label{display:block;font-variant-numeric:tabular-nums}
.task-clock-slot[data-task-clock=untimed]{min-height:3rem}
@supports(grid-template-rows:subgrid){
 .task-clock-grid{grid-template-rows:auto repeat(25,minmax(4rem,auto))}
 .task-clock-grid>.task-calendar-day{display:grid;grid-row:1/span 26;grid-template-rows:subgrid;row-gap:0}
}
@media(max-width:900px){.task-clock-grid{grid-template-rows:none}.task-clock-grid>.task-calendar-day{display:block;grid-row:auto}}
@media(max-width:700px){.task-week-grid .task-clock-empty,.task-day-grid .task-clock-empty{display:none}.task-clock-slot{min-height:0}}
.report-face-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.report-face-images figure{margin:0;min-width:0}.report-face-images img{display:block;max-width:100%;height:180px;object-fit:contain;margin:auto}
.report-face-images figcaption{text-align:center;font-size:.85rem;margin-top:.4rem}
@media(max-width:480px){.report-face-images{grid-template-columns:minmax(0,1fr)}}
.employee-card-navigation{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem;margin-bottom:.75rem}
.employee-card-navigation>.employee-card-nav{flex:1;min-width:0;margin:0}
.employee-card-section-picker{display:none}
.employee-card-more{position:relative;flex:0 1 auto;max-width:100%;border:1px solid var(--line);border-radius:.4rem}
.employee-card-more>summary{padding:.6rem .8rem;cursor:pointer;font-size:.85rem;overflow-wrap:anywhere}
.employee-card-more>.employee-card-nav{margin:0;padding:.4rem;max-width:30rem}
.employee-card-more[open]{flex-basis:100%}
@media(max-width:700px){.employee-card-navigation>.employee-card-nav{flex-basis:100%}.employee-card-more[open]>.employee-card-nav{display:flex;flex-wrap:wrap;overflow:visible}}
@media(max-width:700px){.employee-card-navigation>.employee-card-nav,.employee-card-navigation>.employee-card-more{display:none}.employee-card-section-picker{display:block;flex-basis:100%}}

/* Employee flows respond to the space left by the sidebar, not only the window. */
.record-page-body{container-type:inline-size;container-name:record-panel}
.primary-directory-employees{container-type:inline-size;container-name:employee-directory}
.employee-cell-label,.primary-cell-label{display:none}
.employee-cell-value,.primary-cell-value{min-width:0}
.employee-card-person .form-actions{flex-wrap:wrap;justify-content:flex-start}
.employee-card-person .form-actions>button{flex:1 1 140px;min-width:0}
.primary-employee-documents{margin-top:6px;max-width:100%;font-size:.82rem}
.primary-employee-documents>summary{cursor:pointer;white-space:normal;line-height:1.5;color:var(--subtle,var(--muted));border-radius:5px}
.primary-employee-documents>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.primary-employee-documents[open]>.employee-indicators{max-width:100%}

@container record-panel (max-width:760px){
 .employee-card-overview,.employee-card-field-groups{grid-template-columns:minmax(0,1fr);gap:20px}
 .employee-card-person .form-actions{max-width:100%}
 .employee-card-table{overflow:visible}
 .employee-card-table table,.employee-card-table tbody{display:block;width:100%;min-width:0;white-space:normal}
 .employee-card-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .employee-card-table tbody{display:grid;gap:12px}
 .employee-card-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;border:1px solid var(--line);border-radius:8px;padding:14px;background:var(--surface,var(--canvas,transparent))}
 .employee-card-table :is(th,td){min-width:0;max-width:none;white-space:normal}
 .employee-card-table tbody>tr>td{display:block;padding:0;border:0;overflow:visible}
 .employee-card-table tbody>tr>td:first-child{grid-column:1/-1;font-weight:600}
 .employee-cell-label{display:block;font-size:.75rem;line-height:1.5;color:var(--subtle,var(--muted));font-weight:400;margin-bottom:3px}
 .employee-cell-value{font-size:.93rem;line-height:1.5;overflow-wrap:anywhere}
 .employee-card-table .actions{flex-wrap:wrap;min-width:0}
 .employee-card-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 .employee-card-toolbar>label,.employee-card-toolbar>button,.employee-card-toolbar input[type=date]{min-width:0;max-width:100%;width:100%}
 .employee-card-toolbar>label:not(.checkbox-line){display:flex;flex-direction:column;align-items:stretch;gap:6px}
 .employee-card-toolbar>label:has(#employee-payroll-firm),.employee-card-toolbar>label:has(#employee-ledger-firm),.employee-card-toolbar>button{grid-column:1/-1}
 .employee-card-toolbar>.checkbox-line{align-self:center}
}
@container record-panel (max-width:420px){
 .employee-card-table tbody>tr{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px}
}
@container record-panel (max-width:330px){.employee-card-toolbar{grid-template-columns:minmax(0,1fr)}}
@container record-panel (max-width:600px){
 .employee-card-navigation>.employee-card-nav,.employee-card-navigation>.employee-card-more{display:none}
 .employee-card-section-picker{display:block;flex-basis:100%}
}
@container employee-directory (max-width:1200px){
 .primary-directory-employees table{display:block;width:100%;min-width:0;white-space:normal}
 .primary-directory-employees thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .primary-directory-employees tbody{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr));gap:14px}
 .primary-directory-employees tbody>tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface,var(--canvas,transparent))}
 .primary-directory-employees tbody>tr>td{display:block;min-width:0;max-width:none;padding:0;border:0;overflow:visible;white-space:normal}
 .primary-directory-employees tbody>tr>td:first-child{position:absolute;top:16px;left:16px;width:44px}
 .primary-directory-employees tbody>tr>td:nth-child(2){grid-column:1/-1;min-height:44px;padding-left:58px}
 .primary-directory-employees tbody>tr>td:nth-child(-n+2)>.primary-cell-label{display:none}
 .primary-cell-label{display:block;margin-bottom:3px;font-size:.75rem;line-height:1.5;color:var(--subtle,var(--muted))}
 .primary-cell-value{font-size:.93rem;line-height:1.5;overflow-wrap:anywhere}
 .primary-directory-employees .primary-notes{min-width:0;max-width:none}
 .primary-directory-employees .primary-employment{margin:0;line-height:1.5}
}

/* Object → post → shift: primary work first, all details retained. */
.object-cell-label{display:none}.core-card-section-picker{display:none}.core-card-details{border:1px solid var(--line);border-radius:10px;margin-bottom:16px;padding:14px;min-width:0}.core-card-details>summary{cursor:pointer;color:var(--green);font-weight:600;line-height:1.5}.core-card-details[open]>summary{margin-bottom:14px}.core-card-details>.object-card-section:last-child{margin-bottom:0}.core-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.core-section-heading h3{margin:0}.core-section-heading button{flex:0 1 auto}.core-card-grid>div{min-width:0}.shift-editor-extra{margin:0}.shift-editor-extra>summary{padding:2px 0}.shift-editor-extra .form-grid{margin-top:14px}
@container record-panel (max-width:760px){
 .core-card-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .core-section-heading{max-width:100%}
 .object-card-table{overflow:visible}
 .object-card-table table,.object-card-table tbody{display:block;width:100%;min-width:0;white-space:normal}
 .object-card-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .object-card-table tbody{display:grid;gap:12px}
 .object-card-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;border:1px solid var(--line);border-radius:8px;padding:14px;background:var(--surface,var(--canvas,transparent))}
 .object-card-table :is(th,td){min-width:0;max-width:none;white-space:normal}
 .object-card-table tbody>tr>td{display:block;padding:0;border:0;overflow:visible}
 .object-card-table tbody>tr>td:first-child{grid-column:1/-1;font-weight:600}
 .object-cell-label{display:block;font-size:.75rem;line-height:1.5;color:var(--subtle,var(--muted));font-weight:400;margin-bottom:3px}
 .object-cell-value{font-size:.93rem;line-height:1.5;overflow-wrap:anywhere}
 .object-card-table .actions{flex-wrap:wrap;min-width:0}
}
@container record-panel (max-width:420px){.object-card-table tbody>tr{grid-template-columns:minmax(0,1fr)}}
@container record-panel (max-width:760px){#modal>.object-card-nav{display:none!important}.core-card-section-picker{display:flex;flex-direction:column;gap:6px;margin:0 0 18px}.object-card-summary{align-items:stretch;flex-direction:column}.object-card-summary label{min-width:0;width:100%}}

/* BEGIN GENERATED VIDEO THEME — public/reference_theme.css */
/* scoped-video-theme */
/* Primary source: IMG_6020.MP4, reviewed frames 0.0вЂ“5.5 s.
   Secondary source: saved 16:57 photos, 2026-10-26, expanded hierarchy.
   Load after style.css. This layer changes presentation only; appearance.js
   remains the owner of user palettes, theme, density and navigation state. */
html[data-design=video] {
  --navigation-width: 240px;
  --reference-rail-width: 80px;
  --reference-rail-body-width: 56px;
  --reference-font: "Segoe UI", Inter, Arial, sans-serif;
  --reference-radius: 16px;
}
html[data-design=video]:not([data-theme=dark]) {
  --canvas: #eeebf0;
  --surface: #fff;
  --secondary: #f5f2f8;
  --ink: #28252e;
  --subtle: #696270;
  --muted: #696270;
  --line: #e3dfe8;
}
html[data-design=video] .layout,
html[data-design=video] .layout > .main,
html[data-design=video] .layout > aside,
html[data-design=video] dialog {
  font-family: var(--reference-font);
}
html[data-design=video] .layout { --dashboard-surface: var(--surface); --dashboard-line: var(--line); }
html[data-design=video] .layout #dashboard-root { font-family: var(--reference-font); }
html[data-design=video]:not([data-theme=dark]) .layout > .main,
html[data-design=video]:not([data-theme=dark]) .layout > .main:has(#dashboard-root) { background: var(--canvas); }
html[data-design=video] .layout > aside {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-muted) transparent;
}
html[data-design=video][data-sidebar-tone=light] .layout > aside { color-scheme: light; }
html[data-design=video][data-sidebar-tone=dark] .layout > aside { color-scheme: dark; border-color: transparent; }
html[data-design=video] .layout > aside::-webkit-scrollbar { display: block; width: 4px; }
html[data-design=video] .layout > aside::-webkit-scrollbar-thumb { background: var(--sidebar-muted); border-radius: 4px; }
html[data-design=video] .layout > aside .brand {
  padding: 4px 8px 20px;
  gap: 10px;
  font-size: 1.428571rem;
  letter-spacing: 1.1px;
}
html[data-design=video] .layout > aside .brand small { font-size: .642857rem; line-height: 1.5; letter-spacing: .6px; }
html[data-design=video] .layout > aside .brand .material-icon { width: 28px; height: 28px; }
html[data-design=video] .layout > aside :is(.nav, .navigation-group > .nav-group) {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  margin-bottom: 4px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: .928571rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}
html[data-design=video] .layout > aside :is(.nav-label, .nav-group > span) { min-width: 0; overflow-wrap: anywhere; }
html[data-design=video] .layout > aside :is(.nav, .nav-group) > .opora-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
html[data-design=video] .layout > aside .nav-group > .opora-icon:last-child { width: 16px; height: 16px; }
html[data-design=video] .layout > aside .nav.active { font-weight: 600; box-shadow: inset 2px 0 var(--sidebar-active-ink); }
html[data-design=video] .layout > aside .navigation-divider { margin: 14px 8px; border-color: var(--sidebar-hover); }
html[data-design=video] .layout > aside .navigation-group {
  margin: 12px 0 0;
  padding: 8px 0 0;
  border-color: var(--sidebar-hover);
}
html[data-design=video] .layout > aside .navigation-group > .nav-group { font-weight: 600; }
html[data-design=video] .layout > aside .navigation-group[open] > .nav-group { background: var(--sidebar-hover); }
/* Leading rule and indentation communicate the second level without new UI. */
html[data-design=video][data-menu=vertical] .layout > aside .navigation-group > .nav {
  margin-left: 20px;
  padding-left: 12px;
  border-left: 1px solid var(--sidebar-hover);
  border-radius: 0 7px 7px 0;
  font-size: .857143rem;
  min-height: 36px;
}
html[data-design=video][data-menu=vertical] .layout > aside .navigation-group.nested {
  margin: 0 0 0 20px;
  padding: 0;
  border-top: 0;
  border-left: 1px solid var(--sidebar-hover);
}
html[data-design=video][data-menu=vertical] .layout > aside .navigation-group.nested > .nav-group {
  padding-left: 12px;
  font-weight: 400;
  font-size: .857143rem;
}
html[data-design=video] .layout > aside :is(#notification-count, #message-unread) {
  display: inline-block;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--sidebar-hover);
  color: var(--sidebar-ink);
  text-align: center;
  font-size: .785714rem;
  font-variant-numeric: tabular-nums;
}
/* Never turn a programmatically hidden badge back into a visible item. */
html[data-design=video] .layout > aside :is(#notification-count, #message-unread)[hidden] { display: none; }
html[data-design=video] .layout .topbar { height: auto; min-height: 68px; padding: 12px 24px; gap: 16px; }
html[data-design=video][data-header-tone=light] .layout .topbar {
  background: var(--header-bg) !important;
  border-bottom-color: transparent;
  border-radius: 0 0 18px 18px;
}
html[data-design=video] .layout .topbar .mobile-menu { border-radius: 8px; }
html[data-design=video] .layout .global-search-trigger { border-radius: 7px; font-size: .857143rem; }
html[data-design=video] .layout .account-menu > summary { border-radius: 8px; }
html[data-design=video] .layout .account-popover { border-radius: 14px; box-shadow: 0 8px 28px #22172f18; }
html[data-design=video] .layout > .main > .content,
html[data-design=video] .layout > .main > .content:has(#dashboard-root) { padding: 24px 24px 36px; }
html[data-design=video] .layout .page-head { margin-bottom: 20px; gap: 12px 20px; }
html[data-design=video] .layout .page-head h1 { font-size: 1.714286rem; font-weight: 600; letter-spacing: -.5px; line-height: 1.25; }
html[data-design=video] .layout .page-head p { color: var(--subtle); font-size: .928571rem; line-height: 1.5; }
html[data-design=video] .layout .eyebrow { color: var(--subtle); font-size: .714286rem; letter-spacing: 1px; margin-bottom: 10px; }
html[data-design=video] .layout .panel,
html[data-design=video]:not([data-theme=dark]) .layout .panel {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--reference-radius);
  box-shadow: none;
}
html[data-design=video] .layout :is(.panel-head, .panel-body) { padding: 18px 20px; }
html[data-design=video] .layout .panel-head { border-color: var(--line); }
html[data-design=video] .layout .panel-head h2 { font-size: 1rem; line-height: 1.4; }
html[data-design=video] .layout .stats { gap: 12px; }
html[data-design=video] .layout .stat { padding: 18px; border-radius: var(--reference-radius); box-shadow: none; }
html[data-design=video] .layout .stat strong { font-size: 2.285714rem; margin: 12px 0 6px; }
html[data-design=video] .layout :is(.dashboard-metric, .dashboard-tool, .dashboard-panel) {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--reference-radius);
  box-shadow: none;
}
html[data-design=video] .layout :is(.dashboard-metric, .dashboard-tool) { padding: 16px; }
html[data-design=video] .layout .dashboard-company { border-radius: var(--reference-radius); }
html[data-design=video]:not([data-theme=dark]) .layout .dashboard-company { background: color-mix(in srgb, var(--secondary-soft) 35%, #ded3ee); border-color: transparent; }
html[data-design=video] .layout .toolbar { padding: 14px 16px; gap: 8px; }
html[data-design=video] .layout .table-wrap > table { font-size: .857143rem; }
html[data-design=video] .layout .table-wrap > table > thead > tr > th {
  padding: 12px 16px;
  background: var(--secondary);
  color: var(--subtle);
  font-size: .785714rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}
html[data-design=video] .layout .table-wrap > table > tbody > tr > td {
  padding: 13px 16px;
  border-color: var(--line);
  line-height: 1.5;
}
html[data-design=video] .layout .table-wrap > table > tbody > tr:hover { background: var(--secondary); }
html[data-design=video][data-density=compact] .layout .table-wrap > table > tbody > tr > td { padding-top: 8px; padding-bottom: 8px; }
html[data-design=video][data-density=compact] .layout .table-wrap > table > thead > tr > th { padding-top: 9px; padding-bottom: 9px; }
html[data-design=video] .layout :is(.form-grid, .toolbar) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea),
html[data-design=video] dialog .form-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea) {
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  line-height: 1.4;
}
html[data-design=video] .layout .form-grid,
html[data-design=video] dialog .form-grid { gap: 16px; }
html[data-design=video] .layout .form-grid label,
html[data-design=video] dialog .form-grid label { color: var(--subtle); line-height: 1.45; }
html[data-design=video] .layout :is(.actions, .toolbar, .form-actions) > button,
html[data-design=video] dialog .form-actions > button { border-radius: 7px; padding: 9px 13px; line-height: 1.4; }
html[data-design=video] .layout .tabs button { font-size: .928571rem; padding: 13px 12px; }
html[data-design=video] .layout .tabs button.active { font-weight: 600; }
html[data-design=video] dialog { border-radius: 12px; border-color: var(--line); }
html[data-design=video] .dialog-head { padding: 18px 22px; }
html[data-design=video] .dialog-body { padding: 22px; }

@media (min-width: 721px) {
  html[data-design=video][data-menu=vertical] .layout { grid-template-columns: calc(var(--navigation-width) + 24px) minmax(0, 1fr); }
  html[data-design=video][data-menu=vertical] .layout > aside {
    top: 12px;
    left: 12px;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    border-radius: 24px;
    border-right-width: 0;
  }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout { grid-template-columns: var(--reference-rail-width) minmax(0, 1fr); }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside {
    width: var(--reference-rail-body-width);
    min-width: var(--reference-rail-body-width);
    padding: 12px 8px;
    border-radius: 28px;
  }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:is(:hover, :focus-within, [data-pointer-peek]) {
    width: var(--navigation-width);
    padding: 16px 12px;
    border-radius: 24px;
    box-shadow: 8px 0 28px #22172f18;
  }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:not(:hover):not(:focus-within):not([data-pointer-peek]) :is(.nav, .nav-group) {
    justify-content: center;
    margin-left: 0;
    padding: 10px;
    min-height: 40px;
    width: 40px;
    border-left: 0;
    border-radius: 50%;
  }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:not(:hover):not(:focus-within):not([data-pointer-peek]) { scrollbar-width: none; }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:not(:hover):not(:focus-within):not([data-pointer-peek])::-webkit-scrollbar { display: none; width: 0; }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .nav.active { box-shadow: none; }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .brand { justify-content: center; padding: 4px 0 20px; }
  html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout > aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .navigation-group:has(.nav.active) > .nav-group {
    background: var(--sidebar-active);
    color: var(--sidebar-active-ink);
    box-shadow: none;
  }
}
@media (min-width: 1040px) {
  html[data-design=video][data-menu=horizontal] .layout > aside > .navigation-group { padding-top: 0; }
  html[data-design=video][data-menu=horizontal] .layout > aside > .navigation-group > .horizontal-group-items {
    border-color: var(--sidebar-hover);
    box-shadow: 0 8px 28px #15223420;
  }
  html[data-design=video][data-menu=horizontal] .layout > aside :is(.nav, .nav-group) { margin-bottom: 0; }
}
@media (max-width: 720px) {
  html[data-design=video] .layout > aside,
html[data-design=video] .layout > aside.open { width: min(280px, calc(100vw - 32px)); padding: 16px 12px; border-radius: 0 24px 24px 0; }
  html[data-design=video] .layout > aside .sidebar-close { min-height: 44px; margin-bottom: 16px; border-color: var(--sidebar-muted); }
  html[data-design=video] .layout > aside :is(.nav, .navigation-group > .nav-group) { min-height: 44px; }
  html[data-design=video][data-menu=vertical] .layout > aside .navigation-group > .nav { min-height: 44px; }
  html[data-design=video] .layout .topbar { min-height: 64px; padding: 10px 12px; gap: 8px; }
  html[data-design=video] .layout > .main > .content,
html[data-design=video] .layout > .main > .content:has(#dashboard-root) { padding: 20px 12px 28px; }
  html[data-design=video] .layout .page-head h1 { font-size: 1.571429rem; }
  html[data-design=video] .layout :is(.panel-head, .panel-body) { padding: 16px; }
  html[data-design=video] .layout .toolbar { padding: 12px; }
  html[data-design=video] .layout .table-wrap > table > :is(thead, tbody) > tr > :is(th, td) { padding-left: 12px; padding-right: 12px; }
  html[data-design=video] .dialog-head { padding: 16px; }
  html[data-design=video] .dialog-body { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-design=video]:not([data-motion=reduce]) .layout > aside { transition: width 160ms ease-out, box-shadow 160ms ease-out; }
  html[data-design=video]:not([data-motion=reduce]) .layout > aside :is(.nav, .nav-group),
html[data-design=video]:not([data-motion=reduce]) .layout :is(.tabs button, .stat) { transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out; }
  /* Data refreshes replace section nodes: keep their content visually stable. */
}
@keyframes reference-section-enter { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html[data-design=video] .layout > aside,
html[data-design=video] .layout > aside *,
html[data-design=video] .layout .tabs button,
html[data-design=video] .layout .stat { transition: none !important; }
}

/* Original scalable folder layers: user reference IMG_6020 and supplied crop. */
.file-folder-art{display:block;width:76px;height:auto;aspect-ratio:4/3;flex:none;overflow:visible}
.file-folder-art .folder-back{stroke:var(--folder-edge,#8a7a9f);stroke-width:.6}
.file-folder-art .folder-tab{fill:var(--folder-light,#dcd0e9)}
.file-folder-art .folder-paper rect{fill:#fdfcff;stroke:#d9d5e2;stroke-width:.8}
.file-folder-art .folder-paper path{fill:none;stroke:var(--folder-light,#dcd0e9);stroke-width:2;stroke-linecap:round}
.file-folder-art .folder-paper-back{transform:rotate(-5deg);transform-origin:100px 120px}
.file-folder-art .folder-paper-front{transform:rotate(3deg);transform-origin:100px 120px}
.file-folder-art .folder-face{stroke:#ddd9e4;stroke-width:.8}
.file-folder-art .folder-front{filter:drop-shadow(0 3px 3px #21172d18);transform-origin:100px 136px}
.file-folder-art .folder-highlight{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}
.folder-color-preview{display:flex;gap:24px;padding:16px;background:var(--accent-soft);border-radius:16px}
.folder-color-preview .file-folder-art{width:100px;max-width:40%}
html[data-design=video] .file-library-folders{grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:20px}
html[data-design=video] .file-library-folder{flex-direction:column;gap:8px;border-radius:20px;padding:20px;background:var(--surface);box-shadow:0 4px 18px #21172d06}
html[data-design=video] .file-library-folder>.file-folder-art{width:100%;max-width:180px;align-self:center}
html[data-design=video] .file-library-folder>span{width:100%}
.file-library-folder:focus-visible{outline:2px solid var(--green);outline-offset:4px}
@media(prefers-reduced-motion:no-preference){
 html:not([data-motion=reduce]) .file-folder-art :is(.folder-paper,.folder-front){transition:transform 210ms cubic-bezier(.2,.7,.2,1)}
 html:not([data-motion=reduce]) :is(.file-library-folder:hover,.file-library-folder:focus-visible,.folder-color-preview:hover) .folder-paper-back{transform:translateY(-18px) rotate(-8deg)}
 html:not([data-motion=reduce]) :is(.file-library-folder:hover,.file-library-folder:focus-visible,.folder-color-preview:hover) .folder-paper-front{transform:translateY(-11px) rotate(5deg)}
 html:not([data-motion=reduce]) :is(.file-library-folder:hover,.file-library-folder:focus-visible,.folder-color-preview:hover) .folder-front{transform:scaleY(.82)}
}

/* Background and panel text use separate contrast pairs for custom palettes. */
.layout>.main{background:var(--canvas);color:var(--canvas-ink,var(--ink))}
.layout :is(.panel,.stat,.file-library-folder,dialog){color:var(--ink)}
.layout .page-head :is(h1,h2){color:var(--canvas-ink,var(--ink))}
.layout .page-head p,.layout .eyebrow,.file-library-scope{color:var(--canvas-muted,var(--subtle))}
html[data-design=video] .layout .page-head p,html[data-design=video] .layout .eyebrow{color:var(--canvas-muted,var(--subtle))}

.topbar>.account-actions :is(a,button){color:var(--header-ink)}
.topbar>.account-actions :is(a,button):hover{background:var(--header-hover);color:var(--header-ink)}

/* Shared business blocks: same material and rhythm across existing workflows. */
html[data-design=video] .layout :is(.task-view-card,.customer-event-card,.contract-import-card,.schedule-import-card,.supply-list-panel,.production-calendar-panel,.crm-filter-panel,.table-chart-card){background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--reference-radius);box-shadow:none;min-width:0}
html[data-design=video] .layout :is(.calendar-toolbar,.communicator-toolbar,.employee-card-toolbar,.salary-work-toolbar,.task-calendar-toolbar){gap:10px;flex-wrap:wrap}
html[data-design=video] .layout :is(.empty,.chat-empty,.dashboard-empty,.employee-card-empty,.file-library-empty){line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--green);outline-offset:3px}
html[data-design=video] .layout>aside :is(button,a,summary):focus-visible{outline-color:var(--sidebar-active)}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) :is(.actions,.toolbar,.form-actions) > button{transition:background-color 120ms ease,color 120ms ease,transform 120ms ease}
 html[data-design=video]:not([data-motion=reduce]) :is(.actions,.toolbar,.form-actions) > button:active:not(:disabled){transform:translateY(1px)}
 html[data-design=video]:not([data-motion=reduce]) dialog[open]:not(.record-page-card){animation:reference-dialog-enter 140ms ease-out both}
}
@keyframes reference-dialog-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media print{.file-folder-art *{transition:none!important;animation:none!important;transform:none!important}html[data-design=video] dialog{animation:none!important}}

/* Full record pages use the existing workflow inside the new card material. */
html[data-design=video] .record-page-card>.dialog-head{padding:0 0 20px;background:transparent;color:var(--canvas-ink,var(--ink))}
html[data-design=video] .record-page-card>.tabs{padding:8px;gap:6px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
html[data-design=video] .record-page-card>.tabs button{border:0;border-radius:10px;padding:10px 14px;color:var(--subtle);background:transparent;white-space:normal}
html[data-design=video] .record-page-card>.tabs button.active{background:var(--accent-soft);color:var(--green)}
html[data-design=video] .record-page-card>.dialog-body{margin-top:16px;padding:22px!important;border:1px solid var(--line);border-radius:var(--reference-radius);background:var(--surface);color:var(--ink)}
html[data-design=video] .record-page-context{border-radius:var(--reference-radius);color:var(--ink)}
html[data-design=video] .record-page-breadcrumbs{color:var(--canvas-muted,var(--subtle))}
/* Calendar days stay readable as a grid, and stack using existing breakpoints. */
html[data-design=video] :is(.calendar-day,.crm-calendar-day,.task-calendar-day){border-radius:12px;background:var(--surface);color:var(--ink)}
html[data-design=video] .calendar-day.other-month{background:var(--surface)}
html[data-design=video] .calendar-day.other-month>h3{color:var(--subtle)}
html[data-design=video] .calendar-day.today{border:1px solid var(--green);box-shadow:inset 0 0 0 1px var(--green)}
html[data-design=video] .calendar-event{border-radius:9px;line-height:1.45;border-color:var(--line);background:var(--surface);color:var(--ink)}
html[data-design=video] .calendar-event:not(.late):hover{background:var(--accent-soft);color:var(--green)}
html[data-design=video] .calendar-event small{color:inherit;line-height:1.4}
html[data-design=video] .calendar-event.late{border-left:3px solid #ae5548;background:#fff1ee;color:#8d3024}
html[data-design=video][data-theme=dark] .calendar-event.late{background:#513d26;color:#ffdaa2;border-left-color:#ffdaa2}
.calendar-feedback{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);margin-bottom:16px}
.calendar-feedback p{margin:0 0 12px;overflow-wrap:anywhere}
@media(max-width:720px){html[data-design=video] .record-page-card>.dialog-body{padding:16px!important}html[data-design=video] .record-page-card>.tabs{padding:6px}}

/* Entry and role-specific workspaces share the material without changing routes. */
html[data-design=video]{font-family:var(--reference-font);background:var(--canvas);color:var(--canvas-ink,var(--ink))}
html[data-design=video] .auth{padding:24px;gap:24px;background:var(--canvas);min-height:100dvh}
html[data-design=video] .auth-story{background:var(--sidebar-bg);color:var(--sidebar-ink);border-radius:24px;padding:clamp(24px,5vw,70px)}
html[data-design=video] .auth-story :is(p,.eyebrow,.brand small){color:var(--sidebar-muted)}
html[data-design=video] .auth-story .brand{color:var(--sidebar-ink)}
html[data-design=video] .auth-form{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:24px;padding:clamp(24px,5vw,70px);min-width:0}
html[data-design=video] .auth-form form{width:100%;max-width:420px}
html[data-design=video] .auth-form :is(h1,p,label){overflow-wrap:anywhere}
html[data-design=video] .auth-form input{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=video] .auth-form :is(p,.eyebrow){color:var(--subtle)}
html[data-design=video] #app>.panel{margin:24px auto;max-width:1280px;width:calc(100% - 48px);border-radius:var(--reference-radius);background:var(--surface);color:var(--ink)}
html[data-design=video] #app>.panel>.panel-body{padding:24px}
html[data-design=video] #customer-root :is(.checkpoint,.panel){background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:18px;margin-top:16px;overflow-wrap:anywhere}
html[data-design=video] #customer-root :is(h2,h3,p){overflow-wrap:anywhere}
html[data-design=video] .mobile-workplace{background:var(--canvas);color:var(--canvas-ink,var(--ink));min-height:100dvh}
html[data-design=video] .mobile-workplace>.topbar{height:auto;min-height:68px;gap:16px;padding:16px 24px;flex-wrap:wrap;border-radius:0 0 18px 18px}
html[data-design=video] .mobile-workplace>.topbar .brand{color:var(--header-ink);padding:0;font-size:1.428571rem}
html[data-design=video] .mobile-workplace>.topbar .user{flex-wrap:wrap;min-width:0;gap:8px}
html[data-design=video] .mobile-workplace>.topbar .user button{color:var(--header-ink);background:var(--header-hover);white-space:normal}
html[data-design=video] .mobile-workplace .panel{background:var(--surface);color:var(--ink);border-radius:var(--reference-radius)}
html[data-design=video] .mobile-workplace .page-head p{color:var(--canvas-muted,var(--subtle))}
html[data-design=video] .mobile-workplace .page-head .actions{gap:8px}
@media(max-width:720px){
 html[data-design=video] .auth{padding:12px;gap:12px;display:grid;grid-template-columns:minmax(0,1fr)}
 html[data-design=video] .auth-story{padding:24px}
 html[data-design=video] .auth-story .brand{margin-bottom:24px}
 html[data-design=video] .auth-story h1{font-size:1.785714rem}
 html[data-design=video] #app>.panel{margin:12px;width:calc(100% - 24px)}
 html[data-design=video] #app>.panel>.panel-body{padding:16px}
 html[data-design=video] .mobile-workplace>.topbar{padding:14px 16px}
 html[data-design=video] .mobile-workplace>.topbar .user{width:100%}
 html[data-design=video] .mobile-workplace>.topbar .user button{flex:1 1 120px}
}

html[data-design=video] #customer-root .customer-feedback{padding:18px;margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
html[data-design=video] #customer-root .customer-feedback p{margin-bottom:8px}

/* Action rows wrap instead of clipping their first controls at narrow widths. */
html[data-design=video] .form-actions{flex-wrap:wrap;min-width:0}
html[data-design=video] .form-actions>button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html[data-design=video] .customer-actions{justify-content:flex-start;margin:20px 0;gap:8px}
@media(max-width:720px){html[data-design=video] .customer-actions>button{flex:1 1 130px}}

/* Business boards and editors use the same material as the video workspace. */
html[data-design=video] .board>.column{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:14px;min-width:240px}
html[data-design=video] .board>.column>h3{color:var(--subtle);gap:12px;align-items:center;overflow-wrap:anywhere}
html[data-design=video] .board .card{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:12px;box-shadow:0 3px 10px #16132406;overflow-wrap:anywhere}
html[data-design=video] .board .card button{background:transparent;color:var(--ink);max-width:100%;white-space:normal;overflow-wrap:anywhere;border-radius:5px}
html[data-design=video] .board .card button:hover{color:var(--green)}
html[data-design=video] .board .card small{color:var(--subtle);line-height:1.5}
html[data-design=video] .board .card select{max-width:100%;background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:7px;min-height:36px}
html[data-design=video] .page-head>div:first-child{min-width:0}
html[data-design=video] .page-head :is(h1,p){overflow-wrap:anywhere}
html[data-design=video] .record-link{white-space:normal;overflow-wrap:anywhere}

html[data-design=video] dialog{--reference-dialog-space:22px;width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border-radius:20px;background:var(--surface);color:var(--ink)}
html[data-design=video] dialog::backdrop{background:#17142566;backdrop-filter:blur(4px)}
html[data-design=video][data-theme=dark] dialog::backdrop{background:#07060bcc}
html[data-design=video] dialog:not(.record-page-card)>.dialog-head{position:sticky;top:0;z-index:3;align-items:flex-start;padding:18px var(--reference-dialog-space);background:var(--surface);color:var(--ink);gap:16px}
html[data-design=video] dialog>.dialog-head h2{min-width:0;overflow-wrap:anywhere;line-height:1.35}
html[data-design=video] dialog>.dialog-head button{flex:0 0 44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:8px}
html[data-design=video] dialog>.dialog-body{min-width:0;padding:var(--reference-dialog-space);overflow-wrap:anywhere}
html[data-design=video] dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-design=video] dialog .form-grid :is(input,select,textarea){max-width:100%}
html[data-design=video] dialog:not(.record-page-card) :is(.dialog-body>form,form.dialog-body)>.form-actions{position:sticky;bottom:0;z-index:2;margin-inline:calc(-1 * var(--reference-dialog-space));margin-bottom:calc(-1 * var(--reference-dialog-space));padding:16px var(--reference-dialog-space);background:var(--surface);border-top:1px solid var(--line);gap:10px}
html[data-design=video] dialog .error[role=alert]:not(:empty){padding:12px;border:1px solid #b86b65;border-radius:10px;background:#fff1ef;color:#8a3028;overflow-wrap:anywhere}
html[data-design=video][data-theme=dark] dialog .error[role=alert]:not(:empty){background:#442b31;color:#ffd8d2;border-color:#b87e79}
html[data-design=video] :is(.participant-fields,.participant-multiple){min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:16px}
html[data-design=video] :is(.participant-fields,.participant-multiple)>legend{padding:0 6px;max-width:100%;overflow-wrap:anywhere;font-weight:600}
html[data-design=video] :is(.participant-options,.participant-summary){overflow-wrap:anywhere;min-width:0}
html[data-design=video] .hr-form-section{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:18px;margin-bottom:16px}
html[data-design=video] .hr-form-section:first-child{border-top:1px solid var(--line);padding-top:18px}
html[data-design=video] .hr-form-section>legend{padding:0 6px;max-width:100%;overflow-wrap:anywhere;font-weight:600}
html[data-design=video] details.hr-form-section>summary{cursor:pointer;border-radius:6px;overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] .reference-picker{border-color:var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
html[data-design=video] :is(.board .card button,dialog button,details.hr-form-section>summary):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .board .card{transition:border-color .18s ease,box-shadow .18s ease}html[data-design=video]:not([data-motion=reduce]) .board .card:focus-within{border-color:var(--green);box-shadow:0 0 0 2px var(--accent-soft)}}
@media(max-width:720px){
 html[data-design=video] dialog{--reference-dialog-space:16px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}
 html[data-design=video] dialog>.dialog-head{padding-top:16px;padding-bottom:16px;gap:12px}
 html[data-design=video] dialog .form-grid{grid-template-columns:minmax(0,1fr)}
 html[data-design=video] dialog .form-actions>button{flex:1 1 120px;min-height:44px}
 html[data-design=video] .hr-form-section{padding:14px}
 html[data-design=video] .hr-form-section:first-child{padding-top:14px}
}

/* Personal-workplace dialogs are siblings of .mobile-workplace, not children. */
html[data-design=video] dialog .list-item{flex-wrap:wrap;align-items:flex-start;gap:12px;border-color:var(--line)}
html[data-design=video] dialog .list-item>div{min-width:0;flex:1 1 220px;overflow-wrap:anywhere}
html[data-design=video] dialog .list-item>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
html[data-design=video] dialog .list-item :is(b,strong,small,.record-link){overflow-wrap:anywhere}

/* These customer forms deliberately have no .form-grid wrapper. */
html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>label,
html[data-design=video] #customer-event-filter>label{display:grid;gap:6px;min-width:0;color:var(--subtle)}
html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>label{margin-bottom:16px}
html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>label :is(input,select,textarea),
html[data-design=video] #customer-event-filter :is(input,select){width:100%;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:inherit;padding:10px 12px;line-height:1.4}
html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>h3{overflow-wrap:anywhere}
html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>button{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:8px 8px 0 0}
html[data-design=video] #customer-event-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:16px;margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
html[data-design=video] #customer-event-filter>button{justify-self:start}
html[data-design=video] dialog .customer-event-card{display:block;min-width:0;border-radius:12px;background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=video] dialog .customer-event-card :is(h3,h4,p){overflow-wrap:anywhere}
html[data-design=video] dialog .customer-event-card>button{max-width:100%;white-space:normal}
@media(max-width:720px){
 html[data-design=video] dialog .list-item>button{min-height:44px}
 html[data-design=video] #customer-event-filter{grid-template-columns:minmax(0,1fr);gap:14px}
 html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>label :is(input,select,textarea),html[data-design=video] #customer-event-filter :is(input,select){font-size:max(1rem,16px)}
 html[data-design=video] #customer-event-filter>button{width:100%;min-height:44px}
 html[data-design=video] :is(#inquiry-create-form,#inquiry-reply-form)>button{display:block;width:100%;min-height:44px;margin:12px 0 0}
}

/* Coordinated surfaces and motion. The existing routes, section order and
   controls remain owned by their modules. All colors follow appearance.js. */
html[data-design=video]{
 --motion-fast:120ms;--motion-normal:180ms;--motion-reveal:240ms;
 --motion-ease:cubic-bezier(.2,.7,.2,1);
 --reference-control-radius:9px;
}
html[data-design=video][data-sidebar-tone=light] .layout>aside{
 border-color:var(--line);box-shadow:0 2px 12px #21172d05;
}
html[data-design=video] .layout .dashboard-company{
 background:var(--secondary-soft);border:1px solid var(--line);color:var(--ink);
}
html[data-design=video]:not([data-theme=dark]) .layout .dashboard-company{
 background:var(--secondary-soft);border-color:var(--line);
}
html[data-design=video] :is(.panel,.dashboard-panel,.task-view-card,.customer-event-card,.checkpoint,.hr-form-section,.table-chart-card){
 border-color:var(--line);color:var(--ink);
}
html[data-design=video] :is(.detail-field,.employee-card-section,.object-card-section){min-width:0}
html[data-design=video] :is(.detail-field,.employee-card-section,.object-card-section) :is(small,.muted){color:var(--subtle)}
html[data-design=video] .detail-field{padding-block:10px;border-bottom:1px solid var(--line)}
html[data-design=video] .detail-field>div{line-height:1.55}
html[data-design=video] :is(.panel-head,.dialog-head){border-bottom-color:var(--line)}
html[data-design=video] :is(.comment,.record-comment,.record-comment-toolbar,.calendar-feedback){
 background:var(--secondary);color:var(--ink);border-color:var(--line);border-radius:12px;
}
html[data-design=video] .history{border-color:var(--line-strong)}
html[data-design=video] .history :is(small,pre){color:var(--subtle)}
html[data-design=video] :is(.empty,.chat-empty,.dashboard-empty,.employee-card-empty,.file-library-empty){
 color:var(--subtle);line-height:1.65;overflow-wrap:anywhere;
}
html[data-design=video] .empty b{color:var(--ink)}
html[data-design=video] .empty .empty-icon{color:var(--secondary-accent)}
html[data-design=video] :is(.layout>.main,.mobile-workplace,dialog,#customer-root) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=hidden]){
 background:var(--surface);color:var(--ink);border-color:var(--line-strong);border-radius:var(--reference-control-radius);
 caret-color:var(--green);
}
html[data-design=video] :is(input,textarea)::placeholder{color:var(--subtle);opacity:.85}
html[data-design=video] :is(input,select,textarea):disabled{background:var(--secondary);cursor:not-allowed}
html[data-design=video] input:read-only:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]){background:var(--secondary)}
html[data-design=video] :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--green)}
html[data-design=video] button:disabled{cursor:not-allowed}
html[data-design=video] button[aria-busy=true]{cursor:progress}
html[data-design=video] :is(input,select,textarea)[aria-invalid=true]{border-color:var(--status-danger-text)}
html[data-design=video] :is(input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:2px}
html[data-design=video] .notice{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border);border-radius:12px;line-height:1.6}
html[data-design=video] .pill{background:var(--status-success-surface);color:var(--status-success-ink);border:1px solid var(--status-success-border);border-radius:7px;line-height:1.4}
html[data-design=video] .pill.warn{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] .pill.red{background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}
html[data-design=video] :is(.error,.danger){color:var(--status-danger-text)!important}
html[data-design=video] :is(.layout,.mobile-workplace,dialog,#customer-root) button.danger:hover:not(:disabled){background:var(--status-danger-surface);color:var(--status-danger-ink)!important;border-color:var(--status-danger-border)}
html[data-design=video] dialog .error[role=alert]:not(:empty),
html[data-design=video][data-theme=dark] dialog .error[role=alert]:not(:empty){background:var(--status-danger-surface);color:var(--status-danger-ink)!important;border-color:var(--status-danger-border)}
html[data-design=video] .calendar-event.late,
html[data-design=video][data-theme=dark] .calendar-event.late{background:var(--status-warning-surface);color:var(--status-warning-ink);border-left-color:var(--status-warning-border)}
html[data-design=video] .calendar-event.late:hover{background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-design=video] #toast{background:var(--ink);color:var(--surface);border:1px solid var(--line-strong);border-radius:12px;max-width:min(420px,calc(100vw - 32px));line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] .file-library-toolbar{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--reference-radius)}
html[data-design=video] .file-library-folder{border-color:var(--line);box-shadow:none}
html[data-design=video] .file-library-folder:hover{background:var(--surface);border-color:var(--green)}
html[data-design=video] .file-library-folder small{color:var(--subtle)}
html[data-design=video] .file-library-file{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-block:10px}
html[data-design=video] .file-library-description{align-self:center}
/* Vector sheets stay behind the cover at rest and during opening. */
html[data-design=video] .file-folder-art .folder-paper rect{fill:var(--folder-paper);stroke:var(--line-strong)}
html[data-design=video] .file-folder-art .folder-paper path{stroke:var(--folder-paper-ink);opacity:.45}
html[data-design=video] .file-folder-art .folder-face{stroke:var(--line-strong)}
html[data-design=video] .file-folder-art .folder-highlight{stroke:var(--surface);opacity:.65}
html[data-design=video] .file-folder-art .folder-front{filter:drop-shadow(0 3px 3px var(--folder-shadow))}
html[data-design=video] .folder-color-preview{background:var(--secondary);border:1px solid var(--line);flex-wrap:wrap}
@media(hover:hover) and (pointer:fine){
 html[data-design=video] .layout :is(a.dashboard-metric,a.dashboard-tool,a.stat):hover{border-color:var(--green);box-shadow:0 4px 14px var(--folder-shadow);text-decoration:none}
 html[data-design=video] .list-item:has(a:hover){background:var(--secondary)}
}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) :is(.dashboard-metric,.dashboard-tool,.file-library-folder,.file-library-file,.calendar-event){transition:background-color var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-normal),transform var(--motion-normal) var(--motion-ease)}
 html[data-design=video]:not([data-motion=reduce]) :is(input,select,textarea){transition:border-color var(--motion-fast),background-color var(--motion-fast)}
 html[data-design=video]:not([data-motion=reduce]) .account-popover{animation:reference-popover-enter var(--motion-normal) var(--motion-ease) both}
 html[data-design=video]:not([data-motion=reduce]) #toast.show{animation:reference-popover-enter var(--motion-normal) var(--motion-ease) both}
 html[data-design=video]:not([data-motion=reduce]) .file-folder-art :is(.folder-paper,.folder-front){transition:transform 220ms var(--motion-ease)}
}
/* Dashboard cards refresh in place; hover/focus feedback remains animated. */
@keyframes reference-popover-enter{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:720px){
 html[data-design=video] .file-library-toolbar{padding:14px;gap:14px}
 html[data-design=video] .file-library-file{flex-wrap:wrap;gap:12px}
 html[data-design=video] .file-library-actions{width:100%}
 html[data-design=video] .file-library-actions :is(a,button){min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex:1 1 110px}
 html[data-design=video] .detail-field{padding-block:8px}
 html[data-design=video] #toast{inset-inline:16px;bottom:16px;max-width:none}
}
@media print{html[data-design=video] :is(.dashboard-metric,.dashboard-tool,.file-library-folder,.file-library-file,.account-popover,#toast){animation:none!important;transition:none!important;box-shadow:none!important}}

/* Quiet chrome, clear actions and native file picking in both palettes. */
html[data-design=video] .topbar :is(.mobile-menu,.global-search-trigger){
 border:1px solid var(--line);border-radius:12px;min-height:40px;
 box-shadow:none;color:var(--header-ink);background:var(--header-hover);
}
html[data-design=video] .topbar .mobile-menu{min-width:40px;padding:8px;display:grid;place-items:center}
html[data-design=video] .topbar :is(.mobile-menu,.global-search-trigger):hover{border-color:var(--header-icon)}
html[data-design=video] .topbar .organization-switcher select{border-radius:8px;padding:5px 8px;max-width:100%;text-overflow:ellipsis}
html[data-design=video] .topbar .account-menu>summary{border-radius:12px}
html[data-design=video] .account-popover{padding:10px;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 36px var(--folder-shadow)}
html[data-design=video] .account-popover .account-actions :is(a,button){min-height:40px;border-radius:9px;line-height:1.4}
html[data-design=video] .account-popover .account-actions :is(a,button):hover{background:var(--secondary)}
html[data-design=video] :is(dialog,.panel,.mobile-workplace,#customer-root) input[type=file]{
 padding:8px;min-width:0;max-width:100%;white-space:normal;font:inherit;line-height:1.5;
}
html[data-design=video] input[type=file]::file-selector-button{
 font:inherit;font-weight:600;background:var(--accent-soft);color:var(--green);
 border:1px solid var(--line);border-radius:8px;padding:9px 12px;margin-inline-end:12px;
 cursor:pointer;white-space:normal;
}
html[data-design=video] input[type=file]:hover::file-selector-button{border-color:var(--green)}
html[data-design=video] input[type=file]:disabled::file-selector-button{cursor:not-allowed;opacity:.6}
html[data-design=video] .file-library-queue{padding:0;list-style:none}
html[data-design=video] .file-library-queue>li{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--secondary);margin-block:8px;overflow-wrap:anywhere}
html[data-design=video] .file-library-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
html[data-design=video] .file-library-breadcrumbs button{border-radius:9px;white-space:normal;text-align:start;overflow-wrap:anywhere}
html[data-design=video] :is(.file-library-empty,.chat-empty,.employee-card-empty){
 padding:28px 20px;border:1px dashed var(--line-strong);border-radius:14px;
 background:var(--surface);color:var(--subtle);text-align:center;
}
html[data-design=video] .file-library>[role=status]{font-variant-numeric:tabular-nums;min-height:1.6em;color:var(--canvas-muted)}
html[data-design=video] .file-library-file .file-library-description>strong{overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] .file-library-actions :is(a,button){border-radius:9px}
html[data-design=video] :is(.dialog-body,.panel-body) textarea{resize:vertical;min-height:88px;line-height:1.6}
html[data-design=video] :is(.toolbar,.actions,.form-actions){row-gap:10px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) .topbar :is(.mobile-menu,.global-search-trigger,.account-menu>summary){transition:border-color 120ms ease,background-color 120ms ease}
 html[data-design=video]:not([data-motion=reduce]) .file-library-actions :is(a,button){transition:background-color 120ms ease,border-color 120ms ease}
}
@media(max-width:720px){
 html[data-design=video] .topbar :is(.mobile-menu,.global-search-trigger){min-height:44px;min-width:44px}
 html[data-design=video] input[type=file]::file-selector-button{min-height:44px}
 html[data-design=video] :is(.file-library-empty,.chat-empty,.employee-card-empty){padding:24px 16px}
 html[data-design=video] .file-library-upload>.actions{display:flex;flex-wrap:wrap}
 html[data-design=video] .file-library-upload>.actions>button{flex:1 1 120px;min-height:44px}
}

/* File folders are the surfaces themselves, without outer cards. */
html[data-design=video] .file-library-folders,html[data-design=video] .personal-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:24px;align-items:start}
html[data-design=video] .file-library-folder,html[data-design=video] .file-library-folder:hover{position:relative;padding:0;border:0;background:transparent;box-shadow:none;gap:0;align-items:center}
html[data-design=video] .file-library-folder>.file-folder-art{max-width:none;width:100%}
html[data-design=video] .file-library-folder .folder-front{visibility:hidden}
html[data-design=video] .file-library-folder>span{position:relative;z-index:1;width:88%;margin-top:-43%;padding:16px;min-height:104px;border:1px solid var(--line-strong);border-radius:12px;background:var(--folder-face);color:var(--ink);box-shadow:0 4px 10px var(--folder-shadow)}
html[data-design=video] .file-library-folder:hover>span,html[data-design=video] .file-library-folder:focus-visible>span{border-color:var(--green)}
html[data-design=video] .file-library-folder strong{font-size:1rem;line-height:1.45}
html[data-design=video] .personal-folder-rename{display:block;margin:8px auto 0;padding:5px 10px;border:0;background:transparent;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .personal-folder-section h2{margin-block:24px 16px}
html[data-design=video] .file-library-toolbar{display:block}
.file-library-filter-fields{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(120px,1fr));gap:14px}
.file-library-filter-fields>label{display:grid;gap:7px;min-width:0;color:var(--subtle)}
.file-library-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);flex-wrap:wrap}
.file-archive-toggle{display:inline-flex;align-items:center;gap:10px;cursor:pointer;color:var(--subtle)}
.file-archive-toggle input{appearance:none;position:relative;width:34px;height:20px;padding:0;border:1px solid var(--line-strong);border-radius:20px;background:var(--secondary);flex:none}
.file-archive-toggle input::before{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--subtle)}
.file-archive-toggle input:checked{background:var(--green);border-color:var(--green)}
.file-archive-toggle input:checked::before{transform:translateX(14px);background:var(--primary-ink)}
html[data-design=video] .file-refresh{border-color:transparent;background:var(--secondary);color:var(--ink);border-radius:10px}
.file-picker{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px;border:1px dashed var(--line-strong);border-radius:12px;margin-bottom:12px}
.file-picker-trigger{position:relative;padding:10px 14px;border-radius:9px;background:var(--accent-soft);color:var(--green);font-weight:600;cursor:pointer}
.file-picker-trigger:focus-within{outline:2px solid var(--green);outline-offset:3px}
.file-picker>[data-upload-selection]{color:var(--subtle);overflow-wrap:anywhere}
.file-storage{margin-bottom:20px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.file-storage>div{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.file-storage progress{appearance:none;display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;margin:12px 0;background:var(--secondary)}
.file-storage progress::-webkit-progress-bar{background:var(--secondary)}
.file-storage progress::-webkit-progress-value{background:var(--green);border-radius:8px}
.file-storage small{color:var(--subtle);line-height:1.5}
.file-recent{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.file-recent-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px}
.file-recent-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;text-align:start;overflow-wrap:anywhere;min-width:0}
.file-recent-card:hover{border-color:var(--green);text-decoration:none}
.file-type-mark{padding:8px 10px;background:var(--accent-soft);color:var(--green);border-radius:8px;font-weight:600;font-size:.857143rem}
.file-recent-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-block:20px 12px}
.file-recent-tabs button{border:0;background:transparent;color:var(--subtle);border-radius:10px}
.file-recent-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--green)}
.file-recent-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:14px 4px;border-bottom:1px solid var(--line);color:var(--ink)}
.file-recent-list strong{overflow-wrap:anywhere}.file-recent-list small{grid-column:1/-1;color:var(--subtle)}
/* One guide for each nested group, instead of a border around every item. */
html[data-design=video][data-menu=vertical] .layout>aside .navigation-group>.nav{border-left:0;border-radius:8px;margin-block:4px}
html[data-design=video][data-menu=vertical] .layout>aside .navigation-group.nested{border-left:1px solid var(--line);margin-left:20px;padding-left:4px}
.standard-report-summary{display:flex;gap:10px 24px;flex-wrap:wrap;align-items:center;padding:18px 22px;margin:0;border-bottom:1px solid var(--line);background:var(--secondary);color:var(--ink);line-height:1.5}
.standard-report-summary strong{font-variant-numeric:tabular-nums;margin-left:6px}
[data-standard-form]{padding:20px}[data-standard-form]>.form-grid{margin-bottom:16px}
@media(prefers-reduced-motion:no-preference){
 html:not([data-motion=reduce]) .file-archive-toggle input::before{transition:transform 160ms ease}
 html:not([data-motion=reduce]) .file-recent-card{transition:border-color 120ms ease,box-shadow 180ms ease}
}
@media(max-width:900px){.file-library-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.file-library-filter-fields{grid-template-columns:minmax(0,1fr)}.file-library-filter-actions{align-items:stretch}.file-refresh{min-height:44px}.file-storage{padding:16px}.file-recent-tabs>button{flex:1;min-height:44px}.standard-report-summary{padding:16px;gap:8px 16px}}


/* Connected navigation control and contained scroll track. */
html[data-design=video][data-menu=vertical] .layout>aside{overflow-x:hidden;scroll-padding-block:24px;clip-path:inset(0 round 24px)}
html[data-design=video][data-menu=vertical] .layout>aside::-webkit-scrollbar-track{margin-block:24px}
html[data-design=video][data-menu=vertical] .layout>aside::-webkit-scrollbar-button{display:none;height:0;width:0}
html[data-design=video] .standard-report-summary{padding:16px 20px;margin:0;line-height:1.7;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
html[data-design=video] [data-standard-form]{padding:20px}
html[data-design=video] [data-standard-form]>.primary{margin-top:16px}
@media(min-width:721px){
 html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu{position:fixed;z-index:32;top:28px;left:calc(var(--navigation-width));width:40px;height:44px;min-width:40px;padding:10px;border:3px solid var(--canvas);border-radius:0 14px 14px 0;background:var(--sidebar-bg);color:var(--sidebar-ink);box-shadow:none}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout .topbar>.mobile-menu{left:calc(var(--reference-rail-width) - 24px)}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed]:has(.layout>aside:is(:hover,:focus-within,[data-pointer-peek])) .layout .topbar>.mobile-menu{left:var(--navigation-width)}
 html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu[aria-expanded=true]{background:var(--sidebar-active);color:var(--sidebar-active-ink)}
 html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu:focus-visible{outline:2px solid var(--green);outline-offset:2px}
}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .layout .topbar>.mobile-menu{transition:background-color .16s ease,color .16s ease}}


/* Form fields retain their labels above controls at every workspace width. */
html[data-design=video] #tender-filter{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:18px 16px;padding:20px;margin:0;border-bottom:1px solid var(--line)}
html[data-design=video] #tender-filter>label:not(.checkbox-line){display:grid;gap:7px;min-width:0;align-content:start;font-size:.857143rem}
html[data-design=video] #tender-filter :is(input:not([type=checkbox]),select){width:100%;min-width:0;max-width:none}
html[data-design=video] #tender-filter>.checkbox-line{display:flex;align-items:center;gap:8px;min-height:42px;line-height:1.4;margin:0}
html[data-design=video] #tender-filter>.checkbox-line input{flex:0 0 16px;width:16px;height:16px;accent-color:var(--green)}
html[data-design=video] #tender-filter>button{justify-self:end;grid-column:-2/-1;min-width:110px}
html[data-design=video] .supply-list-more{border:1px solid var(--line);border-radius:12px;background:var(--secondary);margin:14px 0;padding:0 16px}
html[data-design=video] .supply-list-more>summary{padding:14px 0;cursor:pointer;font-weight:600;line-height:1.5;color:var(--ink)}
html[data-design=video] .supply-list-more[open]>.supply-list-filters{padding-bottom:16px}
html[data-design=video] .report-explanation{margin:12px 0 18px;color:var(--subtle);font-size:.857143rem;line-height:1.6}
html[data-design=video] .report-explanation>summary{cursor:pointer;width:fit-content;padding:5px 0;color:var(--green)}
html[data-design=video] .report-explanation>p{margin:8px 0 0;max-width:85ch}
html[data-design=video] .layout>aside .navigation-group>.nav{border-left:0;border-radius:8px}
html[data-design=video] .layout>aside .navigation-group.nested{border-left:0}
@container employee-directory (max-width:1200px){
 html[data-design=video] .layout .table-wrap.primary-directory-employees{padding:16px;background:var(--canvas)}
 html[data-design=video] .layout .table-wrap.primary-directory-employees>table>tbody{gap:16px}
 html[data-design=video] .layout .table-wrap.primary-directory-employees>table>tbody>tr{padding:20px;border-radius:16px;border:1px solid var(--line);background:var(--surface);gap:16px 20px}
 html[data-design=video] .layout .table-wrap.primary-directory-employees>table>tbody>tr>td{padding:0;border:0;background:transparent}
 html[data-design=video] .layout .table-wrap.primary-directory-employees>table>tbody>tr>td:first-child{left:20px;top:20px;width:80px}
 html[data-design=video] .layout .table-wrap.primary-directory-employees>table>tbody>tr>td:nth-child(2){padding:4px 0 8px 100px;min-height:100px}
 html[data-design=video] .primary-directory-employees :is(.primary-record-photo,.primary-photo-placeholder){width:80px;height:96px;border-radius:12px;object-fit:cover;font-size:1.7rem}
 html[data-design=video] .primary-directory-employees .record-link{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
 html[data-design=video] .primary-employee-documents{margin-top:8px}
 html[data-design=video] .primary-employee-documents>summary{line-height:1.5}
}
@media(max-width:1100px){html[data-design=video] #tender-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){html[data-design=video] #tender-filter{grid-template-columns:minmax(0,1fr);padding:16px;gap:14px}html[data-design=video] #tender-filter>button{grid-column:1;justify-self:stretch;width:100%}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) :is(.supply-list-more,.report-explanation)[open]>:not(summary){animation:opora-panel-reveal .16s ease-out} @keyframes opora-panel-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}}

html[data-design=video] .primary-directory-employees{padding:16px}


/* Open the cover around its lower edge; sheets stay inside the vector canvas. */
html[data-design=video] .file-library-folder>span{transform-origin:50% 100%;backface-visibility:hidden}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) .file-library-folder>span{transition:transform 220ms cubic-bezier(.2,.7,.2,1),border-color 160ms ease,box-shadow 160ms ease}
}
html[data-design=video][data-motion=reduce] .file-library-folder>span{transform:none;transition:none}
@media(prefers-reduced-motion:reduce){html[data-design=video] .file-library-folder>span{transform:none;transition:none}}


/* Calendar controls share the same label alignment and compact navigation. */
html[data-design=video] :is(.calendar-toolbar,.task-calendar-toolbar){align-items:end;gap:12px;padding:16px;background:var(--secondary);border:1px solid var(--line);border-radius:14px}
html[data-design=video] :is(.calendar-toolbar,.task-calendar-toolbar)>label{display:grid;align-items:start;gap:6px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] :is(.calendar-toolbar,.task-calendar-toolbar)>:is(button,select){min-height:42px}
html[data-design=video] :is(#calendar-prev,#calendar-next,[data-task-date-step="-1"],[data-task-date-step="1"]){min-width:42px;padding:9px}
html[data-design=video] :is(.calendar-day,.crm-calendar-day,.task-calendar-day){min-width:0;overflow-wrap:anywhere;border-color:var(--line)}
html[data-design=video] :is(.calendar-day,.task-calendar-day)>h3{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:28px;margin:0 0 10px;font-variant-numeric:tabular-nums;font-size:.928571rem;font-weight:600}
html[data-design=video] :is(.calendar-day,.crm-calendar-day).today{box-shadow:inset 0 0 0 1px var(--green);border-color:var(--green)}
html[data-design=video] :is(.calendar-day,.crm-calendar-day).today :is(h3,.crm-calendar-date){color:var(--green);font-weight:700}
html[data-design=video] :is(.calendar-event,.crm-calendar-event,.task-view-card){max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] .task-month-grid{gap:8px;padding:16px}
html[data-design=video] .task-calendar-day{padding:10px}
html[data-design=video] .task-calendar-day .task-view-card{padding:10px;margin:8px 0;background:var(--secondary);border-radius:10px}
html[data-design=video] .task-calendar-weekday{font-size:.857143rem;color:var(--subtle);font-weight:600}
html[data-design=video] .task-stage-column{background:var(--secondary);border-radius:14px;padding:16px;border:1px solid var(--line)}
html[data-design=video] .task-stage-column>.task-view-card{padding:16px;border-radius:12px;background:var(--surface)}
html[data-design=video] .crm-calendar-unscheduled{border-top:1px solid var(--line);padding-top:8px}
html[data-design=video] #calendar-root>.report-explanation{margin-bottom:0}
@media(max-width:600px){
 html[data-design=video] :is(.calendar-toolbar,.task-calendar-toolbar){gap:8px;padding:12px}
 html[data-design=video] :is(.calendar-toolbar,.task-calendar-toolbar)>label{flex:1 1 140px;max-width:none}
 html[data-design=video] :is(.calendar-toolbar,.task-calendar-toolbar) :is(input,select){width:100%;min-width:0;max-width:100%}
 html[data-design=video] .calendar-toolbar>select{flex:1 1 120px}
 html[data-design=video] .task-month-grid{padding:12px}
 html[data-design=video] .calendar-day{padding:14px}
}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) :is(.crm-calendar-date,.calendar-event,.task-view-card){transition:background-color .16s ease,border-color .16s ease}}

/* Keep calendar weeks intact; narrow workspaces scroll inside the calendar. */
html[data-design=video] .personal-calendar-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable;border-radius:12px;padding-bottom:8px}
html[data-design=video] .personal-calendar-scroll:focus-visible{outline:2px solid var(--green);outline-offset:3px}
html[data-design=video] .personal-calendar-scroll .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:6px;margin:8px 0;min-width:666px}
html[data-design=video] .personal-calendar-scroll .calendar-day{margin:0;min-height:110px;padding:8px;background:var(--surface)}
html[data-design=video] .personal-calendar-scroll .calendar-day.other-month{background:var(--secondary)}
html[data-design=video] .calendar-period{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin:18px 0 10px}
html[data-design=video] .calendar-period>span{color:var(--subtle);font-size:.857143rem}
html[data-design=video] .calendar-period>strong{font-weight:600;font-variant-numeric:tabular-nums}

/* Supply filters and readable request titles. */
html[data-design=video] .supply-list-panel{padding:20px;container-type:inline-size}
html[data-design=video] .supply-list-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html[data-design=video] .supply-list-filters>label{display:grid;gap:7px;align-content:start;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .supply-list-checks{gap:8px;margin:16px 0;align-items:stretch}
html[data-design=video] .supply-list-check{min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:.857143rem;cursor:pointer;gap:8px}
html[data-design=video] .supply-list-check:has(input:checked){color:var(--green);background:var(--accent-soft);border-color:var(--green)}
html[data-design=video] .supply-list-check:focus-within{outline:2px solid var(--green);outline-offset:2px}
html[data-design=video] .supply-list-check input{margin:0;flex:none;width:15px;height:15px;accent-color:var(--green)}
html[data-design=video] .supply-list-summary{padding:14px 0;color:var(--subtle);font-size:.857143rem;border-top:1px solid var(--line);margin-top:18px}
html[data-design=video] .supply-list-table td{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5;min-width:110px}
html[data-design=video] .supply-list-table [data-column=name]{min-width:260px;max-width:360px}
html[data-design=video] .supply-list-table [data-column=name] .record-link{display:block;text-align:left;padding:4px 0;max-width:100%;font-weight:600}
html[data-design=video] .supply-list-table [data-column=id]{min-width:80px;font-variant-numeric:tabular-nums}
html[data-design=video] .content:has(.supply-list-panel) .page-head .actions{align-items:end;gap:8px}
html[data-design=video] .content:has(.supply-list-panel) .page-head .actions>label{display:grid;gap:6px;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .supply-list-board .card{padding:16px;border-radius:12px;line-height:1.5}
html[data-design=video] .supply-list-board .card>small{display:block;margin-top:7px;overflow-wrap:anywhere}
@container(min-width:1000px){html[data-design=video] .supply-list-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container(max-width:440px){html[data-design=video] .supply-list-filters{grid-template-columns:minmax(0,1fr)}html[data-design=video] .supply-list-check{flex:1 1 150px;min-height:44px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .supply-list-check{transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease}}

/* Standard record registers keep names readable at every available width. */
html[data-design=video] .record-register td{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:120px;vertical-align:top}
html[data-design=video] .record-register td:first-child{min-width:64px;font-variant-numeric:tabular-nums}
html[data-design=video] .record-register td:nth-child(2){min-width:220px;max-width:320px}
html[data-design=video] .record-register .record-link{display:block;text-align:left;line-height:1.5;font-weight:600}
html[data-design=video] #results>details:has(#contract-list-classification){margin:16px;border:1px solid var(--line);border-radius:12px;background:var(--secondary);overflow:hidden}
html[data-design=video] #results>details:has(#contract-list-classification)>summary{padding:14px 16px;cursor:pointer;font-weight:600;line-height:1.5}
html[data-design=video] #contract-list-classification{padding:0 16px 16px;gap:16px}
html[data-design=video] #contract-list-classification>label{display:grid;gap:7px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] #contract-list-classification :is(input,select){width:100%;min-width:0}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) #results>details[open]:has(#contract-list-classification)>form{animation:opora-panel-reveal 160ms ease-out}}

/* Appearance settings: essentials first, detailed controls on demand. */
html[data-design=video] dialog.appearance-dialog{width:min(760px,calc(100vw - 24px));scroll-padding-block:96px}
.appearance-advanced{border:1px solid var(--line);border-radius:12px;margin:0 0 22px;background:var(--secondary)}
.appearance-advanced>summary{cursor:pointer;padding:14px 16px;line-height:1.5;font-weight:600}
.appearance-advanced>.appearance-group{padding:0 16px 16px;margin-bottom:0}
.appearance-advanced>.appearance-group+.appearance-group{padding-top:16px}
.appearance-advanced>p{padding:0 16px;line-height:1.5}
.appearance-advanced .appearance-color-field{margin-bottom:14px}
.appearance-dialog [data-video-preset]{margin-bottom:18px}
.appearance-dialog .appearance-footer{position:sticky;bottom:0;z-index:3;background:var(--surface);padding:16px 0 12px;margin-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}
.appearance-dialog .appearance-footer button{min-height:44px}
.appearance-dialog .appearance-footer .primary{min-width:120px}
.appearance-dialog .appearance-color-field>span{line-height:1.5}
.appearance-dialog .appearance-status:empty{display:none}
@media(max-width:600px){.appearance-dialog .appearance-footer{bottom:0}.appearance-dialog .appearance-color-field{grid-template-columns:48px minmax(0,1fr)}.appearance-dialog .appearance-color-field input[type=text]{max-width:180px;width:100%}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .appearance-advanced[open]>.appearance-group{animation:opora-panel-reveal 160ms ease-out}}

/* Unified folder silhouette and aligned application chrome. */
html[data-design=video] .file-library-folders,html[data-design=video] .personal-folder-grid{grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:24px 20px}
html[data-design=video] .file-library-folder,html[data-design=video] .file-library-folder:hover{isolation:isolate;display:flex;align-items:center;padding-top:48px;min-height:168px;text-align:left}
html[data-design=video] .file-library-folder>.file-folder-art{position:absolute;top:-10px;left:0;width:100%;height:160px;max-width:none;z-index:-1}
html[data-design=video] .file-library-folder>span{width:92%;margin:0;min-height:116px;padding:18px 16px 16px;border:0;border-radius:0 16px 16px 16px;background:var(--folder-face);box-shadow:0 6px 16px var(--folder-shadow);transform:none}
html[data-design=video] .file-library-folder>span::before{content:"";position:absolute;left:0;top:-20px;width:46%;height:22px;border-radius:14px 18px 0 0;background:var(--folder-face);clip-path:polygon(0 0,78% 0,100% 100%,0 100%)}
html[data-design=video] .file-library-folder strong{display:block;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] .file-library-folder small{display:block;margin-top:10px;font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .file-library-folder:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:16px}
html[data-design=video] .topbar .organization-switcher{align-items:flex-end;gap:8px;max-width:360px}
html[data-design=video] .topbar .organization-switcher>label{gap:5px}
html[data-design=video] .topbar .organization-switcher select{height:36px;padding:0 32px 0 12px;line-height:36px;border:1px solid var(--line);border-radius:9px;font-weight:600}
html[data-design=video] .topbar .organization-switcher #organization-add{height:36px;width:36px;min-width:36px;margin:0;padding:0;border-radius:10px;border:1px solid var(--line);display:grid;place-items:center;font-size:1.571429rem;line-height:1;background:var(--header-hover);color:var(--header-icon)}
html[data-design=video] .topbar .organization-switcher #organization-add:hover{border-color:var(--header-icon)}
@media(min-width:721px){
 html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu{top:22px;width:36px;min-width:36px;height:40px;border:1px solid var(--line-strong);border-radius:11px;background:var(--surface)!important;color:var(--green)!important;box-shadow:0 3px 9px var(--folder-shadow);padding:8px}
 html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu[aria-expanded=true]{background:var(--accent-soft)!important;border-color:var(--green)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
}

/* Task workspace: a consistent filter grid and readable records. */
html[data-design=video] .task-register{container-type:inline-size;container-name:task-workspace}
html[data-design=video] #task-register-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px;align-items:end}
html[data-design=video] #task-register-filters>label,html[data-design=video] .task-register>details .toolbar>label:not(.task-filter-check){display:grid;gap:7px;min-width:0;font-size:.857143rem;line-height:1.4;color:var(--subtle)}
html[data-design=video] #task-register-filters :is(input:not([type=hidden]),select),html[data-design=video] .task-register>details .toolbar :is(input:not([type=checkbox]),select){width:100%;max-width:none;min-width:0;min-height:42px}
html[data-design=video] #task-register-filters>button{justify-self:start;min-width:112px;min-height:42px}
html[data-design=video] .task-register>details.panel-body{margin:16px 20px 0;padding:0;background:var(--secondary);border:1px solid var(--line);border-radius:12px}
html[data-design=video] .task-register>details>summary{padding:14px 16px;cursor:pointer;font-weight:600;line-height:1.5}
html[data-design=video] .task-register>details .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:4px 16px 16px;border:0;align-items:end}
html[data-design=video] .task-register .task-filter-check{min-height:42px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:9px;font-size:.857143rem;line-height:1.4;color:var(--ink)}
html[data-design=video] .task-register .task-filter-check:has(input:checked){border-color:var(--green);background:var(--accent-soft)}
html[data-design=video] .task-register .task-filter-check input{width:16px;height:16px;accent-color:var(--green)}
html[data-design=video] .task-register>details [data-task-extra-apply]{grid-column:1/-1;justify-self:start;min-height:42px}
html[data-design=video] .task-register>.actions.panel-body{padding:16px 20px;align-items:center;gap:12px}
html[data-design=video] .task-register-counts{padding:0 20px 12px;gap:8px}
html[data-design=video] .task-register-counts button{border-radius:20px;min-height:38px;padding:8px 12px}
html[data-design=video] .task-register-summary{padding:0 20px 16px;margin:0;font-size:.8rem;line-height:1.5}
html[data-design=video] .task-register-pages{padding:16px 20px;align-items:center;border-top:1px solid var(--line)}
html[data-design=video] .task-register td{white-space:normal;overflow:visible;overflow-wrap:anywhere;vertical-align:top;min-width:130px;line-height:1.5}
html[data-design=video] .task-register td[data-task-column=name]{min-width:240px;max-width:340px}
html[data-design=video] .task-register td .record-link{display:block;white-space:normal;line-height:1.5}
html[data-design=video] .task-register th button{padding:6px 0;border:0;background:transparent;white-space:normal;text-align:left;color:var(--subtle);line-height:1.4}
html[data-design=video] .task-stage-column>h3{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.95rem;line-height:1.4;margin-bottom:16px}
@container task-workspace (min-width:1000px){html[data-design=video] #task-register-filters,html[data-design=video] .task-register>details .toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container task-workspace (max-width:440px){html[data-design=video] #task-register-filters,html[data-design=video] .task-register>details .toolbar{grid-template-columns:minmax(0,1fr)}html[data-design=video] #task-register-filters>button{justify-self:stretch}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .task-register>details[open]>.toolbar{animation:opora-panel-reveal 160ms ease-out}}

html[data-design=video] #task-register-filters>.task-filter-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
html[data-design=video] #task-register-filters .task-filter-actions>button{min-height:42px;min-width:112px}

html[data-design=video] .task-stage-board{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(270px,320px);align-items:start;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:16px;padding:16px;gap:16px}
html[data-design=video] .task-stage-column{min-height:140px}
html[data-design=video] .task-view-card small.pill{display:inline-flex;width:fit-content;margin:6px 4px 6px 0}
html[data-design=video] .task-view-card [data-task-transition]{margin-top:8px;min-height:36px}

/* Month cells must remain legible, even with full task cards. */
html[data-design=video] .task-month-grid:not(.task-week-grid):not(.task-day-grid){display:grid;grid-template-columns:repeat(7,minmax(160px,1fr));overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;align-items:start;scroll-padding-inline:16px}
html[data-design=video] .task-month-grid:not(.task-week-grid):not(.task-day-grid) .task-calendar-weekday{display:block}
html[data-design=video] .task-month-grid:not(.task-week-grid):not(.task-day-grid) .task-calendar-day{min-width:0}

html[data-design=video] .task-month-grid:not(.task-week-grid):not(.task-day-grid)>:is(.task-calendar-blank,.task-calendar-empty){display:block}
html[data-design=video] :is(.task-stage-board,.task-month-grid):focus-visible{outline:2px solid var(--green);outline-offset:-3px}

/* Month overview keeps details and actions available on demand. */
html[data-design=video] .task-calendar-details{margin-top:8px;border-top:1px solid var(--line);padding-top:6px}
html[data-design=video] .task-calendar-details>summary{cursor:pointer;line-height:1.5;font-size:.8rem;color:var(--subtle);padding:4px 0;overflow-wrap:anywhere}
html[data-design=video] .task-calendar-details[open]>summary{margin-bottom:8px;color:var(--green)}
html[data-design=video] .task-calendar-details>p{margin:8px 0}
html[data-design=video] .task-calendar-details>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:4px}
html[data-design=video] .task-month-grid:not(.task-week-grid):not(.task-day-grid){align-items:stretch}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .task-calendar-details[open]{animation:opora-panel-reveal 160ms ease-out}}

/* Address book: aligned filters and clear person/contact hierarchy. */
html[data-design=video] .address-book-panel{container-type:inline-size;container-name:address-book}
html[data-design=video] [data-book-filter]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px;align-items:end}
html[data-design=video] [data-book-filter]>label:not(.checkbox-line){display:grid;gap:7px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] [data-book-filter] :is(input:not([type=checkbox]),select){width:100%;min-width:0;max-width:none;min-height:42px}
html[data-design=video] [data-book-filter]>.checkbox-line{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;min-height:42px;background:var(--secondary);border:1px solid var(--line);border-radius:9px;line-height:1.4;font-size:.857143rem}
html[data-design=video] [data-book-filter]>.checkbox-line:has(input:checked){background:var(--accent-soft);border-color:var(--green)}
html[data-design=video] [data-book-filter] input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:var(--green)}
html[data-design=video] [data-book-filter]>button{min-height:42px;justify-self:end;min-width:100px}
html[data-design=video] .address-book-panel>p.muted{padding:14px 20px;margin:0;font-size:.857143rem;line-height:1.5}
html[data-design=video] .address-book-panel td{white-space:normal;overflow-wrap:anywhere;overflow:visible;vertical-align:top;line-height:1.6;min-width:140px;padding:18px 20px}
html[data-design=video] .address-book-panel td:first-child{min-width:280px}
html[data-design=video] .address-book-panel td:first-child :is(.primary-record-photo,.primary-photo-placeholder){float:left;width:56px;height:64px;margin:0 14px 4px 0;border-radius:12px;object-fit:cover;font-size:1.3rem}
html[data-design=video] .address-book-panel .record-link{white-space:normal;line-height:1.5;text-align:left;padding-top:6px}
html[data-design=video] .address-book-panel td small{display:block;margin-top:4px;color:var(--subtle)}
html[data-design=video] .address-book-panel>[data-book-more]{margin:16px 20px}
html[data-design=video] [data-book-card] .employee-card-person{display:grid;grid-template-columns:80px minmax(0,1fr);gap:6px 20px;align-items:center;margin-bottom:24px;padding:20px;border-radius:14px;background:var(--secondary)}
html[data-design=video] [data-book-card] .employee-card-person>:is(img,.primary-photo-placeholder){grid-row:1/3;width:80px;height:96px;margin:0;object-fit:cover;border-radius:12px;font-size:1.7rem}
html[data-design=video] [data-book-card] .employee-card-person>h2{grid-column:2;margin:0;align-self:end;line-height:1.4;overflow-wrap:anywhere}
html[data-design=video] [data-book-card] .employee-card-person>p{grid-column:2;margin:0;align-self:start;line-height:1.5;color:var(--subtle);overflow-wrap:anywhere}
html[data-design=video] [data-book-card]>dl{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);margin:0;gap:0}
html[data-design=video] [data-book-card]>dl>dt,html[data-design=video] [data-book-card]>dl>dd{margin:0;padding:14px 12px;border-bottom:1px solid var(--line);line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] [data-book-card]>dl>dt{color:var(--subtle)}
html[data-design=video] [data-book-edit-form]>label:not(.checkbox-line){display:grid;gap:7px;margin-bottom:16px;color:var(--subtle);font-size:.857143rem}
@container address-book (max-width:520px){html[data-design=video] [data-book-filter]{grid-template-columns:minmax(0,1fr)}html[data-design=video] [data-book-filter]>button{justify-self:stretch}}
@media(max-width:500px){html[data-design=video] [data-book-card] .employee-card-person{grid-template-columns:56px minmax(0,1fr);gap:8px 14px;padding:14px}html[data-design=video] [data-book-card] .employee-card-person>:is(img,.primary-photo-placeholder){width:56px;height:72px}html[data-design=video] [data-book-card]>dl{grid-template-columns:minmax(0,1fr)}html[data-design=video] [data-book-card]>dl>dt{border:0;padding-bottom:0}html[data-design=video] [data-book-card]>dl>dd{padding-top:4px}}

html[data-design=video] .address-book-panel td:first-child>.record-link{display:block;margin-left:70px;max-width:calc(100% - 70px);overflow-wrap:anywhere}

/* Shared checkbox and radio labels must not inherit full-width text inputs. */
html[data-design=video] :is(.toolbar,.form-grid,.dialog-body,.panel-body) label.checkbox-line{display:flex;align-items:flex-start;gap:9px;min-width:0;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
html[data-design=video] :is(.toolbar,.form-grid,.dialog-body,.panel-body) label.checkbox-line>input:is([type=checkbox],[type=radio]){flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:3px 0 0;padding:0;accent-color:var(--green)}
html[data-design=video] dialog :is(input,select,textarea,summary,button){scroll-margin-block:100px}
html[data-design=video] dialog :is(fieldset,.form-grid>label){min-width:0}
html[data-design=video] dialog legend{max-width:100%;overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] dialog .form-actions{align-items:center}
html[data-design=video] dialog .form-actions>button{min-height:42px}
html[data-design=video] #client-contact-search{align-items:end;margin-bottom:18px}
html[data-design=video] #client-contact-search>button{justify-self:start;min-height:42px}
html[data-design=video] :is(#client-contact-rows,[data-client-contact-preview]) td{white-space:normal;overflow:visible;overflow-wrap:anywhere;vertical-align:top;min-width:130px;line-height:1.5}
html[data-design=video] :is(#client-contact-rows,[data-client-contact-preview]) td:first-child{min-width:200px}
html[data-design=video] #client-contact-rows>[data-contact-profile-add]{margin-bottom:16px}
html[data-design=video] :is(#client-contact-rows,[data-client-contact-preview]) .table-wrap{margin-bottom:16px}

/* Short contact fields share rows; multiline content keeps the full width. */
html[data-design=video] [data-book-edit-form]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
html[data-design=video] [data-book-edit-form]>label:not(.checkbox-line){margin:0}
html[data-design=video] [data-book-edit-form]>:is(label:has(textarea),.checkbox-line,p,.form-actions){grid-column:1/-1}
html[data-design=video] [data-book-edit-form]>p{margin:0;line-height:1.5}
html[data-design=video] [data-book-edit-form]>.error:empty{display:none}
html[data-design=video] [data-book-edit-form]>.form-actions{margin-top:4px}
@media(max-width:600px){html[data-design=video] [data-book-edit-form]{grid-template-columns:minmax(0,1fr)}}

/* Workload report keeps filters, totals and detailed rows visually separate. */
html[data-design=video] [data-workload-form]{padding:22px;container-type:inline-size;container-name:workload-form}
html[data-design=video] [data-workload-form]>.form-grid{gap:18px 20px;grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-design=video] [data-workload-form] .form-grid :is(input,select){min-height:42px;max-width:100%}
html[data-design=video] [data-workload-form]>.primary{min-height:42px;margin-top:4px}
html[data-design=video] .workload-result{padding:22px}
html[data-design=video] .workload-result>h2{margin:0 0 18px;line-height:1.5}
html[data-design=video] .workload-result>p{line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .workload-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
html[data-design=video] .workload-summary>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--secondary);min-width:0}
html[data-design=video] .workload-summary dt{font-size:.8rem;line-height:1.5;color:var(--subtle);margin-bottom:8px}
html[data-design=video] .workload-summary dd{font-size:1.5rem;line-height:1.3;font-weight:600;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-design=video] .workload-result .table-wrap{border:1px solid var(--line);border-radius:12px;margin-top:16px}
html[data-design=video] .workload-result td{white-space:normal;min-width:130px;overflow:visible;overflow-wrap:anywhere;vertical-align:top;line-height:1.5}
html[data-design=video] .workload-result td:nth-child(n+7):not(:last-child){min-width:80px;text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .workload-result td:last-child{min-width:200px}
html[data-design=video] .workload-result>[data-workload-more]{margin-top:16px}
html[data-design=video] details.workload-result>summary{cursor:pointer;font-weight:600;line-height:1.5}
html[data-design=video] details.workload-result[open]>summary{margin-bottom:16px}
@media(max-width:900px){html[data-design=video] .workload-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container workload-form (max-width:460px){html[data-design=video] [data-workload-form]>.form-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:500px){html[data-design=video] :is([data-workload-form],.workload-result){padding:16px}html[data-design=video] .workload-summary{gap:8px}html[data-design=video] .workload-summary>div{padding:12px}}

/* Operative report: comfortable selection and clearly separated results. */
html[data-design=video] [data-standard-form]{padding:22px;container-type:inline-size;container-name:standard-form}
html[data-design=video] [data-standard-form]>.form-grid{gap:20px;align-items:start}
html[data-design=video] [data-standard-form] fieldset{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--secondary)}
html[data-design=video] [data-standard-form] legend{padding:0 6px;font-weight:600;line-height:1.5}
html[data-design=video] [data-standard-form] fieldset>.checkbox-line{padding:7px 4px;gap:10px;cursor:pointer}
html[data-design=video] [data-standard-form]>.primary{min-height:42px;margin-top:8px}
html[data-design=video] .standard-operative-results>.panel{padding:20px;margin-block:16px}
html[data-design=video] .standard-operative-results h3{margin:0 0 16px;line-height:1.5}
html[data-design=video] .standard-operative-results .panel>p{margin:0;line-height:1.6}
html[data-design=video] .standard-operative-results .table-wrap{border:1px solid var(--line);border-radius:12px}
html[data-design=video] .standard-operative-results td{white-space:normal;overflow-wrap:anywhere;min-width:140px;vertical-align:top;line-height:1.5}
html[data-design=video] .standard-operative-results>p{line-height:1.6;overflow-wrap:anywhere}
@container standard-form (max-width:480px){html[data-design=video] [data-standard-form]>.form-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:500px){html[data-design=video] [data-standard-form],html[data-design=video] .standard-operative-results>.panel{padding:16px}}

html[data-design=video] [data-standard-form] fieldset{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 16px}
@container standard-form (max-width:480px){html[data-design=video] [data-standard-form] fieldset{grid-template-columns:minmax(0,1fr)}}

/* Scheduling forms: consistent spacing and responsive controls. */
html[data-design=video] .panel:has(>[data-reminder-filter]){padding-bottom:20px;container-type:inline-size;container-name:reminder-list}
html[data-design=video] [data-reminder-filter]{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1.5fr) auto auto;gap:16px;align-items:end;padding:20px}
html[data-design=video] [data-reminder-filter]>label:not(.checkbox-line){display:grid;gap:7px;min-width:0}
html[data-design=video] [data-reminder-filter]>.checkbox-line{align-items:center;min-height:42px}
html[data-design=video] [data-reminder-filter] :is(input:not([type=checkbox]),select,button){min-height:42px}
html[data-design=video] .panel:has(>[data-reminder-filter])>p{padding:0 20px;line-height:1.6}
html[data-design=video] .panel:has(>[data-reminder-filter])>details{margin:16px 20px 0;line-height:1.6;color:var(--subtle)}
html[data-design=video] .panel:has(>[data-reminder-filter])>details>summary{cursor:pointer}
html[data-design=video] .panel:has(>[data-reminder-filter]) td{white-space:normal;overflow-wrap:anywhere;min-width:140px;vertical-align:top;line-height:1.5}
html[data-design=video] .panel:has(>[data-reminder-filter]) td:first-child{min-width:220px}
html[data-design=video] [data-mailing-settings]>fieldset{border:0;padding:0;margin:0;min-width:0}
html[data-design=video] [data-mailing-kind]{padding:22px;margin-bottom:20px}
html[data-design=video] [data-mailing-kind]>h2{margin:0 0 20px}
html[data-design=video] [data-mailing-kind] .form-grid{gap:20px;align-items:start}
html[data-design=video] [data-mailing-kind] fieldset{min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;display:flex;gap:8px;flex-wrap:wrap}
html[data-design=video] [data-mailing-kind] legend{padding:0 5px;line-height:1.5}
html[data-design=video] [data-mailing-kind] fieldset>.checkbox-line{padding:7px 5px;align-items:center}
html[data-design=video] [data-mailing-kind] select[multiple]{min-height:140px;max-width:100%;padding:8px}
html[data-design=video] [data-mailing-kind] select[multiple]>option{padding:7px 8px;white-space:normal}
html[data-design=video] [data-mailing-kind]>p{line-height:1.6}
@container reminder-list (max-width:650px){html[data-design=video] [data-reminder-filter]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container reminder-list (max-width:400px){html[data-design=video] [data-reminder-filter]{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){html[data-design=video] [data-mailing-kind]{padding:16px}html[data-design=video] [data-mailing-kind] .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Deadline overview keeps the working list close to its filters. */
html[data-design=video] .deadline-stats{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}
html[data-design=video] .deadline-stats>.stat{padding:16px;min-height:110px}
html[data-design=video] .deadline-stats .label{min-height:3em;line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] .deadline-stats strong{font-size:1.75rem;line-height:1.3;margin-top:8px;font-variant-numeric:tabular-nums}
html[data-design=video] .deadline-panel{container-type:inline-size;container-name:deadline-panel}
html[data-design=video] .deadline-panel>.toolbar{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(160px,1fr) minmax(130px,.7fr);gap:16px;padding:20px;align-items:end}
html[data-design=video] .deadline-panel>.toolbar>label{display:grid;gap:7px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .deadline-panel>.toolbar input,html[data-design=video] .deadline-panel>.toolbar select{width:100%;min-width:0;min-height:42px}
html[data-design=video] .deadline-panel>.toolbar>.muted{grid-column:1/-1;line-height:1.5}
html[data-design=video] #deadline-results table{min-width:1000px;table-layout:auto}
html[data-design=video] #deadline-results td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:110px}
html[data-design=video] #deadline-results td:nth-child(1){min-width:180px}
html[data-design=video] #deadline-results td:nth-child(2){min-width:220px}
html[data-design=video] #deadline-results td:last-child{min-width:180px}
html[data-design=video] #deadline-results .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] #deadline-results .record-subtitle{display:block;margin-top:6px;line-height:1.5}
html[data-design=video] #deadline-results .pill{white-space:normal;line-height:1.4}
html[data-design=video] .deadline-explanation{margin-top:20px;color:var(--subtle);line-height:1.65}
html[data-design=video] .deadline-explanation>summary{cursor:pointer}
@container deadline-panel (max-width:600px){html[data-design=video] .deadline-panel>.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-design=video] .deadline-panel>.toolbar>label:first-child{grid-column:1/-1}}
@container deadline-panel (max-width:380px){html[data-design=video] .deadline-panel>.toolbar{grid-template-columns:minmax(0,1fr);padding:16px}}

/* One folder motion for mouse and keyboard, with no competing transforms. */
@media(prefers-reduced-motion:no-preference){

 html[data-design=video]:not([data-motion=reduce]) :is(.deadline-explanation,.panel:has(>[data-reminder-filter])>details)[open]>p{animation:opora-panel-reveal 160ms ease-out}
}
html[data-design=video] .table-wrap[tabindex]:focus-visible{outline:2px solid var(--green);outline-offset:-2px}

html[data-design=video] #business-deadline-rows table{min-width:1100px;table-layout:auto}
html[data-design=video] #business-deadline-rows td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:140px}
html[data-design=video] #business-deadline-rows td:nth-child(-n+2){min-width:230px}
html[data-design=video] #business-deadline-rows .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] #business-deadline-rows .pill{white-space:normal;line-height:1.4}
html[data-design=video] #business-deadline-rows td button:not(.record-link){margin-top:8px}
html[data-design=video] .deadline-panel>.deadline-explanation{padding:0 20px 20px}

html[data-design=video] .deadline-panel>.toolbar :is(input,select){max-width:none}

/* Document templates: clear field groups and a quiet, readable register. */
html[data-design=video] .generated-documents-panel>.toolbar{display:flex;align-items:end;gap:12px;padding:20px;flex-wrap:wrap}
html[data-design=video] .generated-documents-panel>.toolbar>label{display:grid;gap:7px;flex:1 1 240px;max-width:480px;min-width:0}
html[data-design=video] .generated-documents-panel>.toolbar select{width:100%;max-width:none;min-height:42px}
html[data-design=video] .generated-documents-help{margin:0 0 20px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;line-height:1.65;color:var(--subtle)}
html[data-design=video] .generated-documents-help>summary{cursor:pointer;color:var(--ink)}
html[data-design=video] .generated-documents-help>p{margin:12px 0 0}
html[data-design=video] :is(#document-template-form,#document-build-form){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
html[data-design=video] :is(#document-template-form,#document-build-form) label{display:grid;gap:7px;min-width:0;line-height:1.5}
html[data-design=video] :is(#document-template-form,#document-build-form) :is(input,select,textarea){width:100%;min-width:0;max-width:none}
html[data-design=video] #document-template-form>.toolbar{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:0 0 16px}
html[data-design=video] #document-template-form>label:has(textarea),html[data-design=video] #document-template-form>p,html[data-design=video] #document-manual-fields{grid-column:1/-1}
html[data-design=video] #document-manual-fields{display:grid;gap:16px}
html[data-design=video] #document-manual-fields:empty{display:none}
html[data-design=video] :is(#document-template-form,#document-build-form)>button{grid-column:1/-1;justify-self:start}
html[data-design=video] #document-template-form textarea[name=body]{min-height:240px;line-height:1.65;resize:vertical}
html[data-design=video] #document-build-preview:not(:empty){margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
html[data-design=video] #document-build-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
html[data-design=video] #generated-document-rows table{min-width:820px}
html[data-design=video] #generated-document-rows td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}
html[data-design=video] #generated-document-rows .record-link{white-space:normal;text-align:left}
@media(max-width:600px){html[data-design=video] :is(#document-template-form,#document-build-form){grid-template-columns:minmax(0,1fr)}html[data-design=video] #document-template-form>.toolbar{grid-template-columns:minmax(0,1fr)}html[data-design=video] #document-template-form>.toolbar>button{justify-self:start}}

/* Report builder uses the same labelled controls and spacing as document forms. */
html[data-design=video] .report-presets-panel>.toolbar{display:flex;gap:12px;align-items:end;padding:20px;flex-wrap:wrap}
html[data-design=video] .report-presets-panel>.toolbar>label{display:grid;gap:7px;min-width:220px}
html[data-design=video] #report-editor-form{display:grid;gap:18px}
html[data-design=video] #report-editor-form h3{margin:10px 0 0;font-size:1rem}
html[data-design=video] #report-editor-form label:not(:has(input[type=checkbox])){display:grid;gap:7px;min-width:0;line-height:1.5}
html[data-design=video] #report-editor-form :is(input:not([type=checkbox]),select){width:100%;max-width:none;min-width:0;min-height:42px}
html[data-design=video] #report-editor-form .toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:0;border:0}
html[data-design=video] #report-editor-form .toolbar>select{flex:1 1 240px;width:auto}
html[data-design=video] #report-columns{display:grid;gap:8px}
html[data-design=video] #report-columns>.list-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid var(--line);border-radius:12px}
html[data-design=video] #report-columns>.list-item>span:first-child{min-width:0;overflow-wrap:anywhere}
html[data-design=video] #report-columns>.list-item>span:last-child{display:flex;gap:6px;flex-shrink:0}
html[data-design=video] #report-conditions{display:grid;gap:12px}
html[data-design=video] #report-conditions:empty{display:none}
html[data-design=video] [data-report-condition]{border:1px solid var(--line);border-radius:14px;padding:16px}
html[data-design=video] [data-report-condition]>.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}
html[data-design=video] [data-report-condition] button{justify-self:start}
html[data-design=video] #report-editor-form>.form-grid{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
html[data-design=video] #report-condition-add{justify-self:start}
html[data-design=video] #report-editor-form p{margin:0;line-height:1.65}
html[data-design=video] #report-editor-form>.form-actions{padding-top:16px;border-top:1px solid var(--line);gap:12px;flex-wrap:wrap}
html[data-design=video] #report-preview-result:not(:empty){margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
html[data-design=video] :is(#report-preview-result,.report-run-result,#report-preset-rows) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:120px}
html[data-design=video] :is(#report-preview-result,.report-run-result) .table-wrap{margin:18px 0}
@media(max-width:600px){html[data-design=video] #report-editor-form>.form-grid,html[data-design=video] [data-report-condition]>.toolbar{grid-template-columns:minmax(0,1fr)}html[data-design=video] #report-columns>.list-item{flex-wrap:wrap}}

/* Notifications: labelled filters and readable event summaries. */
html[data-design=video] .notification-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin:0 0 20px;color:var(--subtle)}
html[data-design=video] .notification-summary strong{font-size:1.5rem;color:var(--ink);margin-right:6px;font-variant-numeric:tabular-nums}
html[data-design=video] .notification-panel{container:notifications / inline-size}
html[data-design=video] .notification-panel>.toolbar{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr)) minmax(180px,1.5fr);gap:14px;padding:20px;align-items:end}
html[data-design=video] .notification-panel>.toolbar>label{display:grid;gap:7px;min-width:0;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .notification-panel>.toolbar :is(input,select){width:100%;max-width:none;min-width:0;min-height:42px}
html[data-design=video] .notification-item{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:20px}
html[data-design=video] .notification-record{min-width:0;gap:14px}
html[data-design=video] .notification-record>div{min-width:0}
html[data-design=video] .notification-record small{display:block;font-size:.857143rem;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
html[data-design=video] .notification-record .record-link{display:block;font-size:1rem;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere}
html[data-design=video] .notification-type-label{font-size:.785714rem;line-height:1.5;margin-bottom:5px}
html[data-design=video] .notification-item>[data-read-notification]{flex-shrink:0;min-height:40px}
html[data-design=video] .notification-help{margin-top:20px;color:var(--subtle);line-height:1.65}
html[data-design=video] .notification-help>summary{cursor:pointer}
@container notifications (max-width:800px){html[data-design=video] .notification-panel>.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container notifications (max-width:480px){html[data-design=video] .notification-panel>.toolbar{grid-template-columns:minmax(0,1fr);padding:16px}html[data-design=video] .notification-item{flex-wrap:wrap;padding:16px}html[data-design=video] .notification-item>[data-read-notification]{margin-left:46px}}

/* Shared agenda layout for CRM contacts and legal actions. */
html[data-design=video] .agenda-panel{container:agenda / inline-size}
html[data-design=video] .agenda-panel>.toolbar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(240px,2fr) auto;align-items:end;gap:16px;padding:20px}
html[data-design=video] .agenda-panel>.toolbar>label{display:grid;gap:7px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .agenda-panel>.toolbar :is(input,select){min-width:0;max-width:none;width:100%;min-height:42px}
html[data-design=video] .agenda-panel>.toolbar>button{min-height:42px}
html[data-design=video] .agenda-panel table{min-width:920px;table-layout:auto}
html[data-design=video] .agenda-panel td{white-space:normal;overflow-wrap:anywhere;line-height:1.6;vertical-align:top;min-width:110px}
html[data-design=video] .agenda-panel td:nth-child(-n+2){min-width:200px}
html[data-design=video] .agenda-panel .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] .agenda-panel small{display:block;margin-top:6px;font-size:.857143rem}
html[data-design=video] .agenda-panel .pill{white-space:normal}
@container agenda (max-width:650px){html[data-design=video] .agenda-panel>.toolbar{grid-template-columns:minmax(0,1fr) auto}html[data-design=video] .agenda-panel>.toolbar>label:nth-child(2){grid-column:1/-1;grid-row:2}}
@container agenda (max-width:380px){html[data-design=video] .agenda-panel>.toolbar{grid-template-columns:minmax(0,1fr);padding:16px}html[data-design=video] .agenda-panel>.toolbar>label:nth-child(2){grid-row:auto}html[data-design=video] .agenda-panel>.toolbar>button{justify-self:start}}

/* Company settings: compact options, consistent field rhythm and explicit selection. */
html[data-design=video] .company-settings-panel{container:company-settings / inline-size}
html[data-design=video] .company-settings-panel>.panel-head{padding:20px 22px}
html[data-design=video] .company-settings-panel>.panel-head h2{font-size:1.071429rem;margin:0}
html[data-design=video] .company-settings-panel>:is(.panel-body,.dialog-body){padding:22px}
html[data-design=video] #company-form>.form-grid{gap:20px}
html[data-design=video] #company-form label,html[data-design=video] #company-navigation-form>label{display:grid;gap:8px;min-width:0;line-height:1.5}
html[data-design=video] #company-form>.muted{margin:16px 0;line-height:1.65}
html[data-design=video] .company-settings-panel .form-actions{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);gap:10px;flex-wrap:wrap}
html[data-design=video] .company-settings-panel .employee-indicator-options{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
html[data-design=video] .company-settings-panel .employee-indicator-option{grid-template-columns:minmax(0,1fr) auto 44px;gap:12px;min-width:0;padding:14px 0;align-items:center}
html[data-design=video] .company-settings-panel .employee-indicator-option>label:first-child{line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] .company-settings-panel .indicator-color-control>span{display:none}
html[data-design=video] .company-settings-panel .indicator-color-control input{width:40px;height:36px}
html[data-design=video] .company-settings-panel .indicator-setting-example{max-width:44px}
html[data-design=video] .company-settings-panel .navigation-options{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
html[data-design=video] .company-settings-panel .navigation-options label{min-width:0;line-height:1.5;border-radius:12px;padding:14px;cursor:pointer}
html[data-design=video] .company-settings-panel .navigation-options label:has(input:checked){background:var(--accent-soft);border-color:var(--green)}
html[data-design=video] .company-settings-panel .navigation-options label:focus-within{outline:2px solid var(--green);outline-offset:2px}
html[data-design=video] .company-settings-panel .customer-profile-presets{margin-top:12px}
@container company-settings (max-width:850px){html[data-design=video] .company-settings-panel .employee-indicator-options{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){html[data-design=video] .company-settings-panel .employee-indicator-option>label:first-child{grid-column:auto}html[data-design=video] .company-settings-panel>:is(.panel-body,.dialog-body){padding:16px}html[data-design=video] #company-form>.form-grid{grid-template-columns:minmax(0,1fr)}}

/* Administrative lists keep filters, records and actions in distinct rows. */
html[data-design=video] .admin-register-panel{container:admin-register / inline-size}
html[data-design=video] #audit-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px;align-items:end}
html[data-design=video] #audit-filters>label,html[data-design=video] .access-request-panel>.toolbar>label{display:grid;gap:7px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] #audit-filters :is(input,select){width:100%;min-width:0;max-width:none;min-height:42px}
html[data-design=video] #audit-filters>button{justify-self:start;min-height:42px}
html[data-design=video] #audit-rows table{min-width:1000px;table-layout:auto}
html[data-design=video] #audit-rows td{white-space:normal;overflow-wrap:anywhere;line-height:1.6;vertical-align:top}
html[data-design=video] #audit-rows td:nth-child(2){min-width:150px}
html[data-design=video] #audit-rows td:nth-child(3){min-width:180px}
html[data-design=video] #audit-rows td:nth-child(4){min-width:180px}
html[data-design=video] #audit-rows td:nth-child(5){min-width:220px}
html[data-design=video] #audit-rows td:last-child{min-width:170px}
html[data-design=video] #audit-rows .record-link{white-space:normal;line-height:1.5;text-align:left}
html[data-design=video] #audit-rows .record-subtitle{display:block;margin-top:5px}
html[data-design=video] .access-request-panel>.toolbar{display:flex;gap:12px;align-items:end;padding:20px;flex-wrap:wrap}
html[data-design=video] .access-request-panel>.toolbar select{min-width:200px;min-height:42px}
html[data-design=video] .access-request-panel>.panel-body{padding:0 20px 20px}
html[data-design=video] .access-request-item{padding:22px 0;line-height:1.6}
html[data-design=video] .access-request-item h2{margin:0 0 10px;line-height:1.4}
html[data-design=video] .access-request-item .inquiry-text{white-space:pre-wrap;margin:12px 0;max-width:85ch}
html[data-design=video] .access-request-item .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
html[data-design=video] .access-request-panel>.panel-body>.actions{margin-top:18px}
@container admin-register (max-width:750px){html[data-design=video] #audit-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container admin-register (max-width:430px){html[data-design=video] #audit-filters{grid-template-columns:minmax(0,1fr);padding:16px}}

/* Identity cards and backup settings share a clear vertical rhythm. */
html[data-design=video] .identity-settings-grid{align-items:stretch}
html[data-design=video] .identity-settings-grid>.panel>.panel-body{height:100%;display:flex;flex-direction:column;padding:22px}
html[data-design=video] .identity-settings-grid h2{margin:0 0 18px}
html[data-design=video] .identity-settings-grid .identity-preview{margin:0 0 22px;background:var(--accent-soft);border-color:var(--line)}
html[data-design=video] .identity-settings-grid form{display:flex;flex:1;flex-direction:column;gap:12px;min-width:0}
html[data-design=video] .identity-settings-grid form>label{display:grid;gap:8px;min-width:0}
html[data-design=video] .identity-settings-grid form>p{margin:0;line-height:1.6}
html[data-design=video] .identity-settings-grid form>.error:empty{display:none}
html[data-design=video] .identity-settings-grid .actions{margin-top:auto;padding-top:8px;display:flex;flex-wrap:wrap;gap:10px}
html[data-design=video] #backup-schedule{padding:22px;line-height:1.65}
html[data-design=video] #backup-schedule>h2{margin:0 0 20px}
html[data-design=video] #backup-schedule-form .form-grid{gap:20px}
html[data-design=video] #backup-schedule-form label{display:grid;gap:8px}
html[data-design=video] #backup-schedule-form>p{margin:16px 0}
html[data-design=video] #backup-schedule-form .form-actions{padding:18px 0;margin-top:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-design=video] #backup-schedule details{margin:16px 0;color:var(--subtle)}
html[data-design=video] #backup-schedule summary{cursor:pointer;color:var(--ink)}
html[data-design=video] #backup-schedule h3{margin:24px 0 12px}
html[data-design=video] #backup-schedule .table-wrap{margin-top:14px}
@media(max-width:600px){html[data-design=video] #backup-schedule-form .form-grid{grid-template-columns:minmax(0,1fr)}html[data-design=video] .identity-settings-grid>.panel>.panel-body,html[data-design=video] #backup-schedule{padding:16px}}

/* Participant selection: labelled controls and readable search results. */
html[data-design=video] .participant-defaults-panel>.toolbar{padding:20px 22px}
html[data-design=video] .participant-defaults-panel>.toolbar>label{display:grid;gap:8px;min-width:0;width:min(360px,100%);color:var(--subtle)}
html[data-design=video] .participant-defaults-panel>.toolbar select{width:100%;max-width:none}
html[data-design=video] .participant-defaults-panel>.panel-body{padding:22px}
html[data-design=video] #participant-defaults-form>.participant-fields{margin-top:0}
html[data-design=video] .participant-roles>label{display:grid;gap:8px;line-height:1.5}
html[data-design=video] .participant-fields>p{margin:4px 0 18px}
html[data-design=video] .participant-options{scrollbar-gutter:stable;padding:4px}
html[data-design=video] .participant-options label{padding:8px;margin:2px 0;border-radius:8px;line-height:1.5}
html[data-design=video] .participant-options label:has(input:checked){background:var(--accent-soft)}
html[data-design=video] .participant-options label:focus-within{outline:2px solid var(--green);outline-offset:-2px}
html[data-design=video] .participant-options input{margin-top:2px;flex-shrink:0}
html[data-design=video] .participant-search-empty{margin:12px 4px;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .participant-search-empty[hidden]{display:none}
html[data-design=video] #participant-defaults-form>.muted{line-height:1.65;margin:18px 0}
html[data-design=video] #participant-defaults-form>.form-actions{padding-top:18px;border-top:1px solid var(--line);gap:10px;flex-wrap:wrap}
@media(max-width:600px){html[data-design=video] .participant-defaults-panel>:is(.toolbar,.panel-body){padding:16px}}

/* HR report: scan summary first, retain employee names while scrolling. */
html[data-design=video] .standard-hr-results{container:hr-report / inline-size}
html[data-design=video] .hr-report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:22px;border-bottom:1px solid var(--line)}
html[data-design=video] .hr-report-stats>div{min-width:0}
html[data-design=video] .hr-report-stats dt{font-size:.857143rem;color:var(--subtle);line-height:1.5}
html[data-design=video] .hr-report-stats dd{margin:8px 0 0;font-size:1.714286rem;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}
html[data-design=video] .standard-hr-results .table-wrap{isolation:isolate;scroll-padding-inline:200px 20px}
html[data-design=video] .standard-hr-results table{table-layout:auto}
html[data-design=video] .standard-hr-results :is(th,td){white-space:normal;overflow-wrap:anywhere;min-width:140px;line-height:1.6;vertical-align:top}
html[data-design=video] .standard-hr-results :is(th,td):first-child{position:sticky;left:0;min-width:200px;max-width:240px;background:var(--surface);z-index:1;border-right:1px solid var(--line)}
html[data-design=video] .standard-hr-results th:first-child{z-index:2}
html[data-design=video] .standard-hr-results>[data-standard-more]{margin:18px 22px}
@container hr-report (max-width:600px){html[data-design=video] .hr-report-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}html[data-design=video] .standard-hr-results :is(th,td):first-child{position:static;min-width:160px}}

/* Attendance report filters follow the same labelled grid as other reports. */
html[data-design=video] .attendance-report-panel{container:attendance-report / inline-size}
html[data-design=video] #attendance-report-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px;align-items:end}
html[data-design=video] #attendance-report-filters>label{display:grid;gap:8px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] #attendance-report-filters :is(input,select){width:100%;min-width:0;max-width:none;min-height:42px}
html[data-design=video] #attendance-report-filters>button{justify-self:start;min-height:42px}
html[data-design=video] .attendance-explanation{margin:20px 0;line-height:1.65;color:var(--subtle)}
html[data-design=video] .attendance-explanation>summary{cursor:pointer;color:var(--ink)}
html[data-design=video] .attendance-report-stats .stat{min-width:0}
html[data-design=video] .attendance-report-stats strong{font-size:clamp(1.2rem,2vw,1.8rem);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-design=video] #attendance-report-rows table{min-width:1400px;table-layout:auto}
html[data-design=video] #attendance-report-rows td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.65;min-width:180px}
html[data-design=video] #attendance-report-rows td:first-child{min-width:220px}
html[data-design=video] #attendance-report-rows .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] #attendance-report-rows .record-subtitle{display:block;margin-top:6px}
html[data-design=video] .attendance-report-panel>.panel-body{padding:20px 22px;line-height:1.65}
@container attendance-report (max-width:760px){html[data-design=video] #attendance-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container attendance-report (max-width:460px){html[data-design=video] #attendance-report-filters{grid-template-columns:minmax(0,1fr);padding:16px}}

/* Personnel register: consistent filter labels and readable employment rows. */
html[data-design=video] .personnel-panel{container:personnel / inline-size}
html[data-design=video] .personnel-panel>.toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:22px;align-items:end}
html[data-design=video] .personnel-panel>.toolbar>label{display:grid;gap:8px;min-width:0;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .personnel-panel>.toolbar :is(input,select){min-width:0;width:100%;max-width:none;min-height:42px}
html[data-design=video] #personnel-rows table{min-width:1150px;table-layout:auto}
html[data-design=video] #personnel-rows td{min-width:120px;white-space:normal;overflow-wrap:anywhere;line-height:1.6;vertical-align:top}
html[data-design=video] #personnel-rows td:first-child{min-width:200px}
html[data-design=video] #personnel-rows td:nth-child(5){min-width:180px}
html[data-design=video] #personnel-rows .record-link{white-space:normal;line-height:1.5;text-align:left}
html[data-design=video] #personnel-rows .record-subtitle{display:block;margin-top:6px}
html[data-design=video] #personnel-rows .pill{white-space:normal}
@container personnel (max-width:850px){html[data-design=video] .personnel-panel>.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container personnel (max-width:440px){html[data-design=video] .personnel-panel>.toolbar{grid-template-columns:minmax(0,1fr);padding:16px}}

/* Production calendar controls keep clear labels and visible keyboard feedback. */
html[data-design=video] .production-calendar-panel>.toolbar{padding:20px 22px;gap:16px;align-items:end;flex-wrap:wrap}
html[data-design=video] #production-period{display:flex;gap:14px;align-items:end;flex-wrap:wrap}
html[data-design=video] #production-period>label{display:grid;gap:8px;min-width:140px;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .production-calendar-panel>.panel-body{padding:22px;line-height:1.65}
html[data-design=video] #production-import{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:20px 0}
html[data-design=video] #production-import>label{display:grid;gap:8px;min-width:0;flex:1 1 260px}
html[data-design=video] .production-day:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
html[data-design=video] #production-day-form{display:grid;gap:18px;margin-top:20px}
html[data-design=video] #production-day-form>label{display:grid;gap:8px;min-width:0}
html[data-design=video] #production-day-form>.actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line)}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .production-day{transition:background-color 140ms ease,border-color 140ms ease,box-shadow 140ms ease}}
@media(max-width:520px){html[data-design=video] .production-calendar-panel>:is(.toolbar,.panel-body){padding:16px}html[data-design=video] #production-period>label{flex:1 1 130px}}

/* Day categories use surface colours, never a text token as a fill. */
html[data-design=video] :is(.production-day,.production-key).weekend{background:var(--secondary);color:var(--ink);border-color:var(--line)}
html[data-design=video] :is(.production-day,.production-key).holiday{background:var(--accent-soft);color:var(--ink);border-color:var(--green)}
html[data-design=video] :is(.production-day,.production-key).shortened{background:var(--surface);color:var(--ink);border-color:var(--green);border-top-width:3px}
html[data-design=video] .production-day small{font-size:.785714rem;line-height:1.45}

/* Participant media uses surfaces; status text must not share its fill colour. */
html[data-design=video] .chat-call-person{background:var(--secondary);color:var(--ink);border-color:var(--line);border-radius:14px}
html[data-design=video] .chat-call-label{background:var(--surface);color:var(--ink);padding:10px 12px;line-height:1.5}
html[data-design=video] .chat-call-peer-state{background:var(--surface);color:var(--subtle);padding:0 12px 10px;line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] .chat-call-peer-state:empty{display:none}
html[data-design=video] .chat-call-person.hand-raised{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}

/* Service and employee account registers use the shared report spacing. */
html[data-design=video] :is(.service-schedule-panel,.employee-accounts-panel)>.toolbar{padding:20px 22px;gap:16px;align-items:center;flex-wrap:wrap}
html[data-design=video] .service-schedule-panel>.toolbar{align-items:end}
html[data-design=video] .service-schedule-panel>.toolbar>label{display:grid;gap:8px;min-width:0;width:min(420px,100%);color:var(--subtle);font-size:.857143rem}
html[data-design=video] .service-schedule-panel>.toolbar select{min-width:0;max-width:none;width:100%;min-height:42px}
html[data-design=video] :is(.service-schedule-panel,.employee-accounts-panel) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}
html[data-design=video] .service-schedule-panel table{min-width:1000px;table-layout:auto}
html[data-design=video] .service-schedule-panel td{min-width:120px}
html[data-design=video] .service-schedule-panel td:is(:first-child,:nth-child(5)){min-width:220px}
html[data-design=video] .service-schedule-panel .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] :is(.service-schedule-panel,.employee-accounts-panel) :is(small,.record-subtitle){display:block;margin-top:6px;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .employee-accounts-panel table{min-width:700px}
html[data-design=video] .employee-accounts-panel td:nth-child(-n+2){min-width:200px}
html[data-design=video] .employee-accounts-panel :is(th,td):nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .employee-accounts-panel [data-account-person]{white-space:nowrap;font-size:1rem}
html[data-design=video] .employee-accounts-panel>.panel-body.actions{display:flex;gap:10px;flex-wrap:wrap;padding:18px 22px;border-top:1px solid var(--line)}
@media(max-width:520px){html[data-design=video] :is(.service-schedule-panel,.employee-accounts-panel)>.toolbar{padding:16px}}

/* Payment comparisons keep amounts aligned and descriptions readable. */
html[data-design=video] .payment-register-panel table{min-width:1400px;table-layout:auto}
html[data-design=video] .payment-register-panel :is(th,td){vertical-align:top;line-height:1.6}
html[data-design=video] .payment-register-panel td{white-space:normal;overflow-wrap:anywhere;min-width:120px}
html[data-design=video] .payment-register-panel td:is(:first-child,:nth-child(4)){min-width:220px}
html[data-design=video] .payment-register-panel td:nth-child(5){min-width:190px}
html[data-design=video] .payment-register-panel :is(th,td):is(:nth-child(6),:nth-child(7),:nth-child(8)){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-design=video] .payment-register-panel .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] .payment-register-panel .payment-date{display:block;margin-bottom:8px}
html[data-design=video] .payment-register-panel .payment-date small{display:block;color:var(--subtle);font-size:.785714rem}
html[data-design=video] :is(#payment-form,#financial-stage-form,#reverse-payment-form)>label,html[data-design=video] #payment-form .form-grid>label{display:grid;gap:8px;min-width:0}
html[data-design=video] #payment-form .form-grid{gap:18px}
html[data-design=video] :is(#payment-form,#financial-stage-form,#reverse-payment-form)>.form-actions{gap:10px;flex-wrap:wrap;margin-top:20px}

/* Payment detail: comparable balances and a readable activity rhythm. */
html[data-design=video] .payment-ledger-detail{container:payment-detail / inline-size}
html[data-design=video] .payment-ledger-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 24px}
html[data-design=video] .payment-ledger-totals>div{background:var(--secondary);border:1px solid var(--line);border-radius:14px;padding:16px;min-width:0}
html[data-design=video] .payment-ledger-totals dt{font-size:.857143rem;color:var(--subtle);margin-bottom:8px}
html[data-design=video] .payment-ledger-totals dd{margin:0;font-size:1.428571rem;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-design=video] .payment-ledger-detail>.form-actions{gap:10px;flex-wrap:wrap;margin:24px 0}
html[data-design=video] .payment-ledger-detail>.history{padding:16px 0;border-top:1px solid var(--line);line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .payment-ledger-detail>.history small,html[data-design=video] .payment-ledger-detail>.list-item small{display:block;color:var(--subtle);margin-top:6px;line-height:1.5}
html[data-design=video] .payment-ledger-detail>.list-item{gap:16px;align-items:start;flex-wrap:wrap;padding:16px 0}
html[data-design=video] .payment-ledger-detail>.list-item>div{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
@container payment-detail (max-width:480px){html[data-design=video] .payment-ledger-totals{grid-template-columns:minmax(0,1fr);gap:8px}html[data-design=video] .payment-ledger-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px}html[data-design=video] .payment-ledger-totals dt{margin:0}html[data-design=video] .payment-ledger-totals dd{font-size:1.142857rem;text-align:right}}

/* The searchable reference list is a positioned popup: fade without moving its anchor. */
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) .reference-popup:not([hidden]){animation:reference-popup-fade 120ms ease-out both}
 html[data-design=video]:not([data-motion=reduce]) dialog[open]::backdrop{animation:reference-popup-fade 140ms ease-out both}
}
@keyframes reference-popup-fade{from{opacity:0}to{opacity:1}}
html[data-motion=reduce] dialog::backdrop{animation:none!important}
@media(prefers-reduced-motion:reduce){dialog::backdrop{animation:none!important}}

/* Personal daily plan shares the spacing and readable tables of the report screens. */
html[data-design=video] .my-day-panel{container:my-day / inline-size}
html[data-design=video] .my-day-panel>.toolbar{padding:20px 22px;gap:12px;align-items:end;flex-wrap:wrap}
html[data-design=video] .my-day-panel>.toolbar>label{display:grid;gap:8px;color:var(--subtle);font-size:.857143rem;min-width:0}
html[data-design=video] .my-day-panel>.toolbar input{min-height:42px;width:200px;max-width:100%}
html[data-design=video] #my-day-results>.stats{padding:22px;gap:16px;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-design=video] #my-day-results .stat{border:0;box-shadow:none;background:var(--secondary);min-width:0;padding:18px}
html[data-design=video] #my-day-results .stat strong{font-size:clamp(1.7rem,3vw,2.3rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-design=video] #my-day-results table{min-width:850px;table-layout:auto}
html[data-design=video] #my-day-results td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:130px}
html[data-design=video] #my-day-results td:first-child{min-width:250px}
html[data-design=video] #my-day-results .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] #my-day-results td small{display:block;color:var(--subtle);font-size:.857143rem;margin-top:6px}
html[data-design=video] .my-day-explanation{margin:0 22px 22px;padding-top:16px;border-top:1px solid var(--line);color:var(--subtle);line-height:1.6;font-size:.857143rem}
html[data-design=video] .my-day-explanation>summary{cursor:pointer;color:var(--ink);width:fit-content;padding:4px 0}
html[data-design=video] .my-day-explanation>p{max-width:85ch;margin:12px 0 0}
@container my-day (max-width:700px){html[data-design=video] #my-day-results>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container my-day (max-width:400px){html[data-design=video] .my-day-panel>.toolbar{padding:16px}html[data-design=video] .my-day-panel>.toolbar>label{width:100%}html[data-design=video] .my-day-panel>.toolbar input{width:100%}html[data-design=video] #my-day-results>.stats{padding:16px;gap:10px}html[data-design=video] .my-day-explanation{margin:0 16px 16px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .my-day-explanation[open]>p{animation:opora-panel-reveal 160ms ease-out}}

/* Theme only the inline chart presentation; exported SVG keeps its own colours. */
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg{display:block;max-width:100%;height:auto;border-radius:12px}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg>rect[fill="#FFFFFF"]{fill:var(--surface)}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg>g[fill="#182B28"]{fill:var(--ink)}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg>g{font-family:inherit}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg line[stroke="#D6DEDB"]{stroke:var(--line)}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg line[stroke="#7A8C86"]{stroke:var(--subtle)}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg path[stroke="#FFFFFF"]{stroke:var(--surface)}
html[data-design=video] .table-chart-card>.actions{gap:12px;align-items:start;flex-wrap:wrap}
html[data-design=video] .table-chart-card>.actions>strong{flex:1 1 180px;min-width:0;overflow-wrap:anywhere;line-height:1.5}

/* Keep plotted values distinct from the dark surface and labels readable. */
html[data-design=video] :is(.table-chart-card,.table-chart-preview){overflow-x:auto;overscroll-behavior-inline:contain}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg{min-width:640px}
html[data-design=video][data-theme=dark] :is(.table-chart-card,.table-chart-preview)>svg>g>:is(rect,circle,path){filter:brightness(1.6)}

html[data-design=video] .table-chart-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,680px),1fr));gap:20px}
html[data-design=video] :is(.table-chart-card,.table-chart-preview)>svg{max-height:none;width:min(100%,800px);margin-inline:auto}

/* Fleet filters and journals share a stable, labelled form grid. */
html[data-design=video] .fleet-panel{container:fleet / inline-size}
html[data-design=video] .fleet-panel>.toolbar{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px;padding:22px;align-items:end}
html[data-design=video] :is(.fleet-panel>.toolbar,#fleet-journal-filters)>label{display:grid;gap:8px;min-width:0;color:var(--subtle);font-size:.857143rem}
html[data-design=video] :is(.fleet-panel>.toolbar,#fleet-journal-filters) :is(input,select){width:100%;max-width:none;min-width:0;min-height:42px}
html[data-design=video] .fleet-explanation{padding:16px 20px;margin:20px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--subtle);line-height:1.6;font-size:.857143rem}
html[data-design=video] .fleet-explanation>summary{cursor:pointer;color:var(--ink);width:fit-content}
html[data-design=video] .fleet-explanation>p{max-width:90ch;margin:12px 0 0}
html[data-design=video] .fleet-panel>.panel-body{padding:18px 22px;margin:0;line-height:1.6;border-top:1px solid var(--line)}
html[data-design=video] :is(.fleet-panel,.fleet-journal) table{min-width:1100px;table-layout:auto}
html[data-design=video] :is(.fleet-panel,.fleet-journal) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:150px}
html[data-design=video] .fleet-panel td:first-child{min-width:220px}
html[data-design=video] .fleet-panel td>div{margin-bottom:16px}
html[data-design=video] .fleet-panel td>button:not(.record-link){margin-top:8px;white-space:normal;text-align:left}
html[data-design=video] :is(.fleet-panel,.fleet-journal) .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] #fleet-journal-filters{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;align-items:end;padding:0 0 20px}
html[data-design=video] .fleet-journal :is(th,td):nth-child(n+4){text-align:right;font-variant-numeric:tabular-nums}
@container fleet (max-width:680px){html[data-design=video] .fleet-panel>.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-design=video] .fleet-panel>.toolbar>label:first-child{grid-column:1/-1}}
@container fleet (max-width:400px){html[data-design=video] .fleet-panel>.toolbar{grid-template-columns:minmax(0,1fr);padding:16px}}
@media(max-width:600px){html[data-design=video] #fleet-journal-filters{grid-template-columns:minmax(0,1fr)}html[data-design=video] #fleet-journal-filters>button{justify-self:start}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .fleet-explanation[open]>p{animation:opora-panel-reveal 160ms ease-out}}

/* Embedded files remain distinct from the surrounding description text. */
html[data-design=video] .record-description-content .record-description-file{display:block;width:fit-content;max-width:100%;box-sizing:border-box;margin:10px 0;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--secondary);color:var(--green);font-weight:500;line-height:1.5;overflow-wrap:anywhere;text-underline-offset:3px}
html[data-design=video] .record-description-content .record-description-file:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(hover:hover){html[data-design=video] .record-description-content .record-description-file:hover{border-color:var(--green);background:var(--accent-soft)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .record-description-content .record-description-file{transition:background-color 120ms ease,border-color 120ms ease}}

/* Dispatch and archived duty summaries use the common register geometry. */
html[data-design=video] :is(.dispatch-register,.duty-archive-panel)>.toolbar{padding:20px 22px;gap:16px;align-items:end;flex-wrap:wrap}
html[data-design=video] :is(.dispatch-register,.duty-archive-panel)>.toolbar>label{display:grid;gap:8px;min-width:0;color:var(--subtle);font-size:.857143rem}
html[data-design=video] :is(.dispatch-register,.duty-archive-panel)>.toolbar input{width:220px;max-width:100%;min-width:0;min-height:42px}
html[data-design=video] .dispatch-register>.toolbar>.muted{padding-bottom:10px;line-height:1.5}
html[data-design=video] .dispatch-pending .list-item{padding:18px 22px;gap:16px;align-items:center;flex-wrap:wrap}
html[data-design=video] .dispatch-pending .list-item>div{flex:1 1 240px;min-width:0}
html[data-design=video] .dispatch-pending .list-item small{display:block;margin-top:8px;color:var(--subtle);line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] :is(.dispatch-pending,.dispatch-register,.duty-archive-panel) .record-link{white-space:normal;line-height:1.5;text-align:left}
html[data-design=video] :is(.dispatch-register,.duty-archive-panel) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:130px}
html[data-design=video] .dispatch-register table{min-width:1050px;table-layout:auto}
html[data-design=video] .dispatch-register td:first-child{min-width:240px}
html[data-design=video] .duty-archive-panel table{min-width:850px;table-layout:auto}
html[data-design=video] .duty-archive-panel td:last-child{min-width:260px}
html[data-design=video] :is(.dispatch-register,.duty-archive-panel) td small{display:block;margin-top:6px;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .duty-archive-panel>.panel-body{display:flex;gap:10px;flex-wrap:wrap;padding:18px 22px;border-top:1px solid var(--line)}
html[data-design=video] #assign-group-form>label,html[data-design=video] #duty-create-form>label{display:grid;gap:8px;margin-top:18px;min-width:0}
@media(max-width:520px){html[data-design=video] :is(.dispatch-register,.duty-archive-panel)>.toolbar{padding:16px}html[data-design=video] :is(.dispatch-register,.duty-archive-panel)>.toolbar>label{width:100%}html[data-design=video] :is(.dispatch-register,.duty-archive-panel)>.toolbar input{width:100%}}

/* Navigation actions keep link semantics while sharing button geometry. */
html[data-design=video] a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:var(--reference-control-radius,10px);background:var(--surface);color:var(--ink);font:inherit;font-size:.928571rem;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
html[data-design=video] a.button.primary{background:var(--green);border-color:var(--green);color:var(--primary-ink)}
html[data-design=video] a.button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(hover:hover){html[data-design=video] a.button:not(.primary):hover{background:var(--secondary);border-color:var(--green)}html[data-design=video] a.button.primary:hover{filter:brightness(.94)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) a.button{transition:background-color 120ms ease,border-color 120ms ease}}

html[data-design=video] #duty-create-form>.actions{margin-top:20px;justify-content:flex-end;gap:10px;flex-wrap:wrap}

html[data-design=video] .duty-report-panel #duty-filters{display:grid;grid-template-columns:minmax(160px,.8fr) repeat(2,minmax(140px,1fr)) minmax(210px,1.3fr) auto;align-items:end;gap:16px;padding:22px}
html[data-design=video] .duty-report-panel #duty-filters>label{display:grid;gap:8px;min-width:0}
html[data-design=video] .duty-report-panel #duty-filters :is(input,select){width:100%;min-width:0}
html[data-design=video] .duty-report-explanation{margin:20px 0;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);line-height:1.6}
html[data-design=video] .duty-report-explanation summary{cursor:pointer;font-weight:600}
html[data-design=video] .duty-report-explanation p{margin:12px 0 0;color:var(--subtle)}
html[data-design=video] .duty-report-panel .table-wrap table{min-width:1000px}
html[data-design=video] .duty-report-panel td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;min-width:160px;line-height:1.6}
html[data-design=video] .duty-report-panel td:last-child{min-width:240px}
@media(max-width:1100px){html[data-design=video] .duty-report-panel #duty-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){html[data-design=video] .duty-report-panel #duty-filters{grid-template-columns:minmax(0,1fr);padding:16px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .duty-report-explanation[open] p{animation:reference-popup-fade 160ms ease-out}}

/* Event journal: aligned filters and a distinct action row. */
html[data-design=video] .event-journal-panel #event-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:22px;align-items:end}
html[data-design=video] .event-journal-panel #event-filters>label{display:grid;gap:8px;min-width:0}
html[data-design=video] .event-journal-panel #event-filters :is(input,select){width:100%;min-width:0;max-width:none}
html[data-design=video] .event-journal-panel .event-filter-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
html[data-design=video] .event-journal-panel .event-journal-actions{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;justify-content:space-between;padding:20px 22px}
html[data-design=video] .event-journal-explanation{flex:1 1 280px;min-width:0;line-height:1.6}
html[data-design=video] .event-journal-explanation summary{cursor:pointer;font-weight:600}
html[data-design=video] .event-journal-explanation p{margin:12px 0 0;color:var(--subtle);max-width:85ch}
html[data-design=video] .event-journal-panel .table-wrap table{min-width:1600px}
html[data-design=video] .event-journal-panel td{white-space:normal;vertical-align:top;overflow-wrap:anywhere;min-width:140px;line-height:1.6}
html[data-design=video] .event-journal-panel td:first-child{min-width:220px}
html[data-design=video] .event-journal-panel td small{display:block;margin-top:6px;color:var(--subtle);line-height:1.5}
html[data-design=video] .event-journal-panel td button:not(.record-link){margin-top:8px}
@media(max-width:1000px){html[data-design=video] .event-journal-panel #event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){html[data-design=video] .event-journal-panel #event-filters{grid-template-columns:minmax(0,1fr);padding:16px}html[data-design=video] .event-journal-panel .event-journal-actions{padding:16px}html[data-design=video] .event-journal-panel .event-filter-actions>button{flex:1}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .event-journal-explanation[open] p{animation:reference-popup-fade 160ms ease-out}}

/* Operational report controls and readable report metadata. */
html[data-design=video] .operational-panel>.toolbar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(180px,1fr) minmax(230px,1.4fr);align-items:end;gap:18px;padding:22px}
html[data-design=video] .operational-panel>.toolbar>label{display:grid;gap:8px;min-width:0}
html[data-design=video] .operational-panel>.toolbar :is(input,select){width:100%;max-width:none;min-width:0}
html[data-design=video] .operational-panel>.toolbar>.muted{padding-bottom:10px;line-height:1.5}
html[data-design=video] .operational-panel table{min-width:1100px}
html[data-design=video] .operational-panel td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;min-width:140px;line-height:1.6}
html[data-design=video] .operational-panel td:first-child{min-width:200px}
html[data-design=video] .operational-panel td small{display:block;margin-top:6px;line-height:1.5;color:var(--subtle)}
html[data-design=video] .operational-panel td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .operational-vacancies .list-item{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:18px 22px}
html[data-design=video] .operational-vacancies .list-item .record-link{flex:1 1 200px;text-align:left;overflow-wrap:anywhere}
@media(max-width:850px){html[data-design=video] .operational-panel>.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-design=video] .operational-panel>.toolbar>.muted{grid-column:1/-1;padding:0}}
@media(max-width:520px){html[data-design=video] .operational-panel>.toolbar{grid-template-columns:minmax(0,1fr);padding:16px}html[data-design=video] .operational-vacancies .list-item{padding:16px}}

/* Background refresh updates data without replaying entrance effects. */
html[data-design=video] #content[data-background-refresh=true]:has(>.operational-panel)>:is(.page-head,.panel,.stats){animation:none!important}

/* Mailing setup: schedule above report scope, without an orphan column. */
html[data-design=video] [data-mailing-kind] .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
html[data-design=video] [data-mailing-kind=operative_report] .form-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
html[data-design=video] [data-mailing-kind=operative_report] .form-grid>label{grid-column:span 2}
html[data-design=video] [data-mailing-kind=operative_report] .form-grid>fieldset{grid-column:span 4}
html[data-design=video] [data-mailing-kind] .form-grid>label{display:grid;gap:9px;min-width:0;font-size:.928571rem;line-height:1.5}
html[data-design=video] [data-mailing-kind] .form-grid input[type=time]{max-width:260px;width:100%}
html[data-design=video] [data-mailing-kind] fieldset>.checkbox-line{min-height:40px;gap:8px;padding:8px 12px;border-radius:9px;background:var(--secondary);border:1px solid var(--line);font-size:.928571rem;line-height:1.4;cursor:pointer}
html[data-design=video] [data-mailing-kind] fieldset>.checkbox-line:has(input:checked){background:var(--accent-soft);border-color:var(--green)}
html[data-design=video] [data-mailing-kind] fieldset>.checkbox-line:focus-within{outline:2px solid var(--green);outline-offset:2px}
html[data-design=video] [data-mailing-kind] select[multiple]{width:100%;min-height:160px;line-height:1.5}
html[data-design=video] [data-mailing-kind]>.form-actions{margin-top:20px;gap:10px;flex-wrap:wrap}
html[data-design=video] .mailing-table table{min-width:640px}
html[data-design=video] .mailing-table td{min-width:150px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}
html[data-design=video] [data-mailing-preview-body]>.panel,html[data-design=video] [data-mailing-card]>.panel{padding:18px;margin-top:20px}
html[data-design=video] [data-mailing-inbox-body]>.panel{padding:18px;margin-top:14px}
@media(max-width:900px){html[data-design=video] [data-mailing-kind] .form-grid,html[data-design=video] [data-mailing-kind=operative_report] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-design=video] [data-mailing-kind=operative_report] .form-grid>label,html[data-design=video] [data-mailing-kind=operative_report] .form-grid>fieldset{grid-column:auto}html[data-design=video] [data-mailing-kind] .form-grid>label:last-child{grid-column:1/-1}}
@media(max-width:600px){html[data-design=video] [data-mailing-kind] .form-grid,html[data-design=video] [data-mailing-kind=operative_report] .form-grid{grid-template-columns:minmax(0,1fr)}html[data-design=video] [data-mailing-kind] .form-grid input[type=time]{max-width:none}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) [data-mailing-kind] .checkbox-line{transition:background-color 140ms ease,border-color 140ms ease}}

/* Inventory registers share readable spacing and numeric alignment. */
html[data-design=video] :is(.property-inventory-register,.stocktake-register)>.toolbar{padding:20px 22px;gap:16px;align-items:end}
html[data-design=video] :is(.property-inventory-register,.stocktake-register)>.toolbar>label{display:grid;gap:8px;min-width:0;width:min(100%,280px)}
html[data-design=video] :is(.property-inventory-register,.stocktake-register)>.toolbar select{width:100%;max-width:none}
html[data-design=video] .property-inventory-register>.inventory-scope{padding:16px 22px;margin:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html[data-design=video] :is(.property-inventory-register,.stocktake-register) table{min-width:900px}
html[data-design=video] :is(.property-inventory-register,.stocktake-register) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;min-width:190px;line-height:1.65}
html[data-design=video] :is(.property-inventory-register,.stocktake-register) small{display:block;margin-top:5px;color:var(--subtle)}
html[data-design=video] :is(.property-inventory-register,.stocktake-register)>.inventory-pagination:not([hidden]){display:flex;gap:10px;flex-wrap:wrap;padding:18px 22px;border-top:1px solid var(--line)}
html[data-design=video] :is(#property-create-form,#property-cancel-form,#stocktake-create-form,#stocktake-add-form)>label{display:grid;gap:8px;margin-bottom:20px;min-width:0}
html[data-design=video] :is(#property-create-form,#stocktake-create-form,#stocktake-add-form) select{width:100%;max-width:100%}
html[data-design=video] :is(.property-inventory-table,#stocktake-count-form .table-wrap) table{min-width:860px}
html[data-design=video] :is(.property-inventory-table,#stocktake-count-form) td{white-space:normal;vertical-align:top;line-height:1.6;overflow-wrap:anywhere;min-width:150px}
html[data-design=video] .property-inventory-table td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] #stocktake-count-form>label{display:grid;gap:8px;max-width:280px;margin:18px 0}
html[data-design=video] #stocktake-count-form td:first-child{min-width:220px}
html[data-design=video] #stocktake-count-form td:nth-child(3){min-width:190px}
html[data-design=video] #stocktake-count-form td:last-child{min-width:260px}
html[data-design=video] #stocktake-count-form td :is(input,textarea){width:100%;max-width:none}
html[data-design=video] #stocktake-count-form td small{display:block;margin-top:8px;line-height:1.5;color:var(--subtle)}
html[data-design=video] #stocktake-count-form [data-stocktake-clear]{margin-top:8px}
html[data-design=video] #stocktake-count-form>button[type=submit]{margin-top:20px}
html[data-design=video] #stocktake-detail-body>.form-actions{gap:10px;flex-wrap:wrap;margin-top:24px}
@media(max-width:520px){html[data-design=video] :is(.property-inventory-register,.stocktake-register)>.toolbar,html[data-design=video] .property-inventory-register>.inventory-scope{padding:16px}}

/* Warehouse registers: shared filters, wrapping descriptions, stable numeric columns. */
html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel)>.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:18px;padding:22px}
html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel)>.toolbar>label{display:grid;gap:8px;min-width:0;flex:1 1 260px;max-width:440px}
html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel)>.toolbar :is(input,select){width:100%;max-width:none;min-width:0}
html[data-design=video] .stock-reservation-panel>.reservation-scope{margin:0;padding:0 22px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel,.stock-history-panel) table{min-width:1120px}
html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel,.stock-history-panel,.stock-balances-panel) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.65;min-width:140px}
html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel,.stock-balances-panel) td:first-child{min-width:240px}
html[data-design=video] .stock-balances-panel table{min-width:680px}
html[data-design=video] .stock-balances-panel td:last-child,html[data-design=video] .stock-plan-panel td:nth-child(n+2):nth-child(-n+6),html[data-design=video] .stock-reservation-panel td:nth-child(n+3):nth-child(-n+5){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] :is(.stock-plan-panel,.stock-history-panel) td small{display:block;color:var(--subtle);line-height:1.5;margin-top:6px}
html[data-design=video] .stock-plan-panel td button:not(.record-link){margin-top:8px}
html[data-design=video] .stock-reservation-panel>.reservation-pagination:not([hidden]){display:flex;gap:10px;padding:18px 22px;flex-wrap:wrap;border-top:1px solid var(--line)}
html[data-design=video] .stock-plan-explanation{padding:16px 20px;margin:20px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface);line-height:1.6}
html[data-design=video] .stock-plan-explanation summary{font-weight:600;cursor:pointer}
html[data-design=video] .stock-plan-explanation p{margin:12px 0 0;color:var(--subtle)}
@media(max-width:520px){html[data-design=video] :is(.stock-plan-panel,.stock-reservation-panel)>.toolbar{padding:16px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .stock-plan-explanation[open] p{animation:reference-popup-fade 160ms ease-out}}

html[data-design=video] .stock-history-panel>p.muted{padding:16px 22px;margin:0;line-height:1.6}
html[data-design=video] .stock-balances-panel th:last-child,html[data-design=video] .stock-plan-panel th:nth-child(n+2):nth-child(-n+6),html[data-design=video] .stock-reservation-panel th:nth-child(n+3):nth-child(-n+5){text-align:right}

/* Procurement: scan-friendly order details and document history. */
html[data-design=video] .purchase-register table{min-width:1050px}
html[data-design=video] :is(.purchase-register,.purchase-detail,#purchase-receipt-form) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;min-width:140px;line-height:1.6}
html[data-design=video] .purchase-register td:first-child{min-width:240px}
html[data-design=video] :is(.purchase-register,.purchase-detail) small{display:block;line-height:1.5;margin-top:6px;color:var(--subtle)}
html[data-design=video] .purchase-register small.danger{color:var(--status-danger-text)}
html[data-design=video] .purchase-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 22px}
html[data-design=video] .purchase-summary>div{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--secondary);min-width:0}
html[data-design=video] .purchase-summary dt{font-size:.857143rem;color:var(--subtle);margin-bottom:7px}
html[data-design=video] .purchase-summary dd{margin:0;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
html[data-design=video] .purchase-detail>.table-wrap table{min-width:720px}
html[data-design=video] .purchase-detail>.table-wrap :is(th,td):nth-child(n+2):nth-child(-n+5){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .purchase-detail>.table-wrap td:first-child{min-width:220px}
html[data-design=video] .purchase-detail>.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}
html[data-design=video] .purchase-detail>.form-actions:empty{display:none}
html[data-design=video] .purchase-detail>h3{margin:28px 0 14px}
html[data-design=video] .purchase-detail>.list-item{padding:16px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
html[data-design=video] .purchase-detail>.list-item>div{min-width:0;flex:1 1 280px;overflow-wrap:anywhere}
html[data-design=video] .purchase-detail>.list-item :is(details,a.button){margin-top:12px}
html[data-design=video] .purchase-detail summary{cursor:pointer;font-weight:600;line-height:1.5}
html[data-design=video] .purchase-detail details>p{padding:12px 0;border-top:1px solid var(--line);line-height:1.6}
html[data-design=video] #purchase-receipt-form table{min-width:950px}
html[data-design=video] #purchase-receipt-form td:first-child{min-width:280px}
html[data-design=video] #purchase-receipt-form td:last-child{min-width:300px}
html[data-design=video] #purchase-receipt-form>label{display:grid;gap:8px;margin-top:22px}
@media(max-width:520px){html[data-design=video] .purchase-summary{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .purchase-detail details[open]>p{animation:reference-popup-fade 160ms ease-out}}

html[data-design=video] .purchase-register>.actions[hidden]{display:none}

html[data-design=video] .purchase-lines td{min-width:100px}
html[data-design=video] .purchase-lines-readonly :is(th,td):last-child{display:none}

/* Supply issue register and legacy issue dialogs. */
html[data-design=video] .supply-register table{min-width:720px}
html[data-design=video] .supply-register :is(th,td){vertical-align:top}
html[data-design=video] .supply-register td{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
html[data-design=video] .supply-register td:first-child{min-width:220px;width:40%}
html[data-design=video] .supply-register :is(th,td):nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .supply-register td:last-child{min-width:175px;text-align:right}
html[data-design=video] :is(.supply-register,.supply-ledger) small{display:block;margin-top:6px;color:var(--subtle);line-height:1.5}
html[data-design=video] .supply-ledger>.table-wrap table{min-width:1120px}
html[data-design=video] .supply-ledger td{min-width:130px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}
html[data-design=video] .supply-ledger :is(th,td):nth-child(n+3):nth-child(-n+6){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .supply-ledger td:last-child{min-width:200px}
html[data-design=video] .supply-ledger td button:not(.record-link){margin-bottom:8px}
html[data-design=video] .supply-ledger>h3{margin:28px 0 14px}
html[data-design=video] .supply-ledger>.list-item{padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;gap:16px;flex-wrap:wrap;align-items:flex-start}
html[data-design=video] .supply-ledger>.list-item>div{flex:1 1 280px;min-width:0;overflow-wrap:anywhere}
html[data-design=video] :is(#supply-issue-form,#supply-return-form)>label{display:grid;gap:8px;margin-top:20px;min-width:0}
html[data-design=video] :is(#supply-issue-form,#supply-return-form)>p{line-height:1.65}
html[data-design=video] #supply-issue-form select{width:100%;max-width:none}
html[data-design=video] :is(.supply-ledger,#supply-issue-form,#supply-return-form)>.form-actions{margin-top:22px;gap:10px;flex-wrap:wrap}

/* Inspection and maintenance review: consistent filter and result spacing. */
html[data-design=video] .inspection-register>.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding:22px}
html[data-design=video] .inspection-register>.toolbar>label{display:grid;gap:8px;min-width:0;flex:1 1 240px;max-width:440px}
html[data-design=video] .inspection-register>.toolbar :is(input,select){width:100%;max-width:none}
html[data-design=video] .inspection-register table{min-width:1080px}
html[data-design=video] .inspection-register td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6;min-width:120px}
html[data-design=video] .inspection-register td:first-child{min-width:230px}
html[data-design=video] .inspection-register :is(th,td):nth-child(n+4):nth-child(-n+6){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .inspection-register td:last-child{min-width:150px}
html[data-design=video] .inspection-register td button:not(.record-link){margin-bottom:8px}
html[data-design=video] .inspection-help{margin:20px 0;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);line-height:1.6}
html[data-design=video] .inspection-help summary{cursor:pointer;font-weight:600}
html[data-design=video] .inspection-help p{margin:12px 0 0;color:var(--subtle)}
html[data-design=video] #maintenance-review-rows>.toolbar{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin-bottom:22px}
html[data-design=video] #maintenance-review-rows>.toolbar>label{display:grid;gap:8px;min-width:0;flex:1 1 240px;max-width:360px}
html[data-design=video] #maintenance-review-filter{width:100%;max-width:none}
html[data-design=video] #maintenance-review-rows>.list-item{padding:16px;border:1px solid var(--line);border-radius:12px;gap:16px;flex-wrap:wrap;margin-bottom:12px;align-items:flex-start}
html[data-design=video] #maintenance-review-rows>.list-item>div{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
html[data-design=video] #maintenance-review-rows small{display:block;margin-top:8px;color:var(--subtle);line-height:1.6}
html[data-design=video] #maintenance-review-rows>.form-actions[hidden]{display:none}
@media(max-width:520px){html[data-design=video] .inspection-register>.toolbar{padding:16px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .inspection-help[open] p{animation:reference-popup-fade 160ms ease-out}}

/* Post handovers and relief: shared service register layout. */
html[data-design=video] :is(#relief-filters,#handover-register-filter,#handover-list-filter){display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding:22px}
html[data-design=video] :is(#relief-filters,#handover-register-filter,#handover-list-filter)>label{display:grid;gap:8px;min-width:0;flex:1 1 220px;max-width:360px}
html[data-design=video] :is(#relief-filters,#handover-register-filter,#handover-list-filter) :is(input,select){width:100%;max-width:none}
html[data-design=video] #handover-list-filter{padding:0 0 22px}
html[data-design=video] .handover-table table{min-width:900px}
html[data-design=video] :is(.handover-table,#relief-rows) td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.65;min-width:180px}
html[data-design=video] .handover-pagination[hidden]{display:none}
html[data-design=video] .handover-pagination:not([hidden]){display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line)}
html[data-design=video] :is(.handover-help,.relief-help){margin:20px 0;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);line-height:1.6}
html[data-design=video] :is(.handover-help,.relief-help) summary{cursor:pointer;font-weight:600}
html[data-design=video] :is(.handover-help,.relief-help) p{margin:12px 0 0;color:var(--subtle)}
html[data-design=video] #relief-rows>.panel-body+.panel-body{border-top:1px solid var(--line)}
html[data-design=video] #relief-rows>.panel-body>p{line-height:1.65}
html[data-design=video] #relief-rows>.panel-body>button{margin:0 8px 16px 0}
html[data-design=video] #relief-rows table{min-width:1000px}
html[data-design=video] #relief-rows td:first-child{min-width:230px}
html[data-design=video] #relief-rows td button:not(.record-link){margin-top:8px}
html[data-design=video] #relief-rows .notice{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
@media(max-width:520px){html[data-design=video] :is(#relief-filters,#handover-register-filter){padding:16px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) :is(.handover-help,.relief-help)[open] p{animation:reference-popup-fade 160ms ease-out}}

/* Patrol journal and route checkpoints. */
html[data-design=video] .patrol-journal>.toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:22px}
html[data-design=video] .patrol-journal>.toolbar>label{display:grid;gap:8px;min-width:0;flex:0 1 280px}
html[data-design=video] .patrol-journal>.toolbar>.muted{flex:1 1 260px;padding-bottom:10px;line-height:1.5}
html[data-design=video] .patrol-journal table{min-width:1060px}
html[data-design=video] .patrol-journal td{min-width:130px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}
html[data-design=video] .patrol-journal td:first-child{min-width:230px}
html[data-design=video] .patrol-journal :is(th,td):nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
html[data-design=video] .patrol-help{margin:20px 0;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;line-height:1.6}
html[data-design=video] .patrol-help summary{cursor:pointer;font-weight:600}
html[data-design=video] .patrol-help p{margin:12px 0 0;color:var(--subtle)}
html[data-design=video] .patrol-schedule{margin-top:24px}
html[data-design=video] .patrol-schedule small{display:block;margin-top:7px;line-height:1.6;color:var(--subtle)}
html[data-design=video] .patrol-schedule .list-item{padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;gap:16px;align-items:flex-start;flex-wrap:wrap}
html[data-design=video] .patrol-schedule .list-item>div{min-width:0;flex:1 1 280px;overflow-wrap:anywhere}
html[data-design=video] .patrol-detail>.checkpoint{padding:18px;margin-top:16px;gap:16px;flex-wrap:wrap;border-radius:14px;align-items:flex-start}
html[data-design=video] .patrol-detail>.checkpoint>div:first-child{min-width:0;flex:1 1 280px;overflow-wrap:anywhere;line-height:1.65}
html[data-design=video] .patrol-detail>.checkpoint>.actions{display:flex;gap:8px;flex-wrap:wrap}
html[data-design=video] .patrol-detail>.form-actions{margin-top:24px;gap:10px;flex-wrap:wrap}
html[data-design=video] #patrol-start-form>.muted{margin:18px 0;line-height:1.65}
@media(max-width:520px){html[data-design=video] .patrol-journal>.toolbar{padding:16px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .patrol-help[open] p{animation:reference-popup-fade 160ms ease-out}}

/* Plan counts remain readable without a dense sentence of statuses. */
html[data-design=video] .patrol-plan-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:12px;margin:0 0 24px}
html[data-design=video] .patrol-plan-counts>div{min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--secondary)}
html[data-design=video] .patrol-plan-counts dt{font-size:.857143rem;line-height:1.5;color:var(--subtle);overflow-wrap:anywhere}
html[data-design=video] .patrol-plan-counts dd{margin:9px 0 0;font-size:1.714286rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
html[data-design=video] .patrol-plan-counts .needs-attention{border-color:var(--status-danger-text)}
html[data-design=video] .patrol-plan-counts .needs-attention dd{color:var(--status-danger-text)}

@media(max-width:520px){html[data-design=video] .patrol-plan-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html[data-design=video] .patrol-plan-counts>div{padding:12px}html[data-design=video] .patrol-plan-counts dt{min-height:2.6em}}

/* Keep profile badges and long names beside the portrait, not beneath its float. */
html[data-design=video] .address-book-person{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:start}
html[data-design=video] .address-book-person>:is(.primary-record-photo,.primary-photo-placeholder){float:none!important;margin:0!important}
html[data-design=video] .address-book-person>div{min-width:0}
html[data-design=video] .address-book-person .record-link{display:block;max-width:100%;margin:0;padding:0;overflow-wrap:anywhere}
html[data-design=video] .address-book-person .pill{display:inline-flex;margin-top:8px}
html[data-design=video] [data-book-card]>.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
html[data-design=video] [data-book-card] [data-book-call]{display:flex;flex-wrap:wrap;gap:10px}

/* Timesheets: readable filters, snapshots and numeric columns. */
html[data-design=video] :is(.sheet-overview,.sheet-register)>.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:16px;padding:22px}
html[data-design=video] :is(.sheet-overview,.sheet-register)>.toolbar>label{display:grid;gap:8px;flex:0 1 220px;min-width:0}
html[data-design=video] .sheet-overview>.toolbar>.muted{flex:1 1 280px;line-height:1.65}
html[data-design=video] .sheet-overview table{min-width:680px}
html[data-design=video] .sheet-register table{min-width:1080px}
html[data-design=video] :is(.sheet-overview,.sheet-register,.sheet-detail) td{vertical-align:top;overflow-wrap:anywhere;line-height:1.6}
html[data-design=video] :is(.sheet-overview,.sheet-register,.sheet-detail) td:first-child{min-width:210px}
html[data-design=video] .sheet-overview :is(th,td):nth-child(n+2),html[data-design=video] .sheet-register :is(th,td):is(:nth-child(5),:nth-child(6)),html[data-design=video] .sheet-detail>.table-wrap :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4)){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-design=video] .sheet-detail>.table-wrap table{min-width:760px}
html[data-design=video] .sheet-detail p{line-height:1.65;overflow-wrap:anywhere}
html[data-design=video] .sheet-detail>.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
html[data-design=video] .sheet-detail>details{margin-top:24px}
html[data-design=video] #sheet-source-rows table{min-width:980px}
html[data-design=video] #sheet-source-rows :is(th,td):nth-child(n+4){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-design=video] :is(#sheet-create-form,#sheet-void-form)>label{display:grid;gap:8px;margin-bottom:20px}
html[data-design=video] :is(#sheet-create-form,#sheet-void-form)>p{line-height:1.65}
html[data-design=video] :is(#sheet-create-form,#sheet-void-form)>button{margin-top:12px}
@media(max-width:600px){html[data-design=video] :is(.sheet-overview,.sheet-register)>.toolbar{padding:16px}html[data-design=video] :is(.sheet-overview,.sheet-register)>.toolbar>label{flex:1 1 100%}}

/* Payroll workspace: one filter grid and distinct summary cards. */
html[data-design=video] .salary-workspace-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:18px;margin-top:16px}
html[data-design=video] .salary-workspace-filters>label{display:grid;gap:8px;margin:0;min-width:0}
html[data-design=video] .salary-workspace-filters>.salary-workspace-search{grid-column:span 2}
html[data-design=video] .salary-workspace-filters>.checkbox-line{display:flex;align-items:center;gap:10px;min-height:42px}
html[data-design=video] .salary-workspace-filters>.checkbox-line input{width:18px;height:18px;flex:0 0 18px}
html[data-design=video] .salary-workspace-filters>[role=alert]{grid-column:1/-1}
html[data-design=video] .salary-workspace-filters>[role=alert]:empty{display:none}
html[data-design=video] .salary-workspace-steps{gap:10px;margin:20px 0}
html[data-design=video] .salary-workspace-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;border:0;padding:0;margin:24px 0 16px}
html[data-design=video] .salary-workspace-totals>div{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
html[data-design=video] .salary-workspace-totals dt{line-height:1.5;min-height:3em}
html[data-design=video] .salary-workspace-totals dd{margin-top:10px;font-variant-numeric:tabular-nums}
html[data-design=video] .salary-workspace>p{line-height:1.65}
html[data-design=video] .salary-workspace>.table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-top:20px}
html[data-design=video] .salary-workspace td{vertical-align:top;line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .salary-workspace td:last-child .actions{display:flex;flex-wrap:wrap;gap:8px}
html[data-design=video] .salary-workspace-pages{flex-wrap:wrap;gap:12px;margin-top:18px}
@media(min-width:621px){html[data-design=video] .salary-workspace table{min-width:1060px}html[data-design=video] .salary-workspace :is(th,td):nth-child(n+2):nth-child(-n+5){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}html[data-design=video] .salary-workspace td:last-child{min-width:210px}}
@media(max-width:1000px){html[data-design=video] .salary-workspace-filters,html[data-design=video] .salary-workspace-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){html[data-design=video] .salary-workspace-filters{grid-template-columns:minmax(0,1fr);padding:16px}html[data-design=video] .salary-workspace-filters>.salary-workspace-search{grid-column:auto}html[data-design=video] .salary-workspace-totals{gap:10px}html[data-design=video] .salary-workspace-totals>div{padding:14px}html[data-design=video] .salary-workspace>.table-wrap{border:0;background:transparent}html[data-design=video] .salary-workspace tbody>tr{background:var(--surface)}html[data-design=video] .salary-workspace td:first-child{min-width:0}}

html[data-design=video] .salary-workspace td small[data-payroll-unread]{display:block;width:fit-content;max-width:100%;margin:0 0 8px;padding:4px 9px;font-size:.857rem;line-height:1.5;white-space:normal}

/* Calculation settings: aligned labels and readable explanations. */
html[data-design=video] #fot-options>.form-grid,html[data-design=video] #salary-month-options details>.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px;align-items:end}
html[data-design=video] :is(#fot-options,#salary-month-options) .form-grid>label{display:grid;gap:8px;min-width:0;margin:0}
html[data-design=video] :is(#fot-options,#salary-month-options) .form-grid :is(input,select){width:100%;min-width:0}
html[data-design=video] #fot-options>.form-grid>button{justify-self:start;min-height:42px}
html[data-design=video] .fot-method{margin:20px 0;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
html[data-design=video] .fot-method>summary{cursor:pointer;font-weight:600;line-height:1.5}
html[data-design=video] .fot-method>p{margin:14px 0 0;line-height:1.7}
html[data-design=video] .fot-results table{min-width:900px}
html[data-design=video] .fot-results td:not([colspan]){vertical-align:top;line-height:1.65;overflow-wrap:anywhere}
html[data-design=video] .fot-results td:first-child:not([colspan]){min-width:240px}
html[data-design=video] .fot-results :is(th,td):nth-child(n+3):not([colspan]){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-design=video] #salary-month-options>details{margin-top:22px}
html[data-design=video] #salary-month-options details>.form-grid{margin-top:20px}
html[data-design=video] #salary-month-workspace>.panel-body>.actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
html[data-design=video] #salary-month-workspace>.panel-body>label{max-width:480px;margin-top:20px}
html[data-design=video] #salary-month-table table{min-width:1280px}
html[data-design=video] #salary-month-table td{vertical-align:top;line-height:1.65;overflow-wrap:anywhere}
html[data-design=video] #salary-month-table td:first-child{min-width:240px}
html[data-design=video] #salary-month-table :is(th,td):nth-child(n+2):nth-child(-n+8){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1000px){html[data-design=video] #fot-options>.form-grid,html[data-design=video] #salary-month-options details>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html[data-design=video] #fot-options>.form-grid,html[data-design=video] #salary-month-options details>.form-grid{grid-template-columns:minmax(0,1fr)}html[data-design=video] .salary-month-controls{grid-template-columns:minmax(0,1fr)}html[data-design=video] .salary-month-controls button{justify-self:start}}

/* Server access guidance and calculation disclosure motion. */
html[data-design=video] .server-access-panel .panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px}
html[data-design=video] .server-access-panel .panel-head h2{margin:0;min-width:0;overflow-wrap:anywhere;font-size:1.143rem;line-height:1.5}
html[data-design=video] .server-access-panel .panel-body{padding:22px}
html[data-design=video] .server-access-panel :is(p,li){line-height:1.7;overflow-wrap:anywhere}
html[data-design=video] .server-access-panel ol{padding-left:24px;margin:16px 0}
html[data-design=video] .server-access-panel li+li{margin-top:12px}
html[data-design=video] .server-access-panel .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:20px}
html[data-design=video] .server-access-panel .server-access-label{max-width:760px}
html[data-design=video] .server-access-panel #server-copy-status:empty{display:none}
@media(max-width:600px){html[data-design=video] .server-access-panel :is(.panel-head,.panel-body){padding:16px}html[data-design=video] .server-access-panel .actions>*{max-width:100%;white-space:normal}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .fot-method[open]>p,html[data-design=video]:not([data-motion=reduce]) #salary-month-options details[open]>.form-grid{animation:reference-popup-fade 160ms ease-out}}

/* Backup archives: readable metadata and separate download/check actions. */
html[data-design=video] .backup-archive-panel .panel-head,html[data-design=video] .backup-restore-panel .panel-head{padding:20px 22px}
html[data-design=video] :is(.backup-archive-panel,.backup-restore-panel) h2{margin:0;font-size:1.143rem;line-height:1.5}
html[data-design=video] .backup-archive-panel table{min-width:900px}
html[data-design=video] .backup-archive-panel td{vertical-align:top;line-height:1.6}
html[data-design=video] .backup-archive-panel :is(th,td):is(:nth-child(2),:nth-child(3)){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-design=video] .backup-archive-panel td:first-child{min-width:170px;white-space:nowrap}
html[data-design=video] .backup-archive-actions{display:flex;flex-wrap:wrap;gap:10px;min-width:230px;align-items:center}
html[data-design=video] .backup-restore-panel .panel-body{padding:22px;line-height:1.7}
html[data-design=video] .backup-restore-panel pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:var(--secondary);border:1px solid var(--line);border-radius:12px;line-height:1.6}
html[data-design=video] #restore-result{overflow-wrap:anywhere}
html[data-design=video] #backup-schedule-form .form-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:600px){html[data-design=video] :is(.backup-archive-panel,.backup-restore-panel) :is(.panel-head,.panel-body){padding:16px}}

/* Shared post phone: touch targets and stable card spacing. */
html[data-design=video] .object-phone-workplace .topbar{align-items:center;padding:16px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
html[data-design=video] .object-phone-workplace .topbar>strong{min-width:0;overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] .object-phone-workplace :is(button,a.button,input,select){min-height:44px}
html[data-design=video] .object-phone-workplace :is(button,a.button){white-space:normal;overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] .object-phone-workplace :is(p,li){line-height:1.65}
html[data-design=video] .object-phone-workplace .list-item{border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:12px 0;padding:18px;gap:18px}
html[data-design=video] .object-phone-workplace .list-item small{color:var(--subtle);line-height:1.6}
html[data-design=video] .object-phone-workplace .list-item .actions{gap:10px;align-items:flex-start}
html[data-design=video] .object-phone-workplace .form-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:18px;margin-top:6px;border-top:1px solid var(--line)}
html[data-design=video] .object-phone-workplace form>h2{margin:0 0 8px}
html[data-design=video] .object-phone-workplace label{gap:8px}
html[data-design=video] #object-enrollment-form>label:not(.checkbox-line){display:grid;gap:8px;margin:18px 0}
html[data-design=video] #object-enrollment-form .checkbox-line{display:flex;align-items:center;gap:10px}
html[data-design=video] #object-enrollment-form>p{line-height:1.65;overflow-wrap:anywhere}
@media(max-width:600px){html[data-design=video] .object-phone-workplace .topbar{padding:12px}html[data-design=video] .object-phone-workplace :is(input,select,textarea){font-size:16px}html[data-design=video] .object-phone-workplace .list-item{padding:16px}html[data-design=video] .object-phone-workplace .form-actions>button{flex:1 1 100%;max-width:100%}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .object-phone-workplace :is(button,a.button){transition:background-color 140ms ease,border-color 140ms ease}}

/* Tender workspace: consistent panel insets and quiet empty state. */
html[data-design=video] .tender-workspace-panel>.tender-template-open{margin:20px 20px 0}
html[data-design=video] .tender-workspace-panel>.employee-card-empty{margin:20px;padding:28px 20px;border:1px solid var(--line);background:var(--secondary);border-radius:14px;line-height:1.65}
html[data-design=video] .tender-workspace-panel>.form-actions:empty{display:none}
html[data-design=video] .tender-workspace-panel>.form-actions:not(:empty){padding:16px 20px;margin:0;display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:540px){html[data-design=video] .tender-workspace-panel>.tender-template-open{margin:16px 16px 0}html[data-design=video] .tender-workspace-panel>.employee-card-empty{margin:16px;padding:24px 16px}}

/* Communicator shares the application palette, spacing and control language. */
html[data-design=video] .communicator-toolbar h1{font-size:1.714286rem;font-weight:600;line-height:1.3;color:var(--ink);letter-spacing:-.02em}
html[data-design=video] .communicator-actions{flex-wrap:wrap;gap:8px;max-width:100%}
html[data-design=video] .communicator-actions>button,html[data-design=video] .communicator-more>summary{min-height:42px;height:auto;border-radius:12px}
html[data-design=video] .communicator-more>summary{width:42px;height:42px}
html[data-design=video] .communicator-actions>.chat-create-group{background:var(--accent-soft);color:var(--green);border-color:var(--line)}
html[data-design=video] .content>.messenger-shared{gap:16px}
html[data-design=video] .content>.messenger-shared>:is(.messenger-sidebar,.chat-main){border-radius:18px}
html[data-design=video] .messenger-shared .chat-search{padding:16px 16px 12px}
html[data-design=video] .messenger-shared .chat-search input{border-radius:11px;background:var(--surface)}
html[data-design=video] .messenger-shared .chat-tabs{padding:0 12px 12px;gap:4px;flex-wrap:wrap}
html[data-design=video] .messenger-shared .chat-tabs button{font-size:.857143rem;text-transform:none;padding:10px 6px;border:0;border-radius:9px;line-height:1.4;min-height:38px}
html[data-design=video] .messenger-shared .chat-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--green);font-weight:600}
html[data-design=video] .messenger-shared .chat-contact{padding:14px 16px}
html[data-design=video] .messenger-shared .chat-header{padding:14px 16px;gap:12px;flex-wrap:wrap}
html[data-design=video] .messenger-shared .chat-empty{border:0;max-width:360px;line-height:1.7;padding:28px;color:var(--subtle)}
html[data-design=video] .messenger-shared .chat-bubble{border-radius:16px 16px 16px 5px}
html[data-design=video] .messenger-shared .chat-bubble.outgoing{border-radius:16px 16px 5px 16px}
html[data-design=video] .messenger-shared .chat-compose-compact{padding:14px 16px;gap:10px}
html[data-design=video] .communicator-more[open]>div{top:48px;padding:8px;border-radius:14px;z-index:20}
@media(max-width:540px){html[data-design=video] .communicator-toolbar{align-items:flex-start;gap:12px}html[data-design=video] .communicator-toolbar h1{font-size:1.428571rem}html[data-design=video] .communicator-actions>button{padding:8px 10px}html[data-design=video] .messenger-shared .chat-compose-compact{padding:10px}html[data-design=video] .messenger-shared .chat-search{padding:12px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .messenger-shared :is(.chat-tabs button,.chat-contact){transition:background-color 140ms ease,color 140ms ease}html[data-design=video]:not([data-motion=reduce]) .communicator-more[open]>div{animation:reference-popup-fade 140ms ease-out}}

/* Object map: filters, map controls and results share one readable hierarchy. */
html[data-design=video] .object-map-panel>.object-map-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,1.3fr) minmax(180px,1fr) minmax(220px,1.4fr);align-items:end;gap:16px;padding:20px;margin:0;border-bottom:1px solid var(--line)}
html[data-design=video] .object-map-filters>label:not(.checkbox-line){display:grid;gap:8px;min-width:0;font-size:.857143rem}
html[data-design=video] .object-map-filters :is(input:not([type=checkbox]),select){width:100%;min-width:0;max-width:100%}
html[data-design=video] .object-map-filters>.checkbox-line{display:flex;gap:10px;align-items:center;min-height:42px;line-height:1.5;margin:0}
html[data-design=video] .object-map-filters input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;accent-color:var(--green)}
html[data-design=video] .object-map-panel>.object-map-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;padding:16px 20px;margin:0}
html[data-design=video] .object-map-controls .map-type-label{gap:10px;min-width:0}
html[data-design=video] .object-map-controls #object-map-tile-status{flex:1 1 250px;line-height:1.5;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .object-map-panel>.dialog-body{padding:22px}
html[data-design=video] .map-result-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
html[data-design=video] .map-result-counts>div{padding:16px;background:var(--secondary);border:1px solid var(--line);border-radius:14px;min-width:0}
html[data-design=video] .map-result-counts dt{color:var(--subtle);line-height:1.5;font-size:.857143rem}
html[data-design=video] .map-result-counts dd{font-size:1.571429rem;font-weight:600;margin:8px 0 0;font-variant-numeric:tabular-nums}
html[data-design=video] #object-map-results .list-item{padding:18px 0;gap:16px;align-items:center}
html[data-design=video] #object-map-results .list-item>div{min-width:0;flex:1;overflow-wrap:anywhere}
html[data-design=video] #object-map-results .list-item small{line-height:1.65;margin-top:5px;color:var(--subtle)}
html[data-design=video] #object-map-results [data-map-locate]{flex-shrink:0}
html[data-design=video] .firm-map .leaflet-popup-content{line-height:1.65}
html[data-design=video] .firm-map .leaflet-popup-content-wrapper{border-radius:14px}
@media(max-width:1100px){html[data-design=video] .object-map-panel>.object-map-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){html[data-design=video] .object-map-panel>.object-map-filters{grid-template-columns:minmax(0,1fr);padding:16px}html[data-design=video] .object-map-panel>:is(.object-map-controls,.dialog-body){padding:16px}html[data-design=video] .map-result-counts{gap:8px}html[data-design=video] .map-result-counts>div{padding:12px 10px}html[data-design=video] .map-result-counts dt{font-size:.785714rem}html[data-design=video] #object-map-results .list-item{flex-wrap:wrap}html[data-design=video] #object-map-results .list-item>div{flex-basis:100%}}

/* Map result metadata remains readable alongside larger summary values. */
html[data-design=video] #object-map-results .list-item small{font-size:.857143rem}
html[data-design=video] .object-map-panel>.dialog-body>p{margin:16px 0;line-height:1.6;color:var(--subtle);font-size:.857143rem}

/* Balanced six-card dashboard groups respond to their actual content width. */
html[data-design=video] #dashboard-root{container-type:inline-size;container-name:dashboard-workspace}
html[data-design=video] .layout :is(.dashboard-metrics,.dashboard-tools){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@container dashboard-workspace (min-width:1700px){html[data-design=video] .layout :is(.dashboard-metrics,.dashboard-tools){grid-template-columns:repeat(6,minmax(0,1fr))}}
@container dashboard-workspace (max-width:850px){html[data-design=video] .layout :is(.dashboard-metrics,.dashboard-tools){grid-template-columns:repeat(2,minmax(0,1fr))}}
@container dashboard-workspace (max-width:520px){html[data-design=video] .layout :is(.dashboard-metrics,.dashboard-tools){grid-template-columns:minmax(0,1fr)}}

/* User administration: readable roles, wrapped actions and explicit form spacing. */
html[data-design=video] .users-role-help{margin:0 0 20px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
html[data-design=video] .users-role-help summary{cursor:pointer;font-weight:600;color:var(--ink);line-height:1.5}
html[data-design=video] .users-role-help p{margin:14px 0 0;line-height:1.7;color:var(--subtle);max-width:95ch}
html[data-design=video] .users-register table{min-width:1040px}
html[data-design=video] .users-register td{vertical-align:top;line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .users-register td:first-child{min-width:190px}
html[data-design=video] .users-register td:nth-child(3){min-width:160px}
html[data-design=video] .users-register td:last-child{min-width:270px;width:32%}
html[data-design=video] .user-row-actions{display:flex;flex-wrap:wrap;gap:8px}
html[data-design=video] .user-row-actions button{white-space:normal;text-align:left;line-height:1.4;min-height:38px;padding:8px 11px}
html[data-design=video] :is(#user-create-form,#user-access-form,#user-employee-form,#password-form) label{display:grid;gap:8px;min-width:0;line-height:1.5}
html[data-design=video] :is(#user-create-form,#user-access-form,#user-employee-form,#password-form)>label{margin-bottom:18px}
html[data-design=video] :is(#user-create-form,#user-access-form,#user-employee-form,#password-form)>p{line-height:1.65;margin:20px 0;overflow-wrap:anywhere}
html[data-design=video] :is(#user-create-form,#user-access-form,#user-employee-form,#password-form)>.error:empty{display:none}
html[data-design=video] :is(#user-create-form,#user-access-form,#user-employee-form,#password-form)>.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
@media(max-width:600px){html[data-design=video] .users-role-help{padding:16px}html[data-design=video] :is(#user-create-form,#user-access-form)>.form-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .users-role-help[open]>p{animation:reference-popup-fade 160ms ease-out}}

/* Sidebar scrollbar: keep the thumb inside rounded ends and subordinate to navigation. */
html[data-design=video][data-menu=vertical] .layout>aside{scrollbar-width:auto;scrollbar-color:auto}
html[data-design=video][data-menu=vertical] .layout>aside::-webkit-scrollbar{width:6px}
html[data-design=video][data-menu=vertical] .layout>aside::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--sidebar-muted) 35%,var(--sidebar-bg));border-radius:8px}
html[data-design=video][data-menu=vertical] .layout>aside::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--sidebar-muted) 65%,var(--sidebar-bg))}

/* Native modal dialogs own scrolling; background pages keep their position. */
html:has(dialog:modal){overflow:hidden;scrollbar-gutter:stable}
html[data-design=video] dialog:modal{overscroll-behavior:contain}

/* Optional client profile data remains discoverable without empty expanded tables. */
html[data-design=video] .client-profile-section{margin-block:20px;border-block-start:1px solid var(--line);padding-block-start:16px;min-width:0}
html[data-design=video] .client-profile-section>summary{cursor:pointer;font-weight:600;line-height:1.5;padding:8px 0;overflow-wrap:anywhere}
html[data-design=video] .client-profile-section>summary>span{display:inline-block;margin-inline-start:12px;color:var(--subtle);font-size:.857143rem;font-weight:400}
html[data-design=video] .client-profile-section[open]>.table-wrap{margin-top:12px}
html[data-design=video] .client-profile-section>summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:6px}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .client-profile-section[open]>:not(summary){animation:reference-popup-fade 160ms ease-out}}

/* Phone lists use individual cards, without a second surrounding frame. */
html[data-design=video] .object-phone-workplace .panel:has(>.list-item){background:transparent;border:0;box-shadow:none;overflow:visible}
html[data-design=video] .object-phone-workplace .list-item small{font-size:.928571rem}

/* Task workspace: readable rows and optional counter explanation. */
html[data-design=video] .task-register td{font-size:1rem}
html[data-design=video] .task-register td small{font-size:.857143rem;line-height:1.5}
html[data-design=video] .task-register>.task-register-summary{font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .task-register>.task-register-summary>summary{padding:0;font-weight:400;cursor:pointer}
html[data-design=video] .task-register-summary>p{margin:10px 0 0;max-width:70ch;line-height:1.6}
html[data-design=video] .task-register-summary>summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}
html[data-design=video] .task-register .task-register-counts>button{border-radius:12px;gap:6px;white-space:normal}

/* File overview: compact location and distinguishable recent documents. */
html[data-design=video] .file-library-location{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin:20px 0 24px;min-width:0}
html[data-design=video] .file-library-location>p{margin:0;line-height:1.5;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .file-library-location>[role=status]{margin-inline-start:auto;font-variant-numeric:tabular-nums}
html[data-design=video] .file-recent-context{display:block;overflow-wrap:anywhere;line-height:1.5;color:var(--subtle);font-size:.857143rem}
html[data-design=video] .file-recent-list .file-recent-context{grid-column:1/-1}
html[data-design=video] .file-recent-list>a{text-decoration:none}
html[data-design=video] .file-recent-list>a:hover strong{text-decoration:underline;text-underline-offset:3px}
html[data-design=video] .file-recent-list>a:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:8px}
@media(max-width:540px){html[data-design=video] .file-library-location{gap:10px;margin:16px 0}html[data-design=video] .file-library-location>.file-library-scope{flex-basis:100%;order:2}}

/* Modal scrolling and search results share the application palette. */
html[data-design=video] dialog:modal{scrollbar-width:auto;scrollbar-color:auto}
html[data-design=video] dialog:modal::-webkit-scrollbar{width:8px;height:8px}
html[data-design=video] dialog:modal::-webkit-scrollbar-track{margin:18px 0;background:var(--surface)}
html[data-design=video] dialog:modal::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 45%,var(--surface));border:2px solid var(--surface);border-radius:8px}
html[data-design=video] .global-search-result{font-size:1rem;line-height:1.5;padding:16px 12px;border-radius:12px}
html[data-design=video] .global-search-result:focus-visible{outline:2px solid var(--green);outline-offset:-2px;background:var(--accent-soft)}
html[data-design=video] .global-search-filters>label:not(.checkbox-line){color:var(--subtle);font-size:.928571rem;gap:8px}
html[data-design=video] .global-search-filters .checkbox-line{min-height:44px;margin:0;align-items:center;white-space:normal}
html[data-design=video] .global-search .error:empty{display:none}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .global-search-result{transition:background-color 120ms ease}}
@media(max-width:600px){html[data-design=video] .global-search-input input{font-size:16px}html[data-design=video] .global-search-result{padding:14px 4px}}

/* Employee card: consistent navigation and stable portrait area. */
html[data-design=video] .employee-card-navigation{padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;gap:8px;align-items:center}
html[data-design=video] .employee-card-navigation .employee-card-nav{border:0;padding:0;gap:6px;background:transparent}
html[data-design=video] .employee-card-navigation .employee-card-nav button{border:0;border-radius:10px;min-height:42px;padding:10px 14px;background:transparent;color:var(--subtle)}
html[data-design=video] .employee-card-navigation .employee-card-nav [aria-selected=true]{background:var(--accent-soft);color:var(--green)}
html[data-design=video] .employee-card-more{border:0;border-radius:10px;background:var(--secondary)}
html[data-design=video] .employee-card-more>summary{padding:12px;line-height:1.4}
html[data-design=video] .employee-card-section-picker{padding:4px;min-width:0;width:100%}
html[data-design=video] .employee-card-section-picker select{width:100%;margin-top:8px;min-width:0;min-height:44px}
html[data-design=video] .employee-portrait-empty{display:grid;place-items:center;width:150px;height:190px;max-width:100%;border-radius:16px;background:var(--accent-soft);color:var(--green);border:1px solid var(--line);font-size:3rem;font-weight:600}
html[data-design=video] .employee-card-person .employee-portrait{float:none;margin:0 0 16px}
html[data-design=video] .employee-card-person .record-photo{border-radius:16px}
html[data-design=video] .employee-card-person>.actions{margin-top:16px}
html[data-design=video] .employee-card-table table{font-size:1rem}
html[data-design=video] .employee-card-navigation :is(button,summary):focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* Shared compact navigation for object and post cards. */
html[data-design=video] .record-page-card .core-card-section-picker{padding:16px;background:var(--surface);color:var(--subtle);border:1px solid var(--line);border-radius:16px;min-width:0;font-size:.928571rem;line-height:1.5}
html[data-design=video] .record-page-card .core-card-section-picker select{display:flex;align-items:center;gap:8px;width:100%;min-width:0;max-width:100%;min-height:44px;margin-top:8px;color:var(--ink)}

/* Object documents: aligned upload controls and readable section counts. */
html[data-design=video] #object-card-panel:has(.object-card-upload)>.form-actions{margin:0 0 16px;padding:0;min-height:0}
html[data-design=video] .object-card-upload{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:8px 16px;margin-bottom:24px}
html[data-design=video] .object-card-upload>label{min-width:0;font-size:1rem;line-height:1.5}
html[data-design=video] .object-card-upload :is(select,input){width:100%;min-width:0;margin:0;min-height:48px}
html[data-design=video] .object-card-upload>small{grid-column:2;font-size:.857143rem;color:var(--subtle)}
html[data-design=video] #object-file-status:empty{display:none}
html[data-design=video] #object-file-status{grid-column:1/-1;margin:0}
html[data-design=video] .object-card-file-grid .object-card-section{padding:18px;border-radius:16px;box-shadow:none}
html[data-design=video] .object-card-file-grid h3{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:1rem;line-height:1.5;color:var(--ink);margin:0 0 12px;overflow-wrap:anywhere}
html[data-design=video] .object-card-file-grid h3>small{flex:none;min-width:26px;text-align:center;padding:2px 6px;border-radius:8px;background:var(--secondary);font-size:.857143rem;color:var(--subtle)}
html[data-design=video] .object-card-file-grid .muted{margin:0;font-size:.928571rem}
@media(max-width:650px){html[data-design=video] .object-card-upload{grid-template-columns:minmax(0,1fr)}html[data-design=video] .object-card-upload>small{grid-column:1}}

/* Coherent secondary navigation and route-heading focus. */
html[data-design=video] .record-page-card>.dialog-head h2[tabindex="-1"]:focus{outline:none}
html[data-design=video] .record-page-card>.dialog-head h2[tabindex="-1"]:focus-visible{border-radius:4px;box-shadow:-4px 0 0 var(--green);padding-inline-start:12px}
html[data-design=video] .object-card-subnav{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--secondary);margin-bottom:24px}
html[data-design=video] .object-card-subnav button{min-height:42px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--subtle);box-shadow:none;line-height:1.4}
html[data-design=video] .object-card-subnav button[aria-pressed=true]{background:var(--surface);border-color:var(--line);color:var(--green);font-weight:600}
html[data-design=video] .object-card-subnav button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
html[data-design=video] #object-card-panel .empty{min-height:140px;padding:28px 16px}
html[data-design=video] #object-card-panel #object-card-map .empty{min-height:0;padding:16px}
@media(max-width:650px){html[data-design=video] .object-card-subnav{width:100%}html[data-design=video] .object-card-subnav button{flex:1 1 auto}}

/* Object service journals: actions belong to their section heading. */
html[data-design=video] .object-service-section+.object-service-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
html[data-design=video] .object-service-section>.core-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
html[data-design=video] .object-service-section h3{font-size:1.071429rem;line-height:1.5;margin:0;min-width:0;overflow-wrap:anywhere}
html[data-design=video] .object-service-section .form-actions:empty{display:none}
@media(max-width:650px){html[data-design=video] .object-service-section>.core-section-heading{align-items:stretch;flex-direction:column}html[data-design=video] .object-service-section>.core-section-heading>button{width:100%}}

/* On-demand instructions for shared-object phones. */
html[data-design=video] .object-enrollment-guide{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);line-height:1.6}
html[data-design=video] .object-enrollment-guide summary{cursor:pointer;color:var(--green);font-weight:600;padding:8px 0}
html[data-design=video] .object-enrollment-guide summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}
html[data-design=video] .object-enrollment-guide p{max-width:76ch;color:var(--subtle);margin:8px 0}

/* Employee secondary tabs and filters share the available width. */
html[data-design=video] .employee-card-more>.employee-card-nav{max-width:none;width:100%;padding:4px 8px 8px}
html[data-design=video] .employee-workspace>.employee-card-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:20px 0}
html[data-design=video] .employee-workspace>.employee-card-toolbar>label:not(.checkbox-line){display:grid;gap:6px;min-width:180px;font-size:.928571rem;color:var(--subtle)}
html[data-design=video] .employee-workspace>.employee-card-toolbar>label>input[type=date]{margin:0;width:100%;min-height:44px;color:var(--ink)}
html[data-design=video] .employee-workspace>.employee-card-toolbar>.checkbox-line{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--secondary);margin:0;line-height:1.4}
html[data-design=video] .employee-workspace>.employee-card-toolbar>.checkbox-line>input{margin:0;flex:none}
html[data-design=video] .employee-workspace>.employee-card-toolbar>button.primary{margin-inline-start:auto;min-height:44px}
html[data-design=video] .employee-workspace>.form-actions:empty{display:none}
@media(max-width:700px){html[data-design=video] .employee-workspace>.employee-card-toolbar>label{flex:1 1 100%;min-width:0}html[data-design=video] .employee-workspace>.employee-card-toolbar>button.primary{width:100%;margin-inline-start:0}}

/* Review 104: calm header controls and aligned employment actions. */
html[data-design=video] .layout .topbar>.mobile-menu{position:static!important;inset:auto!important;flex:none;width:40px;height:40px;min-width:40px;padding:8px;border:0;border-radius:9px;box-shadow:none;background:transparent!important;color:var(--header-icon)!important}
html[data-design=video] .layout .topbar>.mobile-menu:hover,html[data-design=video] .layout .topbar>.mobile-menu[aria-expanded=true]{background:var(--header-hover)!important}
html[data-design=video] .topbar .organization-switcher>label{position:relative}
html[data-design=video] .topbar .organization-switcher>label::after{content:"";position:absolute;right:14px;bottom:16px;width:6px;height:6px;border-right:1.5px solid var(--header-ink);border-bottom:1.5px solid var(--header-ink);transform:rotate(45deg);pointer-events:none}
html[data-design=video] .topbar .organization-switcher select{appearance:none;background-image:none;line-height:normal;padding-block:0}
html[data-design=video] .topbar .organization-switcher #organization-add{font-size:0;align-self:flex-end}
html[data-design=video] .topbar .organization-switcher #organization-add::before{content:"";width:12px;height:12px;background:linear-gradient(currentColor,currentColor) center/12px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 12px no-repeat}
html[data-design=video] .employee-job-actions{display:grid;gap:8px;min-width:200px}
html[data-design=video] .employee-job-actions>button{margin:0;min-height:40px;text-align:left;white-space:normal;line-height:1.4}
html[data-design=video] .employee-card-table td{vertical-align:top}
@media(max-width:700px){html[data-design=video] .employee-job-actions{min-width:0}html[data-design=video] .employee-job-actions>button{width:100%}}

html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu{border:0!important;box-shadow:none!important;background:transparent!important;align-self:flex-end;height:36px;min-height:36px;width:36px;min-width:36px;margin:0}
html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu:hover,html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu[aria-expanded=true]{background:var(--header-hover)!important}

/* Selected white/coffee finishes share one layout. */
html[data-design=video][data-finish=coffee] :is(.panel,.file-storage,.file-library-toolbar,.employee-card-navigation,.employee-card-section){box-shadow:8px 8px 22px #7b6c571a,-5px -5px 16px #ffffff70;border-color:var(--line)}
html[data-design=video][data-finish=coffee] :is(button,.button,input,select){border-radius:12px}
html[data-design=video][data-finish=coffee] .file-folder-art{filter:drop-shadow(3px 5px 4px #75614c30)}
.personal-card-register .toolbar{display:flex;align-items:end;gap:16px;padding:20px;flex-wrap:wrap}
.personal-card-register .toolbar>label:not(.checkbox-line){display:grid;gap:6px;flex:1;min-width:200px}
.personal-card-register .table-wrap{overflow:auto}.personal-card-register table{min-width:850px}

/* Selected office screens: identical composition in white and coffee. */
.office-home{margin:20px 0 28px}.office-home-title{font-size:1.8rem;margin:0 0 20px;font-weight:650}
.office-home-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px}
.office-home-column>section{min-width:0;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.office-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.office-section-head h3{margin:0;font-size:1.05rem}.office-section-head>div{display:flex;gap:12px;align-items:center}
.office-section-head a{font-size:.9rem;text-decoration:none}.office-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.office-quick-actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:106px;border:0;background:var(--accent-soft);color:var(--green);border-radius:14px;padding:12px;white-space:normal;line-height:1.4}
.office-quick-actions .opora-icon{width:26px;height:26px}.office-quick-actions>button:nth-child(2n){background:var(--secondary-soft);color:var(--secondary-accent)}
/* Calendar entry: the assistant is primary; manual entry is secondary. */
.office-today .office-plan-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px}
.office-plan-heading>h3{min-width:0;overflow-wrap:anywhere}
.office-plan-heading>a{font-size:.857143rem;white-space:nowrap}
.office-today .office-section-head.office-plan-heading>.office-plan-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;align-items:stretch;min-width:0}
.office-plan-actions>.voice-plan-entry{margin-inline-start:0;align-self:stretch}
.office-plan-actions>.voice-plan-entry>button{height:100%}
.office-plan-actions :is(button,.voice-plan-assistant){min-height:36px;padding:7px 12px;font-size:.857143rem;white-space:normal;line-height:1.4}
.voice-plan-entry>.voice-plan-assistant:only-child{border-radius:10px}
@media(max-width:420px){.office-today .office-section-head.office-plan-heading>.office-plan-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.office-plan-actions>.voice-plan-entry,.office-plan-actions>.voice-plan-entry>button{width:100%}}
@media(max-width:359px){.office-today .office-plan-create>label{flex-basis:100%}.office-today .office-plan-create>button{margin-inline-start:auto}}

.office-plan-item{display:grid;grid-template-columns:78px minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.office-plan-item:last-child{border:0}.office-plan-time{color:var(--green);font-variant-numeric:tabular-nums}.office-plan-item .dashboard-event{padding:0;border:0}
.office-recent-document{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}.office-recent-document:last-child{border:0}.office-recent-document>span:last-child{min-width:0}.office-recent-document strong{display:block;font-weight:500;overflow-wrap:anywhere}.office-recent-document small{display:block;color:var(--subtle);font-size:.86rem;margin-top:4px}
.office-document-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.office-document-shortcuts>a{display:flex;align-items:center;gap:10px;padding:14px;border-radius:12px;background:var(--secondary);color:var(--ink);text-decoration:none}.office-document-shortcuts small{margin-left:auto;color:var(--subtle)}
.office-legacy{margin:24px 0}.office-legacy>summary{cursor:pointer;padding:16px;background:var(--surface);border-radius:12px;color:var(--subtle);border:1px solid var(--line)}.office-legacy[open]>summary{margin-bottom:20px}
.office-employees{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px;align-items:start;padding:18px}.office-employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.office-employee-card{min-width:0;border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface)}
.office-employee-card:has([aria-pressed=true]){border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.office-employee-select{display:flex;align-items:flex-start;gap:14px;width:100%;padding:0;border:0;background:transparent;text-align:left;color:var(--ink);white-space:normal}.office-employee-select>span:last-child{min-width:0}.office-employee-select strong{display:block;line-height:1.5}.office-employee-select small{display:block;color:var(--subtle);margin-top:4px;line-height:1.5}
.office-employee-select :is(.primary-record-photo,.primary-photo-placeholder){position:static!important;float:none!important;width:80px!important;height:106px!important;object-fit:cover;border-radius:10px;flex:none;display:grid;place-items:center;background:var(--accent-soft);font-size:2rem;color:var(--green)}
.office-employee-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}.office-document-status{padding:7px 9px;background:var(--secondary);border:1px solid var(--line);border-radius:9px;display:grid;gap:3px;min-width:54px;color:var(--subtle)}.office-document-status small{max-width:76px;font-size:.72rem;line-height:1.25;white-space:normal}.office-document-status span{font-size:.85rem;font-weight:600}
.office-employee-foot{display:flex;justify-content:space-between;gap:10px;margin-top:16px;flex-wrap:wrap;font-size:.85rem}.office-employee-inspector{position:sticky;top:18px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;min-width:0}.office-employee-profile .primary-record-photo,.office-employee-profile .primary-photo-placeholder{position:static!important;width:96px!important;height:124px!important;object-fit:cover;border-radius:12px;float:left!important;margin:0 16px 16px 0!important;display:grid;place-items:center;background:var(--accent-soft);color:var(--green)}.office-employee-profile{display:flow-root}.office-employee-profile h3{margin:0;font-size:1.05rem;line-height:1.5}.office-employee-profile small{color:var(--subtle)}
.office-inspector-document{display:grid;gap:5px;width:100%;text-align:left;white-space:normal;padding:12px;margin-bottom:8px;background:var(--secondary);border:1px solid var(--line);border-radius:10px;color:var(--ink)}.office-inspector-document strong{font-size:.93rem;font-weight:500}.office-inspector-document span,.office-inspector-document small{font-size:.82rem;color:var(--subtle)}
:is(.office-document-status,.office-inspector-document):is(.state-expired,.state-failed,.state-absent){border-color:var(--status-danger-border);background:var(--status-danger-surface);color:var(--status-danger-ink)}:is(.office-document-status,.office-inspector-document).state-expiring{border-color:var(--status-warning-border);background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-design=video] .file-library-folder,html[data-design=video] .file-library-folder:hover{padding:0;min-height:0;display:flex;align-items:stretch;gap:8px;background:transparent;box-shadow:none;border:0;isolation:auto}
html[data-design=video] .file-library-folder>.file-folder-art{position:static;width:100%;height:auto;aspect-ratio:4/3;max-width:200px;align-self:center;z-index:auto}
html[data-design=video] .file-library-folder>span{width:100%;padding:0 12px;min-height:0;background:transparent;border:0;box-shadow:none;border-radius:0;transform:none}.file-library-folder>span::before{display:none!important}
html[data-design=video] .file-folder-art .folder-face{stroke:var(--folder-edge);stroke-width:.4}.file-folder-art .folder-front{filter:drop-shadow(0 4px 4px var(--folder-shadow))}
html[data-design=video] .file-library-folder strong{font-size:.95rem}html[data-design=video] .file-library-folder small{margin-top:6px}
html[data-finish=coffee] :is(.office-home-column>section,.office-employee-card,.office-employee-inspector){box-shadow:6px 7px 18px #75664e20,-5px -5px 16px #ffffff70}
.olrr-notice{display:grid;gap:5px;min-width:170px;padding:10px;border-radius:8px;background:var(--secondary);font-size:.9rem}.olrr-notice.state-late{background:var(--status-danger-surface);color:var(--status-danger-ink)}.olrr-notice.state-done{background:var(--status-success-surface);color:var(--status-success-ink)}
@media(max-width:1100px){.office-employees{grid-template-columns:minmax(0,1fr) 300px}.office-employee-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.office-home-grid,.office-employees{grid-template-columns:minmax(0,1fr)}.office-employee-inspector{position:static}.office-quick-actions{gap:8px}.office-home-column>section{padding:16px}.office-section-head{flex-wrap:wrap}.office-plan-item{grid-template-columns:65px minmax(0,1fr);gap:8px}.office-document-shortcuts{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) :is(.office-quick-actions>button,.office-employee-card){transition:border-color 140ms ease,box-shadow 140ms ease,background-color 140ms ease}}

/* Keep the file workspace compact enough to see folders above the fold. */
html[data-design=video] .file-storage{padding:14px 18px;margin-bottom:16px}
html[data-design=video] .file-storage>small{display:none}
html[data-design=video] .file-library-toolbar{padding:16px;margin-bottom:16px}
html[data-design=video] .file-library-filter-actions{padding-top:10px;margin-top:12px}
html[data-design=video] .file-library-location{margin-block:12px}
html[data-design=video] .file-library-folders,html[data-design=video] .personal-folder-grid{grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:20px 16px}
html[data-design=video] .file-library-folder>.file-folder-art{max-width:150px}
html[data-design=video] .file-library-folder .folder-front{visibility:visible}
html[data-design=video] .personal-folder-section h2{font-size:1.05rem;margin-block:18px 12px}
@media(min-width:721px){html[data-design=video] .file-library-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* A shared scalable visual vocabulary for office records and files. */
.office-document-status>.opora-icon{width:23px;height:23px;justify-self:center}.office-document-status{min-width:47px;justify-items:center;padding:9px 8px}.office-document-status>small{font-size:.7rem}.office-inspector-document>.opora-icon{width:23px;height:23px;float:left}.office-inspector-document{grid-template-columns:24px minmax(0,1fr);column-gap:10px}.office-inspector-document>.opora-icon{grid-row:1/4}.office-inspector-document>:not(svg){grid-column:2}
.office-file-badge{display:inline-grid;justify-items:center;align-content:center;gap:2px;flex:none;min-width:42px;height:46px;border-radius:10px;background:var(--status-info-surface);color:var(--status-info-ink)}.office-file-badge>.opora-icon{width:24px;height:24px}.office-file-badge>small{font-size:.57rem!important;font-weight:700;line-height:1;margin:0!important;color:inherit!important}.file-kind-excel{background:var(--status-success-surface);color:var(--status-success-ink)}.file-kind-pdf{background:var(--status-danger-surface);color:var(--status-danger-ink)}.file-kind-archive{background:var(--status-warning-surface);color:var(--status-warning-ink)}.file-kind-image{background:var(--accent-soft);color:var(--green)}
.office-recent-document{text-decoration:none!important}.office-recent-document:hover strong{text-decoration:underline}.office-recent-document .file-recent-context{font-size:.8rem}
.office-quick-actions>button[data-home-action=tasks]{background:#edf3ff;color:#2858a8}.office-quick-actions>button[data-home-action=employees]{background:#eaf6f0;color:#287052}.office-quick-actions>button[data-home-action=file-library]{background:#f1ecfb;color:#7350ad}.office-quick-actions>button[data-home-action=shifts]{background:#fff1e5;color:#a2561b}.office-quick-actions>button[data-home-action=objects]{background:#e9f3fc;color:#2869a2}.office-quick-actions>button[data-home-action=contracts]{background:#fbeaf0;color:#a53c63}
html[data-theme=dark] .office-quick-actions>button{background:var(--secondary)!important;color:var(--ink)!important}
html[data-design=video] .global-search-trigger{min-width:105px;padding-inline:16px;background:var(--surface);border-color:var(--line);gap:10px}
.global-search-bar{display:flex;gap:12px;align-items:center;background:var(--secondary);border:1px solid var(--line);border-radius:14px;padding:8px 10px 8px 16px}.global-search-bar>.opora-icon{flex:none;color:var(--subtle);width:24px;height:24px}.global-search-bar .global-search-input{flex:1;min-width:0;margin:0}.global-search-bar input[type=search]{border:0!important;box-shadow:none!important;background:transparent!important;outline-offset:3px;min-height:42px;padding:6px!important;margin:0}.global-search-bar>.primary{flex:none;min-height:40px;margin:0;padding-inline:20px}.global-search-filters{margin-top:18px}.global-search-filters>.checkbox-line{padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--secondary)}.global-search-scope{margin-top:16px;color:var(--subtle)}
.file-shelf-title{font-size:1.1rem;margin:18px 0 12px}.file-overview{margin-top:24px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.file-overview h2{margin:0;font-size:1.1rem}.file-overview table{min-width:820px}.file-overview .table-wrap{overflow:auto}.file-overview-name{display:flex;gap:12px;align-items:center}.file-overview-name strong{overflow-wrap:anywhere;max-width:320px;font-weight:500}.file-overview td{vertical-align:middle}.file-overview td:nth-child(3){white-space:nowrap;font-variant-numeric:tabular-nums}
.file-recent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.file-recent-block{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.file-recent-block h2{font-size:1.1rem;margin:0 0 12px}.file-recent-block .file-recent-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.file-recent-block .file-recent-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:3px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;background:transparent;box-shadow:none;text-decoration:none;min-width:0}.file-recent-card>.office-file-badge{grid-row:1/5}.file-recent-card>strong{font-size:.95rem;font-weight:500;overflow-wrap:anywhere}.file-recent-card>small{font-size:.8rem;color:var(--subtle)}.file-recent-block .file-recent-list>a{padding:12px 0;border-bottom:1px solid var(--line);display:grid;gap:3px;text-decoration:none}.file-recent-block .file-recent-list strong{font-weight:500}.file-recent-block .file-recent-list small{color:var(--subtle)}.file-recent-books{grid-column:1/-1}
html[data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+1),html[data-folder-palette=mixed] .personal-folder-grid>div:nth-child(6n+1){--folder-local:#a5c7f1}html[data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+2){--folder-local:#c3b0ec}html[data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+3){--folder-local:#f0d18c}html[data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+4){--folder-local:#add6b6}html[data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+5){--folder-local:#e9b4c8}html[data-folder-palette=mixed] .file-library-folders>li:nth-child(6n){--folder-local:#a4d8dc}
html[data-design=video] .file-folder-art .folder-face{stroke:color-mix(in srgb,var(--folder-local,var(--folder-color)),#000 20%)}html[data-design=video] .file-folder-art .folder-back{}html[data-design=video] .file-folder-art .folder-tab{fill:color-mix(in srgb,var(--folder-local,var(--folder-color)),#fff 30%)}.folder-kind-icon{fill:#314458;opacity:.75}
html[data-design=video] .file-library-folder>.file-folder-art{max-width:160px}.file-storage{max-width:100%}
@media(max-width:720px){.file-recent{grid-template-columns:minmax(0,1fr)}.file-overview,.file-recent-block{padding:16px}.global-search-bar{gap:6px;padding-left:10px}.global-search-bar>.opora-icon{width:20px}.global-search-bar>.primary{padding-inline:12px}}

/* Semantic pictograms: icon inherits the action/type/status color. */
html[data-design=video] :is(.office-quick-actions,.office-document-shortcuts,.office-document-status,.office-inspector-document,.office-file-badge) .material-icon{color:inherit!important}
.office-document-shortcuts>a[href="#contracts"]{background:var(--status-info-surface);color:var(--status-info-ink)}
.office-document-shortcuts>a[href="#employee_documents"]{background:var(--status-success-surface);color:var(--status-success-ink)}
.office-document-shortcuts>a[href="#personnel_orders"]{background:var(--accent-soft);color:var(--green)}
.office-document-shortcuts>a[href="#corporate_documents"]{background:var(--status-warning-surface);color:var(--status-warning-ink)}
.office-document-shortcuts>a[href="#document_templates"]{background:var(--secondary);color:var(--subtle)}
.office-document-shortcuts small{color:inherit;opacity:.8}
html[data-design=video] .layout>aside .nav{--nav-symbol:var(--status-info-ink)}
html[data-design=video] .layout>aside .nav:is([href="#employees"],[href="#employments"],[href="#employee_documents"],[href="#personal-card-register"],[href="#checks"],[href="#personnel_orders"]){--nav-symbol:var(--status-success-ink)}
html[data-design=video] .layout>aside .nav:is([href="#salary-registers"],[href="#timesheet"],[href="#payroll-preview"],[href="#hourly_rates"],[href="#supply"],[href="#assets"]){--nav-symbol:var(--status-warning-ink)}
html[data-design=video] .layout>aside .nav:is([href="#contracts"],[href="#clients"],[href="#tenders"]){--nav-symbol:var(--status-danger-ink)}
html[data-design=video] .layout>aside .nav:is([href="#file-library"],[href="#document_templates"],[href="#generated-documents"]){--nav-symbol:var(--green)}
html[data-design=video] .layout>aside .nav>.material-icon{color:var(--nav-symbol)!important}

/* File type labels share the pictogram foreground, independent of theme accent. */
html:is([data-design=video],[data-design=classic]) .office-file-badge{background:var(--file-text-surface);color:var(--file-text-ink);border:1px solid var(--file-text-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-word{background:var(--file-word-surface);color:var(--file-word-ink);border-color:var(--file-word-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-excel{background:var(--file-excel-surface);color:var(--file-excel-ink);border-color:var(--file-excel-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-pdf{background:var(--file-pdf-surface);color:var(--file-pdf-ink);border-color:var(--file-pdf-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-image{background:var(--file-image-surface);color:var(--file-image-ink);border-color:var(--file-image-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-archive{background:var(--file-archive-surface);color:var(--file-archive-ink);border-color:var(--file-archive-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-text{background:var(--file-text-surface);color:var(--file-text-ink);border-color:var(--file-text-border)}
html:is([data-design=video],[data-design=classic]) .office-file-badge>:is(svg,small){color:inherit!important}

/* Stable document counters and an in-flow header search. */
.office-document-shortcuts>a{display:grid;grid-template-columns:22px minmax(0,1fr) 24px;gap:8px;padding:12px;min-width:0;min-height:68px}
.office-document-shortcuts>a>.opora-icon{width:22px;height:22px;flex:none}
.office-document-shortcuts>a>span{min-width:0;overflow-wrap:anywhere;line-height:1.35}
.office-document-shortcuts>a>small{margin:0;display:grid;place-items:center;min-width:24px;height:24px;border-radius:8px;background:var(--surface);font-variant-numeric:tabular-nums;opacity:1}
.global-search-panel{position:relative;margin:0 24px 20px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);animation:office-search-in .18s ease-out}
.global-search-panel .global-search-bar{padding-right:48px}
.global-search-close{position:absolute;right:30px;top:29px;min-width:32px;width:32px;height:40px;padding:0;border:0;background:transparent;color:var(--subtle)}
.global-search-panel :is(.global-search-status,.error):empty{display:none}
.global-search-panel .global-search-results:empty{display:none}
.global-search-panel .global-search-filters{margin-top:12px}
@keyframes office-search-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){.global-search-panel{margin:0 12px 16px;padding:12px}.global-search-close{right:20px;top:21px}}
@media(prefers-reduced-motion:reduce){.global-search-panel{animation:none}}

/* Search expands inside the existing organization slot. */
html[data-design=video] .topbar.search-expanded>.organization-switcher,html[data-design=video] .topbar.search-expanded>#global-search-open{display:none!important}
html[data-design=video] .topbar>.global-search-panel{position:relative;flex:1 1 300px;min-width:0;margin:0;padding:0;border:0;border-radius:12px;background:transparent;animation:office-search-in .2s ease-out;align-self:center}
.topbar>.global-search-panel .global-search-bar{padding:3px 40px 3px 10px;gap:8px;min-height:44px;background:var(--surface)}
.topbar>.global-search-panel .global-search-bar input[type=search]{min-height:36px;font-size:.93rem}
.topbar>.global-search-panel .global-search-bar>.primary{min-height:34px;padding-inline:12px}
.topbar>.global-search-panel .global-search-close{right:5px;top:5px;height:36px;z-index:2}
.global-search-dropdown{position:absolute;left:0;right:0;top:calc(100% + 10px);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px var(--folder-shadow);padding:12px;z-index:50;max-height:min(65vh,560px);overflow:auto}
.global-search-options>summary{cursor:pointer;list-style:none;font-size:.82rem;color:var(--subtle);padding:4px 2px}
.global-search-options>summary::after{content:' +';font-weight:600}.global-search-options[open]>summary::after{content:' −'}
.global-search-dropdown .global-search-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.global-search-dropdown .global-search-filters>.checkbox-line{display:flex;align-items:center;flex-direction:row;grid-column:1/-1;gap:8px;padding:8px 0;border:0;background:transparent}
.global-search-dropdown .global-search-filters input[type=checkbox]{width:16px;height:16px;margin:0}
html[data-design=video] .topbar.search-expanded .account-menu>summary>span:not(.avatar){display:none}
@media(max-width:600px){html[data-design=video] .topbar.search-expanded .account-menu{display:none}.global-search-dropdown .global-search-filters{grid-template-columns:minmax(0,1fr)}.topbar>.global-search-panel .global-search-bar>.primary{padding-inline:8px}.global-search-dropdown{left:-40px;min-width:250px}}

html[data-design=video] .topbar.search-expanded>.company{display:none!important}
html[data-design=video] .topbar.search-expanded>.user{flex:0 0 auto;min-width:0}
html[data-design=video] .topbar.search-expanded>.user .account-menu>summary{max-width:76px}
.global-search-filter-toggle{flex:none;width:34px;min-width:34px;height:34px;padding:6px;border:0;background:transparent;color:var(--subtle)}
.global-search-filter-toggle>.opora-icon{width:20px;height:20px;color:inherit!important}
.global-search-dropdown[hidden]{display:none!important}
@media(max-width:1100px){.office-document-shortcuts{grid-template-columns:minmax(0,1fr)}.office-document-shortcuts>a{min-height:52px}.office-document-shortcuts>a>span{overflow-wrap:normal;word-break:normal}}

.office-home>.dashboard-metrics{margin:0 0 22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.office-home>.dashboard-metrics .dashboard-metric{padding:16px;min-height:120px}
.office-legacy>.dashboard-company,.office-legacy>.dashboard-columns{display:none!important}
.office-operations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}
.office-operations>.panel{margin:0;min-width:0}
.office-map-disclosure{border:1px solid var(--line);border-radius:18px;background:var(--surface);margin:22px 0;overflow:hidden}
.office-map-disclosure>summary{cursor:pointer;padding:20px;font-weight:600;display:flex;justify-content:space-between;gap:12px;align-items:center}
.office-map-disclosure>summary>span{font-weight:400;font-size:.8rem;color:var(--subtle)}
.office-map-disclosure .dashboard-map-panel{border:0;margin:0;border-radius:0;box-shadow:none}
.office-map-disclosure .dashboard-map-panel .panel-head h2{display:none}
.office-map-disclosure #dashboard-post-map{height:340px;min-height:240px;max-height:720px;resize:vertical;overflow:hidden}
.office-plan-date{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:.88rem;text-transform:capitalize}
.office-plan-date time{font-variant-numeric:tabular-nums;background:var(--accent-soft);color:var(--green);padding:5px 8px;border-radius:8px}
.office-plan-create{display:flex;gap:10px;align-items:flex-end;margin-bottom:12px}.office-plan-create>label{font-size:.75rem;color:var(--subtle);flex:1;min-width:0}.office-plan-create input{width:100%;height:36px;padding:6px 10px;margin:3px 0 0}.office-plan-create>button{font-size:.8rem;min-height:36px;padding:6px 10px}
.office-plan-empty{font-size:.8rem;color:var(--subtle);margin:10px 0}
.office-day-timeline{height:285px;overflow:auto;scrollbar-gutter:stable;padding-right:8px;overscroll-behavior:contain;border-top:1px solid var(--line)}
.office-hour{display:grid;grid-template-columns:50px minmax(0,1fr);min-height:48px}
.office-hour-label{border:0;background:transparent;padding:8px 4px;align-self:start;font-size:.76rem;color:var(--subtle);font-variant-numeric:tabular-nums;text-align:left}
.office-hour-label:hover{color:var(--green);background:var(--accent-soft)}
.office-hour-events{border-top:1px solid var(--line);border-left:1px solid var(--line);padding:4px 0 4px 8px;min-height:48px;box-sizing:border-box}
.office-timed-event{display:flex;gap:8px;border-left:3px solid var(--green);border-radius:6px;background:var(--accent-soft);padding:7px;margin-bottom:4px;min-width:0}
.office-timed-event>time{font-size:.75rem;color:var(--green);font-variant-numeric:tabular-nums}.office-timed-event .dashboard-event{padding:0;border:0;min-width:0}.office-timed-event .dashboard-event small{font-size:.7rem}
.office-month-calendar{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}.office-month-calendar>summary{font-size:.82rem;color:var(--subtle);cursor:pointer}.office-month-calendar .panel{border:0;box-shadow:none;margin:10px 0 0}
.office-undated{border-top:1px solid var(--line);margin-top:12px}.office-undated h4{font-size:.84rem}
@media(max-width:1050px){.office-operations{grid-template-columns:minmax(0,1fr)}.office-home>.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.office-home>.dashboard-metrics .dashboard-metric{padding:12px;min-height:110px}.office-plan-create{flex-wrap:wrap}.office-map-disclosure>summary{padding:16px}.office-map-disclosure>summary>span{max-width:100px;text-align:right}}

/* Compact overview keeps the daily work area near the top. */
html[data-design=video] .layout .office-home>.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric{min-height:102px;padding:13px;gap:6px}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric>strong{font-size:1.6rem}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-title{font-size:.86rem;gap:7px}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-foot{font-size:.75rem}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric[href="#objects"]{--metric-color:var(--status-info-ink)}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric:is([href="#employees"],[href="#shifts"]){--metric-color:var(--status-success-ink)}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric[href="#posts"]{--metric-color:var(--green)}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric[href="#patrol-journal"]{--metric-color:var(--status-warning-ink)}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric[href="#event-journal"]{--metric-color:var(--status-danger-ink)}
html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-title>.material-icon{color:var(--metric-color)!important}
@media(max-width:600px){html[data-design=video] .layout .office-home>.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.office-home-column{display:flex;flex-direction:column;gap:20px;min-width:0;align-self:start}
.office-home-column>section{flex:none}
@media(max-width:760px){.office-home-column{display:contents}.office-home-column>section{order:var(--home-order)}}

.office-home-column>.dashboard-panel{padding:0;overflow:hidden}
.office-operations{grid-template-columns:minmax(0,1fr)}
.office-operations #dashboard-operations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;padding:0 18px 16px}
.office-operations #dashboard-operations .dashboard-period{grid-column:1/-1}
@media(max-width:600px){.office-operations #dashboard-operations{grid-template-columns:minmax(0,1fr)}}

/* Legacy panels must size to their actual content. */
html[data-design=video] .layout :is(.office-home-column,.office-operations)>.dashboard-panel{height:auto;min-height:0;max-height:none}
html[data-design=video] .layout .office-home-column>.dashboard-panel .dashboard-empty{min-height:0;padding:16px 18px;margin:0;text-align:left}
.office-map-disclosure>summary{padding:16px 20px;justify-content:flex-start}
.office-map-disclosure>summary>.map-open-button{margin-left:auto;min-height:34px;font-size:.82rem;line-height:1.2;padding:9px 14px;text-decoration:none}
.office-map-disclosure>summary>span:last-child{font-size:0;width:18px;height:18px;flex:none;max-width:none}
.office-map-disclosure>summary>span:last-child::after{content:'';display:block;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:3px;transition:transform .18s ease}
.office-map-disclosure[open]>summary>span:last-child::after{transform:rotate(225deg);margin-top:7px}
@media(prefers-reduced-motion:reduce){.office-map-disclosure>summary>span:last-child::after{transition:none}}

/* Balanced top row; long document list spans the complete workspace. */
.office-home-grid{align-items:stretch}.office-home-column{align-self:stretch}
.office-home-column:first-child>.office-today{flex:1;display:flex;flex-direction:column}
.office-today>[data-home-agenda]{flex:1;display:flex;flex-direction:column}
.office-today .office-day-timeline{flex:1;min-height:285px}
.office-home-recent{margin-top:20px;min-width:0;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.office-home-recent .office-recent-document>span:last-child{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,1.5fr);gap:4px 18px;align-items:center}
.office-home-recent .office-recent-document>span:last-child>small:last-child{grid-column:1/-1}
.office-home-recent .office-recent-document{padding:12px 0}
.office-operations{display:block;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
html[data-design=video] .layout .office-operations>.dashboard-panel{border:0;border-radius:0;box-shadow:none;background:transparent}
.office-operations>.dashboard-panel+.dashboard-panel{border-top:1px solid var(--line)!important}
.office-operations #dashboard-attention{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px;padding:0 18px 12px}
.office-operations #dashboard-attention .dashboard-count-row{font-size:.8rem;border:0;padding:9px 0;min-width:0}
.office-operations #dashboard-events>.dashboard-empty{min-height:0;margin:0;padding:10px 18px 16px;text-align:left}
@media(max-width:760px){.office-home-column:first-child>.office-today{display:block}.office-today>[data-home-agenda]{display:block}.office-home-recent{padding:16px}.office-home-recent .office-recent-document>span:last-child{display:block}.office-operations #dashboard-attention{grid-template-columns:minmax(0,1fr)}.office-today .office-day-timeline{height:285px}}

.office-home-column:first-child>.office-today{min-height:0}
.office-today>[data-home-agenda]{min-height:0}
.office-today .office-day-timeline{flex:1 1 0%;height:0;min-height:285px;max-height:420px;overflow-y:auto}
@media(max-width:760px){.office-today .office-day-timeline{height:285px;max-height:285px;flex:none}}

/* Compact office editors, with logical field and disclosure boundaries. */
html[data-design=video] .topbar .company #organization-add{display:grid!important;place-items:center!important;align-self:center!important;padding:0!important;line-height:1!important;width:36px;height:36px;min-width:36px;border-radius:10px;background:var(--surface);border:1px solid var(--line)}
html[data-design=video] .topbar .company #organization-add::before{position:static!important;display:block;margin:0!important;transform:none!important;flex:none}
html[data-design=video] dialog #record-form>.form-grid,html[data-design=video] dialog [data-reminder-form]>.form-grid{gap:12px 16px;align-items:start}
html[data-design=video] dialog :is(#record-form,[data-reminder-form]) label{font-size:.82rem;gap:5px}
html[data-design=video] dialog :is(#record-form,[data-reminder-form]) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:38px;margin-top:0;padding-block:8px;border-radius:9px}
html[data-design=video] dialog :is(#record-form,[data-reminder-form]) textarea{min-height:72px;border-radius:9px}
html[data-design=video] dialog :is(#record-form,[data-reminder-form]) [hidden]{display:none!important}
html[data-design=video] dialog .contract-registry-fields{grid-column:1/-1;border:1px solid var(--line);border-radius:11px;padding:0;margin:0;overflow:hidden;background:var(--surface)}
html[data-design=video] dialog .contract-registry-fields>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:11px 14px;font-size:.85rem;font-weight:500;cursor:pointer;background:var(--secondary)}
html[data-design=video] dialog .contract-registry-fields>summary::-webkit-details-marker{display:none}
html[data-design=video] dialog .contract-registry-fields>summary::after{content:'';margin-left:auto;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none}
html[data-design=video] dialog .contract-registry-fields[open]>summary::after{transform:rotate(225deg)}
html[data-design=video] dialog .contract-registry-fields>:not(summary){margin:0;padding:14px}
html[data-design=video] dialog .contract-registry-fields>.form-grid{gap:12px 16px}
html[data-design=video] dialog label>.core-reference-choice{display:block;width:100%;margin:3px 0 0;padding:0}
html[data-design=video] dialog label>.core-reference-choice>small{display:none}
html[data-design=video] dialog label>.core-reference-choice>select{font-size:.78rem;background:var(--secondary);min-height:34px}
html[data-design=video] dialog [data-reminder-form]>.form-grid>label:has([name=text]){grid-column:1/-1}
html[data-design=video] dialog [data-reminder-form] .checkbox-line{display:flex!important;align-items:center!important;flex-direction:row;gap:8px}
html[data-design=video] dialog [data-reminder-form] .checkbox-line>input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;flex:none}
html[data-design=video] dialog [data-reminder-form] select[multiple]{min-height:76px;padding:6px}
.form-help{margin:16px 0;border-top:1px solid var(--line);padding-top:12px;color:var(--subtle);font-size:.8rem}.form-help>summary{cursor:pointer;font-weight:500}.form-help p{margin:10px 0 0;line-height:1.5}
@media(max-width:600px){html[data-design=video] dialog :is(#record-form,[data-reminder-form]) .form-grid{grid-template-columns:minmax(0,1fr)}}

html[data-design=video] dialog [data-reminder-form]>.form-grid>label:has([name=name]){grid-column:1/-1}
html[data-design=video] dialog [data-reminder-form] .form-help{grid-column:1/-1}

/* Shared motion language: short feedback without shifting neighboring content. */
.file-recent-books{grid-column:1/-1;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px}
.file-recent-books>.file-recent-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.file-recent-card .office-file-badge{grid-row:1/5;align-self:center}
.file-library-file>.office-file-badge{align-self:center}
.file-recent-list>a:has(.office-file-badge){grid-template-columns:42px minmax(0,1fr) auto;column-gap:12px;align-items:center}
.file-recent-list>a>.office-file-badge{grid-row:1/4}
.file-recent-list>a:has(.office-file-badge)>:is(small,.file-recent-context){grid-column:2/-1}
html[data-design=video] .file-library-folders>li{min-width:0}
html[data-design=video] .file-library-folder:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:12px}
html[data-design=video] .file-library-folder>span>strong{overflow-wrap:anywhere}
html[data-design=video] :is(.file-recent-block,.file-recent-books,.file-overview)>h2{font-size:1rem;line-height:1.4;margin:0 0 14px}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) :is(.office-quick-actions>button,.office-document-shortcuts>a,.file-recent-card,.office-employee-card){transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease}
 html[data-design=video]:not([data-motion=reduce]) .office-quick-actions>button:hover{box-shadow:inset 0 0 0 1px currentColor}
 html[data-design=video]:not([data-motion=reduce]) :is(.form-help,.contract-registry-fields)[open]>:not(summary){animation:reference-popup-fade 140ms ease-out}
}
html[data-design=video][data-motion=reduce] *,html[data-design=video][data-motion=reduce] *::before,html[data-design=video][data-motion=reduce] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html[data-design=video] *,html[data-design=video] *::before,html[data-design=video] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:720px){.file-recent-books{padding:16px}.file-recent-books>.file-recent-cards{grid-template-columns:minmax(0,1fr)}}

/* One recent-file surface avoids duplicate lists and uneven paired panels. */
.file-recent{grid-template-columns:minmax(0,1fr);gap:16px}
.file-recent-block>.file-recent-list{max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.file-recent-list>a:has(.office-file-badge){padding:12px 0}
.file-recent-block>.file-recent-tabs{margin-bottom:10px}
html[data-design=video] .office-file-head{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,290px) auto;align-items:center;gap:20px}
html[data-design=video] .office-file-head>.file-storage{padding:12px 16px;margin:0;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:13px}
html[data-design=video] .office-file-head>.file-storage>div{gap:10px;font-size:.8rem}
html[data-design=video] .office-file-head>.file-storage>progress{margin-top:8px;height:5px}
html[data-design=video] .office-file-head>.file-storage>small{display:none}
@media(max-width:1100px){html[data-design=video] .office-file-head{grid-template-columns:minmax(0,1fr) auto;gap:14px}html[data-design=video] .office-file-head>.file-storage{grid-column:1/-1;grid-row:2}}
@media(max-width:600px){html[data-design=video] .office-file-head{display:flex;flex-direction:column;align-items:stretch}.office-file-head>.actions{display:flex;flex-wrap:wrap}.office-file-head>.actions>button{flex:1;white-space:normal}.file-recent-block>.file-recent-list{max-height:410px}}

/* The plus has one visual item; flex avoids an anonymous text grid row. */
html[data-design=video] .topbar .company #organization-add{display:flex!important;align-items:center!important;justify-content:center!important;font-size:0!important}
@media(max-width:540px){.file-library-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.file-library-filter-fields>.file-library-query,.file-library-filter-fields>label:has(select[name=module]){grid-column:1/-1}.file-library-filter-fields select{min-width:0}.file-library-filter-actions .file-refresh{width:100%}}

/* Approved direction: white-reference geometry with warm colors, crisp vector folders. */
html[data-design=video] .file-folder-art .folder-front{filter:none!important}
html[data-design=video] .file-folder-art :is(.folder-face,.folder-back){stroke:none!important}
html[data-design=video] .file-folder-art .folder-face{}
html[data-design=video] .file-folder-art .folder-back{}
html[data-design=video] .file-folder-art .folder-tab{fill:color-mix(in srgb,var(--folder-local,var(--folder-color)),#fff 25%)}
html[data-design=video] .file-folder-art .folder-highlight{stroke:#fff;stroke-width:1;opacity:.22}
html[data-design=video] .file-folder-art .folder-paper rect{fill:var(--folder-paper);stroke:var(--line);stroke-width:.6}
html[data-design=video] .file-folder-art .folder-paper path{opacity:.25;stroke-width:1.5}
html[data-design=video] .file-folder-art .folder-kind-icon{fill:#334155;opacity:.9}
html[data-design=video] .file-library-folder>.file-folder-art{max-width:140px}
html[data-design=video] .file-library-folders{grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr));gap:22px 18px}
html[data-design=video] .file-library-folder>span{padding-inline:4px}
html[data-design=video][data-finish=coffee] :is(.office-home-column>section,.office-employee-card,.office-employee-inspector,.office-home-recent,.file-recent-block,.file-recent-books,.file-overview){box-shadow:none}
@media(max-width:540px){html[data-design=video] .file-library-folders{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}}

/* Layered vector redraw of generated light and milk-coffee folder families. */
.file-folder-art .folder-front-top{stop-color:color-mix(in srgb,var(--folder-local,var(--folder-color)),#fff 43%)}
.file-folder-art .folder-front-bottom{stop-color:color-mix(in srgb,var(--folder-local,var(--folder-color)),#fff 8%)}
.file-folder-art .folder-back-top{stop-color:color-mix(in srgb,var(--folder-local,var(--folder-color)),#fff 8%)}
.file-folder-art .folder-back-bottom{stop-color:color-mix(in srgb,var(--folder-local,var(--folder-color)),#000 12%)}
html[data-design=video] .file-folder-art .folder-kind-icon{fill:color-mix(in srgb,var(--folder-local,var(--folder-color)),#1b2534 62%);opacity:1}
html[data-design=video] .file-folder-art .folder-highlight{stroke:#fff;stroke-width:1;opacity:.55}
html[data-design=video][data-finish=coffee][data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+1){--folder-local:#e3b37f}
html[data-design=video][data-finish=coffee][data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+2){--folder-local:#d3997f}
html[data-design=video][data-finish=coffee][data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+3){--folder-local:#a6b194}
html[data-design=video][data-finish=coffee][data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+4){--folder-local:#d9bd88}
html[data-design=video][data-finish=coffee][data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+5){--folder-local:#9eafc5}
html[data-design=video][data-finish=coffee][data-folder-palette=mixed] .file-library-folders>li:nth-child(6n+6){--folder-local:#b6ada4}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) :is(.file-library-folder:hover,.file-library-folder:focus-visible,.folder-color-preview:hover) .folder-paper-back{transform:translateY(-16px) rotate(-6deg)}
 html[data-design=video]:not([data-motion=reduce]) :is(.file-library-folder:hover,.file-library-folder:focus-visible,.folder-color-preview:hover) .folder-paper-front{transform:translateY(-9px) rotate(3deg)}
 html[data-design=video]:not([data-motion=reduce]) :is(.file-library-folder:hover,.file-library-folder:focus-visible,.folder-color-preview:hover) .folder-front{transform:translateY(2px) scaleY(.84)}
}

/* Employee documents: readable compact labels, distinct status states. */
.office-employee-badges{gap:6px;align-items:start}
.office-document-status{position:relative;min-width:52px;min-height:54px;padding:8px 5px 6px;gap:5px}
.office-document-status>small{max-width:64px;font-size:.66rem;line-height:1.2;font-weight:500}
.office-document-status::after{content:'';position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:currentColor}
:is(.office-document-status,.office-inspector-document):is(.state-valid,.state-indefinite){background:var(--status-success-surface);border-color:var(--status-success-border);color:var(--status-success-ink)}
:is(.office-document-status,.office-inspector-document).state-absent{background:var(--secondary);border-color:var(--line);color:var(--subtle)}
:is(.office-document-status,.office-inspector-document).state-absent[data-indicator-key=personal_card]{background:var(--status-danger-surface);border-color:var(--status-danger-border);color:var(--status-danger-ink)}
:is(.office-document-status,.office-inspector-document).state-future{background:var(--status-info-surface);border-color:var(--status-info-border);color:var(--status-info-ink)}
.office-employee-profile{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;align-items:start}
.office-employee-profile>div{min-width:0}
.office-employee-profile :is(.primary-record-photo,.primary-photo-placeholder){float:none!important;margin:0!important;width:80px!important;height:106px!important;object-fit:cover;font-size:1.6rem}
.office-employee-profile small{display:block;margin-top:5px;line-height:1.4;overflow-wrap:anywhere}
.office-employee-inspector{max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.office-employee-inspector h4{margin:18px 0 12px;font-size:.95rem}
.office-employee-inspector .office-inspector-document>span{color:inherit;font-size:.76rem}
.office-inspector-document strong{overflow-wrap:anywhere;line-height:1.4}
.office-inspector-document small{line-height:1.4;white-space:normal}
.office-employee-card :is(button,a):focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:8px}
@media(max-width:760px){.office-employees{padding:12px;gap:16px}.office-employee-card{padding:14px}.office-employee-inspector{max-height:none;overflow:visible}.office-employee-select{gap:12px}}

/* Personal-card register uses the same compact filter and status language. */
.personal-card-register>.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.personal-card-register>.toolbar>label:first-child{flex:1 1 280px;max-width:520px}
.personal-card-register>.toolbar .checkbox-line{align-self:center;padding:9px 12px;background:var(--secondary);border-radius:9px}
.personal-card-state{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid var(--line);border-radius:8px;font-size:.8rem;line-height:1.35;background:var(--secondary);color:var(--subtle)}
.personal-card-state:is(.state-valid,.state-indefinite){background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
.personal-card-state.state-expiring{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
.personal-card-state.state-expired{background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}
.personal-card-state.state-future{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
.personal-card-register td{vertical-align:middle}
.personal-card-more{position:relative}.personal-card-more>summary{cursor:pointer;list-style:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:11px 14px;border-radius:9px;font-size:.85rem}
.personal-card-more[open]>div{position:absolute;right:0;top:calc(100% + 8px);z-index:10;min-width:220px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px var(--folder-shadow)}
.personal-card-more button{width:100%;text-align:left;white-space:normal}
@media(max-width:600px){.personal-card-register>.toolbar{padding:14px}.personal-card-more[open]>div{left:0;right:auto;min-width:200px}}

.personal-card-register [data-personal-card-rows]>.empty{display:grid;grid-template-columns:38px minmax(0,1fr);gap:5px 14px;text-align:left;padding:24px 20px;align-items:center}
.personal-card-register [data-personal-card-rows]>.empty>.empty-icon{grid-row:1/3;margin:0;width:36px;height:36px}
.personal-card-register [data-personal-card-rows]>.empty>b{font-size:.95rem;font-weight:500}
.personal-card-register [data-personal-card-rows]>.empty>p{margin:0;font-size:.82rem;line-height:1.5}
.personal-card-more[hidden]{display:none!important}

/* Office dashboard: palette-aware action states and quiet internal scrollbars. */
html[data-design=video] .office-quick-actions>button[data-home-action=tasks]{--action-tone:#2858a8}
html[data-design=video] .office-quick-actions>button[data-home-action=employees]{--action-tone:#287052}
html[data-design=video] .office-quick-actions>button[data-home-action=file-library]{--action-tone:#7350ad}
html[data-design=video] .office-quick-actions>button[data-home-action=shifts]{--action-tone:#a2561b}
html[data-design=video] .office-quick-actions>button[data-home-action=objects]{--action-tone:#2869a2}
html[data-design=video] .office-quick-actions>button[data-home-action=contracts]{--action-tone:#a53c63}
html[data-design=video] .office-quick-actions>button[data-home-action]{background:color-mix(in srgb,var(--action-tone) 8%,var(--surface));color:var(--action-tone);box-shadow:none;border:1px solid transparent;filter:none}
html[data-design=video][data-finish=coffee] .office-quick-actions>button[data-home-action]{background:color-mix(in srgb,var(--action-tone) 6%,var(--surface))}
@media(hover:hover){html[data-design=video] .office-quick-actions>button[data-home-action]:hover{background:color-mix(in srgb,var(--action-tone) 13%,var(--surface));color:var(--action-tone);border-color:color-mix(in srgb,var(--action-tone) 20%,var(--surface));box-shadow:none;filter:none}}
html[data-design=video] .office-quick-actions>button[data-home-action]:active{background:color-mix(in srgb,var(--action-tone) 18%,var(--surface));box-shadow:none}
html[data-design=video] .office-quick-actions>button[data-home-action]:focus-visible{outline:2px solid var(--action-tone);outline-offset:3px}
html[data-design=video] :is(.office-day-timeline,.file-recent-block>.file-recent-list,.office-employee-inspector){scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] :is(.office-day-timeline,.file-recent-block>.file-recent-list,.office-employee-inspector)::-webkit-scrollbar{width:7px;height:7px;background:transparent}
html[data-design=video] :is(.office-day-timeline,.file-recent-block>.file-recent-list,.office-employee-inspector)::-webkit-scrollbar-track{background:transparent}
html[data-design=video] :is(.office-day-timeline,.file-recent-block>.file-recent-list,.office-employee-inspector)::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 42%,var(--surface));border-radius:8px}
html[data-design=video] :is(.office-day-timeline,.file-recent-block>.file-recent-list,.office-employee-inspector)::-webkit-scrollbar-button{display:none;width:0;height:0}

/* Employee documents: clear identity and status without enlarging table rows. */
.employee-document-heading{display:flex;align-items:flex-start;gap:10px;min-width:0}
.employee-document-heading>div{min-width:0}
.employee-document-glyph{display:inline-grid;place-items:center;flex:none;width:34px;height:38px;border-radius:9px;background:var(--status-info-surface);color:var(--status-info-ink)}
.employee-document-glyph .opora-icon{width:21px;height:21px}
html[data-design=video] .employee-document-heading .record-link{text-align:left;line-height:1.45;padding:0;min-height:0;font-weight:600}
html[data-design=video] .employee-card-table .employee-validity{padding:4px 8px;border:1px solid var(--line);border-radius:8px;background:var(--secondary);color:var(--subtle);font-size:.8rem;line-height:1.4}
html[data-design=video] .employee-card-table :is(.employee-validity-valid,.employee-validity-indefinite){background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
html[data-design=video] .employee-card-table :is(.employee-validity-expired,.employee-validity-failed){background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}
html[data-design=video] .employee-card-table .employee-validity-expiring{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] .employee-card-table .employee-validity-future{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] .employee-card-table:has(.employee-document-heading) td:first-child{min-width:230px}
@container record-panel (max-width:760px){html[data-design=video] .employee-card-table:has(.employee-document-heading) td:first-child{min-width:0}.employee-document-heading{gap:8px}}

.employee-document-glyph:has([data-icon-kind=document-medical]){background:var(--status-success-surface);color:var(--status-success-ink)}
.employee-document-glyph:has([data-icon-kind=document-personal]){background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-design=video] .employee-document-glyph .material-icon{color:inherit!important}

/* File overview keeps a usable document density without an excessively tall page. */
html[data-design=video] .file-recent-block>.file-recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;max-height:320px;align-content:start}
html[data-design=video] .file-recent-block>.file-recent-list>p{grid-column:1/-1}
html[data-design=video] .file-recent-list>a{min-width:0}
html[data-design=video] .file-recent-list>a>strong{overflow-wrap:anywhere}
html[data-design=video] .file-overview .table-wrap{max-height:480px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent;border-radius:10px}
html[data-design=video] .file-overview table{min-width:700px;width:100%;border-collapse:separate;border-spacing:0}
html[data-design=video] .file-overview thead th{position:sticky;top:0;z-index:1;background:var(--surface);border-bottom:1px solid var(--line)}
html[data-design=video] .file-overview :is(th,td){padding:9px 12px}
html[data-design=video] .file-overview .office-file-badge{min-width:32px;width:32px;height:36px;border-radius:8px}
html[data-design=video] .file-overview .office-file-badge .opora-icon{width:20px;height:20px}
html[data-design=video] .file-overview .office-file-badge small{font-size:.55rem}
html[data-design=video] .file-overview-name{gap:10px}
html[data-design=video] .file-overview-name strong{font-size:.88rem;line-height:1.4}
html[data-design=video] .file-overview td .button{padding:7px 10px;min-height:34px;font-size:.8rem}
html[data-design=video] .file-overview td .record-link{font-size:.85rem;line-height:1.4}
html[data-design=video] .file-overview td:last-child{white-space:nowrap}
@media(max-width:900px){html[data-design=video] .file-recent-block>.file-recent-list{grid-template-columns:minmax(0,1fr);max-height:340px}}

/* Contract notification dates need the full object card width, not a third column. */
html[data-design=video] .object-card-contracts{margin:18px 0}
html[data-design=video] .object-card-contracts>.object-card-table{max-width:100%;min-width:0}
html[data-design=video] .object-card-contracts .olrr-notice{min-width:0;max-width:100%;padding:9px 10px;border:1px solid var(--line);line-height:1.45}
html[data-design=video] .object-card-contracts .olrr-notice strong{font-weight:500;font-size:.78rem;opacity:.85}
html[data-design=video] .object-card-contracts .olrr-notice span{overflow-wrap:anywhere;font-size:.86rem}
html[data-design=video] .olrr-notice.state-pending{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] .olrr-notice.state-future{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] .olrr-notice.state-unknown{color:var(--subtle)}

/* Independent object sections flow compactly instead of stretching three grouped columns. */
html[data-design=video] .object-card-overview-grid{display:block;columns:2;column-gap:18px}
html[data-design=video] .object-card-overview-grid>:is(section,details){break-inside:avoid;display:inline-block;width:100%;box-sizing:border-box;vertical-align:top;margin:0 0 16px}
html[data-design=video] .object-card-overview-grid .empty{min-height:0;padding:20px 12px}
@container record-panel (max-width:760px){html[data-design=video] .object-card-overview-grid{columns:1}}

/* Tender center aligns library actions with page actions and uses quiet status feedback. */
html[data-design=video] .page-head .tender-template-open{margin:0}
html[data-design=video] #tender-filter>.checkbox-line{padding:8px 10px;background:var(--secondary);border:1px solid var(--line);border-radius:9px;min-height:40px;box-sizing:border-box}
html[data-design=video] #tender-filter>.checkbox-line:has(input:checked){background:var(--accent-soft);border-color:var(--green);color:var(--green)}
.tender-status{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:4px 8px;font-size:.8rem;line-height:1.4;background:var(--secondary);color:var(--subtle);max-width:100%;overflow-wrap:anywhere}
.tender-status.tone-info{background:var(--status-info-surface);border-color:var(--status-info-border);color:var(--status-info-ink)}
.tender-status.tone-warning{background:var(--status-warning-surface);border-color:var(--status-warning-border);color:var(--status-warning-ink)}
.tender-status.tone-success{background:var(--status-success-surface);border-color:var(--status-success-border);color:var(--status-success-ink)}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) #tender-filter>.checkbox-line{transition:background-color 140ms ease,border-color 140ms ease}}

/* Keep quick-action labels clear of tile edges at intermediate dashboard widths. */
html[data-design=video] .office-home-column>section:has(>.office-quick-actions){container:office-actions / inline-size}
html[data-design=video] .office-quick-actions{gap:12px}
html[data-design=video] .office-quick-actions>button[data-home-action]{padding:14px 12px;min-height:110px;line-height:1.45;min-width:0;overflow-wrap:normal;word-break:normal}
@container office-actions (max-width:349px){html[data-design=video] .office-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Align the add control with the select, below its caption. */
html[data-design=video] .topbar .company #organization-add{align-self:flex-end!important}
html[data-design=video] .topbar .company #organization-add::before{content:none!important;display:none!important}
html[data-design=video] #organization-add .organization-add-icon{display:block;width:18px;height:18px;flex:none;margin:0;color:inherit}

/* HR reports retain full export data while offering a quieter on-screen table. */
html[data-design=video] [data-standard-form]:has([name=date_start]){display:flex;align-items:end;gap:16px;flex-wrap:wrap}
html[data-design=video] [data-standard-form]:has([name=date_start])>.form-grid{flex:1 1 400px;margin:0;gap:16px}
html[data-design=video] [data-standard-form]:has([name=date_start])>.primary{margin:0;flex:none}
.standard-report-meta{font-size:.82rem;color:var(--subtle);line-height:1.5;margin:16px 0 10px}
.hr-column-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line)}
html[data-design=video] .hr-column-controls .checkbox-line{display:flex;align-items:center;margin:0;font-size:.82rem;gap:8px;line-height:1.4}
html[data-design=video] .hr-column-controls input[type=checkbox]{width:16px;height:16px;flex:none;margin:0}
html[data-design=video] .standard-hr-results .table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .standard-hr-results th{position:sticky;top:0;z-index:1;background:var(--surface)}
html[data-design=video] .standard-hr-results th:first-child{z-index:3}
html[data-design=video] .standard-hr-results [hidden]{display:none!important}
@media(max-width:540px){html[data-design=video] [data-standard-form]:has([name=date_start])>.form-grid{flex-basis:100%;grid-template-columns:minmax(0,1fr)}html[data-design=video] [data-standard-form]:has([name=date_start])>.primary{width:100%}.hr-column-controls{padding:12px 16px;justify-content:flex-start}}

/* Messenger composition: a single secondary toolbar and stable semantic avatar colors. */
html[data-design=video] .messenger-shared .chat-extra-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
html[data-design=video] .messenger-shared .chat-extra-tools>button{min-height:32px;padding:6px 10px;font-size:.8rem;line-height:1.35;background:var(--secondary);border:1px solid var(--line);border-radius:8px}
html[data-design=video] .messenger-shared .chat-compose-tools{align-items:end;gap:10px}
html[data-design=video] .messenger-shared .chat-compose-tools>:is(#chat-attach-button,#chat-send){width:44px;height:44px;min-width:44px;display:grid;place-items:center;padding:10px;flex:none}
html[data-design=video] .messenger-shared .chat-compose-tools textarea{min-height:46px;max-height:160px;line-height:1.5;overflow-y:auto;scrollbar-width:thin}
html[data-design=video] .messenger-shared .chat-header .chat-peer-heading{min-width:0;flex:1}
html[data-design=video] .messenger-shared .chat-peer-heading .record-link{white-space:normal;text-align:left;overflow-wrap:anywhere;line-height:1.4}
html[data-design=video] .messenger-shared .chat-header-tools{flex:none;margin-left:auto}
html[data-design=video] .messenger-shared .chat-avatar[data-chat-tone="0"]{background:var(--status-info-surface);color:var(--status-info-ink)}
html[data-design=video] .messenger-shared .chat-avatar[data-chat-tone="1"]{background:var(--status-success-surface);color:var(--status-success-ink)}
html[data-design=video] .messenger-shared .chat-avatar[data-chat-tone="2"]{background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-design=video] .messenger-shared .chat-avatar[data-chat-tone="3"]{background:var(--accent-soft);color:var(--green)}
html[data-design=video] .messenger-shared .chat-feed{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .messenger-shared .chat-bubble{min-width:0;max-width:min(85%,640px);line-height:1.5}
html[data-design=video] .messenger-shared .chat-bubble .chat-text{overflow-wrap:anywhere}
html[data-design=video] .messenger-shared .chat-attachment{max-width:100%}

/* Supply list: internal scrolling follows the office palette and keeps headings available. */
html[data-design=video] .supply-list-panel [data-list-rows]>.table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent;border-radius:10px}
html[data-design=video] .supply-list-table th{position:sticky;top:0;z-index:1;background:var(--surface)}
html[data-design=video] .supply-list-table th .supply-list-sort{padding:6px 0;line-height:1.4;min-height:32px;text-align:left}
html[data-design=video] .supply-list-panel [data-list-rows]>.table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* Calm, aligned header controls without a duplicate organization caption. */
html[data-design=video] .topbar .organization-switcher>label>span{display:none}
html[data-design=video] .topbar .organization-switcher>label{gap:0}
html[data-design=video] .topbar .organization-switcher{align-items:center}
html[data-design=video] .topbar #organization-context{height:40px;min-height:40px}
html[data-design=video] .topbar .company #organization-add{width:40px;height:40px;min-width:40px;align-self:center!important}
html[data-design=video] .topbar .organization-switcher>label::after{bottom:18px}
html[data-design=video] .topbar .global-search-trigger{height:40px;min-height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
html[data-design=video] .topbar :is(.global-search-trigger,.global-search-bar)>.material-icon{width:18px;height:18px;min-width:18px;flex:none}
html[data-design=video] .topbar>.global-search-panel .global-search-bar{min-height:40px}
/* Chat filters remain legible; group settings use real aligned check rows. */
html[data-design=video] .messenger-shared .chat-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html[data-design=video] .messenger-shared .chat-tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere;padding:9px 8px}
html[data-design=video] #group-settings-form{display:grid;gap:16px}
html[data-design=video] #group-settings-form>label:not(.checkbox-line){display:grid;gap:7px;min-width:0}
html[data-design=video] #group-settings-form fieldset{display:grid;gap:8px;min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;max-height:320px;overflow:auto;scrollbar-width:thin}
html[data-design=video] #group-settings-form legend{font-size:.85rem;padding:0 6px;color:var(--subtle)}
html[data-design=video] #group-settings-form .checkbox-line{display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin:0;padding:9px 10px;min-width:0;border-radius:8px;background:var(--secondary);font-size:.88rem}
html[data-design=video] #group-settings-form input[type=checkbox]{width:16px;height:16px;flex:none;margin:3px 0 0}
html[data-design=video] #group-settings-form p{margin:0;font-size:.82rem;line-height:1.5}
html[data-design=video] #group-settings-form .form-help{margin:0;padding-top:10px}
/* Service icons use distinct meanings rather than one blue column. */
html[data-design=video] .layout>aside .nav:is([href="#my-day"],[href="#reminders"],[href="#operative-report"]){--nav-symbol:var(--status-warning-ink)}
html[data-design=video] .layout>aside .nav:is([href="#hr-report"],[href="#workload-report"],[href="#document-deadlines"]){--nav-symbol:var(--status-success-ink)}
html[data-design=video] .layout>aside .nav:is([href="#reports"],[href="#event-journal"]){--nav-symbol:var(--status-danger-ink)}
html[data-design=video] .layout>aside .nav:is([href="#report-mailings"],[href="#dress_codes"]){--nav-symbol:var(--green)}
/* Group overlapping participation/display switches into two compact menus. */
.supply-filter-menu{position:relative;min-width:0}
.supply-filter-menu>summary{cursor:pointer;list-style:none;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:.86rem;line-height:1.4}
.supply-filter-menu>summary::after{content:'⌄';margin-left:10px}
.supply-filter-menu:has(input:checked)>summary{background:var(--accent-soft);color:var(--green);border-color:var(--green)}
.supply-filter-menu>div{position:absolute;left:0;top:calc(100% + 6px);z-index:5;width:260px;max-width:calc(100vw - 52px);display:grid;gap:6px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px var(--folder-shadow)}
html[data-design=video] .supply-filter-menu .supply-list-check{border:0;background:transparent;padding:8px;font-size:.85rem;margin:0;white-space:normal}
.supply-filter-menu>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:540px){.supply-filter-menu>div{position:static;width:auto;box-shadow:none;margin-top:6px}.supply-filter-menu{flex:1 1 140px}}

html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu{align-self:center;height:40px;min-height:40px;width:40px;min-width:40px}

/* Type color and validity state are independent: customized icon, semantic warning surface. */
.office-indicator-glyph{display:inline-grid;place-items:center;width:30px;height:32px;border-radius:8px;background:var(--indicator-color,#64748b);color:var(--indicator-ink,#fff);flex:none}
.office-indicator-glyph>.opora-icon{width:21px;height:21px}
html[data-design=video] .office-indicator-glyph>.material-icon{color:inherit!important}
.office-document-status>.office-indicator-glyph{justify-self:center}
.office-inspector-document>.office-indicator-glyph{grid-row:1/4;grid-column:1;align-self:start}
html[data-design=video] .company-settings-panel .indicator-setting-example{width:40px;height:40px;min-width:40px;max-width:40px;padding:7px;border-radius:10px}
.indicator-setting-example>.opora-icon{width:24px;height:24px}
html[data-design=video] .indicator-setting-example>.material-icon{color:inherit!important}
html[data-design=video] .company-settings-panel .employee-indicator-option>label:first-child{font-size:.9rem;line-height:1.4}
html[data-design=video] .company-settings-panel .employee-indicator-option:has(input[name=indicator]:checked){border-bottom-color:color-mix(in srgb,var(--green) 24%,var(--line))}

html[data-design=video] .office-employee-inspector .office-inspector-document>.office-indicator-glyph{color:var(--indicator-ink,#fff)}

/* Preserve the same semantic action categories in dark mode with readable theme tokens. */
html[data-theme=dark] .office-quick-actions>button[data-home-action=tasks],html[data-theme=dark] .office-quick-actions>button[data-home-action=objects]{--action-dark-bg:var(--status-info-surface);--action-dark-ink:var(--status-info-ink)}
html[data-theme=dark] .office-quick-actions>button[data-home-action=employees]{--action-dark-bg:var(--status-success-surface);--action-dark-ink:var(--status-success-ink)}
html[data-theme=dark] .office-quick-actions>button[data-home-action=file-library]{--action-dark-bg:var(--accent-soft);--action-dark-ink:var(--green)}
html[data-theme=dark] .office-quick-actions>button[data-home-action=shifts]{--action-dark-bg:var(--status-warning-surface);--action-dark-ink:var(--status-warning-ink)}
html[data-theme=dark] .office-quick-actions>button[data-home-action=contracts]{--action-dark-bg:var(--status-danger-surface);--action-dark-ink:var(--status-danger-ink)}
html[data-theme=dark] .office-quick-actions>button[data-home-action]{background:var(--action-dark-bg,var(--secondary))!important;color:var(--action-dark-ink,var(--ink))!important}
@media(hover:hover){html[data-theme=dark] .office-quick-actions>button[data-home-action]:hover{border-color:color-mix(in srgb,var(--action-dark-ink) 40%,var(--surface));box-shadow:none}}
html[data-theme=dark] .office-quick-actions>button[data-home-action]:focus-visible{outline-color:var(--action-dark-ink)}

/* A busy day must not stretch every empty day in the same calendar week. */
html[data-design=video] .personal-calendar-scroll .calendar-day{display:flex;flex-direction:column;min-width:0}
html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-day{height:auto;min-height:110px;max-height:190px}
html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-day-events{max-height:134px}
html[data-design=video] .personal-calendar-scroll[data-calendar-view=week] .calendar-day{min-height:280px;max-height:480px}
.calendar-day-events{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent;padding-right:2px}
.calendar-day-events:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-radius:5px}
html[data-design=video] .calendar-event{border-left:3px solid var(--green);border-radius:8px;padding:8px;line-height:1.4}
.calendar-event-title{display:block;font-size:.8rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
html[data-design=video] .calendar-event .calendar-event-time{font-variant-numeric:tabular-nums;font-weight:600;color:inherit}
html[data-design=video] .calendar-event[data-calendar-module=tasks]{border-left-color:var(--status-info-ink)}
html[data-design=video] .calendar-event:is([data-calendar-module=maintenance],[data-calendar-module=salary_registers],[data-calendar-module=payments]){border-left-color:var(--status-warning-ink)}
html[data-design=video] .calendar-event.late{border-left-color:var(--status-danger-ink)}

/* Personal-card register must retain full employee/card/organization values. */
html[data-design=video] .personal-card-register :is(th,td){white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5;min-width:120px;max-width:300px;padding:12px}
html[data-design=video] .personal-card-register :is(th,td):nth-child(-n+2){min-width:180px;max-width:260px}
html[data-design=video] .personal-card-register :is(th,td):nth-child(3){min-width:190px;max-width:280px}
html[data-design=video] .personal-card-register td .record-link{display:inline-block;max-width:100%;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.5;padding:0}
html[data-design=video] .personal-card-register .table-wrap{max-width:100%;overflow:auto;max-height:560px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .personal-card-register th{position:sticky;top:0;z-index:1;background:var(--surface)}

/* Summary cards use the selected surface in every office theme. */
html[data-design=video] .layout .stat{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=video] .deadline-stats>.stat{display:flex;flex-direction:column;gap:10px;min-height:0;padding:16px}
html[data-design=video] .deadline-stats .label{min-height:0;flex:1}
html[data-design=video] .deadline-stats strong{margin:0;font-size:1.6rem;line-height:1.2}
html[data-design=video] #deadline-results>.table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] #deadline-results th{position:sticky;top:0;z-index:1;background:var(--surface)}

/* Reminder filters fill their columns; an empty list should not create a large blank panel. */
html[data-design=video] [data-reminder-filter] :is(input:not([type=checkbox]),select){width:100%;max-width:none;min-width:0}
html[data-design=video] .panel:has(>[data-reminder-filter])>.empty{min-height:0;padding:28px 20px}
@container reminder-list (min-width:651px){html[data-design=video] [data-reminder-filter]{grid-template-columns:minmax(150px,220px) minmax(180px,1fr) auto auto}}

html[data-design=video] #audit-rows>.table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] #audit-rows th{position:sticky;top:0;z-index:1;background:var(--surface)}
html[data-design=video] #audit-rows td{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.5}

/* File filters share one desktop line and adapt to the actual workspace width. */
html[data-design=video] #file-library-root{container-type:inline-size;container-name:file-workspace}
html[data-design=video] .file-library-toolbar{padding:14px 16px;box-shadow:none}
html[data-design=video] .file-library-filter-fields{gap:12px}
html[data-design=video] .file-library-filter-fields>label{gap:5px}
html[data-design=video] .file-library-filter-actions{gap:12px;padding-top:0;margin-top:12px;border-top:0}
html[data-design=video] .file-library-filter-actions .file-archive-toggle{min-height:40px}
html[data-design=video] .file-library-filter-actions .file-refresh{min-height:40px;margin:0}
html[data-design=video] .file-library-location{margin-block:8px;gap:6px 16px}
@container file-workspace (min-width:980px){
 html[data-design=video] .file-library-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end}
 html[data-design=video] .file-library-filter-fields{grid-template-columns:minmax(190px,1.4fr) repeat(3,minmax(120px,1fr))}
 html[data-design=video] .file-library-filter-actions{margin:0;flex-wrap:nowrap;align-items:center}
 html[data-design=video] .file-library-filter-actions .file-refresh{white-space:nowrap}
}
@container file-workspace (max-width:979px){
 html[data-design=video] .file-library-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container file-workspace (max-width:540px){
 html[data-design=video] .file-library-filter-fields>.file-library-query,html[data-design=video] .file-library-filter-fields>label:has(select[name=module]){grid-column:1/-1}
 html[data-design=video] .file-library-filter-actions{display:grid;grid-template-columns:1fr;gap:8px}
 html[data-design=video] .file-library-filter-actions .file-refresh{width:100%;min-height:44px}
}

/* Business deadlines distinguish unknown dates from current documents. */
html[data-design=video] #business-deadline-rows .business-deadline-unknown{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:color-mix(in srgb,var(--status-warning-ink) 25%,transparent)}
html[data-design=video] #business-deadline-rows :is(.business-deadline-future,.business-deadline-preparation){background:var(--status-info-surface);color:var(--status-info-ink);border-color:color-mix(in srgb,var(--status-info-ink) 25%,transparent)}
html[data-design=video] #business-deadline-rows>.table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] #business-deadline-rows th{position:sticky;top:0;z-index:1;background:var(--surface)}

/* Only the vector folder opens; its caption stays flat and readable. */
html[data-design=video] .file-library-folder>span{transition:none}

/* A document generator without templates offers a useful next step. */
html[data-design=video] .document-build-empty{display:grid;justify-items:start;gap:12px;padding:12px 0}
html[data-design=video] .document-build-empty>.opora-icon{width:40px;height:40px;padding:10px;box-sizing:content-box;border-radius:14px;background:var(--accent-soft);color:var(--green)}
html[data-design=video] .document-build-empty h3{margin:0;font-size:1.1rem}
html[data-design=video] .document-build-empty p{margin:0;max-width:52ch;color:var(--subtle);line-height:1.6}
html[data-design=video] .document-build-empty>.actions{margin-top:4px;display:flex;gap:10px;flex-wrap:wrap}

html[data-design=video] dialog:has(.document-build-empty){width:min(560px,calc(100vw - 24px))}

/* Frozen document text stays readable inside the dialog at every width. */
html[data-design=video] .generated-document-detail pre.basis,html[data-design=video] #document-build-preview pre.basis{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%;min-width:0;padding:20px;margin:18px 0;background:var(--secondary);border:1px solid var(--line);border-radius:12px;font-family:inherit;font-size:1rem;line-height:1.75;color:var(--ink)}
html[data-design=video] .generated-document-detail>.generated-document-meta{line-height:1.6;color:var(--subtle);overflow-wrap:anywhere}
html[data-design=video] .generated-document-detail>details{padding:14px 0;border-top:1px solid var(--line);line-height:1.6}
html[data-design=video] .generated-document-detail>details>summary{cursor:pointer;font-weight:500}
html[data-design=video] .generated-document-detail>details>p{overflow-wrap:anywhere;color:var(--subtle)}
html[data-design=video] .generated-document-detail .document-void-disclosure>summary{color:var(--status-danger-text)}
html[data-design=video] #generated-document-void{margin-top:16px}
html[data-design=video] #generated-document-void>label{display:grid;gap:8px}
html[data-design=video] #generated-document-void textarea{width:100%;min-height:96px}
html[data-design=video] #generated-document-rows>.table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] #generated-document-rows th{position:sticky;top:0;z-index:1;background:var(--surface)}
@media(max-width:600px){html[data-design=video] .generated-document-detail pre.basis,html[data-design=video] #document-build-preview pre.basis{padding:14px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .generated-document-detail>details[open]>:not(summary){animation:reference-popup-fade 140ms ease-out}}

/* Personal folder commands live beside the artwork, not below the caption. */
.personal-folder-item{position:relative;min-width:0}
html[data-design=video] .personal-folder-menu{position:absolute;top:2px;right:0;z-index:2}
html[data-design=video] .personal-folder-menu>summary{display:grid;place-items:center;width:30px;height:30px;cursor:pointer;list-style:none;border-radius:8px;color:var(--subtle);background:color-mix(in srgb,var(--surface) 82%,transparent)}
html[data-design=video] .personal-folder-menu>summary::-webkit-details-marker{display:none}
html[data-design=video] .personal-folder-menu>summary svg{width:18px;height:18px;fill:currentColor}
html[data-design=video] .personal-folder-menu>summary:is(:hover,:focus-visible),html[data-design=video] .personal-folder-menu[open]>summary{background:var(--accent-soft);color:var(--green)}
html[data-design=video] .personal-folder-menu>div{position:absolute;right:0;top:36px;width:140px;max-width:calc(100vw - 48px);padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px var(--folder-shadow)}
html[data-design=video] .personal-folder-menu .personal-folder-rename{display:block;margin:0;padding:10px;width:100%;text-align:left;border-radius:6px;color:var(--ink);white-space:normal}
html[data-design=video] .personal-folder-menu .personal-folder-rename:is(:hover,:focus-visible){background:var(--accent-soft);color:var(--green)}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .personal-folder-menu[open]>div{animation:reference-popup-fade 120ms ease-out}}

/* Frequent workload filters stay visible; calculation options are disclosed. */
html[data-design=video] [data-workload-form]>.workload-main-filters{gap:14px 16px}
html[data-design=video] .workload-advanced{margin:18px 0 12px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--secondary)}
html[data-design=video] .workload-advanced>summary{cursor:pointer;font-weight:500;color:var(--ink)}
html[data-design=video] .workload-advanced>.form-grid{margin:16px 0 0;gap:14px 16px}
html[data-design=video] .workload-advanced label[hidden]{display:none!important}
html[data-design=video] .workload-result .table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .workload-result th{position:sticky;top:0;z-index:1;background:var(--surface)}
@container workload-form (min-width:900px){html[data-design=video] [data-workload-form]>.workload-main-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .workload-advanced[open]>.form-grid{animation:reference-popup-fade 140ms ease-out}}

/* Attention colors communicate an actual non-zero count, not just a category. */
html[data-design=video] #dashboard-attention .dashboard-attention-symbol{width:28px;height:28px;justify-content:center;border-radius:8px;background:var(--secondary);color:var(--subtle)}
html[data-design=video] #dashboard-attention .attention-active .dashboard-attention-symbol.critical{background:var(--status-danger-surface);color:var(--status-danger-ink)}
html[data-design=video] #dashboard-attention .attention-active .dashboard-attention-symbol.warning{background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-design=video] #dashboard-attention .attention-active .dashboard-attention-symbol.information{background:var(--status-info-surface);color:var(--status-info-ink)}
html[data-design=video] #dashboard-attention .attention-zero>strong{color:var(--subtle)}

/* Employment register exposes the period without turning a working status into an alarm. */
html[data-design=video] .primary-directory-employments{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .primary-directory-employments table{min-width:1020px;table-layout:auto}
html[data-design=video] .primary-directory-employments th{position:sticky;top:0;z-index:1;background:var(--surface)}
html[data-design=video] .primary-directory-employments td{white-space:normal;overflow-wrap:anywhere;overflow:visible;vertical-align:top;line-height:1.6;min-width:110px}
html[data-design=video] .primary-directory-employments td:first-child{min-width:180px}
html[data-design=video] .primary-directory-employments td:nth-child(2){min-width:210px}
html[data-design=video] .primary-directory-employments td:nth-child(3){min-width:155px}
html[data-design=video] .primary-directory-employments td:last-child{min-width:180px}
html[data-design=video] .primary-directory-employments .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] .primary-directory-employments small{display:block;margin-top:4px;color:var(--subtle)}
html[data-design=video] .primary-directory-employments .employment-stage-working{background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
html[data-design=video] .primary-directory-employments .employment-stage-preparation{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] .primary-directory-employments :is(.employment-stage-ended,.employment-stage-cancelled,.employment-stage-other){background:var(--secondary);color:var(--subtle);border-color:var(--line)}

/* Employment overview preserves every field while grouping sparse HR details. */
html[data-design=video] .employment-overview{display:grid;gap:12px}
html[data-design=video] .employment-overview-section{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
html[data-design=video] .employment-overview-section>:is(h3,summary){margin:0;display:flex;align-items:center;gap:10px;font-size:1rem;font-weight:600;color:var(--ink)}
html[data-design=video] details.employment-overview-section>summary{cursor:pointer;display:list-item;list-style-position:inside}
html[data-design=video] .employment-overview-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;margin-top:18px}
html[data-design=video] .employment-overview-fields>.detail-field{min-width:0;padding:0;border:0}
html[data-design=video] .employment-overview-fields>.detail-field>small{display:block;color:var(--subtle);margin-bottom:5px;line-height:1.5}
html[data-design=video] .employment-overview-fields>.detail-field>div{line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .employment-overview-fields .record-link{white-space:normal;text-align:left}
@container record-panel (min-width:900px){html[data-design=video] .employment-overview-main>.employment-overview-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){html[data-design=video] .employment-overview-section{padding:14px}html[data-design=video] .employment-overview-fields{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) details.employment-overview-section[open]>.employment-overview-fields{animation:reference-popup-fade 140ms ease-out}}

html[data-design=video] .employment-overview-status.employment-stage-working{background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
html[data-design=video] .employment-overview-status.employment-stage-preparation{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] .employment-overview-status:is(.employment-stage-ended,.employment-stage-cancelled,.employment-stage-other){background:var(--secondary);color:var(--subtle);border-color:var(--line)}

/* Calendar content has a bounded scroll area, not an expanding empty flex tail. */
html[data-design=video] .office-home-column:first-child{align-self:start}
html[data-design=video] .office-home-column:first-child>.office-today{flex:none}
html[data-design=video] .office-today>[data-home-agenda]{flex:none}
html[data-design=video] .office-today .office-day-timeline{flex:none;height:360px;min-height:0;max-height:360px}
@media(max-width:760px){html[data-design=video] .office-today .office-day-timeline{height:285px;max-height:285px}}
/* A single gliding surface keeps the three scope buttons visually connected. */
html[data-design=video] .dashboard-scopes{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px;width:420px;max-width:100%;box-sizing:border-box;border-radius:13px;overflow:visible}
html[data-design=video] .dashboard-scopes>button{position:relative;z-index:1;min-width:0;border-radius:9px;background:transparent!important;color:var(--ink);padding:10px 12px}
html[data-design=video] .dashboard-scopes>button[aria-pressed=true]{color:var(--green)}
.office-scope-indicator{display:none}html[data-design=video] .office-scope-indicator{display:block;position:absolute;z-index:0;pointer-events:none;left:4px;top:4px;bottom:4px;width:calc((100% - 8px)/3);border-radius:9px;background:var(--accent-soft);box-shadow:0 1px 3px var(--folder-shadow);transform:translateX(calc(var(--scope-index,2)*100%))}
/* Metric explanations are independent buttons, never interactive elements inside a link. */
.dashboard-metric-shell{position:relative;min-width:0}
.dashboard-metric-shell>.dashboard-metric{height:100%;box-sizing:border-box}
.dashboard-metric-shell .dashboard-metric-title{padding-right:26px}
@media(max-width:420px){
 html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-title{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;padding-right:0}
 html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-label{min-width:0;word-break:normal;overflow-wrap:normal}
}
.dashboard-metric-help{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;padding:5px;border:0;border-radius:50%;background:transparent;color:var(--subtle);z-index:2}
.dashboard-metric-help .material-icon{width:16px;height:16px}
.dashboard-metric-help:is(:hover,:focus-visible,[aria-expanded=true]){background:var(--accent-soft);color:var(--green)}
.dashboard-metric-tooltip{position:absolute;z-index:6;top:44px;left:10px;right:10px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font-size:.85rem;line-height:1.6;box-shadow:0 8px 24px var(--folder-shadow);overflow-wrap:anywhere}
.dashboard-metric-tooltip[hidden]{display:none!important}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) .office-scope-indicator{transition:transform 360ms cubic-bezier(.22,.8,.25,1),background-color 180ms ease}
 html[data-design=video]:not([data-motion=reduce]) #content>:is(.page-head,.stats,.file-library),html[data-design=video]:not([data-motion=reduce]) #content:not([data-background-refresh=true])>.panel{animation:office-content-appear 280ms cubic-bezier(.2,.7,.2,1) both}
 html[data-design=video]:not([data-motion=reduce]) #dashboard-root :is(.dashboard-top,.office-home>.dashboard-metrics,.office-home-column>section,.office-home-recent,.office-operations,.office-map-disclosure){animation:office-content-appear 320ms cubic-bezier(.2,.7,.2,1) both}
 html[data-design=video]:not([data-motion=reduce]) .office-home-column:nth-child(2)>section{animation-delay:45ms}
 html[data-design=video]:not([data-motion=reduce]) .office-home-recent{animation-delay:70ms}
 html[data-design=video]:not([data-motion=reduce]) .dashboard-metric-tooltip:not([hidden]){animation:office-tooltip-appear 150ms ease-out both}
 @keyframes office-content-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
 @keyframes office-tooltip-appear{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
}

/* Personnel documents show actual recorded validity, not only workflow stage. */
html[data-design=video] .primary-directory-employee-documents{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .primary-directory-employee-documents table{min-width:1040px;table-layout:auto}
html[data-design=video] .primary-directory-employee-documents th{position:sticky;top:0;z-index:1;background:var(--surface)}
html[data-design=video] .primary-directory-employee-documents td{white-space:normal;overflow-wrap:anywhere;overflow:visible;vertical-align:top;line-height:1.6;min-width:110px}
html[data-design=video] .primary-directory-employee-documents td:first-child{min-width:260px}
html[data-design=video] .primary-directory-employee-documents td:nth-child(2){min-width:170px}
html[data-design=video] .primary-directory-employee-documents td:nth-child(3){min-width:180px}
html[data-design=video] .primary-directory-employee-documents td:last-child{min-width:170px}
html[data-design=video] .primary-directory-employee-documents .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] .primary-directory-employee-documents small{display:block;margin-top:5px;color:var(--subtle)}

/* Empty lists retain a recognizable section-specific vector symbol. */
html[data-design=video] .empty>.empty-icon{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 14px;padding:12px;border-radius:16px;background:var(--secondary-soft);color:var(--secondary-accent)}
html[data-design=video] .empty[data-empty-kind=people]>.empty-icon{background:var(--status-success-surface);color:var(--status-success-ink)}
html[data-design=video] .empty:is([data-empty-kind=document-id],[data-empty-kind=document-periodic],[data-empty-kind=document-personal])>.empty-icon{background:var(--status-info-surface);color:var(--status-info-ink)}
html[data-design=video] .empty:is([data-empty-kind=folder],[data-empty-kind=box],[data-empty-kind=calendar])>.empty-icon{background:var(--status-warning-surface);color:var(--status-warning-ink)}

html[data-design=video] .personal-card-register [data-personal-card-rows]>.empty>.empty-icon{width:36px;height:36px;margin:0;padding:0;border-radius:10px;background:var(--secondary-soft);color:var(--secondary-accent)}

html[data-design=video] .empty>.empty-icon>.opora-icon{color:inherit!important}

/* Lower dashboard sections reveal once as they enter the viewport. */
html[data-design=video] .office-scroll-reveal{animation:none!important}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) .office-scroll-reveal{transition:opacity 300ms ease-out,transform 300ms cubic-bezier(.2,.7,.2,1)}
 html[data-design=video]:not([data-motion=reduce]) .office-scroll-reveal[data-reveal=waiting]{opacity:0;transform:translateY(8px)}
 html[data-design=video]:not([data-motion=reduce]) .office-scroll-reveal[data-reveal=shown]{opacity:1;transform:none}
}
html[data-motion=reduce] .office-scroll-reveal{opacity:1!important;transform:none!important}
@media(prefers-reduced-motion:reduce){.office-scroll-reveal{opacity:1!important;transform:none!important}}
@media print{.office-scroll-reveal{opacity:1!important;transform:none!important;transition:none!important}}

/* A check result is distinct from the record's workflow status. */
/* Keep object names readable while the directory scrolls within its panel. */
html[data-design=video] .layout .primary-directory-objects.table-wrap{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .layout .primary-directory-objects.table-wrap>table{min-width:1020px;table-layout:auto}
html[data-design=video] .layout .primary-directory-objects.table-wrap :is(th,td){min-width:100px;vertical-align:top}
html[data-design=video] .layout .primary-directory-objects.table-wrap :is(th,td):first-child{min-width:260px}
html[data-design=video] .layout .primary-directory-objects.table-wrap :is(th,td):nth-child(2){min-width:180px}
html[data-design=video] .layout .primary-directory-objects.table-wrap .record-link{white-space:normal;text-align:left;line-height:1.5;overflow-wrap:anywhere}

html[data-design=video] .primary-directory-checks{max-height:560px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .primary-directory-checks table{min-width:1040px;table-layout:auto}
html[data-design=video] .primary-directory-checks th{position:sticky;top:0;z-index:1;background:var(--surface)}
html[data-design=video] .primary-directory-checks td{white-space:normal;overflow-wrap:anywhere;overflow:visible;vertical-align:top;line-height:1.6;min-width:110px}
html[data-design=video] .primary-directory-checks td:first-child{min-width:280px}
html[data-design=video] .primary-directory-checks td:nth-child(2){min-width:180px}
html[data-design=video] .primary-directory-checks td:nth-child(3){min-width:145px}
html[data-design=video] .primary-directory-checks .record-link{white-space:normal;text-align:left;line-height:1.5}
html[data-design=video] .primary-directory-checks small{display:block;margin-top:5px;color:var(--subtle)}
html[data-design=video] .primary-directory-checks .employee-document-glyph{background:var(--status-info-surface);color:var(--status-info-ink)}
html[data-design=video] .primary-directory-checks .check-result-passed{background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
html[data-design=video] .primary-directory-checks .check-result-failed{background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}
html[data-design=video] .primary-directory-checks .check-result-scheduled{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] .primary-directory-checks .check-result-unknown{background:var(--secondary);color:var(--subtle);border-color:var(--line)}

/* Global recent content stays on the library home, outside scoped folder views. */
.file-recent[hidden]{display:none!important}
.file-shared-label{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:6px;background:var(--status-info-surface);color:var(--status-info-ink);font-size:.76rem;line-height:1.4}

[data-file-overview][hidden]{display:none!important}

/* Folder colors follow stable identity/category, never grid position. */
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-tone=blue]{--folder-local:#a5c7f1}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-tone=violet]{--folder-local:#c3b0ec}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-tone=amber]{--folder-local:#f0d18c}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-tone=sage]{--folder-local:#add6b6}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-tone=rose]{--folder-local:#e9b4c8}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-tone=teal]{--folder-local:#a4d8dc}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .file-library-folder[data-folder-tone=blue]{--folder-local:#9eafc5}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .file-library-folder[data-folder-tone=violet]{--folder-local:#b4a5c4}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .file-library-folder[data-folder-tone=amber]{--folder-local:#dfbd8b}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .file-library-folder[data-folder-tone=sage]{--folder-local:#a6b194}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .file-library-folder[data-folder-tone=rose]{--folder-local:#d3997f}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .file-library-folder[data-folder-tone=teal]{--folder-local:#9cadab}

.appearance-color-field[hidden]{display:none!important}
html[data-design=video][data-folder-palette=mixed] .folder-color-preview>.file-folder-art:first-child{--folder-local:#a5c7f1}
html[data-design=video][data-folder-palette=mixed] .folder-color-preview>.file-folder-art:last-child{--folder-local:#f0d18c}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .folder-color-preview>.file-folder-art:first-child{--folder-local:#9eafc5}
html[data-design=video][data-folder-palette=mixed][data-finish=coffee] .folder-color-preview>.file-folder-art:last-child{--folder-local:#dfbd8b}

html[data-design=video] .file-library-folders>li{position:relative}
html[data-design=video] .personal-folder-menu .folder-menu-command{display:block;margin:0;padding:10px;width:100%;text-align:left;border:0;border-radius:6px;color:var(--ink);background:transparent;white-space:normal}
html[data-design=video] .personal-folder-menu .folder-menu-command:is(:hover,:focus-visible){background:var(--accent-soft);color:var(--green)}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-custom=true]{--folder-local:var(--folder-user-color)!important}
html[data-design=video][data-folder-palette=mixed] .file-library-folder[data-folder-custom=true] .folder-kind-icon{fill:var(--folder-user-ink)}
.file-folder-color-preview{display:grid;place-items:center;margin:0 0 16px;background:var(--secondary);border-radius:14px;padding:12px}
.file-folder-color-preview>.file-folder-art{width:180px;max-width:100%;height:auto}
html[data-design=video] .file-folder-color-preview .file-folder-art .folder-kind-icon{fill:var(--folder-user-ink)}
.file-folder-color-form>label{display:grid;gap:8px;max-width:260px}
.file-folder-color-form input[type=color]{width:100%;height:48px;padding:5px}
.file-folder-color-form>p{line-height:1.6;color:var(--subtle);margin-top:14px}
html[data-design=video] dialog:has(.file-folder-color-form){width:min(500px,calc(100vw - 24px))}

/* Keep vertical geometry stable while the rail changes width. */
@media(min-width:721px){
 html[data-design=video][data-menu=vertical] .layout>aside{overflow-anchor:none;overflow-x:hidden;scroll-behavior:auto}
 html[data-design=video][data-menu=vertical] .layout>aside :is(.nav,.navigation-group>.nav-group){height:40px;min-height:40px;flex-wrap:nowrap;overflow:hidden}
 html[data-design=video][data-menu=vertical] .layout>aside :is(.nav-label,.nav-group>span){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;flex-shrink:1}
 html[data-design=video][data-menu=vertical] .layout>aside .brand{height:68px;min-height:68px;overflow:hidden}
 html[data-design=video][data-menu=vertical] .layout>aside .brand>div{white-space:nowrap;flex-shrink:0}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]){padding-top:16px;padding-bottom:16px}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .navigation-group:not(.nested){margin-top:12px;padding-top:8px}
}

@media(min-width:721px){html[data-design=video][data-menu=vertical] .layout .topbar>.mobile-menu{position:relative!important;z-index:32}}

@media(min-width:721px){html[data-design=video][data-menu=vertical] .layout>.main{isolation:auto;z-index:auto}html[data-design=video][data-menu=vertical] .layout>.main>.content{position:relative;isolation:isolate;z-index:0}html[data-design=video][data-menu=vertical] .layout .topbar{position:relative;z-index:31}}

.file-folder-color-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.file-folder-color-swatches>button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--line-strong);border-radius:12px;background:var(--swatch);color:#182331;box-shadow:inset 0 0 0 3px var(--surface)}
.file-folder-color-swatches>button[aria-pressed=true]{outline:2px solid var(--green);outline-offset:2px}
.file-folder-color-swatches>button[aria-pressed=true]::after{content:'✓';font-size:1.28571429rem;font-weight:600}
.file-folder-color-help{margin-top:16px;color:var(--subtle);font-size:.857143rem;line-height:1.6}
.file-folder-color-help>summary{cursor:pointer;width:fit-content;color:var(--ink)}
.file-folder-color-help p{margin:8px 0 0}
.file-folder-color-form>.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
@media(max-width:480px){.file-folder-color-form>.actions>.primary{width:100%}.file-folder-color-form>.actions>button:not(.primary){flex:1}.file-folder-color-preview>.file-folder-art{width:150px}}

html[data-design=video] .file-library-folder .folder-metadata{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:5px;font-size:.8rem;line-height:1.4;overflow-wrap:normal}
.folder-metadata>span{display:inline-flex;align-items:center;white-space:nowrap}
.folder-metadata .folder-file-size::before{content:'·';margin-right:8px;color:var(--subtle)}
html[data-design=video] .file-library-folder .folder-context{font-size:.75rem;margin-top:3px;line-height:1.4}
html[data-design=video] dialog:has(.file-folder-form){width:min(560px,calc(100vw - 24px))}
.file-folder-form>label{display:grid;gap:8px;margin-block:14px;color:var(--ink)}
.file-folder-form input[name=folder_name]{width:100%;min-width:0}
.file-folder-form input[type=color]{width:160px;max-width:100%;height:44px;padding:4px}
.file-folder-editor-preview{display:grid;place-items:center;background:var(--secondary);border-radius:14px;padding:8px}
.file-folder-editor-preview>.file-folder-art{width:160px;height:auto}
html[data-design=video] .file-folder-editor-preview .file-folder-art .folder-kind-icon{fill:var(--folder-user-ink)}
.folder-icon-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:0;border:0;min-width:0;margin:18px 0}
.folder-icon-picker>legend{padding:0;margin-bottom:10px;font-size:.928571rem;color:var(--ink)}
.folder-icon-picker>button{display:grid;place-items:center;min-width:0;height:44px;padding:10px;border-radius:10px;background:var(--secondary);border:1px solid var(--line);color:var(--subtle)}
.folder-icon-picker>button .opora-icon{width:22px;height:22px;color:inherit}
.folder-icon-picker>button[aria-pressed=true]{background:var(--accent-soft);color:var(--green);border-color:var(--green)}
.file-folder-form>.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
@media(max-width:480px){.folder-icon-picker{grid-template-columns:repeat(4,minmax(0,1fr))}.file-folder-form>.actions>button{flex:1}.file-folder-editor-preview>.file-folder-art{width:130px}}


/* Selected OPORA mark: outlined O and supporting column, 2026-11-01. */
a.brand>.opora-brand-symbol-wrap{display:grid;place-items:center;flex:none;width:38px;height:42px;min-width:38px;background:transparent;border-radius:0;color:inherit}
.brand svg.opora-product-symbol{display:block;width:38px;height:38px;flex:none;color:inherit;overflow:visible}
.brand svg.opora-product-wordmark{display:block;width:122px;height:auto;max-width:100%;color:inherit;overflow:visible}
.brand .opora-product-ring,.brand .opora-product-wordmark path{fill:currentColor}
.opora-product-column{fill:#A36B4C}
html[data-theme=dark] .opora-product-column,html[data-sidebar-tone=dark] aside .opora-product-column{fill:#D6A783}
.auth-art-shield svg.opora-product-symbol{width:90px;height:90px;color:var(--auth-ink,var(--ink,#292C31))}
.auth-office[data-auth-finish=coffee] .opora-product-column{fill:#A36B4C}
html[data-theme=dark] .auth-office .opora-product-column{fill:#D6A783}
.mobile-workplace .brand svg.opora-product-wordmark{width:114px}
@media(max-width:800px){.auth-office .brand svg.opora-product-wordmark{width:110px}.auth-office a.brand>.opora-brand-symbol-wrap{width:34px;min-width:34px}.auth-office .brand svg.opora-product-symbol{width:34px;height:34px}}

/* The rail stays above header surfaces; only its pin control sits above the rail. */
@media(min-width:721px){
 html[data-design=video][data-menu=vertical] .layout .topbar{position:static;z-index:auto}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed]:has(.layout>aside:is(:hover,:focus-within,[data-pointer-peek])) .layout .topbar>.mobile-menu{opacity:0;visibility:hidden;pointer-events:none}
 html[data-design=video] .layout .topbar>.mobile-menu:focus:not(:focus-visible){outline:none;box-shadow:none}
}
html[data-design=video] .personal-folder-menu>summary{width:28px;height:28px;background:transparent;border-radius:50%;position:relative}
html[data-design=video] .personal-folder-menu>summary svg{width:14px;height:14px;opacity:.75}
html[data-design=video] .personal-folder-menu>div{top:32px}
@media(pointer:coarse){html[data-design=video] .personal-folder-menu>summary::before{content:'';position:absolute;inset:-8px}}
html[data-design=video] .personal-folder-menu .folder-delete-command{display:block;margin:0;padding:10px;width:100%;text-align:left;border:0;border-radius:6px;color:var(--status-danger-text);background:transparent;white-space:normal}
html[data-design=video] .personal-folder-menu .folder-delete-command:is(:hover,:focus-visible){background:var(--status-danger-surface)}
html[data-design=video] .file-folder-art .folder-paper-mark{fill:none;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.72}
html[data-design=video] .file-folder-art [data-paper-type=text] .folder-paper-mark{stroke:#587caa}
html[data-design=video] .file-folder-art [data-paper-type=sheet] .folder-paper-mark{stroke:#458462}
html[data-design=video] .file-folder-art [data-paper-type=pdf] .folder-paper-mark{stroke:#b46669}
html[data-design=video] .file-folder-art [data-paper-type=image] .folder-paper-mark{stroke:#4b8b92}
html[data-design=video] .file-folder-art [data-paper-type=file] .folder-paper-mark{stroke:#78818e}


/* Employee photo framing: preview-only vector guides, never exported to canvas. */
.portrait-guides[data-style=face]{background:none;box-shadow:none}
.portrait-face-guide{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none}
.portrait-face-guide :is(path,ellipse){fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.portrait-guide-halo{stroke:#17212d;stroke-width:3.3;opacity:.65}
.portrait-guide-line{stroke:#fff;stroke-width:1.25;stroke-dasharray:5 5;opacity:.95}
.portrait-face-guide .portrait-guide-caption{font:20px system-ui,sans-serif;fill:#fff;stroke:#17212d;stroke-width:3;paint-order:stroke;stroke-linejoin:round;letter-spacing:.3px}
.portrait-guide-help{font-size:0.85714286rem;color:var(--subtle);border:1px solid var(--line);padding:10px 12px;border-radius:10px}
.portrait-guide-help summary{cursor:pointer;color:var(--ink)}.portrait-guide-help p{line-height:1.5;margin:10px 0 0}
#portrait-editor-form .actions{display:flex;flex-wrap:wrap;gap:8px}#portrait-editor-form .actions button{flex:1;min-width:90px}
#portrait-compare{margin:0 auto 12px;display:block;min-height:38px}#portrait-compare[aria-pressed=true]{background:var(--accent-soft);color:var(--green);border-color:var(--green)}
.employee-photo-picker{display:inline-flex!important;position:relative;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;margin:8px 0!important;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:0.92857143rem;background:var(--surface);color:var(--ink);overflow:hidden;box-sizing:border-box}
.employee-photo-picker input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;margin:0;cursor:pointer}
.employee-photo-picker:focus-within{outline:2px solid var(--green);outline-offset:2px}.employee-photo-picker:has(input:disabled){opacity:.6;cursor:wait}
.employee-portrait figcaption .employee-photo-picker{width:auto;align-self:start}

.portrait-stage{max-width:360px}
.portrait-view-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.portrait-view-options select{width:100%;min-width:0;font-size:0.92857143rem;padding-right:24px}
.portrait-position{border:1px solid var(--line);border-radius:10px;padding:10px 12px}.portrait-position summary{cursor:pointer;font-size:0.92857143rem}.portrait-position[open] summary{margin-bottom:12px}.portrait-position label+label{margin-top:12px!important}
@media(max-width:620px){.portrait-stage{max-width:300px}.portrait-face-guide .portrait-guide-caption{font-size:1.57142857rem}}

/* Quiet file tools, recent-document rows and real table paging. */
.file-actions-menu{position:relative;display:inline-block;flex:none}
.file-actions-menu>summary{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;cursor:pointer;list-style:none;color:var(--subtle)}
.file-actions-menu>summary::-webkit-details-marker{display:none}
.file-actions-menu>summary svg{width:14px;height:14px;fill:currentColor}
.file-actions-menu>summary:is(:hover,:focus-visible),.file-actions-menu[open]>summary{color:var(--green);background:var(--accent-soft)}
.file-actions-menu>div{position:fixed;z-index:1000;min-width:160px;max-width:calc(100vw - 24px);padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 8px 24px var(--folder-shadow);overflow:auto}
.file-actions-menu>div>a,.file-actions-menu>div>button,.file-actions-menu .file-removal>button{display:block;width:100%;text-align:left;margin:0;padding:10px;border:0;background:transparent;border-radius:7px;color:var(--ink);white-space:normal;line-height:1.4}
.file-actions-menu>div>a:hover,.file-actions-menu>div>button:hover{background:var(--accent-soft);text-decoration:none}
.file-actions-menu .file-removal>button{color:var(--status-danger-text)}
.file-actions-menu [data-file-remove-confirm]{display:block;padding:8px;font-size:.857143rem;line-height:1.5}
.file-actions-menu [data-file-remove-confirm][hidden]{display:none}
.file-actions-menu [data-file-remove-confirm]>button{margin-top:6px;padding:7px 10px}
.file-overview-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-top:1px solid var(--line);font-size:.857143rem;color:var(--subtle)}
.file-overview-pagination>div{display:flex;align-items:center;gap:12px}
.file-overview-pagination button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink)}
.file-overview-pagination button:disabled{cursor:default;opacity:.4}
html[data-design=video] .file-recent-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:4px;background:var(--secondary);border-radius:12px;width:fit-content;max-width:100%;margin-bottom:14px}
html[data-design=video] .file-recent-tabs>button{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:var(--subtle);font-size:.857143rem;line-height:1.4;flex:1 1 auto}
html[data-design=video] .file-recent-tabs>button[aria-pressed=true]{background:var(--surface);color:var(--green);box-shadow:0 1px 3px var(--folder-shadow)}
.file-recent-tabs>button>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.file-recent-item{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}
.file-recent-item:last-child{border-bottom:0}
.file-recent-item>a{display:flex;align-items:center;gap:12px;min-width:0;padding:4px 2px;color:var(--ink);border-radius:9px;text-decoration:none}
.file-recent-item>a:hover{background:var(--secondary);text-decoration:none}
.file-recent-item .file-type-mark{flex:none}
.file-recent-copy{min-width:0;flex:1}
.file-recent-copy>strong{display:block;font-size:.928571rem;line-height:1.45;overflow-wrap:anywhere}
.file-recent-copy>.file-recent-context{display:block;margin:3px 0 0;font-size:.8rem;line-height:1.4;overflow-wrap:anywhere;color:var(--subtle)}
.file-recent-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:5px;font-size:.75rem;color:var(--subtle);line-height:1.4}
.file-recent-meta>span{white-space:nowrap}
/* Give organization selection priority over optional header text. */
html[data-design=video] .topbar>.organization-switcher{flex:1 1 280px;min-width:180px;max-width:400px}
html[data-design=video] .topbar .organization-switcher>label{flex:1 1 auto;min-width:0;width:100%}
html[data-design=video] .topbar #organization-context{display:block;width:100%;min-width:0;max-width:100%;padding-left:12px;padding-right:32px;text-overflow:ellipsis}
html[data-design=video] .topbar .organization-switcher>label::after{top:50%;bottom:auto;transform:translateY(-65%) rotate(45deg)}
@media(max-width:1100px){html[data-design=video] .topbar .account-menu>summary>span:not(.avatar){display:none}html[data-design=video] .topbar .account-menu>summary{max-width:72px}}
@media(max-width:900px){html[data-design=video] .topbar{gap:10px;padding-inline:14px}html[data-design=video] .topbar #global-search-open{width:40px;min-width:40px;padding:8px;justify-content:center}html[data-design=video] .topbar #global-search-open>span{display:none}}
@media(max-width:480px){html[data-design=video] .topbar{gap:6px;padding-inline:10px}html[data-design=video] .topbar>.organization-switcher{min-width:120px;gap:5px}html[data-design=video] .topbar .organization-switcher #organization-add{width:30px;min-width:30px;height:36px}html[data-design=video] .topbar #organization-context{font-size:.857143rem;padding-left:8px;padding-right:25px}html[data-design=video] .topbar .organization-switcher>label::after{right:10px}.file-overview-pagination{padding:12px}.file-overview-pagination>div{gap:8px}.file-recent-meta>span{white-space:normal}.file-recent-tabs>button{padding:9px 8px}}

/* Opt-in system reminders use the active office palette. */
html[data-design=video] dialog:has(.desktop-reminder-settings){width:min(560px,calc(100vw - 24px))}
.desktop-reminder-settings{display:grid;gap:18px}
.desktop-reminder-status{margin:0;padding:12px 14px;border-radius:10px;line-height:1.5;background:var(--secondary);color:var(--ink)}
.desktop-reminder-option{display:flex;gap:12px;align-items:flex-start;cursor:pointer;line-height:1.5;color:var(--ink)}
.desktop-reminder-option>input{width:18px;min-width:18px;height:18px;margin-top:2px}
.desktop-reminder-option>span{min-width:0}
.desktop-reminder-option strong{display:block;font-size:.928571rem;font-weight:600}
.desktop-reminder-option small{display:block;margin-top:3px;font-size:.857143rem;color:var(--subtle)}
.desktop-reminder-settings>fieldset{display:grid;gap:10px;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;min-width:0}
.desktop-reminder-settings legend{padding-inline:5px;color:var(--subtle);font-size:.857143rem}
.desktop-reminder-settings>.actions{display:flex;gap:8px;flex-wrap:wrap;margin:0}
.desktop-reminder-settings [role=alert]:empty{display:none}

.file-actions-menu>div[popover]{inset:auto;margin:0}.file-actions-menu>div[popover]:not(:popover-open){display:none}.file-actions-menu>div[popover]:popover-open{display:block}

/* Portrait studio v2 — framed preview, focused inspector, adjustable face references. */
#modal:has(.photo-studio){width:min(1120px,calc(100vw - 28px));max-width:calc(100vw - 28px);overflow:hidden}
.photo-studio.dialog-body{padding:0!important;height:min(720px,calc(100dvh - 130px));min-height:400px;overflow:hidden;--studio-backdrop:color-mix(in srgb,var(--canvas,#f3f1ed) 82%,var(--ink,#2b3035) 18%)}
.photo-studio #portrait-editor-form{display:grid;grid-template-columns:minmax(0,1fr) 302px;grid-template-rows:minmax(0,1fr) auto;height:100%;gap:0;margin:0}
.studio-preview{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--canvas);padding:18px 20px 0;overflow:hidden}
.studio-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex:none}
.studio-format-chips{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.studio-format-chips button{border:0!important;background:transparent!important;color:var(--subtle)!important;min-width:48px;min-height:32px;padding:6px 12px;border-radius:9px;font-size:0.85714286rem;font-weight:600;font-variant-numeric:tabular-nums}
.studio-format-chips button[aria-pressed=true]{background:var(--accent-soft)!important;color:var(--green)!important;box-shadow:0 1px 3px #0000000a}
.studio-format-native{display:none!important}
.photo-studio #portrait-compare{margin:0;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;min-height:38px;padding:7px 14px;font-size:0.85714286rem;white-space:nowrap}
.studio-artboard{display:grid;place-items:center;flex:1;min-height:0;min-width:0;border-radius:18px;overflow:hidden;background-color:var(--studio-backdrop);background-image:radial-gradient(#ffffff38 .8px,transparent .8px);background-size:12px 12px;box-shadow:inset 0 0 0 1px #00000004}
.photo-studio .portrait-stage{position:relative;max-width:none;width:280px;height:auto;margin:0;border-radius:6px;border:1px solid #ffffff80;box-shadow:0 12px 34px #171d2a24;background:var(--surface);overflow:hidden;flex:none}
.photo-studio #portrait-canvas{width:100%;height:auto;display:block;outline-offset:-3px}
.photo-studio #portrait-canvas:focus-visible{outline:2px solid var(--green)}
.photo-studio #portrait-status{font-size:0.78571429rem;line-height:1.45;color:var(--subtle);margin:10px 0 12px;min-height:18px;flex:none}
.studio-inspector{position:static;height:auto;color:var(--ink);min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--surface);overflow:hidden}
.studio-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:14px 12px 12px;border-bottom:1px solid var(--line);flex:none}
.studio-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px;min-width:0;padding:9px 3px;border:0;border-radius:12px;background:transparent;color:var(--subtle);font-size:0.78571429rem;font-weight:500;line-height:1.2}
.studio-tabs button svg{width:21px;height:21px;color:inherit}
.studio-tabs button[aria-selected=true]{background:var(--accent-soft);color:var(--green)}
.studio-tabs button:hover{background:var(--secondary)}
.studio-panel{padding:20px;overflow-y:auto;min-height:0;scrollbar-gutter:stable;flex:1}
.studio-panel[hidden]{display:none!important}
.studio-section-heading{margin-bottom:24px}.studio-section-heading strong{display:block;font-size:14px;font-weight:650}.studio-section-heading small{display:block;margin-top:6px;color:var(--subtle);font-size:0.78571429rem;line-height:1.5}
.photo-studio #portrait-editor-form .studio-range{display:block;margin:0 0 21px;font-size:0.85714286rem;font-weight:500;color:var(--ink)}
.photo-studio .studio-range output{font-size:0.78571429rem;font-weight:500;color:var(--subtle);background:var(--secondary);padding:2px 7px;border-radius:6px;min-width:35px;text-align:center}
.photo-studio #portrait-editor-form input[type=range]{margin-top:10px;height:24px;min-height:24px;padding:0}
.studio-turns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 20px}.studio-turns button{min-height:37px;font-size:0.85714286rem;border-radius:10px}
.studio-auto-actions{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.studio-auto-actions #portrait-auto{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--accent-soft);border:1px solid var(--line);color:var(--green);font-size:0.85714286rem;min-height:42px;border-radius:11px;font-weight:600}
.studio-auto-actions #portrait-auto svg{width:19px;height:19px;flex:none}
.studio-auto-actions #portrait-auto-undo{font-size:0.78571429rem;padding:5px 4px;min-height:28px;border:0;background:transparent;color:var(--subtle)}
.studio-auto-actions #portrait-auto-undo:disabled{display:none}
.photo-studio .portrait-position{padding:11px 12px;border-radius:11px;margin:0 0 14px}
.photo-studio .portrait-position summary{font-size:0.85714286rem;color:var(--subtle)}
.photo-studio .portrait-position[open] summary{margin-bottom:18px}
.photo-studio #portrait-editor-form .portrait-position .studio-range{margin-bottom:12px}
.studio-reset{font-size:0.78571429rem;min-height:34px;width:100%;color:var(--subtle);border:0;background:transparent;padding:6px}
.studio-note{font-size:0.78571429rem;line-height:1.6;color:var(--subtle);margin-top:22px}
.studio-panel label:not(.studio-range){display:block;font-size:0.85714286rem}
.studio-panel select{width:100%;margin:8px 0 18px;min-height:40px;font-size:0.85714286rem;border-radius:10px}
.studio-panel .check{margin:0 0 22px!important;font-size:0.85714286rem}
.studio-footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;background:var(--surface);border-top:1px solid var(--line);min-height:72px}
.studio-footer>span{color:var(--subtle);font-size:0.78571429rem;line-height:1.45;max-width:270px}
.photo-studio .studio-footer .form-actions{display:flex;align-items:center;gap:10px;padding:0;margin:0;flex:none}
.studio-footer button{min-height:42px;border-radius:11px;font-size:0.85714286rem;padding:9px 20px}.photo-studio .studio-footer .form-actions .primary{min-width:144px}
.studio-guide-shadow{stroke:#17222d;stroke-width:3;fill:none;opacity:.55}
.studio-guide-foreground{stroke:#fff;stroke-width:1.2;fill:none;opacity:.95}
.portrait-face-guide .studio-centre-axis{stroke-dasharray:4 6;opacity:.5}
.studio-guide-foreground .studio-nose-target{stroke:#ffe0ad;stroke-width:1.5}
.studio-guide-foreground .studio-chin-target{stroke:#fff;stroke-width:1.4}
.studio-guide-foreground .studio-head-outline{opacity:.8;stroke-dasharray:9 5}
.portrait-face-guide circle{fill:none;vector-effect:non-scaling-stroke}
.photo-studio #portrait-landmarks circle{fill:#fff;stroke:#48c5b2;stroke-width:1.6;vector-effect:non-scaling-stroke}
.photo-studio #portrait-landmarks path{display:none}
.photo-studio .portrait-face-guide{transition:opacity .15s ease}
@media(max-width:700px){
 #modal:has(.photo-studio){max-width:calc(100vw - 16px);width:calc(100vw - 16px);overflow-y:auto}
 .photo-studio.dialog-body{height:auto;min-height:0;overflow:visible}
 .photo-studio #portrait-editor-form{display:block;height:auto}
 .studio-preview{height:min(430px,57dvh);min-height:300px;padding:12px 12px 0}
 .studio-preview-toolbar{gap:8px;margin-bottom:10px}.studio-format-chips button{min-width:41px;padding:6px 9px}
 .photo-studio #portrait-compare{font-size:0.78571429rem;padding:7px 10px}
 .studio-inspector{border-left:0;border-top:1px solid var(--line);overflow:visible}
 .studio-tabs{padding:10px}.studio-tabs button{min-height:52px;flex-direction:row;gap:6px;font-size:0.71428571rem}.studio-tabs button svg{width:17px;height:17px}
 .studio-panel{padding:18px;overflow:visible;scrollbar-gutter:auto}.studio-section-heading{margin-bottom:18px}
 .studio-footer{position:sticky;bottom:0;z-index:4;display:block;padding:12px;background:var(--surface);box-shadow:0 -4px 20px #00000008}
 .studio-footer>span{display:none}.photo-studio .studio-footer .form-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.studio-footer button{width:100%;min-width:0!important;padding:10px 8px}
}
@media(prefers-reduced-motion:reduce){.photo-studio *{transition:none!important;animation:none!important}}
html[data-motion=reduce] .photo-studio *{transition:none!important;animation:none!important}

.studio-tabs [data-studio-tab=crop] svg{color:#5d80a4}.studio-tabs [data-studio-tab=light] svg{color:#a77c35}.studio-tabs [data-studio-tab=guide] svg{color:#8b70aa}
.studio-face-settings[hidden]{display:none!important}
#studio-panel-guide .studio-section-heading{margin-bottom:16px}#studio-panel-guide .check{margin-bottom:14px!important}#studio-panel-guide .studio-range{margin-bottom:14px!important}
.studio-panel:not([hidden]){animation:portrait-studio-panel-in .16s ease both}@keyframes portrait-studio-panel-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

/* File-kind marks stay visible on peeking paper edges and on hover. */
html[data-design=video] .file-folder-art [data-paper-type=text]{--paper-mark-color:#587caa}
html[data-design=video] .file-folder-art [data-paper-type=sheet]{--paper-mark-color:#458462}
html[data-design=video] .file-folder-art [data-paper-type=pdf]{--paper-mark-color:#b46669}
html[data-design=video] .file-folder-art [data-paper-type=image]{--paper-mark-color:#4b8b92}
html[data-design=video] .file-folder-art [data-paper-type=file]{--paper-mark-color:#78818e}
html[data-design=video] .file-folder-art .folder-paper .folder-paper-tab{fill:var(--paper-mark-color);stroke:none;opacity:.55}
html[data-design=video] .file-folder-art .folder-paper-mark :is(path,circle){fill:none;stroke:var(--paper-mark-color);opacity:.8;stroke-width:1.1}

/* Folder palettes keep their actual color while selected or hovered. */
html[data-design="video"] .file-folder-color-swatches>button,
html[data-design="video"] .file-folder-color-swatches>button:hover,
html[data-design="video"] .file-folder-color-swatches>button:focus-visible,
html[data-design="video"] .file-folder-color-swatches>button[aria-pressed="true"]{background:var(--swatch);color:#182331}

/* Mobile drawer scrim follows the selected finish, including hover/focus. */
@media(max-width:720px){
 html[data-design=video]{--drawer-scrim:#24233052}
 html[data-design=video][data-finish=coffee]{--drawer-scrim:#30282052}
 html[data-design=video][data-theme=dark]{--drawer-scrim:#09090d99}
 html[data-design=video] .layout>.sidebar-backdrop:not([hidden]),
 html[data-design=video] .layout>.sidebar-backdrop:not([hidden]):is(:hover,:focus,:active){background:var(--drawer-scrim);border:0;box-shadow:none;backdrop-filter:none}
}

/* Branded ranges: quiet track, accent progress, light circular handle. */
.photo-studio #portrait-editor-form input[type=range]{appearance:none;-webkit-appearance:none;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;cursor:pointer;height:28px;outline:none}
.photo-studio input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:99px;background:linear-gradient(to right,var(--green) 0%,var(--green) var(--range-progress,50%),var(--line-strong,var(--line)) var(--range-progress,50%),var(--line-strong,var(--line)) 100%);border:0}
.photo-studio input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;border-radius:50%;background:var(--surface);border:2px solid var(--green);margin-top:-6px;box-shadow:0 1px 4px #0000001a;transition:box-shadow .12s ease,transform .12s ease}
.photo-studio input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--accent-soft);transform:scale(1.05)}
.photo-studio input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--accent-soft),0 0 0 5px var(--green)}
.photo-studio input[type=range]::-moz-range-track{height:5px;border-radius:99px;background:var(--line-strong,var(--line));border:0}
.photo-studio input[type=range]::-moz-range-progress{height:5px;border-radius:99px;background:var(--green)}
.photo-studio input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--surface);border:2px solid var(--green);box-shadow:0 1px 4px #0000001a}
.photo-studio input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px var(--accent-soft),0 0 0 5px var(--green)}
.photo-studio input[type=range]:disabled{cursor:wait;opacity:.5}
@media(prefers-reduced-motion:reduce){.photo-studio input[type=range]::-webkit-slider-thumb{transition:none}}
html[data-motion=reduce] .photo-studio input[type=range]::-webkit-slider-thumb{transition:none}

/* Clear original/result state and compact studio footer. */
.photo-studio .studio-artboard{position:relative}
.studio-compare-state{position:absolute;left:12px;top:12px;z-index:3;padding:5px 10px;border-radius:8px;background:var(--surface);color:var(--ink);font-size:0.78571429rem;font-weight:600;box-shadow:0 2px 8px #00000010;pointer-events:none}
.photo-studio .studio-footer{justify-content:flex-end}
.photo-studio .studio-footer>span:empty{display:none}

/* File rows: a quiet leading marker accompanies hover and keyboard focus. */
html[data-design=video] .file-recent-item>a{position:relative;padding-inline:10px 6px}
html[data-design=video] .file-recent-item>a::before{content:"";position:absolute;inset:10px auto 10px 0;width:3px;border-radius:3px;background:var(--green);opacity:0;transform:scaleY(.5)}
html[data-design=video] .file-recent-item>a:is(:hover,:focus-visible)::before{opacity:1;transform:scaleY(1)}
html[data-design=video]:not([data-motion=reduce]) .file-recent-item>a::before{transition:opacity 140ms ease,transform 160ms ease}
@media(prefers-reduced-motion:reduce){html[data-design=video] .file-recent-item>a::before{transition:none}}
/* A visible track at every usage level; native progress retains exact bytes. */
html[data-design=video] .office-file-head>.file-storage>progress{display:block;width:100%;height:8px;overflow:hidden;border:1px solid color-mix(in srgb,var(--ink) 22%,var(--surface));border-radius:8px;background:color-mix(in srgb,var(--ink) 10%,var(--surface));appearance:none}
html[data-design=video] .file-storage>progress::-webkit-progress-bar{background:color-mix(in srgb,var(--ink) 10%,var(--surface));border-radius:8px}
html[data-design=video] .file-storage>progress::-webkit-progress-value{background:var(--green);border-radius:8px}
html[data-design=video] .file-storage>progress[data-used=true]::-webkit-progress-value{min-width:3px}
html[data-design=video] .file-storage>progress::-moz-progress-bar{background:var(--green);border-radius:8px}
/* Browser-native semantics, fully themed option panel where supported. */
@supports(appearance:base-select){
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size]),
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size])::picker(select){appearance:base-select}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size]){align-items:center;gap:8px;text-overflow:ellipsis}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size])::picker(select){background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:6px;margin-block:6px;box-shadow:0 12px 32px #201c1724;max-height:min(360px,55dvh);max-width:calc(100vw - 24px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size]) option{display:flex;align-items:center;gap:10px;min-height:38px;padding:9px 12px;border-radius:7px;white-space:normal;overflow-wrap:anywhere;font-weight:400;background:transparent;color:var(--ink)}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size]) option:is(:hover,:focus,:checked){background:color-mix(in srgb,var(--green) 12%,var(--surface));color:var(--ink)}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size]) option::checkmark{color:var(--green)}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size])::picker-icon{color:var(--subtle);font-size:.85em;margin-left:auto}
}

/* Employee document previews stay next to the chosen card on small screens. */
.office-employee-preview-close{display:none}
.office-employee-select :is(strong,small){overflow-wrap:anywhere}
@media(max-width:760px){
 .office-employees{display:flex;flex-direction:column;align-items:stretch}
 .office-employee-grid{display:contents}
 .office-employee-card{order:var(--employee-order)}
 .office-employee-inspector{order:var(--employee-detail-order);display:none;position:static;padding:16px}
 .office-employees[data-preview-open=true]>.office-employee-inspector{display:block}
 .office-employee-preview-close{display:block;margin:0 0 14px auto;padding:7px 10px;font-size:.8rem;color:var(--green)}
 .office-employees[data-preview-open=true] .office-employee-card:has([aria-pressed=true]){border-bottom-left-radius:8px;border-bottom-right-radius:8px}
}

/* Interactive comparison uses its own layer; the export canvas stays clean. */
.photo-studio .studio-comparison{--split:50%;position:absolute;inset:0;z-index:5;overflow:hidden}
.photo-studio .studio-comparison[hidden]{display:none!important}
.photo-studio #portrait-before-canvas{position:absolute;inset:0;width:100%;height:100%;clip-path:inset(0 calc(100% - var(--split)) 0 0);pointer-events:none}
.studio-split-line{position:absolute;left:var(--split);top:0;bottom:0;width:2px;transform:translateX(-1px);background:var(--surface);box-shadow:0 0 3px #0008;pointer-events:none}
.studio-split-line>span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--green);font-size:1.21428571rem;box-shadow:0 2px 10px #0002;white-space:nowrap}
.studio-split-label{position:absolute;top:10px;padding:4px 8px;border-radius:7px;background:var(--surface);color:var(--ink);font-size:0.71428571rem;pointer-events:none}.studio-split-before{left:10px}.studio-split-after{right:10px}
.photo-studio #portrait-split{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:ew-resize;touch-action:none}
.studio-comparison:focus-within{outline:2px solid var(--green);outline-offset:-3px}

@supports(appearance:base-select){
 html[data-design=video] .layout .topbar #organization-context{display:flex;align-items:center;background-image:none;padding-right:12px}
 html[data-design=video] .layout .topbar .organization-switcher>label::after{content:none}
 html[data-design=video] :is(.layout,dialog) select:not([multiple]):not([size]) option:focus{outline:1px solid var(--green);outline-offset:-2px}
 @media(max-width:480px){
  html[data-design=video] .layout .topbar #organization-context{appearance:none;display:block;padding-right:25px;white-space:nowrap;text-overflow:ellipsis}
  html[data-design=video] .layout .topbar #organization-context::picker(select){appearance:auto}
  html[data-design=video] .layout .topbar .organization-switcher>label::after{content:""}
 }
}

#studio-panel-light .studio-section-heading{margin-bottom:18px}.photo-studio #portrait-editor-form #studio-panel-light .studio-range{margin-bottom:10px}

.photo-studio #portrait-editor-form #portrait-split{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;cursor:ew-resize}

/* Searchable record pickers share the same panel finish as standard lists. */
html[data-design=video] .reference-popup{border-color:var(--line);background:var(--surface);color:var(--ink);box-shadow:0 12px 32px #201c1724;scrollbar-color:var(--subtle) transparent}
html[data-design=video] .reference-option{min-height:38px;padding:9px 12px}
html[data-design=video] .reference-option strong{font-weight:500}
html[data-design=video] .reference-option:is(:hover,[aria-selected=true]){background:color-mix(in srgb,var(--green) 12%,var(--surface));color:var(--ink)}
html[data-design=video] .reference-option small{overflow-wrap:anywhere;color:var(--subtle)}
@media(prefers-reduced-motion:no-preference){
 @supports(appearance:base-select){
  html[data-design=video]:not([data-motion=reduce]) :is(.layout,dialog) select:not([multiple]):not([size])::picker(select){animation:reference-popup-fade 120ms ease-out}
 }
}

/* Route entrance changes opacity only: fixed menus and scroll positions stay stable. */
@keyframes office-page-enter{from{opacity:.55}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
 html[data-design=video]:not([data-motion=reduce]) #content:not([data-background-refresh=true])>:is(.page-head,.panel,.office-day,.file-library,.task-register){animation:office-page-enter 160ms ease-out}
}
@media print{html[data-design=video] #content>*{animation:none!important}}

/* Secondary page controls inherit the selected material instead of browser white. */
html[data-design=video] .layout :is(.page-head>.actions,.toolbar,.toolbar .actions,.task-filter-actions,.employee-card-toolbar,.calendar-toolbar,.communicator-toolbar,.salary-work-toolbar,.task-calendar-toolbar,.form-actions)>:is(button,.button):not(.primary):not(.danger):not(.active):not([aria-pressed]){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=video] .layout :is(.page-head>.actions,.toolbar,.toolbar .actions,.task-filter-actions,.employee-card-toolbar,.calendar-toolbar,.communicator-toolbar,.salary-work-toolbar,.task-calendar-toolbar,.form-actions)>:is(button,.button):not(.primary):not(.danger):not(.active):not([aria-pressed]):hover{background:var(--secondary);border-color:color-mix(in srgb,var(--green) 40%,var(--line))}

.employee-photo-form{display:flex;align-items:center;gap:18px;padding:16px;margin:8px 0 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.employee-photo-draft-preview{display:grid;place-items:center;flex:none;width:76px;height:96px;background:var(--secondary);border-radius:10px;overflow:hidden;color:var(--subtle)}.employee-photo-draft-preview>svg{width:30px;height:30px}.employee-photo-draft-preview img{width:100%;height:100%;object-fit:cover}.employee-photo-form strong{font-size:0.92857143rem}.employee-photo-form p{font-size:0.78571429rem;margin:6px 0 10px}.employee-photo-form .actions{display:flex;flex-wrap:wrap;gap:8px}.employee-photo-form button{font-size:0.85714286rem}@media(max-width:500px){.employee-photo-form{gap:12px;padding:12px}.employee-photo-draft-preview{width:60px;height:80px}}

.studio-shape-switch{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 10px;flex:none}.studio-shape-switch button{min-height:30px;font-size:0.78571429rem;padding:5px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--subtle)}.studio-shape-switch button[aria-pressed=true]{border-color:var(--line);background:var(--surface);color:var(--green)}.photo-studio .portrait-stage[data-shape=round]{border-radius:50%}

/* Folder commands: one editor entry and an unmistakable removal action. */
html[data-design=video] .personal-folder-menu>div>button:is(.personal-folder-rename,.folder-delete-command,.folder-menu-command){display:flex;align-items:center;gap:10px;line-height:1.4;overflow-wrap:anywhere}
html[data-design=video] .personal-folder-menu>div>button>.opora-icon{width:18px;height:18px;flex:none}
html[data-design=video] .personal-folder-menu .folder-delete-command,
html[data-design=video] .file-actions-menu .file-removal>button{color:var(--status-danger-text,#b5473e)}

.photo-studio #portrait-editor-form #studio-panel-light input[type=range]{height:24px;min-height:24px;margin-top:8px}.photo-studio #portrait-editor-form #studio-panel-light .studio-range{margin-bottom:8px}

/* Home document rows expose the same permission-aware commands as the library. */
.office-home-document-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.office-home-document-row:last-child{border-bottom:0}
.office-home-document-row>.office-recent-document{border:0;min-width:0;padding-right:4px}
.office-home-recent .office-home-document-row .office-recent-document>span:last-child{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
.office-home-document-row .file-type-mark{flex:none}

/* Personal card registry illustration, compact decorative PNG. */
.personal-card-heading{display:flex;align-items:center;gap:14px;min-width:0}
.personal-card-heading-art{width:112px;height:75px;object-fit:contain;flex:none}
@media(max-width:600px){.personal-card-heading{gap:8px}.personal-card-heading-art{width:76px;height:51px}}
@media print{.personal-card-heading-art{display:none}}
.personal-card-cell-label{display:none}
.primary-directory-assets .primary-cell-label{display:none}
.primary-directory-assets td:nth-child(2){min-width:170px}
@media screen and (max-width:600px){
 .primary-directory-assets.table-wrap{overflow:visible}
 .primary-directory-assets table{display:block;min-width:0;width:100%}
 .primary-directory-assets thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .primary-directory-assets tbody{display:block}
 .primary-directory-assets tbody>tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px;border-bottom:1px solid var(--line)}
 .primary-directory-assets tbody>tr:last-child{border-bottom:0}
 :is(html[data-design=video] .layout .primary-directory-assets.table-wrap,.primary-directory-assets.table-wrap)>table>tbody>tr>td{min-width:0;max-width:none;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
 .primary-directory-assets.table-wrap>table>tbody>tr>td:first-child{position:absolute;top:14px;left:14px;width:44px}
 .primary-directory-assets.table-wrap>table>tbody>tr>td:nth-child(2){grid-column:1/-1;display:flex;align-items:center;min-height:44px}
 .primary-directory-assets tbody>tr>td:nth-child(2)>.primary-cell-value{margin-inline-start:54px}
 .primary-directory-assets .primary-cell-label{display:block;margin-bottom:3px;color:var(--subtle);font-size:.8rem}
 .primary-directory-assets tbody>tr>td:is(:first-child,:nth-child(2)) .primary-cell-label{display:none}
 .primary-directory-assets .record-link{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:start}
}
@media screen and (max-width:600px){
 .personal-card-register .table-wrap,
 html[data-design=video] .personal-card-register .table-wrap{max-height:none;overflow:visible}
 .personal-card-register table{display:block;min-width:0;width:100%}
 .personal-card-register thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .personal-card-register tbody{display:block}
 .personal-card-register tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;padding:14px;border-bottom:1px solid var(--line)}
 .personal-card-register tbody tr:last-child{border-bottom:0}
 .personal-card-register tbody td,
 html[data-design=video] .personal-card-register tbody td:nth-child(n){min-width:0;max-width:none;padding:0;border:0;overflow-wrap:anywhere}
 .personal-card-register tbody td:first-child{grid-column:1/-1}
 .personal-card-cell-label{display:block;margin-bottom:3px;color:var(--subtle);font-size:.8rem}
}

/* Shared file command pictograms and restrained menu motion. */
.file-actions-menu>div>a,.file-actions-menu>div>button,.file-actions-menu .file-removal>button{display:flex;align-items:center;gap:10px}
.file-action-icon{width:18px;height:18px;flex:none;opacity:.85}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .file-actions-menu>div:popover-open{animation:file-command-enter 120ms ease-out}}
@keyframes file-command-enter{from{opacity:0;translate:0 -3px}to{opacity:1;translate:0 0}}

.file-actions-menu [hidden]{display:none!important}

/* Compact folder editor with a visible action row. */
html[data-design=video] dialog[open]:has(.file-folder-form){width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden}
html[data-design=video] dialog:has(.file-folder-form)>header{flex:none}
.file-folder-form{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.file-folder-form>.file-folder-editor-preview{grid-column:1;grid-row:1/3;align-self:stretch;padding:4px}
.file-folder-form>.file-folder-editor-preview>.file-folder-art{width:160px;max-width:100%}
.file-folder-form>label{margin:0}
.file-folder-form>label:has([name=folder_name]){grid-column:2;grid-row:1;align-self:start}
.file-folder-form>.folder-icon-picker{grid-column:2;grid-row:2;margin:0;gap:6px}
.file-folder-form>.folder-icon-picker>button{height:40px;padding:8px}
.file-folder-form>.file-folder-color-swatches{grid-column:1/-1;grid-row:3;margin:0;gap:10px}
.file-folder-form>label:has([name=folder_color]){grid-column:1;grid-row:4}
.file-folder-form>.file-folder-color-help{grid-column:2;grid-row:4;margin:0;align-self:center}
.file-folder-form>.error{grid-column:1/-1;margin:0}
.file-folder-form>.error:empty{display:none}
.file-folder-form>.actions{grid-column:1/-1;position:sticky;bottom:-22px;margin:0 -22px -22px;padding:14px 22px;background:var(--surface);border-top:1px solid var(--line);z-index:2;justify-content:flex-end}
@media(max-width:600px){
 .file-folder-form{display:flex;flex-direction:column;gap:14px}
 .file-folder-form>.file-folder-editor-preview{min-height:88px;max-height:100px}
 .file-folder-form>.file-folder-editor-preview>.file-folder-art{width:120px}
 .file-folder-form>.folder-icon-picker{grid-template-columns:repeat(6,minmax(0,1fr))}
 .file-folder-form>.folder-icon-picker>button{height:40px;padding:6px}
 .file-folder-form>.file-folder-color-help{align-self:stretch}
 .file-folder-form>.file-folder-color-swatches{gap:8px}
 .file-folder-form>.file-folder-color-swatches>button{width:38px;height:38px}
}

.file-folder-form{padding:20px}
.file-folder-form>.actions{bottom:-20px;margin:0 -20px -20px;padding:14px 20px}
@media(max-width:600px){.file-folder-form{padding:16px}.file-folder-form>label:has([name=folder_name]){align-self:stretch}.file-folder-form>.actions{bottom:-16px;margin:0 -16px -16px;padding:12px 16px}}

/* Remove empty feedback spacing and redundant home breadcrumb above folders. */
.file-library>.error:empty{display:none}
html[data-design=video] .file-library:has(>.file-library-folders)>.file-library-location:has(>.file-library-breadcrumbs>button:only-child){display:none}
html[data-design=video] .file-library>.file-shelf-title{margin-block:14px 8px}
html[data-design=video] .file-library>.file-library-folders{margin-top:8px}

.file-recent-empty{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--ink)}
.file-recent-empty-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--secondary);color:var(--subtle)}
.file-recent-empty-icon>svg{width:24px;height:24px;opacity:1}
.file-recent-empty strong{font-size:.928571rem;font-weight:500}
.file-recent-empty p{margin:5px 0 0;color:var(--subtle);font-size:.857143rem;line-height:1.5}

/* Moving selection for recent documents; selected text and controls remain native buttons. */
html[data-design=video] .file-recent-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;isolation:isolate}
.file-recent-indicator{display:none}
html[data-design=video] .file-recent-tabs>.file-recent-indicator{display:block;position:absolute;z-index:-1;pointer-events:none;left:4px;top:4px;bottom:4px;width:calc((100% - 14px)/2);border-radius:9px;background:var(--surface);box-shadow:0 1px 3px var(--folder-shadow);transform:translateX(0)}
html[data-design=video] .file-recent-tabs:has([data-recent-tab=opened][aria-pressed=true])>.file-recent-indicator{transform:translateX(calc(100% + 6px))}
html[data-design=video] .file-recent-tabs>button[aria-pressed=true]{background:transparent;box-shadow:none}

/* Secondary record and filter actions follow the selected surface finish. */
html[data-design=video] :is(#content,dialog) :is(button[data-list-reset],button[data-open]:not(.record-link)):not(.primary):not(.danger){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=video] :is(#content,dialog) :is(button[data-list-reset],button[data-open]:not(.record-link)):not(.primary):not(.danger):hover{background:var(--secondary);color:var(--ink);border-color:var(--green)}

html[data-design=video] .indicator-evidence th{background:var(--secondary);color:var(--subtle)}
.indicator-evidence .indicator-current-state{margin:0 0 16px}
.indicator-evidence .table-wrap{max-width:100%;overflow:auto;max-height:420px;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.indicator-evidence th{position:sticky;top:0;z-index:1}
html[data-design=video] .indicator-evidence-status{display:inline-flex;align-items:center;line-height:1.45;white-space:normal;overflow-wrap:anywhere;font-weight:500;padding:5px 9px;background:var(--secondary);color:var(--subtle);border:1px solid var(--line)}
html[data-design=video] .indicator-evidence-status:is([data-status=failed],[data-status=expired]){background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}
html[data-design=video] .indicator-evidence-status[data-status=expiring]{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] .indicator-evidence-status:is([data-status=valid],[data-status=indefinite]){background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
html[data-design=video] .indicator-evidence-status[data-status=future]{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
.indicator-evidence .form-help{margin-bottom:12px}

html[data-design=video] .indicator-evidence .table-wrap table>tbody>tr{background:var(--surface)}
html[data-design=video] .indicator-evidence .table-wrap table>tbody>tr:hover{background:var(--secondary)}

.indicator-evidence table{min-width:820px}
.indicator-evidence :is(th,td){min-width:110px;white-space:normal;overflow-wrap:normal}
.indicator-evidence :is(th,td):first-child{min-width:180px}
.indicator-evidence :is(th,td):nth-child(2){min-width:150px}
.indicator-evidence :is(th,td):nth-child(5){min-width:150px}

.reminder-choice-field{border:0;padding:0;margin:0;min-width:0;display:grid;gap:8px;align-content:start}
.reminder-choice-field>legend{padding:0;margin-bottom:8px;font-size:.857143rem;color:var(--subtle)}
.reminder-choice-list{display:grid;gap:6px;max-height:176px;overflow:auto;padding:2px;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.reminder-choice-list>label{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--secondary);color:var(--ink);margin:0;line-height:1.4;cursor:pointer}
.reminder-choice-list>label:has(:checked){background:var(--accent-soft);border-color:var(--green)}
.reminder-choice-list input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--green)}
.reminder-choice-list span{min-width:0;overflow-wrap:anywhere;font-size:.857143rem}
.reminder-choice-list[hidden],.reminder-choice-field select[hidden]{display:none!important}

.calendar-day>h3{display:flex;align-items:center;justify-content:space-between;gap:6px}
.calendar-day-add{display:grid;place-items:center;flex:none;width:28px;min-width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--subtle);font-size:1.142857rem;line-height:1}
.calendar-day-add:hover{background:var(--accent-soft);color:var(--green);border-color:var(--green)}
@media(hover:hover){.calendar-day-add{opacity:0}.calendar-day:is(:hover,:focus-within) .calendar-day-add{opacity:1}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .calendar-day-add{transition:opacity 140ms ease,background-color 140ms ease}}
@media print{.calendar-day-add{display:none}}

html[data-design=video] .personal-calendar-scroll[data-calendar-view=week]:not(:has(.calendar-event)) .calendar-day{min-height:140px}

html[data-design=video] .personal-calendar-scroll{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 42%,var(--surface)) transparent}
html[data-design=video] .personal-calendar-scroll::-webkit-scrollbar{height:7px;background:transparent}
html[data-design=video] .personal-calendar-scroll::-webkit-scrollbar-track{background:transparent}
html[data-design=video] .personal-calendar-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 42%,var(--surface));border-radius:8px}
html[data-design=video] .personal-calendar-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}

.file-library-queue>li{display:grid;grid-template-columns:42px minmax(0,1fr) 30px;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.file-library-queue>li:last-child{border-bottom:0}
.file-upload-copy{min-width:0;display:grid;gap:4px;text-align:left}
.file-upload-copy>strong{font-size:.928571rem;overflow-wrap:anywhere;font-weight:500}
.file-upload-copy>small,.file-upload-copy>span{font-size:.857143rem;color:var(--subtle);line-height:1.45}
.file-library-queue>[data-upload-status=done] .file-upload-copy>span{color:var(--status-success-text)}
.file-library-queue>[data-upload-status=error] .file-upload-copy>span{color:var(--status-danger-text)}
.file-library-upload .file-upload-remove{display:grid;place-items:center;width:28px;min-width:28px;height:28px;padding:0;border:0;border-radius:7px;color:var(--subtle);background:transparent;line-height:1;font-size:1.285714rem}
.file-library-upload .file-upload-remove:hover{color:var(--status-danger-text);background:var(--status-danger-surface)}
.file-upload-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:12px 0;color:var(--subtle);font-size:.857143rem}
.file-upload-progress[hidden]{display:none}
.file-upload-progress progress{appearance:none;width:100%;height:7px;border:0;border-radius:9px;overflow:hidden;background:var(--secondary);accent-color:var(--green)}
.file-upload-progress progress::-webkit-progress-bar{background:var(--secondary);border-radius:9px}
.file-upload-progress progress::-webkit-progress-value{background:var(--green);border-radius:9px}
.file-upload-progress progress::-moz-progress-bar{background:var(--green);border-radius:9px}

html[data-design=video] dialog[open]:has(.file-library-upload){display:flex;flex-direction:column;overflow:hidden;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
html[data-design=video] dialog:has(.file-library-upload)>.dialog-head{flex:none}
.file-library-upload{min-height:0;overflow:auto;padding:20px;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
html[data-design=video] .file-library-upload>.actions{position:sticky;bottom:-20px;margin:0 -20px -20px;padding:14px 20px;background:var(--surface);border-top:1px solid var(--line);z-index:2}
.file-library-upload>.error:empty{display:none}
@media(max-width:600px){.file-library-upload{padding:16px}html[data-design=video] .file-library-upload>.actions{bottom:-16px;margin:0 -16px -16px;padding:12px 16px}}

html[data-design=video] .deadline-stats .stat[data-deadline-status]{--deadline-tone:var(--subtle);--deadline-tint:var(--secondary);border-top:2px solid var(--deadline-tone)}
html[data-design=video] .deadline-stats .stat:is([data-deadline-status=failed],[data-deadline-status=expired]){--deadline-tone:var(--status-danger-ink);--deadline-tint:var(--status-danger-surface)}
html[data-design=video] .deadline-stats .stat[data-deadline-status=expiring]{--deadline-tone:var(--status-warning-ink);--deadline-tint:var(--status-warning-surface)}
html[data-design=video] .deadline-stats .stat[data-deadline-status=future]{--deadline-tone:var(--status-info-ink);--deadline-tint:var(--status-info-surface)}
html[data-design=video] .deadline-stats .stat>.label{display:flex;align-items:center;gap:9px;min-height:32px;line-height:1.4}
.deadline-stat-symbol{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:var(--deadline-tint);color:var(--deadline-tone)}
.deadline-stat-symbol>.opora-icon{width:18px;height:18px;color:inherit!important}

@media(max-width:600px){html[data-design=video] .deadline-stats>.stat:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}html[data-design=video] .deadline-stats>.stat:last-child:nth-child(odd)>strong{margin:0}}

.backup-schedule-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:18px 0}
.backup-schedule-summary>div{min-width:0}
.backup-schedule-summary dt{font-size:.857143rem;color:var(--subtle);margin:0 0 4px}
.backup-schedule-summary dd{margin:0;font-size:.928571rem;font-weight:500;overflow-wrap:anywhere;color:var(--ink)}
.backup-summary-latest{grid-column:1/-1}
html[data-design=video] #backup-schedule .backup-diagnostics{margin:0;border-top:1px solid var(--line);padding-top:14px}
.backup-diagnostics>summary{font-size:.928571rem;font-weight:500}
.backup-diagnostics>div{margin-top:12px}
html[data-design=video] #backup-attempt-refresh{background:var(--surface);color:var(--ink);border-color:var(--line)}
#backup-schedule-error:empty{display:none}
html[data-design=video] #backup-schedule-form .form-actions{border-bottom:0;margin-top:14px;padding-block:14px}
@media(max-width:600px){.backup-schedule-summary{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Dark surfaces must not inherit bright raised highlights from the coffee finish. */
html[data-design=video][data-theme=dark] :is(.panel,.file-storage,.file-library-toolbar,.employee-card-navigation,.employee-card-section,.office-home-column>section,.office-employee-card,.office-employee-inspector){box-shadow:none}

html[data-design=video] .messenger-shared .chat-intro{width:100%;max-width:420px;padding:28px;display:flex;flex-direction:column;align-items:center;gap:14px}
.chat-intro-symbol{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:var(--status-info-surface);color:var(--status-info-ink)}
.chat-intro-symbol>.opora-icon{width:30px;height:30px;color:inherit!important}
.chat-intro h2{margin:0;color:var(--ink);font-size:1.285714rem;font-weight:500;line-height:1.3}
.chat-intro p{margin:0;color:var(--subtle);font-size:.928571rem;line-height:1.6}
.chat-intro-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:4px;max-width:100%}
html[data-design=video] :is(.chat-intro-actions>button:not(.primary),.communicator-actions>[data-chat-address-book]){background:var(--surface);color:var(--ink);border-color:var(--line)}

/* Current-time control and marker inside the bounded daily schedule. */
html[data-design=video] .office-plan-date{flex-wrap:wrap}
html[data-design=video] .office-plan-now{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;min-height:32px;flex:none;border:1px solid transparent;border-radius:8px;background:var(--accent-soft);color:var(--green);font-size:.76rem;text-transform:none}
html[data-design=video] .office-plan-now:hover{border-color:var(--green)}
html[data-design=video] .office-plan-now time{padding:0;background:transparent;color:inherit}
html[data-design=video] .office-day-timeline{position:relative}
html[data-design=video] .office-plan-now-line{position:absolute;top:var(--office-now-position,0);left:50px;right:8px;height:1px;background:var(--green);pointer-events:none;z-index:1}
html[data-design=video] .office-plan-now-line::before{content:'';position:absolute;left:-3px;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--green)}

/* Shared table scrollbars follow the active office palette on both axes. */
html[data-design=video] :is(#content,dialog) .table-wrap{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 82%,var(--surface)) var(--surface)}
html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar{width:10px;height:10px;background:var(--surface)}
html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar-track{background:var(--surface);border-radius:8px}
html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 82%,var(--surface));border:2px solid var(--surface);border-radius:8px}
html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar-thumb:hover{background:var(--green)}
html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar-corner{background:var(--surface)}
html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar-button{display:none;width:0;height:0}
@media(forced-colors:active){html[data-design=video] :is(#content,dialog) .table-wrap{scrollbar-color:auto}}

/* Outer page scrollbar uses the page finish rather than the OS white track. */
html[data-design=video]{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 82%,var(--canvas)) var(--canvas)}
html[data-design=video]::-webkit-scrollbar{width:10px;height:10px;background:var(--canvas)}
html[data-design=video]::-webkit-scrollbar-track{background:var(--canvas)}
html[data-design=video]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 82%,var(--canvas));border:2px solid var(--canvas);border-radius:8px}
html[data-design=video]::-webkit-scrollbar-corner{background:var(--canvas)}
@media(forced-colors:active){html[data-design=video]{scrollbar-color:auto}}

/* Compact employee cards and explicit optional detail selection. */
html[data-design=video] .office-employees:not([data-preview-open=true]){grid-template-columns:minmax(0,1fr)}
html[data-design=video] .office-employees:not([data-preview-open=true]) .office-employee-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
html[data-design=video] .office-employee-inspector[hidden]{display:none!important}
html[data-design=video] .office-employee-preview-close{display:block;margin:0 0 12px auto;padding:5px 8px;font-size:.8rem;background:var(--secondary);color:var(--subtle);border-color:var(--line)}
html[data-design=video] .office-employee-card{padding:14px}
html[data-design=video] .office-employee-select[aria-pressed=true]{background:transparent;box-shadow:none}
html[data-design=video] .office-employee-select :is(.primary-record-photo,.primary-photo-placeholder){width:64px!important;height:84px!important;font-size:1.6rem}
html[data-design=video] .office-employee-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(52px,3.7rem)),1fr));gap:5px;margin-top:12px}
html[data-design=video] .office-document-status{min-width:0;min-height:47px;padding:5px 3px 4px;gap:3px}
html[data-design=video] .office-document-status>small{max-width:100%;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-design=video] :is(.office-document-status,.office-inspector-document)>.office-indicator-glyph{width:26px;height:28px;border-radius:7px;background:color-mix(in srgb,var(--indicator-color,#64748b) 12%,var(--surface));color:color-mix(in srgb,var(--indicator-color,#64748b) 62%,var(--ink))}
html[data-design=video] .office-indicator-glyph>.opora-icon{width:18px;height:18px;color:inherit!important}
html[data-design=video] .office-employee-foot{margin-top:12px;align-items:center}
.office-employee-assignment{display:flex;align-items:flex-start;gap:6px;margin-top:10px;color:var(--subtle);font-size:.76rem;line-height:1.4;min-width:0}
.office-employee-assignment>.opora-icon{width:15px;height:15px;flex:none;color:inherit!important}
.office-employee-assignment>span{min-width:0;overflow-wrap:anywhere}
html[data-design=video] .office-inspector-document{grid-template-columns:26px minmax(0,1fr);padding:10px;gap:4px 9px;margin-bottom:6px}
html[data-design=video] .office-employee-inspector{padding:16px;scrollbar-color:color-mix(in srgb,var(--subtle) 82%,var(--surface)) var(--surface)}
.office-assignment{margin:14px 0;padding:10px 12px;background:var(--secondary);border-radius:10px;border:1px solid var(--line)}
.office-assignment h4{margin:0 0 8px;font-size:.85rem}
.office-assignment dl{margin:0;display:grid;gap:8px}
.office-assignment dl>div{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;font-size:.8rem;line-height:1.4}
.office-assignment dt{color:var(--subtle)}
.office-assignment dd{margin:0;min-width:0;overflow-wrap:anywhere}
.office-assignment .record-link{text-align:left;white-space:normal}
.office-assignment-empty{margin:12px 0;color:var(--subtle);font-size:.8rem}

html[data-design=video] .office-employee-inspector .office-inspector-document>.office-indicator-glyph{color:color-mix(in srgb,var(--indicator-color,#64748b) 62%,var(--ink))}

html[data-design=video] .office-employee-card .office-employee-select:is(:hover,:focus-visible,[aria-pressed=true]){background:transparent;box-shadow:none}

/* Compact employee inspector follows the reference's four work sections. */
html[data-design=video] .office-preview-tabs{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 0 4px;margin:12px 0 0;background:var(--surface);border-bottom:1px solid var(--line)}
html[data-design=video] .office-preview-tabs>[role=tab]{min-width:0;padding:9px 2px;border:0;border-radius:6px 6px 0 0;background:transparent;color:var(--subtle);font-size:.76rem;white-space:nowrap;text-align:center}
html[data-design=video] .office-preview-tabs>[role=tab][aria-selected=true]{background:var(--accent-soft);color:var(--green)}
.office-preview-tabs::after{content:'';position:absolute;bottom:-1px;left:0;width:25%;height:2px;border-radius:2px;background:var(--green);transform:translateX(calc(var(--employee-tab-index,0)*100%));pointer-events:none}
.office-preview-panel{padding-top:12px;min-width:0}
.office-preview-panel[hidden]{display:none!important}
.office-preview-panel>h4{display:none}
.office-preview-empty,.office-preview-count{margin:4px 0 14px;color:var(--subtle);font-size:.82rem;line-height:1.5}
.office-preview-items{list-style:none;display:grid;gap:0;margin:0 0 12px;padding:0}
.office-preview-items>li{padding:10px 0;border-bottom:1px solid var(--line);min-width:0}
.office-preview-items>li:last-child{border-bottom:0}
.office-preview-items .record-link{white-space:normal;text-align:left;overflow-wrap:anywhere;font-weight:500}
.office-preview-items :is(small,span){display:block;color:var(--subtle);font-size:.78rem;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.office-preview-fields{margin:0 0 14px;display:grid;gap:12px}
.office-preview-fields>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;font-size:.82rem;line-height:1.45}
.office-preview-fields dt{color:var(--subtle)}
.office-preview-fields dd{margin:0;overflow-wrap:anywhere}
html[data-design=video] .office-preview-full{width:100%;margin:0 0 12px;padding:8px;background:var(--secondary);color:var(--ink);border-color:var(--line);font-size:.82rem}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .office-preview-tabs::after{transition:transform 200ms cubic-bezier(.2,.8,.2,1)}}

/* Read-only image viewer: clear loading/error states and palette-aware controls. */
html[data-design=video] dialog[open]:has(>.file-library-preview){display:flex;flex-direction:column;width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
dialog>.file-library-preview{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto}
.file-preview-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html[data-design=video] .file-preview-toolbar>button{background:var(--secondary);color:var(--ink);border-color:var(--line);padding:6px 10px;min-height:32px;font-size:.85rem}
html[data-design=video] .file-preview-toolbar>button[aria-pressed=true]{background:var(--accent-soft);color:var(--green);border-color:var(--green)}
.file-preview-toolbar>output{min-width:70px;text-align:center;font-size:.82rem;color:var(--subtle);font-variant-numeric:tabular-nums}
.file-preview-stage{height:min(55dvh,520px);min-height:120px;min-width:0;flex:1 1 auto;display:grid;place-items:center;padding:12px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--secondary);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--subtle) var(--secondary)}
.file-library-preview .file-preview-stage>img{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:0 auto}
.file-library-preview[data-image-fit=false] .file-preview-stage{display:block}
.file-library-preview[data-image-fit=false] .file-preview-stage>img{max-width:none;max-height:none}
.file-library-preview img[hidden],.file-library-preview [hidden]{display:none!important}
.file-preview-status{margin:0;color:var(--subtle);font-size:.85rem;line-height:1.5}
.file-preview-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.file-preview-footer>small{flex:1;min-width:0;color:var(--subtle);font-size:.8rem;overflow-wrap:anywhere}
html[data-design=video] .file-preview-footer :is(a,button){display:inline-flex;align-items:center;gap:7px;background:var(--surface);color:var(--ink);border-color:var(--line);padding:8px 10px;font-size:.85rem}
.file-preview-footer svg{width:18px;height:18px;flex:none}
@media(max-width:540px){dialog>.file-library-preview{padding:14px;gap:10px}.file-preview-footer>small{flex-basis:100%}.file-preview-footer>a{margin-left:auto}}

/* Document color communicates validity, independently of document type. */
html[data-design=video] .office-employees :is(.office-document-status,.office-inspector-document){--employee-state-bg:var(--secondary);--employee-state-ink:var(--subtle);--employee-state-border:var(--line);background:var(--employee-state-bg);color:var(--employee-state-ink);border-color:var(--employee-state-border)}
html[data-design=video] .office-employees :is(.state-valid,.state-indefinite){--employee-state-bg:var(--status-success-surface);--employee-state-ink:var(--status-success-ink);--employee-state-border:var(--status-success-border)}
html[data-design=video] .office-employees .state-expiring{--employee-state-bg:var(--status-warning-surface);--employee-state-ink:var(--status-warning-ink);--employee-state-border:var(--status-warning-border)}
html[data-design=video] .office-employees :is(.state-expired,.state-failed,.state-absent[data-indicator-key=personal_card]){--employee-state-bg:var(--status-danger-surface);--employee-state-ink:var(--status-danger-ink);--employee-state-border:var(--status-danger-border)}
html[data-design=video] .office-employees .state-future{--employee-state-bg:var(--status-info-surface);--employee-state-ink:var(--status-info-ink);--employee-state-border:var(--status-info-border)}
html[data-design=video] .office-employees :is(.office-document-status,.office-inspector-document)>.office-indicator-glyph{background:color-mix(in srgb,var(--employee-state-ink) 13%,var(--employee-state-bg));color:var(--employee-state-ink)}
html[data-design=video] .office-employees .office-employee-inspector .office-inspector-document>.office-indicator-glyph{color:var(--employee-state-ink)}
html[data-design=video] .office-employees .office-document-status::after{width:6px;height:6px;right:4px;top:4px;background:var(--employee-state-ink)}
.office-document-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:16px 18px 0;font-size:.78rem;color:var(--subtle)}
.office-document-legend>span{display:inline-flex;align-items:center;gap:6px;line-height:1.4}
.office-document-legend>span::before{content:'';width:7px;height:7px;flex:none;border-radius:50%;background:var(--legend-color,var(--subtle))}
.office-document-legend .legend-valid{--legend-color:var(--status-success-ink)}
.office-document-legend .legend-expiring{--legend-color:var(--status-warning-ink)}
.office-document-legend .legend-expired{--legend-color:var(--status-danger-ink)}
@keyframes office-document-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--employee-state-ink) 0%,transparent)}50%{box-shadow:0 0 0 3px color-mix(in srgb,var(--employee-state-ink) 18%,transparent)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .office-document-status:is(.state-valid,.state-indefinite,.state-expiring,.state-expired,.state-failed,.state-absent[data-indicator-key=personal_card])::after{animation:office-document-pulse 3.2s ease-in-out infinite}}
/* The schedule's first hour already supplies its top rule. */
html[data-design=video] .office-today .office-day-timeline{border-top:0}

/* Hover preview never moves the pin button across the organization selector. */
@media(min-width:721px){
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed]:has(.layout>aside:is(:hover,:focus-within,[data-pointer-peek])) .layout .topbar>:is(.mobile-menu,.organization-switcher){opacity:0;visibility:hidden;pointer-events:none}
 html[data-design=video][data-menu=vertical] .layout>aside{overflow-x:hidden}
 html[data-design=video][data-menu=vertical] .layout>aside .brand{overflow:hidden;white-space:nowrap}
}
@media(min-width:721px) and (prefers-reduced-motion:no-preference){
 html[data-design=video][data-menu=vertical]:not([data-motion=reduce]) .layout{transition:grid-template-columns 320ms cubic-bezier(.2,.75,.25,1)}
 html[data-design=video][data-menu=vertical]:not([data-motion=reduce]) .layout>aside{transition:width 200ms ease-out,box-shadow 200ms ease-out}
 html[data-design=video][data-menu=vertical]:not([data-motion=reduce]) .layout .topbar>:is(.mobile-menu,.organization-switcher){transition:opacity 120ms ease-out,visibility 120ms ease-out}
}

/* Reference employee frame: contacts, compact validity rows, and shift card below. */
html[data-design=video] .office-employee-inspector{border-color:color-mix(in srgb,var(--green) 25%,var(--line));border-radius:16px;box-shadow:none;scrollbar-width:auto;scrollbar-color:auto;scrollbar-gutter:stable both-edges}
html[data-design=video] .office-employee-inspector::-webkit-scrollbar{width:8px;background:var(--surface)}
html[data-design=video] .office-employee-inspector::-webkit-scrollbar-track{background:var(--surface);margin:14px 0;border-radius:10px}
html[data-design=video] .office-employee-inspector::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 66%,var(--surface));border:2px solid var(--surface);border-radius:10px}
html[data-design=video] .office-employee-inspector::-webkit-scrollbar-corner{background:var(--surface)}
.office-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.office-profile-facts>div{display:flex;align-items:flex-start;gap:6px;min-width:0}
.office-profile-facts>div>.opora-icon{width:15px;height:15px;flex:none;color:var(--subtle)!important;margin-top:2px}
.office-profile-facts>div>span{min-width:0}
.office-profile-facts :is(small,strong){display:block;overflow-wrap:anywhere;line-height:1.4}
.office-profile-facts small{font-size:.7rem;color:var(--subtle)}
.office-profile-facts strong{font-size:.82rem;color:var(--ink);font-weight:500;margin-top:2px}
html[data-design=video] .office-employee-inspector .office-inspector-document{grid-template-columns:26px minmax(0,1fr) auto;gap:3px 8px;min-height:62px;margin:0;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
html[data-design=video] .office-employee-inspector .office-inspector-document>strong{grid-column:2;grid-row:1;font-size:.84rem;color:var(--ink);line-height:1.4}
html[data-design=video] .office-employee-inspector .office-inspector-document>.office-indicator-glyph{grid-column:1;grid-row:1/3}
html[data-design=video] .office-employee-inspector .office-inspector-document>.office-document-validity{grid-column:3;grid-row:1;align-self:start;justify-self:end;max-width:100px;padding:3px 6px;border-radius:7px;background:var(--employee-state-bg);color:var(--employee-state-ink);font-size:.68rem;line-height:1.3;white-space:normal;text-align:center}
html[data-design=video] .office-employee-inspector .office-inspector-document>.office-document-number{grid-column:2;grid-row:2;color:var(--subtle);font-size:.7rem;line-height:1.4}
html[data-design=video] .office-employee-inspector .office-inspector-document>.office-document-until{grid-column:3;grid-row:2;color:var(--subtle);font-size:.7rem;line-height:1.4;white-space:nowrap;text-align:right}
.office-other-documents{margin-top:10px}
.office-other-documents>summary{font-size:.8rem;color:var(--subtle);cursor:pointer;padding:8px 0}
html[data-design=video] .office-employee-inspector>.office-assignment{background:var(--accent-soft);margin:14px 0;border-color:color-mix(in srgb,var(--green) 24%,var(--line))}
@media(max-width:760px){html[data-design=video] .office-employee-inspector{scrollbar-gutter:auto}}
@media(min-width:721px) and (prefers-reduced-motion:no-preference){html[data-design=video][data-menu=vertical]:not([data-sidebar=collapsed]):not([data-motion=reduce]) .layout>aside{transition:width 320ms cubic-bezier(.2,.75,.25,1),box-shadow 200ms ease-out}}

html[data-design=video] .office-employee-inspector>.office-employee-preview-close{position:absolute;top:10px;right:12px;display:grid;place-items:center;width:26px;height:26px;min-height:26px;padding:0;margin:0;border:0;background:transparent;font-size:1.2rem;line-height:1;color:var(--subtle)}
html[data-design=video] .office-employee-inspector>.office-employee-profile{grid-template-columns:64px minmax(0,1fr);gap:12px;padding-right:16px}
html[data-design=video] .office-employee-inspector .office-employee-profile :is(.primary-record-photo,.primary-photo-placeholder){width:64px!important;height:84px!important}

/* Employee payroll keeps firm and period controls readable. */
.employee-payroll .employee-card-toolbar{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(2,minmax(140px,1fr)) minmax(160px,1.2fr) minmax(130px,1fr);align-items:end;gap:12px}
.employee-payroll .employee-card-toolbar>label{display:flex;flex-direction:column;gap:6px;min-width:0;word-break:normal;overflow-wrap:normal}
.employee-ledger>.employee-card-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:16px 0}
.employee-ledger>.employee-card-toolbar>label{display:grid;gap:6px;flex:1 1 180px;min-width:0;word-break:normal;overflow-wrap:normal}
.employee-ledger>.employee-card-toolbar :is(input,select){width:100%;min-width:0;margin:0;box-sizing:border-box}
.employee-ledger-views{display:flex;flex-wrap:wrap;gap:8px;flex:0 0 auto}
@media(max-width:480px){.employee-ledger>.employee-card-toolbar>label{flex-basis:100%}.employee-ledger-views{width:100%}}
.employee-payroll .employee-card-toolbar :is(input,select){width:100%;min-width:0;margin:0}.employee-payroll .employee-card-toolbar>button{justify-self:start}
.employee-payroll-actions{display:flex;gap:10px;margin:14px 0}.employee-payroll-actions:empty{display:none}
@media(max-width:1100px){.employee-payroll .employee-card-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.employee-payroll .employee-card-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:400px){.employee-payroll .employee-card-toolbar{grid-template-columns:minmax(0,1fr)}}

@media(min-width:721px){html[data-design=video][data-menu=vertical][data-sidebar=collapsed]:has(.layout>aside:is(:hover,:focus-within,[data-pointer-peek])) .layout .topbar .organization-switcher{opacity:0;visibility:hidden;pointer-events:none}}
@media(min-width:721px) and (prefers-reduced-motion:no-preference){html[data-design=video][data-menu=vertical]:not([data-motion=reduce]) .layout .topbar .organization-switcher{transition:opacity 120ms ease-out,visibility 120ms ease-out}}

@media(max-width:760px){html[data-design=video] .office-employee-inspector{position:relative}}
/* Personal card layout: one control remains available even with all blocks hidden. */
.card-view-settings{margin:0 0 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}
.card-view-settings>summary{padding:12px 16px;cursor:pointer;font-weight:600;list-style-position:inside}
.card-view-settings[open]>summary{border-bottom:1px solid var(--line)}
.card-view-settings-body{padding:16px;display:grid;gap:14px}
.card-view-settings-body>p{margin:0}
.card-view-settings-body>[role=status]:empty{display:none}
.card-view-settings-body fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px}
.card-view-settings-body legend{padding:0 6px;font-weight:600}
.card-view-settings-body details.card-view-group{border:1px solid var(--line);border-radius:10px;padding:12px}
.card-view-group>summary{cursor:pointer;font-weight:600}
.card-view-group[open]>summary{margin-bottom:14px}
.card-view-group .card-view-options{max-height:300px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;padding:2px 6px 2px 0}
.card-view-options small{display:block;color:var(--muted);font-size:.785714rem;margin-top:3px}
.card-view-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px 20px}
.card-view-options .checkbox-line{display:flex;align-items:flex-start;justify-content:flex-start;text-align:left;gap:9px;margin:0;min-width:0}
.card-view-options input[type=checkbox]{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0;accent-color:var(--green)}
.card-view-options span{overflow-wrap:anywhere}
.card-view-search{display:grid;gap:6px;max-width:480px;min-width:0}
.card-view-search input{width:100%;min-width:0;box-sizing:border-box}
.card-view-settings-body [hidden]{display:none!important}
.card-view-hidden{display:none!important}
/* Quill's percentage height must not outgrow its auto-sized form row. */
.record-comment-editor.ql-container,.record-comment-editor>.ql-editor{height:auto}
form label[hidden],form fieldset[hidden],.form-grid>[hidden]{display:none!important}
.contract-objects-body{display:grid;gap:16px}
.object-cell-value>small{display:block;white-space:normal;margin-top:4px}
.employee-document-parent{display:flex;margin:0 0 16px;min-width:0}
.employee-document-parent>button{max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
.dialog-body>.object-card-back{display:block;margin-top:16px;max-width:100%;white-space:normal}
[data-object-pane=events] :is(th,td):nth-child(1){min-width:140px}
[data-object-pane=events] :is(th,td):nth-child(2){min-width:150px}
[data-object-pane=events] :is(th,td):nth-child(3){min-width:220px}
[data-object-pane=events] :is(th,td):nth-child(5){min-width:280px}
[data-object-pane=events] :is(th,td):nth-child(6){min-width:190px}
[data-object-pane=events] :is(th,td):nth-child(7){min-width:100px}
[data-object-pane=events] :is(th,td):nth-child(8){min-width:210px}
.contract-objects-body>p{margin:0}
.contract-objects-body>p:empty{display:none}
#contract-objects-search{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
#contract-objects-search>label{display:grid;gap:8px;min-width:0}
#contract-objects-search>button{align-self:end}
#contract-objects-rows{display:grid;gap:20px}
#contract-objects-rows h3{margin:0 0 12px}
#contract-objects-rows td label{display:grid;gap:8px;margin-bottom:12px}
#contract-objects-rows td label:has(input[type=checkbox]){display:flex;align-items:flex-start}
#contract-objects-rows td select{min-width:160px;max-width:100%}
#contract-objects-form>.form-actions{margin-top:16px}
@media(max-width:560px){#contract-objects-search{grid-template-columns:1fr}#contract-objects-search>button{justify-self:start}}
.staffing-summary{margin-block:18px}
.staffing-summary>h3{margin:0 0 8px}
.staffing-summary>.muted{margin:0 0 12px}
.staffing-summary small{display:block;margin-top:6px}
html[data-design=video] .staffing-summary{padding:18px 20px}
@media(max-width:480px){html[data-design=video] .staffing-summary{padding:14px}}
.employee-shift-stage{display:inline-block;white-space:nowrap}
html[data-design=video] #salary-operation-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
html[data-design=video] #salary-operation-form>label{display:grid;gap:6px;min-width:0;margin:0}
html[data-design=video] #salary-operation-form>:is(p,.actions),html[data-design=video] #salary-operation-form>label:has(textarea){grid-column:1/-1;margin:0}
html[data-design=video] #salary-operation-form>.actions{padding-top:8px;gap:10px;flex-wrap:wrap}
html[data-design=video] #salary-operation-form textarea{min-height:76px}
html[data-design=video] .salary-correction-summary{padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:10px;background:var(--secondary);color:var(--ink);line-height:1.6}
html[data-design=video] .salary-work-sheet [data-work-remove]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;min-width:34px;padding:0;font-size:1.642857rem;line-height:1}
html[data-design=video] .salary-work-sheet td:last-child{width:50px;min-width:50px;white-space:nowrap}
html[data-design=video] .salary-work-adjustments>div{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px}
html[data-design=video] .salary-work-adjustments>div>label:last-child{grid-column:1/-1}
@media(max-width:600px){html[data-design=video] #salary-operation-form{grid-template-columns:1fr}html[data-design=video] .salary-work-sheet .salary-work-row td:last-child{width:auto;min-width:0}}
@media(max-width:480px){.card-view-options{grid-template-columns:1fr}.card-view-settings-body{padding:12px}}

/* Real multi-organization files sit beside recent documents only when present. */
.file-recent-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0;align-items:start}
.file-recent-workspace.has-shared{grid-template-columns:repeat(2,minmax(0,1fr))}
.file-shared-block>.file-recent-list{max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--subtle) var(--surface)}
.file-shared-block .file-recent-item{grid-template-columns:minmax(0,1fr) 28px}
.file-shared-scope{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border-radius:6px;background:var(--secondary);color:var(--subtle);font-size:.72rem;margin:0 0 8px}
@media(max-width:960px){.file-recent-workspace.has-shared{grid-template-columns:minmax(0,1fr)}}

html[data-design=video] .file-recent-workspace.has-shared>.file-recent-block>.file-recent-list{grid-template-columns:minmax(0,1fr)}

/* Read-only current-shift timer and existing schedule/create actions. */
.office-shift-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.office-shift-head>h4{margin:0;min-width:0}
html[data-design=video] .office-shift-head>.record-link{font-size:.72rem;padding:2px 0;min-height:24px;white-space:nowrap;background:transparent}
.office-shift-countdown{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.office-shift-countdown>small{font-size:.75rem;color:var(--subtle);max-width:140px}
.office-shift-countdown>time{font-variant-numeric:tabular-nums;font-size:1.25rem;font-weight:600;color:var(--ink);line-height:1.2}
.office-assignment-empty>p{margin:6px 0 12px;font-size:.82rem;color:var(--subtle)}
html[data-design=video] .office-assignment-empty>[data-office-shift-create]{padding:6px 10px;min-height:32px;font-size:.8rem;background:var(--surface);color:var(--green);border-color:var(--line)}

/* Notification priority colors match the shared office semantics. */
html[data-design=video] #notification-results .pill.info{background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] #notification-results .pill.warn{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] #notification-results .pill.red{background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}
html[data-design=video] #notification-results .notification-type-icon{background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-design=video] #notification-results .notification-type-icon.info{background:var(--status-info-surface);color:var(--status-info-ink)}
html[data-design=video] #notification-results .notification-type-icon.critical{background:var(--status-danger-surface);color:var(--status-danger-ink)}
html[data-design=video] .notification-item{padding:16px 18px;gap:16px;border-bottom:1px solid var(--line)}
html[data-design=video] .notification-item:last-child{border-bottom:0}
html[data-design=video] .notification-record small{margin:4px 0;line-height:1.5}
html[data-design=video] .notification-record .record-link{font-size:.95rem}
html[data-design=video] .notification-item>[data-read-notification]{min-height:34px;padding:7px 10px;max-width:210px;font-size:.82rem;white-space:normal;background:var(--secondary);color:var(--ink);border-color:var(--line)}
html[data-design=video] .notification-item>[data-read-notification]:hover{background:var(--accent-soft);color:var(--green)}

/* The employee scrollbar belongs inside its frame, clear of rounded corners. */
html[data-design=video] .office-employee-inspector{padding:10px;max-height:none;overflow:hidden;scrollbar-gutter:auto;isolation:isolate}
html[data-design=video] .office-employee-scroll{max-height:calc(100dvh - 60px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:6px;scrollbar-width:auto;scrollbar-color:auto}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar{width:6px;background:var(--surface)}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-track{background:var(--surface)}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 60%,var(--surface));border-radius:8px}
html[data-design=video] .office-employee-scroll>.office-employee-profile{grid-template-columns:64px minmax(0,1fr);gap:12px;padding-right:22px}
html[data-design=video] .office-employee-scroll>.office-assignment{background:var(--accent-soft);margin:14px 0;border-color:color-mix(in srgb,var(--green) 24%,var(--line))}
html[data-design=video] .office-employee-inspector>.office-employee-preview-close{z-index:1;right:24px;background:var(--surface);border-radius:7px}
@media(max-width:760px){html[data-design=video] .office-employee-scroll{max-height:none;overflow:visible;scrollbar-gutter:auto}html[data-design=video] .office-employee-inspector>.office-employee-preview-close{right:16px}}
@media(forced-colors:active){html[data-design=video] .office-employee-scroll{scrollbar-color:auto}}

/* Administrative shortcuts share the office palette without oversized tiles. */
html[data-design=video] .admin-center-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
html[data-design=video] .admin-center-item{--admin-tone:#526b91;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start;gap:7px 14px;padding:20px;margin:0;min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:none;text-decoration:none}
html[data-design=video] .admin-center-item>.opora-icon{grid-row:1/3;width:42px;height:42px;padding:10px;margin:0;box-sizing:border-box;border-radius:12px;color:var(--admin-tone);background:color-mix(in srgb,var(--admin-tone) 10%,var(--surface))}
html[data-design=video] .admin-center-item>h2{align-self:center;margin:0;font-size:1rem;line-height:1.45;overflow-wrap:anywhere}
html[data-design=video] .admin-center-item>p{grid-column:2;margin:0;font-size:.82rem;line-height:1.6;overflow-wrap:anywhere;color:var(--subtle)}
html[data-design=video] .admin-center-item:is([href='#access-requests'],[href='#users'],[href='#backups']){--admin-tone:#477366}
html[data-design=video] .admin-center-item:is([href='#identity-settings'],[href='#participant-defaults']){--admin-tone:#80679a}
html[data-design=video] .admin-center-item:is([href='#company-settings'],[href='#devices']){--admin-tone:#99643f}
html[data-design=video] .admin-center-item:hover{border-color:color-mix(in srgb,var(--admin-tone) 45%,var(--line));background:color-mix(in srgb,var(--admin-tone) 3%,var(--surface));text-decoration:none}
html[data-design=video] .admin-center-item:focus-visible{outline:2px solid var(--green);outline-offset:3px}
html[data-design=video][data-theme=dark] .admin-center-item{--admin-tone:#9aaed1}
html[data-design=video][data-theme=dark] .admin-center-item:is([href='#access-requests'],[href='#users'],[href='#backups']){--admin-tone:#92b6a8}
html[data-design=video][data-theme=dark] .admin-center-item:is([href='#identity-settings'],[href='#participant-defaults']){--admin-tone:#b9a3ce}
html[data-design=video][data-theme=dark] .admin-center-item:is([href='#company-settings'],[href='#devices']){--admin-tone:#d5ac8a}
@media(max-width:1050px){html[data-design=video] .admin-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html[data-design=video] .admin-center-grid{grid-template-columns:minmax(0,1fr);gap:12px}html[data-design=video] .admin-center-item{padding:16px;gap:6px 12px}}
@keyframes officeAdminEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .admin-center-item{animation:officeAdminEnter 240ms ease-out both;transition:background-color 180ms ease-out,border-color 180ms ease-out}html[data-design=video]:not([data-motion=reduce]) .admin-center-item:nth-child(3n+2){animation-delay:35ms}html[data-design=video]:not([data-motion=reduce]) .admin-center-item:nth-child(3n){animation-delay:70ms}}

/* Small screens scroll calendar days horizontally instead of breaking event names into a narrow strip. */
@media(max-width:760px){html[data-design=video] .personal-calendar-scroll[data-calendar-view=week] .calendar-grid{grid-template-columns:repeat(7,minmax(160px,1fr));min-width:1156px}html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-grid{grid-template-columns:repeat(7,minmax(125px,1fr));min-width:911px}}

/* Dialog tables use the same surfaces as page tables. Wide rows scroll locally. */
html[data-design=video] dialog .table-wrap>table>thead>tr>th{background:var(--secondary);color:var(--subtle);border-color:var(--line);font-size:.785714rem;font-weight:600;text-transform:none;letter-spacing:0;line-height:1.4}
html[data-design=video] dialog .table-wrap>table>tbody>tr>td{border-color:var(--line);color:var(--ink);line-height:1.5}
html[data-design=video] .contract-objects-body{grid-template-columns:minmax(0,1fr);min-width:0}
html[data-design=video] .contract-objects-body>*{min-width:0;max-width:100%}
html[data-design=video] #contract-objects-rows{grid-template-columns:minmax(0,1fr);min-width:0}
html[data-design=video] #contract-objects-rows>*{min-width:0;max-width:100%}
html[data-design=video] .contract-objects-body .table-wrap{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html[data-design=video] .contract-objects-body :is(.actions,.form-actions){flex-wrap:wrap;gap:10px;min-width:0}
html[data-design=video] .contract-objects-body :is(button,.button):not(.primary):not(.danger){max-width:100%;white-space:normal;overflow-wrap:anywhere;background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=video] .contract-objects-body :is(button,.button):not(.primary):not(.danger):not(:disabled):hover{background:var(--secondary);border-color:color-mix(in srgb,var(--green) 40%,var(--line))}
html[data-design=video] .contract-objects-body .form-actions>button{min-width:0}

/* A local preview explains title privacy without sending a system notification. */
.desktop-reminder-status{display:flex;align-items:flex-start;gap:9px}
.desktop-reminder-status:before{content:'';flex:none;width:7px;height:7px;margin-top:.5em;border-radius:50%;background:var(--subtle)}
.desktop-reminder-status[data-delivery-state=enabled]{background:var(--status-success-surface);color:var(--status-success-ink)}
.desktop-reminder-status[data-delivery-state=enabled]:before{background:var(--status-success-ink)}
.desktop-reminder-status:is([data-delivery-state=denied],[data-delivery-state=unsupported]){background:var(--status-warning-surface);color:var(--status-warning-ink)}
.desktop-reminder-status:is([data-delivery-state=denied],[data-delivery-state=unsupported]):before{background:var(--status-warning-ink)}
.desktop-notice-preview{min-width:0}
.desktop-notice-preview>small{display:block;margin-bottom:8px;font-size:.78rem;color:var(--subtle)}
.desktop-notice-preview>article{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 10px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--secondary);color:var(--ink)}
.desktop-notice-preview .opora-icon{grid-row:1/3;width:30px;height:30px;padding:6px;box-sizing:border-box;border-radius:9px;background:var(--accent-soft);color:var(--green)}
.desktop-notice-preview strong{min-width:0;font-size:.85rem;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.desktop-notice-preview p{grid-column:2;margin:0;font-size:.82rem;line-height:1.5;overflow-wrap:anywhere;color:var(--subtle)}

html[data-design=video] .workload-result [aria-label="Нагрузка по сотрудникам"] td:is(:nth-child(5),:nth-child(6)){white-space:nowrap;min-width:160px;font-variant-numeric:tabular-nums}

/* Attachment type colors remain semantic in incoming and outgoing messages. */
html[data-design=video] .chat-attachment[data-file-category]{--chat-file-ink:var(--status-info-ink);--chat-file-surface:var(--status-info-surface)}
html[data-design=video] .chat-attachment[data-file-category=sheet]{--chat-file-ink:var(--status-success-ink);--chat-file-surface:var(--status-success-surface)}
html[data-design=video] .chat-attachment[data-file-category=pdf]{--chat-file-ink:var(--status-danger-ink);--chat-file-surface:var(--status-danger-surface)}
html[data-design=video] .chat-attachment:is([data-file-category=archive],[data-file-category=audio],[data-file-category=video]){--chat-file-ink:var(--status-warning-ink);--chat-file-surface:var(--status-warning-surface)}
html[data-design=video] .chat-attachment[data-file-category] .chat-attachment-info>.chat-symbol{width:32px;height:36px;min-width:32px;padding:7px;box-sizing:border-box;border-radius:8px;background:var(--chat-file-surface);color:var(--chat-file-ink)}
html[data-design=video] .chat-attachment-info>span{min-width:0;overflow-wrap:anywhere}

/* Shared record tables follow the same header palette and typography as registers. */
html[data-design=video] .employee-card-table>table>thead>tr>th{background:var(--secondary);color:var(--subtle);border-color:var(--line);font-size:.785714rem;font-weight:600;text-transform:none;letter-spacing:0;line-height:1.4}
html[data-design=video] .employee-card-table td small.pill{display:inline-flex;align-items:center;max-width:100%;margin-bottom:4px;line-height:1.4}

html[data-design=video] .employee-card-table{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 66%,var(--surface)) var(--surface)}
html[data-design=video] .employee-card-table:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-radius:10px}
@media(forced-colors:active){html[data-design=video] .employee-card-table{scrollbar-color:auto}}

html[data-design=video] .tender-workspace-panel .employee-card-table :is(th,td):first-child{min-width:240px;width:26%}
html[data-design=video] .tender-workspace-panel .employee-card-table :is(th,td):nth-child(6){min-width:150px}

/* Employee detail frame: an inset themed rail, without native arrow buttons. */
html[data-design=video] .office-employee-inspector{border-color:color-mix(in srgb,var(--green) 38%,var(--line))}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-track{margin-block:8px;border-radius:8px}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-thumb{border:1px solid var(--surface);min-height:32px}
html[data-design=video] .office-preview-tabs>[role=tab]{min-width:0;white-space:normal;line-height:1.3;padding-inline:2px;min-height:40px;font-size:.72rem}
@supports (-moz-appearance:none){html[data-design=video] .office-employee-scroll{scrollbar-width:thin;scrollbar-color:var(--subtle) var(--surface)}}

/* Filled day plan: restrained category colors, bounded text and inset scroll rail. */
html[data-design=video] .office-timed-event{--plan-ink:var(--green);--plan-surface:var(--accent-soft);color:var(--plan-ink);border-left-color:var(--plan-ink);background:var(--plan-surface)}
html[data-design=video] .office-timed-event[data-plan-kind=task]{--plan-ink:var(--status-info-ink);--plan-surface:var(--status-info-surface)}
html[data-design=video] .office-timed-event[data-plan-kind=reminder]{--plan-ink:var(--status-warning-ink);--plan-surface:var(--status-warning-surface)}
html[data-design=video] .office-timed-event[data-plan-kind=shift]{--plan-ink:var(--status-success-ink);--plan-surface:var(--status-success-surface)}
html[data-design=video] .office-timed-event :is(.record-link,time){color:var(--plan-ink)}
html[data-design=video] .office-timed-event>time{flex:none;font-variant-numeric:tabular-nums}
html[data-design=video] .office-timed-event .dashboard-event{flex:1;min-width:0;overflow-wrap:anywhere}
html[data-design=video] .office-timed-event .dashboard-event small{color:var(--plan-ink);opacity:.8}
html[data-design=video] .office-today .office-day-timeline{scrollbar-width:auto;scrollbar-color:auto}
html[data-design=video] .office-today .office-day-timeline::-webkit-scrollbar-button{display:none;width:0;height:0}
html[data-design=video] .office-today .office-day-timeline::-webkit-scrollbar-track{margin-block:6px}
@supports (-moz-appearance:none){html[data-design=video] .office-today .office-day-timeline{scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}}

/* Native disclosure motion is limited to content panels, never navigation or file menus. */
@supports (interpolate-size:allow-keywords) and selector(details::details-content){
 @media(prefers-reduced-motion:no-preference){
  html[data-design=video]:not([data-motion=reduce]) details:is(.form-help,.core-card-details,.employment-overview-section,.office-other-documents,.office-month-calendar,.card-view-settings,.hr-form-section,.employee-questionnaire-group,.object-file-section){interpolate-size:allow-keywords}
  html[data-design=video]:not([data-motion=reduce]) details:is(.form-help,.core-card-details,.employment-overview-section,.office-other-documents,.office-month-calendar,.card-view-settings,.hr-form-section,.employee-questionnaire-group,.object-file-section)::details-content{block-size:0;opacity:0;overflow:clip;overflow-clip-margin:4px;transition:block-size 240ms cubic-bezier(.2,.75,.25,1),opacity 180ms ease-out,content-visibility 240ms allow-discrete}
  html[data-design=video]:not([data-motion=reduce]) details:is(.form-help,.core-card-details,.employment-overview-section,.office-other-documents,.office-month-calendar,.card-view-settings,.hr-form-section,.employee-questionnaire-group,.object-file-section)[open]::details-content{block-size:auto;opacity:1}
  html[data-design=video]:not([data-motion=reduce]) details:is(.form-help,.core-card-details,.employment-overview-section,.office-other-documents,.office-month-calendar,.card-view-settings,.hr-form-section,.employee-questionnaire-group,.object-file-section)>summary{transition:margin-block-end 240ms cubic-bezier(.2,.75,.25,1),color 140ms ease-out}
  html[data-design=video]:not([data-motion=reduce]) details:is(.form-help,.core-card-details,.employment-overview-section,.office-other-documents,.office-month-calendar,.card-view-settings,.hr-form-section,.employee-questionnaire-group,.object-file-section)[open]>:not(summary){animation:none}
 }
}

/* Compact file selection with a single accessible drop area. */
html[data-design=video] .file-library-upload{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html[data-design=video] .file-library-upload>label{min-width:0;margin:0}
html[data-design=video] .file-library-upload>:not(label){grid-column:1/-1}
html[data-design=video] .file-library-upload>.file-upload-dropzone{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;margin:0;padding:18px;border:1px dashed color-mix(in srgb,var(--green) 38%,var(--line));background:var(--secondary);border-radius:12px;min-width:0}
.file-drop-icon{display:grid;place-items:center;width:40px;height:46px;border-radius:10px;background:var(--accent-soft);color:var(--green)}
.file-drop-icon>.opora-icon{width:24px;height:24px}.file-drop-copy{min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}
.file-drop-copy>strong{font-size:.928571rem;color:var(--ink);font-weight:600}.file-drop-copy>:is(small,span){font-size:.785714rem;color:var(--subtle);line-height:1.4}
html[data-design=video] .file-upload-dropzone.is-dragging{border-color:var(--green);border-style:solid;background:var(--accent-soft);outline:2px solid color-mix(in srgb,var(--green) 20%,transparent);outline-offset:2px}
html[data-design=video] .file-library-upload>.file-upload-access{margin:0;font-size:.785714rem}
html[data-design=video] .file-library-upload>.file-library-queue{margin:0}html[data-design=video] .file-library-upload>.file-library-queue:empty{display:none}
@media(max-width:600px){html[data-design=video] .file-library-upload{grid-template-columns:minmax(0,1fr)}html[data-design=video] .file-library-upload>.file-upload-dropzone{grid-template-columns:32px minmax(0,1fr);gap:12px;padding:14px}.file-drop-icon{width:32px;height:40px}html[data-design=video] .file-upload-dropzone>.file-picker-trigger{grid-column:1/-1;justify-self:stretch;text-align:center}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .file-upload-dropzone{transition:background-color 140ms ease,border-color 140ms ease,outline-color 140ms ease}}

html[data-design=video] .file-library-upload .file-picker-trigger>input[type=file].visually-hidden{width:1px;min-width:0;max-width:1px;height:1px;min-height:0;max-height:1px;padding:0;border:0;inset:0 auto auto 0}

/* Task controls follow the workspace width and current surface palette. */
html[data-design=video] .task-register .task-register-counts>button{display:inline-flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--subtle);padding:7px 10px;min-height:36px;font-size:.857143rem}
html[data-design=video] .task-register .task-register-counts>button>strong{display:inline-grid;place-items:center;min-width:20px;padding:1px 5px;box-sizing:border-box;border-radius:5px;background:var(--secondary);color:var(--ink);font-size:.785714rem;font-variant-numeric:tabular-nums}
html[data-design=video] .task-register .task-register-counts>button[aria-pressed=true]{background:var(--accent-soft);color:var(--green);border-color:color-mix(in srgb,var(--green) 40%,var(--line))}
html[data-design=video] .task-register .task-register-counts>button[aria-pressed=true]>strong{background:var(--surface);color:var(--green)}
html[data-design=video] .task-register .task-register-counts>button:hover{border-color:var(--green);color:var(--green);background:var(--accent-soft)}
html[data-design=video] .task-register>.table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-radius:8px}
@container task-workspace (min-width:1000px){html[data-design=video] #task-register-filters:has([data-task-view]){grid-template-columns:minmax(110px,.8fr) minmax(130px,1fr) minmax(165px,1.3fr) minmax(160px,1.3fr) auto;gap:12px}html[data-design=video] #task-register-filters:has([data-task-view])>.task-filter-actions{grid-column:auto;flex-wrap:nowrap}html[data-design=video] #task-register-filters .task-filter-actions>button{min-width:82px}}
@container task-workspace (min-width:300px) and (max-width:440px){html[data-design=video] #task-register-filters:has([data-task-view]){grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;padding:16px}html[data-design=video] #task-register-filters:has([data-task-view])>label{grid-column:1/-1}html[data-design=video] #task-register-filters:has([data-task-view])>label:has([name=view],[name=kind]){grid-column:auto}html[data-design=video] #task-register-filters>.task-filter-actions>button{flex:1;min-width:0}}

/* Compact contract metadata and a shared focus ring for record tables. */
.contract-register-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.contract-register-subline{display:block;margin:4px 0 0;font-size:.785714rem;line-height:1.4;color:var(--subtle)}
html[data-design=video] .contract-register-table :is(.contract-list-state.state-active){background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
html[data-design=video] .contract-register-table :is(.contract-list-state.state-paused){background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] .contract-register-table :is(.contract-list-state.state-preparation){background:var(--status-info-surface);color:var(--status-info-ink);border-color:var(--status-info-border)}
html[data-design=video] .contract-register-table :is(.contract-list-state.state-closed){background:var(--secondary);color:var(--subtle);border-color:var(--line)}
html[data-design=video] #results>.table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-radius:10px}

html[data-design=video] .contract-register-table table{min-width:1050px}
html[data-design=video] .contract-register-table :is(th,td):nth-child(1){min-width:200px}
html[data-design=video] .contract-register-table :is(th,td):nth-child(2){min-width:180px}
html[data-design=video] .contract-register-table :is(th,td):nth-child(3){min-width:130px}
html[data-design=video] .contract-register-table :is(th,td):nth-child(4){min-width:130px}
html[data-design=video] .contract-register-table :is(th,td):nth-child(5){min-width:140px;font-variant-numeric:tabular-nums}
html[data-design=video] .contract-register-table :is(th,td):nth-child(6){min-width:180px}
html[data-design=video] .contract-register-table :is(th,td):nth-child(7){min-width:90px}

/* Small metric cards keep descriptive counts above their separate open action. */
html[data-design=video] .office-home>.dashboard-metrics>.dashboard-metric-shell{container-type:inline-size;container-name:office-metric}
@container office-metric (max-width:220px){html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-foot{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-items:start}html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-foot>small{overflow-wrap:normal;word-break:normal;text-wrap:pretty}html[data-design=video] .layout .office-home>.dashboard-metrics .dashboard-metric-foot>span:last-child{justify-self:start;white-space:nowrap}}

/* Long file names wrap inside the overview cell instead of overflowing its text box. */
html[data-design=video] .file-overview .file-overview-name{min-width:0;align-items:flex-start;white-space:normal}
html[data-design=video] .file-overview .file-overview-name>strong{flex:1;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
html[data-design=video] .file-overview .file-overview-name>.office-file-badge{flex:none}

/* Employee reference: individual document frames and an inset, themed scroll rail. */
html[data-design=video] .office-employee-inspector{border:1px solid color-mix(in srgb,var(--green) 44%,var(--line));box-shadow:0 2px 8px color-mix(in srgb,var(--ink) 4%,transparent)}
html[data-design=video] .office-employee-inspector .office-inspector-document{padding:9px;margin:0 0 7px;border:1px solid var(--employee-state-border);border-radius:10px;background:color-mix(in srgb,var(--employee-state-bg) 40%,var(--surface));min-height:58px;transition:border-color 160ms ease,background-color 160ms ease}
html[data-design=video] .office-employee-inspector .office-inspector-document:hover{border-color:var(--employee-state-ink);background:var(--employee-state-bg)}
html[data-design=video] .office-employee-scroll{padding:6px 9px 6px 6px;scrollbar-width:auto;scrollbar-color:auto}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar{width:8px;background:transparent}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-track{background:var(--secondary);border:1px solid var(--line);margin-block:10px;border-radius:8px}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 65%,var(--surface));border:2px solid var(--secondary);border-radius:8px}
.office-profile-facts a{display:block;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.office-profile-facts a:hover{text-decoration:underline;text-underline-offset:3px}
.office-employee-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-radius:8px}
@media(max-width:760px){html[data-design=video] .office-employee-scroll{padding:6px}}
@media(prefers-reduced-motion:reduce){html[data-design=video] .office-employee-inspector .office-inspector-document{transition:none}}
html[data-motion=reduce] .office-employee-inspector .office-inspector-document{transition:none}

/* Employee register: meaningful filters, compact desktop row and paired narrow controls. */
.office-employee-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end;padding:12px 16px;border-bottom:1px solid var(--line)}
.office-employee-filters>label{display:grid;gap:5px;min-width:0;margin:0;font-size:.76rem;color:var(--subtle)}
.office-employee-filters select{width:100%;min-width:0;margin:0;font-size:.82rem}
.office-employee-filters>button{min-height:40px;margin:0}
@media(max-width:1000px){.office-employee-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.office-employee-filters>button{justify-self:end;grid-column:2}}
@media(max-width:480px){.office-employee-filters{padding:12px;gap:10px 8px}.office-employee-filters select{font-size:.76rem}}
.office-shift-tasks{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px;margin-top:10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:.8rem}
.office-shift-tasks>strong{padding:2px 7px;border-radius:6px;background:var(--accent-soft);color:var(--green);font-variant-numeric:tabular-nums}

/* Imported document requisites may contain long identifiers without spaces. */
html[data-design=video] .office-employee-inspector .office-document-number{overflow-wrap:anywhere}

/* Personnel forms use compact themed disclosure headings. */
html[data-design=video] details.hr-form-section{padding:0;margin-bottom:8px;overflow:clip}
html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:48px;box-sizing:border-box;padding:12px 16px;margin:0;font-size:.9rem;line-height:1.5;border-radius:10px;color:var(--ink)}
html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)>summary::marker{content:''}
html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)>summary::-webkit-details-marker{display:none}
html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)>summary::before{content:'';width:6px;height:6px;flex:none;border-right:1.5px solid var(--subtle);border-bottom:1.5px solid var(--subtle);transform:rotate(-45deg);margin-right:3px}
html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)[open]>summary::before{transform:rotate(45deg);border-color:var(--green)}
html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)[open]>summary{color:var(--green);background:color-mix(in srgb,var(--accent-soft) 40%,var(--surface))}
html[data-design=video] details.hr-form-section>.form-grid{padding:14px 16px 16px}
html[data-design=video] .employee-questionnaire-group{padding:0;margin:0 0 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
html[data-design=video] .employee-questionnaire-group>summary>small{margin-left:auto;flex:none;font-size:.75rem;font-variant-numeric:tabular-nums}
html[data-design=video] .employee-questionnaire-group>dl{padding:0 16px 12px;margin-top:0}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) :is(details.hr-form-section,.employee-questionnaire-group)>summary::before{transition:transform 220ms cubic-bezier(.2,.75,.25,1),border-color 160ms ease}}
@media(max-width:480px){html[data-design=video] :is(details.hr-form-section,.employee-questionnaire-group)>summary{padding:12px;font-size:.85rem}html[data-design=video] details.hr-form-section>.form-grid{padding:12px}}

/* Record attachments use the same file badges and palette as the file library. */
.record-file-workspace{min-width:0}
.record-file-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.record-file-heading>strong{display:flex;align-items:center;gap:8px;color:var(--ink)}
.record-file-heading>strong>span{display:inline-grid;place-items:center;min-width:23px;padding:2px 6px;border-radius:7px;font-size:.8rem;font-weight:500;color:var(--subtle);background:var(--secondary);font-variant-numeric:tabular-nums}
.record-file-heading>small{color:var(--subtle);font-variant-numeric:tabular-nums}
.record-file-list{display:grid;gap:8px;min-width:0}
.record-file-row{display:grid;grid-template-columns:44px minmax(0,1fr) 36px;align-items:center;gap:8px 12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.record-file-kind{display:grid;place-items:center;align-self:start}.record-file-kind>.office-file-badge{margin:0;flex:none}
.record-file-download{display:grid;gap:5px;min-width:0;text-decoration:none;color:var(--ink);align-self:center}
.record-file-download>strong{font-size:.92rem;font-weight:600;overflow-wrap:anywhere;line-height:1.45}
.record-file-download>small{font-size:.78rem;color:var(--subtle);line-height:1.4;overflow-wrap:anywhere}
.record-file-download:hover>strong{text-decoration:underline;text-underline-offset:3px}
.record-file-download-action{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--secondary);color:var(--green)}
.record-file-download-action>.opora-icon{width:19px;height:19px}
.record-file-actions{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.record-file-actions:empty{display:none}
.record-file-actions :is(button,.pill){margin:0;font-size:.78rem;min-height:32px;padding:5px 9px}
.record-file-actions .file-removal{min-width:0;max-width:100%}.record-file-actions [data-file-remove-confirm]{overflow-wrap:anywhere;line-height:1.6}.record-file-actions [data-file-remove-confirm]>button{margin:4px}
.record-file-preview{display:block;width:44px;height:54px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--secondary);align-self:start}
.record-file-preview>img{width:100%;height:100%;object-fit:cover;display:block}
.record-file-empty{display:flex;align-items:center;justify-content:center;gap:12px;padding:28px 16px;border:1px dashed var(--line);border-radius:12px;color:var(--subtle)}
.record-file-empty>.opora-icon{width:24px;height:24px;color:var(--subtle)}
html[data-design=video] .record-file-upload{display:flex;align-items:center;gap:12px;position:relative;padding:14px 16px;margin:14px 0 0;border:1px dashed color-mix(in srgb,var(--green) 42%,var(--line));border-radius:12px;background:var(--secondary);color:var(--ink);cursor:pointer}
.record-file-upload>span{display:grid;gap:4px;font-size:.9rem;font-weight:600}.record-file-upload small{font-size:.76rem;color:var(--subtle);font-weight:400}
.record-file-upload>.opora-icon{width:22px;height:22px;color:var(--green)}
.record-file-upload:focus-within{outline:2px solid var(--green);outline-offset:3px}.record-file-upload:has(input:disabled){opacity:.6;cursor:progress}
html[data-design=video] .record-file-upload>input[type=file]{position:absolute;width:1px;min-width:0;max-width:1px;height:1px;min-height:0;max-height:1px;margin:0;padding:0;border:0;clip-path:inset(50%);overflow:hidden}
@media(max-width:480px){.record-file-row{padding:10px;gap:8px;grid-template-columns:40px minmax(0,1fr) 32px}.record-file-actions{grid-column:1/-1}.record-file-download-action{width:32px;height:34px}.record-file-preview{width:40px;height:50px}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) :is(.record-file-download-action,.record-file-upload){transition:background-color 160ms ease,color 160ms ease}}

.record-file-workspace{container-type:inline-size}
@container(min-width:700px){.record-file-workspace .record-file-row{grid-template-columns:44px minmax(0,1fr) auto 36px}.record-file-workspace .record-file-row>.record-file-actions{grid-column:3;grid-row:1;max-width:340px;justify-content:flex-end}.record-file-workspace .record-file-row>.record-file-download-action{grid-column:4;grid-row:1}}

/* Object document categories retain their order while empty groups stay compact. */
.object-file-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.object-file-head>strong{display:flex;align-items:center;gap:8px}.object-file-head small{font-size:.8rem;color:var(--subtle);font-weight:400}
.object-file-upload{align-items:end;margin-bottom:16px}.object-file-upload>label{min-width:0;margin:0}.object-file-upload #object-file-status{grid-column:1/-1;margin:0}.object-file-upload #object-file-status:empty{display:none}
html[data-design=video] .object-file-upload>.record-file-upload{margin:0;padding:10px 14px}
html[data-design=video] .object-file-sections{align-items:start;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.object-file-section{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:clip}
.object-file-section>summary{display:flex;align-items:center;gap:10px;min-height:54px;box-sizing:border-box;padding:12px;list-style:none;cursor:pointer}
.object-file-section>summary::marker{content:''}.object-file-section>summary::-webkit-details-marker{display:none}
.object-file-section>summary::after{content:'';width:6px;height:6px;flex:none;border-right:1.5px solid var(--subtle);border-bottom:1.5px solid var(--subtle);transform:rotate(-45deg);margin:0 4px}
.object-file-section[open]>summary::after{transform:rotate(45deg)}
.object-file-section>summary>.opora-icon{width:18px;height:18px;flex:none;color:var(--status-info-ink)}
.object-file-section:is([data-file-category=acceptance],[data-file-category=inspections],[data-file-category=ownership])>summary>.opora-icon{color:var(--status-success-ink)}
.object-file-section:is([data-file-category=notices],[data-file-category=complexity],[data-file-category=assessment])>summary>.opora-icon{color:var(--status-warning-ink)}
.object-file-section>summary>strong{min-width:0;overflow-wrap:anywhere;font-size:.86rem;line-height:1.4;font-weight:600;color:var(--ink)}
.object-file-section>summary>small{margin-left:auto;flex:none;padding:2px 6px;border-radius:6px;background:var(--secondary);color:var(--subtle);font-size:.75rem;font-variant-numeric:tabular-nums}
.object-file-section[open]>summary{background:color-mix(in srgb,var(--accent-soft) 35%,var(--surface))}
.object-file-section-body{padding:8px;display:grid;gap:8px}.object-file-empty{margin:4px;padding:8px;font-size:.8rem;color:var(--subtle)}
.object-file-section .record-file-row{padding:8px;gap:8px;grid-template-columns:36px minmax(0,1fr) 30px}.object-file-section .record-file-kind>.office-file-badge{width:34px;height:40px;min-width:34px}.object-file-section .record-file-preview{width:34px;height:42px}.object-file-section .record-file-download-action{width:30px;height:32px}.object-file-section .record-file-download>strong{font-size:.83rem}.object-file-section .record-file-download>small{font-size:.72rem}.object-file-section .record-file-actions{grid-column:1/-1}
.object-file-move{display:grid;gap:4px;flex:1 1 160px;min-width:0;font-size:.72rem;color:var(--subtle);margin:0}.object-file-move>select{width:100%;min-width:0;margin:0;font-size:.78rem}
.object-file-section>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px;border-radius:12px}
@media(max-width:1050px){html[data-design=video] .object-file-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html[data-design=video] .object-file-sections{grid-template-columns:minmax(0,1fr)}.object-file-upload{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .object-file-section>summary::after{transition:transform 220ms cubic-bezier(.2,.75,.25,1)}}

/* A full month fits narrow screens; the selected day retains its normal event controls. */
.calendar-mobile-month{display:none}
@media(max-width:760px){
 .calendar-mobile-month{display:block;margin:12px 0 16px;min-width:0}
 .calendar-mobile-weekdays,.calendar-mobile-dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
 .calendar-mobile-weekdays{margin-bottom:6px;text-align:center;color:var(--subtle);font-size:.75rem}
 html[data-design=video] .calendar-mobile-dates>button{display:grid;grid-template-rows:20px 12px;align-content:center;justify-items:center;gap:2px;width:100%;min-width:0;min-height:46px;box-sizing:border-box;padding:4px 0;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-size:.9rem;font-variant-numeric:tabular-nums}
 .calendar-mobile-dates>button>small{font-size:.65rem;color:var(--subtle);line-height:1}
 html[data-design=video] .calendar-mobile-dates>button.other-month{color:var(--subtle);background:var(--secondary)}
 html[data-design=video] .calendar-mobile-dates>button.today{border-color:var(--green);font-weight:700}
 html[data-design=video] .calendar-mobile-dates>button[aria-pressed=true]{background:var(--accent-soft);color:var(--green);border-color:var(--green)}
 .calendar-mobile-dates>button.has-overdue>small{color:var(--status-danger-ink);font-weight:700}
 .calendar-mobile-dates>button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
 html[data-design=video] .personal-calendar-scroll[data-calendar-view=month]{overflow:visible;padding:0}
 html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-grid{display:block;min-width:0;grid-template-columns:minmax(0,1fr)}
 html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-day{display:none}
 html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-day.calendar-mobile-selected{display:flex;min-height:100px;max-height:440px;opacity:1;margin:0}
 html[data-design=video] .personal-calendar-scroll[data-calendar-view=month] .calendar-day.calendar-mobile-selected>h3{font-size:.9rem}
}

.calendar-toolbar #calendar-refresh>.opora-icon{display:none}
@media(max-width:760px){
 html[data-design=video] #calendar-root>.calendar-toolbar{padding:0;border:0;box-shadow:none;background:transparent;gap:8px;align-items:end}
 #calendar-root>.calendar-toolbar>:is(#calendar-prev,#calendar-next){flex:0 0 40px;width:40px;min-width:40px;margin:0}
 #calendar-root>.calendar-toolbar>#calendar-today{flex:1 1 calc(100% - 100px);margin:0}
 #calendar-root>.calendar-toolbar>label{flex:1 1 calc(50% - 4px);min-width:0;margin:0;order:1}
 #calendar-root>.calendar-toolbar>#calendar-view{flex:1 1 calc(50% - 4px);min-width:0;margin:0;order:1}
 #calendar-root>.calendar-toolbar>#calendar-refresh{flex:0 0 38px;min-width:38px;width:38px;height:40px;display:grid;place-items:center;padding:8px;margin:0;order:2}
 #calendar-root>.calendar-toolbar>#calendar-refresh>.opora-icon{display:block;width:18px;height:18px}
 #calendar-root>.calendar-toolbar>#calendar-refresh>.calendar-refresh-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #calendar-root>.calendar-toolbar>:is([data-calendar-reminders],.primary){flex:1 1 110px;min-width:0;margin:0;order:2;padding-inline:8px;font-size:.85rem}
}

.indicator-issue-setting{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:14px;align-items:center;padding:14px 0;margin:8px 0;border-bottom:1px solid var(--line)}
.indicator-issue-setting>label{display:grid;gap:6px;min-width:0;font-size:.86rem}.indicator-issue-setting input{width:100%;min-width:0;margin:0}.indicator-issue-setting small{color:var(--subtle);font-size:.8rem;line-height:1.5}
.indicator-issue-deadlines{border:1px solid var(--line);border-radius:12px;background:var(--secondary);padding:14px;margin:12px 0}.indicator-issue-deadlines h3{margin:0 0 10px;font-size:.95rem}.indicator-issue-deadlines>div{display:grid;gap:5px;padding:8px 0;font-size:.84rem;overflow-wrap:anywhere}.indicator-issue-deadlines>div+div{border-top:1px solid var(--line)}.indicator-issue-deadlines span{color:var(--subtle)}
html[data-design=video] .office-employees :is(.office-document-status,.office-inspector-document)[data-issue-state=pending]{--employee-state-bg:var(--secondary);--employee-state-ink:var(--subtle);--employee-state-border:var(--line)}
html[data-design=video] .office-employees :is(.office-document-status,.office-inspector-document)[data-issue-state=today]{--employee-state-bg:var(--status-warning-surface);--employee-state-ink:var(--status-warning-ink);--employee-state-border:var(--status-warning-border)}
html[data-design=video] .office-employees :is(.office-document-status,.office-inspector-document)[data-issue-state=overdue]{--employee-state-bg:var(--status-danger-surface);--employee-state-ink:var(--status-danger-ink);--employee-state-border:var(--status-danger-border)}
html[data-design=video] .office-employee-inspector .office-inspector-document>.office-document-issue-due{grid-column:2/-1;grid-row:3;white-space:normal;overflow-wrap:anywhere;font-size:.72rem;color:var(--employee-state-ink)}
html[data-design=video]:not([data-motion=reduce]) .office-employees .office-document-status[data-indicator-key=personal_card][data-issue-state=pending]::after{animation:none}
@media(max-width:600px){.indicator-issue-setting{grid-template-columns:minmax(0,1fr);gap:8px}}

html[data-design=video] .indicator-evidence-status[data-issue-state=today]{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
html[data-design=video] .indicator-evidence-status[data-issue-state=overdue]{background:var(--status-danger-surface);color:var(--status-danger-ink);border-color:var(--status-danger-border)}

html[data-design=video] .indicator-evidence-status[data-issue-state=pending]{background:var(--secondary);color:var(--subtle);border-color:var(--line)}

/* Employee reference panel: framed evidence, inset themed scroll rail, readable expiry. */
html[data-design=video] .office-employee-inspector{border:1px solid color-mix(in srgb,var(--green) 52%,var(--line));padding:10px;border-radius:16px}
html[data-design=video] .office-employee-scroll{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--subtle) 62%,var(--surface)) var(--secondary);padding:6px 10px 6px 6px;border-radius:10px;overflow-anchor:none}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar{width:8px;background:var(--secondary)}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-track{background:var(--secondary);border-radius:8px;margin-block:10px}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 62%,var(--surface));border:2px solid var(--secondary);border-radius:8px}
html[data-design=video] .office-employee-scroll::-webkit-scrollbar-button:single-button{display:none;width:0;height:0}
/* Chromium gives standard scrollbar-color precedence over the themed rail.
   Use its native pseudo-elements together so the rail keeps its inset corners. */
@supports selector(::-webkit-scrollbar){
 html[data-design=video] .office-employee-scroll{scrollbar-width:auto;scrollbar-color:auto}
 html[data-design=video] .office-employee-scroll::-webkit-scrollbar{width:8px;background:transparent}
 html[data-design=video] .office-employee-scroll::-webkit-scrollbar-track{background:var(--secondary);border-radius:8px;margin-block:8px}
 html[data-design=video] .office-employee-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 62%,var(--surface));border:2px solid var(--secondary);border-radius:8px}
 html[data-design=video] .office-employee-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}
}
html[data-design=video] .office-profile-facts{gap:8px 10px;margin-top:10px;padding-top:10px}
html[data-design=video] .office-employee-inspector .office-inspector-document{border-color:color-mix(in srgb,var(--employee-state-border) 65%,var(--line));padding:9px 10px;gap:4px 8px}
html[data-design=video] .office-employee-inspector .office-inspector-document>.office-document-until{grid-column:2/-1;grid-row:auto;text-align:left;white-space:normal;overflow-wrap:anywhere;color:var(--employee-state-ink)}
html[data-design=video] .office-employee-scroll>.office-assignment{padding:12px;border-radius:12px;background:var(--secondary);border:1px solid var(--line)}
@media(max-width:760px){html[data-design=video] .office-employee-scroll{padding:6px}}
@media(forced-colors:active){html[data-design=video] .office-employee-scroll{scrollbar-color:auto}}

/* Long employee identity text remains readable inside the reference panel. */
html[data-design=video] .office-employee-profile>div{min-width:0}
html[data-design=video] .office-employee-profile :is(h3,small){white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* Received reminders: compact, readable states without moving the list on acknowledgement. */
html[data-design=video] dialog:has([data-reminder-inbox]){width:min(760px,calc(100vw - 24px))}
.reminder-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.reminder-inbox-head p{margin:0;color:var(--subtle)}
.reminder-inbox-head strong{color:var(--ink);font-variant-numeric:tabular-nums}
.reminder-received-list{display:grid;gap:10px}
.reminder-notice{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.reminder-notice[data-read=false]{border-color:color-mix(in srgb,var(--green) 30%,var(--line));background:color-mix(in srgb,var(--green) 3%,var(--surface))}
.reminder-notice-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--green)}
.reminder-notice-icon .opora-icon{width:18px;height:18px}
.reminder-notice-content{min-width:0}
.reminder-notice header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.reminder-notice h3{margin:0;font-size:.95rem;line-height:1.45;overflow-wrap:anywhere;color:var(--ink)}
.reminder-notice-status{flex:none;font-size:.72rem;color:var(--subtle);padding:3px 7px;border-radius:6px;background:var(--secondary)}
.reminder-notice[data-read=false] .reminder-notice-status{background:var(--accent-soft);color:var(--green)}
.reminder-notice-meta{display:flex;gap:5px 12px;flex-wrap:wrap;margin-top:5px;color:var(--subtle);font-size:.75rem;line-height:1.5}
.reminder-notice-meta time{font-variant-numeric:tabular-nums}
.reminder-notice-text{margin:10px 0 0;white-space:pre-line;overflow-wrap:anywhere;color:var(--ink);line-height:1.55}
.reminder-notice-source{margin:8px 0 0;font-size:.82rem;color:var(--subtle);overflow-wrap:anywhere}
.reminder-notice-outdated{margin:8px 0 0;font-size:.78rem;color:var(--status-warning-ink)}
.reminder-notice-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
html[data-design=video] .reminder-notice-actions>button{padding:6px 10px;min-height:32px;font-size:.8rem;background:var(--secondary);border:1px solid var(--line);color:var(--ink)}
html[data-design=video] .reminder-notice-actions>button:hover{background:var(--accent-soft);color:var(--green)}
.reminder-notice-actions>small{font-size:.75rem;color:var(--subtle)}
[data-inbox-error]:empty{display:none}
[data-inbox-more]{margin-top:14px}
@media(max-width:520px){.reminder-notice{padding:12px;gap:9px;grid-template-columns:28px minmax(0,1fr)}.reminder-notice-icon{width:28px;height:28px;border-radius:8px}.reminder-notice header{flex-wrap:wrap;gap:5px}.reminder-notice-actions{gap:6px}.reminder-notice-actions>button{flex:1 1 140px}}
@keyframes reminder-notice-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .reminder-notice{animation:reminder-notice-enter 180ms ease-out both}}

/* Contract OLRR dates: compact paired milestones inside each narrow contract card. */
html[data-design=video] .object-card-contracts .olrr-notice strong{display:flex;align-items:center;gap:6px;color:inherit;font-weight:600;opacity:1}
.olrr-notice strong>svg{flex:none;width:15px;height:15px}
.olrr-notice small{font-size:.7rem;line-height:1.4;color:inherit;opacity:.85;overflow-wrap:anywhere}
html[data-design=video] .object-card-contracts .olrr-notice{height:100%;box-sizing:border-box;align-content:start}
@media(max-width:760px){
 html[data-design=video] .object-olrr-table tbody{display:grid;gap:10px}
 html[data-design=video] .object-olrr-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td{display:block;min-width:0;margin:0;padding:0;border:0}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td:nth-child(-n+3){grid-column:1/-1}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td:nth-child(3){display:flex;align-items:center;gap:7px;font-size:.75rem;color:var(--subtle)}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td:nth-child(3)>.object-cell-label{margin:0}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td:not(:nth-child(3))>.object-cell-label{display:none}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td:nth-child(2){font-size:.76rem;color:var(--subtle)}
 html[data-design=video] :is(.layout,dialog) .table-wrap.object-olrr-table>table>tbody>tr>td:nth-child(n+4)>.object-cell-value{height:100%}
 html[data-design=video] .object-olrr-table .olrr-notice{padding:9px;gap:6px}
 html[data-design=video] .object-olrr-table .olrr-notice span{font-size:.78rem;line-height:1.5}
}

/* Practical reference catalogs use readable cards instead of sparse ID tables. */
.office-reference-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;padding:16px;align-items:start}
html[data-design=video] .office-reference-catalog>.office-reference-card{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:14px;min-width:0;max-width:100%;padding:18px;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:none;white-space:normal;transition:border-color 160ms ease,background-color 160ms ease,transform 160ms ease}
html[data-design=video] .office-reference-card:hover{background:color-mix(in srgb,var(--green) 3%,var(--surface));border-color:color-mix(in srgb,var(--green) 45%,var(--line));transform:translateY(-1px)}
.office-reference-card:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.office-reference-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:var(--status-info-ink);background:var(--status-info-surface)}
[data-catalog=object_terms] .office-reference-symbol{color:var(--status-warning-ink);background:var(--status-warning-surface)}
.office-reference-symbol .opora-icon{width:24px;height:24px}
.office-reference-content{display:grid;gap:9px;min-width:0}
.office-reference-content>strong{font-size:.96rem;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.office-reference-description{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:.86rem;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere;color:var(--subtle)}
.office-reference-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:3px;font-size:.76rem;color:var(--green)}
.office-reference-footer>.pill{font-size:.7rem;white-space:normal}
@media(max-width:520px){.office-reference-catalog{padding:12px;gap:10px}html[data-design=video] .office-reference-catalog>.office-reference-card{padding:14px;gap:10px;grid-template-columns:34px minmax(0,1fr)}.office-reference-symbol{width:34px;height:34px;border-radius:9px}.office-reference-symbol .opora-icon{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){html[data-design=video] .office-reference-card{transition:none}html[data-design=video] .office-reference-card:hover{transform:none}}
html[data-motion=reduce][data-design=video] .office-reference-card{transition:none}
html[data-motion=reduce][data-design=video] .office-reference-card:hover{transform:none}

html[data-design=video] .office-reference-symbol>.opora-icon{color:inherit}
.office-reference-catalog{align-items:stretch}
.office-reference-content{grid-template-rows:auto 1fr auto}
.office-reference-state{font-size:.7rem;line-height:1.4;padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--secondary);color:var(--subtle)}
.office-reference-state[data-state=active]{background:var(--status-success-surface);color:var(--status-success-ink);border-color:var(--status-success-border)}
.office-reference-state[data-state=paused]{background:var(--status-warning-surface);color:var(--status-warning-ink);border-color:var(--status-warning-border)}
@keyframes office-reference-enter{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .office-reference-card{animation:office-reference-enter 180ms ease-out backwards}}

/* Keep rail icons and pointer targets stationary while hover reveals labels. */
@media(min-width:721px){
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout>aside:is(:hover,:focus-within,[data-pointer-peek]){padding-inline:8px}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout>aside:is(:hover,:focus-within,[data-pointer-peek]) .navigation-group>.nav{margin-left:0;padding-left:10px;border-left:0}
 html[data-design=video][data-menu=vertical][data-sidebar=collapsed] .layout>aside:is(:hover,:focus-within,[data-pointer-peek]) .navigation-group>.nav>.nav-label{padding-left:6px}
}

/* Secondary work controls follow the selected surface palette, including salary tools. */
html[data-design=video] :is([data-task-columns],[data-salary-templates],#salary-workspace-filters>button,.salary-workspace-pages>button,.salary-workspace-steps>:is(button,a.button)):not(.primary):not(.danger){background:var(--secondary);color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-design=video] :is([data-task-columns],[data-salary-templates],#salary-workspace-filters>button,.salary-workspace-pages>button,.salary-workspace-steps>:is(button,a.button)):not(.primary):not(.danger):hover{background:var(--accent-soft);border-color:var(--line-strong,var(--line));color:var(--green)}

/* Group participants retain selection while the visible list is filtered. */
html[data-design=video] dialog:has(#group-settings-form){width:min(680px,calc(100vw - 24px))}
html[data-design=video] #group-settings-form fieldset.group-member-picker{gap:10px;padding:12px;max-height:none;overflow:visible}
html[data-design=video] .group-member-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
html[data-design=video] .group-member-tools>label{flex:1 1 190px;min-width:0;margin:0}
html[data-design=video] .group-member-tools input{width:100%;margin:0;background:var(--surface)}
html[data-design=video] [data-group-member-count]{font-size:.8rem;color:var(--subtle);white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-design=video] .group-member-list{display:grid;gap:6px;max-height:280px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--subtle) var(--secondary);min-width:0;padding:2px}
html[data-design=video] #group-settings-form .group-member-row{display:grid;grid-template-columns:16px 34px minmax(0,1fr);align-items:center;gap:10px;border:1px solid transparent;padding:9px 10px;background:var(--secondary);cursor:pointer}
html[data-design=video] #group-settings-form .group-member-row:has(input:checked){background:var(--accent-soft);border-color:color-mix(in srgb,var(--green) 28%,var(--line))}
html[data-design=video] #group-settings-form .group-member-row:focus-within{outline:2px solid var(--green);outline-offset:0}
html[data-design=video] #group-settings-form .group-member-row:has(input:disabled){opacity:.6;cursor:default}
html[data-design=video] #group-settings-form .group-member-row input{margin:0}
html[data-design=video] .group-member-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--surface);color:var(--green);font-size:.78rem;font-weight:600}
html[data-design=video] .group-member-identity{min-width:0;display:grid;gap:3px}
html[data-design=video] .group-member-identity strong{font-size:.86rem;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
html[data-design=video] .group-member-identity small{font-size:.75rem;line-height:1.4;color:var(--subtle);overflow-wrap:anywhere}
html[data-design=video] #group-settings-form .group-member-empty{padding:16px;text-align:center;color:var(--subtle)}
html[data-design=video] :is(.group-member-row,.group-member-empty)[hidden]{display:none!important}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) #group-settings-form .group-member-row{transition:background-color 150ms ease,border-color 150ms ease}}

/* In Chromium, standard scrollbar colors override WebKit track/thumb styling.
   Keep the standard thin fallback above for other browsers; use one native
   themed rail for the office scroll regions when pseudo-elements are supported. */
@supports selector(::-webkit-scrollbar){
 html[data-design=video],
 html[data-design=video] :is(#content,dialog) .table-wrap,
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown){scrollbar-width:auto;scrollbar-color:auto}
 html[data-design=video]::-webkit-scrollbar-button,
 html[data-design=video] :is(#content,dialog) .table-wrap::-webkit-scrollbar-button,
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown)::-webkit-scrollbar-button{display:none;width:0;height:0}
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown)::-webkit-scrollbar{width:8px;height:8px;background:transparent}
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown)::-webkit-scrollbar-track{background:var(--secondary);border-radius:8px}
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown)::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--subtle) 65%,var(--surface));border:2px solid var(--secondary);border-radius:8px}
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown)::-webkit-scrollbar-thumb:hover{background:var(--green)}
 html[data-design=video] :is(.layout,dialog) :is(.office-day-timeline,.file-recent-list,.calendar-day-events,.personal-calendar-scroll,.chat-feed,.group-member-list,.reminder-choice-list,.reference-popup,.global-search-dropdown)::-webkit-scrollbar-corner{background:var(--surface)}
}

/* Backup actions stay visible while technical instructions remain available. */
html[data-design=video] :is(.backup-overview-help,.backup-admin-help){border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
html[data-design=video] .backup-overview-help{margin:0 0 18px}
html[data-design=video] :is(.backup-overview-help,.backup-admin-help)>summary{padding:12px 16px;color:var(--subtle);font-size:.88rem;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
html[data-design=video] :is(.backup-overview-help,.backup-admin-help)[open]>summary{color:var(--green);border-bottom:1px solid var(--line)}
html[data-design=video] :is(.backup-overview-help,.backup-admin-help)>p{margin:12px 16px;font-size:.86rem;line-height:1.6;overflow-wrap:anywhere}
html[data-design=video] .backup-admin-help>pre{margin:12px 16px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--secondary);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem}

/* Neutral actions inside tables follow the same surfaces as filter controls. */
html[data-design=video] :is(.layout,dialog) .table-wrap :is(button,a.button):not(.record-link):not(.primary):not(.danger):not([data-open]):not([data-status]):not(.file-actions-menu *){background:var(--secondary);color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-design=video] :is(.layout,dialog) .table-wrap :is(button,a.button):not(.record-link):not(.primary):not(.danger):not([data-open]):not([data-status]):not(.file-actions-menu *):hover{background:var(--accent-soft);color:var(--green);border-color:var(--line-strong,var(--line))}

/* Contract read view: compact sections preserve every original field node. */
html[data-design=video] .contract-information{display:grid;gap:12px;min-width:0}
html[data-design=video] .contract-information-group{--contract-group-ink:var(--subtle);margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0;overflow:clip}
html[data-design=video] .contract-information-group:is([data-contract-group=main],[data-contract-group=classification]){--contract-group-ink:var(--status-info-ink)}
html[data-design=video] .contract-information-group:is([data-contract-group=cost],[data-contract-group=parties]){--contract-group-ink:var(--status-success-ink)}
html[data-design=video] .contract-information-group[data-contract-group=olrr]{--contract-group-ink:var(--status-warning-ink)}
html[data-design=video] .contract-information-group>h3,html[data-design=video] .contract-information-group>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:0;font-size:.92rem;font-weight:600;line-height:1.4;color:var(--ink);list-style:none}
html[data-design=video] .contract-information-group>summary{cursor:pointer}
html[data-design=video] .contract-information-group>summary::-webkit-details-marker{display:none}
html[data-design=video] .contract-information-group>summary:after{content:'';width:6px;height:6px;flex:none;margin-left:auto;border-right:1.5px solid var(--subtle);border-bottom:1.5px solid var(--subtle);transform:rotate(-45deg)}
html[data-design=video] .contract-information-group[open]>summary:after{transform:rotate(45deg)}
html[data-design=video] .contract-information-symbol{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:color-mix(in srgb,var(--contract-group-ink) 9%,var(--surface));color:var(--contract-group-ink)}
html[data-design=video] .contract-information-symbol>.opora-icon{width:18px;height:18px;color:inherit!important}
html[data-design=video] .contract-information-group>.details{padding:0 14px 12px;gap:12px 18px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-design=video] .contract-information-group .detail-field{min-width:0;padding:7px 0;overflow-wrap:anywhere}
@media(max-width:600px){html[data-design=video] .contract-information-group>.details{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .contract-information-group>summary:after{transition:transform 180ms ease}}

/* Contract editor shares the same sections as its read view. */
html[data-design=video] dialog .contract-editor-group{grid-column:1/-1;overflow:visible}
html[data-design=video] dialog .contract-editor-group>.form-grid{padding:0 14px 14px;margin:0;gap:12px 18px;grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-design=video] dialog .contract-editor-group>.form-grid>label{min-width:0;overflow-wrap:anywhere}
html[data-design=video] dialog .contract-editor-group>.form-grid :is(input,select,textarea){max-width:100%;min-width:0}
html[data-design=video] dialog .contract-editor-group .reference-picker{margin:0;min-width:0}
@media(max-width:600px){html[data-design=video] dialog .contract-editor-group>.form-grid{grid-template-columns:minmax(0,1fr)}}

/* Object editor: readable operational groups without a single long mixed form. */
html[data-design=video] dialog .object-editor-section{grid-column:1/-1;min-width:0;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);--object-editor-ink:var(--subtle)}
html[data-design=video] dialog .object-editor-section:is([data-object-editor-group=main],[data-object-editor-group=panel]){--object-editor-ink:var(--status-info-ink)}
html[data-design=video] dialog .object-editor-section:is([data-object-editor-group=guard],[data-object-editor-group=response]){--object-editor-ink:var(--status-success-ink)}
html[data-design=video] dialog .object-editor-section>h3,html[data-design=video] dialog .object-editor-section>summary{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;font-size:.92rem;line-height:1.4;font-weight:600;color:var(--ink);list-style:none}
html[data-design=video] dialog .object-editor-section>summary{cursor:pointer}
html[data-design=video] dialog .object-editor-section>summary::-webkit-details-marker{display:none}
html[data-design=video] dialog .object-editor-section>summary:after{content:'';width:6px;height:6px;flex:none;margin-left:auto;border-right:1.5px solid var(--subtle);border-bottom:1.5px solid var(--subtle);transform:rotate(-45deg)}
html[data-design=video] dialog .object-editor-section[open]>summary:after{transform:rotate(45deg)}
html[data-design=video] dialog .object-editor-symbol{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;color:var(--object-editor-ink);background:color-mix(in srgb,var(--object-editor-ink) 9%,var(--surface))}
html[data-design=video] dialog .object-editor-symbol>.opora-icon{width:18px;height:18px;color:inherit!important}
html[data-design=video] dialog .object-editor-section>.form-grid{padding:0 14px 14px;margin:0;gap:12px 18px;grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-design=video] dialog .object-editor-section>.form-grid>label{min-width:0;overflow-wrap:anywhere}
html[data-design=video] dialog .object-editor-section .reference-picker{min-width:0;margin:0}
@media(max-width:600px){html[data-design=video] dialog .object-editor-section>.form-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html[data-design=video]:not([data-motion=reduce]) .object-editor-section>summary:after{transition:transform 180ms ease}}

/* Keep administrative rows compact until their secondary actions are needed. */
html[data-design=video] .user-row-actions{align-items:flex-start}
html[data-design=video] .user-more-actions{min-width:0;margin:0}
html[data-design=video] .user-more-actions>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--secondary);color:var(--ink);font-size:.857143rem;line-height:1.4;cursor:pointer;list-style:none}
html[data-design=video] .user-more-actions>summary::-webkit-details-marker{display:none}
html[data-design=video] .user-more-actions>summary:after{content:'';width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
html[data-design=video] .user-more-actions[open]{flex-basis:100%}
html[data-design=video] .user-more-actions[open]>summary{background:var(--accent-soft);color:var(--green)}
html[data-design=video] .user-more-actions[open]>summary:after{transform:rotate(225deg)}
html[data-design=video] .user-more-actions>div{display:grid;gap:6px;margin-top:8px}
html[data-design=video] .user-more-actions>div>button{width:100%;margin:0}

/* Review corrections: aligned document copy, quieter TXT and explicit states. */
html:is([data-design=video],[data-design=classic]) .office-home-recent .office-home-document-row .office-recent-document>span:last-child{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;text-align:left;gap:4px;flex:1;min-width:0}
html:is([data-design=video],[data-design=classic]) .office-home-recent .office-recent-document>span:last-child>:is(strong,small){grid-column:1;justify-self:stretch;min-width:0;max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
html:is([data-design=video],[data-design=classic]) .office-file-badge.file-kind-text>:is(svg,small){color:inherit!important}
html:is([data-design=video],[data-design=classic]) .office-employees :is(.office-document-status,.office-inspector-document):is(.state-unknown,.state-absent:not([data-indicator-key=personal_card])){--employee-state-bg:color-mix(in srgb,var(--subtle) 14%,var(--surface));--employee-state-ink:color-mix(in srgb,var(--ink) 88%,var(--subtle));--employee-state-border:color-mix(in srgb,var(--subtle) 45%,var(--line))}
html:is([data-design=video],[data-design=classic]) .office-document-legend>span:last-child{color:var(--ink)}
html:is([data-design=video],[data-design=classic]) .office-document-legend>span:last-child::before{background:var(--ink);box-shadow:0 0 0 2px color-mix(in srgb,var(--subtle) 16%,transparent)}
html:is([data-design=video],[data-design=classic]) .office-employee-assignment[data-assignment-state=assigned]{padding:6px 8px;border-radius:8px;background:var(--status-success-surface);color:var(--status-success-ink)}
html:is([data-design=video],[data-design=classic]) #audit-rows :is(th,td):first-child{min-width:4.5ch;width:1%;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
.office-help-control{display:inline-flex;vertical-align:middle;margin:4px 0;max-width:100%}
html[data-design=video] :is(.layout,dialog) .office-help-button{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;min-height:28px;margin:0;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--green);box-shadow:none;line-height:1}
html[data-design=video] :is(.layout,dialog) .office-help-button:is(:hover,:focus-visible){background:var(--accent-soft);color:var(--green)}
.office-help-button>svg{width:18px;height:18px;flex:none}
.office-help-popup{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:14px 16px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 8px 28px #0002;font-size:.86rem;line-height:1.6;z-index:1200;white-space:normal;overflow-wrap:anywhere}
.office-help-popup[hidden]{display:none!important}
.office-help-popup>strong{display:block;margin-bottom:6px;font-weight:600;color:var(--ink)}
.office-help-popup>p{margin:6px 0;color:var(--subtle)}
.office-help-popup>pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.office-help-popup>:last-child{margin-bottom:0}

/* Five coordinated palettes and five independent office interface finishes. */
.appearance-dialog [data-appearance-group=finish]>.appearance-options,.appearance-dialog [data-appearance-group=design]>.appearance-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:stretch}
.appearance-dialog :is([data-appearance-group=finish],[data-appearance-group=design]) .appearance-option{min-width:0;margin:0;display:flex}
.appearance-dialog :is([data-appearance-group=finish],[data-appearance-group=design]) .appearance-option>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:108px;height:100%;padding:10px 7px;text-align:center;box-sizing:border-box}
.appearance-dialog .appearance-option>span>strong{font-size:.82rem;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.appearance-choice-art{display:block;flex:none;width:45px;height:29px;border-radius:7px;border:1px solid #0002;background:linear-gradient(135deg,#f4f5fa 50%,#b6a1d2 50%);box-shadow:inset 0 0 0 3px #ffffff55}
[data-appearance-group=finish] [data-appearance-choice=coffee] .appearance-choice-art{background:linear-gradient(135deg,#ded8cf 50%,#b8612c 50%)}
[data-appearance-group=finish] [data-appearance-choice=sage] .appearance-choice-art{background:linear-gradient(135deg,#e4ebe5 50%,#397863 50%)}
[data-appearance-group=finish] [data-appearance-choice=blue] .appearance-choice-art{background:linear-gradient(135deg,#e4eaf1 50%,#386fb0 50%)}
[data-appearance-group=finish] [data-appearance-choice=porcelain] .appearance-choice-art{background:linear-gradient(135deg,#eee6e6 50%,#b24a71 50%)}
[data-appearance-group=design] .appearance-choice-art{background:linear-gradient(90deg,var(--accent-soft) 0 22%,transparent 22% 28%,var(--secondary) 28%);border-color:var(--line-strong);box-shadow:none}
[data-appearance-group=design] [data-appearance-choice=classic] .appearance-choice-art{border-radius:2px;border-top:5px solid var(--green)}
[data-appearance-group=design] [data-appearance-choice=flat] .appearance-choice-art{border-radius:0;background:repeating-linear-gradient(0deg,var(--line) 0 1px,var(--surface) 1px 7px)}
[data-appearance-group=design] [data-appearance-choice=glass] .appearance-choice-art{background:linear-gradient(135deg,var(--accent-soft),var(--surface));border-color:var(--green);box-shadow:0 3px 7px #0001}
[data-appearance-group=design] [data-appearance-choice=soft] .appearance-choice-art{border-radius:13px;background:var(--surface);box-shadow:0 3px 8px #0002}
html[data-design=video][data-interface-style=flat] :is(.panel,.object-card-section,.office-employee-card,.file-recent-block,.office-home-column>section,.dashboard-metric,.office-assignment){border-radius:5px!important;box-shadow:none!important;border-color:var(--line-strong)}
html[data-design=video][data-interface-style=flat] :is(button,input,select,textarea,.reference-picker-control){border-radius:5px}
html[data-design=video][data-interface-style=glass] .layout>.main{background:radial-gradient(ellipse at 85% 0,color-mix(in srgb,var(--accent-base) 9%,transparent),transparent 50%)}
html[data-design=video][data-interface-style=glass] :is(.panel,.object-card-section,.office-employee-card,.file-recent-block,.office-home-column>section,.dashboard-metric,.office-assignment){background:color-mix(in srgb,var(--surface) 91%,transparent);backdrop-filter:blur(14px);border-color:color-mix(in srgb,var(--line-strong) 75%,var(--surface));box-shadow:0 5px 20px #00000008}
html[data-design=video][data-interface-style=soft] :is(.panel,.object-card-section,.office-employee-card,.file-recent-block,.office-home-column>section,.dashboard-metric,.office-assignment){border-radius:23px!important;box-shadow:0 7px 20px #00000008;border-color:color-mix(in srgb,var(--line) 55%,var(--surface))}
html[data-design=video][data-interface-style=soft] :is(button,input,select,textarea,.reference-picker-control){border-radius:12px}
@media(max-width:650px){.appearance-dialog [data-appearance-group=finish]>.appearance-options,.appearance-dialog [data-appearance-group=design]>.appearance-options{grid-template-columns:repeat(2,minmax(0,1fr))}.appearance-dialog :is([data-appearance-group=finish],[data-appearance-group=design]) .appearance-option>span{min-height:98px}}
html[data-design=classic] :is(body,.layout,.main){background:var(--canvas);color:var(--ink)}
html[data-design=classic] .layout>.aside,html[data-design=classic] .layout>aside{background:var(--sidebar-bg);color:var(--sidebar-ink);border-color:var(--line)}
html[data-design=classic] .topbar{background:var(--header-bg);color:var(--header-ink);border-color:var(--line)}
html[data-design=classic] :is(.panel,.dashboard-metric,.dashboard-tool,.dashboard-panel,.object-card-section,.employee-card-table,dialog){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-design=classic] :is(input,select,textarea){background:var(--surface);color:var(--ink);border-color:var(--line-strong)}
html[data-design=classic] :is(.office-quick-actions,.office-document-shortcuts,.office-document-status,.office-inspector-document,.office-file-badge) .material-icon{color:inherit!important}

/* Russian dictation shares the active theme and keeps its preview editable. */
.dictation-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 12px;margin:5px 0 8px;font-size:0.857143rem;color:var(--green);background:var(--surface);border:1px solid var(--line);border-radius:9px;align-self:start;justify-self:start}
.dictation-panel{position:fixed;z-index:10050;bottom:18px;right:18px;width:min(440px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow:auto;box-sizing:border-box;padding:18px;display:grid;gap:14px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 54px #0003}
.dictation-panel [hidden]{display:none!important}.dictation-heading,.dictation-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.dictation-heading>button{margin-left:auto}.dictation-panel p{margin:0;line-height:1.5}.dictation-panel label{display:grid;gap:7px}.dictation-panel .checkbox-line{display:flex;align-items:center}.dictation-panel textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:110px}.dictation-panel [data-dictation-result]{display:grid;gap:12px}.dictation-panel details{font-size:0.857143rem;color:var(--muted)}.dictation-panel details p{margin-top:8px}.dictation-panel [data-dictation-stop]{color:var(--ink);border-color:var(--green)}
@media(max-width:480px){.dictation-panel{bottom:10px;right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:14px}}

/* Keep the chosen finish on the classic dashboard as well. */
html[data-design=classic] .layout>.main{background:var(--canvas)!important;color:var(--canvas-ink,var(--ink))}

/* Shared navigation mechanics: appearance must not change rail behavior. */
html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout{overflow-anchor:none}
@media(min-width:721px){
 html[data-design=classic][data-menu=vertical]{--sidebar-slot:55px;--sidebar-expanded-slot:var(--navigation-width,240px)}
 html[data-design=video][data-menu=vertical]{--sidebar-slot:var(--reference-rail-width);--sidebar-expanded-slot:calc(var(--navigation-width) + 24px)}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout{grid-template-columns:var(--sidebar-expanded-slot) minmax(0,1fr)}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical][data-sidebar=collapsed] .layout{grid-template-columns:var(--sidebar-slot) minmax(0,1fr)}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical][data-sidebar=collapsed]:has(.layout>aside:is(:hover,:focus-within,[data-pointer-peek])) .layout{grid-template-columns:var(--sidebar-expanded-slot) minmax(0,1fr)}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical][data-sidebar=collapsed]:has(.layout>aside:is(:hover,:focus-within,[data-pointer-peek])) .layout .topbar :is(.mobile-menu,.organization-switcher){opacity:1!important;visibility:visible!important;pointer-events:auto!important}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout>aside{overflow-anchor:none;overflow-x:hidden;scroll-behavior:auto}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout>aside :is(.nav,.navigation-group>.nav-group){height:40px;min-height:40px;flex-wrap:nowrap;overflow:hidden}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout>aside :is(.nav-label,.nav-group>span){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;flex-shrink:1}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout>aside .brand{height:68px;min-height:68px;overflow:hidden}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical] .layout>aside .brand>div{white-space:nowrap;flex-shrink:0}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical][data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]){padding-top:16px;padding-bottom:16px}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical][data-sidebar=collapsed] .layout>aside:not(:hover):not(:focus-within):not([data-pointer-peek]) .navigation-group:not(.nested){margin-top:12px;padding-top:8px}
}
@media(min-width:721px) and (prefers-reduced-motion:no-preference){
 html:is([data-design=classic],[data-design=video])[data-menu=vertical]:not([data-motion=reduce]) .layout{transition:grid-template-columns 320ms cubic-bezier(.2,.75,.25,1)}
 html:is([data-design=classic],[data-design=video])[data-menu=vertical]:not([data-motion=reduce]) .layout>aside{transition:width 320ms cubic-bezier(.2,.75,.25,1),box-shadow 200ms ease-out}
}

/* Settings retain the active palette in every interface style. */
html:is([data-design=classic],[data-design=video]) .appearance-dialog{max-height:calc(100dvh - 32px);overflow:hidden;display:flex;flex-direction:column}
html:is([data-design=classic],[data-design=video]) .appearance-dialog:not([open]){display:none}
html:is([data-design=classic],[data-design=video]) .appearance-dialog>.dialog-head{flex:none}
html:is([data-design=classic],[data-design=video]) .appearance-dialog>.dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--subtle) var(--surface);scrollbar-width:thin}
html:is([data-design=classic],[data-design=video]) .appearance-dialog :is(input[type=range],input[type=checkbox],input[type=radio]){accent-color:var(--green)}
html:is([data-design=classic],[data-design=video]) .appearance-dialog>.dialog-body::-webkit-scrollbar{width:8px}
html:is([data-design=classic],[data-design=video]) .appearance-dialog>.dialog-body::-webkit-scrollbar-track{background:var(--surface);border-radius:8px}
html:is([data-design=classic],[data-design=video]) .appearance-dialog>.dialog-body::-webkit-scrollbar-thumb{background:var(--subtle);border:2px solid var(--surface);border-radius:8px}
@media(forced-colors:active){html:is([data-design=classic],[data-design=video]) .appearance-dialog>.dialog-body{scrollbar-color:auto}}

/* One profile divider and an immediately readable presence list. */
.account-popover .account-heading{margin-bottom:0;border-bottom:1px solid var(--line)}
.account-popover .account-presence{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin:0 0 5px;padding:12px 8px}
.presence-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.857143rem;font-weight:600;color:var(--ink)}
.presence-heading>span:first-child{display:flex;align-items:center;gap:8px}
.presence-heading-dot{width:7px;height:7px;border-radius:50%;background:var(--subtle);flex:none}
.account-presence[data-presence-state=online] .presence-heading-dot{background:var(--status-success-ink)}
.presence-count{display:grid;place-items:center;min-width:25px;height:24px;padding:0 6px;background:var(--secondary);border-radius:7px;font-variant-numeric:tabular-nums}
.presence-people{margin-top:7px;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.presence-people>p{margin:0;padding:5px 0;line-height:1.5;color:var(--subtle);font-size:.785714rem}
.account-popover .presence-peer{display:flex;align-items:center;gap:10px;width:100%;padding:8px 4px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--ink);box-shadow:none}
.account-popover .presence-peer:hover{background:var(--secondary)}
.presence-peer-avatar{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:11px;background:var(--accent-soft);color:var(--green);font-weight:600}
.presence-peer-avatar .presence-dot{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border:2px solid var(--surface);margin:0}
.presence-peer-text{flex:1;min-width:0;overflow-wrap:anywhere;font-size:.857143rem;line-height:1.4}
.presence-peer-text small{display:block;color:var(--status-success-ink);font-size:.714286rem}
.presence-peer-chat{color:var(--subtle);font-size:1rem;flex:none}
/* END GENERATED VIDEO THEME */

/* Stable semantic navigation colors across all visual finishes. */
html[data-theme] .layout>aside a.nav[href="#tables"]{--nav-symbol:var(--status-success-ink)}
html[data-theme] .layout>aside a.nav:is([href="#file-library"],[href="#contracts"],[href="#employee_documents"],[href="#personnel_orders"],[href="#corporate_documents"],[href="#document_templates"],[href="#generated-documents"]){--nav-symbol:var(--status-info-ink)}
html[data-theme] .layout>aside a.nav:is([href="/maintenance.html"],[href="#company-settings"],[href="#backups"],[href="#admin-center"]){--nav-symbol:var(--subtle)}
html[data-theme] .layout>aside a.nav:is([href="#tables"],[href="#file-library"],[href="#contracts"],[href="#employee_documents"],[href="#personnel_orders"],[href="#corporate_documents"],[href="#document_templates"],[href="#generated-documents"],[href="/maintenance.html"],[href="#company-settings"],[href="#backups"],[href="#admin-center"])>.opora-icon{color:var(--nav-symbol)!important}

/* Summary rows: rounded hit areas, reserved counters and readable wrapping. */
html[data-theme] .office-operations>.dashboard-panel{border-radius:0!important;box-shadow:none!important}
html[data-theme] .office-operations #dashboard-attention{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:8px 12px;padding:6px 18px 18px}
html[data-theme] .office-operations :is(#dashboard-attention,#dashboard-operations) .dashboard-count-row{box-sizing:border-box;min-width:0;max-width:100%;border-radius:11px;padding:10px 12px;gap:10px;min-height:46px;line-height:1.45;transition:background-color .16s ease-out;overflow:visible}
html[data-theme] .office-operations #dashboard-attention .dashboard-count-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center}
html[data-theme] #dashboard-attention .dashboard-attention-symbol{margin:0;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;flex:none}
html[data-theme] .office-operations #dashboard-attention .dashboard-count-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
html[data-theme] .office-operations .dashboard-count-row>strong{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:26px;padding:2px 7px;box-sizing:border-box;background:var(--secondary);border-radius:8px;white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}
html[data-theme] .office-operations .dashboard-count-row.attention-active>strong{background:var(--status-warning-surface);color:var(--status-warning-ink)}
html[data-theme] .office-operations .dashboard-count-row:is(:hover,:focus-visible){background:var(--accent-soft);text-decoration:none}
html[data-theme] .office-operations .dashboard-count-row:focus-visible{outline:2px solid var(--green);outline-offset:1px}
html[data-theme] .office-operations #dashboard-operations{gap:5px 14px;padding-bottom:14px}
@media(max-width:600px){html[data-theme] .office-operations :is(#dashboard-attention,#dashboard-operations){grid-template-columns:minmax(0,1fr);padding-inline:12px}}
@media(prefers-reduced-motion:reduce){html[data-theme] .office-operations .dashboard-count-row{transition:none}}

html[data-theme] #dashboard-root .office-operations>section.panel{border-radius:0!important;box-shadow:none!important;border-left:0;border-right:0;background:transparent}
html[data-theme] #dashboard-root .office-operations .dashboard-count-row{font-size:.928571rem}

.opora-map-cluster{background:transparent;border:0}.opora-map-cluster>span{display:grid;place-items:center;width:28px;height:28px;background:var(--map-cluster-color);border:2px solid var(--surface);border-radius:50%;box-shadow:0 2px 7px #17231f40;color:#fff;font:600 11px/1 "Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.opora-map-cluster:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:50%}.opora-post-tooltip{max-height:220px;max-width:300px;overflow:auto}.map-cluster-zoom{margin-bottom:8px}

html[data-theme] .layout :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:var(--surface);color:var(--ink)}
html[data-theme] .layout .leaflet-popup-content-wrapper{border:1px solid var(--line);border-radius:13px;box-shadow:0 5px 22px #17231f30}
html[data-theme] .layout .leaflet-popup-content{margin:14px;font:inherit;font-size:.857143rem;line-height:1.5}
html[data-theme] .layout .leaflet-popup-content p{margin:10px 0 14px}
html[data-theme] .layout .leaflet-popup-scrolled{border-color:var(--line);scrollbar-width:thin;scrollbar-color:var(--subtle) var(--surface)}
html[data-theme] .layout .leaflet-container a.leaflet-popup-close-button{color:var(--subtle)}
html[data-theme] .layout .opora-post-tooltip{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:9px}

.opora-map-cluster.cluster-alarm{--map-cluster-color:#bf4141}.opora-map-cluster.cluster-warning{--map-cluster-color:#c36a12}.opora-map-cluster.cluster-normal{--map-cluster-color:#23834d}.opora-map-cluster.cluster-object{--map-cluster-color:#2467b5}.opora-map-cluster.cluster-inactive{--map-cluster-color:#707780}

/* A short entrance window belongs to navigation, not live counters or typing. */
@media(prefers-reduced-motion:no-preference){
 html:not([data-motion=reduce]) #content[data-page-enter=true]>:is(.page-head,.panel,.stats,.file-library,.admin-center-grid),
 html:not([data-motion=reduce]) #content[data-page-enter=true] #dashboard-root :is(.dashboard-top,.dashboard-metric,.office-home-column>section){animation:opora-page-arrive 650ms cubic-bezier(.2,.7,.2,1) both}
 html:not([data-motion=reduce]) #content[data-page-enter=true] :is(.dashboard-metric-title,.office-quick-actions>button,.admin-center-item)>.opora-icon{animation:opora-symbol-arrive 720ms cubic-bezier(.2,.7,.2,1) both}
 html:not([data-motion=reduce]) #content[data-page-enter=true] .dashboard-metrics>:nth-child(2){animation-delay:35ms}
 html:not([data-motion=reduce]) #content[data-page-enter=true] .dashboard-metrics>:nth-child(3){animation-delay:70ms}
 html:not([data-motion=reduce]) #content[data-page-enter=true] .dashboard-metrics>:nth-child(4){animation-delay:105ms}
 html:not([data-motion=reduce]) #content[data-page-enter=true] .dashboard-metrics>:nth-child(5){animation-delay:140ms}
 html:not([data-motion=reduce]) #content[data-page-enter=true] .dashboard-metrics>:nth-child(6){animation-delay:175ms}
 html:not([data-motion=reduce]) #content[data-page-enter=true]>.panel:nth-of-type(2){animation-delay:70ms}
 html[data-design=video]:not([data-motion=reduce]) .office-scroll-reveal{transition-duration:550ms,550ms}
 html:not([data-motion=reduce]) #content:not([data-page-enter=true])>:is(.page-head,.stats,.file-library,.panel){animation:none}
 @keyframes opora-page-arrive{from{opacity:.18;transform:translateY(9px)}to{opacity:1;transform:none}}
 @keyframes opora-symbol-arrive{from{opacity:.15;transform:translateY(4px) scale(.94)}to{opacity:1;transform:none}}
}
html[data-motion=reduce] #content[data-page-enter] *,html[data-motion=reduce] #content[data-page-enter]{animation:none!important}
@media(prefers-reduced-motion:reduce){#content[data-page-enter] *,#content[data-page-enter]{animation:none!important}}
@media print{#content[data-page-enter] *,#content[data-page-enter]{animation:none!important;opacity:1!important;transform:none!important}}

/* Reference choices: consistent chevrons and an inset, separately scrolling list. */
html[data-theme] .reference-combobox .reference-toggle{width:32px;min-width:32px;min-height:32px;margin-right:3px;border-radius:7px;font-size:14px;align-self:center}
html[data-theme] .reference-toggle>.opora-icon{width:15px;height:15px;margin:0;color:var(--subtle)}
html[data-theme] .reference-combobox .reference-toggle:hover{background:var(--accent-soft)!important;color:var(--green)}
html[data-theme] .reference-combobox:has(.reference-search[aria-expanded=true]) .reference-toggle>.opora-icon{transform:rotate(180deg)}
html[data-theme] .reference-popup:not([hidden]){display:flex;flex-direction:column;overflow:hidden;padding:6px;border-radius:13px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);box-shadow:0 10px 28px #201c1726}
html[data-theme] .reference-popup .reference-options{display:block;min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--subtle) var(--surface);padding:2px 4px 2px 2px}
html[data-theme] .reference-popup .reference-option{margin:2px 0;padding:10px 12px;border-radius:8px;line-height:1.5}
html[data-theme] .reference-popup .reference-option small{line-height:1.45;overflow-wrap:anywhere}
html[data-theme] .reference-popup .reference-status{flex:none;margin:5px 4px 0;padding:7px 8px 3px;border-top:1px solid var(--line);font-size:calc(var(--ui-font-size,14px)*11/14);color:var(--subtle)}
.reference-options::-webkit-scrollbar{width:8px}.reference-options::-webkit-scrollbar-track{background:var(--surface);border-radius:8px}.reference-options::-webkit-scrollbar-thumb{background:var(--subtle);border:2px solid var(--surface);border-radius:8px}.reference-options::-webkit-scrollbar-button{display:none;width:0;height:0}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduce]) .reference-toggle>.opora-icon{transition:transform 180ms ease-out}}

/* Unified workbook library and connection freshness. */
[data-library-workbooks]{margin-top:20px;min-width:0}
.library-books-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.library-books-head h2{margin:0;font-size:1rem}.library-books-head h2 small{color:var(--subtle);font-weight:400;margin-left:6px}
.library-books-tabs{display:flex;gap:4px;padding:3px;background:var(--surface-alt,var(--surface));border:1px solid var(--line);border-radius:10px}
.library-books-tabs button{min-height:32px;padding:5px 12px;border:0;border-radius:7px;background:transparent;box-shadow:none}
.library-books-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.library-workbook-card{display:grid;grid-template-columns:42px minmax(0,1fr);align-content:start;text-align:left;gap:4px 12px;min-width:0;padding:14px;border:1px solid var(--line);background:var(--surface);border-radius:12px}
.library-workbook-card>.office-file-badge{grid-row:1/4}.library-workbook-card strong,.library-workbook-card small{overflow-wrap:anywhere;min-width:0}.library-workbook-card small{color:var(--subtle)}
.connection-freshness{display:block;font-size:.85em;line-height:1.5}

.page-return{display:flex;align-items:center;margin:0 0 10px;min-width:0}
.page-return a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 8px;border-radius:8px;text-decoration:none;color:var(--subtle);font-size:.9rem;max-width:100%;box-sizing:border-box}
.page-return a:hover{background:var(--accent-soft);color:var(--green)}.page-return .opora-icon{width:16px;height:16px;transform:rotate(90deg);flex:none}.page-return span{overflow-wrap:anywhere}
.employee-documents-link{display:inline-flex;align-items:center;justify-content:center;gap:7px}.employee-documents-link .opora-icon{width:18px;height:18px;color:var(--status-info-ink)}

.office-document-label-preference{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:var(--subtle)}
.office-document-label-preference select{width:auto;min-width:95px;min-height:32px;padding:4px 28px 4px 9px;font-size:calc(var(--ui-font-size,14px)*12/14)}
.office-document-status [data-document-full]{display:none}
html[data-document-labels=full] .office-document-status [data-document-full]{display:inline}
html[data-document-labels=full] .office-document-status [data-document-short]{display:none}
html[data-document-labels=full] .office-employee-badges{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-document-labels=full] .office-employee-badges .office-document-status{width:100%;min-width:0;min-height:68px;align-content:center;padding:8px}
html[data-document-labels=full] .office-employee-badges .office-document-status small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35;font-size:calc(var(--ui-font-size,14px)*11/14);max-width:100%}
html:is([data-design=video],[data-design=classic]) .office-employees :is(.office-document-status,.office-inspector-document)[data-issue-state=pending]{--employee-state-bg:var(--status-warning-surface);--employee-state-ink:var(--status-warning-ink);--employee-state-border:var(--status-warning-border)}

.document-registration-state{display:block;width:fit-content;max-width:100%;padding:4px 7px;margin-top:5px;border:1px solid var(--status-warning-border);border-radius:7px;color:var(--status-warning-ink);background:var(--status-warning-surface);font-size:.85em;overflow-wrap:anywhere}
.document-registration-state small{display:block;color:inherit;margin-top:2px}.document-registration-state.registration-done{color:var(--status-success-ink);background:var(--status-success-surface);border-color:var(--status-success-border)}
.document-registration-state.registration-overdue{color:var(--status-danger-ink);background:var(--status-danger-surface);border-color:var(--status-danger-border)}

.event-registration-panel{margin:0 0 16px}.event-registration-panel h2{font-size:1rem;margin:0}.event-registration-item{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:10px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:8px;box-shadow:none}
.event-registration-item>span{min-width:0}.event-registration-item strong,.event-registration-item small{display:block;overflow-wrap:anywhere}.event-registration-item small{color:var(--subtle);margin-top:3px}.event-registration-item .document-registration-state small{color:inherit}.event-registration-item>.opora-icon{width:22px;height:22px;color:var(--status-warning-ink)}
@media(max-width:640px){.event-registration-item{grid-template-columns:24px minmax(0,1fr)}.event-registration-item>.document-registration-state{grid-column:2}}

.indicator-caption-editor{grid-column:1/-1;width:100%;min-width:0;margin:4px 0 10px}.indicator-caption-editor>summary{font-size:calc(var(--ui-font-size,14px)*12/14);color:var(--subtle);padding:6px 0;cursor:pointer}.indicator-caption-editor>div{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr);gap:10px;padding:12px;background:var(--secondary);border-radius:10px}.indicator-caption-editor label{min-width:0}.indicator-caption-editor input{width:100%;box-sizing:border-box}.indicator-caption-editor button{grid-column:1/-1;justify-self:start}.indicator-setting-example{border:1px solid var(--line)}
@media(max-width:640px){.indicator-caption-editor>div{grid-template-columns:minmax(0,1fr)}}

/* Registration deadlines retain their semantic status in every interface style. */
html[data-theme][data-design] .calendar-event[data-registration-state="overdue"],html[data-theme][data-design] .calendar-event[data-registration-state="overdue"]:hover{background:var(--status-danger-surface);border-color:var(--status-danger-border);border-left-color:var(--status-danger-ink);color:var(--status-danger-ink)}
html[data-theme][data-design] .calendar-event[data-registration-state="overdue"] .calendar-event-title{color:var(--status-danger-ink)}

/* The organization controls share one baseline in the classic layout too. */
html[data-design=classic] .topbar .organization-switcher{align-items:center;gap:8px;min-width:0}
html[data-design=classic] .topbar .organization-switcher>label{gap:0;min-width:0}
html[data-design=classic] .topbar .organization-switcher>label>span{display:none}
html[data-design=classic] .topbar .organization-switcher select{height:36px;padding:0 28px 0 10px;border:1px solid var(--line);border-radius:8px;line-height:normal}
html[data-design=classic] .topbar .organization-switcher #organization-add{width:36px;height:36px;min-width:36px;align-self:center;border:1px solid var(--line);border-radius:8px;box-sizing:border-box;background:var(--header-hover);color:var(--header-icon)}
html[data-design=classic] .topbar .organization-add-icon{width:18px;height:18px;display:block;flex:none}
@media(max-width:480px){html[data-design=classic] .topbar .organization-switcher{gap:5px}html[data-design=classic] .topbar .organization-switcher #organization-add{width:30px;min-width:30px}}

/* Wide tables keep the selected palette in every interface variant. */
html[data-theme] :is(.layout,dialog) .table-wrap{scrollbar-color:var(--subtle) var(--surface);scrollbar-width:thin}
html[data-theme] :is(.layout,dialog) .table-wrap::-webkit-scrollbar{width:9px;height:9px}
html[data-theme] :is(.layout,dialog) .table-wrap::-webkit-scrollbar-track{background:var(--surface);border-radius:8px}
html[data-theme] :is(.layout,dialog) .table-wrap::-webkit-scrollbar-thumb{background:var(--subtle);border:2px solid var(--surface);border-radius:8px}
html[data-theme] :is(.layout,dialog) .table-wrap::-webkit-scrollbar-thumb:hover{background:var(--green)}
html[data-theme] :is(.layout,dialog) .table-wrap::-webkit-scrollbar-corner{background:var(--surface)}
@media(forced-colors:active){html[data-theme] :is(.layout,dialog) .table-wrap{scrollbar-color:auto}}
html[data-design=classic] :is(dialog,.dialog-body){scrollbar-color:var(--subtle) var(--surface);scrollbar-width:thin}
html[data-design=classic] :is(dialog,.dialog-body)::-webkit-scrollbar{width:9px;height:9px}
html[data-design=classic] :is(dialog,.dialog-body)::-webkit-scrollbar-track{background:var(--surface)}
html[data-design=classic] :is(dialog,.dialog-body)::-webkit-scrollbar-thumb{background:var(--subtle);border:2px solid var(--surface);border-radius:8px}
@media(forced-colors:active){html[data-design=classic] :is(dialog,.dialog-body){scrollbar-color:auto}}

/* Per-user data access uses the same surfaces as the rest of Opora. */
.user-profile-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.user-profile-overview>div{display:grid;gap:5px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--secondary)}
.user-profile-overview span{font-size:calc(var(--ui-font-size,14px)*12/14);color:var(--subtle)}
.user-profile-overview strong{font-size:calc(var(--ui-font-size,14px)*23/14);line-height:1.2;font-variant-numeric:tabular-nums}
.user-profile-overview small{font-size:calc(var(--ui-font-size,14px)*10/14);color:var(--subtle)}
.user-data-profile fieldset{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:14px;min-width:0}
.user-data-profile legend{font-weight:600;padding:0 6px}
.user-profile-organizations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:210px;overflow:auto;gap:7px;margin-top:10px}
.user-profile-organizations label{margin:0;padding:7px;border-radius:8px;background:var(--secondary);overflow-wrap:anywhere}
.user-profile-presets{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 13px}
.user-profile-presets button{padding:7px 10px;font-size:calc(var(--ui-font-size,14px)*12/14)}
.user-profile-matrix{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:10px;margin-top:10px}
.user-profile-matrix thead{position:sticky;top:0;z-index:1;background:var(--surface)}
.user-profile-matrix :is(th,td):not(:first-child){text-align:center;min-width:70px}
.user-profile-matrix tr[hidden]{display:none}
#modal:has(.user-data-profile){width:min(960px,calc(100vw - 24px))}
@media(max-width:650px){.user-profile-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.user-profile-organizations{grid-template-columns:1fr}.user-profile-matrix{max-height:300px}}

#modal .user-profile-matrix input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;padding:0;margin:0;appearance:auto;accent-color:var(--green)}
#modal .user-profile-matrix td{overflow:visible;text-overflow:clip;vertical-align:middle}
