/* base.css (core): design tokens, layout, and the shared component vocabulary.
   Other stylesheets only add area-specific classes (.catalog-*, .take-*, .result-*, .doc-* ...) and reuse these.
   Mobile first, light theme only, calm warm palette taken from the original site. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --bg: #fffaf4;
  --panel: #fff;
  --text: #293241;
  --muted: #5b6773;
  --line: #e7e3db;
  --primary: #ff8a5b;
  --primary-2: #ffd17a;
  --primary-ink: #1f2b2c;
  --accent: #7dd3c7;
  --ok: #1f7a6e;
  --err: #c62828;
  --warn-bg: #fff8ec;
  --risk-bg: #fff1f1;
  --risk-ink: #a4161a;
  --selected-bg: #fff3ea;
  --selected-line: #ff8a5b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 18px rgba(28, 39, 54, 0.05);
  --tap: 44px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;

  /* extras used by base.css only */
  --field-line: #8f8878;     /* borders of inputs and buttons: 3.4:1 on white */
  --control: #d4551d;        /* checkbox / radio accent: 4.1:1 on white */
  --focus: #2457c5;          /* keyboard focus ring: 6.2:1 on the page background */
  --link: var(--ok);
  --link-hover: #145f4c;
  --info-bg: #eef7f6;
  --info-line: #bfe0db;
  --note-bg: #fffaf0;
  --header-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* ---------- reset and typography ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%; /* the root follows the user's default font size; everything below is sized in rem */
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px);
}

/* Views with a sticky bottom bar (the question step) add .has-sticky-bar to <html> while the bar is shown, so
   that focused or scrolled-to elements are kept clear of it: about the bar height plus the home-indicator inset. */
html.has-sticky-bar {
  scroll-padding-bottom: calc(6rem + var(--safe-bottom));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #ffe8d6 0, transparent 25%),
    radial-gradient(circle at 90% 0%, #e0fbfc 0, transparent 22%),
    var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 138, 91, 0.18);
}

body.has-dialog {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.0625rem;
}

h4 {
  font-size: 1rem;
}

p,
ul,
ol,
dl,
pre,
figure,
blockquote {
  margin: 0 0 0.75em;
}

