:root {
  --ink: #10232b;
  --ink-2: #183743;
  --muted: #5c7178;
  --paper: #ffffff;
  --soft: #f4f8f8;
  --soft-2: #eef5f4;
  --line: #dce8e8;
  --teal: #078b89;
  --coral: #f06449;
  --yellow: #f4bd32;
  --green: #49a66a;
  --navy: #172f45;
  --danger: #c53d2f;
  --shadow: 0 18px 45px rgba(16, 35, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 232, 232, 0.86);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.brand__name,
.brand__sub {
  display: block;
}

.brand__name {
  font-size: 1.08rem;
  font-weight: 800;
}

.brand__sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

.nav-links--actions {
  gap: 14px;
}

.nav-links--actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links--actions a:hover,
.nav-links--actions a:focus-visible {
  border-color: var(--line);
  background: var(--soft);
}

.nav-links--actions .nav-cta {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.nav-links--actions .nav-cta:hover,
.nav-links--actions .nav-cta:focus-visible {
  color: var(--ink);
  background: #ffd256;
  border-color: #ffd256;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button__line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background-image: url("assets/hero-kids-it.jpg");
  background-position: center;
  background-size: cover;
}

.hero--home {
  min-height: 72svh;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 24, 31, 0.86), rgba(10, 24, 31, 0.46) 52%, rgba(10, 24, 31, 0.24));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 66px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.98;
  font-weight: 900;
}

.hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.24rem;
  line-height: 1.48;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button--primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffd256;
}

