 *{box-sizing:border-box;
-webkit-tap-highlight-color:transparent} html,body{margin:0;
min-height:100%;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
background:#f4f7fb;
color:#111827} button,input{font:inherit} button{cursor:pointer} .screen{min-height:100vh} .welcome{display:flex;
align-items:center;
justify-content:center;
padding:24px} .box{width:100%;
max-width:430px;
background:#fff;
border:1px solid #e5e7eb;
border-radius:28px;
padding:28px;
text-align:center;
box-shadow:0 16px 50px rgba(0,0,0,.08)} .logo{width:78px;
height:78px;
margin:0 auto 18px;
border-radius:24px;
background:#0b5cff;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:38px;
font-weight:900} h1,h2,h3{margin:0} p{line-height:1.45} .muted{color:#667085} .btn{min-height:48px;
border:0;
border-radius:14px;
padding:0 16px;
font-weight:750} .primary{background:#0b5cff;
color:#fff} .ghost{background:#fff;
border:1px solid #e5e7eb;
color:#111827} .soft{background:#eef4ff;
color:#1746a2} .danger{background:#fff0ef;
color:#c81e1e} .success{background:#e6f7ee;
color:#16865a} .full{width:100%} .top{position:sticky;
top:0;
z-index:10;
background:rgba(244,247,251,.96);
backdrop-filter:blur(16px);
border-bottom:1px solid #e5e7eb;
padding:calc(10px + env(safe-area-inset-top)) 14px 10px} .topin{max-width:900px;
margin:auto;
display:flex;
gap:10px;
align-items:center} .topDelete{min-height:36px;
height:36px;
padding:0 10px;
border:1px solid #fecaca;
border-radius:11px;
background:#fff;
color:#b42318;
font-size:13px;
font-weight:800;
white-space:nowrap} .wrap{max-width:900px;
margin:auto;
padding:16px 14px 90px} .card{background:#fff;
border:1px solid #e5e7eb;
border-radius:20px;
padding:16px;
margin-bottom:12px} .grid{display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px} .row{display:flex;
gap:10px;
align-items:center} .grow{flex:1;
min-width:0} .tabs{display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
margin-bottom:14px;
background:#e9eef7;
padding:5px;
border-radius:16px} .tab{min-height:44px;
border:0;
border-radius:12px;
background:transparent;
color:#667085;
font-weight:800} .tab.active{background:#fff;
color:#111827;
box-shadow:0 1px 4px rgba(0,0,0,.08)} .todayDate{font-size:14px;
color:#667085;
margin-top:5px} .todayGroup{display:flex;
flex-direction:column;
gap:12px} .todayGroupHead{display:flex;
gap:10px;
align-items:flex-start} .badge{display:inline-flex;
align-items:center;
min-height:28px;
padding:0 10px;
border-radius:999px;
background:#eef4ff;
color:#1746a2;
font-size:13px;
font-weight:750} .timeLine{font-size:17px;
font-weight:850;
margin-top:7px} .scheduleLine{font-size:14px;
color:#667085;
margin-top:5px;
line-height:1.45} .fab{position:fixed;
right:18px;
bottom:calc(22px + env(safe-area-inset-bottom));
width:60px;
height:60px;
border:0;
border-radius:19px;
background:#0b5cff;
color:#fff;
font-size:30px;
box-shadow:0 12px 30px rgba(11,92,255,.32)} input{width:100%;
min-height:46px;
border:1px solid #dfe3e8;
border-radius:12px;
padding:10px 12px;
background:#fff} .days{display:flex;
flex-wrap:wrap;
gap:8px;
margin:10px 0 14px} .day{border:1px solid #dfe3e8;
background:#fff;
border-radius:11px;
padding:10px 12px} .day.on{background:#0b5cff;
color:#fff;
border-color:#0b5cff} .timeRows{display:flex;
flex-direction:column;
gap:10px;
margin:10px 0 16px} .timeRow{background:#f8fafc;
border:1px solid #e5e7eb;
border-radius:14px;
padding:12px} .timeRowTop{font-weight:800;
margin-bottom:8px} .timeInputs{display:grid;
grid-template-columns:1fr 1fr;
gap:8px} .timeLabel{font-size:12px;
color:#667085;
margin-bottom:5px} .sheetbg{position:fixed;
inset:0;
background:rgba(0,0,0,.5);
z-index:50;
display:flex;
align-items:flex-end} .sheet{width:100%;
max-width:620px;
margin:auto;
background:#fff;
border-radius:24px 24px 0 0;
padding:18px 16px calc(22px + env(safe-area-inset-bottom));
max-height:88vh;
overflow:auto} .actions{display:flex;
gap:10px;
margin-top:15px} .actions button{flex:1} .tablewrap{overflow:auto;
border:1px solid #e5e7eb;
border-radius:16px;
background:#fff} .att{border-collapse:separate;
border-spacing:0;
min-width:max-content;
width:100%} .att th,.att td{height:46px;
min-width:48px;
border-right:1px solid #e5e7eb;
border-bottom:1px solid #e5e7eb;
text-align:center} .att .name{position:sticky;
left:0;
z-index:2;
min-width:150px;
text-align:left;
padding:0 10px;
background:#fff;
font-weight:700} .att thead th{background:#f8fafc} .present{background:#dff7e8!important;
color:#16865a;
font-weight:900} .month{display:flex;
align-items:center;
justify-content:space-between;
margin:10px 0 14px} .month button{width:44px;
height:44px;
border:0;
border-radius:12px} .ath{display:flex;
gap:8px;
align-items:center;
padding:10px 0;
border-bottom:1px solid #e5e7eb} .todayList{display:flex;
flex-direction:column;
gap:10px} .todayAthlete{display:flex;
align-items:center;
gap:10px;
min-height:58px;
background:#fff;
border:1px solid #e5e7eb;
border-radius:16px;
padding:10px 12px} .todayMark{min-width:108px;
min-height:42px;
border:0;
border-radius:12px;
font-weight:800} .todayMark.present{background:#dff7e8!important;
color:#16865a} .todayMark.absent{background:#f3f4f6;
color:#667085} .sessionDone{border-color:#b8e9cf;
background:#f1fbf6} .toast{position:fixed;
left:50%;
transform:translateX(-50%);
bottom:90px;
background:#111827;
color:#fff;
padding:10px 14px;
border-radius:12px;
z-index:99;
white-space:nowrap} .licensePlan{border:1px solid #e5e7eb;
background:#fff;
border-radius:18px;
padding:16px;
text-align:left;
margin-top:10px} .licensePrice{font-size:26px;
font-weight:900;
margin-top:4px} .licenseNote{font-size:13px;
color:#667085;
line-height:1.45;
margin-top:12px} .licenseStatus{padding:11px 12px;
border-radius:12px;
background:#f3f4f6;
color:#667085;
font-size:14px;
margin:14px 0} .licenseStatus.good{background:#e6f7ee;
color:#16865a} .licenseStatus.bad{background:#fff0ef;
color:#c81e1e} .authPhoneRow{display:flex;
align-items:center;
border:1px solid #dfe3e8;
border-radius:14px;
background:#fff;
overflow:hidden;
margin-top:14px} .authPrefix{padding-left:14px;
font-size:18px;
font-weight:850;
color:#111827;
white-space:nowrap} .authPhoneRow input{border:0;
margin:0;
padding-left:8px;
outline:none;
font-size:18px} .authCode{font-size:24px;
font-weight:850;
text-align:center;
letter-spacing:.22em} .authHint{font-size:13px;
color:#667085;
line-height:1.45;
margin-top:10px} .settingsSwitchRow{display:flex;align-items:center;justify-content:space-between;gap:16px}
.settingsSwitchLabel{font-size:18px;font-weight:800}
.pushSwitch{position:relative;width:58px;height:34px;border:0;border-radius:999px;padding:0;flex:0 0 auto;background:#e5484d;transition:background .18s ease}
.pushSwitch.on{background:#22a06b}
.pushSwitch:disabled{opacity:.55}
.pushSwitchKnob{position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.22);transition:transform .18s ease}
.pushSwitch.on .pushSwitchKnob{transform:translateX(24px)}

.themeSwitch{background:#cfd5df}
.themeSwitch.on{background:#0b5cff}
.themeActionIcon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:28px;line-height:1;color:#344054;transition:color .18s ease,transform .18s ease}
.themeActionIcon.sun{font-size:27px}


.statsPeriod{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.statsPeriodBtn{min-height:42px;border:0;border-radius:12px;background:#eef2f7;color:#667085;font-weight:800;padding:0 8px}
.statsPeriodBtn.active{background:#0b5cff;color:#fff}
.statsSummary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.statsMetric{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px;text-align:center}
.statsMetricValue{font-size:22px;font-weight:900}
.statsMetricLabel{font-size:12px;color:#667085;margin-top:3px}
.statsAthlete{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e5e7eb}
.statsAthlete:last-child{border-bottom:0}
.statsAthleteNums{font-size:13px;color:#667085;text-align:right;white-space:nowrap}
.statsPercent{font-size:16px;font-weight:900;color:#111827}
.athActions{display:flex;gap:8px;align-items:center}
.athActions .btn{min-height:38px;padding:0 12px}

.historyItem{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e5e7eb}
.historyItem:last-child{border-bottom:0}
.historyMain{min-width:0;flex:1}
.historyTitle{font-weight:900}
.historyMeta{font-size:13px;color:#667085;margin-top:4px}
.historyEmpty{color:#667085;line-height:1.45}
html[data-theme="dark"] .historyItem{border-color:#2c333d}
html[data-theme="dark"] .historyMeta,
html[data-theme="dark"] .historyEmpty{color:#9ca7b5}


.cancelledSession{background:#f7f7f8!important;border-color:#d7dbe0!important}
.cancelledBadge{background:#eef0f2!important;color:#667085!important}
.cancelledCell{background:#f3f4f6!important;color:#98a2b3!important;font-weight:800}
.dateHead{cursor:pointer;user-select:none}
.dateHead.cancelledDate{background:#eef0f2!important;color:#667085!important}
.dateHead.cancelledDate .muted{color:#98a2b3!important}
.cancelSessionBtn{margin-top:10px}
html[data-theme="dark"] .cancelledSession{background:#171a20!important;border-color:#343a45!important}
html[data-theme="dark"] .cancelledBadge{background:#272d36!important;color:#adb6c2!important}
html[data-theme="dark"] .cancelledCell{background:#20252d!important;color:#8e99a7!important}
html[data-theme="dark"] .dateHead.cancelledDate{background:#272d36!important;color:#adb6c2!important}



.installHint{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:80;max-width:520px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;box-shadow:0 18px 50px rgba(15,23,42,.22)}
.installHintTitle{font-size:17px;font-weight:900;padding-right:34px}
.installHintText{font-size:14px;line-height:1.45;color:#667085;margin-top:7px}
.installHintSteps{font-size:14px;font-weight:750;line-height:1.45;margin-top:10px}
.installHintClose{position:absolute;right:10px;top:10px;width:34px;height:34px;border:0;border-radius:10px;background:#f1f5f9;color:#475467;font-size:20px;line-height:1}
.installHintOk{width:100%;margin-top:13px}
html[data-theme="dark"] .installHint{background:#181c23;border-color:#2c333d}
html[data-theme="dark"] .installHintText{color:#9ca7b5}
html[data-theme="dark"] .installHintClose{background:#272d36;color:#d7dde5}

html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"],
html[data-theme="dark"] body{background:#0f1115;color:#f3f5f8}
html[data-theme="dark"] .box,
html[data-theme="dark"] .card,
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .tablewrap,
html[data-theme="dark"] .todayAthlete,
html[data-theme="dark"] .licensePlan,
html[data-theme="dark"] .authPhoneRow,
html[data-theme="dark"] input,
html[data-theme="dark"] .day{background:#181c23;color:#f3f5f8;border-color:#2c333d}
html[data-theme="dark"] .top{background:rgba(15,17,21,.96);border-bottom-color:#2c333d}
html[data-theme="dark"] .ghost{background:#181c23;color:#f3f5f8;border-color:#2c333d}
html[data-theme="dark"] .soft{background:#1c2b47;color:#a9c8ff}
html[data-theme="dark"] .danger{background:#3a1d21;color:#ff9b9b}
html[data-theme="dark"] .success{background:#18352a;color:#80deb0}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .todayDate,
html[data-theme="dark"] .scheduleLine,
html[data-theme="dark"] .timeLabel,
html[data-theme="dark"] .licenseNote,
html[data-theme="dark"] .authHint{color:#9ca7b5}
html[data-theme="dark"] .tabs{background:#20252d}
html[data-theme="dark"] .tab{color:#9ca7b5}
html[data-theme="dark"] .tab.active{background:#303741;color:#f3f5f8;box-shadow:none}
html[data-theme="dark"] .badge{background:#1c2b47;color:#a9c8ff}
html[data-theme="dark"] input{color:#f3f5f8;caret-color:#f3f5f8}
html[data-theme="dark"] input::placeholder{color:#747f8d}
html[data-theme="dark"] .day.on{background:#0b5cff;color:#fff;border-color:#0b5cff}
html[data-theme="dark"] .timeRow{background:#14181e;border-color:#2c333d}
html[data-theme="dark"] .sheetbg{background:rgba(0,0,0,.72)}
html[data-theme="dark"] .att th,
html[data-theme="dark"] .att td,
html[data-theme="dark"] .ath{border-color:#2c333d}
html[data-theme="dark"] .att .name{background:#181c23;color:#f3f5f8}
html[data-theme="dark"] .att thead th{background:#14181e;color:#f3f5f8}
html[data-theme="dark"] .present,
html[data-theme="dark"] .todayMark.present{background:#18352a!important;color:#80deb0}
html[data-theme="dark"] .todayMark.absent{background:#272d36;color:#adb6c2}
html[data-theme="dark"] .sessionDone{background:#14271e;border-color:#315d48}
html[data-theme="dark"] .month button{background:#272d36;color:#f3f5f8}
html[data-theme="dark"] .licenseStatus{background:#272d36;color:#adb6c2}
html[data-theme="dark"] .licenseStatus.good{background:#18352a;color:#80deb0}
html[data-theme="dark"] .licenseStatus.bad{background:#3a1d21;color:#ff9b9b}
html[data-theme="dark"] .authPrefix{color:#f3f5f8}
html[data-theme="dark"] .topDelete{background:#181c23;border-color:#65343b;color:#ff9b9b}
html[data-theme="dark"] .toast{background:#eef1f5;color:#111827}
html[data-theme="dark"] .themeSwitch{background:#4a5260}
html[data-theme="dark"] .themeSwitch.on{background:#3d7cff}
html[data-theme="dark"] .themeActionIcon{color:#ffd166}

html[data-theme="dark"] .statsPeriodBtn{background:#272d36;color:#adb6c2}
html[data-theme="dark"] .statsPeriodBtn.active{background:#3d7cff;color:#fff}
html[data-theme="dark"] .statsMetric{background:#14181e;border-color:#2c333d}
html[data-theme="dark"] .statsMetricLabel,
html[data-theme="dark"] .statsAthleteNums{color:#9ca7b5}
html[data-theme="dark"] .statsAthlete{border-color:#2c333d}
html[data-theme="dark"] .statsPercent{color:#f3f5f8}



.trashRow{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #e5e7eb}
.trashRow:last-child{border-bottom:0}
.trashMeta{font-size:12px;color:#667085;margin-top:4px;line-height:1.35}
.trashActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.updateHint{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:130;max-width:520px;margin:auto;background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:14px;box-shadow:0 18px 50px rgba(15,23,42,.22)}
.updateHintTitle{font-weight:900;font-size:16px}
.updateHintText{font-size:13px;color:#667085;margin-top:5px;line-height:1.4}
.updateHintActions{display:flex;gap:8px;margin-top:12px}
.updateHintActions button{flex:1}
html[data-theme="dark"] .trashRow{border-color:#2c333d}
html[data-theme="dark"] .trashMeta{color:#9ca7b5}
html[data-theme="dark"] .updateHint{background:#181c23;border-color:#2c333d}
html[data-theme="dark"] .updateHintText{color:#9ca7b5}

@media(max-width:700px){.grid{grid-template-columns:1fr}} 
.legalCard h3{margin-bottom:14px}
.legalSupportBtn{display:flex;align-items:center;justify-content:center;gap:9px;text-decoration:none}
.legalSupportBtn:visited{color:#1746a2}
.legalSupportBtn svg{width:20px;height:20px;flex-shrink:0}
.legalSupportNote{font-size:12px;line-height:1.5;color:#667085;margin:9px 0 17px;text-align:left}
.legalMenu{border-top:1px solid #e5e7eb}
.legalMenuLink,.legalMenuLink:visited{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 0;color:#111827;text-decoration:none;font-size:15px;font-weight:600;line-height:1.4;border-bottom:1px solid #e5e7eb}
.legalMenuLink span{min-width:0}
.legalChevron{width:18px;height:18px;flex-shrink:0;color:#98a2b3}
.legalMenuLink:active{color:#0b5cff}
.legalMenuLink:focus-visible,.legalSupportBtn:focus-visible,.legalMeta summary:focus-visible{outline:2px solid #0b5cff;outline-offset:4px;border-radius:5px}
.legalMeta{margin-top:4px}
.legalMeta summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;cursor:pointer;list-style:none;color:#667085;font-size:13px}
.legalMeta summary::-webkit-details-marker{display:none}
.legalMeta[open] summary .legalChevron{transform:rotate(90deg)}
.legalMetaText{font-size:12px;line-height:1.65;color:#667085;padding:0 0 4px;overflow-wrap:anywhere}
html[data-theme="dark"] .legalMenu,html[data-theme="dark"] .legalMenuLink{border-color:#2c333d}
html[data-theme="dark"] .legalMenuLink,html[data-theme="dark"] .legalMenuLink:visited{color:#f3f5f8}
html[data-theme="dark"] .legalSupportNote,html[data-theme="dark"] .legalMeta summary,html[data-theme="dark"] .legalMetaText{color:#9ca7b5}
html[data-theme="dark"] .legalSupportBtn:visited{color:#a9c8ff}


#supportKind,#supportMessage{font-family:inherit;font-size:16px;line-height:1.5}



/* Calm Trainer. System type, neutral surfaces and one restrained accent. */
:root{--ui-bg:#f4f5f6;--ui-surface:#fff;--ui-ink:#25323b;--ui-muted:#65717b;--ui-line:#e0e5e8;--ui-blue:#365e7a;--ui-action:#3c6682;--ui-soft:#edf2f5;--ui-green:#246b50;--ui-green-bg:#e8f3ed;--ui-danger:#a33e3b;--ui-danger-bg:#fbeeed;--ui-shadow:0 2px 8px rgba(25,40,52,.025)}
html[data-theme="dark"]{--ui-bg:#151b21;--ui-surface:#1e272f;--ui-ink:#e4e9ed;--ui-muted:#a6b2bb;--ui-line:#35424d;--ui-blue:#b5d0e2;--ui-action:#426b87;--ui-soft:#2a3945;--ui-green:#a2d6ba;--ui-green-bg:#243e34;--ui-danger:#f0b0aa;--ui-danger-bg:#432d2e;--ui-shadow:none}
html:is([data-theme],:root),html:is([data-theme],:root) body{background:var(--ui-bg);color:var(--ui-ink);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,b,strong{letter-spacing:-.018em;font-weight:650}h1{font-size:28px;line-height:1.2}h2{font-size:23px;line-height:1.3}h3{font-size:18px;line-height:1.35}
.muted,.todayDate,.scheduleLine,.timeLabel,.authHint,.licenseNote,.historyMeta,.historyEmpty{color:var(--ui-muted)!important}
html:is([data-theme],:root) .top{background:var(--ui-bg);border:0;padding:calc(12px + env(safe-area-inset-top)) 20px 12px;backdrop-filter:none}
.topin{max-width:760px;gap:12px}.topin>div>b{font-size:21px!important;font-weight:650;line-height:1.25;display:block}.topin>.btn{width:44px;height:44px;min-height:44px;flex-shrink:0;padding:0;border-radius:14px;font-size:20px}.topin #settingsBtn{font-size:0!important;background:transparent!important;border:0!important}.topin #settingsBtn::after{content:'';display:block;width:24px;height:24px;margin:auto;background:var(--ui-muted);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 17h16'/%3E%3Ccircle cx='9' cy='7' r='2.5' fill='white'/%3E%3Ccircle cx='15' cy='17' r='2.5' fill='white'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.wrap{max-width:760px;padding:12px 20px calc(110px + env(safe-area-inset-bottom))}
html:is([data-theme],:root) .card,html:is([data-theme],:root) .box,html:is([data-theme],:root) .sheet,html:is([data-theme],:root) .todayAthlete,html:is([data-theme],:root) .licensePlan,html:is([data-theme],:root) .tablewrap{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
.card{border-radius:18px;padding:18px;margin-bottom:14px}.card p{margin:10px 0;line-height:1.55}.box{border-radius:24px;padding:28px 24px;box-shadow:var(--ui-shadow)}
.wrap:has(>.tabs)>.tabs+.card{background:transparent!important;border:0;box-shadow:none!important;padding:6px 2px 16px;margin:0}.wrap:has(>.tabs)>.tabs+.card h2{font-size:27px;font-weight:650}
.btn{min-height:48px;height:auto;padding:12px 16px;border-radius:13px;font-weight:600;line-height:1.3;letter-spacing:-.01em;transition:background .15s,transform .12s;overflow-wrap:anywhere}.btn:active,.todayMark:active{transform:scale(.98)}button:disabled{cursor:default;opacity:.6}
html:is([data-theme],:root) .primary{background:var(--ui-action);color:#fff;box-shadow:none}html:is([data-theme],:root) .soft{background:var(--ui-soft);color:var(--ui-blue)}html:is([data-theme],:root) .ghost{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-ink)}
html:is([data-theme],:root) .danger,html:is([data-theme],:root) .topDelete{background:transparent;color:var(--ui-danger);border:1px solid var(--ui-line)}.topDelete{min-height:44px;padding:8px 12px;font-weight:600}
.tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));z-index:25;width:calc(100% - 32px);max-width:430px;height:62px;margin:0;padding:5px;gap:5px;border:1px solid var(--ui-line);border-radius:20px;background:var(--ui-surface)!important;box-shadow:0 6px 24px rgba(20,36,48,.08)}
.tab{border-radius:14px;font-size:15px;font-weight:600;color:var(--ui-muted)!important}.tab.active{background:var(--ui-soft)!important;color:var(--ui-blue)!important;box-shadow:none!important}
.fab{bottom:calc(90px + env(safe-area-inset-bottom));right:max(20px,calc((100vw - 720px)/2));width:54px;height:54px;border-radius:18px;background:var(--ui-action);box-shadow:0 4px 14px rgba(35,65,85,.2)}
.grid{gap:12px}.grid>.card{margin:0}.groupCard{position:relative;min-height:112px;cursor:pointer;padding:18px 38px 18px 18px;overflow-wrap:anywhere}.groupCard::after{content:'›';position:absolute;right:17px;top:15px;font-size:26px;color:var(--ui-muted);font-weight:400}.groupCard h3{font-size:19px}.groupCard .scheduleLine{margin-top:12px;font-size:13px;line-height:1.6}.groupCard>.muted{font-size:13px}
.todayGroup{gap:16px}.todayGroupHead{gap:12px}.todayGroupHead h3{font-size:19px}.todayGroupHead .muted{font-size:13px}.badge{min-height:27px;flex-shrink:0;background:var(--ui-soft)!important;color:var(--ui-blue)!important;font-size:12px;font-weight:600}.timeLine{font-size:21px;font-weight:600;letter-spacing:-.02em;white-space:nowrap}.todayDate{font-size:14px;margin-top:6px}.scheduleLine{font-size:14px}
.todayList{gap:8px}.todayAthlete{min-height:68px;padding:10px 14px;border-radius:15px;box-shadow:none!important}.todayAthlete b{font-size:16px;font-weight:600;overflow-wrap:anywhere}.todayMark{min-width:98px;min-height:44px;padding:10px 12px;border-radius:12px;font-size:14px;font-weight:600;flex-shrink:0}html:is([data-theme],:root) .todayMark.absent{background:var(--ui-soft);color:var(--ui-blue)}html:is([data-theme],:root) .todayMark.present,html:is([data-theme],:root) .present,html:is([data-theme],:root) .success{background:var(--ui-green-bg)!important;color:var(--ui-green)!important}
html:is([data-theme],:root) .sessionDone{background:var(--ui-green-bg);border-color:var(--ui-line)}
input,select,textarea{font-family:inherit!important;font-size:16px!important;line-height:1.45!important;min-width:0;max-width:100%;color:var(--ui-ink)!important;caret-color:var(--ui-blue);background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:12px;padding:12px;min-height:48px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--ui-blue);outline-offset:2px}input::placeholder,textarea::placeholder{color:var(--ui-muted);opacity:1}button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--ui-blue);outline-offset:3px}input[type=checkbox],input[type=radio]{min-height:24px;width:24px;accent-color:var(--ui-action)}
html:is([data-theme],:root) .authPhoneRow{background:var(--ui-surface);border-color:var(--ui-line)}.authPhoneRow input{border:0!important;outline-offset:-3px}.authPrefix{color:var(--ui-ink)!important;font-weight:600}.authCode{font-size:24px!important}.logo{background:var(--ui-action);border-radius:22px;box-shadow:none;font-weight:650}
html:is([data-theme],:root) .sheetbg{background:rgba(19,28,36,.36);backdrop-filter:blur(3px)}.sheet{border-radius:24px;padding:24px 20px calc(24px + env(safe-area-inset-bottom));max-height:88vh;max-height:88dvh;overscroll-behavior:contain}.sheet h2{font-size:23px}.sheet h3{font-size:21px}.sheet label{font-size:15px;font-weight:600}.sheet textarea{min-height:125px}.sheet>p{color:var(--ui-muted);font-size:14px;line-height:1.6}.sheet>.btn.full+.btn.full{margin-top:8px}.actions{gap:10px;margin-top:20px}.actions .btn{min-width:0}.sheet select{width:100%}
.month{margin:2px 0 14px;gap:8px}.month b{font-size:18px;font-weight:600}.month button{background:var(--ui-surface);border:1px solid var(--ui-line);color:var(--ui-ink);font-size:20px;flex-shrink:0}.row:has(>#todayGroupBtn){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.row:has(>#todayGroupBtn)>.btn{padding:12px 8px;font-size:14px}.tablewrap{border-radius:16px}.att th,.att td{border-color:var(--ui-line)!important;height:48px}.att .name{background:var(--ui-surface)!important;color:var(--ui-ink);min-width:132px;max-width:170px;font-weight:600;font-size:14px;overflow-wrap:anywhere}.att thead th{background:var(--ui-soft)!important;font-weight:600;font-size:13px}.att .name>button{font-size:14px}.attCell{font-weight:650}
.statsPeriod{background:var(--ui-soft);padding:4px;border-radius:14px;gap:4px}.statsPeriodBtn{min-height:44px;background:transparent!important;color:var(--ui-muted)!important;font-size:14px;font-weight:600}.statsPeriodBtn.active{background:var(--ui-surface)!important;color:var(--ui-blue)!important;box-shadow:0 1px 4px rgba(24,41,72,.06)}
.statsMetric{background:var(--ui-soft)!important;border:0;border-radius:14px;padding:14px 6px}.statsMetricValue{font-size:26px;font-weight:600;letter-spacing:-.03em}.statsMetricLabel{font-size:12px;color:var(--ui-muted)!important}.statsAthlete{padding:16px 0;border-color:var(--ui-line)!important}.statsAthlete b{font-weight:600;overflow-wrap:anywhere}.statsPercent{font-size:20px;color:var(--ui-blue)!important;font-weight:600}.statsAthleteNums{color:var(--ui-muted)!important;font-size:12px}
.settingsSwitchLabel{font-size:16px;font-weight:600}.pushSwitch{width:56px;height:44px;background:transparent!important;border:0;border-radius:14px}.pushSwitch::before{content:'';position:absolute;left:0;top:6px;width:56px;height:32px;border-radius:99px;background:#a0aab2}.pushSwitch.on::before{background:#39765d}.pushSwitchKnob{top:9px;left:3px;width:26px;height:26px;box-shadow:0 1px 4px rgba(0,0,0,.18)}.pushSwitch.on .pushSwitchKnob{transform:translateX(24px)}.themeSwitch.on::before{background:var(--ui-action)}.themeActionIcon{width:auto;gap:12px;font-size:22px;color:var(--ui-muted)!important}.themeActionIcon::after{content:'Тёмная тема';font-size:16px;font-weight:600;color:var(--ui-ink);letter-spacing:-.01em}.themeActionIcon,.themeActionIcon.sun{font-size:0}.themeActionIcon::before{content:'☾';font-size:23px}
.wrap:has(#shareAppBtn)>.card{padding:18px}.wrap:has(#shareAppBtn) h3{font-size:17px;margin-bottom:2px}.wrap:has(#shareAppBtn) .btn{font-size:15px}.wrap:has(#shareAppBtn) .muted{font-size:13px;line-height:1.6}
.licensePrice{font-size:30px;font-weight:600}.licensePlan{border-radius:16px}.licenseStatus.bad{background:var(--ui-danger-bg)!important;color:var(--ui-danger)!important}.timeRow{background:var(--ui-soft)!important;border-color:var(--ui-line)!important}.timeRowTop{font-weight:600}.day{min-height:44px;font-weight:600}.day.on{background:var(--ui-action)!important;color:#fff!important;border-color:var(--ui-action)!important}
.ath{border-color:var(--ui-line);gap:12px;padding:14px 0}.ath .grow{overflow-wrap:anywhere}.athActions .btn{min-height:44px;padding:10px 12px;font-size:14px}.historyItem{border-color:var(--ui-line)!important}.historyTitle{font-weight:600}
.toast{max-width:calc(100% - 32px);width:max-content;white-space:normal;text-align:center;bottom:calc(90px + env(safe-area-inset-bottom));box-shadow:0 4px 16px rgba(0,0,0,.12);font-size:14px;line-height:1.4}
@media(max-width:540px){.grid{grid-template-columns:1fr}.top{padding-left:16px!important;padding-right:16px!important}.topin{gap:10px}.topin>div>b{font-size:20px!important}.wrap{padding-left:16px;padding-right:16px}.row:has(>#todayGroupBtn){grid-template-columns:repeat(2,minmax(0,1fr))}.sheet{border-radius:24px 24px 0 0;margin:auto auto 0}.sheet .ath{flex-wrap:wrap}.sheet .ath>.grow{flex-basis:100%}.sheet .ath .athActions{width:100%}.sheet .ath .athActions .btn{flex:1}.statsSummary{gap:6px}}
@media(max-width:350px){.topin>div>b{font-size:18px!important}.todayGroupHead{flex-wrap:wrap}.todayGroupHead>.grow{flex-basis:100%}.card{padding:16px}.sheet{padding-left:16px;padding-right:16px}.todayAthlete{padding:10px}.todayMark{min-width:88px;padding:10px 8px}.statsMetricValue{font-size:23px}.statsMetricLabel{font-size:11px}.statsAthlete{gap:8px}.themeActionIcon{gap:6px}.settingsSwitchRow{gap:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.timeInputs{grid-template-columns:repeat(2,minmax(0,1fr))}.timeInputs>div{min-width:0}.timeInputs input{width:100%;padding:10px 8px}.sheet .row:has(>#athName){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}#addAthleteBtn{white-space:nowrap;overflow-wrap:normal;padding:12px}
@media(max-width:350px){.timeInputs{grid-template-columns:1fr}}



/* Only reorganised Settings controls. Core journal layout is unchanged. */
.topin:has(.settingsHeaderControls){gap:8px}.topin:has(.settingsHeaderControls)>.grow{display:none}
.settingsHeaderControls{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.settingsHeaderControls>#themeToggleBtn.headerThemeSwitch{width:56px;min-width:56px;height:44px;min-height:44px;padding:0;border:0;flex-shrink:0;background:transparent;box-shadow:none}
.headerBell{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:14px;border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-muted);flex-shrink:0}
.headerBell.on{background:var(--ui-action);border-color:var(--ui-action);color:#fff}.bellGlyph{width:22px;height:22px}.headerBell:active{transform:scale(.96)}
.pushMigrationNote{margin-bottom:14px}
#themeToggleBtn.headerThemeSwitch .pushSwitchKnob{display:grid;place-items:center;color:#365e7a}
.themeGlyph{width:18px;height:18px;display:block}
.compactHelpCard .legalSupportNote{margin:10px 0 14px;font-size:12px;line-height:1.5;color:var(--ui-muted)}
.settingsMenuRow{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:12px 0 0;margin-top:2px;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:transparent;color:var(--ui-ink);font-size:14px;font-weight:600;line-height:1.35;text-align:left}
.settingsMenuRow>span{flex:1;min-width:0}.settingsDocumentIcon{width:19px;height:19px;flex-shrink:0;color:var(--ui-muted)}
.settingsMenuRow:focus-visible{outline:2px solid var(--ui-blue);outline-offset:3px;border-radius:6px}
html:is([data-theme],:root) .legalDocumentsCard .legalMenuLink,html:is([data-theme],:root) .legalDocumentsCard .legalMenuLink:visited{color:var(--ui-ink);border-color:var(--ui-line)}
html:is([data-theme],:root) .legalDocumentsCard .legalMenu{border:0}
html:is([data-theme],:root) .legalDocumentsCard .legalMetaText,html:is([data-theme],:root) .legalDocumentsCard .legalMeta summary{color:var(--ui-muted)}
.legalDocumentsCard .legalMenuLink:first-child{padding-top:0}.legalDocumentsCard .legalMeta{margin-top:8px}




/* Automatic saving remains active. Only the settings controls are hidden. */
.wrap:has(#shareAppBtn)>.card:has(#journalHistoryBtn)>h3,
.wrap:has(#shareAppBtn)>.card:has(#journalHistoryBtn)>.muted,
.wrap:has(#shareAppBtn) #journalHistoryBtn{display:none}
.wrap:has(#shareAppBtn) #trashBtn{margin-top:0!important}
.wrap:has(#shareAppBtn)>.settingsSyncCard:has(.licenseStatus):not(:has(.licenseStatus.bad)){display:none}
.wrap:has(#shareAppBtn) #conflictBackupsBtn{display:none}
.wrap:has(#shareAppBtn)>.settingsSyncCard:has(.licenseStatus)>h3,
.wrap:has(#shareAppBtn)>.settingsSyncCard:has(.licenseStatus)>#syncNowBtn{display:none}


/* Trainer UI refresh. Uses the existing DOM and business handlers. No remote assets. */
:root{
  --ui-bg:#f2f6f5;--ui-surface:#ffffff;--ui-ink:#1d3433;--ui-muted:#617774;
  --ui-line:#d8e5e1;--ui-blue:#185d55;--ui-action:#176b5b;--ui-soft:#e8f1ed;
  --ui-green:#216844;--ui-green-bg:#e7f3e9;--ui-danger:#a13935;--ui-danger-bg:#fbedeb;
  --ui-shadow:0 3px 18px rgba(26,61,52,.035);--ui-focus:#147f6e;
}
html[data-theme="dark"]{
  --ui-bg:#101b1b;--ui-surface:#192929;--ui-ink:#e8f2ef;--ui-muted:#a3bab4;
  --ui-line:#304a45;--ui-blue:#b4ded0;--ui-action:#287e6b;--ui-soft:#243b36;
  --ui-green:#b6e5c4;--ui-green-bg:#213d30;--ui-danger:#ffb7ad;--ui-danger-bg:#462d2a;
  --ui-shadow:none;--ui-focus:#8ad1bc;
}
html{scroll-padding-top:90px}body{font-feature-settings:"tnum" 1}
a{color:var(--ui-blue);text-underline-offset:3px}
.btn,.todayMark,.topDelete{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
html:is([data-theme],:root) .top{border-bottom:1px solid var(--ui-line);background:var(--ui-bg)}
.topin{min-height:46px;gap:12px}
.headerMark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;background:var(--ui-action);color:#fff;border-radius:13px;font-size:23px;font-weight:700;letter-spacing:-.04em}
.headerTitle{min-width:0}.headerTitle>b{overflow-wrap:anywhere}.headerTitle>span{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ui-muted);margin-top:1px}
.topin .headerTitle>b{font-size:20px!important;line-height:1.15}
.topin #settingsBtn{border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important}
.wrap{padding-top:24px}
.wrap:has(>.tabs)>.tabs+.card{padding:0 0 22px}
.wrap:has(>.tabs)>.tabs+.card h2{font-size:30px;letter-spacing:-.04em}
.todayDate{text-transform:capitalize;margin-top:5px}.viewHint{font-size:14px;color:var(--ui-muted);max-width:420px;margin:12px 0 0!important}
.todayGroup{padding:20px;gap:22px;border-radius:22px;position:relative;overflow:hidden}
.todayGroup::before{content:"";position:absolute;top:22px;left:0;width:3px;height:32px;border-radius:0 3px 3px 0;background:var(--ui-action)}
.todayGroupHead h3{font-size:18px;font-weight:650}.todayGroupHead .timeLine{margin-top:12px;font-size:27px;font-weight:650;letter-spacing:-.04em}
.todayGroupHead .badge{margin-top:0;font-size:11px;padding:3px 8px;max-width:112px;white-space:normal;text-align:center;line-height:1.3}
.todayGroupHead .muted{margin-top:6px!important}.todayOpenBtn{min-height:48px;border-radius:13px}
.todayGroup.sessionDone::before{background:var(--ui-green)}.todayGroup.cancelledSession::before{background:var(--ui-muted)}
.todayGroup.sessionDone .todayOpenBtn{background:var(--ui-surface)!important;color:var(--ui-green)!important;border:1px solid var(--ui-line)}
.tabs{height:66px;max-width:430px;padding:6px;border-radius:22px;background:var(--ui-surface)!important;box-shadow:0 6px 26px rgba(22,52,45,.12)}
.tab{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:16px;font-size:14px;min-width:0}
.navIcon{width:20px;height:20px;flex-shrink:0}.tab.active{color:var(--ui-blue)!important;background:var(--ui-soft)!important}
.homeSaveStatus{margin-top:0}.homeSaveStatus>.syncState:not([hidden]){margin-top:20px}.syncState[hidden]{display:none!important}.syncState{display:flex;flex-direction:column;gap:3px;margin:0;padding:12px 14px;border-radius:13px;background:var(--ui-soft)!important;color:var(--ui-muted)!important;font-size:12px;line-height:1.45}
.syncState>b{font-size:12px;font-weight:650;letter-spacing:0}.syncState>span{display:block}
.syncState.saved{background:transparent!important;padding:0 2px;color:var(--ui-muted)!important}
.syncState.saved>b::before{content:"✓";display:inline-block;margin-right:6px;color:var(--ui-green);font-weight:800}
.syncState.saved>span{display:none}.syncState.bad{background:var(--ui-danger-bg)!important;color:var(--ui-danger)!important}
.syncState.saving{color:var(--ui-blue)!important}.settingsSyncCard .syncState{margin-top:10px}
.attendanceHeader{margin:22px 0 14px}.attendanceHeader h3{font-size:16px}.attendanceLegend{font-size:12px;line-height:1.6;color:var(--ui-muted);margin:6px 0 0}
.todayAthlete{min-height:72px;border-radius:16px;padding:12px 14px}.todayAthlete:has(.present){border-color:var(--ui-line);background:var(--ui-surface)}
.todayAthlete b{font-size:15px}.todayMark{min-width:99px;border:1px solid transparent;font-size:13px}
html:is([data-theme],:root) .todayMark.absent{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-muted)}
.trainingActions{padding:16px;margin-top:20px!important}.trainingActions .cancelSessionBtn{border:0;background:transparent!important;min-height:44px;font-size:13px;color:var(--ui-muted)!important;margin-top:6px}
.trainingSaveStatus{padding:0 3px}.groupCard{border-radius:20px}.groupCard:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
.welcome{padding:32px 20px;min-height:100svh}.box{padding:32px 28px;max-width:440px;border-radius:28px;box-shadow:0 16px 55px rgba(27,68,56,.065)!important}
.logo{width:58px;height:58px;font-size:31px;border-radius:19px;margin-bottom:24px;background:var(--ui-action)}
.box h1{font-size:28px;letter-spacing:-.035em}.box>.muted{font-size:14px;line-height:1.6;margin:12px auto 24px;max-width:310px}
.authFieldLabel{display:block;text-align:left;font-size:13px;font-weight:650;margin:0 0 8px;color:var(--ui-ink)}
.authPhoneRow{margin-top:0;min-height:56px;border-radius:14px}.authPhoneRow input{padding-top:14px;padding-bottom:14px}.authPrefix{padding-left:16px;font-size:18px}
.authHint{font-size:12px;line-height:1.6;text-align:left;margin-top:16px}.box .licenseNote{font-size:11px;line-height:1.8;margin-top:18px!important}
.box .licenseNote a{display:inline-block;padding:3px 2px;text-decoration:none}.box .licenseNote a:hover{text-decoration:underline}
.authCode{font-size:28px!important}.box .licensePlan{padding:18px}.licensePrice{font-size:32px}.box .licensePlan>b{font-size:14px}.licensePlan .btn{margin-top:14px!important}
.settingsHeaderControls{gap:8px}.headerBell{border-radius:14px;color:var(--ui-blue)}
.settingsHeaderControls>#themeToggleBtn.headerThemeSwitch{width:44px;min-width:44px;height:44px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface)!important;color:var(--ui-blue)}
#themeToggleBtn.headerThemeSwitch::before{display:none}
#themeToggleBtn.headerThemeSwitch .pushSwitchKnob{position:static;display:grid;place-items:center;width:100%;height:100%;transform:none;background:transparent;box-shadow:none;color:var(--ui-blue)}
.themeGlyph{width:22px;height:22px}.headerThemeSwitch.on .themeGlyph{color:#f2cf85}
.wrap:has(#shareAppBtn) .compactHelpCard{padding:18px 20px;border-radius:20px}.legalSupportBtn{min-height:48px!important;background:var(--ui-action)!important;color:#fff!important;font-size:14px!important}
.compactHelpCard .legalSupportNote{font-size:12px;margin:12px 0 14px}.settingsMenuRow{font-size:14px;min-height:50px;padding-top:14px}
.wrap:has(#shareAppBtn)>.card:not(.compactHelpCard){border-radius:18px}.wrap:has(#shareAppBtn)>.card>h3{font-size:15px;font-weight:650}
.legalDocumentsCard{padding:8px 20px;border-radius:22px}.legalDocumentsCard .legalMenuLink,.legalDocumentsCard .legalMenuLink:first-child{min-height:62px;padding:16px 0;font-size:14px;font-weight:600}
.legalDocumentsCard .legalMeta{margin:0}.legalDocumentsCard .legalMeta summary{min-height:56px;font-size:13px}.legalMetaText{font-size:13px!important;line-height:1.8;padding:0 0 14px!important}
.legalMetaText a{overflow-wrap:anywhere}.legalIntro{font-size:14px;color:var(--ui-muted);line-height:1.6;margin:0 0 18px}.legalMenuLink:hover,.settingsMenuRow:hover{color:var(--ui-action)!important}
.sheet{box-shadow:0 12px 65px rgba(7,36,27,.17)!important}.sheet label{font-size:14px}.sheet>h3{letter-spacing:-.025em}.sheet textarea{line-height:1.6!important}
.toast{background:var(--ui-ink)!important;color:var(--ui-surface)!important;border:1px solid var(--ui-line)}
@media(min-width:700px){.grid>.todayGroup{min-height:214px}.grid>.todayGroup>.todayOpenBtn{margin-top:auto}.box{margin-top:-40px}.wrap:has(#shareAppBtn){max-width:650px}}
@media(max-width:540px){.wrap{padding-top:22px}.todayGroup{padding:18px}.todayGroupHead .timeLine{font-size:26px}.box{padding:28px 24px}.welcome{padding:24px 16px}.topin .headerTitle>b{font-size:19px!important}}
@media(max-width:350px){.wrap{padding-left:12px;padding-right:12px}.top{padding-left:12px!important;padding-right:12px!important}.headerMark{width:34px;height:34px;flex-basis:34px}.topin{gap:8px}.topin .headerTitle>b{font-size:17px!important}.topin .headerTitle>span{font-size:9px}.todayGroupHead{flex-wrap:nowrap}.todayGroupHead>.grow{flex-basis:auto}.todayGroupHead .timeLine{font-size:24px}.todayGroupHead h3{font-size:17px}.todayGroupHead .badge{font-size:10px;max-width:92px}.todayAthlete{padding:10px}.todayAthlete b{font-size:14px}.todayMark{min-width:88px;font-size:12px}.box{padding:26px 20px}.box h1{font-size:25px}.tab{gap:7px;font-size:13px}.settingsHeaderControls{gap:5px}.topin:has(.settingsHeaderControls) .headerTitle>b{font-size:18px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Balance21: paint only. Existing layout, text and attendance states retained. */
:root{--ui-bg:#F6F8F5;--ui-surface:#FFFFFF;--ui-ink:#162D2A;--ui-muted:#5C716C;--ui-line:#DCE6E1;--ui-blue:#176B65;--ui-action:#176B65;--ui-soft:#E7F1EE;--ui-green:#28623E;--ui-green-bg:#E7F2E8;--ui-danger:#984B3E;--ui-danger-bg:#FAEAE5;--ui-focus:#176B65;--ui-warning:#78591E;--ui-warning-bg:#FBF2DF;--ui-on-action:#FFFFFF;--ui-accent-green:#3B8457;--ui-accent-error:#C96F5B;--ui-accent-warning:#C89B46}
html[data-theme="dark"]{--ui-bg:#152C28;--ui-surface:#213B36;--ui-ink:#F3F6F3;--ui-muted:#B3C7C1;--ui-line:#3A5750;--ui-blue:#9DDBD5;--ui-action:#9DDBD5;--ui-soft:#2A4942;--ui-green:#A8D2B4;--ui-green-bg:#244C35;--ui-danger:#F1B5A5;--ui-danger-bg:#54352E;--ui-focus:#9DDBD5;--ui-warning:#EAC779;--ui-warning-bg:#504225;--ui-on-action:#152C28}
html:is([data-theme],:root) .primary,html:is([data-theme],:root) .fab,html:is([data-theme],:root) .day.on,html:is([data-theme],:root) .headerBell.on,html:is([data-theme],:root) .legalSupportBtn,html:is([data-theme],:root) .legalSupportBtn:visited{color:var(--ui-on-action)!important}
html:is([data-theme],:root) .licenseStatus{background:var(--ui-soft);color:var(--ui-muted)}
html:is([data-theme],:root) .licenseStatus.good{background:var(--ui-green-bg)!important;color:var(--ui-green)!important}
html:is([data-theme],:root) .licenseStatus.bad,html:is([data-theme],:root) .syncState.bad{background:var(--ui-danger-bg)!important;color:var(--ui-danger)!important}
html:is([data-theme],:root) .todayMark.absent{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-muted)}
html:is([data-theme],:root) .pushSwitch::before{background:var(--ui-muted)}
html:is([data-theme],:root) .pushSwitch.on::before{background:var(--ui-accent-green)}
html:is([data-theme],:root) .themeSwitch.on::before{background:var(--ui-action)}
html:is([data-theme],:root) .pushSwitchKnob{background:#FFFFFF}
html:is([data-theme],:root) .headerThemeSwitch.on .themeGlyph{color:var(--ui-warning)}
html:is([data-theme],:root) .cancelledSession{background:var(--ui-warning-bg)!important;border-color:var(--ui-accent-warning)!important}
html:is([data-theme],:root) .cancelledBadge,html:is([data-theme],:root) .cancelledCell,html:is([data-theme],:root) .dateHead.cancelledDate{background:var(--ui-warning-bg)!important;color:var(--ui-warning)!important}
html:is([data-theme],:root) .dateHead.cancelledDate .muted{color:var(--ui-warning)!important}
html:is([data-theme],:root) .legalMenuLink:focus-visible,html:is([data-theme],:root) .legalSupportBtn:focus-visible,html:is([data-theme],:root) .legalMeta summary:focus-visible{outline-color:var(--ui-focus)}
html:is([data-theme],:root) .logo,html:is([data-theme],:root) .headerMark{background-color:transparent!important;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+CiAgPHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHJ4PSIyNCIgZmlsbD0iIzE3NkI2NSIvPgogIDxyZWN0IHg9IjIwIiB5PSIyMiIgd2lkdGg9IjM4IiBoZWlnaHQ9IjExIiByeD0iNS41IiBmaWxsPSIjRkZGRkZGIi8+CiAgPHJlY3QgeD0iMjAiIHk9IjQyIiB3aWR0aD0iMzIiIGhlaWdodD0iMTEiIHJ4PSI1LjUiIGZpbGw9IiNGRkZGRkYiLz4KICA8cGF0aCBkPSJNNDIgNjYgTDU0IDc4IEw4MCA1MSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjEwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==");background-size:contain;background-position:center;background-repeat:no-repeat;color:transparent!important}

/* Balance21 v3: closed inherited paint fallback map; no geometry. */
html:is([data-theme],:root) .day:not(.on),html:is([data-theme],:root) .month button{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
html:is([data-theme],:root) .authPhoneRow,html:is([data-theme],:root) .att .name,html:is([data-theme],:root) .att thead th{color:var(--ui-ink)}
html:is([data-theme],:root) .ath,html:is([data-theme],:root) .trashRow{border-color:var(--ui-line)}
html:is([data-theme],:root) .trashMeta,html:is([data-theme],:root) .legalSupportNote,html:is([data-theme],:root) .installHintText,html:is([data-theme],:root) .updateHintText,html:is([data-theme],:root) .legalChevron{color:var(--ui-muted)}
html:is([data-theme],:root) .installHint,html:is([data-theme],:root) .updateHint{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
html:is([data-theme],:root) .installHintClose{background:var(--ui-soft);color:var(--ui-ink)}
html:is([data-theme],:root) input::placeholder,html:is([data-theme],:root) textarea::placeholder{color:var(--ui-muted)}
