/* Fase 6: shared templates and responsive site chrome. */
:root {
  --sf-ink: #171717;
  --sf-yellow: #ffcb28;
  --sf-orange: #f78e00;
  --sf-paper: #fffefa;
  --sf-cream: #fff7df;
  --sf-soft: #fff9ea;
  --sf-line: #ddd9cf;
  --sf-width: 1192px;
  --sf-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.f6-tool-fragment-loading { scroll-behavior: auto !important; }
body.site-phase6 { margin: 0; color: var(--sf-ink); background: var(--sf-paper); font-family: Sen, "Trebuchet MS", Arial, sans-serif; }
.site-phase6 a { color: inherit; }
.site-phase6 button, .site-phase6 input, .site-phase6 select, .site-phase6 textarea { font: inherit; }
.shell { width: min(100% - 32px, var(--sf-width)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; left: 12px; top: -100px; padding: 10px 14px; background: var(--sf-ink); color: var(--sf-yellow) !important; }
.skip-link:focus { top: 12px; }

.site-head { position: relative; z-index: 20; background: #fff; border-bottom: 2px solid var(--sf-ink); }
.site-head > .shell { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; white-space: nowrap; }
.logo img { display: block; width: 45px; height: 54px; object-fit: contain; }
.brand-url { color: var(--sf-ink); font-size: 14px; line-height: 1; font-weight: 900; letter-spacing: -.01em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 20px); margin-left: auto; }
.desktop-nav > a, .desktop-nav .more-nav > summary { font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.desktop-nav > a.active, .desktop-nav .service-access > a.active, .desktop-nav .more-nav.active > summary { box-shadow: inset 0 -4px var(--sf-orange); }
.service-access { display: inline-grid; min-width: 0; gap: 1px; vertical-align: top; }
.service-access-status { color: #514a3c; font-size: 11px; font-weight: 650; line-height: 1.2; }
.desktop-nav > .service-access { max-width: 160px; }
.desktop-nav > .service-access > a { font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.desktop-nav > .service-access > .service-access-status { font-size: 10px; }
.more-nav { position: relative; }
.more-nav > summary { list-style: none; cursor: pointer; }
.more-nav > summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; z-index: 30; top: calc(100% + 14px); right: 0; width: 220px; display: grid; gap: 4px; padding: 10px; border: 1.5px solid var(--sf-ink); border-radius: 12px; background: #fff; box-shadow: 5px 5px 0 var(--sf-yellow); }
.more-panel a { display: block; padding: 9px 10px; font-size: 14px; font-weight: 800; text-decoration: none; }
.more-panel a:hover, .mobile-nav > nav > a:hover, .mobile-nav > nav > .service-access > a:hover { background: var(--sf-cream); }
.mobile-nav { display: none; }

.f6-breadcrumbs { padding-block: 16px; }
.f6-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.f6-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #6b6250; }
.f6-breadcrumbs a { text-underline-offset: 3px; }
.f6-hero { overflow: hidden; background: var(--sf-yellow); border-bottom: 2px solid var(--sf-ink); }
.f6-hero-grid { min-height: 390px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; padding-block: 38px; }
.f6-hero-copy { min-width: 0; }
.f6-eyebrow { display: inline-block; margin: 0; padding: 7px 11px; border-radius: 999px; background: var(--sf-ink); color: var(--sf-yellow); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-phase6 h1 { max-width: 740px; margin: 17px 0 15px; font-size: clamp(40px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.055em; }
.site-phase6 h2 { margin: 0 0 20px; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -.04em; }
.site-phase6 h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.2; }
.site-phase6 p, .site-phase6 li { line-height: 1.55; }
.f6-lede { max-width: 58ch; margin: 0 0 24px; font-size: 19px; }
.f6-hero-art { width: 100%; margin: 0; }
.f6-hero-art img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.f6-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.f6-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 11px 19px; border: 2px solid var(--sf-ink); border-radius: 10px; background: var(--sf-ink); color: var(--sf-yellow) !important; font-size: 15px; font-weight: 900; line-height: 1.3; text-align: center; text-decoration: none; }
.f6-button:hover { background: #333; }
.f6-button--light { background: transparent; color: var(--sf-ink) !important; }
.f6-text-link { font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.f6-section { padding-block: 58px; border-bottom: 1px solid var(--sf-line); }
.f6-section--soft { background: var(--sf-soft); }
.f6-section--cream { background: var(--sf-cream); }
.f6-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.f6-section-head > * { margin-bottom: 0; }
.f6-section-head p { max-width: 55ch; }
.f6-mini { margin: 0 0 8px; color: #564a2e; font-size: 12px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.f6-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.f6-region-grid > .f6-card { grid-column: span 6; min-width: 0; }
.f6-card-grid--four > .f6-card { grid-column: span 3; }
.f6-card-grid--three > .f6-card { grid-column: span 4; }
.f6-card { display: flex; min-width: 0; flex-direction: column; padding: 22px; border: 1.5px solid var(--sf-ink); border-radius: var(--sf-radius); background: #fff; box-shadow: 5px 5px 0 var(--sf-yellow); text-decoration: none; }
.f6-card p { margin: 0 0 14px; }
.f6-card-action { margin-top: auto; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.f6-card:hover { transform: translateY(-2px); }
.f6-course-grid > .f6-card { grid-column: span 4; }
.f6-stage-section { margin-top: 32px; }
.f6-stage-section .f6-section-head { margin-bottom: 20px; }
.f6-learning-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 28px; padding: 28px; border: 1.5px solid var(--sf-ink); border-radius: 20px; background: var(--sf-cream); }
.f6-learning-panel > :first-child > :first-child { margin-top: 0; }
.f6-progress-stack { display: grid; gap: 16px; }
.f6-progress-stack > * { min-width: 0; }
.course-progress, .task-progress-panel { padding: 18px; border: 1px solid var(--sf-line); border-radius: 12px; background: #fff; }
.course-progress progress, .task-progress-panel progress, .checklist-progress-wrap progress { display: block; width: 100%; height: 14px; margin-block: 10px; accent-color: var(--sf-orange); }
.course-progress progress::-webkit-progress-bar, .task-progress-panel progress::-webkit-progress-bar, .checklist-progress-wrap progress::-webkit-progress-bar { border-radius: 999px; background: #eee8d9; }
.course-progress progress::-webkit-progress-value, .task-progress-panel progress::-webkit-progress-value, .checklist-progress-wrap progress::-webkit-progress-value { border-radius: 999px; background: var(--sf-orange); }
.course-progress progress::-moz-progress-bar, .task-progress-panel progress::-moz-progress-bar, .checklist-progress-wrap progress::-moz-progress-bar { border-radius: 999px; background: var(--sf-orange); }
.course-resume { display: flex; flex-wrap: wrap; gap: 10px; }
.f6-related { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px; }
.f6-related a { padding: 10px 14px; border: 1px solid var(--sf-ink); border-radius: 9px; background: #fff; font-weight: 800; }
.f6-checklist-note { max-width: 900px; margin: 26px 0; padding: 16px 19px; border-left: 5px solid var(--sf-orange); border-radius: 0 12px 12px 0; background: #fff; }
.f6-checklist-note p { margin: 0 0 9px; }
.f6-checklist-note p:last-child { margin-bottom: 0; }
.f6-progress-panel { margin-block: 0 22px; padding: 18px; border: 1px solid var(--sf-line); border-radius: 14px; background: #fff; }
.checklist-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.progress-copy > :last-child { margin-bottom: 0; }
.progress-count { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.storage-note { color: #514a3c; font-size: 14px; }
.f6-manage-progress > summary, .f6-more-help > summary { cursor: pointer; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.f6-manage-progress .checklist-actions { display: grid; gap: 8px; margin-top: 12px; }
.f6-manage-progress .checklist-actions button, .legacy-migration-note button { min-height: 40px; padding: 8px 11px; border: 1px solid var(--sf-ink); border-radius: 8px; background: #fff; font-weight: 750; cursor: pointer; }
.f6-progress-panel progress { grid-column: 1 / -1; }
.f6-checklist-stages { margin-top: 24px; }
.f6-stage-card { grid-column: span 3; color: var(--sf-ink); }
.f6-stage-card strong { margin-bottom: 5px; font-size: 18px; }
.f6-stage-card > span:last-child { color: #514a3c; font-size: 14px; }
.f6-task-stage { margin-block: 32px; scroll-margin-top: 96px; }
.f6-task-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.f6-task-list > li { min-width: 0; }
.checklist-task-details, .f6-class-task-details { overflow: hidden; border: 1px solid var(--sf-line); border-radius: 14px; background: #fff; }
.checklist-task-summary, .f6-class-task-details > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) max-content; align-items: center; gap: 8px 13px; padding: 17px 19px; cursor: pointer; list-style: none; }
.checklist-task-summary::-webkit-details-marker, .f6-class-task-details > summary::-webkit-details-marker { display: none; }
.checklist-task-summary::after, .f6-class-task-details > summary::after { content: "+"; grid-column: 3; grid-row: 1; font-size: 22px; font-weight: 700; }
.checklist-task-details[open] > .checklist-task-summary::after, .f6-class-task-details[open] > summary::after { content: "−"; }
.checklist-task-summary > strong { grid-column: 2; grid-row: 1; font-size: 18px; }
.f6-step { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; background: var(--sf-yellow); font-size: 12px; font-weight: 900; white-space: nowrap; }
.task-summary-state { grid-column: 2; grid-row: 2; width: fit-content; padding: 3px 8px; border-radius: 999px; background: var(--sf-cream); font-size: 12px; font-weight: 850; }
.task-summary-result { grid-column: 2 / 4; grid-row: 3; color: #514a3c; font-size: 13px; overflow-wrap: anywhere; }
.checklist-task-details[open] > .checklist-task-summary, .f6-class-task-details[open] > summary { border-bottom: 1px solid var(--sf-line); background: var(--sf-soft); }
.f6-task-card, .f6-class-task-details .shared-task-card { margin: 0; padding: 19px; border: 0; border-radius: 0; }
.f6-task-card h3, .f6-class-task-details .shared-task-card h3 { margin: 0 0 9px; }
.f6-task-card > p, .f6-class-task-details .shared-task-card > p { max-width: 78ch; }
.task-links { display: grid; gap: 7px; margin-block: 16px; }
.task-links > p { margin: 0; }
.f6-more-help { padding-top: 9px; border-top: 1px solid var(--sf-line); }
.f6-more-help > p { margin: 11px 0 0; }
.f6-more-help > p:last-child { margin-bottom: 0; }
.task-state-fields { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sf-line); }
.task-state-fields label { font-weight: 850; }
.task-state-fields select, .task-state-fields input, .task-state-fields textarea { width: min(100%, 520px); padding: 10px; border: 1px solid #827b6c; border-radius: 8px; background: #fff; }
.task-field-help { max-width: 70ch; margin: 0; color: #514a3c; font-size: 14px; }
.task-feedback { margin: 0; }
.f6-concept-index { display: flex; flex-wrap: wrap; gap: 10px; }
.f6-concept-index a { padding: 9px 12px; border: 1px solid var(--sf-ink); border-radius: 999px; background: #fff; font-weight: 800; }
.f6-norm-grid > .f6-card { grid-column: span 4; }
.f6-reading-width { max-width: 800px; }
.f6-legal-body section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--sf-line); }
.f6-legal-body section h2 { font-size: 25px; }
.f6-legal-body p, .f6-legal-body li { max-width: 72ch; }
.f6-404 { padding-block: 80px; }
.f6-class-body { padding-top: 34px; }
.f6-lesson-content { max-width: 900px; }
.f6-lesson-content > * { min-width: 0; }
.lesson-content-copy { max-width: 72ch; }
.lesson-content-copy h3 { margin-top: 32px; }
.lesson-content-copy h3:first-of-type { margin-top: 22px; }
.lesson-content-copy p { margin: 0 0 17px; }
.lesson-callout { margin-block: 22px; padding: 18px 20px; border-left: 5px solid var(--sf-orange); border-radius: 0 12px 12px 0; background: var(--sf-cream); }
.lesson-callout-attention { background: #fff4d5; }
.lesson-callout-label { display: block; margin-bottom: 5px; font-weight: 900; }
.lesson-callout p { margin: 0; }
.lesson-media-block, .lesson-tool, .lesson-practice, .lesson-quiz, .lesson-sources, .lesson-class-tasks { margin-block: 28px; padding: 22px; border: 1px solid var(--sf-line); border-radius: 16px; background: #fff; }
.lesson-media-block h2, .lesson-tool h2, .lesson-practice h2, .lesson-quiz h2, .lesson-sources h2 { font-size: clamp(24px, 2.2vw, 32px); }
.lesson-video-frame { overflow: hidden; border-radius: 12px; background: #111; }
.lesson-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.lesson-video-poster, .lesson-video-poster img { display: block; width: 100%; }
.lesson-calculation > summary, .lesson-class-tasks > details > summary { cursor: pointer; font-weight: 900; }
.lesson-calculation { margin-block: 20px; padding: 16px; border: 1px solid var(--sf-line); border-radius: 12px; background: var(--sf-soft); }
.lesson-tool { background: var(--sf-cream); }
.f6-tool-intro { max-width: 72ch; }
.practice-card, .quiz-item, .shared-task-card { padding: 18px; border: 1px solid var(--sf-line); border-radius: 12px; background: var(--sf-paper); }
.practice-list, .quiz-list { display: grid; gap: 12px; }
.practice-card p { margin: 0; }
.lesson-quiz > p { margin-top: -8px; }
.quiz-question { margin-top: 0; }
.quiz-item details > summary { cursor: pointer; font-weight: 800; }
.f6-class-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.f6-class-actions { margin-top: 20px; }
.f6-class-progress { margin-block: 28px; }
.f6-service-note { padding: 13px 16px; border-left: 4px solid var(--sf-orange); background: var(--sf-cream); }
.f6-service-access-status { display: block; margin-top: 2px; color: #514a3c; font-size: 13px; font-weight: 750; line-height: 1.35; }
.f6-hero .f6-service-note { flex: 1 1 100%; max-width: 66ch; margin: 0; }
.f6-service-note + .f6-button { flex: 0 0 auto; }
.lesson-task-returns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.lesson-task-return { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 12px; border: 1px solid var(--sf-ink); border-radius: 9px; background: var(--sf-cream); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lesson-task-return[hidden] { display: none; }
.f6-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.f6-list > li { grid-column: span 6; min-width: 0; }
.f6-table-wrap { overflow-x: auto; max-width: 100%; }
.f6-table-wrap table { width: 100%; border-collapse: collapse; }
.f6-table-wrap th, .f6-table-wrap td { padding: 12px; border-bottom: 1px solid var(--sf-line); text-align: left; vertical-align: top; }
.f6-table-wrap th { background: var(--sf-cream); }
.f6-territory-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.f6-territory-list > li { grid-column: span 4; min-width: 0; }
.f6-territory-card { height: 100%; }
.f6-territory-card p { margin: 0 0 12px; }
.f6-price-grid > article { grid-column: span 4; }
.f6-price { margin: 8px 0; font-size: 42px; font-weight: 900; letter-spacing: -.04em; }
.f6-price-card--featured { background: var(--sf-yellow); }
.f6-faq-list { max-width: 900px; display: grid; gap: 12px; }
.f6-faq-list details { padding: 18px; border: 1px solid var(--sf-line); border-radius: 12px; background: #fff; }
.f6-faq-list summary { cursor: pointer; font-weight: 900; }
.f6-faq-list details p { margin-bottom: 0; }
.f6-footer { padding-block: 36px 20px; background: var(--sf-ink); color: #fff; }
.f6-footer-grid { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr) minmax(320px, 4fr); gap: 28px; align-items: start; }
.f6-footer-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; color: var(--sf-yellow) !important; font-weight: 900; text-decoration: none; }
.f6-footer-logo img { width: 45px; height: 54px; object-fit: contain; }
.f6-footer-note p:first-child { font-weight: 900; }
.f6-footer-grid nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.f6-footer-grid nav a { color: #fff; }
.f6-footer-grid nav .service-access--footer { max-width: 210px; }
.f6-footer-grid nav .service-access--footer a { color: #fff; }
.f6-footer-grid nav .service-access--footer .service-access-status { color: #fff; font-size: 12px; }
.f6-footer-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 16px; border-top: 1px solid #555; font-size: 13px; }

/* T16: keep lesson copy readable while giving every visual the same stage. */
.lesson-content-copy { max-width: 900px; }
.lesson-content-copy > h3,
.lesson-content-copy > p,
.lesson-content-copy > .lesson-callout { max-width: 72ch; }
.lesson-content-copy > .lesson-illustration,
.lesson-content-copy > .lesson-animation-svg,
.lesson-content-copy > .lesson-calculation { width: 100%; max-width: 900px; }
.lesson-illustration,
.lesson-animation-svg { box-sizing: border-box; width: 100%; max-width: 900px; padding: 16px; }
.lesson-illustration-picture { display: block; width: 100%; }
.lesson-animation-figure { border: 0; }
.lesson-calculation { width: 100%; max-width: 900px; padding: 0; }
.lesson-calculation > summary { padding: 16px; }
.lesson-calculation > :not(summary):not(.lesson-illustration):not(.lesson-animation-svg) { max-width: 72ch; margin-inline: 16px; }
.lesson-calculation > .lesson-illustration,
.lesson-calculation > .lesson-animation-svg { width: calc(100% + 2px); max-width: 900px; margin-inline: -1px; }
.lesson-calculation .table-wrap,
.lesson-calculation .f6-table-wrap { width: calc(100% - 32px); max-width: calc(100% - 32px); min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.lesson-calculation .table-wrap table,
.lesson-calculation .f6-table-wrap table { max-width: none; }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, var(--sf-width)); }
  .site-head > .shell { min-height: 76px; gap: 12px; }
  .logo img { width: 40px; height: 48px; }
  .brand-url { font-size: 12px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav > summary { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 15px; border: 2px solid var(--sf-ink); border-radius: 9px; background: var(--sf-yellow); font-size: 14px; font-weight: 900; list-style: none; cursor: pointer; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav > summary::after { content: " ☰"; margin-left: 8px; }
  .mobile-nav[open] > summary::after { content: " ×"; }
  .mobile-nav > nav { position: absolute; z-index: 40; top: calc(100% + 2px); right: 14px; width: min(340px, calc(100vw - 28px)); display: grid; gap: 2px; padding: 12px; border: 2px solid var(--sf-ink); border-radius: 12px; background: #fff; box-shadow: 6px 6px 0 var(--sf-yellow); }
  .mobile-nav:not([open]) > nav { display: none; }
  .mobile-nav > nav > a, .mobile-nav .more-nav > summary { display: block; padding: 11px 12px; font-size: 15px; font-weight: 850; text-decoration: none; }
  .mobile-nav > nav > .service-access { display: grid; gap: 1px; padding: 8px 12px; }
  .mobile-nav > nav > .service-access > a { display: block; font-size: 15px; font-weight: 850; text-decoration: none; }
  .mobile-nav > nav > .service-access > .service-access-status { font-size: 12px; }
  .mobile-nav > nav > a.active, .mobile-nav > nav > .service-access > a.active, .mobile-nav .more-nav.active > summary { border-left: 4px solid var(--sf-orange); background: var(--sf-cream); }
  .mobile-nav .more-panel { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--sf-line); border-radius: 0; margin: 0 0 4px 12px; padding: 0 0 0 10px; }
  .mobile-nav .nav-cta { margin-top: 8px; border-radius: 8px; background: var(--sf-ink); color: var(--sf-yellow) !important; text-align: center; }
  .f6-breadcrumbs { padding-block: 12px; }
  .f6-breadcrumbs ol { font-size: 12px; }
  .f6-hero-grid { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 25px 20px; }
  .site-phase6 h1 { margin: 13px 0 10px; font-size: clamp(34px, 9vw, 43px); line-height: 1.06; }
  .site-phase6 h2 { font-size: clamp(27px, 7vw, 34px); }
  .f6-lede { margin-bottom: 18px; font-size: 16px; line-height: 1.45; }
  .f6-hero-art { height: 178px; overflow: hidden; }
  .f6-hero-art img { width: 100%; height: 100%; object-fit: contain; }
  .f6-eyebrow { padding: 6px 9px; font-size: 10px; }
  .f6-button { min-height: 47px; padding: 10px 15px; font-size: 14px; }
  .f6-section { padding-block: 40px; }
  .f6-section-head { display: block; margin-bottom: 20px; }
  .f6-section-head p { margin-bottom: 18px; }
  .f6-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .f6-territory-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f6-card-grid--four > .f6-card, .f6-card-grid--three > .f6-card { grid-column: span 4; }
  .f6-course-grid > .f6-card, .f6-list > li, .f6-territory-list > li, .f6-price-grid > article { grid-column: span 4; }
  .f6-region-grid > .f6-card { grid-column: span 4; }
  .f6-norm-grid > .f6-card { grid-column: span 4; }
  .f6-stage-card { grid-column: span 2; }
  .checklist-toolbar { grid-template-columns: minmax(0, 1fr); }
  .f6-manage-progress .checklist-actions { grid-template-columns: minmax(0, 1fr); }
  .checklist-task-summary, .f6-class-task-details > summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px 9px; padding: 14px; }
  .checklist-task-summary > strong { font-size: 16px; }
  .f6-task-card, .f6-class-task-details .shared-task-card { padding: 15px; }
  .task-summary-result { grid-column: 2 / 4; }
  .f6-card { padding: 18px; box-shadow: 4px 4px 0 var(--sf-yellow); }
  .f6-learning-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .lesson-media-block, .lesson-tool, .lesson-practice, .lesson-quiz, .lesson-sources, .lesson-class-tasks { margin-block: 20px; padding: 16px; }
  .f6-class-navigation { display: grid; }
  .f6-class-navigation > * { width: 100%; }
  .f6-footer-grid { display: block; }
  .f6-footer-grid > * { margin-bottom: 20px; }
  .f6-footer-grid nav { gap: 10px 14px; }
  .f6-footer-bottom { flex-wrap: wrap; }
  .f6-actions { gap: 10px; }
  .f6-table-wrap th, .f6-table-wrap td { padding: 9px; }
  .lesson-illustration, .lesson-animation-svg { padding: 8px; }
  .lesson-calculation > summary { padding: 12px; }
  .lesson-calculation > :not(summary):not(.lesson-illustration):not(.lesson-animation-svg) { margin-inline: 12px; }
  .lesson-calculation .table-wrap,
  .lesson-calculation .f6-table-wrap { width: calc(100% - 24px); max-width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