.button--ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.button--soft,
.button--plain {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.button--soft:hover,
.button--soft:focus-visible,
.button--plain:hover,
.button--plain:focus-visible {
  border-color: var(--teal);
  background: var(--soft);
}

.button--full {
  width: 100%;
}

.button__plus {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.hero__facts div {
  min-width: 0;
}

.hero__fact-label {
  display: block;
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__facts strong {
  display: block;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 850;
}

.section {
  padding: 76px 0;
}

.is-hidden {
  display: none !important;
}

.section--portal,
.section--course {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading--sticky {
  position: sticky;
  top: 104px;
  align-self: start;
}

.section-heading h2,
.dashboard-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.08;
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: start;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.info-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.info-panel:nth-child(2) {
  border-left-color: var(--coral);
}

.info-panel:nth-child(3) {
  border-left-color: var(--yellow);
}

.info-panel--free {
  border-left-color: var(--green);
}

.info-panel__number {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-panel h3,
.sector-preview h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.18;
  font-weight: 900;
}

.info-panel p,
.sector-preview p {
  margin: 0;
  color: var(--muted);
}

.sector-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sector-preview {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.sector-preview--ready {
  border-top-color: var(--teal);
}

.sector-preview span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-preview strong {
  align-self: end;
  color: var(--ink);
  font-size: 0.9rem;
}

.page-hero {
  padding: 74px 0;
  color: var(--paper);
  background: var(--ink);
}

.page-hero--parent {
  background:
    linear-gradient(135deg, rgba(16, 35, 43, 0.96), rgba(7, 139, 137, 0.82)),
    url("assets/hero-kids-it.jpg") center/cover;
}

.page-hero--kid {
  background:
    linear-gradient(135deg, rgba(23, 47, 69, 0.92), rgba(240, 100, 73, 0.72)),
    url("assets/hero-kids-it.jpg") center/cover;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: end;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.02;
  font-weight: 900;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.page-hero__note {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero__note strong {
  color: var(--yellow);
  font-size: 1.18rem;
  font-weight: 900;
}

.page-hero__note span {
  color: rgba(255, 255, 255, 0.84);
}

.parent-login-hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.parent-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.parent-login-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--paper);
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
}

.parent-login-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.14rem;
}

.trust-list {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 750;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--yellow);
}

.auth-shell {
  width: 100%;
}

.auth-shell__label {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-shell__label span {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-shell__label strong {
  color: var(--paper);
  font-size: 1.02rem;
}

.auth-shell .setup-alert {
  color: #7b2119;
  background: #fff3f1;
}

.section-heading p:not(.eyebrow),
.dashboard-header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.setup-alert {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(197, 61, 47, 0.28);
  border-radius: 8px;
  color: var(--danger);
  background: rgba(197, 61, 47, 0.08);
  font-weight: 750;
}

.parent-note {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid rgba(7, 139, 137, 0.26);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.parent-note p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.auth-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.auth-switcher {
  width: min(480px, 100%);
  margin: 0 auto;
}

.auth-panel {
  min-height: 0;
  gap: 18px;
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(7, 20, 28, 0.24);
}

.auth-card-header {
  display: grid;
  gap: 8px;
}

.auth-card-header h2 {
  font-size: 1.7rem;
}

.auth-card-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.auth-login-instruction {
  padding: 12px 14px;
  border: 1px solid rgba(7, 139, 137, 0.18);
  border-radius: 8px;
  color: var(--ink) !important;
  background: rgba(7, 139, 137, 0.08);
  font-size: 1rem !important;
  font-weight: 850;
}

.auth-card-note {
  position: relative;
  margin: 0;
  padding: 14px 14px 14px 46px;
  border: 1px solid rgba(244, 189, 50, 0.46);
  border-radius: 8px;
  color: var(--ink);
  background: #fff8dc;
  font-size: 0.96rem;
  font-weight: 750;
  text-align: left;
}

.auth-card-note::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.9rem;
  font-weight: 900;
}

.auth-card-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 900;
}

.auth-card-note span {
  display: block;
  margin-top: 4px;
}

.auth-card-note--steps {
  background: #f3fbfb;
  border-color: rgba(7, 139, 137, 0.28);
}

.auth-card-note--steps::before {
  content: "i";
  color: var(--paper);
  background: var(--teal);
}

.auth-switch-text {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 750;
  text-align: center;
}

.auth-switch-text button {
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-underline-offset: 3px;
}

.auth-switch-text button:hover,
.auth-switch-text button:focus-visible {
  text-decoration: underline;
}

.dashboard-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  margin-top: 24px;
}

.portal-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.portal-card--accent {
  color: var(--paper);
  border-color: rgba(23, 47, 69, 0.18);
  background: var(--navy);
}

.portal-card h2,
.portal-card h3 {
  margin: 0;
  color: inherit;
  font-size: 1.42rem;
  line-height: 1.15;
  font-weight: 900;
}

.portal-card--calm {
  background: linear-gradient(180deg, #ffffff, #f8fcfb);
}

.auth-grid--parent {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.portal-card label,
.interest-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.portal-card input,
.interest-form input,
.interest-form textarea {
  width: 100%;
  border: 1px solid #c8d8d8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.portal-card input::placeholder,
.interest-form input::placeholder,
.interest-form textarea::placeholder {
  color: #82969d;
}

.portal-card input:focus,
.interest-form input:focus,
.interest-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(7, 139, 137, 0.12);
}

.dashboard,
.kid-app {
  display: grid;
  gap: 24px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.dashboard-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.kid-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.language-switcher--login {
  width: fit-content;
  margin-top: 12px;
}

.language-switcher span {
  padding: 0 8px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-switcher button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--ink);
  background: #ffffff;
}

.language-switcher button.is-active {
  color: var(--paper);
  background: var(--teal);
}

.weekly-report-dashboard,
.history-weekly-report {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(23, 47, 69, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.weekly-report-dashboard__hero,
.history-weekly-report__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 18px;
  align-items: stretch;
}

.weekly-report-dashboard__hero h2,
.history-weekly-report__top h3 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.08;
  font-weight: 900;
}

.weekly-report-dashboard__hero p:not(.eyebrow),
.history-weekly-report__top p:not(.eyebrow) {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--muted);
}

.weekly-report-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
}

.weekly-report-dashboard__metrics article,
.history-weekly-report__score {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 110px;
  padding: 16px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
}

.weekly-report-dashboard__metrics article:nth-child(2) {
  background: var(--teal);
}

.weekly-report-dashboard__metrics article:nth-child(3) {
  color: var(--ink);
  background: var(--yellow);
}

.weekly-report-dashboard__metrics span,
.history-weekly-report__score span,
.weekly-report-card__top span,
.weekly-report-card__stats dt,
.weekly-report-card__action span,
.history-weekly-report__grid span,
.history-weekly-report__action span,
.weekly-mistake span,
.weekly-timeline span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-report-dashboard__metrics span,
.history-weekly-report__score span {
  color: rgba(255, 255, 255, 0.72);
}

.weekly-report-dashboard__metrics article:nth-child(3) span {
  color: rgba(16, 35, 43, 0.62);
}

.weekly-report-dashboard__metrics strong,
.history-weekly-report__score strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.weekly-report-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.weekly-report-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--soft);
}

.weekly-report-card.is-review,
.history-weekly-report.is-review {
  border-left-color: var(--danger);
}

.weekly-report-card.is-strong,
.history-weekly-report.is-strong {
  border-left-color: var(--green);
}

.weekly-report-card.is-learning,
.history-weekly-report.is-learning {
  border-left-color: var(--yellow);
}

.weekly-report-card.is-quiet,
.history-weekly-report.is-quiet {
  border-left-color: var(--muted);
}

.weekly-report-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weekly-report-card__top span,
.weekly-report-card__stats dt,
.weekly-report-card__action span,
.history-weekly-report__grid span,
.history-weekly-report__action span,
.weekly-mistake span,
.weekly-timeline span {
  color: var(--muted);
}

.weekly-report-card__top h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.14;
  font-weight: 900;
}