ul,
ol {
  padding-left: 1.4em;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
pre:last-child,
figure:last-child,
blockquote:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

hr {
  margin: 1.2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a,
button,
input,
select,
label,
summary {
  touch-action: manipulation;
}

/* ---------- layout ---------- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  width: calc(100% - 32px);
  width: min(760px, 100% - 32px - var(--safe-left) - var(--safe-right));
  max-width: 760px;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -120px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.skip-link:focus {
  top: calc(8px + var(--safe-top));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.app-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: var(--header-h);
}

/* A short viewport (landscape phone, 400% zoom) cannot spare the height for fixed chrome: the header scrolls away
   with the page, and the scroll padding that kept focused elements clear of it is no longer needed. */
@media (max-height: 600px) {
  html {
    scroll-padding-top: 12px;
  }

  .app-header {
    position: static;
  }
}

.app-brand {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: var(--tap);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.app-brand:hover {
  color: var(--text);
}

.app-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  margin-right: -10px; /* optical alignment: link padding hangs into the gutter */
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.app-nav a:hover {
  color: var(--text);
}

.app-nav a[aria-current="page"] {
  background: var(--selected-bg);
  color: var(--primary-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.app-main {
  flex: 1 0 auto;
  padding-top: 20px;
  padding-bottom: 40px;
}

.view {
  min-width: 0;
  animation: view-in 0.16s ease-out;
}

@keyframes view-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-footer {
  margin-top: 28px;
  padding: 18px 0 calc(22px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.875rem;
}

.app-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.app-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.app-footer__note {
  margin: 0;
}

.page-title {
  margin: 0 0 0.6em;
  font-size: clamp(1.45rem, 1.2rem + 1.4vw, 1.9rem);
  line-height: 1.3;
}

.boot-msg,
.noscript-msg {
  margin: 0;
  padding: 64px 16px;
  text-align: center;
  color: var(--muted);
}

.noscript-msg {
  padding: 16px;
  background: var(--warn-bg);
  color: var(--text);
  font-weight: 600;
}

/* without JavaScript the "loading" placeholder would contradict the <noscript> message */
@media (scripting: none) {
  .boot-msg {
    display: none;
  }
}

.app-boot {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ---------- cards and notices ---------- */
.card {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card--flat {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.notice {
  min-width: 0;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.7;
}

.notice__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.notice--info {
  background: var(--info-bg);
  border-color: var(--info-line);
}

.notice--warn {
  background: var(--warn-bg);
  border-color: #f0d49d;
}

.notice--risk {
  background: var(--risk-bg);
  border: 2px solid var(--err);
  border-radius: var(--radius);
}

.notice--risk .notice__title {
  margin-bottom: 8px;
  font-size: 1.125rem;
  color: var(--risk-ink);
}

/* observer-rated scales ("他评提示"): left colour bar */
.notice--note {
  padding: 10px 14px;
  background: var(--note-bg);
  border-color: var(--line);
  border-left: 4px solid var(--primary-2);
  border-radius: 8px;
}

.notice--disclaimer {
  background: var(--warn-bg);
  border-color: #f0d49d;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 18px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, filter 0.12s ease, transform 0.08s ease;
}

.btn:active {
  transform: translateY(1px);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--selected-bg);
    color: var(--text);
  }
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary-ink);
  box-shadow: 0 6px 14px rgba(255, 138, 91, 0.28);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--primary-ink);
    filter: brightness(1.04);
  }
}

.btn--danger {
  border-color: transparent;
  background: var(--err);
  color: #fff;
}

@media (hover: hover) {
  .btn--danger:hover {
    background: #a81f1f;
    color: #fff;
  }
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

@media (hover: hover) {
  .btn--ghost:hover {
    background: rgba(41, 50, 65, 0.06);
  }
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--small {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
}

@media (pointer: coarse) {
  .btn--small {
    min-height: var(--tap);
  }
}

/* a button that looks like a text link */
.btn--link {
  padding: 0 4px;
  border-color: transparent;
  background: none;
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (hover: hover) {
  .btn--link:hover {
    background: none;
    color: var(--link-hover);
  }
}

/* pointer-events: none also switches the hover styles off for disabled buttons */
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
  filter: none;
  transform: none;
  pointer-events: none;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field__label {
  font-weight: 600;
}

.field__hint {
  color: var(--muted);
  font-size: 0.875rem;
}

.field__error {
  color: var(--err);
  font-size: 0.875rem;
  font-weight: 500;
}

.field__error:empty {
  display: none;
}

.input,
.select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  padding: 9px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background-color: var(--panel);
  color: var(--text);
  font-size: max(16px, 1rem); /* follows the user's font size, but never below 16px: smaller text makes iOS Safari zoom into the field */
  line-height: 1.4;
}

.input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--err);
}

.input[disabled],
.select[disabled] {
  background-color: #f6f2ea;
  color: var(--muted);
}

/* arrow drawn with gradients so no image or data: URL is needed (strict CSP) */
.select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  appearance: none;
}

/* whole-row checkbox: the label is the tap target */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--tap);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  line-height: 1.6;
}

.check > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--control);
}

.check > :not(input) {
  flex: 1 1 auto;
  min-width: 0;
}

.check:has(input:checked) {
  background: var(--selected-bg);
  border-color: var(--selected-line);
}

/* radio group rendered as pills: label.segmented__item > input[type=radio] + span */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented__item {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.segmented__item > input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented__item > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: var(--tap);
  padding: 8px 20px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
  text-align: center;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

/* The selected state must not rest on hue: the orange accent is only 2.3:1 on white. A selected pill gets a dark
   outline (border plus an inset ring = 2px, so the box does not grow), bold text and a check mark. The unselected
   border (--field-line) stays at 3.5:1, the focus ring is drawn below. */
.segmented__item > input:checked + span {
  background: var(--selected-bg);
  border-color: var(--primary-ink);
  box-shadow: inset 0 0 0 1px var(--primary-ink);
  color: var(--primary-ink);
  font-weight: 700;
}

/* The check mark is drawn with borders (no glyph, image or URL, and it survives forced-colors mode). It sits in
   the left padding of the pill, so selecting never changes the pill's width. */
.segmented__item > input:checked + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 6px;
  height: 11px;
  margin-top: -8px;
  border-style: solid;
  border-color: currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.segmented__item > input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.segmented__item > input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- answer options ---------- */
.option-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.option > input[type="radio"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--control);
}

