.stations-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.stations-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8f4f2a;
}

.stations-lead {
    max-width: 68ch;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #4b4f57;
}

.stations-hero,
.station-detail-hero,
.attempt-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.stations-hero-note,
.station-detail-side,
.attempt-hero-card,
.attempt-score-card,
.attempt-progress-card,
.attempt-side-card,
.attempt-input-card,
.attempt-feedback,
.attempt-briefing-card,
.attempt-transcript-card,
.attempt-result-card,
.station-card,
.scenario-card {
    border: 1px solid #eadfce;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(214, 156, 92, 0.13), transparent 38%),
        linear-gradient(180deg, #fffdf8 0%, #fffaf3 100%);
    box-shadow: 0 18px 50px rgba(98, 71, 44, 0.08);
}

.stations-hero-note,
.station-detail-side,
.attempt-hero-card,
.attempt-score-card,
.attempt-progress-card,
.attempt-side-card,
.attempt-feedback,
.attempt-briefing-card,
.attempt-transcript-card,
.attempt-result-card {
    padding: 1.25rem;
}

.stations-hero-note strong,
.station-detail-side h2,
.attempt-score-card strong {
    display: block;
}

.stations-grid,
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.station-card {
    padding: 1.4rem;
}

.scenario-card {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.4rem;
}

.station-card-head,
.scenario-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.station-card-head h2,
.scenario-card-head h3,
.station-section-head h2,
.attempt-topbar h1 {
    margin: 0;
}

.station-card-label,
.scenario-code {
    margin: 0 0 0.35rem;
    color: #7d5433;
    font-size: 0.88rem;
    font-weight: 700;
}

.station-card-pill,
.scenario-time,
.attempt-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f2e6d6;
    color: #6c472a;
    font-size: 0.8rem;
    font-weight: 700;
}

.station-card-pill.muted {
    background: #edf0f5;
    color: #667085;
}

.station-card-text,
.station-card-subtitle,
.scenario-card-text,
.station-detail-side p,
.station-briefing p,
.attempt-briefing-card p,
.attempt-feedback p,
.attempt-input-help {
    color: #4d5560;
    line-height: 1.7;
}

.station-card-stats,
.scenario-meta,
.attempt-scoreboard,
.attempt-actions,
.attempt-progress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.station-card-stats div,
.scenario-meta div {
    min-width: 130px;
}

.scenario-meta div {
    flex: 1 1 180px;
    padding: 0.9rem 1rem;
    border: 1px solid #eadfce;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.station-card-stats span,
.scenario-meta span,
.attempt-score-card span {
    display: block;
    color: #7a8089;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.station-card-link,
.station-back-link,
.attempt-history-card,
.scenario-btn,
.attempt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.station-card-link,
.scenario-btn,
.attempt-btn {
    padding: 0.85rem 1rem;
    border: 0;
    background: #b55d31;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(181, 93, 49, 0.24);
}

.scenario-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.scenario-card-random {
    background:
        radial-gradient(circle at top right, rgba(104, 138, 87, 0.18), transparent 38%),
        linear-gradient(180deg, #fbfff7 0%, #f5fbf0 100%);
    border-color: #d8e6d0;
}

.scenario-card-random .scenario-card-head {
    align-items: center;
}

.scenario-card-random .scenario-meta div {
    border-color: #d7e6d0;
    background: rgba(255, 255, 255, 0.82);
}

.scenario-btn-secondary,
.attempt-btn-secondary {
    background: #f0e5d7;
    color: #5f4a36;
    box-shadow: none;
}

.station-card-link:hover,
.scenario-btn:hover,
.attempt-btn:hover,
.attempt-history-card:hover {
    transform: translateY(-1px);
}

.station-placeholder-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: #545c66;
    line-height: 1.8;
}

.station-briefing {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid #d1864d;
    background: #fff7eb;
    border-radius: 0 18px 18px 0;
}

.station-limit-list,
.attempt-next-list,
.attempt-warning-list {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.8;
    color: #4d5560;
}

.station-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-top: 2rem;
}

.station-section-head.compact {
    margin-top: 0;
    align-items: start;
}

.station-section-note {
    max-width: 42ch;
    color: #69707b;
}

.attempt-history-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.attempt-history-card {
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border: 1px solid #eadfce;
    background: #fffdf8;
    color: #2f3640;
}

.attempt-history-card span {
    display: block;
    margin-top: 0.2rem;
    color: #75808e;
}

.attempt-history-score {
    font-size: 1.1rem;
    font-weight: 700;
}

.station-attempt-shell {
    padding-top: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(230, 188, 120, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(190, 221, 203, 0.18), transparent 24%);
}

.attempt-scoreboard {
    display: grid;
    justify-content: stretch;
}

.attempt-topbar {
    align-items: stretch;
}

.attempt-hero-card {
    display: grid;
    gap: 0.9rem;
}

.attempt-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.attempt-meta-pill,
.attempt-input-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #eadfce;
    background: rgba(255, 255, 255, 0.8);
    color: #6f4d32;
    font-size: 0.84rem;
    font-weight: 700;
}

.attempt-score-card {
    min-width: 220px;
    display: grid;
    align-content: center;
    gap: 0.35rem;
    min-height: 100%;
}