.weekly-report-card__top strong {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
  text-align: center;
  font-weight: 900;
}

.weekly-report-card__headline {
  margin: 0;
  color: var(--ink-2);
  font-weight: 900;
}

.weekly-report-card p {
  margin: 0;
  color: var(--muted);
}

.weekly-report-card__stats,
.history-weekly-report__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.weekly-report-card__stats div,
.history-weekly-report__grid article,
.history-weekly-report__action,
.weekly-mistake,
.weekly-timeline li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekly-report-card__stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 900;
}

.weekly-report-card__action,
.history-weekly-report__action {
  display: grid;
  gap: 6px;
}

.history-weekly-report__grid strong,
.history-weekly-report__action p,
.weekly-mistake strong,
.weekly-mistake p,
.weekly-timeline p {
  margin: 4px 0 0;
}

.history-weekly-report__grid strong,
.weekly-mistake strong,
.weekly-timeline strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 900;
}

.history-weekly-report__action p,
.weekly-mistake p,
.weekly-timeline p,
.weekly-report-empty {
  color: var(--muted);
}

.history-weekly-report__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.history-weekly-report__details h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.weekly-mistake-list,
.weekly-timeline {
  display: grid;
  gap: 10px;
}

.weekly-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-report-empty {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
}

.rewards-panel,
.history-rewards {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(7, 139, 137, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 189, 50, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(73, 166, 106, 0.12), transparent 30%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.rewards-panel__hero,
.history-rewards__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.rewards-panel__hero h3,
.history-rewards__top h3 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 900;
}

.rewards-panel__hero p:not(.eyebrow),
.history-rewards__top p:not(.eyebrow),
.history-rewards__next p {
  margin: 8px 0 0;
  color: var(--muted);
}

.reward-level-card {
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
}

.reward-level-card--parent {
  background: var(--teal);
}

.reward-level-card span,
.reward-stats span,
.reward-mini-card__top span,
.history-rewards__next span,
.reward-badge__top span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-level-card span {
  color: rgba(255, 255, 255, 0.74);
}

.reward-level-card strong {
  font-size: 1.3rem;
  line-height: 1.12;
  font-weight: 900;
}

.reward-stats {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(260px, 1.6fr);
  gap: 12px;
}

.reward-stats article,
.history-rewards__next,
.reward-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.reward-stats span,
.reward-mini-card__top span,
.history-rewards__next span {
  color: var(--muted);
}

.reward-stats strong,
.history-rewards__next strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.14;
  font-weight: 900;
}

.reward-stats article:not(.reward-next-card) strong {
  font-size: 2rem;
  line-height: 1;
}

.reward-next-card p,
.reward-next-card small,
.reward-mini-card p,
.reward-mini-card small {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.reward-mini-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reward-mini-card__top strong {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.reward-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 35, 43, 0.1);
}

.reward-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.reward-badges,
.history-rewards__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.reward-badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(73, 166, 106, 0.35);
  border-radius: 8px;
  background: #ffffff;
}

.reward-badge.is-locked {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.reward-badge__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.reward-badge.is-locked .reward-badge__mark {
  color: var(--muted);
  background: var(--soft-2);
}

.reward-badge__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.reward-badge__top strong {
  color: var(--ink);
  line-height: 1.16;
  font-weight: 900;
}

.reward-badge__top span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #246b3d;
  background: rgba(73, 166, 106, 0.16);
}

.reward-badge.is-locked .reward-badge__top span {
  color: var(--muted);
  background: var(--soft);
}

