:root{color-scheme:light;--bg:#f5f3ef;--surface:#fffefa;--surface2:#eeede7;--text:#292e28;--muted:#656d62;--line:#dcded4;--green:#315f48;--soft:#e6ede4;--help:#9b432b;--help-bg:#f6e9e1;--focus:#245e9c;--shadow:0 10px 35px #26372c09}
:root[data-theme=dark]{color-scheme:dark;--bg:#171c19;--surface:#202722;--surface2:#28312a;--text:#ecefe7;--muted:#b1b9ae;--line:#3b493e;--green:#abd2b6;--soft:#2d4133;--help:#ffd4c1;--help-bg:#4d3028;--focus:#94c8ff;--shadow:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}button,input{font:inherit}button,a,input,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:var(--green);text-underline-offset:4px}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}button,input{min-height:44px}input{min-width:0;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px}button{border:0}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;line-height:1.2}h1{font-size:clamp(27px,3vw,36px)}h2{font-size:clamp(23px,2.5vw,29px)}h3{font-size:17px}p+p{margin-top:12px}[hidden]{display:none!important}.app{max-width:1080px;margin:auto;padding:30px 44px 20px}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--text)}.brand-mark{background:var(--green);color:var(--bg);border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font:21px Georgia,serif}.brand strong{font:600 25px Georgia,serif;display:block;line-height:1.3}.brand small{display:block;color:var(--muted);font-size:13px}.icon-button{border:1px solid var(--line);border-radius:50%;background:transparent;min-width:44px;font-size:22px;line-height:1}.help-button{width:100%;display:flex;align-items:center;gap:12px;background:var(--help-bg);color:var(--help);border:1px solid color-mix(in srgb,var(--help) 30%,transparent);border-radius:14px;padding:15px 20px;font-size:17px;font-weight:650;text-align:left;margin-bottom:32px}.help-button>span:last-child{margin-left:auto}.help-icon{font-size:26px;line-height:1}.help-button:hover{filter:brightness(.97)}.help-panel{padding:0 0 24px}.help-panel p{margin-top:12px}.safety{font-size:14px;color:var(--muted)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}.eyebrow{font-size:13px;white-space:nowrap;color:var(--muted)}.segmented{display:flex;padding:4px;gap:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);width:fit-content;margin-bottom:22px}.segmented button{padding:9px 24px;border-radius:8px;background:transparent;font-weight:550;color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--green);box-shadow:0 2px 5px #182e1410}.modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}.module-button{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:15px;text-align:left;line-height:1.4;display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-height:116px}.module-button[aria-pressed=true]{border-color:var(--green);background:var(--soft);box-shadow:inset 0 0 0 1px var(--green)}.module-button small{font-size:13px;color:var(--muted)}.module-symbol{font-size:14px;display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid currentColor;border-radius:50%;margin-right:6px}.search-wrap{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:4px 0}.search-wrap>span{font-size:28px;color:var(--muted)}.search-wrap input{flex:1;border:0;background:transparent;padding-left:0;width:100%}.result-count{font-size:14px;margin:13px 0}.muted{color:var(--muted)}.skill{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:9px;overflow:clip}.skill>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:16px 20px;min-height:64px}.skill>summary::-webkit-details-marker{display:none}.skill>summary:after{content:'+';font-size:24px;color:var(--muted);margin-left:auto;flex:none;line-height:1}.skill[open]>summary:after{content:'−'}.skill[open]>summary{border-bottom:1px solid var(--line)}.skill-title{font-weight:600;flex:1;min-width:0}.skill-number{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.skill-tags{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}.tag{font-size:12px;border-radius:6px;background:var(--soft);color:var(--green);padding:3px 7px;white-space:nowrap}.tag-help{background:var(--help-bg);color:var(--help)}.skill-body{padding:24px 26px;max-width:810px}.skill-body h4{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:22px 0 12px}.skill-body h4:first-child{margin-top:0}.steps{list-style:none;padding:0;margin:0;counter-reset:step;display:grid;gap:14px}.steps li{counter-increment:step;display:grid;grid-template-columns:28px 1fr;gap:12px}.steps li:before{content:counter(step);border-radius:50%;height:26px;width:26px;background:var(--soft);color:var(--green);font-size:13px;display:grid;place-items:center;margin-top:2px}.checklist{display:grid;gap:5px}.checklist label{display:flex;align-items:flex-start;gap:12px;cursor:pointer;min-height:44px;padding:8px 0}.checklist input{accent-color:var(--green);width:20px;height:20px;min-height:20px;flex:none;margin-top:3px}.checklist label:has(input:checked){color:var(--muted)}.skill-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:22px;margin-top:14px;border-top:1px solid var(--line)}.primary,.secondary{border-radius:10px;padding:11px 17px;line-height:1.4;font-weight:600;border:1px solid var(--green)}.primary{background:var(--green);color:var(--bg)}.secondary{background:transparent;color:var(--green)}.secondary[aria-pressed=true]{background:var(--soft)}.text-button{background:transparent;color:var(--green);padding:8px 4px;text-decoration:underline;text-underline-offset:4px;line-height:1.4}.request-group{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:10px}.request-group>summary{cursor:pointer;padding:14px 18px;font-weight:600;min-height:50px}.request-options{display:flex;flex-wrap:wrap;gap:8px;padding:2px 15px 17px}.request-button{padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--bg);font-size:15px;text-align:left}.request-button[aria-pressed=true]{background:var(--soft);border-color:var(--green);color:var(--green)}.selection{padding:18px 20px;background:var(--soft);border-radius:12px;margin-top:18px}.selection p{font-size:14px;color:var(--muted);margin-top:5px}.empty{padding:25px;text-align:center;background:var(--surface);border-radius:12px;border:1px dashed var(--line)}.lower-section{margin-top:44px;border-top:1px solid var(--line);padding-top:32px}progress{display:block;width:100%;height:9px;border:0;border-radius:10px;background:var(--line);accent-color:var(--green);overflow:hidden}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--green);border-radius:10px}progress::-moz-progress-bar{background:var(--green)}.module-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:20px}.module-progress-item{font-size:14px}.module-progress-item span{display:block;color:var(--muted);font-size:13px;margin-top:5px}.calendar-key{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted)}.calendar-key i{display:inline-block;width:9px;height:9px;background:var(--green);border-radius:50%}.calendar-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.compact{margin:0}.compact button{padding:7px 16px;font-size:14px}.calendar-nav{display:flex;align-items:center;gap:8px}.calendar-nav strong{font-size:15px;min-width:125px;text-align:center}.calendar-nav .icon-button{width:38px;min-width:44px;font-size:18px}.calendar-nav .text-button{font-size:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;font-size:13px;color:var(--muted);padding:8px}.calendar-day{background:var(--surface);border:1px solid var(--line);border-radius:10px;min-height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative}.calendar-day.outside{opacity:.4}.calendar-day.today{border-color:var(--green);font-weight:750}.calendar-day.practiced{background:var(--soft);color:var(--green)}.calendar-day.selected{box-shadow:inset 0 0 0 2px var(--green)}.calendar-day i{width:5px;height:5px;border-radius:50%;background:transparent}.calendar-day.practiced i{background:var(--green)}.calendar-month{margin-bottom:24px}.calendar-month h3{margin-bottom:10px;font-size:16px;font-weight:600}.calendar-range-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.range-form{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:20px}.range-form label{display:grid;gap:5px;font-size:14px}.range-form p{width:100%;color:var(--help)}#calendar-summary{margin-top:14px;font-size:14px}.day-detail{padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-top:16px}.day-detail ul{padding-left:20px;margin:8px 0 0}.reminders>p{color:var(--muted)}.status{font-size:12px;padding:4px 9px;background:var(--surface2);border-radius:6px;color:var(--muted)}.status.on{background:var(--soft);color:var(--green)}.push-controls{display:flex;align-items:flex-end;gap:28px;margin-top:20px}.push-controls>label{display:grid;gap:8px;font-size:14px}.push-controls fieldset{border:0;margin:0;padding:0}.push-controls legend{font-size:14px;padding:0;margin-bottom:8px}.weekdays{display:flex;gap:5px;flex-wrap:wrap}.weekdays label{cursor:pointer;position:relative}.weekdays input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.weekdays span{display:grid;place-items:center;min-height:44px;min-width:42px;border-radius:8px;border:1px solid var(--line);font-size:14px;background:var(--surface)}.weekdays input:checked+span{background:var(--soft);color:var(--green);border-color:var(--green)}.weekdays input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}#push-message{font-size:14px;margin-top:18px}.push-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.local-notice{font-size:13px;margin-top:22px}footer{border-top:1px solid var(--line);margin-top:38px;padding-top:24px;color:var(--muted);font-size:13px}.footer-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.footer-row nav{display:flex;align-items:center;gap:22px}.footer-row a,.footer-row button{font-size:14px}footer>p{max-width:720px;margin:16px 0}.save-warning{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);background:var(--help-bg);color:var(--help);border:1px solid var(--help);border-radius:12px;padding:12px 20px;max-width:90vw;width:600px;z-index:20}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--green);color:var(--bg);border-radius:12px;box-shadow:var(--shadow);z-index:10;text-align:center;max-width:90vw}dialog{border:1px solid var(--line);border-radius:18px;padding:26px;background:var(--surface);color:var(--text);max-width:560px;width:calc(100% - 32px)}dialog::backdrop{background:#18261b80}.dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.skip{position:fixed;top:-100px;left:20px;padding:12px;background:var(--surface);z-index:30}.skip:focus{top:10px}
@media(max-width:700px){.app{padding:20px}.header{margin-bottom:20px}.brand strong{font-size:22px}.brand-mark{width:42px;height:42px;font-size:18px}.help-button{margin-bottom:24px;padding:13px 15px;font-size:16px}.section-heading{align-items:flex-start;gap:10px}.eyebrow{font-size:12px;margin-top:9px}.modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-button{min-height:95px;padding:12px;font-size:14px;gap:8px}.segmented{width:100%}.segmented button{flex:1;padding:9px 10px}.skill>summary{padding:14px;gap:9px;flex-wrap:wrap}.skill-title{font-size:16px;flex-basis:calc(100% - 75px)}.skill-tags:empty{display:none}.skill-tags{order:2;justify-content:flex-start;margin-left:24px}.skill-body{padding:18px 16px}.skill-actions{flex-direction:column}.skill-actions button{width:100%}.module-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lower-section{margin-top:32px;padding-top:26px}#progress-section .section-heading{display:block}#progress-label{display:block;margin-top:8px;font-size:14px}.calendar-key{font-size:12px;white-space:nowrap}.calendar-toolbar{display:block}.calendar-nav{margin-top:16px;justify-content:center;flex-wrap:wrap}.calendar-day{min-height:48px;border-radius:8px}.calendar-grid{gap:4px}.calendar-range-grid{grid-template-columns:1fr}.push-controls{display:block}.push-controls>label{max-width:140px;margin-bottom:18px}.footer-row{align-items:flex-start;flex-direction:column;gap:8px}.footer-row nav{gap:25px}.request-button{width:100%}.selection{padding:16px}.range-form label{flex:1;min-width:125px}.range-form .primary{width:100%}.calendar-key{margin-top:5px}.calendar-section .section-heading{display:block}}
.brand-logo{color:var(--green);flex:none}.brand small{font-size:12px}.header .brand{min-width:0}.header .icon-button{flex:none;margin-left:10px}@media(max-width:420px){.header .brand{gap:7px}.brand-logo{width:35px;height:40px}.brand small{font-size:11px}.brand strong{font-size:21px}}
@media(prefers-reduced-motion:no-preference){button,a,summary{transition:background .15s,border-color .15s}html{scroll-behavior:smooth}}

/* Окно толерантности и новый порядок разделов */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wot{margin-bottom:40px}#requests-section{margin-bottom:40px;border-top:1px solid var(--line);padding-top:32px}#catalog{border-top:1px solid var(--line);padding-top:32px}
.section-lead{font-size:14px;margin:-8px 0 16px}
.wot-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:12px;max-width:620px}
.wot-date{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}.wot-date input{min-height:40px;padding:6px 10px}
#wot-range{-webkit-appearance:none;appearance:none;width:100%;height:14px;min-height:14px;padding:0;border:0;border-radius:7px;margin:14px 0 4px;background:linear-gradient(90deg,var(--hypo) 0 30%,var(--green) 30% 70%,var(--help) 70% 100%)}
#wot-range::-webkit-slider-thumb{-webkit-appearance:none;width:32px;height:32px;border-radius:50%;background:#fff;border:3px solid var(--text);cursor:pointer}
#wot-range::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:#fff;border:3px solid var(--text);cursor:pointer}
.wot-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.wot-zone{border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.5}.wot-zone strong{display:block;font-size:15px}
.wot-zone.hyper{background:var(--help-bg)}.wot-zone.hyper strong{color:var(--help)}.wot-zone.win{background:var(--soft)}.wot-zone.win strong{color:var(--green)}.wot-zone.hypo{background:var(--hypo-bg)}.wot-zone.hypo strong{color:var(--hypo)}
.wot-zone a{display:inline-block;margin-top:6px;font-weight:600}
.wot-chart{width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.wot-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wot-stats div{border-radius:8px;padding:8px 4px;text-align:center;font-size:12px;color:var(--muted)}.wot-stats b{display:block;font-size:20px}
.wot-stats .hyper{background:var(--help-bg)}.wot-stats .hyper b{color:var(--help)}.wot-stats .win{background:var(--soft)}.wot-stats .win b{color:var(--green)}.wot-stats .hypo{background:var(--hypo-bg)}.wot-stats .hypo b{color:var(--hypo)}
.wot .local-notice{margin-top:0}
.suggested{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-bottom:12px}.suggested h3{font-size:14px;font-weight:600;margin-bottom:10px}.suggested .request-options{padding:0}
.catalog-progress{margin-bottom:22px}.catalog-progress .section-heading{margin-bottom:10px}.catalog-progress h3{font-size:15px;font-weight:600}
.zone-key{gap:5px}.zone-key b{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:6px}
.z-hyper{background:var(--help)}.z-win{background:var(--green)}.z-hypo{background:var(--hypo)}
.calendar-day b{position:absolute;top:5px;right:6px;width:7px;height:7px;border-radius:50%}
.day-detail .zone-line{display:flex;align-items:center;gap:8px;margin-top:6px}.day-detail .zone-line b{width:9px;height:9px;border-radius:50%;flex:none}
.day-detail .text-button{margin-top:6px;font-size:14px}
@media(max-width:700px){.wot-card{padding:14px}.zone-key{white-space:normal;flex-wrap:wrap}}

/* Приведение к согласованному макету */
.section-heading.numbered{align-items:center;justify-content:flex-start;gap:10px}.section-heading.numbered .eyebrow{margin-left:auto;margin-top:0}
.step{width:26px;height:26px;border-radius:50%;background:var(--text);color:var(--bg);font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;flex:none;font-family:var(--font-body)}
#wot-title{font-size:var(--text-lg)}
#requests-section,#catalog,.lower-section{border-top:0;padding-top:0;margin-top:0}
.wot,#requests-section,#catalog,.lower-section{margin-bottom:44px}
.wot-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;color:var(--muted)}.wot-top span{margin-right:auto}.wot-top .text-button{font-size:13px;padding:6px 0;min-height:36px;text-decoration:none}
#wot-range{margin:8px 0 2px}
.req-group{display:grid;gap:8px;margin-bottom:18px}.req-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;font-weight:500}
.zone-tag{font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px}.zone-tag.hyper{color:var(--help);background:var(--help-bg)}.zone-tag.hypo{color:var(--hypo);background:var(--hypo-bg)}
.req-list{display:grid;gap:8px}.req-list .request-button{width:100%;min-height:44px;background:var(--surface);font-size:14px}
.req-pick{background:var(--surface2);border-radius:10px;padding:12px;display:grid;gap:8px}.req-pick p{font-size:13px;color:var(--muted)}
.req-chips{display:flex;flex-wrap:wrap;gap:8px}.req-chips button{min-height:36px;padding:6px 12px;border-radius:18px;background:var(--surface);border:1px solid var(--green);color:var(--green);font-size:13px;font-weight:500}
#requests-all{font-size:14px;text-decoration:none;padding:6px 0}
.progress-row{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:6px}
.cal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}.cal-stats div{background:var(--surface2);border-radius:8px;padding:8px 4px;text-align:center;font-size:12px;color:var(--muted);line-height:1.3}.cal-stats b{display:block;font-size:20px;color:var(--text);margin-bottom:2px}
#calendar-modes{width:100%}#calendar-modes button{flex:1}
.cal-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted);margin-top:12px}.cal-legend span{display:inline-flex;align-items:center;gap:6px}.cal-legend b{display:inline-block;width:7px;height:7px;border-radius:50%}.leg-practice{display:inline-block;width:14px;height:14px;border-radius:4px;background:var(--soft);border:1px solid var(--green)}
#calendar-summary{display:none}
.progress-row #progress-label{display:inline;margin:0;font-size:13px}

.req-bento{margin-bottom:18px}.req-bento .module-button{justify-content:flex-start}.req-bento .module-button small{margin-top:auto}.req-bento .zone-tag{align-self:flex-start}

/* Базовые потребности дня */
.wot-basics{border:0;margin:0;padding:12px 0 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wot-basics legend{float:left;font-size:14px;font-weight:600;margin-right:4px;padding:0}
.wot-basics label{position:relative;cursor:pointer}
.wot-basics input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.wot-basics span{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px;border-radius:20px;border:1px solid var(--line);background:var(--surface);font-size:14px}
.wot-basics span:before{content:'';width:16px;height:16px;border-radius:4px;border:1.5px solid var(--muted);flex:none}
.wot-basics input:checked+span{background:var(--soft);border-color:var(--green);color:var(--green)}
.wot-basics input:checked+span:before{background:var(--green);border-color:var(--green);box-shadow:inset 0 0 0 3px var(--soft)}
.wot-basics input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}
