:root {
  color-scheme: light;
  --paper: #f3f7fa;
  --paper-deep: #e4edf4;
  --surface: #ffffff;
  --ink: #13212c;
  --muted: #586875;
  --line: #cad6df;
  --accent: #176b9c;
  --accent-dark: #0a4f78;
  --accent-soft: #d9ebf5;
  --green: #2f704f;
  --green-soft: #dcebe2;
  --blue: #285f86;
  --blue-soft: #dbeaf4;
  --focus: #075fa4;
  --danger: #8b251f;
  --hyper: #a80f2d;
  --cant-calm: #ef6f24;
  --rising: #ffd164;
  --within: #6fad43;
  --shutting: #d9e9f5;
  --low-arousal: #91b6dd;
  --hypo: #0e72b8;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Aptos, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 600; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: linear-gradient(90deg, var(--hyper), var(--cant-calm), var(--rising), var(--within), var(--shutting), var(--low-arousal), var(--hypo)); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  inset: 7px;
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.privacy-note { color: var(--muted); font-size: 0.86rem; }
.support-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 750; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 140px; }
.intro, .page-heading { max-width: 760px; margin-bottom: 42px; }
.eyebrow, .step-label {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.intro h1, .page-heading h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.intro > p:last-child, .page-heading > p:last-child { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 670px; }

.checkin-shell { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: clamp(28px, 6vw, 80px); align-items: start; }
.stepper { list-style: none; margin: 0; padding: 0; position: sticky; top: 104px; }
.stepper li { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 10px 0; font-weight: 650; }
.stepper span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0.84rem; }
.stepper .is-current { color: var(--ink); }
.stepper .is-current span { color: white; background: var(--accent); border-color: var(--accent); }
.stepper .is-complete span { border-color: var(--green); color: var(--green); }

.step-panel, .saved-state { min-width: 0; }
.section-heading { margin-bottom: 34px; }
.section-heading h2, .saved-state h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 12px; }
.section-heading > p:last-child, .saved-state > p { color: var(--muted); max-width: 620px; }
.section-heading h2:focus, .saved-state h2:focus, .view h1:focus { outline: none; }
.about-summary { max-width: 720px; margin: 84px 0 0 calc(190px + clamp(28px, 6vw, 80px)); padding-top: 28px; border-top: 1px solid var(--line); }
.about-summary h2 { font-size: 1.8rem; margin-bottom: 10px; }
.about-summary p { color: var(--muted); }

.print-result { margin-top: 30px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.print-result header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.print-result h3 { margin: 0; font-size: 1.25rem; }
.print-result header > strong { color: var(--accent-dark); }
.result-scores { display: flex; align-items: center; gap: 18px; padding: 24px 0; }
.result-scores span:not([aria-hidden]) { display: flex; align-items: baseline; gap: 8px; }
.result-scores small { color: var(--muted); }
.result-scores b { font-family: var(--display); font-size: 3rem; line-height: 1; }
.print-result dl { margin: 0; }
.print-result dl div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 8px 0; border-top: 1px solid var(--line); }
.print-result dt { color: var(--muted); }
.print-result dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.print-note { margin: 22px 0 0; color: var(--muted); font-size: 0.84rem; }