.reward-badge p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.kid-card__reward {
  margin-top: 8px !important;
  color: var(--teal) !important;
  font-weight: 850;
}

.parent-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-card strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
}

.credential-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.credential-card div {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.credential-card dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.credential-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.credential-card p {
  margin: 0;
  color: var(--muted);
}

.safety-dashboard {
  display: grid;
  gap: 18px;
}

.safety-dashboard__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fcfb);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.safety-dashboard__hero h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.08;
  font-weight: 900;
}

.safety-dashboard__hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
}

.safety-dashboard__focus {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
}

.safety-dashboard__focus span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.safety-dashboard__focus strong {
  font-size: 1.22rem;
  line-height: 1.15;
  font-weight: 900;
}

.safety-dashboard__focus p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.safety-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.safety-metric {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.safety-metric:nth-child(2) {
  border-top-color: var(--green);
}

.safety-metric:nth-child(3) {
  border-top-color: var(--yellow);
}

.safety-metric:nth-child(4) {
  border-top-color: var(--coral);
}

.safety-metric span,
.safety-panel__head > span,
.safety-kid-card__top span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.safety-metric strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.safety-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.safety-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.safety-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.safety-panel--wide {
  grid-row: span 2;
}

.safety-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.safety-panel__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.12;
  font-weight: 900;
}

.safety-panel__head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(7, 139, 137, 0.1);
}

.safety-conversations,
.safety-rules,
.safety-routine {
  display: grid;
  gap: 12px;
}

.safety-kid-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: #fbfdfd;
}

.safety-kid-card.is-ready {
  border-left-color: var(--teal);
}

.safety-kid-card.is-alert {
  border-left-color: var(--danger);
}

.safety-kid-card.is-strong {
  border-left-color: var(--green);
}

.safety-kid-card__top,
.safety-kid-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.safety-kid-card h4 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.15;
  font-weight: 900;
}

.safety-kid-card__top strong {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  text-align: center;
  font-weight: 900;
}

.safety-kid-card p {
  margin: 0;
  color: var(--muted);
}

.safety-kid-card__headline {
  color: var(--ink-2) !important;
  font-weight: 900;
}

.safety-kid-card__meta {
  align-items: center;
  padding-top: 4px;
}

.safety-kid-card__meta span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.safety-kid-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.safety-rule,
.safety-routine-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.safety-rule > span,
.safety-routine-step > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.safety-routine-step > span {
  background: var(--navy);
}

.safety-rule strong,
.safety-routine-step strong {
  color: var(--ink);
  font-weight: 900;
}

.safety-rule p,
.safety-routine-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.certificate-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(73, 166, 106, 0.36);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4fbf6);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.certificate-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.16;
  font-weight: 900;
}

.certificate-card p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.kid-card--certified {
  border-color: rgba(73, 166, 106, 0.5);
  background: linear-gradient(180deg, #ffffff, #f7fcf8);
}

.history-certificate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(73, 166, 106, 0.42);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f5fbf7);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.history-certificate h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.14;
  font-weight: 900;
}

.history-certificate p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.history-certificate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.history-certificate__actions span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

body.certificate-open {
  overflow: hidden;
}

.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 23, 29, 0.68);
  overflow: auto;
}

.certificate-modal.is-hidden {
  display: none;
}

.certificate-modal__dialog {
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
}

.certificate-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.certificate-sheet {
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.certificate-sheet__border {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 28px;
  padding: 42px;
  border: 2px solid #d8c68b;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 189, 50, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(7, 139, 137, 0.08), transparent 30%),
    #fffdf8;
}

.certificate-sheet__top,
.certificate-sheet__footer,
.certificate-sheet__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.certificate-sheet__top {
  justify-content: flex-start;
}

.certificate-sheet__mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.certificate-sheet__top strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
}

.certificate-sheet__top span:not(.certificate-sheet__mark),
.certificate-sheet__footer span {
  color: var(--muted);
  font-weight: 800;
}

