@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
    --bg-main: #F3F1EA;
    --bg-card: #FFFFFF;
    --bg-map: #EFEDE6;
    --bg-row: #E8E6DE;
    --text-main: #111111;
    --text-muted: #555550;
    --lime: #D1FF00;
    --lime-text: #4A5C00;
    --cite: #2B66FF;
    --cta-bg: #111111;
    --cta-fg: #FFFFFF;
    --map-active-bg: #111111;
    --map-active-fg: #FFFFFF;
    --note-bg: #D1FF00;
    --note-fg: #111111;
    --seg-track: #E8E6DE;
    --border: rgba(17, 17, 17, 0.08);
    --hatch: rgba(17, 17, 17, 0.04);
    --referral: #9A5B12;
    --shadow-sm: 0 8px 24px rgb(17 17 17 / 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius-panel: 32px;
    --radius-row: 20px;
    --radius-pill: 100px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-bounce: cubic-bezier(0.22, 1.2, 0.36, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-ui: ease;
    --focus-ring: var(--lime-text);
    --page-pad: 60px;
    --max: 1400px;
    --digit-dur: 500ms;
    --digit-distance: 8px;
    --digit-stagger: 70ms;
    --digit-blur: 2px;
    --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
    --digit-dir-x: 0;
    --digit-dir-y: 1;
    --reel-dur: 900ms;
    --reel-cell: 50px;
    --reel-stagger: 90ms;
    --reel-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --stagger-dur: 500ms;
    --stagger-distance: 12px;
    --stagger-stagger: 40ms;
    --stagger-blur: 3px;
    --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --icon-swap-dur: 250ms;
    --icon-swap-blur: 2px;
    --icon-swap-start-scale: 0.25;
    --icon-swap-ease: ease-in-out;
    --check-opacity-dur: 500ms;
    --check-rotate-dur: 500ms;
    --check-rotate-from: 80deg;
    --check-bob-dur: 450ms;
    --check-y-amount: 6px;
    --check-blur-dur: 500ms;
    --check-blur-from: 10px;
    --check-path-dur: 350ms;
    --check-path-delay: 80ms;
    --check-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --check-ease-opacity: cubic-bezier(0.22, 1, 0.36, 1);
    --check-ease-rotate: cubic-bezier(0.22, 1, 0.36, 1);
    --check-ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1);
    --check-ease-path: cubic-bezier(0.22, 1, 0.36, 1);
    --check-box: 150ms;
    --check-draw: 350ms;
    --check-len: 16;
}

[data-theme="dark"] {
    --bg-main: #111111;
    --bg-card: #1A1A1A;
    --bg-map: #121212;
    --bg-row: #222222;
    --text-main: #FFFFFF;
    --text-muted: #999999;
    --lime-text: #D1FF00;
    --cta-bg: #FFFFFF;
    --cta-fg: #111111;
    --map-active-bg: #FFFFFF;
    --map-active-fg: #111111;
    --seg-track: #121212;
    --focus-ring: var(--lime);
    --border: rgba(255, 255, 255, 0.05);
    --hatch: rgba(255, 255, 255, 0.05);
    --shadow-sm: none;
}

html {
    transition: background-color 240ms ease, color 240ms ease;
}
body, .header-bar, .step-card, .map-card, .plan-rail-row, .site-foot, .civic-trigger, .seg-track {
    transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

@media (prefers-reduced-motion: reduce) {
    html, body, .header-bar, .step-card, .map-card, .plan-rail-row, .site-foot, .civic-trigger, .seg-track {
        transition: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-map);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: var(--bg-map);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: var(--bg-row);
    border-radius: 8px;
}

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

.hidden { display: none !important; }

.skip-link {
    position: absolute;
    left: 16px;
    top: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--cta-bg);
    color: var(--cta-fg);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
}
.skip-link:focus {
    transform: none;
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.app-view.hidden {
    display: none !important;
    visibility: hidden;
}

button, select, input {
    font-family: inherit;
}

a { color: inherit; }

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px var(--page-pad);
    max-width: var(--max);
    margin: 0 auto;
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--bg-main);
    z-index: -1;
    pointer-events: none;
}
.header-bar--scrolled {
    box-shadow: 0 1px 0 var(--border);
}