.score-field { padding: 30px 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.score-readout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.score-output { display: block; font-family: var(--display); font-size: clamp(4.5rem, 12vw, 8rem); line-height: 0.86; letter-spacing: -0.07em; color: var(--score-color, var(--accent-dark)); }
.current-face { display: inline-grid; place-items: center; font-size: clamp(3.7rem, 10vw, 6.4rem); line-height: 1; }
.face-icon { width: 1em; height: 1em; display: block; flex: 0 0 auto; overflow: visible; filter: drop-shadow(0 0.035em 0 rgba(19,33,44,0.2)); }
.score-description { font-weight: 750; margin: 12px 0 22px; }
input[type="range"] {
  --score: 50%;
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(to right, #2f8f4e 0%, #7fba45 25%, #f0c431 43%, #f19a2d 64%, #d6532d 82%, #941b33 100%); }
input[type="range"]::-moz-range-track { height: 12px; border-radius: 999px; background: linear-gradient(to right, #2f8f4e 0%, #7fba45 25%, #f0c431 43%, #f19a2d 64%, #d6532d 82%, #941b33 100%); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 34px; height: 34px; margin-top: -11px; border-radius: 50%; border: 5px solid var(--surface); background: var(--score-color, var(--ink)); box-shadow: 0 0 0 2px var(--ink); }
input[type="range"]::-moz-range-thumb { width: 25px; height: 25px; border-radius: 50%; border: 5px solid var(--surface); background: var(--score-color, var(--ink)); box-shadow: 0 0 0 2px var(--ink); }
.scale-anchors { display: flex; justify-content: space-between; margin-top: 2px; font-variant-numeric: tabular-nums; font-weight: 700; }
.scale-anchors span:nth-child(2) { text-align: center; }
.scale-anchors span:last-child { text-align: right; }
.scale-anchors small, .microcopy { color: var(--muted); font-weight: 400; }
.microcopy { margin: 18px 0 0; font-size: 0.86rem; }
.score-buttons { display: grid; grid-template-columns: repeat(11, minmax(44px, 1fr)); gap: 4px; width: 100%; min-width: 0; margin-top: 24px; overflow-x: auto; padding: 3px; }
.score-buttons button { min-width: 44px; min-height: 66px; border: 1px solid rgba(19,33,44,0.35); background: var(--score-button); color: var(--score-button-ink); cursor: pointer; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; }
.score-face { display: inline-grid; place-items: center; font-size: 1.55rem; line-height: 1; }
.score-number { font-size: 0.82rem; line-height: 1; }
.score-buttons button.is-selected { background: var(--score-button); color: var(--score-button-ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 2px var(--ink); }

.field-group { border: 0; padding: 0; margin: 0 0 36px; }
.field-group legend, .text-field > span { display: block; font-weight: 750; margin-bottom: 14px; }
.field-group legend span, .text-field small { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-grid label input, .tool-card input, .activation-grid > label > input { position: absolute; opacity: 0; pointer-events: none; }
.chip-grid label span { display: block; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.chip-grid input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.chip-grid input:focus-visible + span, .activation-grid input:focus-visible + span, .tool-card input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.activation-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--surface); }
.activation-grid > label { cursor: pointer; }
.activation-grid > label + label { border-top: 1px solid rgba(19, 33, 44, 0.25); }
.activation-grid label > span { min-height: 68px; padding: 12px 18px; display: grid; grid-template-columns: minmax(170px, 0.42fr) 1fr; gap: 18px; align-items: center; }
.activation-grid strong { font-family: var(--display); font-size: 1.18rem; }
.activation-grid small { color: inherit; line-height: 1.4; opacity: 0.85; }
.activation-grid input:checked + span { box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px rgba(255,255,255,0.8); }
.activation-hyperarousal span { background: var(--hyper); color: white; }
.activation-cant-calm span { background: var(--cant-calm); color: #25190f; }
.activation-rising span { background: var(--rising); color: #2d260f; }
.activation-within span { background: var(--within); color: #14220f; }
.activation-shutting span { background: var(--shutting); color: #17252e; }
.activation-low span { background: var(--low-arousal); color: #13253a; }
.activation-hypoarousal span { background: var(--hypo); color: white; }
.spectrum-note { margin-top: 12px; }

.text-field { display: block; margin: 0 0 34px; }
.text-field textarea, .text-field input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 14px 16px; border-radius: 2px; resize: vertical; }
.text-field textarea { min-height: 100px; }
.text-field > small { display: block; text-align: right; margin-top: 4px; }
.text-field.compact { opacity: 0.55; }
.text-field.compact.is-relevant { opacity: 1; }

.panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.button { min-height: 48px; border: 1px solid transparent; border-radius: 2px; padding: 11px 18px; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
.button.quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button.danger-button { background: var(--danger); color: white; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--surface); margin-bottom: 30px; }
.tool-card { cursor: pointer; }
.tool-card:nth-child(even) { border-left: 1px solid var(--line); }
.tool-card:nth-child(n+3) { border-top: 1px solid var(--line); }
.tool-card span { min-height: 176px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
.tool-card strong { font-family: var(--display); font-size: 1.3rem; margin-bottom: 8px; }
.tool-card small { color: var(--muted); line-height: 1.45; }
.tool-card em { color: var(--accent-dark); font-size: 0.8rem; font-style: normal; font-weight: 750; margin-top: auto; padding-top: 16px; }
.tool-card input:checked + span { background: var(--accent-soft); box-shadow: inset 0 -5px 0 var(--accent); }

.practice { background: var(--ink); color: white; padding: 32px; margin: 34px 0; min-height: 255px; position: relative; overflow: hidden; }
.practice-kicker { color: #cbd8e1; margin: 0 0 12px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.practice h3 { font-family: var(--display); font-size: 2rem; margin-bottom: 12px; }
.practice > p:not(.practice-kicker) { color: #e3ebf1; max-width: 520px; }
.practice-time { font-variant-numeric: tabular-nums; font-weight: 750; }
.practice .button { color: white; border-color: #8293a1; }
.breath-visual { position: absolute; right: 42px; bottom: 42px; width: 112px; height: 112px; display: grid; place-items: center; }
.breath-visual span { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); opacity: 0.8; transition: transform 4s ease-in-out; }
.practice.is-breathing[data-breath-phase="in"] .breath-visual span { transform: scale(2); transition-duration: 4s; }
.practice.is-breathing[data-breath-phase="out"] .breath-visual span { transform: scale(1); transition-duration: 6s; }

.history-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; }
.range-switch { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.range-switch button { min-height: 44px; border: 0; background: transparent; color: var(--muted); padding: 9px 15px; cursor: pointer; }
.range-switch button + button { border-left: 1px solid var(--line); }
.range-switch .is-active { background: var(--ink); color: white; }
.data-actions { display: flex; gap: 18px; }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--accent-dark); font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger { color: var(--danger); }

.trend-panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); margin-bottom: 28px; }
.trend-panel h2 { font-size: 2rem; margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0; }
.stats div { padding: 18px 0; display: flex; flex-direction: column; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.stats span { color: var(--muted); font-size: 0.85rem; }
.chart { min-height: 250px; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 560px; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-grid text { fill: var(--muted); font: 12px var(--body); }
.before-line, .after-line { fill: none; stroke-width: 3; }
.before-line { stroke: var(--accent); }
.after-line { stroke: var(--green); }
.before-dot { fill: var(--accent); }
.after-dot { fill: var(--green); }
.chart-legend { display: flex; gap: 20px; justify-content: flex-end; font-size: 0.84rem; color: var(--muted); }
.chart-legend span::before { content: ""; width: 20px; height: 3px; display: inline-block; margin-right: 7px; vertical-align: middle; }
.before-key::before { background: var(--accent); }
.after-key::before { background: var(--green); }
.chart-empty, .empty-period { color: var(--muted); padding: 36px 0; }

.history-list { display: grid; gap: 18px; }
.history-entry { background: var(--surface); border-top: 4px solid var(--ink); padding: 28px; }
.history-entry header { display: flex; justify-content: space-between; gap: 18px; }
.history-entry time { color: var(--muted); font-size: 0.84rem; }
.history-entry h3 { font-size: 1.45rem; margin: 3px 0 0; }
.entry-actions { display: flex; gap: 14px; }
.entry-delete, .entry-print { border: 0; background: transparent; min-width: 44px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.entry-delete { color: var(--danger); }
.entry-print { color: var(--accent-dark); }
.entry-scores { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.entry-scores span:not(.score-arrow) { display: flex; align-items: baseline; gap: 7px; }
.entry-scores small { color: var(--muted); }
.entry-scores strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.score-arrow { color: var(--muted); font-size: 0.8rem; }
.entry-scores em { font-style: normal; font-size: 0.8rem; padding: 5px 9px; margin-left: auto; background: var(--paper-deep); }
.entry-scores em.lower { color: var(--green); background: var(--green-soft); }
.entry-scores em.higher { color: var(--accent-dark); background: var(--accent-soft); }
.history-entry dl { margin: 0; display: grid; gap: 8px; }
.history-entry dl div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.history-entry dt { color: var(--muted); font-size: 0.84rem; }
.history-entry dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.empty-state { border-top: 1px solid var(--line); padding: 48px 0; max-width: 640px; }
.empty-state h2 { font-size: 2rem; }
.empty-state p { color: var(--muted); }

.learn-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 72px; align-items: start; }
.learn-main { display: grid; gap: 42px; }
.learn-main section { padding-top: 26px; border-top: 1px solid var(--line); }
.learn-main h2, .learn-aside h2 { font-size: 1.85rem; margin-bottom: 12px; }
.learn-main p, .learn-aside p { color: var(--muted); }
.learn-aside { display: grid; gap: 18px; position: sticky; top: 104px; }
.source-card, .privacy-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.source-card ul { padding-left: 20px; margin-bottom: 0; }
.source-card li + li { margin-top: 11px; }
.window-diagram { border: 1px solid var(--line); margin-top: 24px; }
.zone { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 22px; align-items: center; }
.zone + .zone { border-top: 1px solid var(--line); }
.zone span { font-size: 0.9rem; }
.zone-hyper { background: var(--hyper); color: white; }
.zone-cant-calm { background: var(--cant-calm); color: #25190f; }
.zone-rising { background: var(--rising); color: #2d260f; }
.zone-within { background: var(--within); color: #14220f; }
.zone-shutting { background: var(--shutting); color: #17252e; }
.zone-low { background: var(--low-arousal); color: #13253a; }
.zone-hypo { background: var(--hypo); color: white; }

.crisis-note { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 90px; padding: 28px 0; }
.crisis-note { scroll-margin-top: 90px; }
.crisis-note > div { max-width: 820px; }
.crisis-note h2 { font-size: 1.65rem; margin-bottom: 8px; }
.crisis-note p:last-child { margin-bottom: 0; color: var(--muted); }

.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 20; display: flex; gap: 4px; padding: 6px; background: var(--ink); box-shadow: 0 16px 46px rgba(19, 33, 44, 0.22); }
.bottom-nav a { min-width: 112px; min-height: 48px; color: #d8e3eb; display: grid; place-items: center; padding: 8px 14px; text-decoration: none; font-size: 0.88rem; font-weight: 750; }
.bottom-nav a.is-active { background: var(--surface); color: var(--ink); }

dialog { width: min(480px, calc(100% - 32px)); border: 1px solid var(--ink); padding: 28px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(11, 25, 35, 0.56); }
dialog h2 { font-size: 1.8rem; }
dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: white; padding: 11px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

@media (max-width: 820px) {
  main { width: min(100% - 28px, 720px); padding-top: 44px; }
  .checkin-shell { grid-template-columns: 1fr; }
  .about-summary { margin-left: 0; }
  .stepper { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
  .stepper li { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 0.8rem; }
  .stepper span { width: 26px; height: 26px; }
  .activation-grid label > span { min-height: 74px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card:nth-child(even) { border-left: 0; }
  .tool-card:nth-child(n+2) { border-top: 1px solid var(--line); }
  .tool-card span { min-height: 145px; }
  .learn-layout { grid-template-columns: 1fr; gap: 40px; }
  .learn-aside { position: static; }
  .history-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { min-height: 62px; padding: 10px 16px; }
  .privacy-note { display: none; }
  .header-actions { gap: 0; }
  .score-buttons { grid-template-columns: repeat(6, minmax(44px, 1fr)); overflow: visible; }
  main { width: min(100% - 24px, 720px); padding-bottom: 120px; }
  .intro h1, .page-heading h1 { font-size: 2.8rem; }
  .activation-grid label > span { grid-template-columns: 1fr; gap: 3px; padding: 13px 16px; }
  .tool-card span { padding: 18px; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .practice { padding: 24px; }
  .breath-visual { position: static; margin: 28px auto 0; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .history-entry { padding: 22px 18px; }
  .entry-scores { flex-wrap: wrap; }
  .entry-scores em { width: 100%; margin-left: 0; }
  .history-entry dl div { grid-template-columns: 1fr; gap: 2px; }
  .zone { grid-template-columns: 1fr; gap: 4px; }
  .bottom-nav { width: calc(100% - 24px); bottom: 12px; }
  .bottom-nav a { min-width: 0; flex: 1; }
  .dialog-actions { flex-direction: column; }
}

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

@media (prefers-contrast: more) {
  :root { --line: #61717e; --muted: #42525f; }
  .button, .chip-grid label span { border-width: 2px; }
}

@media print {
  @page { margin: 0.55in; }
  body { background: white; color: #13212c; }
  body * { visibility: hidden !important; }
  #print-result, #print-result * { visibility: visible !important; }
  #print-result { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; border: 0; padding: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #print-result header { border-bottom-color: #98a7b2; }
  #print-result dl div { border-top-color: #c7d1d8; break-inside: avoid; }
}