.certificate-sheet__body {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.certificate-sheet__body p:first-child {
  margin: 0;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.certificate-sheet__body h2 {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-sheet__body h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 4.8rem;
  line-height: 1.02;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.certificate-sheet__statement {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: 1.12rem;
  font-weight: 750;
}

.certificate-sheet__meta {
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(216, 198, 139, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.certificate-sheet__meta span {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 900;
}

.certificate-sheet__footer {
  align-items: end;
}

.certificate-sheet__footer > div {
  min-width: 220px;
  padding-top: 12px;
  border-top: 1px solid #bfa954;
}

.certificate-sheet__footer > div:last-child {
  text-align: right;
}

.certificate-sheet__footer strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.kids-list {
  display: grid;
  gap: 14px;
}

.kid-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.kid-card--selectable {
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.kid-card--selectable:hover,
.kid-card--selectable:focus-visible,
.kid-card--selectable:focus-within {
  border-color: var(--teal);
  box-shadow: 0 16px 34px rgba(7, 139, 137, 0.12);
  transform: translateY(-1px);
}

.kid-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.kid-card p {
  margin: 0;
  color: var(--muted);
}

.kid-card__hint {
  margin-top: 6px !important;
  color: var(--ink-2) !important;
  font-weight: 760;
}

.kid-card__progress {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.kid-card progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--soft-2);
}

.kid-card progress::-webkit-progress-bar {
  background: var(--soft-2);
}

.kid-card progress::-webkit-progress-value {
  background: var(--green);
}

.kid-card progress::-moz-progress-bar {
  background: var(--green);
}

.kid-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.kid-history-page {
  display: grid;
  gap: 18px;
}

.kid-history-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.kid-history-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 900;
}

.kid-history-header p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.kid-history-content,
.kid-history-modules {
  display: grid;
  gap: 16px;
}

.kid-history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.kid-history-stats article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.kid-history-stats span,
.kid-history-meta-list dt,
.kid-history-module__top span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kid-history-stats strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.16;
  font-weight: 900;
}

.kid-history-module {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.kid-history-module__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.kid-history-module h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.16;
  font-weight: 900;
}

.kid-history-module p {
  margin: 0;
  color: var(--muted);
}

.kid-history-module__result {
  display: grid;
  gap: 4px;
  min-width: 130px;
  padding: 12px;
  border-radius: 8px;
  text-align: right;
  background: var(--soft);
}

.kid-history-module__result strong {
  color: var(--ink);
  font-weight: 900;
}

.kid-history-module__result span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.kid-history-module__result.is-passed {
  background: rgba(73, 166, 106, 0.12);
}

.kid-history-module__result.is-fail {
  background: rgba(240, 100, 73, 0.12);
}

.kid-history-module__result.is-waiting {
  background: var(--soft-2);
}

.kid-history-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.kid-history-meta-list div {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.kid-history-meta-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.answer-history {
  display: grid;
  gap: 10px;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.answer-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.28;
}

.answer-row p {
  margin: 3px 0;
  color: var(--muted);
}

.answer-row > span {
  min-width: 76px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.answer-row.is-correct > span {
  color: #246b3d;
  background: rgba(73, 166, 106, 0.18);
}

.answer-row.is-wrong > span {
  color: var(--danger);
  background: rgba(197, 61, 47, 0.12);
}

.kid-history-empty {
  padding: 14px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.section--kid {
  background: linear-gradient(180deg, #fffaf0, var(--soft));
}

.kid-login-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.portal-card--kid-login {
  color: var(--paper);
  border-color: rgba(23, 47, 69, 0.18);
  background: var(--navy);
}

.kid-help-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.kid-help-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 900;
}

.kid-help-panel p {
  margin: 0;
  color: var(--muted);
}

.dashboard-header--kid {
  border-color: rgba(244, 189, 50, 0.42);
  background: linear-gradient(135deg, #ffffff, #fff8dc);
}

.sector-screen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sector-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
  cursor: pointer;
  text-align: left;
}

.sector-card--ready {
  border-top-color: var(--yellow);
  background: linear-gradient(180deg, #ffffff, #fffdf2);
}

.sector-card--locked {
  cursor: default;
  opacity: 0.72;
}

.sector-card:hover,
.sector-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 14px 32px rgba(7, 139, 137, 0.12);
}

.sector-card__number {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-card__title {
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.12;
  font-weight: 900;
}

.sector-card__text,
.sector-card__progress {
  color: var(--muted);
}

.sector-card__progress {
  font-weight: 850;
}

.course-screen {
  display: grid;
  gap: 18px;
}

.course-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.course-sidebar__header h2,
.lesson-panel__top h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 900;
}

.progress-card,
.lesson-panel,
.quiz-panel,
.interest-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 35, 43, 0.06);
}

.progress-card {
  padding: 18px;
}

.progress-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-weight: 850;
}

.progress-card progress {
  width: 100%;
  height: 12px;
  margin: 14px 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--soft-2);
}

.progress-card progress::-webkit-progress-bar {
  background: var(--soft-2);
}

.progress-card progress::-webkit-progress-value {
  background: var(--teal);
}

.progress-card progress::-moz-progress-bar {
  background: var(--teal);
}

.progress-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.module-list {
  display: grid;
  gap: 10px;
}

.module-button {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
}

.module-button:hover,
.module-button:focus-visible,
.module-button.is-active {
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(7, 139, 137, 0.1);
}

.module-button.is-passed {
  border-color: rgba(73, 166, 106, 0.46);
}

.module-button.is-locked {
  cursor: not-allowed;
  opacity: 0.62;
}

.module-button__number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
}

.module-button__title {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.2;
}

.module-button__meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.module-button__translation,
.lesson-title__translation,
.term-card__translation {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 800;
}

.lesson-title__translation {
  font-size: 1rem;
}

.module-button__result {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

.module-button__result.is-waiting {
  color: var(--muted);
}

.module-button__result.is-ready {
  color: var(--teal);
}

.module-button__result.is-locked {
  color: var(--danger);
}

.lesson-panel {
  padding: 28px;
}

.lesson-panel__top,
.quiz-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.score-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.score-pill.is-pass {
  color: #196c3d;
  border-color: rgba(73, 166, 106, 0.48);
  background: rgba(73, 166, 106, 0.12);
}

.score-pill.is-fail {
  color: var(--danger);
  border-color: rgba(197, 61, 47, 0.34);
  background: rgba(197, 61, 47, 0.1);
}

.score-pill.is-ready {
  color: var(--teal);
  border-color: rgba(7, 139, 137, 0.34);
  background: rgba(7, 139, 137, 0.1);
}

.lesson-objective {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.learning-panel {
  display: grid;
  gap: 18px;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.learning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.learning-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.learning-status.is-pass {
  color: #196c3d;
}

.learning-status.is-fail {
  color: var(--danger);
}

.term-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.term-tools h3,
.quiz-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.2;
  font-weight: 900;
}

.term-tools span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.term-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: #fbfdfd;
}

.term-card:nth-child(4n + 2) {
  border-top-color: var(--coral);
}

.term-card:nth-child(4n + 3) {
  border-top-color: var(--yellow);
}

.term-card:nth-child(4n + 4) {
  border-top-color: var(--green);
}

.term-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
}

.term-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.term-card strong {
  color: var(--ink-2);
}

.term-card__translation {
  margin-top: 3px;
  color: var(--teal);
}

.quiz-panel {
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f9fcfc);
}