.logo {
    text-decoration: none;
    color: var(--text-main);
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 44px;
    min-width: 0;
}
.logo-title {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.72px;
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-map);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:active { transform: scale(0.97); }
.icon-btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.seg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.seg-track {
    position: relative;
    display: flex;
    padding: 6px;
    background: var(--seg-track);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.seg-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 24px;
    min-height: 36px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.seg-btn.is-on {
    background: var(--cta-bg);
    color: var(--cta-fg);
}
.seg-thumb {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    width: 0;
    background: var(--cta-bg);
    border-radius: var(--radius-pill);
    pointer-events: none;
    z-index: 0;
    transition: width 280ms var(--ease-bounce), transform 280ms var(--ease-bounce);
}

#view-app {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px var(--page-pad) 64px;
}

.guide-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 32px;
}
.guide-kicker {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--lime-text);
}
.guide-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
    max-width: 14ch;
}
.guide-limits {
    margin: 16px 0 0;
    max-width: 52ch;
    color: var(--text-muted);
    font-size: 15px;
}
.guide-progress {
    text-align: right;
    flex-shrink: 0;
    padding-bottom: 8px;
}
.guide-progress-num {
    margin: 0;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    min-height: var(--reel-cell);
}
.guide-progress-num .t-digit-group,
.guide-progress-num .t-reel {
    display: inline-flex;
    align-items: baseline;
    height: var(--reel-cell);
}
.guide-progress-num .t-digit {
    display: inline-block;
}
.guide-progress-num.is-animating .t-digit {
    animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}
