/* Existing WordNap tokens and surfaces; no new theme. */
.product-sheet { max-height: calc(var(--app-h, 100dvh) - 32px); overflow-y: auto; overscroll-behavior: contain; width: min(100%, 560px); display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(24px + var(--safe-bottom)); }
.product-sheet h2,.product-sheet h3 { margin: 4px 0; line-height: 1.4; }
.product-sheet p { margin: 0; line-height: 1.65; color: var(--text-secondary); overflow-wrap: anywhere; }
.product-sheet .btn { min-height: 44px; height: auto; max-height: none; white-space: normal; line-height: 1.5; }
.product-sheet textarea,.product-sheet input { width: 100%; min-height: 44px; color: var(--text-primary); }
.product-sheet .product-close { order: -1; align-self: flex-end; width: auto; }
.product-file { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; height: auto; padding: 10px 18px; text-align: center; cursor: pointer; box-sizing: border-box; }
/* Visually hidden but focusable and natively activatable (not display:none). */
.product-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.product-file:focus-within { outline: 3px solid var(--fill-accent, #E86B4A); outline-offset: 2px; }
.product-home-controls { display: flex; flex-wrap: wrap; gap: 6px 12px; flex: 0 0 auto; }
.product-home-controls button { min-height: 44px; height: auto; max-height: none; font-size: 13px; color: var(--text-primary); white-space: normal; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface); padding: 8px 10px; }
.product-warning { color: var(--text-primary) !important; padding: 12px; background: var(--bg-soft); border-radius: 12px; }
.product-audio-state { margin: 4px 12px; padding: 8px 12px; border: 1px solid var(--border-default); background: var(--bg-soft); color: var(--text-primary); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
.product-audio-state span { flex: 1 1 160px; line-height: 1.5; }
.product-audio-state .btn { width: auto; min-height: 44px; font-size: 14px; padding: 6px 10px; }
.product-save-warning { position: absolute; z-index: 40; top: 0; left: 4px; right: 4px; min-height: 44px; padding: 8px; background: var(--bg-soft); color: var(--text-primary); border: 2px solid var(--fill-accent); border-radius: 12px; white-space: normal; }
:is(.seat,.cat-card):focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
@media (max-width: 350px) { .product-home-controls { gap: 4px; } .product-home-controls button { flex: 1 1 110px; } }
#screen-home #product-home-controls { width: 100%; justify-content: center; }
#screen-home #product-home-controls .btn { flex: 1 1 120px; width: auto; min-width: 0; max-width: 100%; height: auto; min-height: 44px; max-height: none; padding: 8px 10px; font-size: 13px; line-height: 1.5; border-radius: 12px; letter-spacing: 0; }

/* Typography and onboarding cards (t282u). */
.brand, .onboard-hero .brand, #screen-home .brand { font-family: var(--font-brand); }
.ipa, .phonics-ipa, .phonics-ipa-opt { font-family: var(--font-ipa); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
#screen-onboard .onboard-body > * { flex-shrink: 0; }
#screen-onboard .onboard-hero { max-height: none; aspect-ratio: auto; }
#screen-onboard .path-card { display: block; width: 100%; height: auto; min-height: 95px; padding: 20px 21px; text-align: left; overflow-wrap: anywhere; }
#screen-onboard .path-card h3 { font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; color: var(--text-primary); margin: 0; }
#screen-onboard .path-card p { font-family: var(--font); font-weight: 400; font-size: 13px; line-height: 18px; color: var(--text-secondary); margin: 8px 0 0; }
#screen-onboard .onboard-note { overflow-wrap: anywhere; }

/* QA round (dpl_7CLc…): picture-first selection, onboarding titles, recap spacing, text zoom. */
#screen-round .seat.seat-picked { outline: 4px solid #E86B4A; outline-offset: -4px; }
#screen-round .seat:focus-visible, #screen-round .cat-card:focus-visible { outline: 3px solid #E86B4A; outline-offset: 2px; }
#screen-onboard:not(.onboard-welcome) .topbar { height: auto; min-height: 44px; grid-template-columns: 44px minmax(0, 1fr) 114px; }
#screen-onboard:not(.onboard-welcome) .topbar .round-title { padding-right: 0; min-width: 0; align-items: flex-start; }
#screen-onboard:not(.onboard-welcome) #onboard-title,
#screen-onboard:not(.onboard-welcome) .topbar .round-title .name,
#screen-onboard:not(.onboard-welcome) .topbar .round-title .meta { max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
@media not all and (min-width: 744px) and (min-height: 600px) and (orientation: landscape) {
  #screen-recap .recap-actions { margin-top: 16px; }
  #screen-recap .quilt { margin-bottom: 0; }
}
#screen-recap .recap-kicker { height: auto; min-height: 14px; }
#screen-recap .recap-title, #screen-recap .recap-sub, .home-actions .btn, #product-home-controls .btn { height: auto; overflow-wrap: anywhere; }

/* QA round 3: no layout jumps on the board, immediate hint glow, menu safe area at large text. */
.product-audio-state.product-audio-float { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 520px); margin: 0; box-sizing: border-box; background: #FFF1DC; box-shadow: 0 6px 18px rgba(43, 36, 28, 0.16); }
#screen-round .prompt { min-height: calc(2.8em + 16px); }
#screen-round .seat.pulse { animation: hintGlowNow 0.9s ease-in-out 3; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(232, 184, 74, 0.45), 0 0 12px rgba(232, 184, 74, 0.6); }
@keyframes hintGlowNow {
  0%, 100% { box-shadow: 0 0 0 5px rgba(232, 184, 74, 0.45), 0 0 12px rgba(232, 184, 74, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(232, 184, 74, 0.6), 0 0 18px rgba(232, 184, 74, 0.7); }
}
@media (prefers-reduced-motion: reduce) { #screen-round .seat.pulse { animation: none; } }
#overlay-menu.overlay { padding-top: calc(env(safe-area-inset-top, 0px) + 24px); box-sizing: border-box; }
#overlay-menu .sheet { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
