/* Theme tokens are shared by every panel section and dialog. */
:root{color-scheme:light;--bg:#f4f6f9;--surface:#fff;--raised:#f8fafc;--border:#e2e8ef;--ink:#192d43;--text:#192d43;--muted:#65768b;--accent:#087f83;--accent-soft:#e6f4f2;--on-accent:#fff;--success:#14745e;--success-bg:#e5f5ed;--danger:#b33454;--danger-bg:#fff0f3;--warning:#956017;--warning-bg:#fff5df;--violet:#7256b2;--violet-bg:#f0ecfb;--shadow:0 3px 18px #1b344306;--log:#142333;--log-text:#d2e1ee}
:root[data-theme=dark]{color-scheme:dark;--bg:#0d1622;--surface:#142131;--raised:#192a3c;--border:#2a3b4e;--ink:#e6eef7;--text:#e6eef7;--muted:#a5b6ca;--accent:#62d6c8;--accent-soft:#183c3d;--on-accent:#0a282a;--success:#7ce1b5;--success-bg:#153d32;--danger:#ffacc1;--danger-bg:#402334;--warning:#f3cf89;--warning-bg:#3b3223;--violet:#c3b0f3;--violet-bg:#302b47;--shadow:0 4px 20px #00000012;--log:#0a131e;--log-text:#c3d9e9}
html,body{background:var(--bg);color:var(--text)}body{background:var(--bg);font-family:'Segoe UI',Arial,sans-serif}a{color:var(--accent)}
aside{background:var(--surface);border-color:var(--border);color:var(--muted);width:232px;padding:28px 14px}.brand{color:var(--text);margin-bottom:30px}.brand span{font-size:16px;font-weight:700}.brand-mark{background:var(--accent);color:var(--on-accent);box-shadow:none;border-radius:12px}.aside-foot{color:var(--muted);border-color:var(--border);font-size:12px}
main{margin-left:232px;width:calc(100% - 232px);padding:30px 36px;max-width:1800px}header{margin-bottom:26px}h1{font-size:27px;letter-spacing:-.8px;font-weight:720;margin:0}h2{font-size:18px;letter-spacing:-.3px;color:var(--text)}h3{color:var(--text)}
nav button{color:var(--muted);border-radius:12px;min-height:46px}nav button:hover{background:var(--raised)}nav button.active{background:var(--accent-soft);color:var(--accent)}nav button.active svg{stroke-width:2}
button{background:var(--raised);color:var(--text);border:1px solid var(--border);border-radius:11px;font-weight:600;box-shadow:none;min-height:44px}button:hover{filter:none;background:var(--accent-soft);border-color:var(--accent)}button.primary,.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:none}button.primary:hover{filter:brightness(.94)}button.danger,.danger{background:var(--danger-bg);color:var(--danger);border-color:transparent}.quiet{background:transparent;border-color:transparent}.mode-switch,.bugreport-button{background:var(--surface);border-color:var(--border);color:var(--text)}
.theme-toggle{width:42px;min-width:42px;height:42px;min-height:42px;padding:10px;display:inline-grid;place-items:center;background:var(--surface);flex-shrink:0}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.header-tools{gap:8px}.pill,.tag{background:var(--accent-soft);color:var(--accent);border:0}.pill{font-weight:600;padding:9px 12px}.pill.green,.tag.green,.green{background:var(--success-bg);color:var(--success);border-color:transparent}.pill.green:before{background:var(--success)}.tag.pink,.pink{background:var(--danger-bg);color:var(--danger)}
.muted,.label,label,.empty,.eyebrow,.intro-kicker,.intro-date,.job-facts,.job-client,.job-base-status,.sd-owners small,.sd-report small,.sd-base-note small,.closure-panel dt{color:var(--muted)}.error-text,.job-error{color:var(--danger)}
.card,.card.entity,.entity,.focus-card,.section-tile,.stat-tile,.connection-strip,.ops-summary,.overview-intro,.cash-intro,.section-banner{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:17px;color:var(--text)}.card{padding:22px}.card.entity:hover{border-color:var(--accent);box-shadow:var(--shadow)}.entity:before,.cards .card:after{display:none}.entity-head{gap:12px}.entity-head h2{font-size:17px}.entity .actions{gap:8px}.avatar{background:var(--accent-soft);color:var(--accent);border-radius:13px;font-size:20px}.value,.cards .card .value{color:var(--accent);font-weight:720}.cards .card:nth-child(2) .value{color:var(--success)}.cards .card:nth-child(3) .value{color:var(--warning)}.cards .card:nth-child(4) .value{color:var(--violet)}
.overview-intro{padding:16px 20px;align-items:center;margin-bottom:18px}.overview-intro h2{font-size:17px;margin:0}.intro-date{padding:0;background:transparent;font-size:13px}.cash-intro,.section-banner{padding:20px}.cash-intro h2,.section-banner h2{font-size:23px;margin:0}.cash-intro p:empty{display:none}.cash-total{background:var(--accent-soft);color:var(--accent)}.count-badge{background:var(--accent-soft);color:var(--accent)}
.module,.job-master,.cash-row,.cash-master,.cash-item,.sd-links,.queue-item,.history-event,.mode-note{border-color:var(--border)}.job-master,.job-time{color:var(--accent)}.job-description,.description,.closure-panel,.sd-owners,.sd-base-note,.sd-report,.queue-current,.compare-grid>div{background:var(--raised);border-color:var(--border);color:var(--text)}.sd-owners strong{color:var(--accent)}.sd-owners span,.sd-links a{color:var(--muted)}.sd-card{border-top:1px solid var(--border)}.sd-report{border-left-color:var(--accent)}
input,select,textarea{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:11px;box-shadow:none}input:hover,select:hover,textarea:hover{border-color:var(--muted)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}input[type=checkbox]{width:18px;min-height:18px;height:18px;vertical-align:middle;accent-color:var(--accent);margin-right:7px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
dialog{background:var(--surface);color:var(--text);border-color:var(--border);border-radius:20px;box-shadow:0 24px 90px #0005}dialog::backdrop{background:#08131f88;backdrop-filter:blur(5px)}.dialog-head{gap:12px;margin-bottom:14px}.dialog-head h2{font-size:21px}.log{background:var(--log);color:var(--log-text);border-color:var(--border);border-radius:14px}#toast{background:var(--text);color:var(--bg);box-shadow:0 10px 34px #0003}#toast.error{background:var(--danger-bg);color:var(--danger);border:1px solid var(--danger)}
th,.schedule th{background:var(--raised);color:var(--muted);border-color:var(--border)}td{border-color:var(--border)}.schedule th:first-child{background:var(--raised)}.schedule td:first-child{background:var(--surface)}.schedule button.green{border-color:var(--success-bg)}.schedule button.pink{border-color:var(--danger-bg)}
.mobile-hero{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:20px;padding:24px;margin-bottom:16px;overflow:hidden}.mobile-hero:after{display:none}.mobile-hero.paused,.mobile-hero.offline{background:var(--surface)}.hero-top{margin-bottom:14px}.hero-label{color:var(--muted);font-size:12px;letter-spacing:0;text-transform:none}.live-dot{background:var(--success-bg);color:var(--success);border:0;font-size:11px}.mobile-hero.paused .live-dot{background:var(--warning-bg);color:var(--warning)}.mobile-hero.offline .live-dot{background:var(--danger-bg);color:var(--danger)}.mobile-hero h2{font-size:25px;color:var(--text);letter-spacing:-.7px;margin:0 0 18px}.hero-links{gap:9px;margin-top:0}.hero-links .hero-button{background:var(--accent);color:var(--on-accent);border:1px solid var(--accent)}.hero-links .hero-secondary{background:var(--raised);color:var(--text);border:1px solid var(--border)}
.simple-stats{gap:12px}.stat-tile{padding:18px;text-align:left}.stat-tile strong{color:var(--text);font-size:31px;letter-spacing:-1px}.stat-tile>span:not(.stat-icon){color:var(--muted)}.stat-icon{border-radius:10px;background:var(--accent-soft);color:var(--accent)}.stat-tile.amber .stat-icon{background:var(--warning-bg);color:var(--warning)}.stat-tile.violet .stat-icon{background:var(--violet-bg);color:var(--violet)}.stat-tile.mint .stat-icon{background:var(--success-bg);color:var(--success)}.stat-arrow{color:var(--muted)}.section-heading{margin:22px 0 12px}.section-heading h2{font-size:16px}.section-tile{padding:16px;min-height:68px}.tile-icon{background:var(--accent-soft);color:var(--accent)}.focus-card{padding:18px}.focus-icon{background:var(--warning-bg);color:var(--warning)}.focus-card p,.connection-strip small{color:var(--muted)}.connection-strip{padding:16px;margin-top:18px}.connection-strip strong{color:var(--text)}.connection-dot{background:var(--border)}.connection-dot.ok{background:var(--success)}
.cash-branch-card,.cash-branch-card.blue{background:var(--accent-soft);color:var(--accent);border-radius:16px}.cash-branch-card.mint{background:var(--success-bg);color:var(--success)}.cash-branch-card.selected{border-color:var(--accent)}.cash-amount{color:var(--accent)}.queue-number{background:var(--accent-soft);color:var(--accent)}.issue.danger{border-color:var(--danger)}.issue.warning{border-color:var(--warning)}.issue.info{border-color:var(--accent)}
@media(min-width:701px) and (max-width:1050px){aside{width:205px}main{margin-left:205px;width:calc(100% - 205px);padding:24px}}
@media(max-width:700px){aside{width:100%;height:0;padding:0;border:0;background:transparent}main{margin:0;width:100%;padding:20px 16px calc(100px + env(safe-area-inset-bottom))}header{gap:8px;margin-bottom:20px}h1{font-size:24px}.header-tools{gap:6px;flex-wrap:nowrap}.header-tools .pill{font-size:10px!important;max-width:108px!important;padding:8px 9px}.header-tools #nav-more{padding:9px;min-height:40px}.theme-toggle{width:40px;min-width:40px;height:40px;min-height:40px}.header-tools #nav-more span{font-size:11px}.card{padding:18px}.mobile-hero{padding:20px}.mobile-hero h2{font-size:24px}.hero-links button{min-height:43px}.simple-stats{gap:10px}.stat-tile{padding:16px}.stat-tile strong{font-size:30px}.section-tile{padding:14px;font-size:13px}.tile-icon{width:33px;height:33px}.card.entity{padding:18px}.overview-intro{padding:14px 16px}.overview-intro .intro-date{display:block;font-size:12px}.section-banner{padding:18px}.cash-intro h2,.section-banner h2{font-size:22px}nav{background:var(--surface);border-color:var(--border);box-shadow:0 -4px 18px #00000008;padding-bottom:calc(8px + env(safe-area-inset-bottom))}nav button{color:var(--muted);border:0;background:transparent;min-height:52px;border-radius:10px}nav button.active{background:var(--accent-soft);color:var(--accent)}dialog{padding:20px}.module h3{flex-basis:36%}.module button{flex:1}.sd-toolbar select{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.stat-tile.amber strong,.stat-tile.blue strong,.stat-tile.violet strong,.stat-tile.mint strong{color:var(--text)}
html[data-theme="dark"] .stat-tile.blue .stat-icon{background:var(--accent-soft);color:var(--accent)}
.cash-total strong{color:var(--accent)!important}

.search-result{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;gap:6px;margin:8px 0;overflow-wrap:anywhere}.search-result span,.search-result small{color:var(--muted)}.cancellation-note,.history-summary,.backup-health{background:var(--soft);border:1px solid var(--border);border-radius:14px;padding:14px;margin:12px 0;overflow-wrap:anywhere}details summary{cursor:pointer;font-weight:600}textarea{box-sizing:border-box;max-width:100%;width:100%}.header-tools{flex-wrap:wrap}.history-summary dl{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:10px}.history-summary dd{margin:0;overflow-wrap:anywhere}

:root{--op-accent:#4359d8;--op-border:#e0e6ef;--op-surface:#fff;--op-muted:#66758c;--op-ink:#203149}
html[data-theme=dark]{--op-accent:#a0b2ff;--op-border:#304155;--op-surface:#152232;--op-muted:#aab7ca;--op-ink:#e5edf7}
body{letter-spacing:.01em}main{max-width:1600px}header{padding-bottom:18px;border-bottom:1px solid var(--op-border)}h1{font-size:clamp(24px,3vw,32px);letter-spacing:-.7px}.brand{letter-spacing:-.4px}.brand-mark{box-shadow:0 5px 18px #4359d825}
.card,.closure-panel,.history-summary{border:1px solid var(--op-border);border-radius:18px;background:var(--op-surface);box-shadow:0 4px 20px #10243b06}.card h2{line-height:1.35}.card .actions{gap:8px;margin-top:16px}.card .tag{font-weight:650}.primary{box-shadow:0 3px 10px #4359d81c}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--op-accent);outline-offset:3px}
.closure-panel{padding:20px;margin:18px 0}.closure-panel h3{margin-top:0}.closure-panel dl,.history-summary dl{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1.3fr);gap:10px 18px}.closure-panel dt,.history-summary dt{color:var(--op-muted)}.closure-panel dd,.history-summary dd{margin:0;overflow-wrap:anywhere}.history-event{padding:16px 12px;border-bottom:1px solid var(--op-border)}.history-event p{margin:6px 0}.history-search{display:flex;gap:10px;margin-bottom:18px}.history-search input{min-width:0;flex:1}.job-description{max-height:180px;overflow:auto}.job-time{font-weight:700}.job-facts{gap:8px 14px}.section-banner{border-radius:18px}.error-text{line-height:1.5}.dialog-head{position:sticky;top:0;z-index:2;background:var(--op-surface);padding:12px 0;border-bottom:1px solid var(--op-border)}dialog{color:var(--op-ink);background:var(--op-surface);border:1px solid var(--op-border);border-radius:22px;max-height:90dvh}dialog::backdrop{background:#09142780;backdrop-filter:blur(3px)}#close{min-width:44px;min-height:44px;flex-shrink:0}
@media(max-width:700px){main{padding:16px 14px 100px}header{gap:8px;padding-bottom:14px;margin-bottom:18px}.header-tools{gap:5px}#status{max-width:88px}.entity-grid{grid-template-columns:1fr;gap:12px}.card{padding:17px!important;border-radius:16px}.card .actions{display:flex;flex-wrap:wrap}.card .actions button{min-height:44px;flex:1 1 130px}.history-search{flex-wrap:wrap}.history-search input{flex-basis:100%}dialog{width:calc(100vw - 16px);max-width:none;max-height:92dvh;padding:16px;margin:auto;box-sizing:border-box}.dialog-head h2{font-size:20px;overflow-wrap:anywhere}#form-body{overflow-wrap:anywhere}#form .actions{gap:8px;flex-wrap:wrap}#form .actions button{min-height:44px}.closure-panel{padding:14px}.closure-panel dl,.history-summary dl{grid-template-columns:1fr 1fr;font-size:14px}.history-summary{padding:14px}.job-description{max-height:160px}.connection-strip{flex-wrap:wrap}.cash-branch-card strong{font-variant-numeric:tabular-nums}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* Operator layout revision 94 */
:root{--accent:#4f59d8;--accent-soft:#eeedff;--bg:#f2f4fa;--op-accent:#4f59d8}
:root[data-theme=dark]{--accent:#a5b4ff;--accent-soft:#292e50;--bg:#0e1422;--op-accent:#a5b4ff}
.section-banner,.cash-intro{border-left:4px solid var(--accent)}
.cards .card{border-top:3px solid var(--accent)}
nav button.active{box-shadow:inset 3px 0 0 var(--accent);font-weight:750}
.mobile-hero{background:linear-gradient(120deg,#343e9c,#5a5cdc);border:0;color:white;border-radius:22px}
.mobile-hero h1,.mobile-hero h2,.mobile-hero .hero-label,.mobile-hero .live-dot{color:white}
.mobile-hero .hero-button{background:white;color:#37409a}.mobile-hero .hero-secondary{background:#ffffff18;color:white;border-color:#ffffff50}
.simple-stats .stat-tile{border-top:3px solid var(--accent)}.simple-stats .stat-tile.mint{border-top-color:#28a88a}.simple-stats .stat-tile.amber{border-top-color:#dda342}.simple-stats .stat-tile.violet{border-top-color:#9368d7}
@media(min-width:701px){aside{background:#18223b;color:#b7c4dc;border-right:0}.brand,.brand span{color:#fff}aside nav button{color:#b7c4dc}aside nav button:hover{background:#243451;color:white}aside nav button.active{color:#fff;background:#344274;box-shadow:inset 3px 0 0 #a5b4ff}.aside-foot{color:#b7c4dc}.brand-mark{background:#a5b4ff;color:#18223b}}
@media(max-width:700px){nav button.active{box-shadow:inset 0 3px 0 var(--accent)}header{border:0}.section-banner h2{font-size:21px}.section-banner{padding:17px}}