.attempt-score-card-primary {
    min-width: 280px;
    background:
        radial-gradient(circle at top right, rgba(214, 156, 92, 0.2), transparent 40%),
        linear-gradient(180deg, #fff9f1 0%, #fff6ec 100%);
}

.attempt-score-card strong {
    font-size: 1.8rem;
    color: #2f3640;
}

.attempt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.attempt-main,
.attempt-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.attempt-side {
    position: sticky;
    top: 1rem;
}

.attempt-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.attempt-progress-card {
    display: grid;
    gap: 0.9rem;
}

.attempt-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.attempt-progress-head strong {
    color: #2f3640;
}

.attempt-progress-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8f4f2a;
}

.attempt-progress-bar {
    overflow: hidden;
    border-radius: 999px;
    height: 12px;
    background: #eee4d5;
}

.attempt-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d27a41 0%, #efb36d 100%);
}

.attempt-progress-meta {
    justify-content: space-between;
    align-items: center;
}

.attempt-progress-meta span:last-child {
    font-weight: 700;
    color: #42505e;
}

.attempt-feedback {
    border-color: #ead6bf;
    background:
        radial-gradient(circle at top right, rgba(238, 189, 122, 0.18), transparent 36%),
        linear-gradient(180deg, #fffaf2 0%, #fff7ee 100%);
}

.attempt-briefing-card {
    grid-column: 1 / -1;
}

.attempt-input-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(214, 156, 92, 0.17), transparent 38%),
        linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
}

.attempt-input-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.attempt-input-head h2 {
    margin: 0;
}

.attempt-textarea-shell {
    border: 1px solid #e5d9c9;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.35rem;
}

.attempt-input-card label {
    display: block;
    font-weight: 700;
    color: #313843;
}

.attempt-input-card textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 0;
    border-radius: 16px;
    padding: 1rem;
    font: inherit;
    background: transparent;
    color: #26303b;
}

.attempt-input-card textarea:focus {
    outline: none;
}

.attempt-actions {
    justify-content: space-between;
}

.attempt-btn[disabled],
.attempt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.attempt-btn-mic.is-listening {
    background: #8a3026;
}

.attempt-transcript-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    min-height: 320px;
    max-height: 620px;
    overflow-y: auto;
    padding: 0.45rem;
    padding-right: 0.25rem;
    border-radius: 20px;
    border: 1px solid #efe3d2;
    background: rgba(255, 255, 255, 0.58);
}

.transcript-entry {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ede1cf;
    max-width: min(85%, 760px);
    justify-self: start;
}

.transcript-entry.is-user {
    justify-self: end;
    background: #fff4e8;
    border-color: #f0d4bb;
}

.transcript-entry.is-user .transcript-entry-meta {
    background: #f4deca;
    color: #8a4d23;
}

.transcript-entry.is-system {
    background: #f8fbff;
    border-color: #d7e5f2;
}

.transcript-entry.is-dispatcher {
    background: #f6fbf4;
    border-color: #d5e5d0;
}

.transcript-entry.is-aed {
    background: #fff9f1;
    border-color: #edd6b4;
}

.transcript-entry-meta {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #f2e6d6;
    color: #6c472a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.transcript-entry.is-system .transcript-entry-meta {
    background: #e8f0f9;
    color: #3c5c7a;
}

.transcript-entry.is-dispatcher .transcript-entry-meta {
    background: #e4f1e1;
    color: #3d6f45;
}

.transcript-entry.is-aed .transcript-entry-meta {
    background: #f7ead5;
    color: #8a5a19;
}

.transcript-entry p {
    margin: 0;
    color: #38414d;
    line-height: 1.7;
}

.attempt-empty {
    margin: 0;
    color: #7c8793;
}

.attempt-side-card {
    display: grid;
    gap: 0.85rem;
}

.attempt-checklist {
    display: grid;
    gap: 1rem;
}

.attempt-checklist-section h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.attempt-checklist-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.attempt-step-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: start;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #efe4d6;
}

.attempt-step-item.is-matched {
    border-color: #b6d8b8;
    background: #f3fbf2;
}

.attempt-step-item.is-manual {
    background: #f4f6f8;
    border-style: dashed;
}

.attempt-step-number {
    font-weight: 700;
    color: #7a5232;
}

.attempt-step-text {
    color: #37424f;
    line-height: 1.5;
}

.attempt-result-card {
    border-color: #d8e2ef;
    background:
        radial-gradient(circle at top right, rgba(169, 198, 231, 0.2), transparent 40%),
        linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
}

.attempt-result-summary {
    display: grid;
    gap: 1rem;
}

.attempt-next-list,
.attempt-warning-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.attempt-next-list li,
.attempt-warning-list li {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid #ecdfcd;
    background: rgba(255, 255, 255, 0.8);
}

.attempt-result-summary ul {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .stations-hero,
    .station-detail-hero,
    .attempt-topbar,
    .attempt-layout {
        grid-template-columns: 1fr;
    }

    .attempt-scoreboard {
        justify-content: start;
    }

    .attempt-overview-grid {
        grid-template-columns: 1fr;
    }

    .attempt-briefing-card {
        grid-column: auto;
    }

    .attempt-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .stations-shell {
        padding: 1.25rem 0.75rem 3rem;
    }

    .scenario-actions {
        grid-template-columns: 1fr;
    }

    .attempt-input-head,
    .attempt-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .attempt-progress-head,
    .attempt-progress-meta {
        align-items: start;
        flex-direction: column;
    }

    .transcript-entry {
        max-width: 100%;
    }

    .attempt-step-item {
        grid-template-columns: auto 1fr;
    }

    .attempt-step-badge {
        grid-column: 2;
        justify-self: start;
    }
}
