/* CPGCBL EMD R11.3 — Four industrial themes, inspired by approved dashboard concepts.
 * Pages-only. No API calls, D1 writes, R2 changes or permissions modifications.
 * Loaded LAST after R11.2 to replace its three old palettes and visual rules.
 */
:root{--r113-radius:12px;--r113-speed:180ms;--r113-ease:cubic-bezier(.22,.7,.25,1)}
body.r107-ui[data-theme="light"],html[data-theme="light"]{
 --bg:#eff7fd!important;--panel:#fff!important;--panel2:#f7fbff!important;--panel3:#e5f3ff!important;
 --side:#f3faff!important;--line:#d2e4f3!important;--text:#0d2947!important;--muted:#53718e!important;
 --accent:#0878e4!important;--accent2:#0086b6!important;--good:#07977b!important;--warn:#bd7600!important;--bad:#d33d51!important;
 --r109-side:#f1faff!important;--r109-side2:#e3f2fd!important;--r109-hero:#fff!important;
 --shadow:0 7px 24px #24669d16!important;--r113-heading:#0c2c4f;--r113-ink:#193854;--r113-head:#f8fcff;
 --r113-surface:#ffffff;--r113-soft:#f0f8ff;--r113-edge:#d2e4f3;--r113-glow:#0b8ce128;
 --r113-side-ink:#173d60;--r113-side-sub:#557493;--r113-side-active:#d9ecff;
 --r113-field:#f7fbff;--r113-table:#eaf5ff;--r113-plant:url('r113-plant-a.webp');--r113-main:#f4f9ff;
}
body.r107-ui[data-theme="dark"],html[data-theme="dark"]{
 --bg:#04121e!important;--panel:#091e30!important;--panel2:#102b40!important;--panel3:#173850!important;
 --side:#030f1a!important;--line:#1c4762!important;--text:#eefaff!important;--muted:#b0cedd!important;
 --accent:#0ad9ed!important;--accent2:#53b8ff!important;--good:#23e1ac!important;--warn:#ffbb46!important;--bad:#ff6b81!important;
 --r109-side:#020e18!important;--r109-side2:#081f31!important;--r109-hero:#0b283d!important;
 --shadow:0 12px 30px #0009!important;--r113-heading:#f2fcff;--r113-ink:#edfbff;--r113-head:#071a2b;
 --r113-surface:#0a2335;--r113-soft:#112d43;--r113-edge:#1b5675;--r113-glow:#00dafa32;
 --r113-side-ink:#f2faff;--r113-side-sub:#a1c8dd;--r113-side-active:#123f55;
 --r113-field:#0b273a;--r113-table:#14394f;--r113-plant:url('r113-plant-b.webp');--r113-main:#04121e;
}
body.r107-ui[data-theme="hybrid"],html[data-theme="hybrid"]{
 --bg:#eef5fb!important;--panel:#fff!important;--panel2:#f6faff!important;--panel3:#e7f2ff!important;
 --side:#0b2545!important;--line:#d5e3f0!important;--text:#102c4d!important;--muted:#536d87!important;
 --accent:#166de0!important;--accent2:#02a8c4!important;--good:#0c9c84!important;--warn:#bc7600!important;--bad:#d64d58!important;
 --r109-side:#091f3a!important;--r109-side2:#12395d!important;--r109-hero:#fafdff!important;
 --shadow:0 7px 22px #1a4f8020!important;--r113-heading:#0e3158;--r113-ink:#173a62;--r113-head:#102b49;
 --r113-surface:#fff;--r113-soft:#f5faff;--r113-edge:#d2e4f4;--r113-glow:#2489e627;
 --r113-side-ink:#f4faff;--r113-side-sub:#a8c8df;--r113-side-active:#164776;
 --r113-field:#f8fbff;--r113-table:#eaf3fe;--r113-plant:url('r113-plant-c.webp');--r113-main:#edf5fb;
}
body.r107-ui[data-theme="slate"],html[data-theme="slate"]{
 --bg:#0b202b!important;--panel:#12303d!important;--panel2:#193d4c!important;--panel3:#235462!important;
 --side:#081923!important;--line:#34606d!important;--text:#effdfa!important;--muted:#b9d5d5!important;
 --accent:#18d4c6!important;--accent2:#60c5e9!important;--good:#44e3b1!important;--warn:#ffbe6b!important;--bad:#ff8898!important;
 --r109-side:#071923!important;--r109-side2:#103443!important;--r109-hero:#113443!important;
 --shadow:0 10px 28px #0006!important;--r113-heading:#f2fcfc;--r113-ink:#edfbfa;--r113-head:#0d2937;
 --r113-surface:#113341;--r113-soft:#1b4552;--r113-edge:#366773;--r113-glow:#17d4c52c;
 --r113-side-ink:#f2fffd;--r113-side-sub:#b4d7d6;--r113-side-active:#15555b;
 --r113-field:#113344;--r113-table:#1d4555;--r113-plant:url('r113-plant-d.webp');--r113-main:#0b202b;
}
/* The top-level shell is persistent. Distinct navigation and background per theme. */
body.r107-ui{font-family:Inter,'Segoe UI',system-ui,Arial,sans-serif!important;letter-spacing:-.006em;background:var(--r113-main)!important;color:var(--text)!important}
body.r107-ui .main{background:var(--r113-main)!important;color:var(--text)!important}
body.r107-ui .side{background:linear-gradient(170deg,var(--r109-side),var(--r109-side2))!important;color:var(--r113-side-ink)!important;border-right:1px solid var(--r113-edge)!important;box-shadow:4px 0 18px #02192f0d!important}
body.r107-ui .side :is(.logo b,.navbtn,.side-foot,.side-foot span){color:var(--r113-side-ink)!important}
body.r107-ui .side :is(.logo small,.navgroup,.side-foot .mode-line){color:var(--r113-side-sub)!important}
body.r107-ui .side .navbtn{border:1px solid transparent!important;border-radius:10px!important;min-height:39px!important;transition:background var(--r113-speed),box-shadow var(--r113-speed),border-color var(--r113-speed)!important}
body.r107-ui .side .navbtn:hover{background:color-mix(in srgb,var(--accent) 14%,transparent)!important}
body.r107-ui .side .navbtn.active{background:var(--r113-side-active)!important;border-color:color-mix(in srgb,var(--accent) 42%,transparent)!important;box-shadow:inset 3px 0 var(--accent),0 3px 14px var(--r113-glow)!important;color:var(--r113-side-ink)!important}
body.r107-ui .brandmark{background:linear-gradient(140deg,#00c6df,#0766e1)!important;color:white!important;box-shadow:0 4px 15px #008bc536!important;border:1px solid #ffffff35!important}
body.r107-ui .side-foot{position:relative;isolation:isolate;padding:10px 7px 3px!important;line-height:1.5}
body.r107-ui .side-foot::before{content:"";display:block;height:86px;margin:-3px -7px 8px;background-image:linear-gradient(0deg,var(--r109-side),transparent 65%),var(--r113-plant);background-size:cover;background-position:center 55%;opacity:.85;pointer-events:none;border-radius:10px 10px 2px 2px}
body.r107-ui .sidebtn{display:block!important;text-align:left!important;font-size:12px!important;line-height:1.23!important;margin-top:8px!important;padding:8px 10px!important;min-height:45px!important;background:color-mix(in srgb,var(--accent) 12%,var(--r109-side))!important;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--r113-edge))!important;color:var(--r113-side-ink)!important}
body.r107-ui .sidebtn .r113-side-title{display:block;font-weight:900;font-size:12px}
body.r107-ui .sidebtn .r113-side-sub{display:block;font-size:9px;opacity:.78;line-height:1.5;margin-top:1px}
body.r107-ui[data-theme="light"] .side-foot::before{opacity:.9}
body.r107-ui .top{background:var(--r113-head)!important;border-color:var(--r113-edge)!important;box-shadow:0 3px 13px #041c3b10!important;color:var(--text)!important;backdrop-filter:saturate(1.2) blur(12px)!important}
body.r107-ui[data-theme="hybrid"] .top{background:#102a49!important;color:#f4fbff!important;border-color:#315677!important}
body.r107-ui[data-theme="hybrid"] .top :is(.title,small,.profile-copy b,.profile-caret){color:#eefaff!important}
body.r107-ui[data-theme="dark"] .top,body.r107-ui[data-theme="slate"] .top{color:#f2fdff!important}
body.r107-ui .top :is(.btn,.profile-chip,.freshness){border:1px solid var(--r113-edge)!important;border-radius:9px!important;background:color-mix(in srgb,var(--r113-surface) 92%,transparent)!important;color:var(--text)!important;box-shadow:none!important}
body.r107-ui[data-theme="hybrid"] .top :is(.btn,.profile-chip,.freshness){background:#163955!important;border-color:#325875!important;color:#f2f9ff!important}
body.r107-ui .top .btn.warn{background:color-mix(in srgb,var(--warn) 15%,var(--panel))!important;border-color:color-mix(in srgb,var(--warn) 48%,var(--line))!important;color:var(--text)!important}
body.r107-ui[data-theme="hybrid"] .top .btn.warn{background:#403822!important;color:#ffe8b4!important;border-color:#847039!important}
body.r107-ui .profile-avatar{border-radius:50%!important;border:2px solid color-mix(in srgb,var(--accent) 43%,var(--line))!important;color:#fff!important}
body.r107-ui .top .title{font-weight:850!important;font-size:14px!important;letter-spacing:-.018em!important}
/* Premium information hierarchy: cards, filters, reports, registers, all spare modules. */
body.r107-ui #content{color:var(--text)!important;background:transparent!important}
body.r107-ui #content :is(.card,.r5-card,.r79-panel-card,.r5-status-card,.r79-bearing-hero,.r4-detail-card){
 background:var(--r113-surface)!important;color:var(--text)!important;border:1px solid var(--r113-edge)!important;
 border-radius:var(--r113-radius)!important;box-shadow:0 5px 19px var(--r113-glow)!important;
}
body.r107-ui #content :is(.card,.r5-card,.r79-panel-card) :is(h2,h3,.section-title,.r5-card-head h3){color:var(--r113-heading)!important;letter-spacing:-.015em!important}
body.r107-ui #content :is(.card,.r5-card,.r79-panel-card) :is(p,.muted,small){color:var(--muted)!important}
body.r107-ui #content :is(.r5-tabs,.r4-tabs,.modules,.tabs,.r5-filter,.r4-filterbar,.toolbar,.work-toolbar,.r79-filterbar){
 background:var(--r113-surface)!important;border-color:var(--r113-edge)!important;color:var(--text)!important;border-radius:11px!important;
 box-shadow:0 4px 15px var(--r113-glow)!important;
}
body.r107-ui #content :is(.r5-tabs,.r4-tabs,.modules,.tabs) :is(button,.tab,.module){color:var(--muted)!important;transition:background var(--r113-speed),color var(--r113-speed),box-shadow var(--r113-speed)!important}
body.r107-ui #content :is(.r5-tabs,.r4-tabs,.modules,.tabs) :is(button.active,.tab.active,.module.active){
 background:color-mix(in srgb,var(--accent) 13%,var(--panel))!important;color:var(--text)!important;
 box-shadow:inset 0 -2px 0 var(--accent)!important;
}
body.r107-ui #content :is(input:not([type=checkbox]),select,textarea,.r112-editor){background:var(--r113-field)!important;color:var(--text)!important;border-color:var(--r113-edge)!important;border-radius:8px!important}
body.r107-ui #content :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:.85!important}
body.r107-ui #content :is(input,select,textarea,.r112-editor):focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 50%,transparent)!important;outline-offset:1px!important}
body.r107-ui #content :is(.r5-table,.table,.r79-table,.r4-table) thead th{background:var(--r113-table)!important;color:var(--r113-ink)!important;border-color:var(--r113-edge)!important;font-size:10.8px!important;letter-spacing:.012em!important}
body.r107-ui #content :is(.r5-table,.table,.r79-table,.r4-table) tbody :is(td,th){background:var(--r113-surface)!important;color:var(--text)!important;border-color:var(--r113-edge)!important;font-size:11.7px!important;padding:7px 9px!important;line-height:1.34!important}
body.r107-ui #content :is(.r5-table,.table,.r79-table,.r4-table) tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--r113-table) 48%,var(--r113-surface))!important}
body.r107-ui #content :is(.r5-table,.table,.r79-table,.r4-table) tbody tr:hover td{background:color-mix(in srgb,var(--accent) 10%,var(--panel))!important}
body.r107-ui #content :is(.btn.primary,.btn.good,button.primary){background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent2) 60%,var(--accent)))!important;color:var(--r113-primary-ink,#fff)!important;border-color:transparent!important;box-shadow:0 3px 12px var(--r113-glow)!important}
body.r107-ui[data-theme="dark"],body.r107-ui[data-theme="slate"]{--r113-primary-ink:#021c26}
body.r107-ui .top .btn:hover,body.r107-ui #content .btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero){
 background:linear-gradient(104deg,var(--r113-surface) 0%,var(--r113-surface) 56%,color-mix(in srgb,var(--accent) 14%,var(--r113-surface)))!important;
 min-height:105px!important;padding:14px 18px!important;border-radius:13px!important;
 border:1px solid var(--r113-edge)!important;box-shadow:0 5px 19px var(--r113-glow)!important;isolation:isolate!important;overflow:hidden!important;
}
body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero)::after{
 content:""!important;position:absolute!important;inset:0 0 0 auto!important;display:block!important;
 height:100%!important;width:43%!important;border-radius:0!important;pointer-events:none!important;
 background-image:linear-gradient(90deg,var(--r113-surface),transparent 30%),var(--r113-plant)!important;
 background-position:center,right 57%!important;background-size:cover,cover!important;
 opacity:.96!important;mask-image:linear-gradient(90deg,transparent 0%,#000 29%)!important;z-index:-1!important;
}
body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero)::before{background:linear-gradient(var(--accent),var(--accent2))!important;width:3px!important;border-radius:0!important;box-shadow:none!important}
body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero) h1{color:var(--r113-heading)!important;font-weight:870!important;font-size:clamp(22px,2.1vw,29px)!important;line-height:1.12!important;letter-spacing:-.03em!important;text-shadow:none!important}
body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero) p{color:var(--muted)!important;font-size:11.6px!important;max-width:560px!important}
body.r107-ui #content :is(.r5-kpi,.r4-kpi,.parity-kpi,.kpi,.r79-kpi){
 border:1px solid var(--r113-edge)!important;background:var(--r113-surface)!important;color:var(--text)!important;
 border-radius:11px!important;box-shadow:0 4px 14px var(--r113-glow)!important;transition:transform var(--r113-speed) var(--r113-ease),box-shadow var(--r113-speed)!important;
}
body.r107-ui #content :is(.r5-kpi,.r4-kpi,.parity-kpi,.kpi)::after{background:linear-gradient(90deg,var(--accent),var(--accent2))!important;height:2px!important;opacity:.95!important}
body.r107-ui #content :is(.r5-kpi,.r4-kpi,.parity-kpi,.kpi):hover{transform:translateY(-2px)!important;box-shadow:0 7px 22px var(--r113-glow)!important}
body.r107-ui #content :is(.r5-kpi,.r4-kpi,.parity-kpi,.kpi) :is(.num,b){color:var(--r113-heading)!important;font-variant-numeric:tabular-nums!important;font-weight:900!important}
/* A/B/C/D are intentionally visually DIFFERENT, not just four colors of the same background. */
body.r107-ui[data-theme="dark"] #content :is(.r5-card,.card,.r5-kpi,.parity-kpi,.r79-panel-card){box-shadow:0 0 0 1px #16bfe51b,0 7px 21px #0008!important}
body.r107-ui[data-theme="dark"] #content :is(.r5-kpi,.parity-kpi){border-top:2px solid var(--accent)!important}
body.r107-ui[data-theme="slate"] #content :is(.r5-card,.card,.r5-kpi,.parity-kpi,.r79-panel-card){background:linear-gradient(155deg,#153746,#0e2b3a)!important;border-color:#336875!important}
body.r107-ui[data-theme="slate"] #content :is(.r5-kpi,.parity-kpi){border-top:2px solid #12ccbf!important}
body.r107-ui[data-theme="hybrid"] #content :is(.r5-card:has(.r5-chart),.card:has(canvas)){background:#102f4e!important;color:#f5fbff!important;border-color:#315b82!important}
body.r107-ui[data-theme="hybrid"] #content :is(.r5-card:has(.r5-chart),.card:has(canvas)) :is(h3,p,small,span){color:#e7f4ff!important}
body.r107-ui[data-theme="hybrid"] #content :is(.r5-card,.card) .r5-status-card{background:#f3f8ff!important}
/* Daily Work: screenshot-inspired information cards and structured command filter. */
body.r107-ui #content .daily-kpis{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;margin:8px 0!important}
body.r107-ui #content .daily-kpis .parity-kpi{
 display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;
 align-content:center!important;column-gap:9px!important;min-height:79px!important;padding:9px 8px!important;text-align:left!important;
 border-top:2px solid var(--r113-icon,var(--accent))!important;position:relative!important;
}
body.r107-ui #content .daily-kpis .parity-kpi .r113-kpi-icon{grid-area:1/1/4/2!important;align-self:center!important;width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border:1px solid color-mix(in srgb,var(--r113-icon,var(--accent)) 32%,transparent)!important;border-radius:10px!important;color:var(--r113-icon,var(--accent))!important;background:color-mix(in srgb,var(--r113-icon,var(--accent)) 13%,var(--panel))!important}
body.r107-ui #content .daily-kpis .parity-kpi .r113-kpi-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.r107-ui #content .daily-kpis .parity-kpi .num{grid-column:2!important;grid-row:1!important;font-size:22px!important;line-height:1!important;margin:0!important}
body.r107-ui #content .daily-kpis .parity-kpi .label{grid-column:2!important;grid-row:2!important;font-size:10.5px!important;font-weight:850!important;margin-top:3px!important;text-transform:none!important;color:var(--text)!important;line-height:1.15!important}
body.r107-ui #content .daily-kpis .parity-kpi .sub{grid-column:2!important;grid-row:3!important;font-size:9px!important;line-height:1.2!important;margin-top:2px!important;color:var(--muted)!important}
body.r107-ui #content .daily-kpis .parity-kpi:nth-child(2){--r113-icon:var(--good)}
body.r107-ui #content .daily-kpis .parity-kpi:nth-child(4),body.r107-ui #content .daily-kpis .parity-kpi:nth-child(7){--r113-icon:var(--bad)}
body.r107-ui #content .daily-kpis .parity-kpi:nth-child(5){--r113-icon:#9a69ed}
body.r107-ui #content .daily-kpis .parity-kpi:nth-child(8){--r113-icon:#e2a528}
body.r107-ui #content .daily-kpis .parity-kpi:nth-child(9),body.r107-ui #content .daily-kpis .parity-kpi:nth-child(10){--r113-icon:#9277ec}
body.r107-ui #content .daily-kpis .parity-kpi:nth-child(11){--r113-icon:#00a7b2}
body.r107-ui #content .work-toolbar{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:7px!important;padding:9px!important;align-items:stretch!important;top:60px!important}
body.r107-ui #content .work-toolbar :is(#wfMonth,#wfDay,#wfUnit,#wfArea,#wfStatus,#wfPriority,#wfMaint,#wfVerify){grid-column:span 3!important;min-width:0!important;width:100%!important;min-height:36px!important}
body.r107-ui #content .work-toolbar .r112-search{grid-column:span 10!important;min-width:0!important;width:100%!important}
body.r107-ui #content .work-toolbar #wfClear{grid-column:span 2!important;min-height:35px!important}
body.r107-ui #content .work-toolbar .r112-editor{width:100%!important;min-height:35px!important;font-size:12px!important}
body.r107-ui #content .daily-insights{gap:9px!important;margin:7px 0 10px!important}
body.r107-ui #content .daily-insights .card{min-height:0!important;padding:11px!important}
body.r107-ui #content .daily-insights .mini-stat{border:1px solid var(--r113-edge)!important;background:var(--r113-soft)!important;border-radius:9px!important}
body.r107-ui #content .daily-insights .mini-stat b{font-size:19px!important;color:var(--r113-heading)!important}
/* Cards throughout the rest of the application remain compact and consistent. */
body.r107-ui .drawer{backdrop-filter:blur(8px)!important;background:#04172685!important}
body.r107-ui .drawerpanel,body.r107-ui .drawerbody{background:var(--r113-main)!important;color:var(--text)!important}
body.r107-ui .drawerhead{background:var(--r113-surface)!important;color:var(--text)!important;border-bottom:1px solid var(--r113-edge)!important}
body.r107-ui .drawerbody :is(.r5-drawer-section,.r4-detail-card,.r79-media-card,.r79-spec-card,.card,.r5-card,.r111-spec-field){background:var(--r113-surface)!important;color:var(--text)!important;border-color:var(--r113-edge)!important}
body.r107-ui .drawerbody :is(.r5-detail,.tech-field,.detail,.r79-dim-grid>div){background:var(--r113-soft)!important;color:var(--text)!important;border-color:var(--r113-edge)!important;overflow-wrap:anywhere}
body.r107-ui .drawerbody :is(h3,.section-accent){color:var(--r113-heading)!important}
/* The four real previews, not just gradient stripes. */
#themeBackdrop{background:#001222ad!important;backdrop-filter:blur(13px)!important;-webkit-backdrop-filter:blur(13px)!important}
#themeBackdrop .thememodal{width:min(890px,96vw)!important;max-height:min(700px,94vh)!important;background:linear-gradient(145deg,#09243b,#031726)!important;border:1px solid #376e92!important;box-shadow:0 30px 110px #000a!important;color:#f6fbff!important;overflow:auto!important}
#themeBackdrop .modalhead{background:#09243b!important;border-color:#255473!important;padding:15px 18px!important;gap:8px!important}
#themeBackdrop .modalhead b{font-size:20px!important;letter-spacing:-.02em!important;color:#fff!important}
#themeBackdrop .modalhead small{display:block;font-size:11px!important;color:#a2c7de!important}
#themeBackdrop .modalbody{padding:16px!important}
#themeBackdrop .theme-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
#themeBackdrop .r113-theme-choice{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;min-width:0!important;padding:9px!important;border:1px solid #315f7e!important;border-radius:13px!important;background:#0b2b43!important;color:#eefbff!important;box-shadow:inset 0 1px 0 #ffffff09!important;outline:none!important;transition:transform .17s,border-color .17s,box-shadow .17s!important}
#themeBackdrop .r113-theme-choice:hover{transform:translateY(-2px)!important;border-color:#67d3ef!important}
#themeBackdrop .r113-theme-choice.active{border:2px solid #20e1f5!important;padding:8px!important;box-shadow:0 0 0 2px #05bedc1d,0 6px 24px #05d4ed16!important}
#themeBackdrop .r113-theme-choice:focus-visible{outline:3px solid #67ddff!important;outline-offset:3px!important}
#themeBackdrop .r113-theme-title{display:flex;justify-content:space-between;align-items:flex-start;gap:4px}
#themeBackdrop .r113-theme-title b{display:block;font-size:12px!important;line-height:1.3!important;color:#fff!important;overflow-wrap:anywhere}
#themeBackdrop .r113-theme-title .r113-choice-check{flex:0 0 auto;font-size:15px;color:#b8dcf0}
#themeBackdrop .r113-theme-choice.active .r113-choice-check{color:#32f6eb}
#themeBackdrop .r113-theme-choice small{font-size:10.5px!important;line-height:1.4!important;color:#b2d1e2!important;min-height:28px}
#themeBackdrop .r113-preview{display:flex;height:95px;width:100%;margin-bottom:3px;overflow:hidden;border:1px solid #779db656;border-radius:8px;background:var(--mini-bg);color:var(--mini-ink)}
#themeBackdrop .r113-pv-light{--mini-bg:#f3f8ff;--mini-surface:#fff;--mini-ink:#1b5391;--mini-accent:#0879ec;--mini-line:#d8e6f3;background-image:linear-gradient(#f9fcff,#e6f3ff)}
#themeBackdrop .r113-pv-dark{--mini-bg:#021422;--mini-surface:#0e2a42;--mini-ink:#75ddf1;--mini-accent:#06ddeb;--mini-line:#225774}
#themeBackdrop .r113-pv-hybrid{--mini-bg:#eaf5ff;--mini-surface:#fff;--mini-ink:#215a9c;--mini-accent:#147ae0;--mini-line:#cadeee}
#themeBackdrop .r113-pv-slate{--mini-bg:#0b2834;--mini-surface:#123b49;--mini-ink:#84e4df;--mini-accent:#17d6c6;--mini-line:#386975}
#themeBackdrop .r113-mini-side{width:19%;padding:6px 3px;background:color-mix(in srgb,var(--mini-accent) 18%,var(--mini-bg));display:flex;flex-direction:column;gap:5px}
#themeBackdrop .r113-mini-side span{width:13px;height:11px;background:var(--mini-accent);border-radius:3px;margin:0 auto 4px}
#themeBackdrop .r113-mini-side i{height:3px;background:color-mix(in srgb,var(--mini-ink) 55%,transparent);border-radius:3px}
#themeBackdrop .r113-mini-app{flex:1;min-width:0;padding:5px;display:grid;gap:4px;grid-template-rows:8px 25px 16px 1fr}
#themeBackdrop .r113-mini-head{border-radius:3px;background:var(--mini-surface);border:1px solid var(--mini-line)}
#themeBackdrop .r113-mini-hero{border-radius:3px;background-image:linear-gradient(90deg,var(--mini-surface),transparent 35%),var(--r113-mini-plant);background-size:cover;background-position:center;border:1px solid var(--mini-line)}
#themeBackdrop .r113-pv-light{--r113-mini-plant:url('r113-plant-a.webp')}#themeBackdrop .r113-pv-dark{--r113-mini-plant:url('r113-plant-b.webp')}#themeBackdrop .r113-pv-hybrid{--r113-mini-plant:url('r113-plant-c.webp')}#themeBackdrop .r113-pv-slate{--r113-mini-plant:url('r113-plant-d.webp')}
#themeBackdrop .r113-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}#themeBackdrop .r113-mini-stats i{border:1px solid var(--mini-line);border-top:2px solid var(--mini-accent);border-radius:2px;background:var(--mini-surface)}
#themeBackdrop .r113-mini-table{display:grid;gap:3px}#themeBackdrop .r113-mini-table i{height:2px;border-radius:1px;background:var(--mini-line)}
/* Mobile + reduced-motion safe: keep controls reachable and text legible. */
@media(max-width:1200px){body.r107-ui #content .daily-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.r107-ui #content .r5-hero::after{width:37%!important}}
@media(max-width:940px){body.r107-ui #content .daily-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.r107-ui #content .work-toolbar :is(#wfMonth,#wfDay,#wfUnit,#wfArea,#wfStatus,#wfPriority,#wfMaint,#wfVerify){grid-column:span 6!important}body.r107-ui #content .work-toolbar .r112-search{grid-column:span 9!important}body.r107-ui #content .work-toolbar #wfClear{grid-column:span 3!important}#themeBackdrop .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body.r107-ui .side-foot::before{height:50px}body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero)::after{opacity:.32!important;width:50%!important}body.r107-ui #content .daily-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.r107-ui #content .daily-kpis .parity-kpi{min-height:75px!important}body.r107-ui #content .work-toolbar{top:57px!important}}
@media(max-width:520px){body.r107-ui #content .work-toolbar :is(#wfMonth,#wfDay,#wfUnit,#wfArea,#wfStatus,#wfPriority,#wfMaint,#wfVerify){grid-column:span 12!important}body.r107-ui #content .work-toolbar .r112-search{grid-column:span 12!important}body.r107-ui #content .work-toolbar #wfClear{grid-column:span 12!important}#themeBackdrop .modalbody{padding:10px!important}#themeBackdrop .r113-theme-choice{padding:7px!important}#themeBackdrop .r113-theme-title b{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){body.r107-ui .drawerpanel,body.r107-ui .side .navbtn,body.r107-ui #content :is(.card,.r5-kpi,.parity-kpi),#themeBackdrop .r113-theme-choice{animation:none!important;transition:none!important}}
@media print{body.r107-ui .side-foot::before,body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero)::after{display:none!important}body.r107-ui #content :is(.r5-card,.card,.r5-kpi,.parity-kpi){box-shadow:none!important}}
/* Decorative industrial context, preserving the original live-data source caption. */
body.r107-ui #content .daily-hero .r113-dashboard-kicker{display:block;position:relative;z-index:2;font-size:9px;font-weight:900;letter-spacing:.15em;color:var(--accent)!important;margin:0 0 5px!important}
body.r107-ui #content .daily-hero>div:first-child{position:relative;z-index:2;max-width:min(70%,650px)}
body.r107-ui #content .daily-hero .daily-actions{z-index:3}
@media(max-width:760px){body.r107-ui #content .daily-hero>div:first-child{max-width:100%}}
