:root {
    --green: #20CB78;
    --green-deep: #1aad6a;
    --green-ink: #14352a;
    --purple: #6C5CE7;
    --ink: #161B2B;
    --muted: #667085;
    --line: #E5E7EB;
    --page: #F7F8FA;
    --soft: #F3F4F6;
    --mint: #E6F9F0;
    --warn: #FFF4E5;
    --warn-ink: #9A5B14;
    --danger: #FEECEC;
    --danger-ink: #B42318;
}
 
* { box-sizing: border-box; }

html, body, button, input, select, a, textarea {
    font-family: 'Figtree', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    width: min(1360px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 8px 0;
}

.brand {
    display: flex;
    align-items: center;
    flex: none;
}

.brand img {
    height: 34px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    object-position: left center;
}

.nav-panel-desktop {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 18px;
}

.nav-drawer,
.nav-panel-top,
.nav-backdrop,
.nav-close {
    display: none;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-panel-desktop .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.nav-panel-desktop .nav-actions {
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.nav-links a,
.nav-actions a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-actions a.is-active,
.nav-links a.is-active,
.nav-links a:hover,
.nav-actions a:hover {
    color: var(--ink);
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    background: var(--green);
    color: #fff !important;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}

.btn-solid:hover { background: var(--green-deep); color: #fff !important; }
.btn-solid.wide { width: 100%; border-radius: 12px; min-height: 52px; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.bring-main {
    width: min(1360px, calc(100% - 40px));
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 0 32px;
}

.bring-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.bring-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.bring-hero h1 em {
    font-style: normal;
    color: var(--green-deep);
}

.bring-hero .lead {
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.hero-aside {
    background: var(--mint);
    border-radius: 22px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-aside-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    color: var(--green-deep);
    display: grid;
    place-items: center;
}

.hero-aside-icon svg { width: 22px; height: 22px; }

.hero-aside strong {
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-aside p {
    margin: 0;
    color: #3d5a4d;
    line-height: 1.45;
    font-size: 0.95rem;
}

.hero-aside-note {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #5a7568;
    line-height: 1.4;
}

.journey {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(22, 27, 43, 0.04);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.steps {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.step-pill:not(:last-child) {
    flex: 1 1 0;
}

.step-pill:last-child {
    flex: 0 1 auto;
}

.step-pill:not(:last-child)::after {
    content: "";
    flex: 1 1 24px;
    height: 1px;
    min-width: 16px;
    margin: 0 12px;
    background: var(--line);
    align-self: center;
}

.step-pill .num {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    flex: none;
}

.step-pill > span:not(.num) {
    white-space: nowrap;
}

.step-pill.is-active {
    color: var(--green-deep);
}

.step-pill.is-active .num {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.step-pill.is-done .num {
    background: var(--mint);
    border-color: #b7ebd0;
    color: var(--green-deep);
}

.journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.role-panel,
.panel-main {
    min-width: 0;
    max-width: 100%;
}

.role-panel h2,
.panel-main h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.role-panel .hint,
.panel-main .hint {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.5;
}

.role-card {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    color: inherit;
}

.role-card > span:last-child {
    min-width: 0;
    flex: 1;
}

.role-card.is-selected {
    background: var(--mint);
    border-color: #9fdfbf;
}

.role-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--soft);
    display: grid;
    place-items: center;
    color: var(--green-deep);
    flex: none;
}

.role-card.is-selected .icon { background: #fff; }

.role-card strong { display: block; margin-bottom: 2px; }
.role-card span { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

.role-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.role-note a { color: var(--green-deep); font-weight: 700; }

.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-field svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.search-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px 0 42px;
    background: #fff;
}

.county-filter {
    flex: 0 0 200px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 40px 0 14px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.inst-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.inst-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.inst-row:hover,
.inst-row.is-selected {
    border-color: #c9c4f0;
    background: #faf8ff;
}

.inst-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--green-deep);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.78rem;
    flex: none;
}

.inst-copy { flex: 1; min-width: 0; }
.inst-copy strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inst-copy span {
    color: var(--muted);
    font-size: 0.86rem;
}

.icon-arrow {
    width: 1.05em;
    height: 1.05em;
    flex: none;
    display: block;
}

.text-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inst-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.inst-action .icon-arrow {
    width: 14px;
    height: 14px;
}

.inst-action.live { color: var(--green-deep); }

.show-more {
    margin-top: 12px;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 22px;
}

.back-link .icon-arrow-left {
    width: 16px;
    height: 16px;
}

.back-link:hover { color: var(--ink); }

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.selected-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--soft);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 14px;
}

.selected-card .change {
    margin-left: auto;
    color: var(--green-deep);
    font-weight: 700;
}

.warn-banner {
    background: var(--warn);
    color: var(--warn-ink);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.panel-main-form {
    max-width: 720px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.claim-modal-card {
    text-align: center;
}

.claim-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--green-deep);
    display: grid;
    place-items: center;
}

.claim-modal-card h3 {
    margin-bottom: 10px;
}

.claim-modal-card .ghost-btn {
    margin-top: 8px;
    color: var(--green-deep);
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.field .sub {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.86rem;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    background-color: #fff;
    color: var(--ink);
}

.field select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.checks {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #374151;
}

.check input {
    margin-top: 3px;
    accent-color: var(--green-deep);
}

.secure-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--mint);
    border-radius: 12px;
    padding: 12px 14px;
    color: #245642;
    font-size: 0.9rem;
    line-height: 1.4;
}

.secure-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.error {
    margin: 6px 0 0;
    color: var(--danger-ink);
    font-size: 0.88rem;
}

.confirm-panel {
    text-align: center;
    padding: 18px 8px 8px;
    max-width: 520px;
    margin: 0 auto;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #efeaff;
    color: var(--purple);
    display: grid;
    place-items: center;
}

.confirm-icon.success {
    background: var(--mint);
    color: var(--green-deep);
}

.confirm-icon.success.filled {
    background: var(--green);
    color: #fff;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-size: 0.92rem;
    text-align: left;
}

.status-bar strong {
    color: var(--green-deep);
}

.done-copy {
    margin: 0 0 16px;
    color: var(--muted);
}

.share-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #F4EFE6;
    color: #6B5530;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.share-note svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.invite-box label {
    font-weight: 700;
    text-align: left;
}

.confirm-panel h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.confirm-panel .lead {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.confirm-panel .lead strong { color: var(--ink); }

.mini-note {
    margin: 12px 0 18px;
    padding: 10px 12px;
    background: var(--soft);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.link-btn {
    display: inline-block;
    margin-top: 12px;
    background: none;
    border: 0;
    color: var(--green-deep);
    font-weight: 700;
    cursor: pointer;
}

.done-stats {
    margin: 18px 0;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--green-deep);
    line-height: 1;
}

.done-stats + p {
    margin: 0 0 16px;
    color: var(--muted);
}

.invite-box {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.invite-box input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
}

.ghost-btn {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 28px 0 36px;
}

.footer-inner {
    width: min(1360px, calc(100% - 40px));
    max-width: 100%;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--green-deep);
}

.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-base p {
    margin: 0;
    line-height: 1.45;
}

.footer-base div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.footer-base a:hover {
    color: var(--green-deep);
}

.modal[hidden] { display: none !important; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 27, 43, 0.45);
}

.modal-card {
    position: relative;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.modal-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.modal-actions {
    display: grid;
    gap: 10px;
}

.modal-actions .ghost-btn,
.modal-actions .danger-btn,
.modal-actions .btn-solid {
    width: 100%;
}

.danger-btn {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--danger);
    color: var(--danger-ink);
    font-weight: 700;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--muted);
}

.empty-state {
    padding: 28px 12px;
    text-align: center;
    color: var(--muted);
}

.toast-slot {
    width: min(1360px, calc(100% - 40px));
    margin: 16px auto 0;
}

.toast {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--mint);
    color: #245642;
    font-weight: 600;
}

.toast.is-error {
    background: var(--danger);
    color: var(--danger-ink);
}

@media (max-width: 920px) {
    .bring-main {
        width: min(100% - 24px, 1360px);
    }

    .bring-hero,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .journey {
        padding: 16px;
        border-radius: 20px;
    }

    .journey-grid {
        gap: 20px;
    }

    .role-panel .hint,
    .panel-main .hint,
    .role-note {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .steps {
        gap: 0;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .step-pill {
        font-size: 0.72rem;
        gap: 6px;
    }

    .step-pill .num {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .step-pill:not(:last-child)::after {
        margin: 0 6px;
        min-width: 8px;
        flex: 1 1 12px;
    }

    .step-pill > span:not(.num) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .inst-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .inst-action {
        margin-left: auto;
    }

    html.nav-open,
    body.nav-open {
        overflow: hidden;
        height: 100%;
        overscroll-behavior: none;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        height: 64px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
    }

    body {
        padding-top: 64px;
    }

    .header-inner {
        width: min(100% - 24px, 1360px);
        height: 64px;
        min-height: 64px;
        padding: 0;
        align-items: center;
        gap: 12px;
    }

    .header-inner > .brand {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        max-width: calc(100% - 56px);
    }

    .header-inner > .brand img {
        height: 30px;
        max-width: 148px;
    }

    .nav-panel-desktop {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        margin-left: auto;
        flex: none;
        z-index: 2;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(22, 27, 43, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .site-header.is-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        height: 100vh;
    }

    .nav-drawer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 60;
        width: min(320px, 86vw);
        height: 100dvh;
        max-height: 100vh;
        margin: 0;
        padding: 16px 16px 24px;
        background: #fff;
        border-right: 1px solid var(--line);
        box-shadow: 16px 0 40px rgba(22, 27, 43, 0.12);
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, visibility 0.28s ease;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header.is-open .nav-drawer {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-panel-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex: none;
        padding-bottom: 14px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }

    .nav-panel-top .brand img {
        height: 30px;
        max-width: 148px;
    }

    .nav-close {
        display: inline-flex;
        position: relative;
        width: 40px;
        height: 40px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        flex: none;
    }

    .nav-close span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 14px;
        height: 2px;
        border-radius: 99px;
        background: var(--ink);
    }

    .nav-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
    .nav-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

    .nav-drawer .nav-links,
    .nav-drawer .nav-actions {
        position: static;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        gap: 2px;
    }

    .nav-drawer .nav-links a,
    .nav-drawer .nav-actions a:not(.btn-solid) {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        color: var(--ink);
    }

    .nav-drawer .nav-links a:hover,
    .nav-drawer .nav-links a.is-active,
    .nav-drawer .nav-actions a:hover,
    .nav-drawer .nav-actions a.is-active {
        background: var(--soft);
        color: var(--green-deep);
    }

    .nav-drawer .nav-actions {
        margin-top: auto;
        padding-top: 12px;
        gap: 6px;
    }

    .nav-drawer .nav-actions .btn-solid {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}

@media (max-width: 767px) {
    .bring-main {
        padding-bottom: 25px;
    }

    .site-footer {
        padding: 24px 0 32px;
    }

    .footer-inner {
        width: min(100% - 24px, 1360px);
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        justify-content: stretch;
        text-align: left;
        margin-bottom: 16px;
        padding-bottom: 16px;
        font-size: 0.88rem;
    }

    .footer-base {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-base div {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 60px;
    }

    body {
        padding-top: 60px;
    }

    .header-inner {
        width: min(100% - 24px, 1360px);
        height: 60px;
        min-height: 60px;
    }

    .header-inner > .brand {
        max-width: calc(100% - 52px);
    }

    .header-inner > .brand img {
        height: 28px;
        max-width: 140px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .bring-main {
        width: min(100% - 20px, 1360px);
        padding-top: 20px;
        padding-bottom: 25px;
    }

    .journey {
        padding: 14px;
        border-radius: 18px;
    }

    .steps {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .step-pill {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        text-align: center;
        font-size: 0.65rem;
        line-height: 1.2;
        flex: 1 1 0;
    }

    .step-pill:last-child {
        flex: 1 1 0;
    }

    .step-pill .num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-pill:not(:last-child)::after {
        display: none;
    }

    .step-pill > span:not(.num) {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 100%;
    }

    .steps {
        position: relative;
        gap: 4px;
    }

    .steps::before {
        content: "";
        position: absolute;
        top: 14px;
        left: 16%;
        right: 16%;
        height: 1px;
        background: var(--line);
        z-index: 0;
        pointer-events: none;
    }

    .step-pill .num {
        position: relative;
        z-index: 1;
        background: #fff;
    }

    .step-pill.is-active .num,
    .step-pill.is-done .num {
        z-index: 1;
    }

    .role-card {
        padding: 12px;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .county-filter {
        flex: none;
        width: 100%;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .inst-action {
        width: 100%;
        justify-content: flex-end;
    }

    .site-footer {
        padding: 22px 0 36px;
    }

    .footer-inner {
        width: min(100% - 20px, 1360px);
    }

    .footer-links,
    .footer-base div {
        gap: 12px;
    }

    .footer-base p {
        font-size: 0.86rem;
    }

    .bring-hero {
        margin-bottom: 18px;
        gap: 16px;
    }

    .bring-hero h1 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .hero-aside {
        padding: 16px;
        border-radius: 18px;
    }

    .panel-main h2,
    .role-panel h2 {
        font-size: 1.2rem;
    }
}
