/* Исходные шрифты, размерная шкала, цвета и плотность DBT-трекера. */
:root{
  --text-xs:clamp(.75rem,.7rem + .25vw,.875rem);
  --text-sm:clamp(.875rem,.8rem + .35vw,1rem);
  --text-base:clamp(1rem,.95rem + .25vw,1.125rem);
  --text-lg:clamp(1.125rem,1rem + .75vw,1.5rem);
  --font-display:'Zodiak',Georgia,serif;
  --font-body:'Work Sans',-apple-system,sans-serif;
  --bg:#f5f3ef;--surface:#faf8f4;--surface2:#efede8;--text:#2a2823;--muted:#6f6e68;--line:#d6d3cc;--green:#4a7c5e;--soft:#e8f0eb;--help:#c45c3a;--help-bg:#f4e0d8;--hypo:#3f6a9a;--hypo-bg:#e1e9f2;
}
:root[data-theme=dark]{--bg:#161513;--surface:#1c1b18;--surface2:#1e1d1a;--text:#cdccca;--muted:#85847f;--line:#3a3935;--green:#6faa82;--soft:#1e2d26;--help:#d68060;--help-bg:#3d2e28;--hypo:#7fa3cf;--hypo-bg:#232c36}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{font-family:var(--font-body);font-size:var(--text-base);font-weight:400;line-height:1.6}
.app{max-width:1200px;padding:32px}
.header{margin-bottom:32px;gap:16px}
.header .brand{gap:12px}.header .brand-logo{width:40px;height:40px}
.header .brand strong{font-family:var(--font-display);font-size:var(--text-lg);font-weight:600;line-height:1.2}
.header .brand small{font-family:var(--font-body);font-size:var(--text-xs);font-weight:400;line-height:1.6;margin-top:2px}
h1,h2{font-family:var(--font-display);font-size:var(--text-lg);font-weight:600;line-height:1.2}
h3{font-family:var(--font-body);font-size:var(--text-sm);font-weight:500}
.help-button{font-size:var(--text-sm);font-weight:600;background:var(--help);color:#fff;border:0;border-radius:8px;padding:12px 20px;min-height:48px;margin-bottom:24px}
.help-icon{font-size:20px}.help-button>span:last-child{font-size:18px}
.segmented button{font-size:var(--text-sm);font-weight:500}
.module-button{font-family:var(--font-body);font-size:var(--text-sm);font-weight:500;min-height:90px;padding:12px 16px;gap:8px}
.module-button[aria-pressed=true]{box-shadow:none}.module-button small{font-size:var(--text-xs);font-weight:400}.module-symbol{font-size:12px;width:20px;height:20px}
.search-wrap input,.search-wrap button{font-size:var(--text-sm)}
.skill>summary{padding:16px 20px;min-height:58px;gap:12px}
.skill-title{font-family:var(--font-body);font-size:var(--text-sm);font-weight:600}
.skill>summary:after{font-family:var(--font-body);font-size:20px;font-weight:400}
.skill-body{padding:20px}.skill-body p,.steps li,.checklist label{font-family:var(--font-body);font-size:var(--text-sm);font-weight:400;line-height:1.6}
.skill-body h4{font-family:var(--font-body);font-size:var(--text-xs);font-weight:600;letter-spacing:.05em}
.tag{font-size:var(--text-xs);font-weight:500}.primary,.secondary{font-family:var(--font-body);font-size:var(--text-sm);font-weight:500;border-radius:8px;padding:10px 16px}
.request-group>summary{font-size:var(--text-sm);font-weight:500}.request-button{font-size:var(--text-sm);font-weight:400}.selection strong{font-size:var(--text-sm);font-weight:500}
.calendar-nav strong{font-weight:500}.calendar-day{font-size:var(--text-sm)}.calendar-day.today{font-weight:600}.calendar-month h3{font-weight:500}
.module-progress-item,.reminders>p,.day-detail,.day-detail strong{font-size:var(--text-sm);font-weight:400}.status{font-size:var(--text-xs)}
footer{font-size:var(--text-xs);padding-bottom:16px}.footer-disclaimer{padding:16px;background:var(--surface2);border-radius:8px;line-height:1.6}.footer-row a,.footer-row button{font-size:var(--text-sm)}
.help-panel .safety{padding:12px 16px;border:2px solid var(--help);border-radius:8px;background:var(--help-bg);color:var(--text)}
.help-panel .safety a{color:var(--help);font-weight:600}
@media(max-width:767px){.app{padding:16px}.header .brand{gap:10px}.header .brand-logo{width:36px;height:36px}.section-heading{flex-wrap:wrap}.eyebrow{margin-top:0}.skill>summary{padding:14px 16px}.skill-title{font-size:var(--text-sm)}.skill-body{padding:16px}.module-button{padding:12px;min-height:90px}.help-button{font-size:var(--text-sm);padding:12px 16px}.calendar-key{white-space:normal}.calendar-nav strong{min-width:100px;font-size:var(--text-sm)}}
@media(max-width:380px){.header{gap:8px}.header .brand{gap:7px}.header .brand-logo{width:28px;height:34px}.header .icon-button{margin-left:0}.header .brand small{max-width:215px;font-size:var(--text-xs)}}