.quiz-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.quiz-list {
  display: grid;
  gap: 16px;
}

.quiz-question {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quiz-question h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--soft);
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option:focus-within {
  border-color: var(--teal);
  background: #ffffff;
}

.quiz-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.quiz-option__letter {
  font-weight: 900;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-result {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 750;
}

.quiz-result.is-pass {
  color: #196c3d;
}

.quiz-result.is-fail {
  color: var(--danger);
}

.quiz-review {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 650;
}

.translator-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 36px));
  justify-items: start;
}

.translator-toggle {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(7, 139, 137, 0.32);
  border-radius: 999px;
  color: var(--paper);
  background: var(--teal);
  box-shadow: 0 14px 32px rgba(16, 35, 43, 0.2);
  cursor: pointer;
  font-weight: 900;
}

.translator-toggle:hover,
.translator-toggle:focus-visible {
  background: #06716f;
}

.translator-panel {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(16, 35, 43, 0.2);
}

.translator-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.translator-panel__header strong {
  color: var(--ink);
  font-weight: 900;
}

.translator-panel__header button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
}

.translator-panel label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 850;
}

.translator-panel input,
.translator-panel select {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
}

.translator-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.translator-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.translator-status.is-fail {
  color: var(--danger);
}

.section--contact {
  color: var(--paper);
  background: var(--ink);
}

.section--contact .eyebrow {
  color: var(--yellow);
}

.section--contact h2,
.section--contact p {
  color: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.contact-copy > p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-notes {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-notes p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.interest-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  color: var(--ink);
}

.interest-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.interest-form input,
.interest-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdfd;
  outline: none;
}

.interest-form input:focus,
.interest-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(7, 139, 137, 0.12);
}

.interest-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--ink-2) !important;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #0a171d;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-layout p {
  margin: 0;
}

