/* Production H5 semantic contract. The generated block has one source:
   design-tokens.json. Age changes content and pace, not action or status color. */
/* DESIGN_TOKENS_START: generated from design-tokens.json */
:root {
  --ui-brand: #254E5B;
  --ui-brand-soft: #E7EFF0;
  --ui-child-accent: var(--ui-brand);
  --ui-child-soft: var(--ui-brand-soft);
  --ui-text: #1E272B;
  --ui-text-subtle: #536169;
  --ui-bg: #F4F5F4;
  --ui-surface: #FFFFFF;
  --ui-border: #D8DDDF;
  --ui-warm: #D8D1C7;
  --ui-success: #24634B;
  --ui-success-bg: #E8F2EC;
  --ui-warning: #865A20;
  --ui-warning-bg: #F7F0E6;
  --ui-danger: #A83F45;
  --ui-danger-bg: #F9ECEC;
  --ui-focus: #1F6782;
  --ui-action: var(--ui-brand);
  --ui-action-soft: var(--ui-brand-soft);
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 24px;
  --ui-space-6: 32px;
  --ui-space-7: 48px;
  --ui-radius-small: 6px;
  --ui-radius-control: 12px;
  --ui-radius-card: 16px;
  --ui-radius-avatar: 999px;
  --ui-type-meta: 0.75rem;
  --ui-type-support: 0.875rem;
  --ui-type-body: 1rem;
  --ui-type-title: 1.5rem;
  --ui-type-display: 1.75rem;
  --ui-shadow: 0 6px 18px rgba(30, 39, 43, .06);
  --ui-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
/* DESIGN_TOKENS_END */
[data-ui-role="child"] {
  --ui-action: var(--ui-child-accent);
  --ui-action-soft: var(--ui-child-soft);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ui-font); font-size: var(--base-size, 16px); color: var(--ui-text); background: var(--ui-bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
a { color: inherit; }
.card { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-card); box-shadow: var(--ui-shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; border: 0; border-radius: var(--ui-radius-control); min-width: 44px; min-height: 52px; padding: 12px 20px; font-size: 1rem; line-height: 1.5; font-weight: 700; transition: background .2s; }
.btn:hover:not(:disabled) { filter: brightness(.96); }
.btn-primary { background: var(--ui-action); color: #fff; }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ui-action) 88%, #172A30); }
.btn-soft { background: var(--ui-action-soft); color: var(--ui-action); }
.btn-quiet { background: transparent; color: var(--ui-action); }
.btn-danger { background: var(--ui-danger-bg); color: var(--ui-danger); }
.btn-block { width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--ui-radius-small); padding: 6px 10px; background: var(--ui-action-soft); color: var(--ui-action); font-size: .875rem; line-height: 1.5; font-weight: 700; }
.field { display: grid; gap: 8px; color: var(--ui-text); font-weight: 650; }
.input { width: 100%; min-height: 48px; border: 1px solid var(--ui-border); background: var(--ui-surface); border-radius: var(--ui-radius-control); padding: 11px 14px; color: var(--ui-text); }
textarea.input { min-height: 130px; resize: vertical; }
.choice { border: 1px solid var(--ui-border); background: var(--ui-surface); color: var(--ui-text); border-radius: var(--ui-radius-control); padding: 13px 16px; text-align: left; }
.choice[aria-pressed="true"] { border-color: var(--ui-action); background: var(--ui-action-soft); box-shadow: inset 0 0 0 1px var(--ui-action); }
.list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--ui-border); }
.list-row:last-child { border-bottom: 0; }
.hint { font-size: .875rem; color: var(--ui-text-subtle); line-height: 1.5; }

/* Legacy stage artwork remains until each page family is migrated to the
   age-neutral visual system. Remove per-line white tiles during that work. */
.phone-shell .home-screen .stage-hero-copy > span,
.phone-shell .home-screen .stage-hero-copy h1 span,
.phone-shell .home-screen .stage-hero-copy p {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.phone-shell .home-screen .stage-hero-copy > span,
.phone-shell .home-screen .stage-hero-copy p { padding: 0; }
.phone-shell .home-screen .stage-hero-copy h1 {
  line-height: 1.34;
  text-shadow: 0 1px 10px rgba(255,255,255,.96);
}

/* Deep stage workbenches share the app's type scale; stage palettes and
   page-specific information layouts remain independent. */
.phone-shell :is(.cp-screen,.bt-screen,.pg-screen,.hg-screen,.ug-screen,.gr-screen,.ya-screen,.mg-screen,.el-screen) {
  font-family: var(--font-ui);
}
.phone-shell :is(.cp-screen,.bt-screen,.pg-screen,.hg-screen,.ug-screen,.gr-screen,.ya-screen,.mg-screen,.el-screen) h1 {
  font-size: var(--ui-type-title, 1.5rem);
  line-height: 1.34;
  overflow-wrap: anywhere;
}
.phone-shell .el-screen h1 { font-size: var(--ui-type-display, 1.75rem); }

/* A compact visual treatment must not shrink the actual tap target. */
.phone-shell [data-page-id] button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