.option > :not(input) {
  flex: 1 1 auto;
  min-width: 0;
}

@media (hover: hover) {
  .option:hover {
    border-color: var(--field-line);
  }
}

/* The two selected-state rules are separate on purpose: a browser without :has() drops only the second one. */
.option--selected {
  background: var(--selected-bg);
  border-color: var(--selected-line);
  box-shadow: 0 0 0 1px var(--selected-line);
}

.option:has(input:checked) {
  background: var(--selected-bg);
  border-color: var(--selected-line);
  box-shadow: 0 0 0 1px var(--selected-line);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* pictures keep their natural size (no flex-grow), only shrink when the row is too narrow */
.option > img {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  height: auto;
}

.option--image {
  align-items: center;
}

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

/* image options in the grid: picture on top, radio underneath */
.option-list--grid .option--image {
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.option-list--grid .option--image > input[type="radio"] {
  margin: 0;
}

/* ---------- progress ---------- */
.progress {
  height: 10px;
  overflow: hidden;
  background: #f0eee8;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(41, 50, 65, 0.06);
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3aaa9a, #5b8def);
  transition: width 0.22s ease;
}

/* ---------- utilities ---------- */
.stack,
.stack-lg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.stack-lg {
  gap: 18px;
}

.stack > *,
.stack-lg > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* lone small buttons keep their size instead of stretching across the column */
.stack > .btn--small,
.stack > .btn--link,
.stack > .btn--ghost,
.stack-lg > .btn--small,
.stack-lg > .btn--link,
.stack-lg > .btn--ghost {
  justify-self: start;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.row > * {
  min-width: 0;
}

.row--between {
  justify-content: space-between;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.preline {
  white-space: pre-line;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1ece2;
  color: #4a5560;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--warn {
  background: #fff1d6;
  border-color: #f0d49d;
  color: #7a4b00;
}

.spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(41, 50, 65, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

.error-card {
  border-left: 4px solid var(--err);
}

.error-card__title {
  margin: 0;
  color: var(--risk-ink);
}

.error-card__message {
  margin: 0;
}

/* ---------- overlays ---------- */
.toast-region {
  position: fixed;
  right: 0;
  bottom: calc(16px + var(--safe-bottom));
  left: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 calc(16px + var(--safe-right)) 0 calc(16px + var(--safe-left));
  pointer-events: none;
}

.toast {
  max-width: min(420px, 100%);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.5;
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in 0.18s ease-out;
}

.toast--success {
  background: #1d6a5f;
}

.toast--warn {
  background: #8a5a00;
}

.toast--error {
  background: #b3261e;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialog-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
  background: rgba(31, 43, 44, 0.5);
  overscroll-behavior: contain;
}

.dialog {
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  max-height: 100%;
  padding: 20px;
  overflow-y: auto;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: view-in 0.14s ease-out;
}

.dialog__title {
  margin: 0;
  font-size: 1.125rem;
}

.dialog__message {
  margin: 0;
  color: var(--text);
}

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

@media (max-width: 480px) {
  .dialog__actions {
    flex-direction: column-reverse;
  }

  .dialog__actions .btn {
    width: 100%;
  }
}

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .card {
    padding: 20px 22px;
  }

  .app-main {
    padding-top: 28px;
  }
}

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Elements that only receive focus from script (main, headings): no ring, but a transparent outline keeps
   them visible in forced-colors mode. They are not in the tab order, so no keyboard indicator is lost. */
[tabindex="-1"]:focus {
  outline: 2px solid transparent;
}

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

@media (forced-colors: active) {
  .option--selected,
  .segmented__item > input:checked + span {
    outline: 2px solid Highlight;
  }

  .option:has(input:checked),
  .check:has(input:checked) {
    outline: 2px solid Highlight;
  }

  .btn--primary {
    border-color: ButtonText;
  }
}

@media print {
  .app-header,
  .app-footer,
  .toast-region,
  .dialog-backdrop,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card,
  .notice {
    box-shadow: none;
  }
}