.guide-progress-num.is-animating .t-digit[data-stagger="1"] {
    animation-delay: var(--digit-stagger);
}
.guide-progress-num.is-animating .t-digit[data-stagger="2"] {
    animation-delay: calc(var(--digit-stagger) * 2);
}
@keyframes t-digit-pop-in {
    0% {
        transform: translate(
            calc(var(--digit-distance) * var(--digit-dir-x)),
            calc(var(--digit-distance) * var(--digit-dir-y))
        );
        opacity: 0;
        filter: blur(var(--digit-blur));
    }
    100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-reel-col {
    position: relative;
    height: var(--reel-cell);
    overflow: hidden;
    min-width: 0.62em;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.t-reel-strip {
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.t-reel-digit {
    height: var(--reel-cell);
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-progress-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.plan-updated-note {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}
.profile-field {
    position: relative;
}
.profile-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.profile-field::after {
    content: '';
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    background: currentColor;
    color: var(--text-muted);
    clip-path: polygon(50% 75%, 0 20%, 100% 20%);
    transition: transform 180ms var(--ease-out);
}
.profile-field.is-open::after {
    transform: rotate(180deg);
}
.civic-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.civic-trigger {
    width: 100%;
    min-height: 44px;
    border-radius: var(--radius-row);
    border: 1px solid var(--border);
    background: var(--bg-row);
    color: var(--text-main);
    padding: 0 44px 0 16px;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.civic-trigger:focus {
    outline: none;
}
.civic-trigger:focus-visible,
.civic-trigger[aria-expanded="true"] {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}
.civic-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-row);
    box-shadow: var(--shadow-sm);
}
.civic-option {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
}
.civic-option:hover {
    background: var(--bg-row);
}
.civic-option:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}
.civic-option.is-on,
.civic-option.is-on:hover,
.civic-option.is-on:focus {
    background: var(--cta-bg);
    color: var(--cta-fg);
}
.profile-field.is-open {
    z-index: 20;
}
.profile-field.is-pulse .civic-trigger {
    animation: limeRing 180ms var(--ease-out);
}
@keyframes limeRing {
    from { box-shadow: 0 0 0 0 var(--lime); }
    to { box-shadow: 0 0 0 10px transparent; }
}

.studio {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.step-card {
    position: relative;
    isolation: isolate;
    background: var(--bg-card);
    border-radius: var(--radius-panel);
    min-height: 640px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(200px, 28%);
    pointer-events: none;
    background: repeating-linear-gradient(
        -16deg,
        transparent 0 8px,
        var(--hatch) 8px 10px
    );
}
.step-card-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 40px;
    min-height: 0;
}
.step-card-inner.is-from-next,
.plan-doc.is-from-next {
    animation: stepFromNext 240ms var(--ease-out);
}
.step-card-inner.is-from-prev,
.plan-doc.is-from-prev {
    animation: stepFromPrev 240ms var(--ease-out);
}
.plan-doc.is-exit-next,
.plan-doc.is-exit-prev {
    position: absolute;
    inset: 40px;
    z-index: 0;
    pointer-events: none;
}
.plan-doc.is-exit-next {
    animation: stepFromPrev 240ms var(--ease-out) reverse forwards;
}
.plan-doc.is-exit-prev {
    animation: stepFromNext 240ms var(--ease-out) reverse forwards;
}
@keyframes stepFromNext {
    from { opacity: 0; transform: translateX(12%); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes stepFromPrev {
    from { opacity: 0; transform: translateX(-12%); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
.plan-doc .t-stagger-line {
    opacity: 0;
    transform: translateY(var(--stagger-distance));
    filter: blur(var(--stagger-blur));
    transition:
        opacity var(--stagger-dur) var(--stagger-ease),
        transform var(--stagger-dur) var(--stagger-ease),
        filter var(--stagger-dur) var(--stagger-ease);
}
.plan-doc .t-stagger-line--2 { transition-delay: var(--stagger-stagger); }
.plan-doc .t-stagger-line--3 { transition-delay: calc(var(--stagger-stagger) * 2); }
.plan-doc .t-stagger-line--4 { transition-delay: calc(var(--stagger-stagger) * 3); }
.plan-doc .t-stagger-line--5 { transition-delay: calc(var(--stagger-stagger) * 4); }
.plan-doc.is-shown .t-stagger-line {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.plan-doc-head {
    margin: 0 0 8px;
}
.plan-doc-kicker,
.map-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.plan-doc-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.plan-doc-status-line {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.plan-doc-body {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.plan-doc-lead {
    margin: 0 0 8px;
    max-width: 62ch;
}
.plan-quote {
    margin: 20px 0 0;
    padding: 0 0 0 20px;
    border-left: 4px solid var(--cite);
    font-style: italic;
    color: var(--text-main);
}
.plan-doc-section {
    margin-top: 28px;
}
.plan-doc-h {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.plan-steps, .requirements-list ul {
    margin: 0;
    padding-left: 1.2em;
    color: var(--text-muted);
    font-size: 15px;
}
.plan-steps li { margin-bottom: 8px; }
.requirements-list { color: var(--text-muted); font-size: 15px; }
.plan-doc-strong { font-weight: 600; color: var(--text-main); margin: 12px 0 6px; }

.official-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 56px;
    padding: 0 32px;
    background: var(--cta-bg);
    color: var(--cta-fg);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}
.official-cta:active { transform: scale(0.97); }
.official-cta:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.portal-hops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plan-doc-act {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.plan-doc-hops.is-under-cta {
    width: 100%;
    margin: 0;
    padding: 4px 0 0 20px;
    border-left: 2px solid var(--border);
}
.plan-doc-hops.is-under-cta .portal-hops {
    gap: 0;
}
.portal-hop {
    margin: 0;
    padding: 16px 20px;
    border-radius: var(--radius-row);
    background: var(--bg-row);
}
.portal-hop:first-child { margin-top: 0; }
.plan-doc-hops.is-under-cta .portal-hop.is-cta-follow {
    margin: 0;
    padding: 4px 0 8px;
    background: transparent;
    border-radius: 0;
}
.plan-doc-hops.is-under-cta .portal-hop.is-session-follow {
    margin-top: 12px;
    padding: 12px 0 4px;
    background: transparent;
}
.hop-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.hop-header {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}
.hop-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}
.plan-doc-hops.is-under-cta .hop-badge {
    background: var(--bg-row);
}
.hop-continue,
.hop-open-btn {
    grid-column: 2;
    grid-row: 1;
}
.hop-continue {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-main);
}
.hop-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
}
.hop-open-btn:hover { color: var(--lime-text); }
.hop-continue {
    margin: 0;
    font-weight: 600;
    color: var(--text-main);
}
.hop-checked {
    grid-column: 2;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}
.hop-spanish { font-style: italic; }
.hop-clicks-list {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 0 40px;
    padding-left: 1.25em;
    padding-inline-start: 1.25em;
}
.hop-clicks-list li {
    margin-bottom: 6px;
}

.depends-on-note {
    margin: 0 0 16px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.depends-on-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--lime-text);
}
.referral-tag { color: var(--referral); }
.plan-doc-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.plan-doc-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    grid-column: 1;
    grid-row: 1;
}
.plan-doc-verified svg { flex-shrink: 0; }
.source-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.source-links .plan-doc-h { margin: 0; }
.source-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.source-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-row);
    color: var(--text-main);
    font-size: 13px;
    text-decoration: none;
}
.source-link:hover { color: var(--lime-text); }

.action-btn {
    margin: 0;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.action-btn:active { transform: scale(0.96); }
.action-mark {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    flex-shrink: 0;
}
.action-ico {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(var(--icon-swap-start-scale));
    filter: blur(var(--icon-swap-blur));
    pointer-events: none;
    transition:
        opacity var(--icon-swap-dur) var(--icon-swap-ease),
        filter var(--icon-swap-dur) var(--icon-swap-ease),
        transform var(--icon-swap-dur) var(--icon-swap-ease);
}
.action-btn[data-mark="idle"] .action-ico-idle,
.action-btn[data-mark="spin"] .action-ico-spin,
.action-btn[data-mark="done"] .action-ico-complete,
.action-btn[data-mark="undo"] .action-ico-undo {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
.action-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--lime-text);
    border-radius: 50%;
    animation: actionSpin 480ms linear infinite;
}
@keyframes actionSpin {
    to { transform: rotate(360deg); }
}
.action-check-svg {
    width: 22px;
    height: 22px;
    overflow: visible;
    display: block;
}
.action-check-box {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: fill var(--check-box) var(--check-ease-out), stroke var(--check-box) var(--check-ease-out);
}
.action-btn[data-mark="done"] .action-check-box {
    fill: var(--lime);
    stroke: var(--lime);
}
.action-check-tick {
    fill: none;
    stroke: #111111;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: var(--check-len);
    stroke-dashoffset: 0;
}
.t-success-check.is-live[data-state="out"] .action-check-tick,
.t-success-check.is-live[data-state="in"] .action-check-tick {
    stroke-dashoffset: var(--check-len);
}
.t-success-check.is-live[data-state="in"] .action-check-svg {
    animation:
        t-check-fade var(--check-opacity-dur) var(--check-ease-opacity) both,
        t-check-rotate var(--check-rotate-dur) var(--check-ease-rotate) both,
        t-check-blur var(--check-blur-dur) var(--check-ease-out) both,
        t-check-bob var(--check-bob-dur) var(--check-ease-bob) both;
}
.t-success-check.is-live[data-state="in"] .action-check-tick {
    animation: t-check-draw var(--check-path-dur) var(--check-ease-path) var(--check-path-delay) forwards;
}
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate {
    from { transform: rotate(var(--check-rotate-from)) scale(1); }
    to { transform: rotate(0deg) scale(1); }
}
@keyframes t-check-blur {
    from { filter: blur(var(--check-blur-from)); }
    to { filter: blur(0); }
}
@keyframes t-check-bob {
    from { translate: 0 var(--check-y-amount); }
    to { translate: 0 0; }
}
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }
@keyframes completePress {
    0% { transform: scale(0.94); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

.export-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 20px 20px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-row);
    background: var(--bg-row);
}
.export-bar-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--lime-text);
}
.export-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--text-main) 28%, transparent);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
}
.logo:focus-visible,
.seg-btn:focus-visible,
.ghost-btn:focus-visible,
.plan-rail-row:focus-visible,
.plan-rail:focus-visible,
.action-btn:focus-visible,
.hop-open-btn:focus-visible,
.source-link:focus-visible,
.site-foot-link:focus-visible,
.site-foot a:focus-visible,
.secondary-btn:focus-visible,
.plan-doc-title:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}
.ghost-btn:disabled:focus-visible {
    outline-color: var(--text-muted);
}
.ghost-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ghost-btn:active:not(:disabled) { transform: scale(0.96); }
.ghost-btn.is-copied .ghost-label {
    animation: labelSwap 220ms var(--ease-out);
}
.ghost-btn.is-icon-spin svg {
    animation: iconQuarter 180ms var(--ease-out);
}
@keyframes labelSwap {
    from { filter: blur(8px); opacity: 0.4; transform: translateY(4px); }
    to { filter: none; opacity: 1; transform: none; }
}
@keyframes iconQuarter {
    50% { transform: rotate(90deg); }
}

