/* KFS 2.3.20 — shared semantic surfaces. The OS is followed only in system mode. */
@font-face{font-family:'KFS Sans KR';font-style:normal;font-weight:400;font-display:swap;src:url('/vendor/fonts/noto-sans-kr-korean-400-normal.woff2?v=2.3.20') format('woff2')}
@font-face{font-family:'KFS Sans KR';font-style:normal;font-weight:600 900;font-display:swap;src:url('/vendor/fonts/noto-sans-kr-korean-600-normal.woff2?v=2.3.20') format('woff2')}
html[data-theme]{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans KR','KFS Sans KR',sans-serif}
html[data-theme]{--page:#f4f7fc;--surface:#fff;--surface-soft:#f0f5fc;--ink:#19324b;--muted:#63758b;--line:#d8e2ee;--accent:#285fd6;--navy:#214f8e;--blue:#245ac3;--red:#bc344c;--focus:#3273e7;--shadow:0 5px 22px #23466a09;--blue-gradient:linear-gradient(125deg,#3378f5,#3254ce);--teal-gradient:linear-gradient(125deg,#159ca8,#147e90);color-scheme:light;background:var(--page);color:var(--ink)}
html[data-theme="dark"]{--page:#090d14;--surface:#121b28;--surface-soft:#192536;--ink:#edf3fd;--muted:#a0b1c8;--line:#2b3c52;--accent:#83baff;--navy:#9ac5ff;--blue:#8ac0ff;--red:#ff9cae;--focus:#86baff;--shadow:0 6px 26px #0003;--blue-gradient:linear-gradient(125deg,#247af2,#244dcc);--teal-gradient:linear-gradient(125deg,#087e88,#096c7f);color-scheme:dark}
html[data-theme] body{color:var(--ink);background:radial-gradient(ellipse at 100% 0%,#7daaf210,transparent 55%),var(--page);min-height:100dvh}
html[data-theme] body:has(.login-wrap){background:radial-gradient(ellipse at 5% 0%,#4d93f224,transparent 48%),radial-gradient(ellipse at 100% 40%,#21b8ad14,transparent 55%),var(--page);background-attachment:fixed}
html[data-theme] .header{background:radial-gradient(ellipse at 100% 0%,#408df620,transparent 65%),var(--surface);border-color:var(--line)}
html[data-theme] .support-banner{background:linear-gradient(110deg,#4f91f20b,#4185d914),var(--surface);color:var(--muted);border-color:var(--line)}
html[data-theme] .support-contact{color:var(--muted)}
html[data-theme] .support-banner a{background:var(--surface-soft);color:var(--blue);border-color:var(--line)}
html[data-theme] :is(.sidebar,.mobile-nav){background:var(--surface);border-color:var(--line)}
html[data-theme] :is(h1,h2,h3,.stop-name,.avatar,.panel-heading strong){color:var(--ink)}
html[data-theme] :is(.muted,.daily-context,.menu-card p){color:var(--muted)}
html[data-theme] :is(button,input,select,textarea){border-color:var(--line);border-radius:11px}
html[data-theme] :is(button,input,select,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
html[data-theme] :is(input,select,textarea){color:var(--ink);background:var(--surface);accent-color:var(--accent)}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme] input[readonly]{background:var(--surface-soft);color:var(--muted)}
html[data-theme] button{background:var(--surface);color:var(--ink)}
html[data-theme] button:hover{background:var(--surface-soft)}
html[data-theme] :is(button.primary,.primary,.tabs button.active,.work-switch button.active,.work-clock-mode button.active){background:var(--blue-gradient);color:#fff;border-color:#3a78df;box-shadow:0 4px 13px #1f61dc20}
html[data-theme] :is(.sidebar>button.active,.mobile-nav button.active){background:var(--surface-soft);color:var(--blue)}
html[data-theme] :is(.panel,.menu-card,.record-card,.empty,.context,.context-route,.external-grid a,.external-grid button,.login-wrap .login-card,.login-wrap>.install-guide){background:linear-gradient(130deg,#4f94ee05,transparent),var(--surface);border-color:var(--line);box-shadow:var(--shadow);border-radius:15px}
html[data-theme] :is(.login-wrap .login-card h1,.login-card label,.install-guide h2,.install-platform summary strong){color:var(--ink)}
html[data-theme] .login-wrap .login-card{border:1px solid var(--line)}
html[data-theme] :is(.install-platform,.guide-tip,.guide-important){background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html[data-theme] :is(.guide-body,.guide-body b,.guide-body strong){color:var(--ink)}
html[data-theme] .menu-card .nav-icon{background:var(--surface-soft);color:var(--blue)}
html[data-theme] .daily-shortcuts button{background:var(--blue-gradient);color:#fff;border:1px solid #477ae2;box-shadow:0 6px 16px #225fd220}
html[data-theme] .daily-shortcuts button[data-open="work"]{background:var(--teal-gradient);border-color:#1c9da6}
html[data-theme] .daily-shortcuts :is(strong,small,.shortcut-icon){color:#fff}
html[data-theme] .stats.assignment-summary{background:radial-gradient(ellipse at 10% 0%,#358bef13,transparent 65%),var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
html[data-theme] .assignment-summary>:is(.assignment-team,.assignment-stamp){background:transparent;border-color:var(--line)}
html[data-theme] .assignment-summary :is(.assignment-team>span,.assignment-stamp>span,.assignment-vehicle>span,.assignment-closing-km){color:var(--muted)}
html[data-theme] .assignment-summary :is(.assignment-team>strong,.assignment-vehicle>strong){color:var(--ink)}
html[data-theme] .assignment-summary .assignment-stamp>strong{color:#08786e}
html[data-theme="dark"] .assignment-summary .assignment-stamp>strong{color:#7be6db}
html[data-theme] .assignment-summary>.assignment-car{background:linear-gradient(125deg,#477ef207,#16a6a00a),var(--surface);border-color:var(--line)}
html[data-theme="dark"] :is(.assignment-fuel:has(.fuel-signal-safe),.fuel-signal-safe){background:linear-gradient(135deg,#103439,#152a31);color:#8be0ce}
html[data-theme="dark"] :is(.assignment-fuel:has(.fuel-signal-caution),.fuel-signal-caution){background:linear-gradient(135deg,#3b2d1c,#2d261b);color:#f4d18f}
html[data-theme="dark"] :is(.assignment-fuel:has(.fuel-signal-required),.fuel-signal-required){background:linear-gradient(135deg,#3d202e,#2d1c27);color:#ffadb8}
html[data-theme="dark"] :is(.fuel-signal-done,.fuel-signal-unknown,.fuel-signal-loading){background:var(--surface-soft);color:var(--muted)}
html[data-theme] :is(.arrival-row,.arrival-stop,.arrival-list.layout-cards .arrival-stop){background:var(--surface);border-color:var(--line)}
html[data-theme] .arrival-list .arrival-button:not(.recorded){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme] .arrival-list .arrival-button:disabled:not(.recorded){background:var(--surface-soft);color:var(--muted);opacity:.58}
html[data-theme] .arrival-list [data-arrival-color="blue"].recorded{background:var(--blue-gradient);border-color:#3978eb;color:#fff}
html[data-theme] .arrival-list .recorded[data-arrival-color="blue"] :is(input,small,span){color:#fff}
html[data-theme] .arrival-list .arrival-button.recorded:disabled{opacity:1}
html[data-theme] :is(.medicine-panel,.medicine-unit,.medicine-device-row){background:linear-gradient(125deg,#189e9807,transparent),var(--surface);border-color:var(--line)}
html[data-theme] .medicine-metric{background:var(--surface);border-color:var(--line)}
html[data-theme] .medicine-metric>strong{color:var(--ink)}
html[data-theme] .medicine-metric>span{color:var(--muted)}
html[data-theme="dark"] :is(.medicine-panel.disconnected,.medicine-unit.disconnected,.medicine-device-row.disconnected){background:linear-gradient(120deg,#38202c,#211d2a);border-color:#995268}
html[data-theme="dark"] :is(.medicine-state.connected,.medicine-state.battery){color:#78e4cf}
html[data-theme="dark"] :is(.medicine-state.disconnected,.medicine-device-row.disconnected .medicine-state){color:#ff9eae}
html[data-theme] .medicine-switch[aria-checked="true"]{background:var(--teal-gradient);border-color:#239ea5;color:#fff}
html[data-theme] .medicine-switch-thumb{background:#fff}
html[data-theme] dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 80px #0005;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
html[data-theme] dialog::backdrop{background:#050b16aa;backdrop-filter:blur(4px)}
html[data-theme] #toast{background:var(--ink);color:var(--page);border:1px solid var(--line)}
html[data-theme] .brand img{object-fit:contain}
/* An unmasked image remains a readable fallback on older browsers. */
html[data-theme="dark"] .brand img{filter:brightness(0) invert(1)}
html[data-theme] .appearance-settings{padding:20px;margin-top:12px}
.settings-eyebrow{display:block;font-size:10px;letter-spacing:1.7px;font-weight:750;color:var(--blue);margin-bottom:7px}
.appearance-settings>h2{font-size:22px;margin:0 0 8px}.appearance-settings>p{line-height:1.7}
.theme-options{display:grid;gap:9px;padding:0;margin:17px 0;border:0;min-width:0}
html[data-theme] .theme-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);cursor:pointer;position:relative}
.theme-option input{position:absolute;opacity:0;width:1px!important;height:1px;min-height:0;pointer-events:none}
html[data-theme] .theme-option:has(input:checked){border-color:var(--accent);background:linear-gradient(120deg,#3f85f01a,#1ba9ab08),var(--surface)}
.theme-option:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.theme-option-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:var(--surface-soft);font-size:25px;color:var(--blue);flex:none}
.theme-option strong{display:block;color:var(--ink);font-size:15px}.theme-option small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:3px}.theme-option-check{margin-left:auto;align-self:center;color:var(--blue);opacity:0}.theme-option:has(input:checked) .theme-option-check{opacity:1}
.device-fit-note{display:grid;gap:5px;padding:14px;margin-top:12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px}.device-fit-note strong{font-size:13px}.device-fit-note span{font-size:12px;color:var(--muted);line-height:1.7}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
html[data-theme] .update-dialog{width:min(440px,calc(100vw - 28px));padding:28px;overflow-wrap:anywhere;text-align:left}
.update-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.update-heading>div:last-child{min-width:0}.update-heading .settings-eyebrow{font-size:11px;letter-spacing:.02em;margin:0 0 5px}.update-heading h2{margin:0}
.update-symbol{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;box-sizing:border-box;border:1px solid var(--line);border-radius:17px;background:var(--blue-gradient);color:#fff;line-height:0}.update-symbol svg{display:block;width:28px;height:28px;flex:none}
.picker-actions{display:flex;align-items:center;gap:8px;flex:none}.picker-actions button{white-space:nowrap;font-size:14px;min-height:38px;padding:7px 10px}.station-register-form{display:grid;gap:14px}.station-register-form>label{display:grid;gap:7px;font-size:14px}.station-register-form p{margin:0}.station-register-form .workflow-error:empty{display:none}
.update-dialog h2{font-size:23px;letter-spacing:-.7px;line-height:1.4;margin:0 0 12px}.update-dialog p{font-size:14px;line-height:1.8;margin:0 0 12px;color:var(--muted)}.update-dialog .update-version{display:inline-block;font-variant-numeric:tabular-nums;padding:5px 10px;border:1px solid var(--line);border-radius:20px;color:var(--blue);background:var(--surface-soft);font-weight:700;font-size:12px}
.update-notes{padding-left:20px;margin:8px 0 20px;color:var(--ink);font-size:13px;line-height:1.9}.update-dialog .update-error{color:var(--red)}.update-error:empty{display:none}.update-dialog>button{width:100%;min-height:50px;margin-top:5px}
/* Intrinsic sizing, safe-area padding and wrapping apply to every device by default. */
html[data-theme]{-webkit-text-size-adjust:100%;scroll-padding-bottom:100px}
html[data-theme] :is(.shell,#main,.workspace-area,.form-grid,.panel,.arrival-list,.medicine-panel){min-width:0}
html[data-theme] .mobile-nav{padding-bottom:calc(5px + env(safe-area-inset-bottom,0px));padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
@media(max-width:900px){html[data-theme] #main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}html[data-theme] .header{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}
@media(max-width:380px){.appearance-settings{padding:15px!important}.theme-option{gap:9px!important;padding:12px!important}.theme-option small{font-size:11px}.update-dialog{padding:22px!important}.update-dialog h2{font-size:21px}.arrival-color-settings{grid-template-columns:1fr}.theme-option-icon{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

html[data-theme] .support-banner{padding-top:calc(5px + env(safe-area-inset-top,0px));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}

/* 2.3.20: one palette controls actual rows, previews, completed-disabled rows and edits.
   Specificity intentionally exceeds legacy color-blue/layout surface rules. */
html[data-theme] .arrival-list [data-arrival-color="blue"]{--arrival-bg:#2b60d8;--arrival-fill:linear-gradient(125deg,#2167e2 0%,#2b60d8 40%,#1040be 100%);--arrival-ink:#ffffff}
html[data-theme] .arrival-list [data-arrival-color="orange"]{--arrival-bg:#ff9509;--arrival-fill:linear-gradient(125deg,#ffbb4f,#ff9509);--arrival-ink:#192b37}
html[data-theme] .arrival-list [data-arrival-color="magenta"]{--arrival-bg:#bd006a;--arrival-fill:linear-gradient(125deg,#d71384,#bd006a);--arrival-ink:#ffffff}
html[data-theme] .arrival-list [data-arrival-color="lime"]{--arrival-bg:#d5e600;--arrival-fill:linear-gradient(125deg,#e6f34c,#d5e600);--arrival-ink:#192b37}
html[data-theme] .arrival-list [data-arrival-color="green"]{--arrival-bg:#16854a;--arrival-fill:linear-gradient(125deg,#16854a,#116b3c);--arrival-ink:#ffffff}
html[data-theme] .arrival-list [data-arrival-color="teal"]{--arrival-bg:#007c80;--arrival-fill:linear-gradient(125deg,#007c80,#06636e);--arrival-ink:#ffffff}
html[data-theme] .arrival-list [data-arrival-color="cyan"]{--arrival-bg:#9be5f4;--arrival-fill:linear-gradient(125deg,#b8f0fa,#9be5f4);--arrival-ink:#192b37}
html[data-theme] .arrival-list [data-arrival-color="purple"]{--arrival-bg:#7445bb;--arrival-fill:linear-gradient(125deg,#8655d1,#7445bb);--arrival-ink:#ffffff}
html[data-theme] .arrival-list [data-arrival-color="red"]{--arrival-bg:#c93838;--arrival-fill:linear-gradient(125deg,#d63b48,#c93838);--arrival-ink:#ffffff}
html[data-theme] .arrival-list [data-arrival-color="pink"]{--arrival-bg:#f6bdd5;--arrival-fill:linear-gradient(125deg,#fbd2e4,#f6bdd5);--arrival-ink:#192b37}
html[data-theme] .arrival-list [data-arrival-color="yellow"]{--arrival-bg:#ffe17a;--arrival-fill:linear-gradient(125deg,#fff0ac,#ffe17a);--arrival-ink:#192b37}
html[data-theme] .arrival-list [data-arrival-color="slate"]{--arrival-bg:#526477;--arrival-fill:linear-gradient(125deg,#526477,#425267);--arrival-ink:#ffffff}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) :is(.arrival-button,.arrival-time-cell).recorded[data-arrival-color]{background:var(--arrival-fill);color:var(--arrival-ink);border:1px solid var(--arrival-bg);box-shadow:inset 0 1px 0 #ffffff28,0 2px 7px #071e4a14;opacity:1}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) :is(.arrival-button,.arrival-time-cell).recorded[data-arrival-color] :is(span,small,input,button){color:var(--arrival-ink)}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-time-cell.recorded[data-arrival-color] :is(input,button){background:transparent;border-color:transparent;box-shadow:none}

/* 2.3.20 — one glass material, with pearl and midnight finishes.
   Specular light is static and stays at the edges of the small time buttons. */
html[data-theme]{
 --page:#f1f5fc;--surface:#fcfdff;--surface-soft:#eaf1fc;--line:#cbd9ec;
 --card-edge:#c4d6ed;--glass-edge:#b4cdea;--glass-top:#ffffff;
 --control-fill:radial-gradient(ellipse at 12% 0%,#fff,transparent 70%),linear-gradient(180deg,#ffffffeb 0%,#f5f9ffdb 48%,#e7effbd9 100%);
 --control-shadow:inset 0 1px 0 #fff,inset 1px 0 0 #ffffffd9,inset 0 -1px 2px #789ac328,0 3px 9px #244c8110;
 --card-fill:radial-gradient(ellipse at 0% 0%,#fff,transparent 68%),linear-gradient(135deg,#fcfeff,#eef4fd);
 --card-shadow:inset 0 1px 0 #fff,inset 1px 0 0 #ffffffb3,0 5px 18px #234c7b0d;
 --header-fill:linear-gradient(153deg,transparent 44%,#c6ddff66 44.5%,transparent 76%),radial-gradient(ellipse at 100% 0%,#9cc3ff85,transparent 70%),linear-gradient(120deg,#fff,#edf5ff);
 --ready-fill:radial-gradient(ellipse at 10% 0%,#fff9,transparent 65%),linear-gradient(145deg,#e9f3ff,#dbe9fd 62%,#cbdff8);
 --disabled-fill:linear-gradient(145deg,#f0f3f8,#e7edf5);
 --selected-fill:radial-gradient(ellipse at 10% 0%,#fff9,transparent 80%),linear-gradient(135deg,#d2e5ff,#b9d4fc);
 --selected-ink:#194f9f;
 --blue-gradient:radial-gradient(ellipse at 5% 0%,#91d6ff20,transparent 62%),linear-gradient(125deg,#1354cf 0%,#174cc9 48%,#113ab5 100%);
 --teal-gradient:radial-gradient(ellipse at 5% 0%,#71ffff20,transparent 66%),linear-gradient(125deg,#066575 0%,#06616f 48%,#054f66 100%);
 --blue-rim:#4696f5;--teal-rim:#2dbfc4;--gloss-rim:#c2ebffb3;
 --logo-word:linear-gradient(110deg,transparent 43%,#102b43 44%,#274e6e 100%);
 --logo-metal:linear-gradient(160deg,#062c4e 20%,#096197 40%,#299fdb 54%,#084c7d 77%,#073b62 100%);
}
html[data-theme="dark"]{
 --page:#070d14;--surface:#0d1824;--surface-soft:#172a40;--line:#2a4057;
 --card-edge:#2b4662;--glass-edge:#3b5674;--glass-top:#c3e3ff66;
 --control-fill:radial-gradient(ellipse at 8% 0%,#6399c52b,transparent 75%),linear-gradient(180deg,#22354b 0%,#182a3d 47%,#102032 100%);
 --control-shadow:inset 0 1px 0 #c3e3ff38,inset 1px 0 0 #b1d8ff12,inset 0 -2px 3px #020b1659,0 3px 10px #0003;
 --card-fill:radial-gradient(ellipse at 5% 0%,#345e7e30,transparent 72%),linear-gradient(135deg,#142332,#0b1622);
 --card-shadow:inset 0 1px 0 #a4d5ff1f,inset 1px 0 0 #88b9e00c,0 6px 18px #00000029;
 --header-fill:linear-gradient(153deg,transparent 44%,#266ae42b 44.5%,transparent 76%),radial-gradient(ellipse at 100% -5%,#145ce1a6,transparent 70%),linear-gradient(115deg,#0b1825,#10243e);
 --ready-fill:radial-gradient(ellipse at 4% 0%,#4c8ce038,transparent 72%),linear-gradient(145deg,#1a3d65,#162f50 60%,#11263e);
 --disabled-fill:linear-gradient(145deg,#243443,#1b2938);
 --selected-fill:radial-gradient(ellipse at 10% 0%,#4396fa30,transparent 75%),linear-gradient(135deg,#204e91,#153765);
 --selected-ink:#b5dcff;--blue-rim:#418bf1;--teal-rim:#19aeb9;
 --logo-word:linear-gradient(110deg,transparent 43%,#f4faff 44%,#fff 62%,#c2dcf2 100%);
 --logo-metal:linear-gradient(160deg,#fff 23%,#e3f5ff 38%,#79cffa 55%,#2195db 77%,#96e9ff 100%);
}
html[data-theme] body{background:radial-gradient(ellipse 650px 430px at 100% 0%,#347de21a,transparent 75%),var(--page)}
html[data-theme] .workspace-area{background:radial-gradient(ellipse 550px 300px at 95% 0%,#3d93f20b,transparent 78%)}
html[data-theme] body:has(.login-wrap){background:radial-gradient(ellipse at 0% 5%,#378bf03b,transparent 53%),radial-gradient(ellipse at 95% 90%,#18bfc12e,transparent 60%),radial-gradient(ellipse at 100% 10%,#9974e524,transparent 65%),var(--page)}
html[data-theme] :is(.support-banner,.header){background:var(--header-fill);border-color:var(--card-edge);box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -1px 0 #102c5914}
html[data-theme] .support-banner a{background:var(--control-fill);border:1px solid var(--blue-rim);box-shadow:var(--control-shadow),0 0 12px #2b88f51c}
html[data-theme] .header .brand{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-height:44px;flex:none}
html[data-theme] .header .brand:hover{background:transparent}

/* Preserve the supplied logo's alpha geometry. The red symbol is the original
   raster crop, layered over the metal finish. No white badge or retyped logo. */
html[data-theme] .brand-logo{position:relative;display:block;flex:none;width:210px;max-width:100%;aspect-ratio:3/1;line-height:0;isolation:isolate}
html[data-theme] :is(.brand,.session-splash) .brand-logo>img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;padding:0;border:0;border-radius:0;background:transparent}
html[data-theme] .login-brand .brand-logo{width:min(250px,calc(100% - 62px));flex-shrink:1}
html[data-theme="dark"] .brand-logo{filter:drop-shadow(0 1px 0 #fff2) drop-shadow(0 0 6px #3fa9f426)}
@supports ((mask-image:url('/company-logo.png')) or (-webkit-mask-image:url('/company-logo.png'))){
 html[data-theme] .brand-logo>img{opacity:0}
 html[data-theme] .brand-logo::before{content:'';position:absolute;inset:0;background:var(--logo-word),var(--logo-metal);-webkit-mask:url('/company-logo.png?v=2.3.20') center/contain no-repeat;mask:url('/company-logo.png?v=2.3.20') center/contain no-repeat;pointer-events:none}
 html[data-theme] .brand-logo::after{content:'';position:absolute;inset:0;background:url('/company-logo.png?v=2.3.20') center/contain no-repeat;clip-path:polygon(14.5% 32%,19.7% 32%,19.7% 52%,14.5% 52%);pointer-events:none}
}
html[data-theme] button{background:var(--control-fill);box-shadow:var(--control-shadow)}
html[data-theme] button:hover{background:var(--control-fill)}
html[data-theme] button:disabled{box-shadow:inset 0 1px 0 #ffffff0a}
html[data-theme] .header .right :is(#vehicle-change,#logout){background:var(--control-fill);border:1px solid var(--glass-edge);box-shadow:var(--control-shadow);border-radius:9px}
html[data-theme] :is(.panel,.menu-card,.record-card,.context,.context-route,.external-grid a,.external-grid button,.login-wrap .login-card,.login-wrap>.install-guide){background:var(--card-fill);border-color:var(--card-edge);box-shadow:var(--card-shadow)}
html[data-theme] .login-wrap .login-card{border-radius:24px;border-color:var(--glass-edge);box-shadow:var(--card-shadow),0 20px 65px #224e841f}
html[data-theme] :is(input:not([type=checkbox]):not([type=radio]),textarea){box-shadow:inset 0 2px 4px #142f5d0b,0 1px 0 #ffffff14}
html[data-theme] :is(button.primary,.primary,.tabs button.active,.work-switch button.active,.work-clock-mode button.active){background:var(--blue-gradient);border:1px solid var(--blue-rim);color:#fff;box-shadow:inset 0 1px 0 #e7f7ff91,inset 1px 0 0 #92d6ff42,inset 0 -2px 3px #061e783b,0 4px 13px #1a62dd30}

/* Raised blue / teal action tiles: a broad top reflection and a coated rim. */
html[data-theme] .daily-shortcuts button,html[data-theme] .daily-shortcuts button.primary{background:var(--blue-gradient);border:1px solid var(--blue-rim);box-shadow:inset 0 1px 0 #e7f7ff99,inset 1px 0 0 #9cdcff66,inset 0 -2px 3px #07236050,0 5px 18px #155cdd38,0 0 15px #267cff12}
html[data-theme] .daily-shortcuts button[data-open="work"]{background:var(--teal-gradient);border-color:var(--teal-rim);box-shadow:inset 0 1px 0 #b6ffff99,inset 1px 0 0 #7fffff4d,inset 0 -2px 3px #003f5159,0 5px 18px #018b922b,0 0 15px #04bac812}
html[data-theme] .daily-shortcuts button::before{inset:0 0 auto;width:auto;height:45%;border-radius:inherit;background:linear-gradient(165deg,#d6f4ff33,transparent 65%);box-shadow:inset 0 1px 0 #ffffff3d}
html[data-theme] .daily-shortcuts button::after{width:160px;height:160px;bottom:-110px;right:-65px;background:linear-gradient(130deg,#a3eeff24,#ffffff03);border:1px solid #c2f4ff17}
html[data-theme] .daily-shortcuts .shortcut-icon{border:1px solid #d7f5ff66;box-shadow:inset 0 1px 0 #ffffff5c,inset 0 -1px 2px #073a8340,0 2px 5px #092e5a18;background:linear-gradient(145deg,#ddf7ff3d,#99ddff0d);border-radius:11px}
html[data-theme] .daily-shortcuts button strong::after{content:'›';float:right;margin-left:8px;font-size:23px;font-weight:400;line-height:19px;opacity:.8}
html[data-theme] .daily-shortcuts :is(strong,small,.shortcut-icon){color:#fff}

html[data-theme] .stats.assignment-summary{background:var(--card-fill);border:1px solid var(--card-edge);box-shadow:var(--card-shadow);border-radius:15px;overflow:hidden}
html[data-theme] .stats.assignment-summary>:is(.assignment-team,.assignment-stamp){background:radial-gradient(ellipse at 0% 0%,#2c85e31c,transparent 85%);border-color:var(--card-edge)}
html[data-theme] .stats.assignment-summary>.assignment-stamp{background:radial-gradient(ellipse at 100% 0%,#18bfc71a,transparent 80%)}
html[data-theme] .assignment-summary>.assignment-car{background:linear-gradient(120deg,#2c6bac06,#16a8a009),var(--card-fill);border-color:var(--card-edge);box-shadow:inset 0 1px 0 #ffffff0a}
html[data-theme="dark"] .assignment-fuel:has(.fuel-signal-safe){background:radial-gradient(ellipse at 100% 0%,#13dcd340,transparent 78%),linear-gradient(130deg,#0e303b,#10232f)}
html[data-theme] :is(.menu-card,.external-grid a,.external-grid button){border:1px solid var(--glass-edge);box-shadow:var(--control-shadow)}
html[data-theme] .menu-card .nav-icon{display:grid;place-items:center;width:34px;height:38px;border:1px solid var(--glass-edge);border-radius:10px;background:var(--selected-fill);color:var(--blue);box-shadow:var(--control-shadow)}
html[data-theme] :is(.sidebar,.mobile-nav){background:var(--card-fill);border-color:var(--card-edge);box-shadow:inset 0 1px 0 #ffffff0d,0 -5px 20px #00000012}
html[data-theme] :is(.mobile-nav button,.sidebar>button){background:transparent;box-shadow:none;border-radius:12px}
html[data-theme] :is(.mobile-nav button.active,.sidebar>button.active){background:var(--selected-fill);color:var(--selected-ink);box-shadow:inset 0 1px 0 var(--glass-top),inset 0 -1px 2px #08245e18,0 2px 9px #1e67c918}

/* Both route layouts, their settings previews and editable time cells share
   the same coating. User-selected palette fills above remain authoritative. */
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-row{background:var(--card-fill);border:1px solid var(--card-edge);box-shadow:var(--card-shadow);border-radius:13px;overflow:hidden}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-stop{background:transparent;border-color:var(--card-edge)}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-stop:first-child{border-right:1px solid var(--card-edge)}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .stop-name{font-weight:650;color:var(--ink);letter-spacing:-.35px}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) :is(.arrival-button,.arrival-time-cell){position:relative;isolation:isolate}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-button:not(.recorded){background:var(--ready-fill);border:1px solid var(--glass-edge);color:var(--ink);box-shadow:var(--control-shadow)}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) :is(.arrival-button,.arrival-time-cell).recorded[data-arrival-color]{background:var(--arrival-fill);color:var(--arrival-ink);border:1px solid var(--arrival-bg);border-color:color-mix(in srgb,var(--arrival-bg) 64%,#d5efff);box-shadow:inset 0 1px 0 #effaffb3,inset 1px 0 0 #ffffff47,inset 0 -2px 3px #00103340,0 3px 10px #1a5dca38;box-shadow:inset 0 1px 0 #effaffb3,inset 1px 0 0 #ffffff47,inset 0 -2px 3px #00103340,0 3px 10px color-mix(in srgb,var(--arrival-bg) 28%,transparent);opacity:1}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) :is(.arrival-button,.arrival-time-cell).recorded[data-arrival-color]::before{content:'';position:absolute;inset:1px 1px auto;height:4px;border-radius:inherit;background:linear-gradient(105deg,#e9faff8c,#ffffff24 35%,transparent 72%);pointer-events:none}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-button:disabled:not(.recorded){background:var(--disabled-fill);border-color:var(--line);color:var(--muted);opacity:.64;box-shadow:inset 0 1px 0 #ffffff0d}
html[data-theme] .arrival-list:is(.layout-current,.layout-cards) .arrival-time-cell.recorded[data-arrival-color] :is(input,button){background:transparent;border-color:transparent;box-shadow:none}
html[data-theme] .arrival-controls :is(button,select),html[data-theme] .arrival-heading .btn-small{background:var(--control-fill);border:1px solid var(--glass-edge);box-shadow:var(--control-shadow)}
html[data-theme] .arrival-controls select:focus:not(:focus-visible){outline:none}

/* Cold glass instruments and distinct teal / rose connection states. */
html[data-theme] :is(.medicine-panel,.medicine-unit){background:var(--card-fill);border:1px solid var(--card-edge);box-shadow:var(--card-shadow)}
html[data-theme] .medicine-selected-box{border:1px solid #21aaa52e;border-left:3px solid #27b7b0;border-radius:9px;background:radial-gradient(ellipse at 100% 0%,#1bd1c318,transparent 85%),var(--card-fill);padding:8px;box-shadow:inset 0 1px 0 #ffffff12}
html[data-theme] .medicine-selected-box+.medicine-selected-box{margin-top:6px;padding-top:8px}
html[data-theme] :is(.medicine-selected-box.disconnected,.medicine-selected-box.deviation){background:radial-gradient(ellipse at 0% 0%,#ed607b12,transparent 85%),linear-gradient(125deg,#fff0f4,#fff8fb);border-color:#d96d854d;border-left-color:#e86d88}
html[data-theme="dark"] :is(.medicine-selected-box.disconnected,.medicine-selected-box.deviation){background:radial-gradient(ellipse at 0% 0%,#ee587a1c,transparent 85%),linear-gradient(125deg,#33202d,#211d29)}
html[data-theme] .medicine-metric{background:var(--control-fill);border:1px solid var(--glass-edge);border-radius:9px;box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -1px 2px #10274314}
html[data-theme] .medicine-selected-box .medicine-metric>strong{font-size:16px;font-weight:700}
html[data-theme] .medicine-panel button:not(.medicine-switch){background:var(--control-fill);border-color:var(--glass-edge);box-shadow:var(--control-shadow)}
html[data-theme] :is(.medicine-home-add,.medicine-panel-footer button,.medicine-wide-button){color:#16675e}
html[data-theme="dark"] :is(.medicine-home-add,.medicine-panel-footer button,.medicine-wide-button){color:#8de5dd}
html[data-theme] .medicine-switch{background:var(--disabled-fill);border-radius:18px;box-shadow:inset 0 2px 4px #04132425,0 1px 0 #ffffff14}
html[data-theme] .medicine-switch[aria-checked="true"]{background:var(--teal-gradient);border:1px solid var(--teal-rim);box-shadow:inset 0 1px 0 #c7ffff80,inset 0 -2px 3px #003c4c59,0 0 11px #05b5be26}
html[data-theme] .medicine-switch-thumb{background:radial-gradient(circle at 32% 25%,#fff 30%,#e2f7ff 80%,#9cd7f3);box-shadow:inset 0 1px 0 #fff,0 1px 4px #053f6166,0 0 7px #8ae7ff40}
html[data-theme] .arrival-controls .medicine-arrival-button{background:linear-gradient(125deg,#1b9f9a18,#15958805),var(--control-fill);border-color:#449d9a;color:#18786b}
html[data-theme="dark"] .arrival-controls .medicine-arrival-button{color:#94e3d9}
html[data-theme] .arrival-controls :is(.medicine-arrival-button.disconnected,.medicine-arrival-button.deviation){background:linear-gradient(125deg,#d8486d24,#cc47600d),var(--control-fill);border-color:#c85d78;color:#ae304a;box-shadow:inset 0 1px 0 #ffe1e624,0 0 10px #dc476817}
html[data-theme="dark"] .arrival-controls :is(.medicine-arrival-button.disconnected,.medicine-arrival-button.deviation){color:#ff94ab}
html[data-theme] .medicine-dot{box-shadow:0 0 6px currentColor}
html[data-theme] .workflow-settings{border-color:var(--card-edge)}
html[data-theme] .theme-option{background:var(--control-fill);border-color:var(--glass-edge);box-shadow:var(--control-shadow)}
html[data-theme] .theme-option:has(input:checked){background:var(--selected-fill);border-color:var(--blue-rim);box-shadow:var(--control-shadow),0 0 12px #3587e81a}
html[data-theme] :is(.theme-option-icon,.device-fit-note){background:var(--card-fill);border-color:var(--glass-edge);box-shadow:var(--control-shadow)}
html[data-theme] dialog{background:var(--card-fill);border-color:var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-top),0 24px 80px #0005}
html[data-theme] .update-symbol{background:var(--blue-gradient);border-color:var(--blue-rim);box-shadow:inset 0 1px 0 #eafaff80,inset 0 -2px 3px #08247a40,0 4px 20px #2875e433}
html[data-theme] .update-dialog .update-version{background:var(--selected-fill);border-color:var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-top)}

@media(hover:hover){html[data-theme] :is(.daily-shortcuts button,.menu-card,.external-grid a,.external-grid button,.header .right button):hover{filter:brightness(1.06)}}
html[data-theme] :is(.daily-shortcuts button,.arrival-button,.header .right button,.menu-card):active:not(:disabled){transform:translateY(1px)}
@media(max-width:900px){html[data-theme] .header .brand-logo{width:156px}}
@media(max-width:380px){html[data-theme] .header .brand-logo{width:132px}html[data-theme] .daily-shortcuts button strong::after{display:none}}

/* Compact, spring-like motion for both finishes; content stays interactive.
   Page motion itself is keyed by navigation in motion.js, never by polling. */
html[data-theme] #main{animation:none}
@supports(overflow-x:clip){html[data-theme] .workspace-area{overflow-x:clip}}
@media(prefers-reduced-motion:no-preference){
 html[data-theme]{--motion-spring:cubic-bezier(.22,1,.36,1)}
 html[data-theme] .login-wrap .login-card{animation:kfs-launch-in 480ms var(--motion-spring) both}
 html[data-theme] .login-wrap>.install-guide{animation:kfs-launch-in 460ms var(--motion-spring) 55ms backwards}
 html[data-theme] dialog[open]{animation:kfs-sheet-in 360ms var(--motion-spring);transform-origin:50% 65%}
 html[data-theme] dialog[open]::backdrop{animation:kfs-backdrop-in 230ms ease-out}
 html[data-theme] :is(button,.menu-card,.external-grid a){transition:transform 180ms var(--motion-spring),color 160ms ease,background-color 160ms ease}
 html[data-theme] :is(button,.menu-card,.external-grid a):active:not(:disabled){transform:scale(.97)}
 html[data-theme] :is(.mobile-nav button,.sidebar>button):active:not(:disabled){transform:scale(.94)}
 html[data-theme] .mobile-nav button.active .nav-icon{animation:kfs-tab-in 360ms var(--motion-spring)}
 html[data-theme] #toast.visible{animation:kfs-toast-in 260ms var(--motion-spring)}
}
@keyframes kfs-launch-in{from{opacity:.1;transform:translate3d(0,16px,0) scale(.986)}to{opacity:1;transform:none}}
@keyframes kfs-sheet-in{0%{opacity:0;transform:translate3d(0,20px,0) scale(.975)}75%{opacity:1;transform:translate3d(0,-1px,0) scale(1.002)}100%{opacity:1;transform:none}}
@keyframes kfs-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes kfs-tab-in{0%{transform:scale(.88)}65%{transform:scale(1.07)}100%{transform:none}}
@keyframes kfs-toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){
 html[data-theme] :is(#main,.login-wrap .login-card,.login-wrap>.install-guide,dialog[open],.mobile-nav button.active .nav-icon,#toast.visible){animation:none!important}
 html[data-theme] :is(button,.menu-card,.external-grid a){transition:none!important}
 html[data-theme] :is(button,.menu-card,.external-grid a):active:not(:disabled){transform:none!important}
 html[data-theme] dialog[open]::backdrop{animation:none!important}
}
/* Arrival titles stay readable text buttons, without the glass coating. */
html[data-theme] .arrival-list .stop-name,html[data-theme] .arrival-list .stop-name:hover{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:none!important;color:var(--ink)!important}
html[data-theme] #arrival-bills{color:var(--ink)!important}html[data-theme] #arrival-bills[aria-pressed="true"]{background:linear-gradient(125deg,#245bc7,#253ea7)!important;color:#fff!important;border-color:var(--blue-rim)!important}
.detail-receipt-value{display:flex;align-items:center;justify-content:space-between;gap:12px}.detail-receipt-value button{flex:none;min-height:36px;padding:6px 10px;font-size:12px;white-space:nowrap}.detail-receipt-value button:disabled{cursor:default}
.navigation-feedback{position:fixed;z-index:2147483000;left:50%;top:max(20px,env(safe-area-inset-top));transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);padding:14px 20px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#102b3b);box-shadow:0 10px 40px #0003;font-size:14px;pointer-events:none}.navigation-feedback .alert-button-spinner{width:18px;height:18px}.app-version{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 10px}.app-version>span{white-space:nowrap}

/* Selected arrival controls retain both their fill and readable text. */
html[data-theme] .arrival-heading .btn-small{color:var(--ink)!important}
html[data-theme] .arrival-heading .btn-small[aria-pressed="true"]{background:linear-gradient(125deg,#245bc7,#253ea7)!important;color:#fff!important;border-color:var(--blue-rim)!important;box-shadow:var(--control-shadow)}
@media(max-width:700px){html[data-theme] .arrival-heading .actions .btn-small{font-size:13px}}

html[data-theme] :is(.home-vehicle-refresh,.route-title),
html[data-theme] :is(.home-vehicle-refresh,.route-title):hover{
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;filter:none!important;text-shadow:none!important;color:var(--ink)!important;
}
html[data-theme] :is(.home-vehicle-refresh,.route-title,.stop-name)::before,
html[data-theme] :is(.home-vehicle-refresh,.route-title,.stop-name)::after{content:none!important}
html[data-theme] :is(.home-vehicle-refresh,.route-title,.stop-name):focus:not(:focus-visible){outline:none}
html[data-theme] .work-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;background:transparent;border-radius:0}
html[data-theme] .work-switch button{min-height:52px;background:var(--surface);border:2px solid var(--line);color:var(--ink);box-shadow:none;font-weight:700;opacity:1}
html[data-theme] .work-switch button:hover{border-color:var(--blue);background:var(--surface-soft)}
html[data-theme] .work-switch button.active{background:#225edf;border:2px solid #225edf;color:#fff;box-shadow:0 3px 8px #174cba30;opacity:1}
html[data-theme] #work-entry [data-work-submit]:not(:disabled){background:#225edf;border-color:#225edf;color:#fff;box-shadow:0 3px 8px #174cba30;opacity:1}
html[data-theme] .work-switch button:disabled{cursor:wait;opacity:.65}
html[data-theme] #work-entry [data-work-submit]:disabled{background:var(--surface-soft);color:var(--muted);border-color:var(--line);box-shadow:none}

html[data-theme] .session-splash .brand-logo{width:min(250px,65vw);flex:none}
html[data-theme="dark"] .session-splash-orbit{border-color:#a8cdec40;border-right-color:#8bd8ff}

/* Optional palettes use the same functional components as the basic themes. */
html[data-theme-choice="blue"]{--page:#edf6ff;--surface:#fbfdff;--surface-soft:#e1f0ff;--ink:#102e50;--muted:#49637d;--line:#c8dff4;--accent:#165aca;--blue:#165aca;--focus:#165aca;--card-edge:#bfdaf3;--glass-edge:#b7d6f3;--card-fill:linear-gradient(140deg,#fff,#edf7ff);--header-fill:linear-gradient(125deg,#f5fbff,#dcefff);--selected-fill:linear-gradient(135deg,#dcefff,#c7e4ff);--selected-ink:#164f99;--blue-gradient:linear-gradient(125deg,#1769db,#0d49b7);--teal-gradient:linear-gradient(125deg,#007d83,#00606e);--blue-rim:#327fe6;--teal-rim:#008f97}
html[data-theme-choice="lavender"]{--page:#f2efff;--surface:#fdfcff;--surface-soft:#e9e3ff;--ink:#24204d;--muted:#5e5a7f;--line:#d8cff6;--accent:#6338c7;--blue:#5735bd;--focus:#6338c7;--card-edge:#d9cff4;--glass-edge:#d1c5f5;--card-fill:linear-gradient(140deg,#fff,#f4f0ff);--header-fill:linear-gradient(125deg,#fbf9ff,#e8dfff);--selected-fill:linear-gradient(135deg,#eee6ff,#d7c8ff);--selected-ink:#4a2a9e;--blue-gradient:linear-gradient(125deg,#7953d9,#5730b9);--teal-gradient:linear-gradient(125deg,#2d77c9,#175399);--blue-rim:#9573e5;--teal-rim:#3d87d7}
html[data-theme-choice="mint"]{--page:#eaf8f4;--surface:#fcfffd;--surface-soft:#def4ed;--ink:#123c39;--muted:#496d68;--line:#c4e6dd;--accent:#007e68;--blue:#00775f;--focus:#007e68;--card-edge:#c3e3da;--glass-edge:#b4e1d5;--card-fill:linear-gradient(140deg,#fff,#edf9f5);--header-fill:linear-gradient(125deg,#f7fffb,#d5f3e9);--selected-fill:linear-gradient(135deg,#dcf7ec,#c2eee0);--selected-ink:#006d58;--blue-gradient:linear-gradient(125deg,#00856a,#006e58);--teal-gradient:linear-gradient(125deg,#007982,#005d73);--blue-rim:#1ca687;--teal-rim:#1396a2}
html[data-theme-choice="slate"]{--page:#eaf1f7;--surface:#fcfdff;--surface-soft:#e2edf6;--ink:#17344e;--muted:#526c80;--line:#c8dae8;--accent:#32608a;--blue:#315d88;--focus:#32608a;--card-edge:#c5d8e7;--glass-edge:#b8cedf;--card-fill:linear-gradient(140deg,#fff,#eef5fa);--header-fill:linear-gradient(125deg,#f7fafc,#dce9f2);--selected-fill:linear-gradient(135deg,#e1edf7,#cbddec);--selected-ink:#284e70;--blue-gradient:linear-gradient(125deg,#456f9b,#31577f);--teal-gradient:linear-gradient(125deg,#27698a,#164d6e);--blue-rim:#638ab0;--teal-rim:#4386a3}
html[data-theme-choice="navy"]{--page:#061426;--surface:#10253a;--surface-soft:#19334c;--ink:#f1f7ff;--muted:#b5c9db;--line:#304d68;--accent:#8fc4ff;--blue:#9bcaff;--focus:#96caff;--card-edge:#284a69;--glass-edge:#3c607f;--card-fill:linear-gradient(140deg,#18324a,#0d2031);--header-fill:linear-gradient(125deg,#0e2947,#061426);--selected-fill:linear-gradient(135deg,#244f80,#173b64);--selected-ink:#d4edff;--blue-gradient:linear-gradient(125deg,#176adc,#0c43ae);--teal-gradient:linear-gradient(125deg,#007e87,#00606f);--blue-rim:#478eea;--teal-rim:#1ba3a9}
html[data-theme-choice="charcoal"]{--page:#1b2027;--surface:#262c34;--surface-soft:#333a45;--ink:#f2f4f8;--muted:#c0c8d3;--line:#4c5665;--accent:#c8b7ff;--blue:#d1c5ff;--focus:#c8b7ff;--card-edge:#4b5562;--glass-edge:#5a6573;--card-fill:linear-gradient(140deg,#303741,#232831);--header-fill:linear-gradient(125deg,#333a43,#20262e);--control-fill:linear-gradient(180deg,#3d4550,#303640);--selected-fill:linear-gradient(135deg,#55458b,#40366b);--selected-ink:#eee8ff;--blue-gradient:linear-gradient(125deg,#7050c7,#4e368e);--teal-gradient:linear-gradient(125deg,#476b8c,#34516c);--blue-rim:#9b83e0;--teal-rim:#6287a6;--ready-fill:linear-gradient(145deg,#3b4757,#303b48);--disabled-fill:linear-gradient(145deg,#3a3e45,#30343a)}
html[data-theme-choice="lemon"]{--page:#fff9e4;--surface:#fffef8;--surface-soft:#fff2c7;--ink:#3e3519;--muted:#716344;--line:#eadba7;--accent:#795b00;--blue:#6c5100;--focus:#806000;--card-edge:#ead99d;--glass-edge:#e2ca76;--card-fill:linear-gradient(140deg,#fffef9,#fff7df);--header-fill:linear-gradient(125deg,#fffdf5,#fff0bf);--selected-fill:linear-gradient(135deg,#fff2bd,#ffe385);--selected-ink:#674b00;--blue-gradient:linear-gradient(125deg,#ffe269,#e8b821);--teal-gradient:linear-gradient(125deg,#2465bc,#144b91);--blue-rim:#d8ab1e;--teal-rim:#3c76c2}
html[data-theme-choice="pink"]{--page:#fff1f5;--surface:#fffcfd;--surface-soft:#ffebf0;--ink:#4b2235;--muted:#765769;--line:#efd3dc;--accent:#a33762;--blue:#9b315d;--focus:#a33762;--card-edge:#efcad7;--glass-edge:#e7bfd0;--card-fill:linear-gradient(140deg,#fff,#fff1f6);--header-fill:linear-gradient(125deg,#fffafd,#ffe5ee);--selected-fill:linear-gradient(135deg,#ffe3ed,#f8cbdc);--selected-ink:#81254a;--blue-gradient:linear-gradient(125deg,#b44370,#922950);--teal-gradient:linear-gradient(125deg,#326caa,#20518a);--blue-rim:#c65a83;--teal-rim:#5187ba}
html[data-theme-choice="lemon"] :is(button.primary,.primary,.tabs button.active,.work-switch button.active,.work-clock-mode button.active){color:#352900}
html[data-theme-choice="lemon"] .daily-shortcuts button:not([data-open="work"]) :is(strong,small,.shortcut-icon){color:#352900}
html[data-theme-choice="lemon"] .daily-shortcuts button:not([data-open="work"]){color:#352900}
html[data-theme-choice] .arrival-heading .btn-small[aria-pressed="true"],html[data-theme-choice] #arrival-bills[aria-pressed="true"]{background:var(--blue-gradient)!important;color:#fff!important}
html[data-theme-choice="lemon"] .arrival-heading .btn-small[aria-pressed="true"],html[data-theme-choice="lemon"] #arrival-bills[aria-pressed="true"]{color:#352900!important}
html[data-theme-choice] .work-switch button.active,html[data-theme-choice] #work-entry [data-work-submit]:not(:disabled){background:var(--blue-gradient);border-color:var(--blue-rim)}
html[data-theme-choice="lemon"] .work-switch button.active,html[data-theme-choice="lemon"] #work-entry [data-work-submit]:not(:disabled){color:#352900}

/* The thumbnails show a sample home screen with fictitious information. */
.appearance-help{font-size:15px;line-height:1.5;color:var(--muted)}
html[data-theme] .theme-option-preview{min-height:110px;padding:10px 14px;gap:15px}
.theme-preview{display:block;flex:none;width:72px;height:112px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}
.theme-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.theme-option-copy{flex:1;min-width:0;text-align:left}.theme-option-copy strong{display:block;font-size:16px;line-height:1.35;color:var(--ink)}.theme-option-copy small{display:block;margin-top:6px;font-size:13px;line-height:1.4;color:var(--muted)}
html[data-theme] dialog.theme-picker-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;box-sizing:border-box}
.theme-picker-heading h2{font-size:22px;margin:0 0 8px}.theme-picker-heading p,.theme-picker-dialog [data-theme-picker-list]>p{font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 16px}
.theme-picker-dialog [data-theme-picker-main],.theme-picker-dialog [data-theme-picker-list]{display:grid;gap:9px}
.theme-picker-dialog [hidden]{display:none!important}
html[data-theme] .theme-picker-dialog :is(.theme-picker-basic,.theme-picker-more,.theme-picker-design){display:flex;align-items:center;gap:14px;width:100%;min-height:62px;padding:13px 15px;border:1px solid var(--line);border-radius:13px;background:var(--control-fill);text-align:left;color:var(--ink)}
.theme-picker-basic,.theme-picker-more{flex-wrap:wrap}.theme-picker-basic strong,.theme-picker-more strong{font-size:17px}.theme-picker-basic small,.theme-picker-more small{display:block;flex-basis:100%;font-size:13px;color:var(--muted)}
.theme-picker-more span,.theme-picker-design>span:last-child{margin-left:auto;font-size:23px;color:var(--blue)}
html[data-theme] .theme-picker-dialog .theme-picker-design{min-height:120px}.theme-picker-design .theme-preview{height:108px;width:68px}
html[data-theme] .theme-picker-dialog :is(.theme-picker-later,.theme-picker-back){min-height:44px;margin-top:12px;background:transparent;color:var(--blue);border:0;box-shadow:none;font-size:15px}
.theme-more{border:1px solid var(--glass-edge);border-radius:13px;background:var(--control-fill)}
.theme-more summary{display:flex;align-items:center;gap:8px;min-height:58px;padding:12px 15px;cursor:pointer;list-style:none;color:var(--ink)}
.theme-more summary::-webkit-details-marker{display:none}.theme-more summary strong{font-size:16px}.theme-more summary small{font-size:13px;color:var(--muted);margin-left:auto}.theme-more summary span{color:var(--blue);font-size:20px}
.theme-more-list{display:grid;gap:9px;padding:0 9px 9px}

/* Shared dialog surfaces and controls follow every selected palette. */
html[data-theme] dialog .dialog-header h2,html[data-theme] :is(.time-choice-popup,.operation-error-popup,.leave-dialog) h2{color:var(--ink)}
html[data-theme] dialog .key-values dt,html[data-theme] .time-choice-help,html[data-theme] .time-select-help,html[data-theme] .time-select-field>span{color:var(--muted)}
html[data-theme] dialog .key-values :is(dt,dd){border-color:var(--line)}
html[data-theme] dialog .key-values dd{color:var(--ink)}
html[data-theme] .dialog-body .record-card+.record-card{margin-top:8px}
html[data-theme] .time-choice-popup{background:var(--card-fill)!important;color:var(--ink)}
html[data-theme] .time-choice-popup .time-select-field select{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme] .leave-confirm .leave-review{padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}
html[data-theme] .leave-confirm .leave-review dd{color:var(--ink);font-weight:650}
html[data-theme] .leave-dialog .leave-error{color:var(--red);border-color:var(--red);background:var(--surface)}
html[data-theme] dialog[open]{animation:kfs-sheet-in 180ms ease-out}
html[data-theme] dialog::backdrop{backdrop-filter:none}
html[data-theme] .medicine-panel-head .medicine-hide-button{min-height:32px;padding:4px 8px;border-radius:8px;font-size:13px;white-space:nowrap}
html[data-theme] .medicine-panel-head .medicine-caution-button{min-height:32px;padding:4px 7px;font-size:12px}
@media(max-width:410px){
 html[data-theme] .medicine-panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px}
 html[data-theme] .medicine-title-wrap,html[data-theme] .medicine-switch-wrap{display:contents}
 html[data-theme] .medicine-title-wrap h2{grid-column:1;grid-row:1;min-width:0;font-size:15px}
 html[data-theme] .medicine-caution-button{grid-column:1;grid-row:2;justify-self:start;min-height:32px;padding:4px 7px;font-size:12px}
 html[data-theme] .medicine-panel-head .medicine-hide-button{grid-column:2;grid-row:1;justify-self:end;min-height:32px}
 html[data-theme] .medicine-switch{grid-column:2;grid-row:2;justify-self:end}
}
@media(prefers-reduced-motion:reduce){html[data-theme] dialog[open]{animation:none}}
html[data-theme] .quick-install{background:var(--blue-gradient);color:#fff;border-color:var(--blue-rim);box-shadow:var(--control-shadow)}
html[data-theme-choice="lemon"] .quick-install{color:#352900}
html[data-theme] .quick-install-status{color:var(--muted)}
html[data-theme] .session-splash{color:var(--muted)}
html[data-theme] .session-splash-orbit{border-color:var(--line);border-right-color:var(--accent)}

/* Color choices show real sample screens and can be enlarged before selection. */
.theme-option-wrap{min-width:0}.theme-option-wrap .theme-preview{width:92px;height:150px}
html[data-theme] .theme-option-wrap .theme-enlarge{width:100%;min-height:40px;margin-top:5px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--blue);font-size:14px}
.theme-picker-basics,.theme-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
html[data-theme] .theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design){display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:9px;text-align:left}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-preview{width:100%;height:155px;border-radius:9px}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-preview img{width:100%;height:100%;object-fit:cover;object-position:top}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-option-copy strong{font-size:16px}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-option-copy small{font-size:12px;line-height:1.35;margin-top:3px}
html[data-theme] .theme-picker-dialog .theme-picker-system{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:13px 15px;min-height:60px;border:1px solid var(--line);border-radius:13px;background:var(--control-fill);color:var(--ink);text-align:left}
.theme-picker-system strong{font-size:16px}.theme-picker-system small{font-size:13px;color:var(--muted)}
.theme-picker-dialog .theme-picker-more{min-height:60px}.theme-picker-dialog .theme-picker-more small{flex-basis:auto;margin-right:auto}
.theme-detail{text-align:center;min-width:0}.theme-detail h2,.theme-detail h3{margin:4px 0 8px;color:var(--ink);font-size:20px}.theme-detail p{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.5}
.theme-detail img{display:block;width:auto;height:auto;max-width:100%;max-height:min(60dvh,520px);margin:8px auto 14px;border:1px solid var(--line);border-radius:12px;object-fit:contain}
.theme-detail-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.theme-detail-actions button,.theme-detail-choose{min-height:48px}.theme-detail-choose{width:100%}
html[data-theme] dialog.theme-detail-dialog{width:min(460px,calc(100vw - 24px));padding:18px;box-sizing:border-box}
@media(max-width:360px){.theme-option-wrap .theme-preview{width:78px;height:132px}.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-preview{height:140px}}

/* Dialog text stays readable and fits narrow screens in every theme. */
html[data-theme] dialog :is(p,dd,li){overflow-wrap:anywhere}
html[data-theme] dialog :is(h2,h3){line-height:1.35;word-break:keep-all}
html[data-theme] dialog .key-values{grid-template-columns:minmax(100px,40%) minmax(0,1fr)}
html[data-theme] dialog .key-values dt{word-break:keep-all;line-height:1.45}
html[data-theme] dialog .key-values dd{line-height:1.45}
html[data-theme] dialog .dialog-header{gap:10px;align-items:center}
html[data-theme] dialog .dialog-header h2{min-width:0;flex:1}
html[data-theme] dialog .dialog-footer button{min-height:48px}
@media(max-width:360px){html[data-theme] dialog .dialog-header,html[data-theme] dialog .dialog-body{padding-left:14px;padding-right:14px}html[data-theme] dialog .key-values{grid-template-columns:minmax(96px,40%) minmax(0,1fr)}}

/* The complete gallery is visible from the first screen, with larger previews. */
html[data-theme] dialog.theme-picker-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 55px #071a2c40}
.theme-picker-heading h2:focus{outline:none}
.theme-picker-heading h2{font-size:23px;letter-spacing:-.02em}
.theme-picker-heading p{font-size:15px;line-height:1.55;margin:0 0 6px;word-break:keep-all}
.theme-picker-section{min-width:0}
.theme-picker-section h3{margin:12px 0 8px;font-size:17px;color:var(--ink)}
.theme-picker-section p{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:1.5}
html[data-theme] .theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design){gap:8px;padding:9px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft);box-shadow:none}
html[data-theme] .theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design):hover{border-color:var(--accent);background:var(--surface-soft)}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-preview{height:166px;border-radius:9px;box-shadow:0 3px 10px #102b3b1c}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-option-copy strong{font-size:17px;line-height:1.35;word-break:keep-all}
.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-option-copy small{font-size:13px;line-height:1.4;margin-top:3px;word-break:keep-all}
html[data-theme] .theme-picker-dialog .theme-picker-system{margin-top:2px;background:var(--surface-soft);box-shadow:none}
.theme-picker-system strong{font-size:17px}.theme-picker-system small{font-size:14px;line-height:1.45}
html[data-theme] .theme-picker-dialog .theme-picker-later{width:100%;margin-top:0;font-size:15px}
html[data-theme] .theme-picker-dialog .theme-picker-back{display:block;text-align:left;margin:0 0 6px;padding:4px 2px;min-height:44px}
.theme-picker-dialog .theme-detail img,.theme-detail-dialog .theme-detail img{width:min(100%,320px);max-height:none;margin:12px auto 16px;box-shadow:0 6px 24px #102b3b24}
.theme-picker-dialog .theme-detail-choose{position:sticky;bottom:0;z-index:1;min-height:52px;font-size:16px}
html[data-theme] .theme-reopen{width:100%;margin-top:12px;min-height:46px;border-color:var(--line);background:var(--surface-soft);color:var(--blue);box-shadow:none;font-size:15px}
@media(max-width:360px){.theme-picker-dialog :is(.theme-picker-basic,.theme-picker-design) .theme-preview{height:148px}}

/* Work start and end follow the current palette and remain distinguishable. */
html[data-theme]{--work-start-fill:var(--blue-gradient);--work-start-edge:var(--blue-rim);--work-start-ink:#fff;--work-end-fill:var(--teal-gradient);--work-end-edge:var(--teal-rim);--work-end-ink:#fff}
html[data-theme-choice="lemon"]{--work-start-ink:#352900}
html[data-theme] :is(.work-key-info,.work-recorded-times,#work-entry){background:var(--card-fill);border-color:var(--line);color:var(--ink)}
html[data-theme] .work-key-info{border-top:3px solid var(--blue-rim)}
html[data-theme] #work-entry .work-switch{background:transparent;padding:0;gap:8px}
html[data-theme] #work-entry .work-switch button:not(.active){background:var(--card-fill);border:1px solid var(--line);color:var(--ink);box-shadow:var(--card-shadow)}
html[data-theme] #work-entry .work-switch button:not(.active):hover{border-color:var(--focus)}
html[data-theme] #work-entry[data-work-mode="start"] .work-switch [data-work-action="start"].active,
html[data-theme] #work-entry[data-work-mode="start"] [data-work-submit]:not(:disabled){background:var(--work-start-fill);border:1px solid var(--work-start-edge);color:var(--work-start-ink);box-shadow:inset 0 1px 0 #ffffff66,0 4px 12px #102b3b24;opacity:1}
html[data-theme] #work-entry[data-work-mode="end"] .work-switch [data-work-action="end"].active,
html[data-theme] #work-entry[data-work-mode="end"] [data-work-submit]:not(:disabled){background:var(--work-end-fill);border:1px solid var(--work-end-edge);color:var(--work-end-ink);box-shadow:inset 0 1px 0 #ffffff66,0 4px 12px #102b3b24;opacity:1}
html[data-theme] #work-entry .work-switch button:disabled{opacity:.65}
html[data-theme] #work-entry [data-work-submit]:disabled{background:var(--surface-soft);color:var(--muted);border:1px solid var(--line);box-shadow:none;opacity:1}
html[data-theme] #work-entry :is(.time-picker-trigger,.work-favorite-trigger){background:var(--surface-soft);border:1px solid var(--line);color:var(--ink);box-shadow:none}
html[data-theme] #work-entry .time-picker-trigger>span{color:var(--muted);font-size:13px}
html[data-theme] #work-entry .work-clock-mode{font-size:13px;line-height:1.45}
html[data-theme] #work-entry .work-favorite-trigger{font-size:14px}
html[data-theme]{--mileage-fill:#fff4d8;--mileage-edge:#956600;--mileage-ink:#302300;--mileage-hint:#654a14}
html[data-theme="dark"]{--mileage-fill:#264256;--mileage-edge:#8ac8e8;--mileage-ink:#fff;--mileage-hint:#d3e7f4}
html[data-theme-choice="blue"]{--mileage-fill:#fff4d6;--mileage-edge:#967000}
html[data-theme-choice="lavender"]{--mileage-fill:#fff1dc;--mileage-edge:#9c6500}
html[data-theme-choice="mint"]{--mileage-fill:#fff4d7;--mileage-edge:#87610a}
html[data-theme-choice="slate"]{--mileage-fill:#fff2dd;--mileage-edge:#8e6004}
html[data-theme-choice="navy"]{--mileage-fill:#26516a;--mileage-edge:#81cbe8;--mileage-hint:#dbeefa}
html[data-theme-choice="charcoal"]{--mileage-fill:#414054;--mileage-edge:#c9b5ef;--mileage-hint:#e1daef}
html[data-theme-choice="lemon"]{--mileage-fill:#e4f1ff;--mileage-edge:#3a6696;--mileage-ink:#122c49;--mileage-hint:#3c5773}
html[data-theme-choice="pink"]{--mileage-fill:#fff1da;--mileage-edge:#926100}
html[data-theme] #work-entry .closing-mileage input{background:var(--mileage-fill);border:2px solid var(--mileage-edge);color:var(--mileage-ink)}
html[data-theme] #work-entry .closing-mileage input::placeholder{font-size:16px;font-weight:500;color:var(--mileage-hint);opacity:1}
html[data-theme] #work-entry .time-control-label{font-size:14px}
html[data-theme] :is(#work-previous,.work-recorded-times strong){color:var(--blue)}
html[data-theme] .oil-summary{background:var(--surface-soft);color:var(--ink)}
html[data-theme] .fuel-entry-form :is(.fuel-assignment,.fuel-total-row){background:var(--surface-soft);color:var(--ink)}
html[data-theme] .fuel-entry-form .fuel-assignment{font-size:13px;line-height:1.45}
html[data-theme] .fuel-entry-form .fuel-total-row :is(label,input){color:var(--blue)}
html[data-theme] .fuel-amount-help{font-size:14px;line-height:1.5;word-break:keep-all}
html[data-theme] .work-registration strong{color:var(--blue)}
html[data-theme] .work-key-info label{font-size:13px}
html[data-theme] #work-fuel-closing-help,html[data-theme] #arrival-time-help{font-size:14px;line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
html[data-theme] #arrival-count{font-size:13px;line-height:1.4}
html[data-theme] .operation-error-popup .failure-message{text-align:left;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
html[data-theme] .operation-error-popup>button.primary{background:var(--blue-gradient);border-color:var(--blue-rim);color:#fff}
html[data-theme-choice="lemon"] .operation-error-popup>button.primary{color:#352900}
html[data-theme] .popup-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
html[data-theme] .popup-actions button{min-width:0;white-space:normal;word-break:keep-all;line-height:1.35}
html[data-theme] .leave-confirm .leave-review{grid-template-columns:minmax(72px,30%) minmax(0,1fr);gap:10px;line-height:1.55}
html[data-theme] .leave-confirm .leave-review :is(dt,dd){min-width:0;overflow-wrap:anywhere}
html[data-theme] .leave-content-heading p,html[data-theme] .leave-attachment,html[data-theme] .leave-caution{font-size:14px;line-height:1.5;word-break:keep-all}
html[data-theme] .leave-section-heading .btn-small{font-size:14px;min-height:40px;line-height:1.35;white-space:normal}
html[data-theme] .menu-card p{font-size:13px;line-height:1.35;word-break:keep-all}
html[data-theme] .menu-card p{white-space:nowrap;font-size:12px;letter-spacing:-.3px}
html[data-theme] .card-grid{grid-auto-rows:74px}
html[data-theme] .arrival-list .arrival-button[data-related-pending="true"]{border:2px dashed var(--blue-rim,var(--blue));background:var(--selected-fill);color:var(--selected-ink);opacity:1}
html[data-theme] .arrival-list .arrival-button[data-related-pending="true"] small{display:block;font-size:10px;line-height:1.2}
html[data-theme] .route-reorder>p.small{font-size:14px;line-height:1.5;word-break:keep-all}
html[data-theme] .route-order-count{word-break:keep-all;overflow-wrap:anywhere}
html[data-theme] #work-entry[data-work-mode] .work-switch button.active:disabled{opacity:.65}
@media(max-width:350px){html[data-theme] .leave-form-grid .leave-date-field{grid-column:1/-1}}

/* Custom palettes use their main color for the work shortcut. */
html:is([data-theme-choice="blue"],[data-theme-choice="lavender"],[data-theme-choice="mint"],[data-theme-choice="slate"],[data-theme-choice="navy"],[data-theme-choice="charcoal"],[data-theme-choice="lemon"],[data-theme-choice="pink"]) .daily-shortcuts button[data-open="work"]{background:var(--blue-gradient);border-color:var(--blue-rim)}
html:is([data-theme-choice="blue"],[data-theme-choice="lavender"],[data-theme-choice="mint"],[data-theme-choice="slate"],[data-theme-choice="navy"],[data-theme-choice="charcoal"],[data-theme-choice="lemon"],[data-theme-choice="pink"]) .daily-shortcuts button[data-open="arrivals"]{background:var(--teal-gradient);border-color:var(--teal-rim)}
html[data-theme-choice="lemon"] .daily-shortcuts button[data-open="work"] :is(strong,small,.shortcut-icon){color:#352900}
html[data-theme-choice="lemon"] .daily-shortcuts button[data-open="arrivals"] :is(strong,small,.shortcut-icon){color:#fff}

/* Settings start with a short menu; the design gallery has visible previews. */
html[data-theme] .settings-menu{padding:16px;gap:10px}
html[data-theme] .settings-menu h2{font-size:19px;margin:2px 2px 5px}
html[data-theme] .settings-menu-button{min-height:76px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);box-shadow:none}
html[data-theme] .settings-menu-button strong{font-size:17px;line-height:1.4;color:var(--ink)}
html[data-theme] .settings-menu-button small{font-size:14px;line-height:1.4;color:var(--muted);opacity:1;word-break:keep-all}
html[data-theme] .settings-menu-button>span:last-child{color:var(--blue)}
/* Settings use the selected palette while keeping each action easy to scan. */
html[data-theme] .settings-menu{padding:22px;gap:20px;border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}
.settings-menu-heading{padding:1px 2px 0}
.settings-menu-kicker{display:block;margin-bottom:7px;color:var(--blue);font-size:12px;font-weight:750;letter-spacing:.01em}
html[data-theme] .settings-menu .settings-menu-heading h2{margin:0;color:var(--ink);font-size:21px;line-height:1.35;letter-spacing:-.03em}
.settings-menu-heading p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.settings-menu-list{display:grid;gap:9px;min-width:0}
html[data-theme] .settings-menu .settings-menu-button{display:grid;grid-template-columns:46px minmax(0,1fr) 20px;align-items:center;gap:13px;min-height:80px;padding:13px 15px;text-align:left;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft);box-shadow:none}
html[data-theme] .settings-menu .settings-menu-button:hover{border-color:var(--blue);background:var(--surface)}
html[data-theme] .settings-menu .settings-menu-icon{display:grid;place-items:center;width:46px;height:46px;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--blue)}
.settings-menu-icon svg{width:24px;height:24px;display:block}
.settings-menu-copy{min-width:0}
html[data-theme] .settings-menu .settings-menu-copy strong{font-size:16px;line-height:1.35;color:var(--ink)}
html[data-theme] .settings-menu .settings-menu-copy small{margin-top:5px;font-size:13px;line-height:1.4;color:var(--muted);opacity:1;word-break:keep-all}
html[data-theme] .settings-menu .settings-menu-arrow{justify-self:end;font-size:25px;line-height:1;color:var(--blue);font-weight:400}
@media(max-width:360px){html[data-theme] .settings-menu{padding:16px;gap:16px}html[data-theme] .settings-menu .settings-menu-button{grid-template-columns:40px minmax(0,1fr) 16px;gap:10px;padding:12px}html[data-theme] .settings-menu .settings-menu-icon{width:40px;height:40px;border-radius:12px}}
html[data-theme] .settings-detail>button[data-settings-back]{min-height:44px;font-size:15px;margin-bottom:4px}
.appearance-current{font-size:14px;color:var(--blue);font-weight:700;line-height:1.45;word-break:keep-all}
.appearance-settings .appearance-help{word-break:keep-all}
.appearance-settings .theme-options{display:block;margin:16px 0}
.appearance-settings .theme-options h3{font-size:17px;margin:18px 0 10px;color:var(--ink)}
.settings-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-theme] .settings-theme-grid .theme-option-preview{display:flex;flex-direction:column;align-items:stretch;min-height:0;gap:8px;padding:9px}
.settings-theme-grid .theme-option-wrap .theme-preview{width:100%;height:150px;border-radius:9px}
.settings-theme-grid .theme-option-copy strong{font-size:16px;line-height:1.35;word-break:keep-all}
.settings-theme-grid .theme-option-copy small{font-size:13px;line-height:1.4;word-break:keep-all}
.settings-theme-grid .theme-option-check{position:absolute;top:13px;right:13px;margin:0;padding:3px 7px;border-radius:99px;background:var(--surface);font-weight:800}
.settings-theme-system{margin-top:10px}
.settings-theme-system .theme-option-wrap .theme-preview{width:60px;height:90px}
@media(max-width:350px){.settings-theme-grid .theme-option-wrap .theme-preview{height:132px}}

/* Soft, theme-colored light around today's assignment; no overlays on controls. */
html[data-theme]{--home-glow-a:#91c9f34f;--home-glow-b:#b5e9dc40;--home-orb-a:#e0f8fa83;--home-orb-b:#99d9fb75;--home-arc:#a3dbed42}
html[data-theme="dark"]{--home-glow-a:#267bcb35;--home-glow-b:#198e8830;--home-orb-a:#32649142;--home-orb-b:#1d6a8538;--home-arc:#4b84ba28}
html[data-theme-choice="blue"]{--home-glow-a:#77c6ff4d;--home-glow-b:#99e4e342;--home-orb-a:#ebfbffb0;--home-orb-b:#94d3ff80;--home-arc:#b1dffc55}
html[data-theme-choice="lavender"]{--home-glow-a:#aa95f05a;--home-glow-b:#b6c8f248;--home-orb-a:#f6e9ffb0;--home-orb-b:#c0bcfa80;--home-arc:#c3b8f856}
html[data-theme-choice="mint"]{--home-glow-a:#7edfc04d;--home-glow-b:#98dde348;--home-orb-a:#e9fff3b0;--home-orb-b:#9be5d480;--home-arc:#9fddcf50}
html[data-theme-choice="slate"]{--home-glow-a:#91b6d657;--home-glow-b:#a8d4d548;--home-orb-a:#edf8ffb0;--home-orb-b:#afcde680;--home-arc:#adc8de50}
html[data-theme-choice="navy"]{--home-glow-a:#2572be42;--home-glow-b:#218d9433;--home-orb-a:#38628f50;--home-orb-b:#15688338;--home-arc:#3a79ac30}
html[data-theme-choice="charcoal"]{--home-glow-a:#71849e40;--home-glow-b:#51868433;--home-orb-a:#72889f38;--home-orb-b:#4868773c;--home-arc:#8092aa28}
html[data-theme-choice="lemon"]{--home-glow-a:#f3d15a4d;--home-glow-b:#b6d6f34a;--home-orb-a:#fff8d0b0;--home-orb-b:#d1e0fb85;--home-arc:#f3db9850}
html[data-theme-choice="pink"]{--home-glow-a:#ef9cbd55;--home-glow-b:#cfbaf04a;--home-orb-a:#fff0f7b0;--home-orb-b:#f2bbd580;--home-arc:#edbad654}
html[data-theme] #main:has(>.daily-heading){background:radial-gradient(ellipse 270px 155px at 92% 0%,var(--home-glow-a),transparent 78%),radial-gradient(ellipse 230px 160px at 8% 0%,var(--home-glow-b),transparent 80%)}
/* Backgrounds stay behind the content and fade smoothly at the edges. */
html[data-theme] .daily-heading{position:relative;background:transparent}
html[data-theme] body:has(.daily-heading) .header{background:radial-gradient(ellipse 260px 140px at 84% -20%,var(--home-glow-a),transparent 80%),linear-gradient(150deg,transparent 34%,var(--home-arc) 48%,var(--home-glow-a) 73%,transparent 100%),var(--surface)}
