/* CareerPass and profile share the existing brand tokens and an app-sized rhythm. */
.youth-page {
    min-height: 100dvh; width: 100%; max-width: 100%; min-width: 0; padding: calc(5.5rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) calc(3rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: radial-gradient(ellipse at 90% 0%, color-mix(in srgb, var(--vibe-mint) 13%, transparent), transparent 36rem), var(--background);
}
.youth-page > div, .youth-page > section { min-width: 0; max-width: min(68rem,100%); margin-inline: auto; animation: youth-arrive .24s ease-out both; }
.youth-intro > div, .youth-pass-identity > div { min-width: 0; max-width: 100%; }
.youth-page h1, .youth-level-title, .youth-section-heading h2 { overflow-wrap: anywhere; }
.youth-page .vibe-card { border: 1px solid var(--border); border-radius: 1.5rem; background: var(--card); box-shadow: 0 4px 18px color-mix(in srgb, var(--foreground) 4%, transparent); }
.youth-page .vibe-row { border-radius: 1.25rem; box-shadow: none; transition: border-color .18s, background .18s, transform .18s; }
.youth-page .vibe-row:hover { border-color: var(--primary); }
.youth-page .vibe-row:active { transform: scale(.99); }
.youth-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.045em; line-height: 1.1; }
.youth-page h2 { line-height: 1.25; letter-spacing: -.025em; }
.youth-page input:not([type="checkbox"]):not([type="radio"]), .youth-page select, .youth-dialog input:not([type="checkbox"]):not([type="radio"]), .youth-dialog select { min-height: 3rem; font-size: 1rem; border-radius: .875rem; min-width: 0; max-width: 100%; }
.youth-page button, .youth-dialog button, .youth-page a[role=button] { min-height: 2.75rem; touch-action: manipulation; }
.youth-page button, .youth-dialog button { white-space: normal; line-height: 1.35; }
.youth-page button:disabled, .youth-dialog button:disabled { cursor: default; }
.youth-back-link { display: flex; align-items: center; gap: .5rem; width: fit-content; max-width: 68rem; min-height: 2.75rem; padding: .5rem .75rem; margin: 0 auto 1.5rem 0; font-weight: 750; font-size: .875rem; color: var(--muted-foreground); border-radius: .875rem; text-decoration: none; }
.youth-back-link:hover { background: var(--secondary); color: var(--foreground); }
.youth-kicker { margin: 0 0 .5rem; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.youth-intro { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.youth-intro h1, .youth-intro p { margin: 0; }
.youth-intro p:not(.youth-kicker) { margin-top: .5rem; color: var(--muted-foreground); }
.youth-intro-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.youth-pass { position: relative; overflow: hidden; display: grid; gap: 1.5rem; padding: 1.5rem; border-radius: 1.75rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: linear-gradient(130deg, color-mix(in srgb, var(--vibe-mint) 15%, var(--card)), var(--card)); margin-bottom: 1.5rem; }
.youth-pass-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.youth-level-token { position: relative; flex-shrink: 0; display: grid; place-content: center; width: 5.5rem; height: 5.5rem; border-radius: 1.75rem; border: 2px solid color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--secondary); box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 15%, var(--secondary)); font-size: 2.6rem; transform: rotate(-5deg); }
.youth-level-title { margin: 0; font: 700 clamp(1.55rem, 3vw, 2rem)/1.2 var(--font-display); letter-spacing: -.04em; }
.youth-level-subtitle { margin: .3rem 0 0; color: var(--muted-foreground); font-size: .875rem; }
.youth-points { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .5rem .75rem; background: var(--secondary); color: var(--foreground); font-weight: 850; font-size: .875rem; font-variant-numeric: tabular-nums; width: fit-content; }
.youth-progress-track { height: .75rem; border-radius: 999px; overflow: hidden; background: var(--secondary); }
.youth-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: youth-fill .65s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.youth-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .65rem 0 0; color: var(--muted-foreground); font-size: .875rem; }
.youth-next-step { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: 1rem; background: color-mix(in srgb, var(--primary) 6%, var(--card)); }
.youth-next-step p { margin: 0; font-size: .875rem; line-height: 1.6; }
.youth-section { margin-top: 2rem; }
.youth-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.youth-section-heading h2 { margin: 0; font: 700 1.35rem/1.3 var(--font-display); }
.youth-section-description { color: var(--muted-foreground); font-size: .875rem; margin: -.5rem 0 1rem; }
.youth-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.youth-path { display: flex; flex-direction: column; gap: .65rem; min-width: 0; padding: 1rem; border: 1px solid color-mix(in srgb, var(--vibe-rail) 40%, var(--border)); border-top: 3px solid var(--vibe-rail); border-radius: 1.25rem; background: color-mix(in srgb, var(--vibe-tint) 16%, var(--card)); text-align: left; color: var(--foreground); cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--vibe-rail) 20%, transparent); transition: border-color .2s, box-shadow .2s, transform .2s; }
.youth-path:hover { border-color: var(--vibe-rail, var(--primary)); box-shadow: 0 4px 0 color-mix(in srgb, var(--vibe-rail, var(--primary)) 30%, transparent); }
.youth-path:active { transform: translateY(2px); box-shadow: none; }
.youth-path-heading { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; max-width: 100%; }
.youth-path-emoji { font-size: 2.6rem; line-height: 1.25; flex-shrink: 0; }
.youth-path-name { min-width: 0; max-width: 100%; font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.youth-path h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.youth-path-description { min-width: 0; overflow-wrap: anywhere; font-size: .8125rem; line-height: 1.5; color: var(--muted-foreground); flex: 1; }
.youth-path-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem; padding-top: .5rem; font-size: .8125rem; font-weight: 800; }
.youth-path-footer > span:last-child { color: color-mix(in srgb, var(--vibe-rail) 65%, var(--foreground)); white-space: nowrap; }
.youth-badges { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.youth-badge { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; min-width: 0; border: 1px dashed var(--border); border-radius: 1.25rem; background: color-mix(in srgb, var(--card) 75%, var(--background)); }
.youth-badge[data-unlocked=true] { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--vibe-mint) 12%, var(--card)); }
.youth-badge-emoji { font-size: 2rem; filter: grayscale(1); opacity: .65; }
.youth-badge[data-unlocked=true] .youth-badge-emoji { filter: none; opacity: 1; }
.youth-badge strong { font-size: .875rem; line-height: 1.4; }
.youth-badge p { margin: 0; font-size: .8125rem; color: var(--muted-foreground); }
.youth-badge small { margin-top: auto; font-weight: 750; color: var(--muted-foreground); }
.youth-capture-action { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.youth-profile-hero { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.youth-avatar { width: 4rem; height: 4rem; border-radius: 1.25rem; display: grid; place-items: center; background: var(--secondary); color: var(--accent); font: 800 1.5rem var(--font-display); border: 2px solid var(--border); }
.youth-profile-hero h1 { margin: 0; font-size: clamp(1.8rem,5vw,2.5rem); overflow-wrap: anywhere; }
.youth-profile-hero p { margin: .5rem 0 0; color: var(--muted-foreground); }
.youth-profile-sections { display: grid; gap: 1.25rem; }
.youth-profile-sections > section { margin: 0; min-width: 0; }
.youth-profile-sections section:first-child { grid-column: 1 / -1; }
.youth-interest-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.youth-interest-chip { display: inline-flex; align-items: center; justify-content: flex-start; gap: .5rem; max-width: 100%; min-height: 3rem; padding: .6rem .9rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--card); color: var(--foreground); cursor: pointer; font-size: .875rem; font-weight: 750; text-align: left; line-height: 1.4; transition: background .18s, border-color .18s, transform .18s; }
.youth-interest-chip[aria-pressed=true] { background: var(--secondary); border-color: var(--accent); color: var(--foreground); }
.youth-interest-chip:disabled:not([aria-pressed=true]) { opacity: .5; cursor: default; }
.youth-interest-chip:active:not(:disabled) { transform: scale(.96); }
.youth-interest-chip > span:first-child { font-size: 1.2rem; }
.youth-section-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.youth-section-label h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.youth-section-label > span { font-size: .8125rem; font-weight: 800; color: var(--muted-foreground); }
.youth-hint { margin: .5rem 0; font-size: .8125rem; color: var(--muted-foreground); line-height: 1.6; }
.youth-rating-question { border: 0; padding: 0; margin: 0; min-width: 0; }
.youth-rating-question legend { font-weight: 800; margin-bottom: .75rem; font-size: 1rem; }
.youth-rating-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; }
.youth-rating-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; border: 1.5px solid var(--border); border-radius: 1rem; background: var(--card); color: var(--foreground); font-size: .8125rem; font-weight: 750; min-height: 6rem; padding: .75rem .35rem; cursor: pointer; text-align: center; line-height: 1.4; transition: background .18s, border-color .18s, transform .18s; }
.youth-rating-option[aria-pressed=true] { background: var(--secondary); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.youth-rating-option:active:not(:disabled) { transform: scale(.96); }
.youth-rating-emoji { font-size: 1.8rem; }
.youth-selected-dot { position: absolute; right: .35rem; top: .25rem; color: var(--accent); font-weight: 900; }
.youth-note { display: grid; gap: .5rem; padding: 1rem; background: var(--secondary); border-radius: 1rem; font-size: .875rem; line-height: 1.6; }
.youth-privacy { display: flex; align-items: flex-start; background: var(--muted); color: var(--muted-foreground); font-size: .8125rem; }
.youth-privacy svg { margin-top: .2rem; }
.youth-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.youth-inline-feedback { margin: 0; padding: .75rem; border-radius: .75rem; background: var(--secondary); font-size: .875rem; font-weight: 750; animation: youth-arrive .2s ease-out both; }
.youth-dialog { min-width: 0; max-width: calc(100vw - 1rem); transition-property: opacity, transform; border-radius: 1.75rem !important; border: 1px solid var(--border); padding: 1.5rem !important; background: var(--card) !important; }
.youth-dialog h2 { padding-right: 1.5rem; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.025em; }
.youth-dialog .careerpass-dialog-body { padding-block: .5rem; padding-right: .25rem; }
.youth-dialog .careerpass-dialog-footer { background: var(--card); padding-top: 1rem; gap: .75rem; }
.careerpass-stable-dialog.youth-dialog { width: min(34rem,calc(100vw - 1rem)); height: auto; grid-template-rows: auto minmax(0,1fr) auto; max-height: calc(100dvh - 1rem); }
.careerpass-compact-dialog.youth-dialog { height: auto; min-height: 0; max-height: calc(100dvh - 1rem); overflow-y: auto; }
.youth-dialog .careerpass-dialog-footer > :last-child { margin-left: 0; }
.youth-dialog .careerpass-dialog-footer > * { flex: 1 1 auto; }
.youth-dialog .careerpass-dialog-footer button { min-height: 3rem; white-space: normal; }
.youth-step { animation: youth-arrive .2s ease-out both; }
.youth-step-label { margin: 0 0 .5rem; font-size: .75rem; font-weight: 800; color: var(--muted-foreground); }
.youth-celebration { position: fixed; align-items: center; text-align: center; overflow: hidden; padding-top: 2rem !important; }
.youth-celebration h2 { margin: 0; padding: 0; font: 800 1.8rem var(--font-display); }
.youth-celebration p { margin: .5rem 0 1rem; color: var(--muted-foreground); font-size: 1rem; }
.youth-reward-symbol { font-size: 4rem; line-height: 1.4; animation: youth-reward-pop .55s cubic-bezier(.2,.9,.3,1.2) both; }
.youth-reward-burst { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.youth-reward-burst span { position: absolute; left: 48%; top: 22%; font-size: 1.4rem; opacity: 0; animation: youth-confetti .85s ease-out .15s both; --dx: -7rem; --dy: -1rem; }
.youth-reward-burst span:nth-child(2) { --dx: 6rem; --dy: -2rem; }
.youth-reward-burst span:nth-child(3) { --dx: -5rem; --dy: 5rem; }
.youth-reward-burst span:nth-child(4) { --dx: 7rem; --dy: 4rem; }
.youth-reward-burst span:nth-child(5) { --dx: 0rem; --dy: -4rem; }
.youth-celebration .careerpass-dialog-footer { width: 100%; z-index: 1; }
@keyframes youth-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes youth-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes youth-reward-pop { 0% { transform: scale(.5) rotate(-12deg); opacity: 0; } 65% { transform: scale(1.12) rotate(6deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes youth-confetti { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(45deg); } }
@media (min-width: 768px) {
    .youth-page { padding-inline: 2rem; padding-top: 6.5rem; }
    .youth-pass { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 2rem; }
    .youth-pass .youth-next-step { grid-column: 1 / -1; }
    .youth-paths { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .youth-badges { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .youth-profile-sections { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .youth-profile-sections > section:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .youth-paths { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 640px) { .youth-path-heading { flex-direction: row; align-items: center; gap: .65rem; } }
@media (max-width: 420px) {
    .youth-dialog { padding: 1rem !important; border-radius: 1.5rem !important; }
    .youth-pass { padding: 1.25rem; }
    .youth-save-button { width: 100%; }
    .youth-path { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .youth-page *, .youth-page > div, .youth-page > section, .youth-dialog, .youth-dialog *, .youth-step, .youth-inline-feedback { animation: none !important; transition: none !important; }
    .youth-reward-burst { display: none; }
}

.youth-badge[data-unlocked=true] .youth-badge-emoji { animation: youth-reward-pop .45s ease-out both; }
.youth-dialog button:focus-visible, .youth-page button:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .youth-badge[data-unlocked=true] .youth-badge-emoji { animation: none; } }

.youth-reflection .youth-interest-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.youth-reflection .youth-interest-chip { position: relative; border-radius: 1rem; padding: .7rem .6rem; font-size: .8125rem; }
.youth-reflection .youth-interest-chip > svg { position: absolute; right: .25rem; top: .25rem; width: .75rem; height: .75rem; }
@media (min-width: 640px) { .youth-reflection .youth-interest-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }

.youth-dialog [data-slot="input-group"], .youth-page [data-slot="input-group"] { min-height: 3rem; height: auto; border-radius: .875rem; }
.youth-dialog .youth-school-option { background: var(--card); color: var(--foreground); border-color: var(--border); }
.youth-dialog .youth-school-option:hover, .youth-dialog .youth-school-option[aria-pressed=true] { background: var(--secondary); border-color: var(--accent); }
.youth-page #careerpass-evidence-heading { font-size: 1.35rem; font-weight: 700; }

.youth-page a.inline-flex, .youth-dialog a.inline-flex { min-height: 3rem; white-space: normal; line-height: 1.35; touch-action: manipulation; }

/* The type tokens and native emoji stay the same in every CareerPass view. */
.youth-category-label { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; max-width: 100%; font-weight: 800; color: var(--foreground); text-align: left; }
.youth-category-emoji { display: inline-grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .75rem; border: 1px solid color-mix(in srgb, var(--vibe-rail) 45%, var(--border)); background: color-mix(in srgb, var(--vibe-tint) 18%, var(--card)); font-size: 1.6rem; line-height: 1; }
.youth-category-name { min-width: 0; overflow-wrap: anywhere; color: color-mix(in srgb, var(--vibe-rail) 65%, var(--foreground)); }
.youth-page .youth-category-text, .youth-dialog .youth-category-text { color: color-mix(in srgb, var(--vibe-rail) 65%, var(--foreground)); }
.youth-evidence-emoji { font-size: 1.55rem; line-height: 1; }
.youth-capture-category { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-width: 0; padding: .5rem .75rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--vibe-rail) 40%, var(--border)); background: color-mix(in srgb, var(--vibe-tint) 12%, var(--card)); }
.youth-capture-category > button { flex-shrink: 0; }
.youth-page .vibe-card[class*="vibe-card--"], .youth-page .vibe-row[class*="vibe-card--"] { background: linear-gradient(145deg, color-mix(in srgb, var(--vibe-tint) 13%, var(--card)), var(--card) 70%); border-color: color-mix(in srgb, var(--vibe-rail) 35%, var(--border)); border-left: 4px solid var(--vibe-rail); }
.youth-dialog .youth-type-choice { height: auto; min-width: 0; padding: .6rem .75rem; border-color: color-mix(in srgb, var(--vibe-rail) 40%, var(--border)); background: color-mix(in srgb, var(--vibe-tint) 8%, var(--card)); }
.youth-dialog .youth-type-choice[aria-pressed=true] { background: color-mix(in srgb, var(--vibe-tint) 22%, var(--card)); border-color: var(--vibe-rail); box-shadow: inset 0 0 0 1px var(--vibe-rail); }
.careerpass-capture-dialog .youth-qr-stage { min-height: 13rem; width: 100%; min-width: 0; padding: 1rem; }
.youth-qr-empty { display: grid; place-items: center; gap: .5rem; width: 100%; max-width: 19rem; padding: 1rem .5rem; text-align: center; }
.youth-qr-empty > span { font-size: 2.7rem; line-height: 1.25; }
.youth-qr-empty p { margin: 0; font-weight: 800; line-height: 1.5; }
.youth-qr-empty small { color: var(--muted-foreground); font-size: .8125rem; line-height: 1.5; }
.youth-dialog .careerpass-dialog-footer > button, .youth-dialog .careerpass-dialog-footer > a { justify-content: center !important; text-align: center !important; }