.map-card {
    background: var(--bg-map);
    border-radius: var(--radius-panel);
    padding: 30px;
    min-height: 0;
    max-height: calc(100vh - 96px);
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.plan-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.plan-rail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    min-height: 103px;
    border: 0;
    border-radius: var(--radius-row);
    background: var(--bg-row);
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}
.plan-rail-row.is-active {
    background: var(--map-active-bg);
    color: var(--map-active-fg);
}
.plan-rail-row.is-active.is-jump {
    animation: rowJump 180ms var(--ease-out);
}
@keyframes rowJump {
    50% { transform: scale(1.02); }
}
.plan-rail-row.is-flash {
    animation: rowFlash 200ms var(--ease-out);
}
@keyframes rowFlash {
    0% { box-shadow: 0 0 0 0 var(--lime); }
    100% { box-shadow: 0 0 0 8px transparent; }
}
.plan-rail-num {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.64px;
    font-variant-numeric: tabular-nums;
    width: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.plan-rail-done-mark {
    display: none;
    align-items: center;
}
.plan-rail-row.is-done .plan-rail-index { display: none; }
.plan-rail-row.is-done .plan-rail-done-mark { display: inline-flex; }
.plan-rail-body { flex: 1; min-width: 0; }
.plan-rail-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}
.plan-rail-status {
    display: block;
    font-size: 14px;
    margin-top: 4px;
    color: var(--text-muted);
}
.plan-rail-row.is-active .plan-rail-status {
    color: var(--map-active-fg);
}
.plan-rail-icon {
    width: 48px;
    height: 48px;
    border: 1px solid currentColor;
    border-radius: 24px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}
