@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #0b2a33;
  --muted: #5d7680;
  --line: #d8e5e9;
  --paper: #f4f8f9;
  --white: #fff;
  --teal: #199bad;
  --teal-dark: #0f7381;
  --cyan: #45c5d6;
  --navy: #071e26;
  --lime: #d9f266;
  --success: #16864a;
  --danger: #c9343c;
  --shadow: 0 18px 50px rgba(7, 30, 38, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.site-topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  color: #fff;
  background: rgba(7, 30, 38, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.platform-brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.platform-brand img { width: 38px; height: 38px; object-fit: contain; }
.platform-brand small { display: block; color: #a9c0c7; font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.topnav { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; white-space: nowrap; }
.topnav a { width: 42px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #dce9ec; font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.topnav a:hover, .topnav a[aria-current="page"] { border-color: rgba(217,242,102,.55); background: rgba(255,255,255,.11); color: #fff; }
.topnav a[aria-current="page"] { box-shadow: inset 0 -3px var(--lime); }
.platform-account { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); font-size: .84rem; font-weight: 800; white-space: nowrap; }
.platform-account span { color: #fff; }
.platform-account a { padding: 7px 10px; color: #d7e8eb; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; }
.platform-account a:hover { color: #fff; background: rgba(255,255,255,.1); }
.portal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  padding: clamp(72px, 10vw, 132px) 0 72px;
}
.portal-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,197,214,.3), rgba(69,197,214,0) 67%);
}
.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.hero-copy { position: relative; max-width: 900px; }
.kicker { margin: 0 0 18px; color: var(--lime); font-size: .78rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.portal-hero h1 { max-width: 14ch; margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .92; letter-spacing: -.065em; }
.portal-hero .lead { max-width: 720px; margin: 28px 0 0; color: #c9dade; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 32px; color: #89a9b1; font-size: .88rem; font-weight: 700; }
.hero-note::before { content: ""; width: 44px; height: 1px; background: var(--cyan); }
.portal-guide-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border: 1px solid rgba(217,242,102,.48); border-radius: 11px; color: var(--lime); font-size: .86rem; font-weight: 850; transition: background .18s, transform .18s; }
.portal-guide-link:hover { background: rgba(217,242,102,.1); transform: translateX(3px); }
.portal-guide-link span { font-size: 1.1rem; line-height: 1; }
.account-section { padding: 44px 0; background: #e9f2f4; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.account-heading { max-width: 760px; margin-bottom: 22px; }
.account-heading .kicker, .account-welcome .kicker { color: var(--teal-dark); margin-bottom: 10px; }
.account-heading h2, .account-welcome h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.account-heading > p:last-child, .account-welcome p:last-child { color: var(--muted); margin: 10px 0 0; }
.account-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 4vw, 34px); }
.account-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.account-section .trainer-flashes { margin-bottom: 18px; }
.tracks { padding: 0; }
.track {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.track:nth-child(2) { background: #e8f2f4; }
.track:nth-child(3) { background: #dce9ed; }
.track:nth-child(4) { background: #d2e3e8; }
.track:nth-child(5) { background: #c9dde3; }
.track:nth-child(6) { background: #bfd7de; }
.track:nth-child(7) { background: #fff; }
.track:nth-child(8) { background: #e8f2f4; }
.track:nth-child(9) { background: #dce9ed; }
.track:nth-child(10) { background: #d2e3e8; }
.track.relax-track { background: linear-gradient(135deg, #d8edf1 0%, #edf7f8 52%, #dce8ef 100%); }
.track.relax-track::after { content: ""; position: absolute; right: 6%; top: 14%; width: 220px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.52); filter: blur(2px); box-shadow: -110px 56px 0 -20px rgba(255,255,255,.38), 70px 80px 0 -32px rgba(255,255,255,.45); pointer-events: none; }
.track-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: clamp(26px, 5vw, 76px); padding-block: 72px; }
.track-number { align-self: start; color: var(--teal); font-size: clamp(4.2rem, 9vw, 8.6rem); font-weight: 900; line-height: .78; letter-spacing: -.08em; }
.track-label { margin: 0 0 10px; color: var(--teal-dark); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.track h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .95; letter-spacing: -.055em; }
.track p { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.track-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { padding: 6px 10px; border: 1px solid #bdd0d6; border-radius: 999px; color: #365965; font-size: .78rem; font-weight: 750; }
.track-action { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #fff; background: var(--teal); box-shadow: 0 14px 30px rgba(25,155,173,.28); transition: transform .2s, background .2s; }
.track-action:hover { transform: translateX(5px); background: var(--teal-dark); }
.track-action svg { width: 30px; height: 30px; }
.track.is-disabled .track-action { background: #82949a; box-shadow: none; }
.track.is-disabled .track-number { color: #82949a; }
.tag.status-off { color: #8f2d2d; border-color: #e1bcbc; background: #fff1f1; }

/* Calm game: Clean sky */
.relax-page { background: #dcecf0; }
.relax-main { min-height: calc(100vh - 68px); padding: clamp(32px, 6vw, 72px) 0 48px; overflow: hidden; background: radial-gradient(circle at 88% 6%, rgba(255,255,255,.8), transparent 25%), linear-gradient(180deg, #eaf5f7 0%, #d7e9ed 100%); }
.relax-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 28px; }
.relax-heading .crumb { display: inline-block; margin-bottom: 32px; color: var(--teal-dark); font-size: .9rem; font-weight: 800; }
.relax-heading .kicker { margin-bottom: 9px; color: var(--teal-dark); }
.relax-heading h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .88; letter-spacing: -.065em; }
.relax-heading > div > p:last-child { max-width: 690px; margin: 22px 0 0; color: #42636d; font-size: 1.08rem; }
.relax-heading-note { flex: 0 0 220px; padding: 18px 20px; border: 1px solid rgba(15,115,129,.18); border-radius: 18px; background: rgba(255,255,255,.58); backdrop-filter: blur(10px); }
.relax-heading-note strong, .relax-heading-note span { display: block; }
.relax-heading-note strong { color: var(--teal-dark); font-size: 1.05rem; }
.relax-heading-note span { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.relax-game { position: relative; height: clamp(520px, 69vh, 760px); overflow: hidden; border: 1px solid rgba(255,255,255,.62); border-radius: 34px; background: linear-gradient(180deg, #72cadd 0%, #b9e3e8 52%, #e9f6f2 100%); box-shadow: 0 28px 80px rgba(7,30,38,.19); isolation: isolate; transition: background .8s ease; }
.relax-game[data-theme="night"] { background: linear-gradient(180deg, #102c47 0%, #24536b 57%, #6f91a0 100%); }
.relax-game::before { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 30%; opacity: .45; background: linear-gradient(170deg, transparent 0 38%, rgba(38,101,108,.34) 39% 50%, transparent 51%), linear-gradient(190deg, transparent 0 42%, rgba(20,78,84,.36) 43% 58%, transparent 59%); transition: opacity .6s; }
.relax-game[data-theme="night"]::before { opacity: .7; }
#relax-canvas { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; outline: none; touch-action: none; cursor: crosshair; }
.relax-sun { position: absolute; z-index: 0; top: 9%; right: 10%; width: 90px; height: 90px; border-radius: 50%; background: #fff6bd; box-shadow: 0 0 0 18px rgba(255,246,189,.12), 0 0 70px rgba(255,242,164,.64); transition: background .8s, box-shadow .8s, transform .8s; }
[data-theme="night"] .relax-sun { background: #eef6ef; box-shadow: -20px 8px 0 0 #193a54, 0 0 45px rgba(221,239,232,.28); transform: scale(.82); }
.relax-hud { position: absolute; z-index: 5; top: 20px; left: 20px; display: flex; gap: 9px; pointer-events: none; }
.relax-metric { min-width: 112px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.47); border-radius: 14px; color: #0d4651; background: rgba(255,255,255,.54); box-shadow: 0 8px 30px rgba(7,30,38,.07); backdrop-filter: blur(12px); }
[data-theme="night"] .relax-metric { color: #f2fafb; border-color: rgba(255,255,255,.18); background: rgba(7,30,38,.38); }
.relax-metric span, .relax-metric strong { display: block; }
.relax-metric span { opacity: .7; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.relax-metric strong { margin-top: 1px; font-size: 1.1rem; }
.relax-metric b { font: inherit; }
.relax-prompt { position: absolute; z-index: 5; top: 26px; left: 50%; max-width: 300px; padding: 9px 14px; transform: translateX(-50%); border-radius: 999px; color: #285b66; background: rgba(255,255,255,.45); backdrop-filter: blur(9px); font-size: .78rem; font-weight: 750; text-align: center; pointer-events: none; transition: color .6s, background .6s; }
[data-theme="night"] .relax-prompt { color: #ddecf0; background: rgba(7,30,38,.32); }
.relax-controls { position: absolute; z-index: 6; right: 18px; bottom: 18px; display: flex; gap: 7px; }
.relax-controls button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.52); border-radius: 13px; color: #174b56; background: rgba(255,255,255,.65); box-shadow: 0 8px 24px rgba(7,30,38,.08); backdrop-filter: blur(12px); cursor: pointer; transition: transform .18s, background .18s; }
.relax-controls button:hover { transform: translateY(-2px); background: rgba(255,255,255,.86); }
.relax-controls button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.relax-controls button span { width: 20px; font-size: 1rem; text-align: center; }
.relax-controls button b { font-size: .74rem; }
[data-theme="night"] .relax-controls button { color: #edf8fa; border-color: rgba(255,255,255,.2); background: rgba(7,30,38,.48); }
.relax-start, .relax-pause-card { position: absolute; z-index: 10; top: 50%; left: 50%; width: min(510px, calc(100% - 40px)); padding: clamp(26px, 5vw, 48px); transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; color: var(--ink); background: rgba(248,253,253,.83); box-shadow: 0 24px 70px rgba(7,30,38,.18); backdrop-filter: blur(18px); text-align: center; }
.relax-start[hidden], .relax-pause-card[hidden] { display: none; }
.relax-start-plane { margin: -5px 0 8px; color: var(--teal); font-size: 3.7rem; line-height: 1; transform: rotate(-8deg); }
.relax-start .kicker, .relax-pause-card .kicker { margin-bottom: 8px; color: var(--teal-dark); }
.relax-start h2, .relax-pause-card h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.relax-start p:not(.kicker), .relax-pause-card p:not(.kicker) { max-width: 42ch; margin: 16px auto 22px; color: var(--muted); }
.relax-tips { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; color: #476671; font-size: .9rem; }
.relax-tips p { margin: 0; }
.relax-tips a { flex: 0 0 auto; color: var(--teal-dark); font-weight: 850; }

@media (max-width: 850px) {
  .relax-heading { display: block; }
  .relax-heading-note { width: min(340px, 100%); margin-top: 20px; }
  .relax-prompt { display: none; }
}
@media (max-width: 620px) {
  .relax-main { padding-top: 26px; }
  .relax-heading .crumb { margin-bottom: 22px; }
  .relax-game { width: calc(100% - 20px); height: min(690px, 72vh); min-height: 500px; border-radius: 24px; }
  .relax-hud { top: 12px; left: 12px; gap: 5px; }
  .relax-metric { min-width: 76px; padding: 8px; }
  .relax-metric strong { font-size: 1rem; }
  .relax-controls { right: 10px; bottom: 10px; left: 10px; justify-content: center; }
  .relax-controls button { flex: 1; justify-content: center; padding-inline: 8px; }
  .relax-controls button b { font-size: .67rem; }
  .relax-tips { display: block; }
  .relax-tips a { display: inline-block; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .relax-game, .relax-sun, .relax-controls button { transition: none; }
}
.unavailable-main { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 28px; background: var(--page); }
.unavailable-card { width: min(620px, 100%); padding: clamp(28px, 6vw, 56px); text-align: center; }
.unavailable-card h1 { margin: 8px 0 16px; font-size: clamp(2rem, 6vw, 4rem); }
.unavailable-card p:not(.kicker) { color: var(--muted); margin: 0 auto 24px; max-width: 48ch; }
.platform-footer { padding: 28px 0; color: #9eb5bc; background: var(--navy); font-size: .84rem; }
.platform-footer .shell { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.platform-footer a { color: #dce9ec; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(220,233,236,.35); text-underline-offset: 4px; }
.platform-footer a:hover { color: #fff; text-decoration-color: var(--cyan); }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.legal-links a { white-space: nowrap; }

/* Legal documents and consent */
.consent-check { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 10px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.consent-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.consent-check a { color: var(--teal-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-page { background: #edf4f5; }
.legal-back { color: #dce9ec; font-size: .88rem; font-weight: 750; }
.legal-main { padding: clamp(34px, 7vw, 78px) 0; }
.legal-document { max-width: 900px; padding: clamp(25px, 5vw, 58px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.legal-document .kicker { margin-bottom: 12px; color: var(--teal-dark); }
.legal-document h1 { max-width: 19ch; margin: 0; font-size: clamp(2.25rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.legal-document h2 { margin: 36px 0 10px; font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -.025em; }
.legal-document p, .legal-document li { color: #365965; }
.legal-document p { margin: 10px 0; }
.legal-document li + li { margin-top: 7px; }
.legal-document a { color: var(--teal-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-lead { margin: 22px 0 0 !important; color: var(--ink) !important; font-size: 1.08rem; }
.legal-note { margin-top: 30px; padding: 18px; color: #234b56; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; background: #eaf5f7; }
.legal-consent-form { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #f5f9fa; }
.legal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.legal-flash { margin: 20px 0; padding: 13px 15px; border-radius: 12px; background: #e7f3f6; }
.legal-flash.error { color: #8b242b; background: #fff0f1; }
.legal-flash.success { color: #116b3b; background: #e9f8ef; }

/* Participant profile */
.profile-hero { position: relative; overflow: hidden; padding: 58px 0; color: #fff; background: linear-gradient(125deg, #071e26 0%, #0b3d48 66%, #0f7280 100%); }
.profile-hero::after { content: ""; position: absolute; right: -8%; bottom: -80%; width: 480px; height: 480px; border: 1px solid rgba(217,242,102,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(69,197,214,.045), 0 0 0 140px rgba(69,197,214,.035); }
.profile-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 42px; }
.profile-hero .crumb { margin-bottom: 28px; }
.profile-hero .kicker { margin-bottom: 10px; }
.profile-hero h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.06em; }
.profile-hero p:last-child { margin: 18px 0 0; color: #bdd2d7; font-size: 1.08rem; }
.profile-score { min-width: 235px; padding: 25px 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.profile-score span, .profile-score small { display: block; color: #b7cdd2; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-score strong { display: block; margin: 6px 0 10px; color: var(--lime); font-size: 3.4rem; line-height: 1; letter-spacing: -.05em; }
.profile-score small { letter-spacing: 0; text-transform: none; }
.profile-main { padding: 34px 0 72px; }
.profile-layout { display: grid; gap: 42px; }
.profile-layout > * { min-width: 0; }
.profile-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.profile-stat { padding: 20px; box-shadow: 0 10px 30px rgba(7,30,38,.07); }
.profile-stat > span { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.profile-stat > strong { display: block; margin: 7px 0 4px; font-size: 1.9rem; letter-spacing: -.04em; }
.profile-stat small { color: var(--muted); font-size: .78rem; }
.trend { color: var(--muted); font-weight: 900; }
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }
.profile-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.profile-section-head .kicker { margin: 0 0 5px; color: var(--teal-dark); }
.profile-section-head h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.045em; }
.profile-section-head > p { max-width: 410px; margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }
.profile-section-head.compact { margin-bottom: 22px; }
.profile-section-head.compact h2 { font-size: 1.55rem; }
.profile-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.profile-module { padding: 24px; box-shadow: 0 12px 34px rgba(7,30,38,.07); }
.module-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-topline > span { color: var(--teal); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.module-topline small { color: var(--muted); font-size: .74rem; font-weight: 750; }
.profile-module h3 { min-height: 2.5em; margin: 18px 0 10px; font-size: 1.15rem; }
.module-value { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.055em; }
.module-progress { height: 7px; margin: 16px 0 12px; overflow: hidden; border-radius: 99px; background: #e5eef0; }
.module-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.profile-module p { margin: 0 0 19px; color: var(--muted); font-size: .82rem; }
.module-dynamics{margin-top:22px;padding:clamp(20px,3vw,30px);overflow:hidden;background:linear-gradient(145deg,#fff 58%,#eef8f9);box-shadow:0 16px 42px rgba(7,30,38,.08)}
.module-dynamics-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.module-dynamics-head .kicker{margin:0 0 5px}.module-dynamics-head h3{margin:0;font-size:clamp(1.2rem,2.5vw,1.55rem);letter-spacing:-.03em}.module-dynamics-head>p{max-width:390px;margin:0;color:var(--muted);font-size:.78rem;text-align:right}
.module-dynamics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.module-dynamic{min-width:0;padding:17px;border:1px solid #d8e7e9;border-radius:16px;background:rgba(255,255,255,.86);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.module-dynamic.has-data:hover{transform:translateY(-2px);border-color:#9bcdd3;box-shadow:0 10px 24px rgba(7,80,92,.09)}.module-dynamic.is-empty{background:rgba(244,248,249,.72)}
.module-dynamic-title{display:flex;align-items:center;gap:9px;min-width:0}.module-dynamic-title>span{flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;color:#087f90;border-radius:9px;background:#dff3f5;font-size:.68rem;font-weight:950}.module-dynamic-title h4{overflow:hidden;margin:0;font-size:.85rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.module-dynamic.is-empty .module-dynamic-title>span{color:#789097;background:#e8eef0}
.module-dynamic-score{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:17px 0 14px}.module-dynamic-score small{display:block;margin-bottom:3px;color:var(--muted);font-size:.61rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.module-dynamic-score strong{display:block;color:#082f39;font-size:1.22rem;line-height:1}.module-dynamic-score>div+div{padding-left:10px;border-left:1px solid #e0eaec}
.module-dynamic-foot{display:grid;grid-template-columns:minmax(60px,1fr) auto;align-items:center;gap:10px}.module-dynamic-track{height:6px;overflow:hidden;border-radius:99px;background:#e4edef}.module-dynamic-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--teal),var(--cyan))}.dynamic-delta{padding:4px 7px;border-radius:99px;font-size:.63rem;font-weight:900;white-space:nowrap}.dynamic-delta.up{color:#08733c;background:#dcf5e6}.dynamic-delta.down{color:#b12632;background:#fde5e7}.dynamic-delta.same,.dynamic-delta.new{color:#536d75;background:#e8f0f2}.dynamic-delta.empty{color:#82949a;background:#edf2f3}
.module-link { color: var(--teal-dark); font-size: .86rem; font-weight: 850; }
.module-link:hover { color: var(--teal); }
.development-overview { display: grid; grid-template-columns: auto auto minmax(280px,1fr); align-items: center; gap: 0; margin-bottom: 16px; overflow: hidden; border-color: #164650; background: linear-gradient(120deg,#071e26,#0c4a55); color: #fff; box-shadow: 0 14px 36px rgba(7,30,38,.14); }
.development-overview > div { min-width: 180px; padding: 19px 23px; border-right: 1px solid rgba(255,255,255,.12); }
.development-overview span { display: block; color: #a9c3c8; font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.development-overview strong { display: block; margin-top: 4px; color: var(--lime); font-size: 1.45rem; }
.development-overview p { margin: 0; padding: 19px 23px; color: #c3d6da; font-size: .8rem; line-height: 1.5; }
.development-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.development-card { min-height: 370px; display: flex; flex-direction: column; padding: 24px; border-top: 4px solid #8ca4aa; box-shadow: 0 12px 32px rgba(7,30,38,.07); }
.development-card.tone-priority { border-top-color: #c34e42; background: linear-gradient(155deg,#fff 62%,#fff1ee); }
.development-card.tone-attention { border-top-color: #d09a1b; background: linear-gradient(155deg,#fff 62%,#fff8df); }
.development-card.tone-strong { border-top-color: #6e9b21; background: linear-gradient(155deg,#fff 62%,#f3f9df); }
.development-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.development-card-head > div > span, .development-focus > span, .development-advice > span { color: var(--muted); font-size: .64rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.development-card h3 { margin: 4px 0 0; font-size: 1.18rem; }
.development-status { flex: 0 0 auto; padding: 5px 9px; color: #506a71; border-radius: 99px; background: #eaf1f2; font-size: .64rem; font-weight: 900; }
.tone-priority .development-status { color: #8a3028; background: #f9d9d5; }
.tone-attention .development-status { color: #745200; background: #ffedb7; }
.tone-strong .development-status { color: #46650c; background: #e6f1bd; }
.development-score-row { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 15px; margin: 22px 0; }
.development-score-row > strong { color: var(--teal-dark); font-size: 2rem; letter-spacing: -.04em; }
.development-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e4ecee; }
.development-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--cyan)); }
.tone-priority .development-track i { background: linear-gradient(90deg,#bd463d,#ed806f); }
.tone-attention .development-track i { background: linear-gradient(90deg,#b77b00,#ecc44f); }
.tone-strong .development-track i { background: linear-gradient(90deg,var(--teal),var(--lime)); }
.development-focus ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 18px; padding: 0; list-style: none; }
.development-focus li { padding: 6px 9px; color: #38565e; border: 1px solid #ccdcdf; border-radius: 9px; background: rgba(244,248,249,.9); font-size: .72rem; font-weight: 750; }
.development-advice { flex: 1; }
.development-advice p { margin: 7px 0 18px; color: #4f686e; font-size: .82rem; line-height: 1.58; }
.development-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.development-card-foot small { color: var(--muted); font-size: .68rem; }
.development-card-foot a { color: var(--teal-dark); font-size: .76rem; font-weight: 850; text-align: right; }
.development-empty { padding: 38px; }
.platform-rating-section { min-width: 0; scroll-margin-top: 86px; }
.rating-formula { display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.rating-formula > div { min-width: 145px; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.rating-formula strong { color: var(--teal-dark); font-size: 1.45rem; line-height: 1; }
.rating-formula span { color: var(--muted); font-size: .73rem; font-weight: 750; line-height: 1.2; }
.rating-formula > i { align-self: center; color: #8aa1a7; font-style: normal; font-size: 1.2rem; font-weight: 900; }
.rating-formula .formula-total { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.rating-formula .formula-total strong { color: var(--lime); }
.rating-formula .formula-total span { color: #d5e8eb; }
.platform-rating { min-width: 0; padding: clamp(18px, 3vw, 28px); overflow: hidden; box-shadow: 0 12px 34px rgba(7,30,38,.08); }
.platform-rating-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.platform-rating-head > div { flex: 0 0 auto; }
.platform-rating-head strong, .platform-rating-head span { display: block; }
.platform-rating-head strong { color: var(--teal-dark); font-size: 2rem; line-height: 1; }
.platform-rating-head span { margin-top: 5px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.platform-rating-head p { max-width: 700px; margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }
.rating-trainer-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.rating-trainer-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px 6px 6px; color: #49666e; border: 1px solid var(--line); border-radius: 10px; background: #f6f9fa; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.rating-trainer-legend strong { min-width: 28px; padding: 3px 5px; color: #fff; border-radius: 6px; background: var(--teal-dark); font-size: .68rem; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.platform-rating .trainer-table { min-width: 1010px; }
.platform-rating .trainer-table td { vertical-align: middle; }
.feedback-panel { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 34px; margin-top: 18px; padding: clamp(22px,3vw,30px); scroll-margin-top: 90px; box-shadow: 0 12px 34px rgba(7,30,38,.08); }
.feedback-copy .kicker { margin: 0 0 5px; color: var(--teal-dark); }
.feedback-copy h3 { margin: 0 0 9px; font-size: 1.45rem; }
.feedback-copy > p:last-child { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.feedback-panel form { min-width: 0; }
.feedback-panel label { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 850; }
.feedback-panel textarea { width: 100%; min-height: 125px; resize: vertical; padding: 13px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; background: #f8fbfb; font: inherit; font-size: .88rem; line-height: 1.5; }
.feedback-panel textarea:focus { outline: 3px solid rgba(25,155,173,.18); border-color: var(--teal); background: #fff; }
.feedback-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 11px; }
.feedback-form-foot small { color: var(--muted); font-size: .7rem; }
.feedback-form-foot .trainer-button { flex: 0 0 auto; }
.platform-rating .trainer-table tbody tr.is-current { background: #e3f5f1; box-shadow: inset 4px 0 var(--teal); }
.platform-rating-table th:first-child, .platform-rating-table td:first-child { position: sticky; left: 0; width: 52px; min-width: 52px; z-index: 2; }
.platform-rating-table th:nth-child(2), .platform-rating-table td:nth-child(2) { position: sticky; left: 52px; z-index: 2; }
.platform-rating-table th:first-child, .platform-rating-table th:nth-child(2) { z-index: 3; background: #eaf3f5; }
.platform-rating-table td:first-child, .platform-rating-table td:nth-child(2) { background: #fff; }
.platform-rating-table tbody tr.is-current td:first-child, .platform-rating-table tbody tr.is-current td:nth-child(2) { background: #e3f5f1; }
.rating-place strong { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf4f5; }
.rating-place.rank-first strong { color: #5d4500; background: #f4df89; }
.rating-name { min-width: 165px; font-weight: 800; }
.rating-name small { display: inline-block; margin-left: 7px; padding: 2px 6px; color: var(--teal-dark); border-radius: 99px; background: #ccebed; font-size: .62rem; text-transform: uppercase; }
.rating-score strong { color: var(--teal-dark); font-size: 1.08rem; }
.rating-score span { margin-left: 3px; color: var(--muted); font-size: .68rem; }
.rating-test-pair { font-weight: 850; }
.rating-test-pair i { margin: 0 3px; color: #91a5aa; font-style: normal; }
.rating-level { display: inline-flex; padding: 5px 8px; color: #365965; border: 1px solid #c7dade; border-radius: 99px; background: #f2f7f8; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.achievement-level.panel { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(180px,280px); align-items: center; gap: 22px; margin-bottom: 18px; padding: 22px 25px; overflow: hidden; color: #fff; border-color: #194e59; background: linear-gradient(125deg, #071e26, #0b4652); box-shadow: 0 16px 40px rgba(7,30,38,.16); }
.level-emblem { width: 84px; height: 84px; display: grid; place-content: center; border: 1px solid rgba(217,242,102,.48); border-radius: 50%; background: rgba(217,242,102,.1); text-align: center; }
.level-emblem span { color: var(--lime); font-size: 1.45rem; font-weight: 950; line-height: .9; }
.level-emblem small { margin-top: 4px; color: #b9d0d5; font-size: .66rem; font-weight: 800; }
.level-copy > span { color: #96b5bc; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.level-copy h3 { margin: 3px 0 4px; font-size: 1.45rem; letter-spacing: -.03em; }
.level-copy p { margin: 0; color: #b9d0d5; font-size: .8rem; }
.level-progress-block { min-width: 0; }
.level-progress-labels { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #c9dadd; font-size: .66rem; font-weight: 800; }
.level-progress-labels span:last-child { text-align: right; }
.level-progress { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.11); }
.level-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.achievements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.achievement-card[hidden] { display: none !important; }
.achievement-card { position: relative; min-height: 310px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(7,30,38,.06); }
.achievement-card::after { content: ""; position: absolute; right: -44px; bottom: -52px; width: 130px; height: 130px; border: 1px solid var(--line); border-radius: 50%; }
.achievement-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.achievement-code { color: var(--teal-dark); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.achievement-state { padding: 4px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; background: #f4f8f9; font-size: .62rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.achievement-medal { width: 58px; height: 58px; display: grid; place-items: center; margin: 20px 0 17px; color: #6f848a; border: 2px solid #c5d4d8; border-radius: 50%; background: #eef3f4; font-size: 1rem; font-weight: 950; box-shadow: inset 0 0 0 5px #fff; }
.achievement-card h3 { margin: 0; font-size: 1.06rem; letter-spacing: -.02em; }
.achievement-card > p { flex: 1; margin: 8px 0 18px; color: var(--muted); font-size: .79rem; }
.achievement-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e4ecee; }
.achievement-progress i { display: block; height: 100%; border-radius: inherit; background: #9db2b7; }
.achievement-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.achievement-meta time { flex: 0 0 auto; color: var(--teal-dark); }
.achievement-card.is-unlocked { border-color: #a9c95a; background: linear-gradient(155deg, #fff 45%, #f3f9df); }
.achievement-card.is-unlocked::after { border-color: rgba(25,155,173,.2); box-shadow: 0 0 0 18px rgba(217,242,102,.12); }
.achievement-card.is-unlocked .achievement-state { color: #436006; border-color: #c8df79; background: #f0f8d3; }
.achievement-card.is-unlocked .achievement-medal { color: #0b5965; border-color: var(--lime); background: var(--lime); box-shadow: inset 0 0 0 5px #eff9bd, 0 8px 20px rgba(123,157,10,.18); font-size: 1.45rem; }
.achievement-card.is-unlocked .achievement-progress i { background: linear-gradient(90deg, var(--teal), var(--lime)); }
.achievement-card.is-gold { border-color: #d7b34c; background: linear-gradient(150deg,#fff 42%,#fff4c9); box-shadow: 0 12px 34px rgba(132,95,0,.13); }
.achievement-card.is-gold::after { border-color: rgba(190,139,0,.28); box-shadow: 0 0 0 18px rgba(255,214,89,.12); }
.achievement-card.is-gold .achievement-code { color: #8a6100; }
.achievement-card.is-gold .achievement-state { color: #785300; border-color: #e2c36a; background: #fff2bd; }
.achievement-card.is-gold .achievement-medal { color: #785300; border-color: #d9b33e; background: #fff2bd; box-shadow: inset 0 0 0 5px #fffaf0; }
.achievement-card.is-gold .achievement-progress i { background: linear-gradient(90deg,#b57a00,#f0c642); }
.achievement-card.is-gold.is-unlocked .achievement-medal { color: #4b3300; border-color: #d09b08; background: linear-gradient(145deg,#ffe88a,#dca60d); box-shadow: inset 0 0 0 5px #fff3b9,0 8px 22px rgba(164,112,0,.24); }
.achievement-more { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; color: var(--teal-dark); border: 2px dashed #9fc1c7; background: linear-gradient(145deg,#f8fbfb,#eaf4f5); font: inherit; text-align: center; cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.achievement-more:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 14px 32px rgba(7,30,38,.11); }
.achievement-more:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.achievement-more-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 5px; color: #fff; border-radius: 50%; background: var(--teal-dark); font-size: 1.05rem; font-weight: 950; }
.achievement-more strong { max-width: 190px; font-size: 1rem; }
.achievement-more small { color: var(--muted); font-size: .72rem; }
.daily-summary { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 14px; overflow: hidden; }
.daily-summary > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.daily-summary > div:last-child { border-right: 0; }
.daily-summary span { display: block; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.daily-summary strong { display: block; margin-top: 5px; font-size: 1.2rem; }
.daily-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.daily-card { min-height: 250px; display: flex; flex-direction: column; padding: 22px; box-shadow: 0 10px 30px rgba(7,30,38,.06); }
.daily-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.daily-card-top > strong { color: var(--teal-dark); font-size: .82rem; }
.daily-tier { padding: 5px 9px; border-radius: 99px; color: #31505a; background: #e7f1f3; font-size: .64rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.daily-tier.tier-2 { color: #745200; background: #fff1bf; }
.daily-tier.tier-3 { color: #753051; background: #f7ddeb; }
.daily-card h3 { margin: 21px 0 8px; font-size: 1.12rem; }
.daily-card > p { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: .82rem; }
.daily-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e4ecee; }
.daily-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--cyan)); }
.daily-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.daily-card-foot a, .daily-card-foot strong { color: var(--teal-dark); }
.daily-card.is-complete { border-color: #b9d568; background: linear-gradient(150deg,#fff,#f5fadf); }
.daily-card.is-complete .daily-progress i { background: linear-gradient(90deg,var(--teal),var(--lime)); }
.profile-bottom-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); gap: 18px; align-items: start; }
.profile-chart, .profile-recent { padding: clamp(20px, 3vw, 28px); box-shadow: 0 12px 34px rgba(7,30,38,.07); }
.week-chart { height: 260px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.chart-day { min-width: 0; display: grid; grid-template-rows: 22px 160px auto auto; gap: 6px; text-align: center; }
.chart-value { color: var(--muted); font-size: .72rem; font-weight: 800; }
.chart-track { position: relative; height: 160px; overflow: hidden; border-radius: 10px; background: #edf3f4; }
.chart-track i { position: absolute; right: 0; bottom: 0; left: 0; min-height: 4px; border-radius: 10px; background: linear-gradient(180deg, var(--cyan), var(--teal)); }
.chart-day.today .chart-track { outline: 2px solid var(--lime); outline-offset: 2px; }
.chart-day strong { font-size: .78rem; }
.chart-day small { color: var(--muted); font-size: .67rem; }
.month-chart{height:88px;display:grid;grid-template-columns:repeat(30,minmax(3px,1fr));gap:3px;align-items:end}.month-chart-day{position:relative;height:100%;border-radius:3px;background:#edf3f4;overflow:hidden}.month-chart-day i{position:absolute;bottom:0;left:0;right:0;min-height:2px;background:linear-gradient(180deg,var(--cyan),var(--teal))}.month-chart-day.today{outline:2px solid var(--lime);outline-offset:1px}
.recent-list { display: grid; }
.recent-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.recent-item > div:first-child { min-width: 0; }
.recent-item strong, .recent-item span { display: block; }
.recent-item > div:first-child strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-item span { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.recent-result { flex: 0 0 auto; text-align: right; }
.recent-result strong { color: var(--teal-dark); font-size: 1.05rem; }
.profile-empty { padding: 36px 12px 26px; text-align: center; }
.profile-empty > strong { font-size: 1.05rem; }
.profile-empty p { margin: 8px auto 20px; color: var(--muted); font-size: .88rem; }

/* Shared inner pages */
.page-hero { padding: 54px 0 38px; color: #fff; background: linear-gradient(135deg, #0b2a33, #0f7280); }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.05em; line-height: 1; }
.page-hero p { max-width: 700px; margin: 16px 0 0; color: #d3e5e9; font-size: 1.05rem; }
.crumb { display: inline-flex; margin-bottom: 20px; color: #b9d3d9; font-size: .84rem; font-weight: 750; }
.inner-main { padding: 34px 0 64px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }

/* Knowledge test */
.trainer-shell { display: grid; gap: 24px; }
.trainer-flashes { display: grid; gap: 10px; }
.trainer-flash { padding: 12px 15px; border: 1px solid; border-radius: 12px; font-size: .92rem; font-weight: 700; }
.trainer-flash.success { color: var(--success); border-color: #a8d9bd; background: #e8f7ef; }
.trainer-flash.error { color: #a1262d; border-color: #efb6ba; background: #fdebed; }
.trainer-flash.info { color: #245c87; border-color: #bcd5ea; background: #edf6fc; }
.trainer-panel { padding: clamp(20px, 3vw, 30px); }
.classification-answer-status { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid; border-radius: 10px; font-weight: 850; }
.classification-answer-status.correct { color: var(--success); border-color: #8ed0ae; background: #e7f7ee; }
.classification-answer-status.wrong { color: var(--danger); border-color: #e7a7ab; background: #fdecef; }
.trainer-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.trainer-panel-head h2, .trainer-card h2, .ranking-panel h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }
.trainer-panel-head p, .trainer-card > p, .ranking-intro { margin: 7px 0 0; color: var(--muted); }
.trainer-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trainer-user-name { color: var(--teal-dark); font-weight: 850; }
.trainer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.trainer-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; }
.trainer-button:disabled { cursor: not-allowed; opacity: .45; }
.trainer-button.primary { color: #fff; background: var(--teal); }
.trainer-button.primary:hover:not(:disabled) { background: var(--teal-dark); }
.trainer-button.secondary { color: var(--teal-dark); border-color: #c7dce1; background: #edf6f8; }
.trainer-button.secondary:hover { border-color: var(--teal); background: #e2f2f5; }
.trainer-button.block { width: 100%; }
.trainer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trainer-stat { padding: 17px 12px; border: 1px solid var(--line); border-radius: 16px; background: #f4f8f9; text-align: center; }
.trainer-stat strong { display: block; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.1; }
.trainer-stat span { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.trainer-best { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
.analogy-cipher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.analogy-cipher > div { display: grid; grid-template-columns: 38px 1fr; gap: 2px 10px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f4f8f9; }
.analogy-cipher strong { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 10px; background: var(--teal); }
.analogy-cipher span { font-weight: 850; }
.analogy-cipher small { color: var(--muted); font-size: .72rem; }
.analogy-cipher.compact { position: sticky; z-index: 4; top: 10px; grid-template-columns: repeat(6, 1fr); padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(5,37,47,.09); backdrop-filter: blur(10px); }
.analogy-cipher.compact > div { grid-template-columns: 28px 1fr; padding: 7px; border: 0; background: transparent; }
.analogy-cipher.compact strong { width: 27px; height: 27px; font-size: .82rem; }
.analogy-cipher.compact span { font-size: .76rem; line-height: 1.2; }
.analogy-work { padding: clamp(20px, 3vw, 30px); }
.analogy-work-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.analogy-work-head h2 { margin: 0; }
.analogy-clock { min-width: 112px; padding: 10px 14px; border-radius: 14px; color: #fff; background: var(--ink); text-align: center; }
.analogy-clock span { display: block; color: #b9cbd0; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.analogy-clock strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.analogy-clock strong.is-critical { color: #ff858a; }
.analogy-progress { height: 7px; overflow: hidden; margin: 18px 0; border-radius: 999px; background: #e4edef; }
.analogy-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--lime)); transition: width .2s; }
.analogy-items { display: grid; gap: 9px; }
.analogy-item { display: grid; grid-template-columns: 36px minmax(170px,1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.analogy-index { color: var(--muted); font-size: .8rem; font-weight: 900; }
.analogy-choices { display: flex; gap: 5px; }
.analogy-choices button { width: 38px; height: 38px; color: var(--teal-dark); border: 1px solid #c7dce1; border-radius: 10px; background: #edf6f8; cursor: pointer; font-weight: 900; }
.analogy-choices button:hover { border-color: var(--teal); }
.analogy-choices button.selected { color: #fff; border-color: var(--teal); background: var(--teal); box-shadow: 0 5px 14px rgba(25,155,173,.24); }
.analogy-submit { position: sticky; z-index: 5; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(5,37,47,.12); }
.analogy-submit span { font-weight: 850; }
.analogy-mistakes { display: grid; gap: 9px; max-height: 340px; overflow: auto; }
.analogy-mistakes > div { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.analogy-mistakes strong, .analogy-mistakes span, .analogy-mistakes small { display: block; }
.analogy-mistakes span { margin-top: 3px; color: var(--danger); font-size: .8rem; font-weight: 750; }
.analogy-mistakes small { margin-top: 2px; color: var(--muted); }
.landolt-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.landolt-mode { position: relative; display: grid; gap: 4px; padding: 18px 18px 18px 50px; border: 2px solid var(--line); border-radius: 16px; background: #f7fafb; cursor: pointer; }
.landolt-mode input { position: absolute; top: 20px; left: 18px; width: 18px; height: 18px; accent-color: var(--teal); }
.landolt-mode strong { font-size: 1.02rem; }
.landolt-mode span { color: var(--teal-dark); font-size: .85rem; font-weight: 800; }
.landolt-mode small { color: var(--muted); }
.landolt-mode.is-selected { border-color: var(--teal); background: #eaf7f8; box-shadow: 0 8px 22px rgba(25,155,173,.12); }
.landolt-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border-left: 4px solid var(--cyan); border-radius: 8px; color: var(--muted); background: #edf7f9; font-size: .86rem; }
.landolt-note strong { flex: 0 0 auto; color: var(--teal-dark); }
.landolt-work { padding: clamp(18px,3vw,30px); }
.landolt-work-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.landolt-work-head h2 { margin: 0; }
.landolt-round-clock { min-width: 108px; padding: 10px 14px; border-radius: 14px; color: #fff; background: var(--ink); text-align: center; }
.landolt-round-clock span { display: block; color: #b9cbd0; font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.landolt-round-clock strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.landolt-round-clock strong.is-critical { color: #ff858a; }
.landolt-target { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; padding: 12px 16px; border: 1px solid #b9dfe3; border-radius: 16px; background: #edf9fa; }
.landolt-target-ring { display: grid; flex: 0 0 auto; place-items: center; width: 62px; height: 62px; color: var(--teal-dark); border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(5,37,47,.1); }
.landolt-target-ring svg { width: 54px; height: 54px; }
.landolt-target span,.landolt-target small { display: block; color: var(--muted); }
.landolt-target span { font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.landolt-target strong { display: block; margin: 2px 0; font-size: 1.2rem; }
.landolt-round-progress { height: 6px; overflow: hidden; margin-bottom: 14px; border-radius: 999px; background: #e4edef; }
.landolt-round-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--lime)); }
.landolt-grid { display: grid; grid-template-columns: repeat(16,1fr); gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #f9fbfb; }
.landolt-ring { display: grid; aspect-ratio: 1; min-width: 0; place-items: center; padding: 2px; color: #213b43; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: crosshair; transition: border-color .12s, background .12s, transform .12s; }
.landolt-ring:hover { border-color: #9bd6dd; background: #edf9fa; transform: scale(1.05); }
.landolt-ring svg { width: 100%; max-width: 44px; height: auto; }
.landolt-ring.is-marked { color: #fff; border-color: var(--teal-dark); background: var(--teal); box-shadow: 0 4px 12px rgba(25,155,173,.24); }
.landolt-work-foot { position: sticky; z-index: 5; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(5,37,47,.12); }
.landolt-work-foot span { font-weight: 850; }
.landolt-result-metrics { grid-template-columns: repeat(4,1fr); }
.landolt-breakdown { display: grid; gap: 12px; }
.landolt-round-result > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.landolt-round-result > div:first-child span { color: var(--teal-dark); font-weight: 900; }
.landolt-round-result small { display: block; margin-top: 5px; color: var(--muted); }
.landolt-round-result .weak-topic-track i { background: linear-gradient(90deg,var(--teal),var(--lime)); }
.landolt-recommendation { margin: 0; color: var(--muted); line-height: 1.65; }
.raven-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px 0; }
.raven-guide > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f4f8f9; }
.raven-guide strong { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 50%; background: var(--teal); }
.raven-guide span { color: var(--muted); font-size: .82rem; font-weight: 750; line-height: 1.35; }
.raven-work { padding: clamp(18px,3vw,30px); }
.raven-work-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.raven-work-head h2 { max-width: 760px; margin: 0; }
.raven-time { width: 122px; min-width: 108px; padding: 10px 12px; border-radius: 14px; color: #fff; background: var(--ink); text-align: center; }
.raven-time span { display: block; max-width: 100%; overflow-wrap: anywhere; color: #b9cbd0; font-size: .66rem; font-weight: 850; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; }
.raven-time strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.raven-progress { height: 7px; overflow: hidden; margin: 18px 0 12px; border-radius: 999px; background: #e4edef; }
.raven-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--lime)); transition: width .25s; }
.raven-difficulty { width: max-content; margin: 0 auto 10px; padding: 5px 12px; color: var(--teal-dark); border-radius: 999px; background: #e7f5f7; font-size: .73rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.raven-matrix { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; width: min(100%,480px); margin: 0 auto; padding: 10px; border: 2px solid #9ab4bb; border-radius: 18px; background: #dce8eb; box-shadow: 0 12px 28px rgba(5,37,47,.12); }
.raven-cell { display: grid; aspect-ratio: 1; place-items: center; color: #163640; border: 1px solid #b8cdd2; border-radius: 10px; background: #fff; }
.raven-cell svg { width: 88%; height: 88%; }
.raven-cell.is-missing { color: var(--teal-dark); border: 2px dashed var(--teal); background: #edf9fa; }
.raven-cell.is-missing strong { font-size: clamp(2.2rem,6vw,4rem); }
.raven-options-title { margin: 24px 0 12px; font-size: 1rem; text-align: center; }
.raven-options { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; max-width: 820px; margin: 0 auto; }
.raven-option { position: relative; display: grid; aspect-ratio: 1; place-items: center; padding: 6px; color: #173841; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.raven-option:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 8px 18px rgba(25,155,173,.16); }
.raven-option span { position: absolute; top: 6px; left: 7px; display: grid; place-items: center; width: 23px; height: 23px; color: #fff; border-radius: 7px; background: var(--teal-dark); font-size: .72rem; font-weight: 900; }
.raven-option svg { width: 86%; height: 86%; }
.raven-option.correct { border-color: var(--success); background: #e8f7ef; box-shadow: inset 0 0 0 2px var(--success); }
.raven-option.wrong { border-color: var(--danger); background: #fdebed; box-shadow: inset 0 0 0 2px var(--danger); }
.raven-feedback { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; max-width: 820px; min-height: 56px; margin: 14px auto 8px; }
.raven-feedback strong { padding: 7px 10px; border-radius: 9px; font-size: .84rem; }
.raven-feedback strong.is-correct { color: var(--success); background: #e8f7ef; }
.raven-feedback strong.is-wrong { color: var(--danger); background: #fdebed; }
.raven-feedback span { padding-top: 6px; color: var(--muted); line-height: 1.5; }
.raven-work > .trainer-button { display: flex; width: min(100%, 820px); margin: 8px auto 0; }
.trainer-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trainer-card { padding: clamp(20px, 3vw, 28px); }
.test-variant-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.test-variant-card { position: relative; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; padding: 18px; overflow: hidden; cursor: pointer; border: 2px solid var(--line); border-radius: 18px; background: #f7fafb; transition: border-color .15s, background .15s, box-shadow .15s; }
.test-variant-card input { position: absolute; opacity: 0; pointer-events: none; }
.test-variant-card.is-selected { border-color: var(--teal); background: #edf9fa; box-shadow: 0 10px 24px rgba(25,155,173,.12); }
.test-variant-card:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.test-variant-code { grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: var(--teal-dark); font-size: .78rem; font-weight: 900; }
.test-variant-card strong { align-self: end; font-size: 1.08rem; }
.test-variant-card > small { grid-column: 1 / -1; margin-top: 7px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.test-variant-meta { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; color: var(--teal-dark); border-top: 1px solid var(--line); font-size: .7rem; font-weight: 800; }
.test-summary-stats { margin-top: 0; }
.trainer-field { margin-top: 15px; }
.trainer-field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 800; }
.trainer-field input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); border: 1px solid #c7d9de; border-radius: 12px; background: #fff; }
.trainer-field input:focus { border-color: var(--teal); outline: 3px solid rgba(25,155,173,.14); }
.trainer-form .trainer-button { margin-top: 18px; }
.ranking-panel { padding: clamp(20px, 3vw, 30px); overflow: hidden; }
.ranking-stats { margin: 22px 0; }
.trainer-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.trainer-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; }
.trainer-table th, .trainer-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.trainer-table th { color: #315660; background: #eaf3f5; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.trainer-table tbody tr:last-child td { border-bottom: 0; }
.trainer-table tbody tr.is-current { background: #e7f7ee; }
.trainer-table .num { text-align: right; white-space: nowrap; }
.trainer-table .rank-first { color: #9b7200; }
.trainer-empty { padding: 28px !important; color: var(--muted); text-align: center !important; }

/* Knowledge test modal */
.quiz-overlay { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(7,30,38,.8); backdrop-filter: blur(8px); }
.quiz-overlay[hidden] { display: none; }
.quiz-modal { width: min(100%, 820px); max-height: 92vh; overflow: auto; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quiz-progress { flex: 1; height: 10px; overflow: hidden; border-radius: 999px; background: #e5edef; }
.quiz-bar { width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width .25s; }
.quiz-close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; color: var(--muted); background: #eef4f6; font-size: 1.35rem; }
.quiz-counter { margin-bottom: 7px; color: var(--teal-dark); font-size: .82rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.quiz-text { margin: 0 0 20px; font-size: clamp(1.08rem, 2.5vw, 1.3rem); font-weight: 800; }
.quiz-option { display: block; width: 100%; margin-bottom: 10px; padding: 13px 15px; cursor: pointer; color: var(--ink); border: 1.5px solid #c9dce1; border-radius: 13px; background: #fff; font-weight: 700; text-align: left; }
.quiz-option:hover:not(:disabled) { border-color: var(--teal); background: #eff9fa; }
.quiz-option:disabled { cursor: default; }
.quiz-option.correct { color: var(--success); border-color: #8ed0ae; background: #e7f7ee; }
.quiz-option.wrong { color: var(--danger); border-color: #e7a7ab; background: #fdecef; }
.quiz-feedback { min-height: 10px; margin: 8px 0; font-size: .94rem; }
.quiz-feedback .fb-title { margin-bottom: 3px; color: var(--teal-dark); font-weight: 850; }
.quiz-result { padding: 4px 0 10px; text-align: left; }
.result-kicker { margin: 0 0 13px; color: var(--teal-dark); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.result-summary { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.quiz-score { color: var(--teal-dark); font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 900; line-height: 1; }
.quiz-result .pct { margin-top: 8px; font-size: 1.1rem; font-weight: 800; }
.result-rank { max-width: 310px; color: var(--muted); font-size: .88rem; font-weight: 700; text-align: right; }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.result-metric { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #f4f8f9; }
.result-metric span, .result-metric small { display: block; color: var(--muted); }
.result-metric span { font-size: .7rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.result-metric strong { display: block; margin: 5px 0 3px; color: var(--ink); font-size: 1.35rem; line-height: 1.1; }
.result-metric strong.is-positive { color: var(--success); }
.result-metric strong.is-negative { color: var(--danger); }
.result-metric small { font-size: .75rem; line-height: 1.4; }
.result-analysis-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-top: 12px; }
.result-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.result-card h3 { margin: 0 0 13px; font-size: 1rem; }
.recommendation-card { color: #e5f2f4; border-color: #123d47; background: var(--navy); }
.recommendation-card h3 { color: var(--lime); }
.recommendation-card p { margin: 0; color: #c7dce1; font-size: .88rem; line-height: 1.55; }
.weak-topic + .weak-topic { margin-top: 13px; }
.weak-topic > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.weak-topic strong { min-width: 0; font-size: .8rem; line-height: 1.3; }
.weak-topic span { flex: 0 0 auto; color: var(--muted); font-size: .7rem; }
.weak-topic-track { height: 6px; overflow: hidden; border-radius: 999px; background: #e6edef; }
.weak-topic-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e08658, var(--danger)); }
.result-empty { margin: 0; color: var(--success); font-size: .88rem; font-weight: 750; }
.quiz-error { color: var(--danger); font-weight: 750; }
.quiz-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Mimika */
.mimika-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 22px; align-items: start; }
.trainer-stage { padding: clamp(16px, 3vw, 28px); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.round-label { color: var(--muted); font-size: .86rem; font-weight: 750; }
.face-wrap { position: relative; width: min(100%, 620px); margin: 0 auto; overflow: hidden; border-radius: 20px; background: #202427; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.face-wrap::before { content: ""; display: block; padding-top: 100%; }
.face-sprite { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 300% 300%; transition: filter .12s ease; }
.face-sprite.is-hidden { filter: brightness(.15) blur(10px); }
.face-status { min-height: 58px; display: grid; place-items: center; margin-top: 14px; padding: 10px 16px; border-radius: 14px; background: #eef4f6; color: var(--muted); text-align: center; font-weight: 800; }
.face-status.good { background: #e6f6ed; color: var(--success); }
.face-status.bad { background: #fdebed; color: var(--danger); }
.stage-controls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mimika-control-card { position: sticky; top: 94px; z-index: 4; border-color: #dfb18d; box-shadow: 0 14px 34px rgba(41, 57, 68, .1); }
.mimika-control-card .stage-controls { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.mimika-control-card .ui-btn { width: 100%; min-width: 0; }
.mimika-control-card #next-round { grid-column: 1 / -1; }
.ui-btn { min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; }
.ui-btn:disabled { cursor: not-allowed; opacity: .45; }
.ui-btn.primary { color: #fff; background: var(--teal); }
.ui-btn.secondary { color: var(--teal-dark); background: #edf6f8; border-color: #c7dce1; }
.ui-btn.freeze { color: #fff; background: var(--navy); }
.sidebar { display: grid; gap: 18px; }
.side-card { padding: 20px; }
.side-card h2 { margin: 0 0 6px; font-size: 1.12rem; }
.side-card p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emotion-btn { min-height: 44px; padding: 9px 10px; border: 1px solid #cbdde2; border-radius: 11px; background: #fff; cursor: pointer; font-weight: 750; text-align: left; }
.emotion-btn:hover:not(:disabled) { border-color: var(--teal); background: #eff9fa; }
.emotion-btn:disabled { cursor: not-allowed; opacity: .5; }
.emotion-btn.correct { color: var(--success); border-color: #8ed0ae; background: #e7f7ee; }
.emotion-btn.wrong { color: var(--danger); border-color: #e7a7ab; background: #fdecef; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stat { padding: 12px 8px; border-radius: 12px; background: #f0f5f6; text-align: center; }
.mini-stat strong { display: block; font-size: 1.25rem; }
.mini-stat span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option span { display: block; padding: 10px; border: 1px solid #cbdde2; border-radius: 11px; cursor: pointer; text-align: center; font-weight: 750; }
.mode-option input:checked + span { color: #fff; border-color: var(--teal); background: var(--teal); }
.range-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 750; }
input[type="range"] { width: 100%; accent-color: var(--teal); }
.set-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Introscope */
.coming-soon { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 0; color: #fff; background: var(--navy); }
.coming-card { position: relative; max-width: 840px; padding: clamp(34px, 7vw, 76px); overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.coming-card::after { content: ""; position: absolute; width: 330px; height: 330px; right: -140px; bottom: -180px; border-radius: 50%; background: rgba(69,197,214,.18); }
.coming-icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 20px; color: var(--navy); background: var(--lime); }
.coming-icon svg { width: 38px; height: 38px; }
.coming-card h1 { max-width: 12ch; margin: 0; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .93; letter-spacing: -.06em; }
.coming-card p { max-width: 650px; margin: 24px 0 0; color: #bdd2d7; font-size: 1.12rem; }
.back-link { position: relative; z-index: 1; display: inline-flex; margin-top: 32px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-weight: 750; }
.coming-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.coming-actions .back-link { margin-top: 0; }
.introscope-coming-card { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(420px, 1.18fr); align-items: stretch; gap: clamp(26px, 4vw, 64px); min-height: 500px; }
.introscope-coming-card .coming-copy { align-self: center; position: relative; z-index: 2; }
.xray-motion { position: relative; min-width: 0; min-height: 410px; overflow: hidden; border: 1px solid rgba(98,196,198,.38); border-radius: 18px; background: #10232e; box-shadow: inset 0 0 70px rgba(31,91,105,.25), 0 22px 50px rgba(5,13,18,.22); }
.xray-motion::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(90deg, #10232e 0, transparent 10%, transparent 90%, #10232e 100%); }
.xray-motion-head,.xray-motion-foot { position: absolute; z-index: 8; right: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #8aa8b5; font-size: .62rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.xray-motion-head { top: 15px; }
.xray-motion-foot { bottom: 14px; }
.xray-motion-head span { display: inline-flex; align-items: center; gap: 8px; }
.xray-motion-head i { width: 7px; height: 7px; border-radius: 50%; background: #62c4c6; box-shadow: 0 0 11px rgba(98,196,198,.8); }
.xray-motion-head b,.xray-motion-foot b { color: #b7cad3; font: inherit; }
.xray-motion-viewport { position: absolute; inset: 44px 0 42px; overflow: hidden; }
.xray-motion-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(98,196,198,.12) 1px, transparent 1px),linear-gradient(90deg,rgba(98,196,198,.12) 1px,transparent 1px); background-size: 34px 34px; }
.xray-pass { position: absolute; left: 105%; height: auto; margin: 0; overflow: hidden; background: transparent; mix-blend-mode: screen; animation: xray-belt-pass 14s linear infinite; will-change: left; }
.xray-pass-a { top: 7%; width: 74%; aspect-ratio: 1.899; }
.xray-pass-b { top: 6%; width: 61%; aspect-ratio: 1.404; animation-delay: -7s; }
.xray-pass img { position: absolute; max-width: none; height: auto; opacity: .94; filter: invert(1) hue-rotate(190deg) saturate(1.32) contrast(1.12) brightness(1.08); }
.xray-pass-a img { top: -86.3%; left: -37.1%; width: 137.1%; }
.xray-pass-b img { top: -99.8%; left: -60%; width: 160%; }
.xray-scan-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 2px; background: #62c4c6; box-shadow: 0 0 8px #62c4c6,0 0 22px rgba(98,196,198,.75); animation: xray-scan-sweep 3.4s ease-in-out infinite alternate; }
.xray-scan-line::after { content: ""; position: absolute; top: 0; bottom: 0; right: -22px; width: 46px; background: linear-gradient(90deg,rgba(98,196,198,.2),transparent); }
.xray-reticle { position: absolute; z-index: 6; width: 34px; height: 34px; opacity: .72; border: 1px solid #f4a366; }
.xray-reticle::before,.xray-reticle::after { content: ""; position: absolute; background: #f4a366; }
.xray-reticle::before { top: 50%; right: 7px; left: 7px; height: 1px; }
.xray-reticle::after { top: 7px; bottom: 7px; left: 50%; width: 1px; }
.xray-reticle-a { top: 28%; left: 29%; }
.xray-reticle-b { right: 17%; bottom: 19%; border-color: #62c4c6; }
.xray-reticle-b::before,.xray-reticle-b::after { background: #62c4c6; }
.xray-levels { display: flex; align-items: end; gap: 4px; height: 15px; }
.xray-levels i { width: 10px; height: 5px; background: #62c4c6; }
.xray-levels i:nth-child(2),.xray-levels i:nth-child(5) { height: 10px; }
.xray-levels i:nth-child(3) { height: 14px; background: #f4a366; }
@keyframes xray-belt-pass { from { left: 105%; } to { left: -85%; } }
@keyframes xray-scan-sweep { from { left: 10%; } to { left: 90%; } }
.beta-launch { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 19px; border: 0; border-radius: 999px; cursor: pointer; color: var(--navy); background: var(--lime); box-shadow: 0 12px 30px rgba(217,242,102,.18); font: inherit; font-weight: 850; }
.beta-launch:hover { background: #e8ff82; }
.access-dialog { width: min(460px, calc(100% - 28px)); padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.access-dialog::backdrop { background: rgba(7,30,38,.82); backdrop-filter: blur(7px); }
.access-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 24px 15px; }
.access-dialog-head .kicker { margin-bottom: 6px; color: var(--teal-dark); }
.access-dialog-head h2 { margin: 0; font-size: 1.45rem; }
.access-dialog-close { width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 11px; cursor: pointer; color: var(--muted); background: #eef4f6; font-size: 1.45rem; }
.access-dialog form { padding: 0 24px 24px; }
.access-dialog label { display: block; margin-bottom: 7px; font-weight: 800; }
.access-dialog input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); border: 1px solid #c7d9de; border-radius: 12px; background: #fff; }
.access-dialog input:focus { border-color: var(--teal); outline: 3px solid rgba(25,155,173,.14); }
.access-dialog .trainer-button { margin-top: 15px; }
.access-error { margin: 9px 0 0; color: var(--danger); font-size: .9rem; font-weight: 750; }

/* Introscope beta */
.introscope-beta-page { min-height: 100vh; overflow: hidden; color: #dce9ec; background: #07171d; }
.introscope-hud { position: fixed; z-index: 30; top: 0; right: 0; left: 0; min-height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 9px clamp(14px, 3vw, 34px); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(7,23,29,.92); backdrop-filter: blur(12px); }
.introscope-back { justify-self: start; color: #b9ced4; font-size: .84rem; font-weight: 750; }
.introscope-back:hover { color: #fff; }
.introscope-hud-title { display: flex; align-items: baseline; gap: 8px; text-transform: uppercase; letter-spacing: .11em; }
.introscope-hud-title strong { color: #fff; font-size: .95rem; }
.introscope-hud-title span { color: var(--lime); font-size: .68rem; font-weight: 850; }
.introscope-score { justify-self: end; display: flex; gap: 14px; color: #a9c0c7; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.introscope-score strong { color: #fff; }
.introscope-lab { position: relative; min-height: 100vh; overflow: hidden; padding-top: 62px; background: radial-gradient(circle at 50% 42%, #23434d 0, #102a32 32%, #07171d 70%); }
.introscope-lab::before { content: ""; position: absolute; inset: 62px 0 0; opacity: .23; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; }
.scanner-machine { position: absolute; z-index: 4; top: clamp(95px, 13vh, 145px); left: 50%; width: clamp(310px, 37vw, 540px); height: clamp(340px, 54vh, 610px); border: clamp(34px, 4.2vw, 62px) solid #48545b; border-bottom-width: clamp(52px, 6vw, 80px); border-radius: 72px 72px 30px 30px; background: transparent; box-shadow: inset 0 0 0 6px #17262c, 0 36px 70px rgba(0,0,0,.42), 0 0 0 2px #65747b; transform: translateX(-50%); }
.scanner-machine::before { content: ""; position: absolute; inset: -20px; z-index: -1; border-radius: 85px 85px 38px 38px; background: linear-gradient(135deg, #819097, #3a474e 46%, #202d33); }
.scanner-opening { position: absolute; inset: 0; overflow: hidden; border: 5px solid #111d22; border-radius: 30px 30px 12px 12px; background: radial-gradient(circle, #1c343d, #071217 72%); box-shadow: inset 0 0 40px #000; }
.scanner-opening::after { content: ""; position: absolute; top: 0; bottom: 0; left: 48%; width: 4%; opacity: .5; background: linear-gradient(90deg, transparent, #45c5d6, transparent); filter: blur(4px); }
.scanner-label { position: absolute; z-index: 2; top: -48px; left: 50%; padding: 6px 13px; color: #071e26; border-radius: 8px; background: var(--lime); font-size: .78rem; font-weight: 950; letter-spacing: .12em; transform: translateX(-50%); }
.scanner-lamp { position: absolute; z-index: 3; top: -30px; right: -29px; width: 16px; height: 16px; border: 3px solid #d5b600; border-radius: 50%; background: #5bea79; box-shadow: 0 0 18px #5bea79; }
.scanner-foot { position: absolute; bottom: -118px; width: 34px; height: 72px; border-radius: 0 0 9px 9px; background: #303c42; }
.scanner-foot-left { left: 10%; }
.scanner-foot-right { right: 10%; }
.conveyor { position: absolute; z-index: 2; top: clamp(350px, 48vh, 550px); width: 42vw; height: 76px; border: 5px solid #55646b; border-radius: 18px; background: #28373d; box-shadow: 0 16px 32px rgba(0,0,0,.32); }
.conveyor-left { right: 50%; margin-right: clamp(115px, 15vw, 220px); }
.conveyor-right { left: 50%; margin-left: clamp(115px, 15vw, 220px); }
.roller-row { position: absolute; inset: 9px; border-radius: 10px; background: repeating-linear-gradient(90deg, #8d9ba0 0 8px, #526169 8px 15px, #1d2a30 15px 19px); }
.conveyor::before, .conveyor::after { content: ""; position: absolute; top: 72px; width: 13px; height: 28vh; max-height: 260px; background: #4a585e; }
.conveyor::before { left: 12%; }
.conveyor::after { right: 12%; }
.animated-suitcase { position: absolute; z-index: 3; top: calc(clamp(350px, 48vh, 550px) - 68px); right: -260px; width: 190px; height: 135px; border: 5px solid #131f24; border-radius: 25px; opacity: 0; background: linear-gradient(135deg, #57757d, #24383f); box-shadow: inset 0 0 0 5px rgba(255,255,255,.08), 0 18px 28px rgba(0,0,0,.38); }
.animated-suitcase::before { content: ""; position: absolute; top: -31px; left: 58px; width: 64px; height: 30px; border: 7px solid #18282e; border-bottom: 0; border-radius: 14px 14px 0 0; }
.animated-suitcase::after { content: ""; position: absolute; right: 21px; bottom: -12px; left: 21px; height: 12px; border-radius: 50%; background: #0b1519; box-shadow: 135px 0 0 #0b1519; }
.animated-suitcase span { position: absolute; inset: 16px; border: 2px solid rgba(255,255,255,.16); border-radius: 15px; }
.animated-suitcase.is-moving { animation: suitcase-through 2.45s cubic-bezier(.32,.02,.3,1) both; }
@keyframes suitcase-through { 0% { right: -260px; opacity: 0; } 10% { opacity: 1; } 48% { opacity: 1; filter: brightness(.78) saturate(.75); } 72% { opacity: 1; filter: brightness(.95); } 100% { right: calc(100% + 260px); opacity: 0; } }
.operator-monitor { position: absolute; z-index: 10; top: clamp(145px, 18vh, 205px); left: 50%; width: min(940px, 72vw); color: #dce9ec; border: 14px solid #1b272d; border-bottom-width: 20px; border-radius: 24px; background: #0d1b20; box-shadow: 0 40px 100px rgba(0,0,0,.68), 0 0 0 3px #5a686f; transform: translateX(-50%); }
.monitor-topline { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 15px; color: #bcd0d6; background: #15252b; font-size: .8rem; letter-spacing: .02em; }
.monitor-topline > div { display: flex; align-items: center; gap: 8px; }
.monitor-led { width: 9px; height: 9px; border-radius: 50%; background: #56e176; box-shadow: 0 0 11px #56e176; }
.timer-readout { color: var(--lime); font-variant-numeric: tabular-nums; font-weight: 850; }
.timer-track { height: 5px; background: #24363e; }
.timer-track div { width: 100%; height: 100%; background: var(--cyan); transition: width .1s linear; }
.timer-track div.is-critical { background: #ff5e64; box-shadow: 0 0 10px rgba(255,94,100,.7); }
.xray-screen { position: relative; height: min(58vh, 610px); min-height: 360px; overflow: hidden; cursor: crosshair; background: #020a0d; }
.xray-screen [hidden] { display: none !important; }
.xray-screen::after { content: ""; position: absolute; z-index: 4; inset: 0; pointer-events: none; opacity: .14; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(69,197,214,.22) 3px 4px); }
.xray-screen img { position: absolute; max-width: none; user-select: none; }
.screen-idle, .screen-result, .scan-overlay { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; padding: 28px; text-align: center; }
.screen-idle { background: radial-gradient(circle at center, #17343e, #030b0e 72%); }
.screen-idle h1 { margin: 16px 0 8px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.screen-idle p { max-width: 540px; margin: 0 0 22px; color: #9fb8c0; }
.scan-icon { width: 82px; height: 58px; border: 3px solid var(--cyan); border-radius: 12px; box-shadow: inset 0 0 18px rgba(69,197,214,.28), 0 0 28px rgba(69,197,214,.22); }
.scan-icon::after { content: ""; display: block; width: 3px; height: 100%; margin: 0 auto; background: var(--lime); box-shadow: 0 0 15px var(--lime); animation: scanner-sweep 1.3s ease-in-out infinite alternate; }
@keyframes scanner-sweep { from { transform: translateX(-31px); } to { transform: translateX(31px); } }
.scan-overlay { color: var(--lime); background: rgba(2,10,13,.88); font-size: .82rem; font-weight: 900; letter-spacing: .18em; }
.scan-overlay::before { content: ""; width: 70%; height: 2px; margin-bottom: 16px; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); animation: scan-line 1.2s ease-in-out infinite alternate; }
@keyframes scan-line { from { transform: translateY(-90px); } to { transform: translateY(90px); } }
.click-marker { position: absolute; z-index: 7; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; border: 3px solid; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.click-marker.is-correct { border-color: #69ee86; background: rgba(105,238,134,.2); }
.click-marker.is-wrong { border-color: #ff5e64; background: rgba(255,94,100,.2); }
.screen-result { color: #dce9ec; background: radial-gradient(circle, #17343e, #030b0e 72%); }
.screen-result span { color: var(--lime); font-size: .74rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.screen-result strong { display: block; margin-top: 10px; color: #fff; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; }
.screen-result p { margin: 10px 0 20px; color: #abc2c9; font-size: 1.1rem; }
.monitor-controls { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; background: #15252b; }
.monitor-controls p { margin: 0; color: #9eb5bc; font-size: .82rem; }
.monitor-controls .trainer-button { flex: 0 0 auto; min-height: 40px; padding-block: 8px; }
.monitor-actions { display: flex; align-items: center; gap: 10px; }
.monitor-stand { position: absolute; top: 100%; left: 50%; width: 90px; height: 70px; background: #1b272d; transform: translateX(-50%); }
.monitor-stand::after { content: ""; position: absolute; bottom: -15px; left: -45px; width: 180px; height: 18px; border-radius: 50%; background: #111b20; }

@media (max-width: 900px) {
  .introscope-beta-page { overflow: auto; }
  .introscope-hud { grid-template-columns: 1fr auto; }
  .introscope-hud-title { display: none; }
  .introscope-score { gap: 8px; font-size: .7rem; }
  .operator-monitor { top: 105px; width: calc(100% - 24px); }
  .xray-screen { min-height: 330px; height: 58vh; }
  .scanner-machine { opacity: .45; }
  .conveyor { opacity: .55; }
}

@media (max-width: 580px) {
  .coming-actions { align-items: stretch; flex-direction: column; }
  .coming-actions > * { width: 100%; justify-content: center; }
  .introscope-hud { min-height: 86px; align-items: start; grid-template-columns: 1fr; gap: 5px; }
  .introscope-score { justify-self: start; }
  .introscope-lab { padding-top: 86px; }
  .operator-monitor { top: 100px; border-width: 8px; }
  .xray-screen { min-height: 300px; height: 53vh; }
  .monitor-controls { align-items: stretch; flex-direction: column; }
  .monitor-controls .trainer-button { width: 100%; }
  .monitor-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .topnav { order: 3; width: 100%; justify-content: center; gap: 6px; padding-top: 8px; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.14); scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { flex: 1 0 38px; max-width: 48px; }
  .track-grid { grid-template-columns: 90px minmax(0,1fr); }
  .track-action { grid-column: 2; width: 64px; height: 64px; }
  .mimika-layout { grid-template-columns: 1fr; }
  .introscope-coming-card { grid-template-columns: 1fr; min-height: 0; }
  .xray-motion { min-height: 330px; }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .sidebar .answers-card { grid-column: 1 / -1; }
  .mimika-control-card { position: static; }
  .trainer-stats { grid-template-columns: repeat(2, 1fr); }
  .test-variant-picker { grid-template-columns: 1fr; }
  .profile-summary { grid-template-columns: repeat(2, 1fr); }
  .profile-modules { grid-template-columns: 1fr; }
  .profile-module h3 { min-height: 0; }
  .module-dynamics-head{display:block}.module-dynamics-head>p{margin-top:7px;text-align:left}.module-dynamics-grid{grid-template-columns:1fr}
  .development-grid { grid-template-columns: 1fr; }
  .development-overview { grid-template-columns: 1fr 1fr; }
  .development-overview p { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); }
  .rating-formula { flex-wrap: wrap; }
  .rating-formula > div { flex: 1 1 180px; }
  .rating-formula > i { display: none; }
  .platform-rating-head { align-items: flex-start; }
  .feedback-panel { grid-template-columns: 1fr; gap: 20px; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .daily-grid { grid-template-columns: 1fr; }
  .achievement-level.panel { grid-template-columns: auto minmax(0,1fr); }
  .level-progress-block { grid-column: 1 / -1; width: 100%; }
  .profile-bottom-grid { grid-template-columns: 1fr; }
  .analogy-cipher.compact { position: static; grid-template-columns: repeat(3, 1fr); }
  .analogy-item { grid-template-columns: 28px 1fr; }
  .analogy-choices { grid-column: 2; flex-wrap: wrap; }
  .landolt-grid { grid-template-columns: repeat(12,1fr); }
  .landolt-result-metrics { grid-template-columns: 1fr 1fr; }
  .raven-options { grid-template-columns: repeat(3,1fr); max-width: 520px; }
}

@media (max-width: 580px) {
  .introscope-coming-card { gap: 26px; }
  .xray-motion { min-height: 270px; border-radius: 13px; }
  .xray-motion-head,.xray-motion-foot { right: 12px; left: 12px; font-size: .51rem; letter-spacing: .08em; }
  .xray-motion-foot > span { display: none; }
  .xray-pass-a { top: 13%; width: 82%; }
  .xray-pass-b { top: 10%; width: 67%; }
}

@media (prefers-reduced-motion: reduce) {
  .xray-pass { left: 11%; animation: none; }
  .xray-pass-b { display: none; }
  .xray-scan-line { left: 50%; animation: none; }
}

@media (max-width: 760px) {
  .mimika-page { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mimika-page .mimika-layout { gap: 14px; }
  .mimika-page .trainer-stage { padding: 12px; }
  .mimika-page .stage-top { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .mimika-page .face-wrap { border-radius: 14px; }
  .mimika-page .face-status { min-height: 50px; margin-top: 10px; padding: 9px 12px; font-size: .82rem; }
  .mimika-page .sidebar { grid-template-columns: 1fr; gap: 14px; }
  .mimika-page .sidebar .answers-card { grid-column: auto; }
  .mimika-page .mimika-control-card {
    position: fixed;
    z-index: 80;
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    padding: 9px;
    border-color: #d89562;
    border-radius: 13px;
    background: rgba(250, 251, 248, .96);
    box-shadow: 0 12px 36px rgba(19, 35, 47, .25);
    backdrop-filter: blur(14px);
  }
  .mimika-page .mimika-control-copy { display: none; }
  .mimika-page .mimika-control-card .stage-controls { display: flex; flex-wrap: nowrap; gap: 7px; margin: 0; }
  .mimika-page .mimika-control-card .ui-btn { flex: 1 1 0; min-height: 48px; padding: 8px 10px; font-size: .78rem; }
  .mimika-page .answers { gap: 7px; }
  .mimika-page .emotion-btn { min-height: 48px; }
}

@media (max-width: 390px) {
  .mimika-page .mimika-control-card .ui-btn { padding-inline: 7px; font-size: .72rem; }
  .mimika-page .answers { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar-inner { gap: 8px; }
  .platform-brand { gap: 8px; font-size: .8rem; }
  .platform-brand > span { display: none; }
  .platform-brand img { width: 32px; height: 32px; }
  .platform-brand small { display: none; }
  .platform-account { min-width: 0; gap: 4px; padding-left: 0; border-left: 0; font-size: .72rem; }
  .platform-account a { padding: 6px 7px; }
  .platform-account a:first-child { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .platform-account span { display: none; }
  .account-welcome { display: grid; }
  .portal-hero { padding-top: 62px; }
  .portal-hero h1 { font-size: clamp(2.7rem, 16vw, 4.4rem); }
  .track { min-height: 0; }
  .track-grid { grid-template-columns: 1fr; gap: 18px; padding-block: 54px; }
  .track-number { font-size: 4.2rem; }
  .track-action { grid-column: 1; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .answers-card { grid-column: auto; }
  .answers { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding-top: 38px; }
  .trainer-auth-grid { grid-template-columns: 1fr; }
  .trainer-panel-head { display: grid; }
  .trainer-stats { grid-template-columns: repeat(2, 1fr); }
  .trainer-button { width: 100%; }
  .result-summary { align-items: flex-start; flex-direction: column; }
  .result-rank { max-width: none; text-align: left; }
  .result-metrics, .result-analysis-grid { grid-template-columns: 1fr; }
  .analogy-cipher { grid-template-columns: 1fr 1fr; }
  .analogy-cipher.compact { position: static; grid-template-columns: 1fr 1fr; }
  .analogy-item { grid-template-columns: 28px 1fr; }
  .analogy-choices { grid-column: 2; flex-wrap: wrap; }
  .platform-footer .shell { display: grid; gap: 10px; }
  .profile-hero { padding: 38px 0; }
  .profile-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .profile-hero h1 { overflow-wrap: anywhere; font-size: clamp(2.25rem, 12vw, 4rem); }
  .profile-score { min-width: 0; }
  .profile-summary { grid-template-columns: 1fr 1fr; }
  .profile-stat { padding: 16px; }
  .profile-stat > strong { font-size: 1.55rem; }
  .profile-section-head { display: block; }
  .profile-section-head > p { margin-top: 9px; text-align: left; }
  .development-overview { grid-template-columns: 1fr; }
  .development-overview > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .development-overview p { grid-column: auto; border-top: 0; }
  .development-card { min-height: 0; padding: 20px; }
  .development-card-head, .development-card-foot { align-items: flex-start; flex-direction: column; }
  .development-card-foot a { text-align: left; }
  .rating-formula { display: grid; grid-template-columns: 1fr 1fr; }
  .rating-formula > div { min-width: 0; }
  .platform-rating-head { display: block; }
  .platform-rating-head p { margin-top: 10px; text-align: left; }
  .feedback-form-foot { align-items: stretch; flex-direction: column; }
  .feedback-form-foot .trainer-button { width: 100%; }
  .achievement-level.panel { grid-template-columns: 1fr; text-align: center; }
  .level-emblem { margin-inline: auto; }
  .achievements-grid { grid-template-columns: 1fr; }
  .daily-summary { grid-template-columns: 1fr; }
  .daily-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .daily-summary > div:last-child { border-bottom: 0; }
  .achievement-card { min-height: 280px; }
  .week-chart { gap: 5px; }
  .chart-day { grid-template-rows: 20px 135px auto auto; }
  .chart-track { height: 135px; }
}

@media (max-width: 520px) {
  .analogy-cipher { grid-template-columns: 1fr; }
  .analogy-work-head { align-items: flex-start; }
  .analogy-clock { min-width: 94px; }
  .analogy-submit { align-items: stretch; flex-direction: column; }
  .landolt-modes { grid-template-columns: 1fr; }
  .landolt-grid { grid-template-columns: repeat(8,1fr); gap: 4px; padding: 8px; }
  .landolt-work-head { align-items: flex-start; }
  .landolt-round-clock { min-width: 92px; }
  .landolt-work-foot { align-items: stretch; flex-direction: column; }
  .landolt-result-metrics { grid-template-columns: 1fr; }
  .raven-guide { grid-template-columns: 1fr; }
  .raven-work-head { align-items: flex-start; }
  .raven-time { min-width: 92px; }
  .raven-options { gap: 7px; }
  .raven-feedback { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Focus & Flow: shared training-room typography and response motion. */
:root{--paper:#f0f3f6;--ink:#1a2938;--muted:#637487;--line:#dce3ea;--teal:#147d82;--teal-dark:#12676e;--navy:#101923;--cyan:#60d8d3;--lime:#bbd992;--success:#22845f;--danger:#b95950}
h1,h2,h3,h4{font-family:"Manrope","Golos Text",sans-serif}
.site-topbar{background:rgba(16,22,32,.97);border-bottom-color:#2b3645}
.platform-brand{font-family:"Manrope","Golos Text",sans-serif;font-weight:750}
.platform-brand small{letter-spacing:.1em}
.topnav a{border-radius:7px;font-weight:600;transition:background .2s,transform .25s cubic-bezier(.2,1.8,.5,1)}
.topnav a:hover,.topnav a[aria-current="page"]{border-color:#60d8d366;color:#98e5df;background:#1e343b}
.topnav a[aria-current="page"]{box-shadow:inset 0 -2px #60d8d3}
.page-hero,.profile-hero{background:radial-gradient(ellipse at 80% 20%,#23494f50,transparent 70%),#151f2b}
.page-hero h1{font-size:clamp(2rem,5vw,3.8rem);line-height:1.15;letter-spacing:-.045em}
.panel{border-radius:14px;box-shadow:0 8px 28px #182c3c05}
.trainer-button{font-weight:650;border-radius:8px;transition:background .2s,transform .28s cubic-bezier(.2,1.8,.5,1),box-shadow .2s}
.trainer-button.primary{background:#147d82;color:#fff;box-shadow:0 4px 16px #147d821a}
.trainer-button.primary:hover{background:#116b72;transform:translateY(-2px)}
.trainer-button:active,.quiz-option:active,.emotion-btn:active,.classification-option:active{transform:scale(.98)}
.page-hero,.profile-hero{animation:ff-enter .5s both}
.trainer-panel,.profile-overview{animation:ff-enter .5s .08s both}
.quiz-option,.emotion-btn{transition:transform .23s cubic-bezier(.2,1.8,.5,1),background .2s,border-color .2s}
.quiz-option.correct,.emotion-btn.correct,.classification-answer-status.correct,.raven-option.correct{animation:ff-correct .5s ease-out}
.quiz-option.wrong,.emotion-btn.wrong,.classification-answer-status.wrong,.raven-option.wrong{animation:ff-wrong .23s ease-in-out}
@keyframes ff-enter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@keyframes ff-correct{0%{box-shadow:0 0 0 0 #44a17c30}50%{box-shadow:0 0 0 5px #44a17c18}100%{box-shadow:0 0 0 8px transparent}}
@keyframes ff-wrong{0%,100%{translate:0 0}25%,75%{translate:-2px 0}50%{translate:2px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
html.ff-quiet *,html.ff-quiet *:before,html.ff-quiet *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
