:root {
    color-scheme: light;
    --ink: #12231d;
    --muted: #66716a;
    --line: #dbe5df;
    --panel: #ffffff;
    --green: #13734d;
    --green-dark: #0a4437;
    --blue: #215f8f;
    --amber: #a05a00;
    --red: #b42318;
    --soft: #f5f8f6;
    --shadow: 0 18px 46px rgba(21, 33, 27, .11);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(19, 115, 77, .10), transparent 34%),
        linear-gradient(245deg, rgba(33, 95, 143, .10), transparent 32%),
        #f7faf8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.manual-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
}

.manual-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: center;
    min-height: 310px;
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, #0b493a, #173647 58%, #215f8f);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-copy {
    min-width: 0;
}

.home-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    padding: 0 14px;
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 900;
}

.eyebrow {
    display: inline-flex;
    color: var(--blue);
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.manual-hero .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.manual-hero h1 {
    max-width: 780px;
    margin: 8px 0 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: .95;
    letter-spacing: 0;
}

.manual-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-visual {
    display: block;
    justify-self: end;
    width: min(100%, 480px);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    padding: 8px;
    background: rgba(255, 255, 255, .11);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .18);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 10px 24px rgba(19, 115, 77, .26);
}

.button.secondary {
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
}

.guide-box {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 36px rgba(21, 33, 27, .08);
}

.purchase-guide {
    border-top: 6px solid var(--green);
}

.transfer-guide {
    border-top: 6px solid var(--blue);
    background: linear-gradient(180deg, #fff, #f7fbff);
}

.guide-box-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.guide-box-head h2 {
    margin: 4px 0 0;
    font-size: 1.6rem;
}

.guide-box-head > strong {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 13px;
    color: var(--green);
    background: #e7f5ed;
    font-size: .82rem;
}

.transfer-guide .guide-box-head > strong {
    color: var(--blue);
    background: #e7f1f8;
}

.manual-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0 0 16px;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe5df;
}

.progress-track span {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width .24s ease;
}

.transfer-progress .progress-track span {
    background: linear-gradient(90deg, var(--blue), var(--amber));
}

.manual-progress strong {
    color: var(--muted);
    font-size: .9rem;
}

.manual-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.step-nav,
.stage-card,
.faq-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 12px 32px rgba(21, 33, 27, .07);
}

.guide-box .step-nav,
.guide-box .stage-card {
    box-shadow: none;
}

.step-nav {
    position: sticky;
    top: 12px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.step-nav button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 7px 9px;
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.step-nav button span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--green);
    background: #e7f5ed;
    font-size: .82rem;
    font-weight: 950;
}

.step-nav button strong {
    min-width: 0;
    overflow: hidden;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.step-nav button.active {
    border-color: rgba(19, 115, 77, .28);
    color: var(--ink);
    background: #f2fbf6;
}

.stage-card {
    padding: 20px;
}

.transfer-stage-card {
    border-color: #cfe0ec;
}

.stage-head span {
    color: var(--green);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.stage-head h2 {
    margin: 5px 0 8px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.stage-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.mock-screen {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #cfdcd5;
    border-radius: 18px;
    background: #f8fbf9;
}

.mock-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #fff;
    background: var(--green-dark);
}

.transfer-mock-screen .mock-topbar {
    background: #183f66;
}

.mock-topbar span {
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    font-weight: 800;
}

.mock-content {
    display: grid;
    gap: 12px;
    min-height: 270px;
    padding: 18px;
}

.mock-row {
    display: grid;
    gap: 7px;
}

.mock-label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.mock-field,
.mock-card,
.mock-total {
    border: 1px solid #d8e4dd;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.mock-card {
    display: grid;
    gap: 4px;
}

.mock-card.selected {
    border-color: rgba(33, 95, 143, .52);
    background: #edf6ff;
    box-shadow: inset 4px 0 0 var(--blue);
}

.mock-card strong {
    font-size: 1rem;
}

.mock-card small {
    color: var(--muted);
    font-weight: 700;
}

.mock-return-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mock-return-column {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.mock-return-column > strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 11px;
    color: var(--blue);
    background: #e7f1f8;
    font-size: .8rem;
}

.mock-seat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(42px, 1fr));
    gap: 9px;
}

.mock-seat {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 1px solid #cfdcd5;
    border-radius: 10px;
    color: var(--green-dark);
    background: #fff;
    font-weight: 950;
}

.mock-seat.selected {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

.mock-seat.held {
    border-color: #facc15;
    color: #6b4f1d;
    background: #fde68a;
}

.mock-seat.sold {
    border-color: #fecaca;
    color: #fff;
    background: var(--red);
}

.mock-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 950;
}

.hint-panel {
    margin-top: 14px;
    border: 1px solid #fee7b5;
    border-radius: 14px;
    padding: 13px 14px;
    background: #fff8e7;
}

.transfer-hint-panel {
    border-color: #cfe0ec;
    background: #eef7ff;
}

.transfer-hint-panel strong {
    color: var(--blue);
}

.transfer-hint-panel p {
    color: #254761;
}

.hint-panel strong {
    color: var(--amber);
}

.hint-panel p {
    margin: 5px 0 0;
    color: #6b4f1d;
    line-height: 1.55;
}

.stage-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.faq-grid article {
    padding: 18px;
}

.faq-grid h3 {
    margin: 0 0 8px;
}

.faq-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.manual-footer {
    display: grid;
    place-items: center;
    gap: 3px;
    margin-top: 22px;
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}

@media (max-width: 980px) {
    .manual-hero,
    .manual-layout,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-self: stretch;
    }

    .step-nav {
        position: static;
    }

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

@media (max-width: 560px) {
    .manual-shell {
        width: 100%;
        padding-top: 0;
    }

    .manual-hero,
    .guide-box,
    .stage-card,
    .step-nav,
    .faq-grid article {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .manual-hero {
        padding: 22px 18px;
    }

    .manual-progress,
    .manual-layout,
    .faq-grid {
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }

    .guide-box {
        padding: 16px 0;
    }

    .guide-box-head {
        display: block;
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }

    .manual-progress {
        grid-template-columns: 1fr;
    }

    .step-nav {
        grid-template-columns: 1fr;
    }

    .mock-return-grid {
        grid-template-columns: 1fr;
    }

    .stage-actions,
    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