.plan-rail-row:active { transform: scale(0.97); }
.rail-ico {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(var(--icon-swap-start-scale));
    filter: blur(var(--icon-swap-blur));
    pointer-events: none;
    transition:
        opacity var(--icon-swap-dur) var(--icon-swap-ease),
        filter var(--icon-swap-dur) var(--icon-swap-ease),
        transform var(--icon-swap-dur) var(--icon-swap-ease);
}
.plan-rail-icon[data-state="ready"] .rail-ico-ready,
.plan-rail-icon[data-state="lock"] .rail-ico-lock,
.plan-rail-icon[data-state="done"] .rail-ico-done {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.plan-note {
    background: var(--note-bg);
    color: var(--note-fg);
    border-radius: var(--radius-row);
    padding: 24px;
    margin-top: auto;
    flex-shrink: 0;
}
.plan-note-kicker {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.plan-rail-row.map-enter,
.plan-rail-row.map-reveal {
    animation: mapIn 220ms var(--ease-out) both;
}
.plan-rail-row.map-reveal {
    animation-name: mapReveal;
}
.plan-rail-row.map-enter:nth-child(1),
.plan-rail-row.map-reveal:nth-child(1) { animation-delay: 0ms; }
.plan-rail-row.map-enter:nth-child(2),
.plan-rail-row.map-reveal:nth-child(2) { animation-delay: 40ms; }
.plan-rail-row.map-enter:nth-child(3),
.plan-rail-row.map-reveal:nth-child(3) { animation-delay: 80ms; }
.plan-rail-row.map-enter:nth-child(4),
.plan-rail-row.map-reveal:nth-child(4) { animation-delay: 120ms; }
.plan-rail-row.map-enter:nth-child(5),
.plan-rail-row.map-reveal:nth-child(5) { animation-delay: 160ms; }
.plan-rail-row.map-enter:nth-child(n+6),
.plan-rail-row.map-reveal:nth-child(n+6) { animation-delay: 200ms; }

@keyframes mapIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes mapReveal {
    from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

.plan-rail-num.is-swap {
    animation: numSwap 200ms var(--ease-out);
}
@keyframes numSwap {
    from { transform: rotate(12deg) scale(0.85); filter: blur(4px); }
    to { transform: none; filter: none; }
}

.guide-progress-num.is-pop {
    animation: numPop 220ms var(--ease-out);
}
@keyframes numPop {
    from { transform: scale(1.12); filter: blur(4px); }
    to { transform: none; filter: none; }
}

.icon-btn.is-icon-swap svg {
    animation: iconSwap 280ms var(--ease-out);
}
@keyframes iconSwap {
    from { transform: scale(0.6) rotate(-90deg); filter: blur(6px); opacity: 0; }
    to { transform: none; filter: none; opacity: 1; }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) {
    z-index: 9999;
    animation: vtCircle 400ms var(--ease-out) both;
}
@keyframes vtCircle {
    from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
    to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%)); }
}