.footer-layout a {
  font-weight: 850;
}

@media (max-width: 1060px) {
  .split-layout,
  .page-hero__inner,
  .parent-login-layout,
  .kid-login-wrap {
    grid-template-columns: 1fr;
  }

  .parent-login-hero {
    min-height: auto;
    padding: 54px 0;
  }

  .section-heading--sticky {
    position: static;
  }

  .auth-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sector-preview-grid,
  .sector-screen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-shell {
    grid-template-columns: 1fr;
  }

  .safety-dashboard__hero,
  .safety-dashboard__grid,
  .weekly-report-dashboard__hero,
  .history-weekly-report__details {
    grid-template-columns: 1fr;
  }

  .safety-panel--wide {
    grid-row: auto;
  }

  .safety-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-sidebar {
    position: static;
  }

  .module-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(16, 35, 43, 0.12);
  }

  .nav-links.is-open {
    display: grid;
    gap: 2px;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .nav-links--actions a {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: 74svh;
    background-position: 58% center;
  }

  .hero__shade {
    background: rgba(12, 24, 33, 0.64);
  }

  .hero__content {
    padding: 48px 0 54px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__facts,
  .term-grid,
  .module-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .page-hero {
    padding: 54px 0;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .parent-login-copy h1 {
    font-size: 2.55rem;
  }

  .parent-login-copy p:not(.eyebrow) {
    font-size: 1.02rem;
  }

  .course-sidebar__header h2,
  .lesson-panel__top h2,
  .section-heading h2,
  .dashboard-header h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .dashboard-header,
  .kid-card,
  .kid-history-header,
  .kid-history-module__top,
  .answer-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-header__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .kid-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .parent-summary,
  .safety-metrics,
  .weekly-report-dashboard__metrics,
  .weekly-report-card__stats,
  .history-weekly-report__grid,
  .reward-stats,
  .kid-history-stats,
  .kid-history-meta-list,
  .sector-preview-grid,
  .sector-screen {
    grid-template-columns: 1fr;
  }

  .kid-card__actions,
  .kid-history-module__result,
  .history-certificate__actions {
    justify-content: flex-start;
    text-align: left;
  }

  .history-certificate,
  .weekly-report-card__top,
  .rewards-panel__hero,
  .history-rewards__top,
  .certificate-sheet__top,
  .certificate-sheet__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .certificate-sheet__footer > div:last-child {
    text-align: left;
  }

  .lesson-panel,
  .quiz-panel {
    padding: 20px;
  }

  .lesson-panel__top,
  .quiz-panel__header,
  .safety-panel__head,
  .safety-kid-card__top,
  .safety-kid-card__meta,
  .reward-badge__top,
  .reward-mini-card__top,
  .term-tools {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand__sub {
    display: none;
  }

  .hero__actions,
  .button,
  .quiz-actions {
    width: 100%;
  }

  .language-switcher {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
  }

  .language-switcher span {
    grid-column: 1 / -1;
    padding: 4px 8px 0;
  }

  .safety-dashboard__hero,
  .safety-panel,
  .safety-kid-card,
  .safety-metric,
  .weekly-report-dashboard,
  .history-weekly-report,
  .rewards-panel,
  .history-rewards,
  .certificate-sheet {
    padding: 16px;
  }

  .certificate-sheet__border {
    min-height: 560px;
    padding: 24px;
  }

  .certificate-sheet__body h1 {
    font-size: 2.7rem;
  }

  .certificate-sheet__meta {
    justify-content: flex-start;
  }

  .module-button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .module-button__result {
    grid-column: 2;
  }

  .interest-form {
    padding: 20px;
  }

  .auth-panel {
    padding: 22px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body.certificate-open > *:not(.certificate-modal) {
    display: none !important;
  }

  body.certificate-open,
  body.certificate-open .certificate-modal {
    overflow: visible;
    background: #ffffff;
  }

  body.certificate-open .certificate-modal {
    position: static;
    display: block !important;
    padding: 0;
  }

  body.certificate-open .certificate-modal__dialog {
    width: 100%;
    display: block;
  }

  body.certificate-open .certificate-modal__actions {
    display: none !important;
  }

  body.certificate-open .certificate-sheet {
    padding: 0;
    box-shadow: none;
  }

  body.certificate-open .certificate-sheet__border {
    min-height: 96vh;
    border-color: #bfa954;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
