:root {
  --paper: #f7f4ea;
  --ink: #17231e;
  --muted: #66726c;
  --line: #d8ddd4;
  --card: #fffdf7;
  --green: #1f674c;
  --green-dark: #164c39;
  --lime: #edf39a;
  --red: #b8483d;
  --shadow: 0 16px 45px rgba(28, 45, 37, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; overflow-x: hidden; background: var(--paper); }
html:has(dialog[open]) { overflow: hidden; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 90% 5%, rgba(223,233,124,.32), transparent 24rem), var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: min(100%, 1120px); min-height: 100vh; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) clamp(18px, 4vw, 42px) max(28px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { color: var(--green); font-size: 24px; line-height: 1; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.46); cursor: pointer; font-size: 20px; }
.screen { display: none; }
.screen.active { display: block; animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.hero { padding: clamp(52px, 10vw, 96px) 0 42px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { text-wrap: balance; }
h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 9vw, 86px); font-weight: 500; line-height: .96; letter-spacing: -.055em; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 4vw, 34px); font-weight: 500; letter-spacing: -.035em; }
.hero-copy { max-width: 590px; margin: 25px 0 30px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; }
.primary-button { min-height: 58px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--green); color: white; box-shadow: 0 9px 24px rgba(30,102,75,.2); cursor: pointer; font-weight: 750; display: flex; align-items: center; justify-content: space-between; gap: 36px; transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:active { transform: translateY(1px); }
.button-detail { color: #c7e3d6; font-size: 13px; font-weight: 650; }
.secondary-button { min-height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 750; }
.secondary-button:hover { border-color: var(--green); }
.dynamics-link { width: 100%; margin-top: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,247,.7); display: flex; flex-direction: column; justify-content: space-between; }
.stat-card.accent { border-color: var(--green); background: var(--green); color: white; }
.stat-value { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 6vw, 48px); line-height: 1; }
.stat-label { color: var(--muted); font-size: 13px; }
.accent .stat-label { color: #c7e3d6; }
.week-card { margin-top: 36px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.week-count { color: var(--muted); font-size: 14px; }
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; margin-top: 28px; }
.day { display: grid; gap: 8px; justify-items: center; color: var(--muted); font-size: 11px; }
.day-dot { width: clamp(34px, 7vw, 48px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-weight: 800; }
.day.complete .day-dot { border-color: var(--green); background: var(--green); color: white; }
.day.today .day-dot { outline: 3px solid var(--lime); outline-offset: 3px; }
.health-note { max-width: 620px; margin: 26px auto 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

.subpage-header { height: 54px; display: flex; align-items: center; gap: 14px; font-weight: 750; }
.back-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer; font-size: 20px; }
.dynamics-hero { padding: clamp(42px, 8vw, 72px) 0 34px; }
.dynamics-hero h1 { font-size: clamp(54px, 10vw, 82px); }
.dynamics-hero > p:last-child { max-width: 570px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.summary-grid article { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); display: grid; align-content: space-between; }
.summary-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 5vw, 44px); font-weight: 500; }
.summary-grid span { color: var(--muted); font-size: 12px; }
.chart-card, .history-card { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.chart-scale { color: var(--muted); font-size: 12px; }
.accuracy-chart { height: 240px; margin-top: 30px; padding-top: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: end; gap: clamp(7px, 2vw, 15px); }
.chart-column { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.chart-bar-wrap { width: 100%; flex: 1; display: flex; align-items: end; justify-content: center; }
.chart-bar { width: min(100%, 42px); min-height: 4px; border-radius: 8px 8px 2px 2px; background: var(--green); animation: growBar .55s ease both; transform-origin: bottom; }
@keyframes growBar { from { transform: scaleY(0); } }
.chart-value { font-size: 11px; font-weight: 800; }
.chart-date { height: 18px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.empty-state { margin: 28px 0 2px; color: var(--muted); text-align: center; }
.domains-section { padding: 38px 0; }
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.domain-card { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,247,.65); display: grid; align-content: space-between; }
.domain-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; font-weight: 900; }
.domain-score { margin-top: 20px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; }
.domain-score.empty { max-width: 100px; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 650; text-align: right; }
.domain-name { color: var(--muted); font-size: 13px; }
.domain-details { display: grid; gap: 4px; }
.domain-details small { color: var(--muted); font-size: 11px; }
.domain-note { margin: 14px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-list { margin-top: 22px; }
.history-item { min-height: 70px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.history-item:first-child { border-top: 0; }
.history-primary { display: grid; gap: 4px; }
.history-primary strong { font-size: 14px; }
.history-primary span, .history-score small { color: var(--muted); font-size: 12px; }
.history-score { display: grid; justify-items: end; gap: 3px; }
.history-score strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }

.training-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 18px; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.progress-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-track div { width: 0; height: 100%; background: var(--green); transition: width .25s linear; }
.timer { min-width: 46px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; text-align: right; }
.exercise-area { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 38px 0; }
.exercise-card { width: min(100%, 640px); text-align: center; }
.exercise-type { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.exercise-prompt { min-height: 170px; margin: 34px 0; display: grid; place-items: center; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 13vw, 104px); line-height: 1; letter-spacing: -.045em; }
.exercise-hint { min-height: 24px; margin: -14px 0 25px; color: var(--muted); }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer-button { min-height: 68px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font-size: clamp(19px, 3vw, 24px); font-weight: 750; transition: border .12s, transform .12s, background .12s; }
.answer-button:hover { border-color: var(--green); transform: translateY(-1px); }
.answer-button:active { transform: scale(.985); }
.answer-button.correct { border-color: var(--green); background: #dcecdf; }
.answer-button.wrong { border-color: var(--red); background: #f2d8d4; }
.memory-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-family: inherit; font-size: clamp(22px, 5vw, 34px); letter-spacing: 0; }
.memory-words span { padding: 10px 15px; border-radius: 10px; background: var(--card); box-shadow: 0 2px 0 var(--line); }
.attention-word { max-width: 100%; font-family: inherit; font-size: clamp(44px, 13vw, 86px); font-weight: 900; line-height: .92; letter-spacing: -.07em; }
.result-wrap { min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.result-symbol { width: 72px; height: 72px; margin-bottom: 25px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 34px; }
.result-wrap h1 { font-size: clamp(48px, 9vw, 78px); }
.result-copy { margin: 20px 0 34px; color: var(--muted); font-size: 18px; }
.result-stats { width: min(100%, 520px); display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 34px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.result-stats div { padding: 20px 10px; display: grid; gap: 5px; }
.result-stats div + div { border-left: 1px solid var(--line); }
.result-stats strong { font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.result-stats span { color: var(--muted); font-size: 12px; }
.result-blocks { width: min(100%, 620px); margin: -12px 0 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.result-blocks:empty { display: none; }
.result-block-row { min-height: 56px; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); text-align: left; }
.result-block-row:first-child { border-top: 0; }
.result-block-row span { color: var(--muted); font-size: 12px; }
.result-block-row strong { min-width: 54px; text-align: right; }
.block-summary { width: min(100%, 580px); padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.block-summary h2 { margin-bottom: 10px; font-size: clamp(32px, 7vw, 46px); }
.block-summary-copy { margin: 0 0 26px; color: var(--muted); }
.block-summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.block-summary-stats div { padding: 16px 8px; display: grid; gap: 4px; }
.block-summary-stats div + div { border-left: 1px solid var(--line); }
.block-summary-stats strong { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.block-summary-stats span { color: var(--muted); font-size: 11px; }
.block-summary .primary-button { width: 100%; justify-content: center; }

dialog { width: min(calc(100% - 28px), 520px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: auto; }
dialog::backdrop { background: rgba(15, 27, 22, .55); backdrop-filter: blur(4px); }
.settings-card { padding: 28px; }
.dialog-heading { position: sticky; top: 0; z-index: 3; margin: -26px -26px 24px; padding: 26px 26px 14px; display: flex; align-items: start; justify-content: space-between; background: linear-gradient(var(--card) 78%, rgba(255,253,247,0)); }
fieldset { margin: 0 0 28px; padding: 0; border: 0; }
legend { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 13px; background: var(--paper); }
#modeOptions { grid-template-columns: repeat(2, 1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 44px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; font-weight: 700; }
.segmented input:checked + span { background: var(--card); color: var(--green); box-shadow: 0 2px 10px rgba(20,40,31,.1); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.toggle-row span { display: grid; gap: 4px; }
.toggle-row small { color: var(--muted); }
input[role="switch"] { width: 48px; height: 28px; appearance: none; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .2s; }
input[role="switch"]::after { content: ""; display: block; width: 22px; height: 22px; margin: 3px; border-radius: 50%; background: white; transition: transform .2s; }
input[role="switch"]:checked { background: var(--green); }
input[role="switch"]:checked::after { transform: translateX(20px); }
.levels-fieldset { display: grid; gap: 15px; }
.blocks-fieldset { display: grid; gap: 10px; }
.blocks-fieldset.counts-disabled input[type="number"] { opacity: .4; }
.settings-disabled { opacity: .48; }
.settings-disabled input { pointer-events: none; }
.block-row { min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: auto 1fr 68px; align-items: center; gap: 11px; }
.block-row label { display: grid; gap: 3px; cursor: pointer; }
.block-row small { color: var(--muted); }
.block-row input[type="number"] { width: 68px; min-height: 40px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: center; font-weight: 800; }
.block-row:has(input[role="switch"]:not(:checked)) { opacity: .55; }
.block-row:has(input[role="switch"]:not(:checked)) input[type="number"] { pointer-events: none; }
.level-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.3fr) 32px; align-items: center; gap: 14px; }
.level-row > span { display: grid; gap: 3px; }
.level-row small { color: var(--muted); }
.level-row input[type="range"] { width: 100%; accent-color: var(--green); }
.level-row output { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; font-weight: 850; }
.symbolic-layout { min-height: 190px; margin: 26px 0 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 7vw, 54px); text-align: left; }
.symbol-key { min-width: 94px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); display: grid; gap: 9px; }
.symbol-key > div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 15px; }
.symbol-key span { font-size: clamp(25px, 6vw, 34px); line-height: 1; text-align: center; }
.symbol-key span:last-child { color: var(--green); font-weight: 800; }
.symbolic-expression { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 8vw, 66px); line-height: 1.08; letter-spacing: -.04em; text-align: center; }
.settings-card .primary-button { width: 100%; justify-content: center; }
.danger-button { width: 100%; margin-top: 14px; padding: 12px; border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 13px; }

button:focus-visible, input:focus-visible { outline: 3px solid rgba(31, 103, 76, .28); outline-offset: 3px; }

@media (min-width: 900px) {
  #homeScreen.active { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(44px, 6vw, 76px); align-items: start; }
  #homeScreen .hero { grid-column: 1; grid-row: 1 / 5; padding-top: 82px; }
  #homeScreen .stats-grid { grid-column: 2; grid-row: 1; width: 100%; margin-top: 92px; }
  #homeScreen .dynamics-link { grid-column: 2; grid-row: 2; }
  #homeScreen .week-card { grid-column: 2; grid-row: 3; }
  #homeScreen .health-note { grid-column: 2; grid-row: 4; }
  #homeScreen .hero h1 { max-width: 590px; font-size: clamp(66px, 6.4vw, 82px); }
  #homeScreen .week-row { gap: 5px; }
  #homeScreen .day-dot { width: clamp(32px, 3vw, 40px); }
}

@media (max-width: 560px) {
  .hero { padding-top: 46px; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 105px; padding: 14px; }
  .week-card { margin-top: 26px; }
  .week-row { gap: 5px; }
  .training-header { grid-template-columns: auto 1fr auto; column-gap: 12px; }
  .training-header .text-button { grid-column: 1; justify-self: start; }
  .training-header .timer { grid-column: 3; justify-self: end; }
  .progress-track { grid-row: 2; grid-column: 1 / -1; }
  .exercise-area { min-height: calc(100vh - 150px); }
  .summary-grid { gap: 7px; }
  .summary-grid article { min-height: 105px; padding: 13px; }
  .domain-grid { grid-template-columns: 1fr; }
  .domain-card { min-height: 112px; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
  .domain-score { margin-top: 0; }
  .accuracy-chart { height: 210px; }
  .level-row { grid-template-columns: 105px 1fr 32px; gap: 9px; }
  .dialog-heading { margin-bottom: 20px; }
}

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

/* Design system refresh */
.topbar { height: 58px; }
.brand { font-weight: 700; }
.icon-button { background: var(--card); }
.hero { padding: clamp(58px, 9vw, 82px) 0 30px; }
.hero h1 { font-size: clamp(52px, 9vw, 82px); line-height: .98; }
.hero-copy { max-width: 520px; margin: 22px 0 28px; font-size: clamp(16px, 2vw, 18px); }
.mode-summary { width: min(100%, 520px); min-height: 66px; margin-bottom: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mode-summary > span { display: grid; gap: 4px; }
.mode-summary small { color: var(--muted); }
.hero .primary-button { width: min(100%, 520px); }
.stats-grid { max-width: 720px; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 4px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-card, .stat-card.accent { min-height: 72px; padding: 0 18px 0 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.stat-card + .stat-card { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(28px, 5vw, 38px); }
.stat-label, .accent .stat-label { color: var(--muted); }
.dynamics-link { max-width: 720px; margin-top: 14px; background: transparent; }
.week-card { max-width: 720px; margin-top: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.week-row { margin-top: 22px; }
.day-dot { background: rgba(255, 253, 247, .72); }
.health-note { max-width: 720px; margin-left: 0; text-align: left; }
.training-header { margin-top: 8px; }
.exercise-area { min-height: calc(100vh - 100px); }
.exercise-card { width: min(100%, 620px); }
.exercise-prompt { margin: 28px 0; }
.attention-tile { min-height: 155px; padding: 18px; overflow: hidden; border-radius: 24px; background: #1b2721; }
.attention-word { font-weight: 800; }
.answer-button { min-height: 66px; border-radius: 15px; box-shadow: none; }
.block-summary { border: 0; background: transparent; box-shadow: none; }
.block-summary-stats { border-right: 0; border-left: 0; border-radius: 0; }
.result-wrap { justify-content: flex-start; padding-top: clamp(80px, 14vw, 130px); }
.result-stats { border-right: 0; border-left: 0; border-radius: 0; background: transparent; }
.result-blocks { box-shadow: none; }
.dynamics-hero { padding-bottom: 30px; }
.summary-grid { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 0; }
.summary-grid article { min-height: 100px; padding: 16px 18px 16px 0; border: 0; border-radius: 0; background: transparent; }
.summary-grid article + article { padding-left: 18px; border-left: 1px solid var(--line); }
.chart-card, .history-card { border: 0; background: var(--card); box-shadow: none; }
.domain-grid { grid-template-columns: repeat(2, 1fr); gap: 0 22px; border-top: 1px solid var(--line); }
.domain-card { min-height: 82px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }
.domain-score { margin-top: 0; font-size: 30px; }
.domain-icon { background: var(--lime); }
.settings-card { padding: 26px; }
.block-row { background: var(--card); }

@media (max-width: 560px) {
  .app-shell { padding-right: 18px; padding-left: 18px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(50px, 14vw, 66px); }
  .stats-grid { margin-top: 2px; }
  .stat-card, .stat-card.accent { min-height: 66px; padding: 0 10px 0 0; }
  .stat-card + .stat-card { padding-left: 10px; }
  .stat-label { font-size: 11px; }
  .week-card { margin-top: 26px; }
  .exercise-area { min-height: calc(100vh - 116px); padding-top: 24px; }
  .exercise-prompt { min-height: 145px; }
  .attention-tile { min-height: 145px; }
  .summary-grid article { padding-right: 10px; }
  .summary-grid article + article { padding-left: 10px; }
  .domain-grid { grid-template-columns: 1fr; gap: 0; }
  .domain-card { min-height: 76px; }
  .result-block-row { gap: 10px; }
  .symbolic-layout { min-height: 210px; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; }
  .symbol-key { min-width: 0; padding: 11px 10px; }
  .symbol-key > div { gap: 8px; }
  .symbolic-expression { font-size: clamp(34px, 10vw, 48px); }
  .result-wrap { padding-top: 48px; }
  .result-symbol { width: 62px; height: 62px; margin-bottom: 20px; }
  .result-copy { margin: 16px 0 26px; font-size: 16px; }
}
