/* Free learning tools at /tools/. The tool sits directly under a short hero so
   the thing a searcher came for is in the first view. */
.tool-public-page { --tool-ink: #153e34; --tool-cream: #fffdf7; --tool-line: #d7ddd2; --tool-soft: #eef4ec; --tool-accent: #16995d; }

.tool-hero { background: #153e34; color: #f7f4ea; padding: 48px 0 96px; }
.tool-hero .public-breadcrumb { margin-bottom: 20px; }
.tool-hero .public-breadcrumb a, .tool-hero .public-breadcrumb span { color: #d6e6dc; }
.tool-hero h1 { margin: 0; max-width: 20ch; color: #fffdf7; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.045em; }
.tool-hero-lead { margin: 18px 0 0; max-width: 56ch; color: #e3eee6; font-size: 19px; line-height: 1.6; }

.tool-stage { position: relative; margin-top: -64px; padding-bottom: 24px; }
.tool-card { position: relative; padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--tool-line); border-radius: 24px; background: var(--tool-cream); box-shadow: 0 24px 60px rgba(16, 40, 30, .12); color: var(--tool-ink); }
.tool-card .tool-card-title { max-width: none; margin: 0 0 18px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.tool-step[hidden] { display: none; }
.tool-progress { margin: 0 0 8px; color: #4c6157; font-size: 14px; font-weight: 700; }
.tool-main-action { margin-top: 24px; min-width: 200px; }
.tool-text-action { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--tool-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.tool-text-action:hover { color: var(--tool-accent); }
.tool-noscript { margin-top: 16px; color: #4c6157; }

.tool-label { display: block; margin: 16px 0 6px; font-weight: 700; }
.tool-label:first-child { margin-top: 0; }
.tool-optional { color: #5f7067; font-weight: 500; }
.tool-input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b9c4b6; border-radius: 12px; background: #fff; color: var(--tool-ink); font: inherit; font-size: 17px; }
textarea.tool-input { min-height: 0; resize: vertical; line-height: 1.5; }
.tool-input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-color: transparent; }

.tool-field { margin: 0 0 8px; padding: 0; border: 0; }
.tool-field legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.tool-choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-choice { position: relative; display: inline-flex; }
.tool-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tool-choice span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 48px; padding: 12px 18px; border: 1px solid #b9c4b6; border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.tool-choice small { color: #5f7067; font-weight: 600; font-size: 13px; }
.tool-choice input:checked + span { border-color: var(--tool-ink); background: var(--tool-ink); color: #fffdf7; }
.tool-choice input:checked + span small { color: #cfe2d6; }
.tool-choice input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.tool-inline-number { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.tool-inline-number[hidden] { display: none; }
.tool-inline-number input { width: 96px; min-height: 48px; padding: 8px 12px; border: 1px solid #b9c4b6; border-radius: 12px; font: inherit; }
.tool-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.tool-check input { width: 20px; height: 20px; accent-color: var(--tool-accent); }

.tool-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tool-option { min-height: 64px; padding: 14px 18px; border: 1px solid #b9c4b6; border-radius: 16px; background: #fff; color: var(--tool-ink); font: inherit; font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.tool-option:hover { border-color: var(--tool-ink); background: var(--tool-soft); }
.tool-option:active { transform: scale(.98); }

.tool-result-figure { margin: 0; color: var(--tool-ink); }
.tool-result-figure strong { font-family: var(--site-heading); font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.04em; }
.tool-result-figure span { font-size: 18px; font-weight: 700; }
.tool-result-detail { max-width: 60ch; margin: 14px 0 0; font-size: 17px; line-height: 1.6; }

/* Reading speed test */
.reading-passage { max-width: 68ch; }
.reading-passage h3 { margin: 0 0 16px; font-size: 26px; }
.reading-passage p { margin: 0 0 16px; font-family: "Fraunces", Georgia, serif; font-size: 19px; line-height: 1.75; }
.reading-questions { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.reading-questions fieldset { margin: 0; padding: 0; border: 0; }
.reading-questions legend { margin-bottom: 10px; padding: 0; font-weight: 700; font-size: 18px; }
.reading-questions label { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 6px; padding: 10px 14px; border: 1px solid #c7d0c3; border-radius: 12px; background: #fff; cursor: pointer; }
.reading-questions label:has(input:checked) { border-color: var(--tool-ink); background: var(--tool-soft); }
.reading-questions input { width: 20px; height: 20px; accent-color: var(--tool-ink); }
.reading-scale { position: relative; height: 14px; margin: 28px 0 6px; border-radius: 999px; background: #e1e8df; }
.reading-scale-band { position: absolute; left: 29.2%; width: 20.8%; top: 0; bottom: 0; border-radius: 999px; background: #b9dcc7; }
.reading-scale-average { position: absolute; top: -26px; transform: translateX(-50%); font-size: 13px; color: #4c6157; }
.reading-scale-average::after { content: ""; position: absolute; left: 50%; top: 22px; width: 2px; height: 18px; background: #4c6157; }
.reading-scale-you { position: absolute; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border: 3px solid #fffdf7; border-radius: 50%; background: var(--tool-ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: left .6s var(--ease-out-strong); }
.reading-scale-labels { display: flex; justify-content: space-between; margin: 0; color: #5f7067; font-size: 13px; }
.reading-result .button { margin-top: 24px; }

/* Speech time */
.speech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.speech-panel { padding: 22px; border-radius: 18px; background: var(--tool-soft); }
.speech-panel .tool-result-figure { margin-top: 18px; }
.speech-panel .tool-result-figure strong { font-size: clamp(36px, 4.4vw, 52px); }
.speech-paste { margin-top: 10px; }
.speech-paste summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* Spaced repetition */
.spaced-tool { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); }
.spaced-list { margin: 0; padding: 0; list-style: none; counter-reset: review; display: grid; gap: 8px; }
.spaced-list li { counter-increment: review; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--tool-soft); }
.spaced-list li::before { content: counter(review); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tool-ink); color: #fffdf7; font-weight: 800; }
.spaced-list li strong { font-size: 17px; }
.spaced-list li span { color: #4c6157; font-size: 14px; }
.spaced-list li.spaced-goal { counter-increment: none; background: #fff3d6; }
.spaced-list li.spaced-goal::before { content: "\2605"; background: #c47f00; }
.spaced-output .button { margin-top: 18px; }

/* What should I learn */
.quiz-results { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quiz-results a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--tool-line); border-radius: 18px; background: #fff; color: var(--tool-ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.quiz-results a:hover { border-color: var(--tool-ink); transform: translateY(-2px); }
.quiz-results strong { font-family: var(--site-heading); font-size: 20px; line-height: 1.25; }
.quiz-results span { color: #4c6157; line-height: 1.5; }
.quiz-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.quiz-start { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tool-line); }
.quiz-start p { max-width: 60ch; margin: 0 0 14px; font-weight: 600; }
.quiz-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 32px; }
.quiz-goal-group h3 { margin: 0 0 8px; font-size: 20px; }
.quiz-interest { border-bottom: 1px solid var(--tool-line); }
.quiz-interest summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
.quiz-interest ul { margin: 0 0 14px; padding-left: 18px; }
.quiz-interest li { margin: 6px 0; }

/* Pomodoro */
.pomodoro-tool { max-width: 760px; margin: 0 auto; text-align: center; transition: background .4s ease; }
.pomodoro-tool[data-mode="short"], .pomodoro-tool[data-mode="long"] { background: #eef6fb; }
.pomodoro-modes { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; background: #e6ece4; }
.pomodoro-modes button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--tool-ink); font: inherit; font-weight: 700; cursor: pointer; }
.pomodoro-modes button[aria-selected="true"] { background: var(--tool-ink); color: #fffdf7; }
.pomodoro-clock { margin: 24px 0 8px; font-family: var(--site-heading); font-size: clamp(76px, 15vw, 148px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pomodoro-progress { height: 8px; max-width: 480px; margin: 0 auto; border-radius: 999px; background: #dde5da; overflow: hidden; }
.pomodoro-progress span { display: block; width: 0; height: 100%; background: var(--tool-accent); transition: width .25s linear; }
.pomodoro-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; margin-top: 8px; }
.pomodoro-rounds { margin: 16px 0 0; color: #4c6157; font-weight: 600; }
.pomodoro-rounds span { color: var(--tool-ink); font-weight: 800; }
.pomodoro-settings { max-width: 520px; margin: 20px auto 0; text-align: left; }
.pomodoro-settings summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.pomodoro-lengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; }
.tool-length { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 6px; font-weight: 700; }
.tool-length > span:first-child { grid-column: 1 / -1; font-size: 14px; }
.tool-length .tool-input { min-height: 48px; }

/* Flashcards */
.flash-edit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.flash-count { margin: 0; color: #4c6157; font-weight: 700; }
.flash-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: card; }
.flash-row { counter-increment: card; display: grid; grid-template-columns: 28px minmax(0, .8fr) minmax(0, 1.2fr) 44px; gap: 10px; align-items: start; }
.flash-row::before { content: counter(card); padding-top: 15px; color: #5f7067; font-weight: 700; text-align: right; }
.flash-row .tool-input { min-height: 52px; }
.flash-remove { width: 44px; height: 52px; border: 0; border-radius: 12px; background: transparent; color: #5f7067; font-size: 24px; cursor: pointer; }
.flash-remove:hover { background: #f1e3e0; color: #8a2e1f; }
.flash-edit-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
.flash-paste { margin-top: 12px; padding: 18px; border-radius: 16px; background: var(--tool-soft); }
.flash-paste[hidden] { display: none; }
.flash-paste .button { margin-top: 12px; }
.flash-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 300px; padding: 32px; border: 1px solid var(--tool-line); border-radius: 22px; background: #fff; color: var(--tool-ink); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 10px 30px rgba(16, 40, 30, .08); transition: background .2s ease, transform .2s ease; }
.flash-card:active { transform: scale(.99); }
.flash-card.is-flipped { background: #f1f8f3; }
.flash-card-side { color: #4c6157; font-size: 14px; font-weight: 800; }
.flash-card-text { max-width: 36ch; font-family: var(--site-heading); font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.3; }
.flash-card.is-flipped .flash-card-text { font-family: inherit; font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; line-height: 1.55; }
.flash-card-hint { color: #5f7067; font-size: 14px; }
.flash-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.flash-grade[hidden] { display: none; }
.flashcard-tool [data-flash-step="study"] > .tool-text-action { margin-top: 12px; }

/* Reference content below the tool */
.tool-table-wrap { overflow-x: auto; border: 1px solid var(--tool-line); border-radius: 18px; background: #fffdf7; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tool-table caption { padding: 16px 18px 0; text-align: left; color: #4c6157; font-weight: 600; }
.tool-table th, .tool-table td { padding: 12px 18px; border-bottom: 1px solid #e3e8df; text-align: left; white-space: nowrap; }
.tool-table thead th { color: #4c6157; font-size: 14px; }
.tool-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.tool-table tbody th { font-weight: 700; }
.tool-prose { max-width: 70ch; margin-top: 24px; }
.tool-prose p, .tool-prose li { font-size: 18px; line-height: 1.7; }
.tool-prose ul { padding-left: 20px; }
.tool-prose li { margin: 10px 0; }
.tool-steps { max-width: 72ch; margin: 0; padding-left: 24px; }
.tool-steps li { margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.tool-sources-heading { margin: 40px 0 8px; font-size: 18px; }
.tool-sources { max-width: 90ch; margin: 0; padding-left: 20px; color: #4c6157; font-size: 14px; line-height: 1.6; }
.tool-sources a { color: inherit; }

/* Hub */
.tool-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool-hub-card { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 26px; border: 1px solid var(--tool-line); border-radius: 22px; background: #fffdf7; color: var(--tool-ink); text-decoration: none; box-shadow: 0 16px 40px rgba(16, 40, 30, .08); transition: transform .15s ease, border-color .15s ease; }
.tool-hub-card:hover { transform: translateY(-3px); border-color: var(--tool-ink); }
.tool-hub-card strong { font-family: var(--site-heading); font-size: 24px; line-height: 1.2; }
.tool-hub-card strong::after { content: " \2192"; }
.tool-hub-card span { color: #4c6157; font-size: 17px; line-height: 1.5; }


/* Sharing and linking */
.tool-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.tool-share-status { margin: 0; color: #4c6157; font-size: 15px; font-weight: 600; }
.tool-link-section { padding-top: 8px !important; padding-bottom: 32px !important; }
.tool-link-this summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.tool-link-this p { margin: 8px 0; color: #4c6157; }
.tool-link-this textarea { max-width: 720px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.tool-link-this .button { margin-top: 10px; }
.flash-shared { margin-bottom: 18px; padding: 18px; border-radius: 16px; background: #fff3d6; }
.flash-shared[hidden] { display: none; }
.flash-shared p { margin: 0 0 12px; font-weight: 600; }
.flash-shared-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* Hub groups */
.tool-hub-page .tool-hero { padding-bottom: 56px; }
.tool-hub-page .tool-stage { margin-top: 0; padding-top: 40px; }
.tool-hub-group { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 34px); }
.tool-hub-grid + .tool-hub-group { margin-top: 48px; }

/* Shared game pieces */
.game-prompt { margin: 10px 0 18px; font-family: var(--site-heading); font-size: clamp(40px, 7vw, 64px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.game-answer { display: flex; gap: 10px; max-width: 420px; }
.game-answer[hidden] { display: none; }
.game-answer .tool-input { font-size: 22px; font-variant-numeric: tabular-nums; }
.game-feedback { min-height: 28px; margin: 12px 0 0; font-weight: 700; color: #4c6157; }
.game-number { margin: 10px 0 14px; font-family: var(--site-heading); font-size: clamp(40px, 8vw, 72px); font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.game-number.is-hidden { color: #b9c4b6; letter-spacing: 0; }
.memory-timer { height: 6px; max-width: 420px; margin-bottom: 18px; border-radius: 999px; background: #e1e8df; overflow: hidden; }
.memory-timer span { display: block; height: 100%; width: 0; background: var(--tool-accent); }
.math-hud { display: flex; justify-content: space-between; max-width: 420px; font-weight: 700; color: #4c6157; }
.math-hud > span:first-child { font-family: var(--site-heading); font-size: 28px; color: var(--tool-ink); font-variant-numeric: tabular-nums; }
.math-hud > span:first-child::after { content: " s"; font-size: 16px; }

/* Daily challenge */
.daily-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.daily-streak { margin: 0; padding: 6px 12px; border-radius: 999px; background: #fff3d6; color: #7a4d00; font-weight: 800; font-size: 14px; }
.daily-streak[hidden] { display: none; }
.daily-rounds { margin: 0; padding-left: 22px; }
.daily-rounds li { margin: 8px 0; font-size: 18px; }
.daily-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin: 18px 0; padding: 0; list-style: none; }
.daily-breakdown li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--tool-soft); }
.daily-breakdown span { color: #4c6157; font-size: 14px; font-weight: 700; }
.daily-breakdown strong { font-family: var(--site-heading); font-size: 26px; }

/* Timeline */
.timeline-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: tl; }
.timeline-item { counter-increment: tl; display: grid; grid-template-columns: 32px minmax(0, 1fr) 44px 44px; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--tool-line); border-radius: 14px; background: #fff; }
.timeline-item::before { content: counter(tl); color: #5f7067; font-weight: 800; }
.timeline-item.is-moved { animation: tl-nudge .25s var(--ease-out-strong); }
@keyframes tl-nudge { from { transform: scale(.98); background: var(--tool-soft); } to { transform: none; background: #fff; } }
.timeline-text { font-weight: 600; line-height: 1.35; }
.timeline-move { width: 44px; height: 44px; border: 1px solid #c7d0c3; border-radius: 12px; background: var(--tool-cream); color: var(--tool-ink); font-size: 20px; cursor: pointer; }
.timeline-move:hover { border-color: var(--tool-ink); }
.timeline-list.is-revealed li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--tool-soft); }
.timeline-list.is-revealed li strong { font-family: var(--site-heading); font-variant-numeric: tabular-nums; }
.timeline-list.is-revealed li em { font-style: normal; font-size: 14px; font-weight: 700; }
.timeline-list.is-revealed li.is-right em { color: #16794a; }
.timeline-list.is-revealed li.is-wrong { background: #fbeeea; }
.timeline-list.is-revealed li.is-wrong em { color: #8a2e1f; }
.daily-tool [data-daily-timeline-answer] { margin: 18px 0; }
.timeline-all summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.timeline-reference { columns: 2 320px; column-gap: 32px; margin: 16px 0 0; padding: 0; list-style: none; }
.timeline-reference li { break-inside: avoid; display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e3e8df; }

/* Thinking traps */
.trap-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.trap-item fieldset { margin: 0; padding: 0; border: 0; }
.trap-item legend { margin-bottom: 10px; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
.trap-number { color: #5f7067; }
.trap-item label { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 6px; padding: 10px 14px; border: 1px solid #c7d0c3; border-radius: 12px; background: #fff; cursor: pointer; }
.trap-item input { width: 20px; height: 20px; accent-color: var(--tool-ink); }
.trap-item.is-answered label { cursor: default; }
.trap-item label.is-right { border-color: #16794a; background: #e9f6ee; }
.trap-item label.is-wrong { border-color: #b4472f; background: #fbeeea; }
.trap-why { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: var(--tool-soft); }
.trap-why[hidden] { display: none; }
.trap-why p { margin: 0 0 6px; line-height: 1.6; }
.trap-verdict { font-weight: 800; }
.traps-result { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tool-line); }

/* Life in weeks */
.life-inputs { max-width: 320px; }
.life-output[hidden] { display: none; }
.life-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.life-stats p { margin: 0; padding: 14px; border-radius: 14px; background: var(--tool-soft); }
.life-stats strong { display: block; font-family: var(--site-heading); font-size: clamp(26px, 3vw, 36px); }
.life-stats span { color: #4c6157; font-size: 14px; font-weight: 600; }
.life-grid { display: block; max-width: 100%; }
.life-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; color: #4c6157; font-size: 14px; font-weight: 600; }
.life-key { display: inline-block; width: 12px; height: 12px; margin-right: -8px; border-radius: 2px; }
.life-key-past { background: #153e34; }
.life-key-now { background: #e0a100; }
.life-key-ahead { background: #d7ddd2; }

@media (max-width: 760px) {
  .tool-hero { padding: 32px 0 80px; }
  .tool-hero-lead { font-size: 17px; }
  .tool-stage { margin-top: -56px; }
  .tool-card { border-radius: 20px; }
  .speech-grid, .spaced-tool { grid-template-columns: 1fr; }
  .quiz-results { grid-template-columns: 1fr; }
  .tool-main-action { width: 100%; }
  .pomodoro-lengths { grid-template-columns: 1fr; }
  .flash-row { grid-template-columns: 22px minmax(0, 1fr) 44px; }
  .flash-row label:nth-of-type(2) { grid-column: 2 / 4; }
  .pomodoro-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 16px; }
  .pomodoro-modes button { padding: 8px 6px; border-radius: 12px; font-size: 14px; line-height: 1.2; }
  .flash-row .flash-remove { grid-column: 3; grid-row: 1; }
  .flash-card { min-height: 240px; padding: 24px; }
  .tool-table th, .tool-table td { padding: 10px 12px; }
  .life-stats { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 22px minmax(0, 1fr) 44px 44px; padding-left: 10px; }
  .timeline-list.is-revealed li { grid-template-columns: 76px minmax(0, 1fr); }
  .timeline-list.is-revealed li em { grid-column: 2; }
  .game-answer .button { min-width: 0; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-public-page * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