@media (hover: hover) and (pointer: fine) {
    .plan-rail-row:hover:not(.is-active) {
        filter: none;
        background: color-mix(in srgb, var(--bg-row) 88%, var(--text-main));
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-card-inner.is-from-next,
    .step-card-inner.is-from-prev,
    .plan-doc.is-from-next,
    .plan-doc.is-from-prev,
    .plan-doc.is-exit-next,
    .plan-doc.is-exit-prev,
    .plan-rail-row.map-enter,
    .plan-rail-row.map-reveal,
    .plan-rail-row.is-jump,
    .plan-rail-row.is-flash,
    .plan-rail-num.is-swap,
    .guide-progress-num.is-pop,
    .guide-progress-num.is-animating .t-digit,
    .seg-thumb,
    .profile-field::after,
    .profile-field.is-pulse .civic-trigger,
    .action-spinner,
    .t-success-check.is-live[data-state="in"] .action-check-svg,
    .t-success-check.is-live[data-state="in"] .action-check-tick,
    .ghost-btn.is-copied .ghost-label,
    .ghost-btn.is-icon-spin svg,
    .icon-btn.is-icon-swap svg {
        animation: none;
        transition: none;
        transform: none;
        filter: none;
        clip-path: none;
    }
    .plan-doc .t-stagger-line,
    .action-ico,
    .rail-ico,
    .t-reel-strip {
        transition: none !important;
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
    .t-success-check { opacity: 1; }
    .action-check-tick { stroke-dashoffset: 0 !important; }
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

.plan-error {
    padding: 24px;
}
.plan-error .secondary-btn {
    margin-top: 12px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--cta-bg);
    color: var(--cta-fg);
    cursor: pointer;
}

.skeleton-loader { display: flex; flex-direction: column; gap: 16px; }
.skeleton-card { background: var(--bg-row); border-radius: 16px; padding: 20px; }
.skeleton-header { display: flex; gap: 12px; align-items: center; }
.skeleton-circle { width: 24px; height: 24px; border-radius: 50%; background: var(--border); }
.skeleton-line { height: 12px; flex: 1; border-radius: 6px; background: var(--border); }

.site-foot {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--page-pad) 48px;
    color: var(--text-muted);
    font-size: 14px;
}
.site-foot-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.site-foot-mark { font-weight: 700; color: var(--text-main); font-size: 16px; }
.site-foot-link {
    background: none;
    border: 0;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px 0;
    margin-right: 16px;
    font-size: 14px;
}
.site-foot-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot-copy { margin-top: 24px; }
.site-foot a { color: inherit; }

.studio-wrap.faq-desk {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px var(--page-pad) 64px;
}
.faq-desk-head h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}
.faq-lead { color: var(--text-muted); margin: 0 0 20px; }
.faq-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0 16px;
    min-height: 48px;
    margin-bottom: 16px;
}
.faq-search-wrap input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
}

@media screen {
    .print-only { display: none !important; }
}

@media print {
    @page { size: A4 portrait; margin: 20mm; }
    body { background: white !important; color: #111 !important; }
    .header-bar, #view-app, #view-faq, .site-foot { display: none !important; }
    #arrival-pack-document { display: block !important; }
    .print-header { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 16px; margin-bottom: 24px; }
    .print-step { page-break-inside: avoid; margin-bottom: 20px; }
    .print-hops { margin-top: 10px; }
    .print-hop-clicks { margin: 4px 0 0 1.2em; }
    .print-step-content a { color: #111; text-decoration: underline; }
}
