@font-face { font-family: "Onest"; src: url("fonts/Onest-Variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Variable.ttf") format("truetype"); font-style: normal; font-weight: 200 1000; font-display: swap; }

:root {
  --paper: #f3efdf;
  --paper-deep: #e8e0c9;
  --ink: #19233a;
  --ink-soft: #596171;
  --blue: #173f8f;
  --blue-dark: #102d68;
  --red: #c84831;
  --gold: #e3b23c;
  --green: #2e6b57;
  --line: rgba(25, 35, 58, .18);
  --shadow: 0 18px 50px rgba(45, 38, 23, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper-deep); }
body { margin: 0; color: var(--ink); font-family: "Trebuchet MS", sans-serif; background-color: var(--paper); background-image: repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(31, 65, 126, .045) 32px); min-height: 100vh; }
.paper-grain { display: none; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
.checkbox-line { display: flex; align-items: center; gap: 9px; }
.checkbox-line input[type="checkbox"] { width: 20px; min-height: 20px; margin: 0; }
.organization-status-card,.group-programs { margin: 4px 0 16px; padding: 16px; border: 0; background: var(--card-soft); border-radius: 16px; }
.organization-status-card legend,.group-programs legend { padding: 0 7px; color: var(--ink); font-family: "Nunito",sans-serif; font-size: 18px; font-weight: 800; }
.organization-status-card > label + label { display: block; margin-top: 12px; }
.module-method-card { margin: 12px 0; padding: 11px 13px; background: white; border-radius: 12px; }.module-method-card summary { cursor: pointer; font-weight: 800; }.module-method-card p { margin: 8px 0; color: var(--ink-soft); font-size: 14px; }
.module-level-badge { display: inline-flex; padding: 4px 9px; color: var(--green-dark); background: var(--green-soft); border-radius: 8px; font-size: 12px; font-weight: 800; }
.active-programs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }.active-programs b { padding: 4px 8px; color: var(--green-dark); background: var(--green-soft); border-radius: 8px; font-size: 12px; }.active-programs small { color: var(--ink-soft); }
.group-program-editor > summary { margin-top: 12px; cursor: pointer; color: var(--green-dark); font-weight: 800; }.group-program-editor > form { display: grid; gap: 12px; margin-top: 12px; }
.group-programs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; background: #F7FBEF; }
.group-programs article { padding: 12px; background: white; border-radius: 12px; }.group-programs article p { margin: 7px 0; color: var(--ink-soft); font-size: 13px; }.group-programs article small { display: block; color: var(--ink-soft); }.group-programs article > a { display: inline-flex; margin-top: 8px; color: var(--green-dark); font-weight: 800; }
.module-disclaimer { margin-top: 8px; padding: 9px 10px; color: #70401F; background: #FFF1D9; border-radius: 9px; font-size: 13px; }
button, select { cursor: pointer; }

.topbar { position: sticky; top: 0; z-index: 10; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 10px clamp(22px, 4vw, 64px); background: rgba(243, 239, 223, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--blue); border-radius: 50% 50% 46% 54% / 53% 44% 56% 47%; font-family: Georgia, serif; font-weight: 800; letter-spacing: -.04em; transform: rotate(-4deg); }
.brand strong, .brand small { display: block; }.brand strong { font-family: Georgia, serif; font-size: 17px; }.brand small { margin-top: 2px; color: var(--ink-soft); font-size: 11px; letter-spacing: .06em; }
nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } nav a { position: relative; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; } nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px; background: var(--red); transition: right .18s; } nav a:hover::after { right: 0; }
.shell { width: min(1480px, calc(100% - 44px)); margin: 0 auto; padding: 44px 0 80px; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; } h1 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -.055em; } h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.035em; } h3 { font-size: 22px; }
.greeting { margin: 0 0 6px; color: var(--ink-soft); font-family: Georgia,serif; font-size: 20px; font-style: italic; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.lead { max-width: 720px; color: var(--ink-soft); font-family: Georgia, serif; font-size: 19px; line-height: 1.55; }
.hero { min-height: 390px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 54px; border: 1px solid var(--line); background: rgba(255,255,255,.34); box-shadow: var(--shadow); }
.dashboard-hero { position: relative; overflow: hidden; clip-path: polygon(0 0, 96% 0, 100% 13%, 100% 100%, 0 100%); }.dashboard-hero::before { content: "№ 01"; position: absolute; right: 4%; top: -35px; color: rgba(23,63,143,.075); font-family: Georgia, serif; font-size: 170px; font-weight: 900; }.dashboard-hero h1 em { color: var(--blue); font-weight: normal; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; text-decoration: none; font-weight: 800; transition: transform .16s, box-shadow .16s; }.primary-action { min-height: 52px; padding: 0 22px; color: white; background: var(--blue); box-shadow: 5px 5px 0 var(--gold); }.primary-action:hover { color: white; transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--gold); }.primary-action span { font-size: 22px; }.secondary-action { min-height: 42px; padding: 0 17px; color: var(--blue); background: transparent; border: 1px solid var(--blue); }
.metric-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 16px; margin: 28px 0; }.metric { min-height: 150px; padding: 25px; background: var(--ink); color: white; }.metric span, .metric small { display: block; color: #c8d0df; }.metric strong { display: block; margin: 13px 0 5px; font-family: Georgia, serif; font-size: 48px; }.metric strong i { color: #8f9aaf; font-size: 24px; font-style: normal; }.metric a { color: #ffe084; }.metric-main { color: var(--ink); background: var(--gold); }.metric-main span { color: var(--ink); }.progress-track { height: 7px; margin-top: 18px; background: rgba(25,35,58,.18); }.progress-track b { display: block; height: 100%; background: var(--blue); }
.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }.panel { padding: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.48); box-shadow: 8px 9px 0 rgba(25,35,58,.06); }.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.checklist ul, .compact-list { margin: 0; padding: 0; list-style: none; }.checklist li { display: flex; justify-content: space-between; padding: 13px 4px; border-bottom: 1px dashed var(--line); }.checklist li b { color: var(--red); }.launch-row { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }.launchpad .secondary-action { margin-top: 28px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 10px 0 30px; }.page-heading h1 { margin-bottom: 6px; }.page-heading p:not(.eyebrow) { max-width: 780px; color: var(--ink-soft); }.compact-heading h1 { font-size: 58px; }.key-hint { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; }.key-hint kbd { padding: 5px 8px; color: white; background: var(--ink); box-shadow: 2px 2px 0 var(--gold); }
.screen-purpose { margin: 8px 0 0; color: var(--ink-soft); font-family: Georgia,serif; font-size: 17px; line-height: 1.35; }.screen-next { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 28px; padding: 15px 0; border-top: 1px dashed var(--line); font-size: 13px; }.screen-next span { color: var(--ink-soft); }.screen-next a { font-weight: 900; }
.welcome-sheet { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,76px); align-items: end; min-height: 390px; padding: clamp(32px,5vw,68px); overflow: hidden; border: 1px solid var(--line); background: #fffdf5; box-shadow: var(--shadow); }.welcome-sheet::after { content: "4 шага"; position: absolute; right: -28px; top: -43px; color: rgba(23,63,143,.055); font-family: Georgia,serif; font-size: 145px; font-weight: 900; transform: rotate(5deg); }.welcome-copy { position: relative; z-index: 1; }.welcome-copy h1 { margin-bottom: 20px; }.welcome-copy h1 em { color: var(--blue); font-weight: normal; }.how-it-works { position: relative; z-index: 1; padding: 26px 28px 22px; color: white; background: var(--ink); box-shadow: 9px 9px 0 var(--gold); transform: rotate(-.4deg); }.how-it-works h2 { margin-bottom: 18px; color: #ffe084; font-size: 28px; }.how-it-works ol { margin: 0; padding: 0; list-style: none; counter-reset: how; }.how-it-works li { counter-increment: how; position: relative; min-height: 38px; padding: 0 0 11px 38px; font-family: Georgia,serif; font-size: 14px; line-height: 1.35; }.how-it-works li::before { content: counter(how); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 25px; height: 25px; color: var(--ink); background: var(--gold); border-radius: 50%; font-family: "Trebuchet MS",sans-serif; font-size: 11px; font-weight: 900; }
.route-board { margin-top: 28px; padding: clamp(25px,4vw,48px); border: 1px solid var(--line); background: rgba(255,255,255,.45); }.route-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.route-heading h2 { margin-bottom: 0; }.route-heading small { color: var(--ink-soft); }.route-steps { position: relative; display: grid; gap: 8px; padding-left: 24px; }.route-steps::before { content: ""; position: absolute; left: 40px; top: 28px; bottom: 28px; width: 3px; background: var(--line); }.route-step { position: relative; border: 1px solid var(--line); background: #fffdf7; transition: transform .16s, box-shadow .16s; }.route-step[open] { box-shadow: 8px 8px 0 rgba(25,35,58,.08); transform: translateX(5px); }.route-step summary { display: grid; grid-template-columns: 48px minmax(190px,1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 10px 18px 10px 0; cursor: pointer; list-style: none; }.route-step summary::-webkit-details-marker { display: none; }.route-number { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -1px; color: white; background: var(--ink-soft); border: 5px solid var(--paper); border-radius: 50%; font-family: Georgia,serif; font-size: 15px; box-sizing: content-box; }.route-step summary strong { font-family: Georgia,serif; font-size: 20px; }.route-step summary em { color: var(--ink-soft); font-size: 11px; font-style: normal; font-weight: 900; text-align: right; text-transform: uppercase; }.route-step.is-done .route-number { background: var(--green); }.route-step.is-done summary em { color: var(--green); }.route-step.is-current { border-color: var(--blue); }.route-step.is-current .route-number { background: var(--blue); box-shadow: 0 0 0 4px rgba(23,63,143,.13); }.route-step.is-current summary em { color: var(--red); }.route-step.is-pending:not([open]) { opacity: .72; }.route-step-body { padding: 0 24px 24px 60px; }.route-step-body p { max-width: 680px; margin: 0 0 16px; color: var(--ink-soft); line-height: 1.5; }.route-step-body small { display: block; margin-top: 14px; color: var(--ink-soft); }
.flow-layout { display: grid; grid-template-columns: 76px 1fr; gap: 18px; animation: sheet-in .3s ease-out both; }.flow-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; }.counter strong, .counter span { display: block; text-align: center; }.counter strong { font-family: Georgia, serif; font-size: 32px; }.counter span { color: var(--ink-soft); font-size: 11px; }.vertical-progress { position: relative; flex: 1; width: 7px; min-height: 280px; background: var(--line); }.vertical-progress b { position: absolute; bottom: 0; width: 100%; background: var(--red); }.flow-rail small { writing-mode: vertical-rl; color: var(--ink-soft); }
.block-sheet { position: relative; max-width: 1150px; padding: clamp(26px,4vw,58px); background: #fffdf5; border: 1px solid var(--line); box-shadow: var(--shadow); }.block-sheet::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: rgba(200,72,49,.28); }.block-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }.block-meta span { padding: 6px 10px; color: var(--blue-dark); background: #e3eafb; font-size: 11px; font-weight: 800; }.block-sheet h2 { max-width: 980px; font-size: clamp(30px,4vw,52px); line-height: 1.15; }.block-sheet details { margin: 15px 0; color: var(--ink-soft); }.suggestion-note { display: flex; align-items: center; gap: 15px; margin: 24px 0; padding: 12px 16px; border-left: 5px solid var(--gold); background: #fff4cb; }.suggestion-note b { color: var(--blue); }.suggestion-note span { font-size: 12px; }
.markup-form label > span, .editor-form label, .assembly-form label, .filter-bar label, .batch-action label { display: block; font-size: 12px; font-weight: 800; }.markup-form label > span { margin-bottom: 7px; }.markup-form small { color: var(--ink-soft); font-weight: normal; } input, select, textarea { width: 100%; min-height: 43px; padding: 9px 11px; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 0; outline: none; } input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,63,143,.12); }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.range-row { display: flex; align-items: end; gap: 20px; margin: 18px 0; }.range-row fieldset { display: flex; gap: 9px; margin: 0; border: 0; padding: 0; }.range-row fieldset label { display: flex; align-items: center; gap: 6px; }.range-row select { width: 70px; }.grow { flex: 1; }.month-picker { display: grid; grid-template-columns: repeat(12,1fr); gap: 5px; margin: 18px 0; padding: 0; border: 0; }.month-picker legend, .range-row legend { margin-bottom: 7px; font-size: 12px; font-weight: 800; }.month-picker label { position: relative; }.month-picker input { position: absolute; opacity: 0; }.month-picker span { display: grid; place-items: center; min-height: 38px; border: 1px solid var(--line); font-size: 10px; text-transform: uppercase; }.month-picker input:checked + span { color: white; background: var(--green); border-color: var(--green); }.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 25px; }.save-state { color: var(--green); font-size: 12px; }
.filter-bar, .form-strip, .rotation-grid { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }.filter-bar { margin-bottom: 24px; padding: 18px; background: var(--ink); }.filter-bar label { color: white; min-width: 180px; }.filter-bar select { margin-top: 6px; }.batch-action { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto; align-items: end; gap: 18px; margin-bottom: 22px; }.batch-action h2 { margin-bottom: 0; font-size: 28px; }.selection-count { display: grid; place-items: center; min-width: 86px; min-height: 86px; color: white; background: var(--red); border-radius: 50%; font-family: Georgia, serif; font-size: 24px; }.table-wrap { overflow: auto; border: 1px solid var(--line); background: rgba(255,255,255,.5); }.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }.data-table thead { display: table-header-group; }.data-table th { padding: 13px; color: white; background: var(--blue-dark); text-align: left; }.data-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }.data-table tbody tr:hover { background: #fff9df; }.data-table input[type=checkbox] { width: 18px; min-height: 18px; }
.year-switch { display: flex; gap: 7px; }.year-switch input { width: 110px; }.year-switch button { color: white; background: var(--ink); border: 0; }.split-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }.draft-generator { display: flex; align-items: end; gap: 10px; }.draft-generator label { min-width: 310px; font-size: 11px; font-weight: 800; }.draft-generator select { margin-top: 5px; }.editor-form { margin-bottom: 24px; }.form-strip + .form-strip { margin-top: 15px; }.form-strip label { min-width: 120px; }.form-strip label.grow { min-width: 270px; }.rotation-grid { margin-top: 18px; }.rotation-grid label { flex: 1; min-width: 180px; }.theme-legend { display: flex; gap: 9px; margin: 12px 0; }.draft-badge,.confirmed-badge,.attention-badge { display: inline-block; padding: 5px 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; }.draft-badge { color: #6c4b00; background: #ffe8a3; }.confirmed-badge { color: #14573d; background: #d9efe4; }.attention-badge { color: #8b2517; background: #ffd9cf; }.theme-draft { background: rgba(255,232,163,.22); }.theme-attention { background: rgba(255,217,207,.3); }.theme-confirmed { background: rgba(217,239,228,.18); }
.note-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }.note-grid textarea { margin-top: 6px; resize: vertical; }.assembly-summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 30px 0 16px; padding: 28px; color: white; background: var(--blue-dark); }.assembly-summary h2 { margin-bottom: 5px; }.assembly-summary .eyebrow { color: #ffdc76; }.assembly-summary p:last-child { color: #cad4e8; }.export-actions { display: grid; gap: 10px; min-width: 310px; }.week-export-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }.week-export-form label { font-size: 11px; font-weight: 800; }.week-export-form select { margin-top: 5px; }.week-card { margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.6); }.week-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }.week-card header span { color: var(--red); font-size: 11px; font-weight: 900; text-transform: uppercase; }.week-card header h3 { margin: 6px 0; font-size: 28px; }.week-days { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 20px 0; }.week-days > section { min-height: 120px; padding: 12px; border-top: 4px solid var(--blue); background: #fffdf7; }.week-days section > b { display: block; margin-bottom: 10px; font-size: 11px; text-transform: uppercase; }.lesson-chip { margin: 8px 0; padding: 8px; background: #e8edf8; }.lesson-chip strong, .lesson-chip span, .lesson-chip small { display: block; }.lesson-chip strong { color: var(--blue); font-size: 11px; }.lesson-chip span { margin-top: 4px; font-size: 12px; }.lesson-chip small { margin-top: 4px; color: var(--green); }.muted { color: #9297a2; font-size: 11px; }.practice-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }.practice-strip span { padding: 9px 12px; background: #fff0bb; font-size: 12px; }.compact-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }.missing-panel { margin-top: 25px; }.missing-panel .panel-head > strong { color: var(--red); font-family: Georgia,serif; font-size: 48px; }.missing-list { max-height: 440px; overflow: auto; padding: 0; list-style: none; }.missing-list li { display: grid; grid-template-columns: 80px 220px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }.missing-list span { color: var(--red); font-size: 10px; font-weight: 900; text-transform: uppercase; }.missing-list em { color: var(--ink-soft); font-style: normal; }
.problem-list { display: grid; gap: 12px; }.problem-card { display: grid; grid-template-columns: 50px 1fr 280px; gap: 18px; padding: 22px; background: rgba(255,255,255,.55); border-left: 6px solid var(--red); }.problem-index { color: var(--red); font-family: Georgia,serif; font-size: 30px; }.problem-card small { color: var(--ink-soft); }.problem-card h3 { margin: 5px 0 8px; font-size: 19px; }.problem-card p { margin: 0 0 8px; font-size: 12px; }.problem-card form { display: flex; flex-direction: column; gap: 7px; }.empty-state { padding: 80px 30px; text-align: center; border: 1px dashed var(--line); background: rgba(255,255,255,.35); }.flash { margin-bottom: 18px; padding: 14px 18px; border-left: 5px solid var(--green); background: #e2f1e9; }.flash-warning { border-color: var(--gold); background: #fff3cb; }
.card-transfer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 16px; border: 1px dashed var(--green); background: #edf7f1; }.card-transfer small { display: block; margin-top: 4px; color: var(--ink-soft); }.card-editor textarea { margin-top: 7px; resize: vertical; }.source-grid { display: grid; grid-template-columns: 1fr 2fr 120px; gap: 12px; margin-top: 16px; }.source-grid label { font-size: 12px; font-weight: 800; }.source-grid input { margin-top: 6px; }.catalog-export { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }.catalog-export h2 { margin-bottom: 0; }
.readiness-board { margin-top: 24px; }.readiness-total { display: grid; place-items: center; min-width: 76px; min-height: 76px; color: white; background: var(--red); border-radius: 50%; font-family: Georgia,serif; font-size: 24px; }.readiness-total.is-ready { background: var(--green); }.readiness-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 20px; }.readiness-item { min-height: 170px; padding: 16px; border-top: 5px solid var(--red); background: #fffaf0; }.readiness-item.is-ready { border-color: var(--green); background: #edf7f1; }.readiness-item small { color: var(--red); font-size: 9px; font-weight: 900; text-transform: uppercase; }.readiness-item.is-ready small { color: var(--green); }.readiness-item h3 { margin: 8px 0 4px; font-size: 18px; }.readiness-item strong { font-family: Georgia,serif; font-size: 24px; }.readiness-item p { margin: 10px 0 5px; color: var(--ink-soft); font-size: 11px; }.readiness-item a { font-size: 11px; font-weight: 800; }.readiness-note { margin: 15px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-soft); }.card-reference-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin: 12px 0; }.card-reference-strip span { padding: 9px 12px; border-left: 4px solid var(--green); background: #edf7f1; font-size: 12px; }
.plan-catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }.plan-catalog-card { padding: 17px; border: 1px solid var(--line); border-top: 5px solid var(--green); background: #f7fbf5; }.plan-catalog-card.is-indoor { border-top-color: var(--gold); background: #fff9e5; }.plan-catalog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.plan-catalog-card h4 { margin: 3px 0 10px; font-family: Georgia,serif; font-size: 20px; }.plan-catalog-card header small { color: var(--ink-soft); }.indoor-badge { padding: 5px 8px; color: #6c4b00; background: #ffe29a; font-size: 9px; font-weight: 900; text-transform: uppercase; }.plan-note { padding: 9px 11px; border-left: 4px solid var(--gold); background: white; font-size: 12px; }.plan-catalog-item { padding: 10px 0; border-top: 1px dashed var(--line); }.plan-catalog-item > b { color: var(--blue-dark); font-size: 12px; }.plan-catalog-item > p { margin: 5px 0 8px; white-space: pre-line; font-family: Georgia,serif; font-size: 13px; line-height: 1.4; }.plan-catalog-item summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 800; }.inline-plan-edit { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 9px; }.custom-plan-edit { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; margin-top: 7px; }.custom-plan-edit textarea { resize: vertical; }.weather-action { display: grid; grid-template-columns: minmax(120px,.7fr) 1fr auto; align-items: end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--gold); }.weather-action label { font-size: 10px; font-weight: 900; text-transform: uppercase; }.weather-button { min-height: 43px; padding: 0 14px; color: white; background: var(--red); border: 0; font-weight: 800; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) rotate(.2deg); } to { opacity: 1; transform: none; } }
@media (max-width: 1050px) { .topbar { align-items: flex-start; flex-direction: column; }.metric-grid { grid-template-columns: 1fr 1fr; }.work-grid { grid-template-columns: 1fr; }.batch-action { grid-template-columns: 1fr 1fr; }.week-days,.readiness-grid { grid-template-columns: 1fr 1fr; }.catalog-export { align-items: stretch; flex-direction: column; }.welcome-sheet { grid-template-columns: 1fr; }.how-it-works { transform: none; } }
@media (max-width: 700px) { .shell { width: min(100% - 24px, 1480px); padding-top: 25px; }.topbar { position: static; padding: 14px; }.hero { min-height: 0; padding: 28px; flex-direction: column; align-items: flex-start; }.metric-grid { grid-template-columns: 1fr; }.page-heading { align-items: flex-start; flex-direction: column; }.flow-layout { grid-template-columns: 1fr; }.flow-rail { display: none; }.field-grid, .note-grid,.source-grid,.readiness-grid,.card-reference-strip,.plan-catalog-grid { grid-template-columns: 1fr; }.month-picker { grid-template-columns: repeat(6,1fr); }.range-row { align-items: stretch; flex-direction: column; }.batch-action { grid-template-columns: 1fr; }.week-days { grid-template-columns: 1fr; }.problem-card { grid-template-columns: 36px 1fr; }.problem-card form { grid-column: 2; }.missing-list li { grid-template-columns: 60px 1fr; }.missing-list em { grid-column: 2; }.assembly-summary,.card-transfer { align-items: stretch; flex-direction: column; }.export-actions { min-width: 0; }.week-export-form,.inline-plan-edit,.custom-plan-edit,.weather-action { grid-template-columns: 1fr; }.welcome-sheet { min-height: 0; padding: 26px 22px; }.welcome-sheet::after { display: none; }.how-it-works { padding: 22px 18px 16px; box-shadow: 5px 5px 0 var(--gold); }.route-board { padding: 22px 14px; }.route-heading { align-items: flex-start; flex-direction: column; }.route-steps { padding-left: 12px; }.route-steps::before { left: 27px; }.route-step summary { grid-template-columns: 40px 1fr; gap: 8px; padding-right: 10px; }.route-step summary em { grid-column: 2; text-align: left; }.route-step summary strong { font-size: 17px; }.route-number { width: 30px; height: 30px; }.route-step-body { padding: 0 14px 20px 48px; }.screen-next { align-items: flex-end; flex-direction: column; } }

/* Visual system: warm, friendly and deliberately calm on work screens. */
:root {
  --paper: #FBF4F1;
  --paper-deep: #FBF4F1;
  --card: #FFFFFF;
  --card-soft: #FDECEF;
  --pink: #EF6BA0;
  --pink-dark: #D9548A;
  --pink-soft: #F9C6D8;
  --green: #93C654;
  --green-soft: #C9E39B;
  --green-dark: #3E7A2E;
  --ink: #1F1B1A;
  --ink-soft: #6B625F;
  --line: #EFE3DE;
  --blue: #EF6BA0;
  --blue-dark: #1F1B1A;
  --red: #A14335;
  --gold: #F9C6D8;
  --shadow: 0 4px 16px rgba(31,27,26,.06);
}

* { scroll-margin-top: 92px; }
html { background: var(--paper); }
body { overflow-x: hidden; color: var(--ink); background: var(--paper); background-image: none; font-family: "Onest", sans-serif; font-size: 17px; line-height: 1.55; }
.paper-grain { display: none; }
h1,h2,h3,h4,.brand strong,.selection-count,.route-number { font-family: "Nunito", sans-serif; font-weight: 800; }
h1 { font-size: clamp(48px,6.4vw,82px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(32px,3.4vw,48px); line-height: 1.05; letter-spacing: -.025em; }
h3 { font-size: clamp(22px,2.2vw,30px); line-height: 1.15; }
p,li,td,th,label,input,select,textarea,button { line-height: 1.55; }
a { color: var(--green-dark); text-decoration-thickness: 2px; }

.topbar { min-height: 78px; padding: 12px clamp(18px,4vw,58px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(31,27,26,.04); }
.brand-mark { width: 48px; height: 48px; background: var(--pink); border-radius: 14px; transform: none; font-family: "Nunito",sans-serif; font-size: 15px; }
.brand strong { font-size: 18px; }.brand small { color: var(--ink-soft); font-size: 12px; }
nav { gap: 8px 20px; } nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 14px; } nav a::after { bottom: 2px; height: 3px; background: var(--pink); border-radius: 3px; transition: right .15s ease; }
.shell { width: min(1440px,calc(100% - 40px)); padding: 52px 0 84px; }

.primary-action,.secondary-action,.weather-button { min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 15px; font-weight: 700; box-shadow: none; transition: background-color .15s ease,color .15s ease,border-color .15s ease; }
.primary-action { color: white; background: var(--pink); }.primary-action:hover { color: white; background: var(--pink-dark); transform: none; box-shadow: none; }
.secondary-action { color: var(--ink); background: white; border: 1px solid var(--line); }.secondary-action:hover { color: var(--ink); background: var(--card-soft); }
.form-actions .primary-action,.markup-form .primary-action { background: var(--green); }.form-actions .primary-action:hover,.markup-form .primary-action:hover { background: #82B744; }
button,input,select,textarea,a { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid rgba(147,198,84,.48); outline-offset: 3px; }

.panel,.block-sheet,.week-card,.problem-card,.table-wrap,.readiness-board,.plan-catalog-card,.editor-form { border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.panel { padding: clamp(22px,3vw,36px); }.block-sheet { padding: clamp(28px,4vw,58px); }.block-sheet::before { display: none; }
.page-heading { margin: 8px 0 34px; align-items: center; }.page-heading h1 { margin-bottom: 10px; }.page-heading p:not(.eyebrow) { color: var(--ink-soft); }
.eyebrow { color: var(--green-dark); font-size: 12px; letter-spacing: .13em; }.screen-purpose { color: var(--ink); font-family: "Onest",sans-serif; font-size: 18px; }
.screen-next { margin-top: 32px; padding: 18px 4px; border-color: var(--line); }.screen-next a { color: var(--ink); padding: 0 15px; min-height: 44px; border-radius: 12px; background: white; box-shadow: var(--shadow); text-decoration: none; }
.selection-count { min-width: 88px; min-height: 88px; padding: 10px; color: white; background: var(--pink); font-size: 21px; }

input,select,textarea { min-height: 48px; padding: 10px 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
input:focus,select:focus,textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(147,198,84,.2); }
/* Правило для полей ввода выше растягивало флажки на всю строку — сбрасываем размер один раз для всех, а не заплаткой на каждый блок. */
input[type="checkbox"],input[type="radio"] { width: 20px; min-width: 20px; height: 20px; min-height: 20px; padding: 0; }
.filter-bar { padding: 20px; color: var(--ink); background: white; border-radius: 20px; box-shadow: var(--shadow); }.filter-bar label { color: var(--ink); }.batch-action { border-radius: 20px; }
.suggestion-note,.plan-note { border: 0; border-radius: 14px; background: var(--card-soft); }.suggestion-note b { color: var(--green-dark); }
.block-meta span { padding: 7px 11px; color: var(--green-dark); background: var(--green-soft); border-radius: 10px; }
.month-picker span { min-height: 44px; border-color: var(--line); border-radius: 10px; }.month-picker input:checked + span { background: var(--green); border-color: var(--green); }
.card-transfer { border: 0; border-radius: 16px; background: var(--green-soft); }.card-transfer small { color: var(--green-dark); }
.flow-layout { animation: none; }.flow-rail { border-radius: 18px; background: rgba(255,255,255,.56); }.vertical-progress { background: var(--line); border-radius: 8px; }.vertical-progress b { background: var(--green); border-radius: 8px; }

.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }.data-table { min-width: 760px; font-size: 15px; }.data-table th { padding: 15px; color: var(--ink); background: var(--card-soft); font-weight: 700; }.data-table th:first-child { border-top-left-radius: 20px; }.data-table th:last-child { border-top-right-radius: 20px; }.data-table td { padding: 15px; border-color: var(--line); }.data-table tbody tr:hover { background: #FFF9F7; }
.theme-draft { background: rgba(249,198,216,.24); }.theme-attention { background: #FFF6E8; }.theme-confirmed { background: rgba(201,227,155,.25); }.draft-badge { color: #7C3C57; background: var(--pink-soft); border-radius: 8px; }.confirmed-badge { color: var(--green-dark); background: var(--green-soft); border-radius: 8px; }.attention-badge { color: #7A3A2D; background: #F8DDD5; border-radius: 8px; }
.lesson-chip { border-radius: 12px; background: var(--card-soft); }.lesson-chip strong { color: var(--green-dark); }.week-days > section { border: 0; border-radius: 16px; background: #FFF9F7; }.practice-strip span { border-radius: 12px; background: var(--green-soft); }.plan-catalog-card { border-top: 5px solid var(--green); background: white; }.plan-catalog-card.is-indoor { border-top-color: var(--pink); background: var(--card-soft); }.indoor-badge { color: #7C3C57; background: var(--pink-soft); border-radius: 8px; }.weather-button { background: #8D4438; }.weather-button:hover { background: #73372E; }
.missing-panel .panel-head > strong { color: #8D4438; }.missing-list span { color: #8D4438; }.flash { border: 0; border-radius: 14px; color: var(--green-dark); background: var(--green-soft); }.flash-warning { color: #63362D; background: #F7DDD5; }
.access-banner { margin: 0 0 18px; padding: 16px 20px; border-radius: 14px; background: #fff3cb; color: #503b24; line-height: 1.55; }
.access-banner a { color: inherit; font-weight: 700; }
.access-paid-until { align-self: center; margin-left: auto; padding: 8px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 14px; }
.access-plan-locked { max-width: 900px; margin: 50px auto; }
.access-plan-locked nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.site-footer { width: min(1120px, calc(100% - 32px)); margin: 30px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.site-footer-inner { min-width: 0; overflow-wrap: anywhere; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--green-dark); }
.legal-screen .shell { max-width: 900px; }
.legal-document { padding: 30px clamp(18px, 5vw, 54px); color: #1f1b1a; background: #fffdf8; font: 17px/1.6 Georgia, serif; overflow-wrap: anywhere; }
.legal-document h1 { font-size: clamp(25px, 4vw, 34px); line-height: 1.25; }
.legal-document h2 { margin-top: 30px; font-size: 21px; }
.legal-document table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-document th, .legal-document td { padding: 8px; border: 1px solid #d9cfc9; text-align: left; vertical-align: top; }
.legal-document mark.todo { background: #ffe58a; padding: 0 3px; }
.legal-document .note { color: #6b5f5a; font-size: 14px; }
.registration-consents { display: grid; gap: 8px; margin: 14px 0 20px; }
.registration-consents label { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 8px; }
.registration-consents input { width: 20px; height: 20px; margin: 2px 0 0; }

.page-atmosphere { display: none; }
.parade-screen { background-color: var(--paper); background-image: radial-gradient(circle,#E8DAD5 1.3px,transparent 1.3px); background-size: 24px 24px; }
.parade-screen .page-atmosphere { position: fixed; inset: 78px 0 0; z-index: -1; display: block; overflow: hidden; pointer-events: none; }
.page-atmosphere i { position: absolute; display: block; width: 420px; height: 330px; opacity: .68; }
.page-atmosphere i:first-child { left: -150px; top: 40px; background: var(--pink-soft); border-radius: 39% 61% 46% 54% / 57% 38% 62% 43%; transform: rotate(-12deg); }
.page-atmosphere i:last-child { right: -130px; top: 320px; background: var(--green-soft); border-radius: 62% 38% 56% 44% / 38% 59% 41% 62%; transform: rotate(15deg); }
.parade-screen .shell { position: relative; }
.parade-stickers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }.sticker { position: absolute; width: 22px; height: 22px; }.sticker-flower { left: 2%; top: 19%; fill: var(--pink); transform: rotate(-10deg); }.sticker-heart { right: 3%; top: 9%; fill: var(--green); transform: rotate(12deg); }.sticker-sparks { left: 48%; top: 2%; width: 30px; height: 30px; color: var(--green-dark); }.sticker-clover { right: 0; top: 48%; fill: var(--pink); }.sticker-wave { left: 5%; top: 47%; width: 82px; color: var(--green); transform: rotate(-12deg); }
.welcome-sheet { min-height: 430px; border: 0; border-radius: 28px; background: white; box-shadow: var(--shadow); }.welcome-sheet::after { color: rgba(239,107,160,.08); font-family: "Nunito",sans-serif; }.welcome-copy h1 em { color: var(--pink); font-style: normal; }.welcome-copy .lead { color: var(--ink); font-family: "Onest",sans-serif; font-size: 20px; }
.inline-highlight { display: inline; padding: 2px 8px; border-radius: 8px; color: var(--ink); font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }.inline-highlight.pink { background: var(--pink-soft); }.inline-highlight.green { background: var(--green-soft); }
.how-it-works { color: var(--ink); background: var(--green-soft); border-radius: 24px; box-shadow: none; transform: none; }.how-it-works h2 { color: var(--green-dark); }.how-it-works li::before { color: white; background: var(--pink); }
.route-board { border: 0; border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }.route-heading { position: relative; padding-left: 56px; }.route-heading::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--green); border-radius: 12px; font-family: "Nunito",sans-serif; font-weight: 900; }.route-steps { gap: 14px; padding-left: 64px; }.route-steps::before { display: none; }.route-step { overflow: visible; border: 0; border-radius: 20px; background: white; box-shadow: var(--shadow); }.route-step[open] { box-shadow: var(--shadow); transform: none; }.route-step summary { grid-template-columns: minmax(210px,1fr) auto; min-height: 92px; padding: 18px 22px; }.route-number { position: absolute; left: -76px; top: 5px; width: 66px; height: 76px; margin: 0; color: var(--pink-soft); background: transparent!important; border: 0; border-radius: 0; box-shadow: none!important; font-size: 76px; line-height: 1; }.route-step:nth-child(even) .route-number { color: var(--green-soft); }.route-step summary strong { font-size: 24px; }.route-step summary em { font-size: 13px; text-transform: none; }.route-step summary em b { color: var(--pink); font-family: "Nunito",sans-serif; font-size: 26px; }.route-step.is-done summary em b { color: var(--green-dark); }.route-step.is-current { background: var(--card-soft); }.route-step.is-current:nth-child(odd) { background: #F1F8E6; }.route-step.is-pending:not([open]) { opacity: 1; }.route-step-body { padding: 0 22px 24px; }.route-step-body p { color: var(--ink); }.route-step-body .primary-action { background: var(--pink); }
.assembly-result-screen .assembly-summary { overflow: hidden; color: var(--ink); background: white; border-radius: 24px; box-shadow: var(--shadow); }.assembly-result-screen .assembly-summary .eyebrow { color: var(--green-dark); }.assembly-result-screen .assembly-summary p:last-child { color: var(--ink-soft); }

@media (max-width: 900px) {
  body { font-size: 16px; }.shell { width: min(100% - 28px,1440px); }.topbar { position: static; }.page-heading { align-items: flex-start; }.welcome-sheet { grid-template-columns: 1fr; }.parade-stickers { display: none; }.route-step summary { grid-template-columns: 1fr; }.route-step summary em { text-align: left; }.route-steps { padding-left: 54px; }.route-number { left: -59px; font-size: 60px; width: 52px; }
}

@media (max-width: 520px) {
  body { font-size: 17px; line-height: 1.55; }.shell { width: min(100% - 24px,1440px); padding: 30px 0 58px; }.topbar { padding: 12px; }.brand small { display: none; }.topbar nav { width: 100%; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }.topbar nav a { flex: 0 0 auto; min-height: 44px; padding: 0 8px; }.page-heading h1,.compact-heading h1 { font-size: 46px; }.screen-purpose { font-size: 17px; }.welcome-sheet { min-height: 0; padding: 28px 20px; border-radius: 22px; }.welcome-copy h1 { font-size: 47px; }.welcome-copy .lead { font-size: 18px; }.how-it-works { padding: 22px 18px; border-radius: 18px; }.how-it-works h2 { font-size: 30px; }.how-it-works li { padding-left: 34px; font-size: 16px; }.route-board { padding: 24px 14px; border-radius: 22px; }.route-heading { padding-left: 52px; }.route-heading h2 { font-size: 34px; }.route-steps { padding-left: 42px; }.route-step { border-radius: 17px; }.route-step summary { min-height: 82px; padding: 16px; }.route-step summary strong { font-size: 20px; }.route-number { left: -44px; top: 11px; width: 38px; height: 56px; font-size: 50px; }.route-step-body { padding: 0 16px 18px; }.panel,.block-sheet,.week-card,.problem-card,.table-wrap,.readiness-board,.plan-catalog-card,.editor-form { border-radius: 16px; }.panel,.block-sheet { padding: 20px; }.form-strip,.filter-bar,.rotation-grid { align-items: stretch; flex-direction: column; }.form-strip label,.filter-bar label,.rotation-grid label { width: 100%; min-width: 0; }.filter-bar .secondary-action,.form-strip .primary-action,.rotation-grid .primary-action { width: 100%; }.range-row select { width: 100%; }.month-picker { grid-template-columns: repeat(4,1fr); }.selection-count { min-width: 74px; min-height: 74px; font-size: 17px; }.problem-card { padding: 18px; }.source-grid { grid-template-columns: 1fr; }.catalog-export { padding: 20px; }.data-table { min-width: 720px; }.page-atmosphere i { width: 260px; height: 220px; }.screen-next { align-items: stretch; }.screen-next a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }

/* Remove the legacy serif accents and keep motion limited to color changes. */
nav a::after { display: none; transition: none; }
.route-step { transition: none; }
.welcome-copy h1 em { font-weight: 800; }
.how-it-works li,.lead,.plan-catalog-item > p { font-family: "Onest",sans-serif; }
.route-step summary strong,.counter strong,.metric strong,.missing-panel .panel-head > strong,.problem-index,.readiness-total,.readiness-item strong,.plan-catalog-card h4 { font-family: "Nunito",sans-serif; font-weight: 800; }
.shell,.flow-layout,.block-sheet,.page-heading > div,.week-card,.plan-catalog-card { min-width: 0; max-width: 100%; }
.block-meta span,.problem-card,.route-step summary strong { overflow-wrap: anywhere; }
.block-sheet h2 { overflow-wrap: normal; word-break: normal; hyphens: auto; }

/* The plan itself is the workspace: dense enough to scan, calm enough to edit all evening. */
.plan-screen .shell { width: min(1560px,calc(100% - 40px)); }
.plan-masthead { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin: 4px 0 28px; }
.plan-masthead h1 { max-width: 980px; margin: 0 0 12px; font-size: clamp(46px,5.7vw,76px); }
.plan-masthead h1 em { color: var(--pink); font-style: normal; }
.plan-masthead .screen-purpose { max-width: 850px; margin: 0; color: var(--ink-soft); }
.plan-masthead-side { display: grid; flex: 0 0 auto; justify-items: end; gap: 9px; text-align: right; }
.plan-masthead-side .greeting { margin: 0; }
.school-year-chip { flex: 0 0 auto; padding: 10px 14px; color: var(--green-dark); background: var(--green-soft); border-radius: 12px; font-weight: 700; }
.plan-control-deck { position: sticky; top: 12px; z-index: 8; display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 18px; padding: 18px; background: rgba(255,255,255,.96); border-radius: 20px; box-shadow: 0 8px 28px rgba(31,27,26,.09); }
.plan-context-form { display: flex; gap: 14px; flex: 1 1 auto; }
.plan-context-form label { min-width: min(320px,36vw); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.plan-context-form select { width: 100%; margin-top: 5px; color: var(--ink); font-size: 16px; font-weight: 600; }
.plan-view-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--card-soft); border-radius: 14px; }
.plan-view-switch button { min-width: 112px; min-height: 48px; padding: 0 18px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.plan-view-switch button[aria-pressed="true"] { color: white; background: var(--pink); }
.month-heading-card { margin-bottom: 20px; background: white; border-radius: 18px; box-shadow: var(--shadow); }
.month-heading-card > summary { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 10px 20px; cursor: pointer; list-style: none; }
.month-heading-card > summary::-webkit-details-marker { display: none; }
.month-heading-card > summary span { font-family: "Nunito",sans-serif; font-size: 21px; font-weight: 800; }
.month-heading-card > summary small { color: var(--ink-soft); }
.month-heading-card[open] > summary { border-bottom: 1px solid var(--line); }
.plan-gap-panel { margin: 0 0 20px; padding: 0; background: #FFF8E8; }
.plan-gap-panel > summary { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 10px 20px; cursor: pointer; list-style: none; }
.plan-gap-panel > summary::-webkit-details-marker { display: none; }
.plan-gap-panel > summary span { font-family: "Nunito",sans-serif; font-size: 21px; font-weight: 800; }
.plan-gap-panel > summary small { color: var(--ink-soft); }
.plan-gap-panel ul { margin: 0; padding: 0 20px 18px; list-style: none; }
.plan-gap-panel li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-gap-panel li span { color: var(--ink-soft); font-size: 14px; }
.month-notes-form { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 20px; }
.month-notes-form label { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.month-notes-form textarea { width: 100%; margin-top: 6px; resize: vertical; }
.autosave-state { grid-column: 1/-1; margin: 0; color: var(--green-dark); font-size: 14px; }
.parent-work-editor { padding: 0 20px 22px; border-top: 1px solid var(--line); }
.parent-work-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0 14px; }
.parent-work-editor h3 { margin: 2px 0 0; font-size: 25px; }
.parent-work-list { display: grid; gap: 12px; }
.parent-work-item { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(260px,1.5fr) minmax(240px,1fr) auto; align-items: end; gap: 12px; padding: 15px; background: var(--card-soft); border-radius: 16px; }
.parent-work-item label { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.parent-work-item input,.parent-work-item select,.parent-work-item textarea { margin-top: 5px; }
.parent-work-item > small { grid-column: 1/-2; color: var(--ink-soft); }
.parent-work-actions { display: flex; gap: 8px; }
.success-action { min-height: 48px; padding: 0 18px; color: white; background: var(--green); border: 0; border-radius: 14px; font-weight: 800; }
.tariffs-page, .payment-success { max-width: 900px; margin: 42px auto; }
.tariffs-page > h1, .payment-success > h1 { text-align: center; }
.tariffs-start { display: flex; gap: 20px; justify-content: center; border: 0; margin: 28px 0; }
.tariffs-start legend { margin: 0 auto 12px; font-weight: 700; }
.tariff-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tariff-card { padding: 22px; border: 1px solid var(--line, #d8dfd7); border-radius: 18px; background: white; }
.tariff-card h2, .tariff-card p { margin-top: 0; }
.tariff-price { font-size: 24px; font-weight: 800; }
.tariff-card .primary-action { display: inline-flex; margin-top: 12px; text-decoration: none; }
.tariffs-renewal, .tariffs-payment-note { text-align: center; }
.tariffs-payment-note { max-width: 680px; margin: 24px auto; }
.payment-success { text-align: center; padding: 34px 20px; }
.password-field { position: relative; display: block; margin-top: 7px; }
.password-field input { width: 100%; margin-top: 0 !important; padding-right: 56px; }
.password-toggle { display: none; position: absolute; top: 50%; right: 4px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%); color: var(--ink-soft); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.js-enabled .password-toggle { display: inline-flex; }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.about-screen .shell { width: min(100% - 32px, 960px); padding: 28px 0 48px; }
.about-page { max-width: 880px; margin: 0 auto; overflow-wrap: anywhere; }
.about-hero { padding: 42px 28px; text-align: center; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 24px; }
.about-hero h1 { max-width: 780px; margin: 0 auto 18px; font-size: clamp(32px, 6vw, 52px); line-height: 1.12; }
.about-hero > p { max-width: 710px; margin: 0 auto; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; }
.about-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 800; }
.about-actions a:first-child { color: white; background: var(--pink); text-decoration: none; }
.about-section { margin-top: 28px; padding: 28px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 20px; }
.about-section h2 { margin: 0 0 18px; font-size: 27px; }
.about-section ul, .about-section ol { display: grid; gap: 12px; margin: 0; padding-left: 24px; line-height: 1.55; }
.about-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.about-price-card { min-width: 0; padding: 20px; background: #fffdfa; border: 1px solid var(--line); border-radius: 16px; }
.about-price-card h3 { margin: 0 0 9px; }
.about-price-card p { margin: 0; line-height: 1.45; }
.about-price-card .about-price { margin-bottom: 5px; font-size: 24px; font-weight: 850; }
.about-price-notes { display: grid; gap: 10px; margin: 20px 0 0; padding-left: 22px; line-height: 1.5; }
.about-owner a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tariff-cards { grid-template-columns: 1fr; }
  .tariffs-start { flex-direction: column; align-items: flex-start; }
  .about-screen .shell { width: calc(100% - 24px); padding-top: 12px; }
  .about-hero { padding: 27px 18px; border-radius: 19px; }
  .about-hero h1 { font-size: 34px; }
  .about-hero > p { font-size: 16px; }
  .about-section { margin-top: 16px; padding: 21px 17px; }
  .about-section h2 { font-size: 23px; }
  .about-prices { grid-template-columns: minmax(0, 1fr); }
  .about-price-card { padding: 17px; }
}
.parent-work-add { margin-top: 14px; }
.parent-work-add > summary { display: inline-flex; min-height: 44px; align-items: center; color: var(--green-dark); cursor: pointer; font-weight: 800; }
.parent-work-add .parent-work-item { margin-top: 8px; background: #F5FAEB; }
.parent-work-hint { margin-top: 14px; padding: 14px 16px; background: #FFF8E8; border-radius: 14px; }
.parent-work-hint strong,.parent-work-hint span { display: block; }.parent-work-hint span { color: var(--ink-soft); font-size: 14px; }.parent-work-hint p { margin: 7px 0 0; }
.parent-work-source { margin: 16px 0 8px; color: var(--ink-soft); font-size: 13px; }
.parent-work-empty { margin: 0; padding: 16px; background: var(--card-soft); border-radius: 14px; }
.group-traditions { display: grid; gap: 9px; margin: 0; padding: 16px; border: 0; background: #fff8fb; border-radius: 16px; }
.group-traditions legend { padding: 0 7px; font-family: "Nunito",sans-serif; font-size: 18px; font-weight: 800; }
.group-traditions > p { margin: 0 0 4px; color: var(--ink-soft); font-size: 14px; }
.tradition-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; background: white; border-radius: 12px; }
.tradition-check input { flex: 0 0 auto; margin-top: 4px; }.tradition-check span,.tradition-check small,.tradition-check em { display: block; }.tradition-check small { color: var(--ink-soft); }.tradition-check em { margin-top: 3px; color: #8a5c22; font-size: 13px; }.tradition-check.is-unavailable { opacity: .58; }
.group-tradition-editor { margin-top: 12px; }.group-tradition-editor > summary { min-height: 44px; cursor: pointer; color: var(--green-dark); font-weight: 800; }.custom-tradition-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: var(--card-soft); border-radius: 12px; }.custom-tradition-row small { display: block; color: var(--ink-soft); }.custom-tradition-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }.custom-tradition-form label:last-of-type { grid-column: 1/-1; }.custom-tradition-form button { justify-self: start; }
.privacy-note { display: flex; gap: 8px; padding: 13px 15px; background: #f1f8e5; color: var(--green-dark); border-radius: 14px; }.privacy-note span { color: var(--ink-soft); }
.rpps-editor { padding: 0 20px 22px; border-top: 1px solid var(--line); }.rpps-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 8px; }.rpps-editor h3 { margin: 2px 0 0; font-size: 25px; }.rpps-editor > p { color: var(--ink-soft); }.rpps-count { display: grid; place-items: center; width: 44px; height: 44px; background: var(--green-soft); color: var(--green-dark); border-radius: 14px; font-family: "Nunito",sans-serif; font-size: 22px; font-weight: 800; }.rpps-editor-list { display: grid; gap: 10px; }.rpps-editor-item { display: grid; grid-template-columns: minmax(180px,.65fr) minmax(300px,1.7fr) auto; align-items: end; gap: 12px; padding: 14px; background: var(--card-soft); border-radius: 15px; }.rpps-editor-item label { color: var(--ink-soft); font-size: 13px; font-weight: 700; }.rpps-editor-item input,.rpps-editor-item textarea { margin-top: 5px; }.rpps-actions { display: flex; gap: 8px; }.rpps-add > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--green-dark); font-weight: 800; }.rpps-add .rpps-editor-item { background: #f5faeb; }
.module-plan-panel { margin-bottom: 20px; padding: 25px 28px; }.module-plan-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.module-plan-panel > header h2 { margin: 2px 0; font-size: clamp(30px,2.8vw,40px); }.module-plan-panel > header > span { color: var(--green-dark); font-weight: 800; }
.module-plan-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 10px; margin-top: 14px; }.module-plan-list article { padding: 14px; background: var(--card-soft); border-radius: 14px; }.module-plan-list strong,.module-plan-list small { display: block; }.module-plan-list small { color: var(--ink-soft); }.module-plan-list p { margin: 9px 0; }.module-plan-list article > div:last-child { display: flex; flex-wrap: wrap; gap: 12px; }.module-plan-list a { color: var(--green-dark); font-size: 13px; font-weight: 800; }
.module-warning-list { margin: 14px 0 0; padding: 0; list-style: none; }.module-warning-list li { display: grid; gap: 2px; padding: 10px 12px; background: #FFF1D9; border-top: 1px solid white; }.module-warning-list span { color: #70401F; }
@media (max-width: 900px) {
  .parent-work-editor > header { align-items: stretch; flex-direction: column; }
  .parent-work-editor > header .secondary-action { width: 100%; }
  .parent-work-item { grid-template-columns: 1fr; align-items: stretch; }
  .parent-work-item > small { grid-column: 1; }
  .parent-work-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .group-programs { grid-template-columns: 1fr; }
  .custom-tradition-form,.rpps-editor-item { grid-template-columns: 1fr; }
  .custom-tradition-form label:last-of-type { grid-column: 1; }
  .rpps-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
.period-navigator { display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; gap: 18px; margin: 25px auto 18px; max-width: 760px; }
.period-arrow { width: 52px; height: 52px; padding: 0; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 15px; font-size: 26px; box-shadow: var(--shadow); }
.period-arrow:hover:not(:disabled) { background: var(--green-soft); border-color: var(--green-soft); }
.period-arrow:disabled { opacity: .35; cursor: not-allowed; }
.period-title { min-width: 0; text-align: center; }
.period-title small,.period-title span { display: block; color: var(--ink-soft); }
.period-title strong { display: block; overflow: hidden; font-family: "Nunito",sans-serif; font-size: 28px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.day-plan-sheet,.week-plan-sheet { overflow: hidden; max-width: 100%; background: white; border-radius: 22px; box-shadow: var(--shadow); }
.plan-sheet-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 28px; background: var(--green-soft); }
.plan-sheet-header span { color: var(--green-dark); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.plan-sheet-header h2 { margin: 3px 0 7px; font-size: clamp(31px,3.1vw,44px); }
.plan-sheet-header p { margin: 0; }
.document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.document-actions a { white-space: nowrap; text-decoration: none; }
.plan-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.day-plan-table,.week-plan-table { width: 100%; border-collapse: collapse; }
.day-plan-table { min-width: 760px; table-layout: fixed; }
.day-plan-table thead th,.week-plan-table thead th { padding: 14px 18px; color: var(--ink-soft); background: #FFF9F7; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.day-plan-table thead th:first-child { width: 250px; }
.day-plan-table tbody th { padding: 20px; border-bottom: 1px solid var(--line); font-family: "Nunito",sans-serif; font-size: 19px; text-align: left; vertical-align: top; }
.routine-index { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-right: 10px; color: var(--green-dark); background: var(--green-soft); border-radius: 9px; font-family: "Onest",sans-serif; font-size: 13px; }
.mobile-routine-toggle { display: none; }
.day-plan-table tbody td { padding: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.day-plan-table tbody tr:last-child th,.day-plan-table tbody tr:last-child td { border-bottom: 0; }
.day-plan-table tbody tr:hover { background: #FFFBF9; }
.day-plan-table tbody tr.is-missing { background: #FFF7EE; }
.plan-cell { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 96px; }
.plan-cell-content { display: grid; gap: 11px; min-width: 0; padding: 18px 20px; color: var(--ink); }
.plan-cell-copy { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; text-align: left; }
.plan-cell-copy > span { display: block; white-space: normal; }
.plan-lesson-entry { display: block; margin-bottom: 10px; white-space: normal; }
.plan-lesson-entry:last-child { margin-bottom: 0; }
.plan-lesson-entry > strong,.plan-lesson-entry > span { display: block; }
.plan-lesson-entry > strong { margin-bottom: 2px; font-family: "Nunito",sans-serif; font-size: 16px; font-weight: 900; }
.plan-lesson-entry > span { white-space: pre-line; }
.activity-line { display: block; min-height: 1.62em; white-space: normal; }
.activity-line.is-blank { min-height: .72em; }
.activity-line > strong { font-family: "Nunito",sans-serif; font-weight: 900; }
.week-activity { margin-bottom: 14px; }
.week-activity:last-child { margin-bottom: 0; }
.week-activity-routine { display: block; margin-bottom: 5px; color: var(--green-dark); font-family: "Nunito",sans-serif; font-size: 15px; font-weight: 900; }
.plan-cell-copy > small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 13px; }
.plan-cell-copy:hover > span { color: var(--green-dark); }
.is-missing .plan-cell-copy > span { color: #7A3A2D; font-weight: 700; }
.gymnastics-summary { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 11px 13px; color: var(--ink); background: var(--card-soft); border: 1px solid #F9C6D8; border-radius: 15px; text-align: left; }
.gymnastics-summary[data-gym-kind="after_sleep"] { background: #F3F8E9; border-color: var(--green-soft); }
.gymnastics-summary:hover,.gymnastics-summary:focus-visible { border-color: var(--pink); outline: 3px solid rgba(239,107,160,.18); outline-offset: 2px; }
.gymnastics-summary[data-gym-kind="after_sleep"]:hover,.gymnastics-summary[data-gym-kind="after_sleep"]:focus-visible { border-color: var(--green); outline-color: rgba(147,198,84,.22); }
.gymnastics-summary-icon { display: grid; place-items: center; width: 44px; height: 44px; color: white; background: var(--pink); border-radius: 12px; }
.gymnastics-summary[data-gym-kind="after_sleep"] .gymnastics-summary-icon { background: var(--green); }
.gymnastics-summary-icon svg { width: 25px; height: 25px; fill: currentColor; }
.gymnastics-summary-copy { min-width: 0; }
.gymnastics-summary-copy small,.gymnastics-summary-copy strong,.gymnastics-summary-copy em { display: block; }
.gymnastics-summary-copy small { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.gymnastics-summary-copy strong { margin-top: 1px; font-family: "Nunito",sans-serif; font-size: 18px; line-height: 1.25; }
.gymnastics-summary-copy em { margin-top: 2px; color: var(--green-dark); font-size: 12px; font-style: normal; font-weight: 800; }
.gymnastics-popover-backdrop { position: fixed; inset: 0; z-index: 52; background: rgba(31,27,26,.26); }
.gymnastics-popover-backdrop[hidden],.gymnastics-popover[hidden] { display: none; }
.gymnastics-popover { position: fixed; z-index: 53; width: min(520px,calc(100vw - 24px)); min-width: min(280px,calc(100vw - 24px)); max-height: min(720px,calc(100dvh - 24px)); overflow-y: auto; padding: 24px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 54px rgba(31,27,26,.2); }
.gymnastics-popover-close { position: sticky; top: 0; float: right; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 4px 12px; padding: 0; color: var(--ink); background: var(--card-soft); border: 0; border-radius: 12px; font-size: 28px; }
.gymnastics-popover-heading { padding: 0 42px 16px 0; border-bottom: 1px solid var(--line); }
.gymnastics-popover-heading p { margin: 0 0 4px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gymnastics-popover-heading h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.gymnastics-popover-heading span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 13px; }
.gymnastics-popover section { margin-top: 17px; }
.gymnastics-popover section h3 { margin: 0 0 7px; font-size: 20px; }
.gymnastics-popover section p { margin: 0; }
.gymnastics-meta { padding: 12px 14px; background: var(--card-soft); border-radius: 13px; }
.gymnastics-meta strong { color: #7C3C57; }
.gymnastics-exercises { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: gym-exercise; }
.gymnastics-exercises li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 14px; padding: 11px 12px; background: #FFF9F7; border-radius: 12px; counter-increment: gym-exercise; }
.gymnastics-exercises li p::before { content: counter(gym-exercise) ". "; color: var(--pink); font-weight: 900; }
.gymnastics-exercises li span { align-self: start; padding: 3px 8px; color: var(--green-dark); background: var(--green-soft); border-radius: 8px; font-size: 13px; font-weight: 800; white-space: nowrap; }
body.has-gymnastics-popover { overflow: hidden; }
.plan-cell-actions { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 154px; padding: 12px 14px 12px 0; }
.plan-cell-actions button { min-height: 42px; padding: 6px 10px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.cell-choose { color: var(--ink); background: white; border: 1px solid var(--line); }
.cell-next { color: var(--green-dark); background: var(--green-soft); border: 0; }
.cell-next:disabled { color: var(--ink-soft); background: #F4EFEC; opacity: .65; }
.week-plan-table { min-width: 1180px; table-layout: fixed; }
.week-plan-table th:nth-child(1) { width: 115px; }.week-plan-table th:nth-child(2) { width: 250px; }.week-plan-table th:nth-child(3) { width: 500px; }
.week-plan-table td { padding: 20px; border-right: 1px solid var(--line); vertical-align: top; white-space: pre-line; }
.week-plan-table td.week-activities { white-space: normal; }
.week-plan-table td:last-child { border-right: 0; }
.week-plan-table td > span { display: block; margin-top: 12px; color: var(--ink-soft); }
.week-plan-table tbody tr + tr td { border-top: 1px solid var(--line); }
.week-plan-table tbody td p { margin: 0 0 9px; }
.week-plan-table tbody td p:last-child { margin-bottom: 0; }
/* Недельные колонки объединены на все дни: без sticky их текст оставался у верхней кромки многоэкранной ячейки. */
.week-span-cell { position: sticky; top: 18px; display: block; }
.week-theme-card { display: grid; gap: 14px; white-space: normal; }
.week-theme-card section { display: grid; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.week-theme-card section:last-child { padding-bottom: 0; border-bottom: 0; }
.week-theme-card small { color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.week-theme-card strong { color: #5E3446; font-family: "Nunito",sans-serif; font-size: 19px; line-height: 1.28; }
.week-theme-card p { margin: 0; font-weight: 750; line-height: 1.45; }
.direction-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.direction-chips span { position: relative; display: inline-flex; width: auto; margin: 0; padding: 5px 8px; color: var(--green-dark); background: #F1F8E6; border: 1px solid rgba(147,198,84,.28); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.25; text-transform: none; cursor: help; }
.direction-chips.upbringing-chips span { color: #7C3C57; background: #FFF0F5; border-color: rgba(239,107,160,.24); }
.direction-chips span::after { content: attr(data-direction-hint); position: absolute; left: 0; bottom: calc(100% + 9px); z-index: 20; width: min(290px,72vw); padding: 11px 13px; color: white; background: var(--ink); border-radius: 11px; box-shadow: 0 10px 25px rgba(31,27,26,.2); font-size: 13px; font-weight: 600; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .14s,transform .14s; }
.direction-chips span:hover::after,.direction-chips span:focus-visible::after { opacity: 1; transform: translateY(0); }
.direction-chips span:focus-visible { outline: 3px solid rgba(23,63,143,.22); outline-offset: 2px; }
.week-day-summary { margin-bottom: 14px; padding: 13px 14px; background: var(--card-soft); border-radius: 13px; }
.week-day-summary:last-child { margin-bottom: 0; }
.week-day-summary b { color: #7C3C57; }
.week-day-summary p { margin: 7px 0 0; white-space: pre-line; }
.plan-empty-state { padding: 44px; text-align: center; background: white; border-radius: 22px; box-shadow: var(--shadow); }
.plan-empty-state h2 { margin-top: 0; }
.cell-editor-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(31,27,26,.28); }
.cell-editor { position: fixed; top: 0; right: 0; z-index: 41; width: min(620px,calc(100% - 24px)); height: 100dvh; overflow-y: auto; padding: 26px; background: var(--paper); box-shadow: -12px 0 38px rgba(31,27,26,.16); transform: translateX(102%); visibility: hidden; transition: transform .18s ease,visibility .18s ease; }
.cell-editor.is-open { transform: translateX(0); visibility: visible; }
.cell-editor > header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.cell-editor > header h2 { margin: 2px 0 0; font-size: 36px; }
.cell-editor > header small { color: var(--green-dark); font-weight: 700; }
.cell-editor > header button { flex: 0 0 auto; width: 48px; height: 48px; padding: 0; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; font-size: 28px; }
.editor-current,.ready-options,.custom-option,.weather-option { margin-top: 14px; padding: 20px; background: white; border-radius: 18px; box-shadow: var(--shadow); }
.editor-current small { color: var(--ink-soft); }.editor-current p { margin: 7px 0 0; white-space: pre-line; }
.editor-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }.editor-section-title h3,.custom-option h3 { margin: 0 0 13px; font-size: 23px; }.editor-section-title span { color: var(--ink-soft); font-size: 13px; }
.ready-option-list { display: grid; gap: 9px; }
.ready-option { width: 100%; min-height: 66px; padding: 13px 15px; color: var(--ink); background: #FFF9F7; border: 1px solid var(--line); border-radius: 13px; text-align: left; }
.ready-option:hover { background: var(--green-soft); border-color: var(--green-soft); }
.ready-option strong,.ready-option small { display: block; }.ready-option small { margin-top: 3px; color: var(--ink-soft); }
.custom-option textarea { width: 100%; resize: vertical; }.custom-option .confirm-action { width: 100%; min-height: 48px; margin-top: 10px; color: white; background: var(--green); border: 0; border-radius: 14px; font-weight: 800; }
.weather-option { background: var(--card-soft); }.weather-option h3 { margin: 0 0 6px; font-size: 23px; }.weather-option p { margin: 0 0 13px; }.weather-option label { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }.weather-option select,.weather-option input { width: 100%; margin-top: 5px; }.weather-option button { width: 100%; min-height: 48px; margin-top: 12px; color: white; background: #8D4438; border: 0; border-radius: 14px; font-weight: 800; }.weather-option .restore-walk { color: var(--ink); background: white; border: 1px solid var(--line); }
.editor-message { min-height: 25px; margin: 15px 4px 0; color: #7A3A2D; }
body.has-cell-editor { overflow: hidden; }

/* The application header stays in document flow: page titles can never slide under it. */
html { scroll-padding-top: 24px; }
.topbar { position: relative; top: auto; z-index: 10; }
.topbar + .shell { padding-top: clamp(34px,4vw,58px); }

.garden-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: 22px; align-items: start; }
.corpus-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; background: var(--green-soft); }
.corpus-summary h2,.corpus-summary p { margin: 0; }.corpus-summary .eyebrow { margin-bottom: 4px; color: var(--green-dark); }
.gym-corpus-summary { background: var(--card-soft); }.gym-corpus-summary .eyebrow { color: #7C3C57; }
.table-limit-note { margin: 0; padding: 13px 18px; color: var(--ink-soft); background: #FFF9F7; border-bottom: 1px solid var(--line); }
.profile-form,.group-form { display: grid; gap: 16px; }
.profile-form label,.group-form label,.schedule-context label,.schedule-editor label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.garden-groups { display: grid; gap: 12px; }
.garden-group { padding: 17px; background: var(--card-soft); border-radius: 16px; }
.garden-group header { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.garden-group h3 { margin: 0; }
.garden-group p { margin: 5px 0 13px; color: var(--ink-soft); }
.garden-group nav { display: flex; flex-wrap: wrap; gap: 9px; }

.schedule-context { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.schedule-context form { display: flex; align-items: end; gap: 12px; }
.schedule-version-layout { display: grid; grid-template-columns: minmax(230px,.34fr) minmax(0,1fr); gap: 22px; align-items: start; margin-bottom: 22px; }
.schedule-version-layout.is-single { grid-template-columns: 1fr; }
.schedule-history h2,.schedule-editor h2 { margin-top: 0; }
.version-list { display: grid; gap: 9px; }
.version-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; min-height: 74px; padding: 12px 14px; color: var(--ink); background: #FFF9F7; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.version-item span,.version-item small { color: var(--ink-soft); font-size: 13px; }
.version-item small { grid-column: 1 / -1; }
.version-item.is-current { background: var(--green-soft); border-color: var(--green); }
.schedule-editor .form-strip { margin-top: 14px; }
.schedule-table .table-caption { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; }
.schedule-table .table-caption h2 { margin: 0; }
.schedule-table .table-caption p { margin: 0 0 3px; }
.schedule-add-prompt { margin: 8px 0 0; color: var(--ink-soft); }
.schedule-editor form { display: grid; gap: 16px; margin-top: 14px; }
.schedule-editor form[hidden],.schedule-inline-edit[hidden],.schedule-slot-display[hidden] { display: none; }
.schedule-time-fields { display: grid; grid-template-columns: repeat(2,minmax(140px,220px)); gap: 12px; }
.schedule-week-table { table-layout: fixed; }
.schedule-week-table thead th:first-child { width: 190px; }
.schedule-day-row > th { padding: 20px 18px; color: var(--ink); background: var(--card-soft); vertical-align: top; }
.schedule-day-row > th span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; color: white; background: var(--green); border-radius: 11px; font-family: "Nunito",sans-serif; font-size: 19px; }
.schedule-day-row > th strong { font-family: "Nunito",sans-serif; font-size: 20px; }
.schedule-day-row > td { padding: 8px 16px 14px; }
.schedule-day-slots { display: grid; }
.schedule-slot-row { border-bottom: 1px solid var(--line); }
.schedule-slot-display { display: grid; grid-template-columns: 145px minmax(220px,1fr) auto; align-items: center; gap: 16px; min-height: 68px; }
.schedule-slot-time { font-size: 18px; white-space: nowrap; }
.schedule-slot-types { font-weight: 700; }
.schedule-slot-actions { display: flex; gap: 7px; }
.schedule-slot-actions button,.schedule-add-day { min-height: 44px; padding: 0 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; }
.schedule-slot-actions .schedule-delete { color: #7B3028; }
.schedule-add-day { margin-top: 12px; color: var(--green-dark); background: #F7FBEF; border-color: var(--green-soft); }
.schedule-empty-day { margin: 14px 0 0; color: var(--ink-soft); font-style: italic; }
.schedule-inline-edit { display: grid; gap: 12px; padding: 15px 0; }
.schedule-inline-edit label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.schedule-inline-types { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 10px; }
.schedule-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.schedule-inline-actions > span { color: #7B3028; font-size: 14px; }
.schedule-form-state { margin: 0; color: #7B3028; }
.schedule-undo-toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 14px; max-width: min(420px,calc(100vw - 32px)); padding: 15px 17px; color: white; background: var(--ink); border-radius: 15px; box-shadow: 0 12px 36px rgba(31,27,26,.24); }
.schedule-undo-toast[hidden] { display: none; }
.schedule-undo-toast button { min-height: 44px; padding: 0 12px; color: var(--ink); background: var(--green-soft); border: 0; border-radius: 10px; font-weight: 900; }

@media (max-width: 900px) {
  .garden-grid,.schedule-version-layout { grid-template-columns: 1fr; }.schedule-context { align-items: stretch; flex-direction: column; }.schedule-context form { align-items: stretch; }.plan-masthead { align-items: flex-start; flex-direction: column; }.plan-control-deck { position: static; align-items: stretch; flex-direction: column; }.plan-context-form { width: 100%; }.plan-context-form label { min-width: 0; flex: 1; }.plan-view-switch button { width: 100%; }.month-notes-form { grid-template-columns: 1fr; }.autosave-state { grid-column: 1; }.plan-sheet-header { align-items: flex-start; flex-direction: column; }.document-actions { justify-content: flex-start; }
  .plan-masthead-side { align-self: stretch; justify-items: end; }
  .schedule-slot-display { grid-template-columns: 125px minmax(190px,1fr) auto; }.schedule-inline-types { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .plan-screen .shell { width: min(100% - 20px,1560px); }.plan-masthead { margin-bottom: 22px; }.plan-masthead h1 { font-size: 43px; }.school-year-chip { font-size: 14px; }.plan-control-deck { padding: 13px; border-radius: 16px; }.plan-context-form { flex-direction: column; }.plan-view-switch button { min-width: 0; }.month-heading-card > summary { align-items: flex-start; flex-direction: column; justify-content: center; }.period-navigator { grid-template-columns: 46px minmax(0,1fr) 46px; gap: 8px; }.period-arrow { width: 46px; height: 46px; }.period-title strong { font-size: 22px; }.period-title span { font-size: 13px; }.day-plan-sheet,.week-plan-sheet { border-radius: 17px; }.plan-sheet-header { padding: 20px 16px; }.plan-sheet-header h2 { font-size: 32px; }.document-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.document-actions a { justify-content: center; padding: 0 11px; }.document-actions .primary-action { grid-column: 1/-1; }.day-plan-table { min-width: 680px; }.day-plan-table thead th:first-child { width: 190px; }.day-plan-table tbody th { padding: 16px 13px; font-size: 17px; }.plan-cell { grid-template-columns: minmax(0,1fr) 132px; }.plan-cell-content { padding: 15px 13px; }.plan-cell-actions { width: 132px; padding-right: 9px; }.cell-editor { width: 100%; padding: 18px 12px; }.cell-editor > header h2 { font-size: 30px; }.editor-current,.ready-options,.custom-option,.weather-option { padding: 16px; border-radius: 15px; }.gymnastics-summary { grid-template-columns: 40px minmax(0,1fr); padding: 10px; }.gymnastics-summary-icon { width: 40px; height: 40px; }.gymnastics-summary-copy strong { font-size: 17px; }.gymnastics-popover { inset: auto 12px 12px !important; width: auto; min-width: 280px; max-height: calc(100dvh - 24px); padding: 20px 16px; }.gymnastics-popover-heading h2 { font-size: 25px; }.gymnastics-exercises li { grid-template-columns: 1fr; }.gymnastics-exercises li span { justify-self: start; }
  .schedule-context form { flex-direction: column; }.schedule-context form button { width: 100%; }.garden-group header { align-items: flex-start; flex-direction: column; }.plan-masthead { gap: 10px; margin-top: 0; margin-bottom: 15px; }.plan-masthead h1 { margin-bottom: 8px; font-size: 39px; }.plan-masthead .screen-purpose { font-size: 15px; line-height: 1.4; }.school-year-chip { padding: 7px 11px; }.plan-control-deck { gap: 10px; margin-bottom: 12px; }.plan-context-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }.plan-context-form select { min-width: 0; padding: 8px; font-size: 14px; text-overflow: ellipsis; }.plan-view-switch button { min-height: 44px; }.month-heading-card { margin-bottom: 10px; }.month-heading-card > summary { min-height: 54px; padding: 8px 16px; }.month-heading-card > summary span { font-size: 19px; }.month-heading-card > summary small { font-size: 12px; }.period-navigator { margin: 12px auto 10px; }
}

/* Final interface polish: one rhythm for navigation, forms, cards and small screens. */
.topbar nav { align-items: center; }
.topbar nav a,.topbar nav button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.topbar nav a:hover,.topbar nav a.is-current { background: var(--card-soft); }
.topbar nav a.is-current { color: #7C3C57; }
.topbar nav form { display: flex; margin: 0; padding-left: 4px; border-left: 1px solid var(--line); }
.topbar nav .nav-logout { color: var(--ink-soft); }
.topbar nav .nav-logout:hover { color: var(--ink); background: #F5EFEC; }

.panel,.block-sheet,.week-card,.table-wrap,.readiness-board,.plan-catalog-card,
.month-heading-card,.module-plan-panel,.day-plan-sheet,.week-plan-sheet {
  border: 1px solid rgba(128,91,78,.055);
}
.panel > :last-child,.block-sheet > :last-child { margin-bottom: 0; }
.panel-head { align-items: center; }
summary { border-radius: 10px; }
summary:hover { color: var(--green-dark); }

.profile-form > button,.group-form > button,.editor-form > form > button,
.year-switch button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font-weight: 800;
}
.profile-form > button:hover,.group-form > button:hover,.editor-form > form > button:hover,
.year-switch button:hover { background: #82B744; }

.confirm-action {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font-weight: 800;
}
.confirm-action:hover { background: #82B744; }

.garden-layout {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr);
  gap: 22px;
  align-items: start;
}
.garden-profile-card,.garden-groups-card,.add-group-form { min-width: 0; }
.garden-profile-card { display: grid; gap: 16px; }
.garden-profile-card > fieldset:first-of-type { display: grid; min-width: 0; gap: 16px; margin: 0; padding: 0; border: 0; }
.garden-profile-card > fieldset:first-of-type > label,.add-group-form > label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}
.garden-profile-card > fieldset:first-of-type > .confirm-action { justify-self: start; }
.profile-group-list { display: grid; gap: 12px; }
.profile-group-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFDFC;
}
.profile-group-item h3 { margin: 4px 0; font-size: 24px; }
.profile-group-item > div:first-child > span,.profile-group-item > div:first-child > p {
  color: var(--ink-soft);
  font-size: 13px;
}
.profile-group-item > div:first-child > p { margin: 0; }
.profile-group-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-group-actions a {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}
.add-group-form { display: grid; gap: 14px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.privacy-note { display: grid; gap: 3px; padding: 13px 14px; border-radius: 13px; background: #F5FAEB; }
.privacy-note span { color: var(--ink-soft); font-size: 13px; }

.group-form > fieldset:not(.group-programs):not(.group-traditions),
.add-group-form > fieldset:not(.group-programs):not(.group-traditions),
.group-program-editor form > fieldset:not(.group-programs):not(.group-traditions) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.group-form > fieldset:not(.group-programs):not(.group-traditions) legend,
.add-group-form > fieldset:not(.group-programs):not(.group-traditions) legend,
.group-program-editor form > fieldset:not(.group-programs):not(.group-traditions) legend {
  padding: 0 7px;
  font-weight: 800;
}
.group-form > fieldset:not(.group-programs):not(.group-traditions) p,
.add-group-form > fieldset:not(.group-programs):not(.group-traditions) p,
.group-program-editor form > fieldset:not(.group-programs):not(.group-traditions) p {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.plan-masthead > div,.plan-control-deck,.plan-context-form,.plan-context-form label,
.module-plan-panel,.module-plan-panel > header,.module-plan-list,.module-plan-list article {
  min-width: 0;
}
.module-plan-panel { overflow: hidden; }
.module-plan-panel > header > span { max-width: 55%; text-align: right; }
.plan-cell-copy > span { line-height: 1.62; }
.day-plan-table tbody th { color: #39302E; }
.schedule-context > div { display: grid; min-width: 0; gap: 2px; }
.schedule-context > div small,.schedule-context > div strong,.schedule-context > div span { display: block; }
.schedule-context > div small,.schedule-context > div span { color: var(--ink-soft); }
.schedule-context > div strong { overflow-wrap: anywhere; }

.login-screen {
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 24px;
  background: #FFF9F7;
}
.login-screen .shell { width: min(100%,960px); min-width: 0; max-width: 100%; padding: 0; }
.login-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: min(760px,calc(100vh - 48px));
  place-items: center;
  padding: 132px 24px 72px;
  isolation: isolate;
}
.login-brand {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
}
.login-brand > span:last-child { min-width: 0; }
.login-brand strong,.login-brand small { display: block; }
.login-brand strong { font-family: "Nunito",sans-serif; font-size: 22px; font-weight: 850; line-height: 1.15; }
.login-brand small { margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
.login-brand .brand-mark { flex: 0 0 auto; width: 54px; height: 54px; }
.login-card {
  position: relative;
  z-index: 2;
  width: min(100%,480px);
  max-width: 100%;
  margin: 0;
  padding: clamp(34px,6vw,52px);
  text-align: center;
  border: 1px solid rgba(239,107,160,.12);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(72,45,39,.1);
}
.login-screen .login-card .eyebrow { margin-bottom: 7px; }
.login-screen .editor-form h1 { margin: 0 0 11px; font-size: clamp(48px,8vw,66px); }
.login-screen .editor-form > p:not(.eyebrow) { max-width: 360px; margin: 0 auto 30px; color: var(--ink-soft); }
.login-screen .editor-form form { display: grid; width: min(100%,360px); gap: 17px; margin: 0 auto; text-align: left; }
.login-screen .editor-form label { color: var(--ink); font-size: 14px; }
.login-screen .editor-form input { margin-top: 7px; background: #FFFDFC; }
.login-screen .editor-form button { width: 100%; margin-top: 9px; background: var(--pink); }
.login-screen .editor-form button:hover { background: var(--pink-dark); }
.login-decoration { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.login-blob { position: absolute; display: block; filter: saturate(.88); }
.login-blob-pink {
  left: -70px;
  top: 95px;
  width: 260px;
  height: 215px;
  background: #F9C6D8;
  border-radius: 42% 58% 67% 33% / 46% 38% 62% 54%;
  transform: rotate(-13deg);
}
.login-blob-green {
  right: -82px;
  bottom: 52px;
  width: 285px;
  height: 235px;
  background: #C9E39B;
  border-radius: 62% 38% 43% 57% / 45% 61% 39% 55%;
  transform: rotate(11deg);
}
.login-flower { position: absolute; font-style: normal; line-height: 1; }
.flower-one { left: 16%; bottom: 18%; color: var(--green); font-size: 34px; transform: rotate(-12deg); }
.flower-two { right: 15%; top: 21%; color: var(--pink); font-size: 29px; transform: rotate(15deg); }
.flower-three { left: 23%; top: 15%; color: var(--pink); font-size: 20px; }
.login-spark { position: absolute; width: 42px; height: 34px; }
.login-spark::before,.login-spark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 18px;
  background: var(--green-dark);
  border-radius: 6px;
  transform-origin: bottom center;
}
.login-spark::before { left: 8px; bottom: 0; transform: rotate(-45deg); }
.login-spark::after { right: 8px; bottom: 0; transform: rotate(45deg); }
.spark-one { right: 23%; bottom: 17%; transform: rotate(15deg); }
.spark-two { left: 12%; top: 35%; transform: rotate(-28deg); }

.feedback-page { max-width: 760px; margin: 28px auto; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.feedback-page h1,.feedback-page h2 { margin-top: 0; }
.feedback-form { display: grid; gap: 16px; }
.feedback-form label { display: grid; gap: 8px; font-weight: 700; }
.feedback-form textarea { min-height: 150px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.feedback-form button { justify-self: start; }
.feedback-anonymous { grid-template-columns: auto 1fr; align-items: center; }
.feedback-exports { display: flex; flex-wrap: wrap; gap: 12px; }
.feedback-list ul { display: grid; gap: 12px; padding: 0; list-style: none; }
.feedback-list li { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.feedback-list time { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

@media (max-width: 700px) {
  .topbar { gap: 8px; }
  .topbar nav { margin: 0 -4px -4px; padding: 0 4px 4px; }
  .topbar nav a,.topbar nav button { padding: 0 11px; }
  .topbar nav form { padding-left: 0; border-left: 0; }
  .module-plan-panel > header { align-items: flex-start; flex-direction: column; }
  .module-plan-panel > header > span { max-width: none; text-align: left; }
  .garden-layout { grid-template-columns: minmax(0,1fr); }
  .garden-profile-card > .confirm-action { width: 100%; }
}

@media (max-width: 520px) {
  .day-plan-sheet .plan-table-scroll { overflow-x: hidden; }
  .day-plan-table tbody td, .day-plan-table tbody tr.is-mobile-open td { display: block; width: 100%; }
  .mobile-routine-toggle { display: none; }
  .topbar nav { flex-wrap: wrap; overflow: visible; }
  .topbar nav a, .topbar nav button { min-height: 44px; }
  html, body { max-width: 100%; overflow-x: clip; }
}

/* Б6: дневное расписание читается сверху вниз на телефоне. */
@media (max-width: 520px) {
  .day-plan-sheet .plan-table-scroll { overflow-x: hidden; }
  .day-plan-table tbody td,
  .day-plan-table tbody tr.is-mobile-open td { display: block; width: 100%; }
  .day-plan-table tbody th { gap: 8px; }
  .mobile-routine-toggle { display: none; }
  .onboarding { max-width: 760px; margin: 0 auto; padding: 24px; }
  .onboarding h1 { font-size: clamp(30px, 9vw, 42px); }
  .onboarding-lead { font-size: 18px; }
  .onboarding-steps { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
  .onboarding-step { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
  .onboarding-step h2 { margin: 0 0 8px; font-size: 22px; }
  .onboarding-step p { margin: 0; }
  .onboarding-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .onboarding .primary-action, .onboarding button, .step-done { min-height: 44px; }
  .topbar nav { flex-wrap: wrap; overflow: visible; }
  .topbar nav a, .topbar nav button { min-height: 44px; }
  html, body { max-width: 100%; overflow-x: clip; }
}

/* The quiet floral atmosphere from the sign-in screen continues through the service. */
.work-screen:not(.login-screen) .page-atmosphere {
  position: fixed;
  inset: 76px 0 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.work-screen:not(.login-screen) > .topbar,
.work-screen:not(.login-screen) > .shell { position: relative; z-index: 1; }
.work-screen:not(.login-screen) .page-atmosphere i { opacity: .22; filter: saturate(.75); }
.work-screen:not(.login-screen) .page-atmosphere::before,
.work-screen:not(.login-screen) .page-atmosphere::after {
  position: absolute;
  color: var(--pink);
  font-family: Georgia,serif;
  line-height: 1;
  opacity: .28;
}
.work-screen:not(.login-screen) .page-atmosphere::before { content: "✿"; left: 2.2%; top: 18%; font-size: 30px; transform: rotate(-13deg); }
.work-screen:not(.login-screen) .page-atmosphere::after { content: "✤"; right: 2.5%; top: 56%; color: var(--green); font-size: 27px; transform: rotate(12deg); }

@media (max-width: 900px) {
  .work-screen:not(.login-screen) .page-atmosphere::before,
  .work-screen:not(.login-screen) .page-atmosphere::after { display: none; }
  .work-screen:not(.login-screen) .page-atmosphere i { opacity: .14; }
}

@media (max-width: 520px) {
  .plan-screen,.plan-screen .shell,.plan-masthead,.plan-masthead > div,
  .plan-control-deck,.plan-context-form,.month-heading-card,.module-plan-panel {
    min-width: 0;
    max-width: 100%;
  }
  .plan-masthead h1 { max-width: 100%; overflow-wrap: anywhere; }
  .plan-masthead h1 em { display: block; }
  .plan-context-form { grid-template-columns: 1fr; }
  .plan-context-form label,.plan-context-form select { width: 100%; max-width: 100%; }
  .module-plan-list { grid-template-columns: minmax(0,1fr); }
  .module-plan-list article,.module-plan-list strong,.module-plan-list p { overflow-wrap: anywhere; }
  .group-form > fieldset:not(.group-programs):not(.group-traditions),
  .add-group-form > fieldset:not(.group-programs):not(.group-traditions),
  .group-program-editor form > fieldset:not(.group-programs):not(.group-traditions) {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-screen { display: block; min-width: 0; padding: 14px; }
  .login-screen .shell { width: 100%; }
  .login-stage { width: 100%; max-width: 100%; min-height: calc(100vh - 28px); padding: 116px 0 44px; }
  .login-brand { top: 25px; width: calc(100% - 16px); justify-content: center; }
  .login-brand strong { font-size: 19px; }
  .login-brand small { overflow: hidden; max-width: 245px; text-overflow: ellipsis; white-space: nowrap; }
  .login-brand .brand-mark { width: 48px; height: 48px; }
  .login-card { width: 100%; padding: 32px 22px; border-radius: 22px; }
  .login-blob-pink { left: -105px; top: 110px; width: 210px; height: 180px; }
  .login-blob-green { right: -120px; bottom: 8px; width: 240px; height: 205px; }
  .flower-one { left: 3%; bottom: 11%; }
  .flower-two { right: 4%; top: 22%; }
  .flower-three,.spark-two { display: none; }
}

@media (max-width: 700px) {
  .day-plan-sheet .plan-table-scroll { overflow: visible; }
  .day-plan-table { display: block; min-width: 0; table-layout: auto; }
  .day-plan-table thead { display: none; }
  .day-plan-table tbody { display: grid; gap: 10px; padding: 10px; background: #FFF9F7; }
  .day-plan-table tbody tr { display: block; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 15px; }
  .day-plan-table tbody tr + tr { margin-top: 0; }
  .day-plan-table tbody th { display: flex; align-items: center; width: 100%; padding: 13px; border: 0; font-size: 17px; }
  .day-plan-table tbody tr.is-mobile-open th { background: #F5FAEB; border-bottom: 1px solid var(--line); }
  .day-plan-table tbody td { display: none; width: 100%; border: 0; }
  .day-plan-table tbody tr.is-mobile-open td { display: block; }
  .mobile-routine-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-left: auto; padding: 0 12px; color: var(--green-dark); background: white; border: 1px solid var(--green-soft); border-radius: 11px; font-size: 13px; font-weight: 800; }
  .plan-cell { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .plan-cell-content { padding: 14px 13px 10px; }
  .plan-cell-actions { width: 100%; flex-direction: row; justify-content: flex-start; padding: 0 13px 13px; }
  .plan-cell-actions button { flex: 1; }
}
/* Общий стиль кнопок формы входа растягивает кнопку на всю ширину и красит её — глаз должен остаться маленьким и прозрачным. */
.login-screen .editor-form .password-toggle, .editor-form .password-toggle { width: 44px; margin-top: 0; background: transparent; }
.login-screen .editor-form .password-toggle:hover, .editor-form .password-toggle:hover { background: rgba(0,0,0,.05); }
/* Edge рисует свой глаз в поле пароля — рядом с нашим получается два. */
.password-field input::-ms-reveal, .password-field input::-ms-clear { display: none; }
