:root {
    --primary-blue: #004AAD;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --danger: #9B1C1C;
    --ok: #0F6B3A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}
a { color: var(--primary-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.main-header {
    background: var(--primary-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--white);
    text-decoration: none;
    min-width: 0;
}
.brand:hover { text-decoration: none; opacity: 0.92; }
.brand img { height: 42px; width: auto; background: transparent; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: 0.04em; }
.brand small { display: block; font-size: 0.72rem; opacity: 0.9; max-width: 280px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-left: auto; align-items: center; }
.nav a, .nav button.link {
    color: var(--white);
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.lang { display: flex; gap: 0.35rem; }
.lang a {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.lang a.on { background: var(--white); color: var(--primary-blue); text-decoration: none; }

.gate-body { background: #f4f7fb; }
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr); }
.gate-brand, .gate-main { min-width: 0; }
.gate-brand {
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.4rem 2.8rem;
}
.gate-logo, .gate-copy, .gate-foot { min-width: 0; max-width: 100%; }
.gate-logo { display: flex; align-items: center; gap: 0.85rem; color: #fff; text-decoration: none; }
.gate-logo:hover { text-decoration: none; opacity: 0.94; }
.gate-logo img { height: 72px; width: auto; background: transparent; }
.gate-logo strong { display: block; letter-spacing: 0.08em; font-size: 1.35rem; }
.gate-logo small { display: block; max-width: 16rem; opacity: 0.88; font-size: 0.82rem; line-height: 1.35; }
.gate-copy h1 { color: #fff; font-size: 2.15rem; line-height: 1.15; margin: 0 0 0.8rem; max-width: min(18rem, 100%); }
.gate-copy h1:last-child { margin-bottom: 0; }
.gate-copy p { margin: 0; width: 100%; max-width: 34rem; font-size: 1.05rem; line-height: 1.55; opacity: 0.92; }
.gate-brand-foot { min-width: 0; max-width: 100%; }
.gate-foot { margin: 0.9rem 0 0; font-size: 0.82rem; opacity: 0.75; }
.partner-carousel { min-width: 0; }
.partner-carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.partner-carousel__label { margin: 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.82; }
.partner-carousel__nav { display: flex; gap: 0.35rem; }
.partner-carousel__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; padding: 0; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22); cursor: pointer;
}
.partner-carousel__btn:hover { background: rgba(255, 255, 255, 0.28); }
.partner-carousel__btn svg { width: 1rem; height: 1rem; }
.partner-carousel__viewport { position: relative; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.partner-carousel__fade { position: absolute; top: 0; bottom: 0; width: 1.6rem; z-index: 1; pointer-events: none; }
.partner-carousel__fade--start { left: 0; border-radius: 12px 0 0 12px; background: linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent); }
.partner-carousel__fade--end { right: 0; border-radius: 0 12px 12px 0; background: linear-gradient(to left, rgba(0, 0, 0, 0.22), transparent); }
.partner-carousel__scroller {
    display: flex; gap: 0.7rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 0.65rem; -webkit-overflow-scrolling: touch;
}
.partner-carousel__scroller::-webkit-scrollbar { display: none; }
.partner-carousel__item { flex: 0 0 7.25rem; scroll-snap-align: start; }
.partner-carousel__tile {
    width: 7.25rem; height: 4.25rem; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); padding: 0.5rem 0.6rem;
}
.partner-carousel__logo { display: block; width: 100%; height: 100%; max-height: 2.85rem; object-fit: contain; }
.gate-main { display: flex; flex-direction: column; min-height: 100vh; background: #f4f7fb; }
.gate-bar { display: flex; align-items: center; gap: 0.75rem; padding: 1.15rem 1.5rem; }
.gate-bar nav { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-right: auto; }
.gate-bar nav a {
    color: var(--text-dark);
    background: #e7eef8;
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    font-size: 0.92rem;
    font-weight: 600;
}
.gate-bar nav a.on, .gate-bar nav a:hover { background: var(--primary-blue); color: #fff; text-decoration: none; }
.gate-bar .lang a { color: var(--primary-blue); border-color: #b9cbe6; }
.gate-bar .lang a.on { background: var(--primary-blue); color: #fff; }
.gate-card-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 1.5rem 2.5rem; }
.gate-card {
    width: min(100%, 28rem);
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 16px;
    padding: 1.5rem 1.4rem 1.2rem;
    box-shadow: 0 16px 40px rgba(16, 32, 56, 0.08);
}
.gate-card .form-sheet { max-width: none; }
.gate-card .btn { width: 100%; }
.gate-card h1 { font-size: 1.7rem; }
@media (max-width: 900px) {
    .gate { grid-template-columns: 1fr; }
    .gate-brand { min-height: auto; padding: 1.4rem 1.25rem 1.6rem; }
    .gate-copy h1 { font-size: 1.7rem; }
    .gate-main { min-height: auto; }
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 0.6rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.6rem; color: var(--primary-blue); }
.lead { color: var(--text-light); max-width: 46rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-left: 4px solid var(--primary-blue);
    border-radius: 6px;
    padding: 1rem 1.1rem;
}
.card p { margin: 0.35rem 0 0; color: var(--text-light); }

.btn, button.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    border: 0;
    border-radius: 4px;
    padding: 0.55rem 0.95rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--white); color: var(--primary-blue); border: 1px solid var(--primary-blue); }
.btn.danger { background: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

form.stack { display: grid; gap: 0.85rem; max-width: 46rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; }
input, select, textarea {
    width: 100%;
    font: inherit;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
}
textarea { min-height: 8rem; }
.hint { color: var(--text-light); font-size: 0.85rem; font-weight: 400; }
.error { color: var(--danger); font-size: 0.85rem; margin-top: 0.2rem; }
.alert { background: #E8F0FE; border-left: 4px solid var(--primary-blue); padding: 0.7rem 0.9rem; margin-bottom: 1rem; }
.alert.error { background: #FDECEC; border-left-color: var(--danger); color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.45rem; border-bottom: 1px solid var(--gray-medium); vertical-align: top; }
th { color: var(--primary-blue); font-size: 0.82rem; letter-spacing: 0.02em; }
.pill {
    display: inline-block;
    background: var(--gray-light);
    color: var(--text-dark);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.pill.accepted, .pill.verified, .pill.issued, .pill.favorable { background: #E5F6EC; color: var(--ok); }
.pill.rejected, .pill.unfavorable { background: #FDECEC; color: var(--danger); }
.pill.submitted, .pill.pending, .pill.approved, .pill.under_review { background: #E8F0FE; color: var(--primary-blue); }

.pager { display: flex; gap: 0.8rem; align-items: center; margin-top: 1rem; }
.pager .disabled { color: var(--text-light); }
.main-footer {
    border-top: 1px solid var(--gray-medium);
    color: var(--text-light);
    padding: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
}
.doc-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--gray-medium); }
@media (max-width: 800px) {
    .header-inner { flex-wrap: wrap; }
    .nav { margin-left: 0; width: 100%; }
}

.app-body { background: #eef3f9; min-height: 100vh; }
.app-frame { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.side-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    padding: 1rem 1rem 0.8rem;
    text-decoration: none;
}
.side-brand:hover { text-decoration: none; opacity: 0.92; }
.side-brand img { height: 40px; width: auto; }
.side-brand strong { display: block; letter-spacing: 0.06em; font-size: 1.05rem; }
.side-brand small { display: block; opacity: 0.8; font-size: 0.75rem; }
.side-nav { padding: 0.2rem 0.65rem 1rem; overflow: auto; }
.side-label {
    margin: 0.85rem 0.45rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}
.side-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 0;
    background: transparent;
    width: 100%;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.side-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.side-link:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.side-link.active { background: rgba(255,255,255,0.16); box-shadow: inset 3px 0 0 #fff; }
.side-badge {
    margin-left: auto;
    background: #fff;
    color: var(--primary-blue);
    border-radius: 999px;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 1.3rem;
    text-align: center;
    padding: 0 0.35rem;
}
.side-foot { margin-top: auto; padding: 0.8rem 0.85rem 1rem; border-top: 1px solid rgba(255,255,255,0.16); }
.side-foot p { margin: 0.6rem 0.4rem 0; font-size: 0.72rem; opacity: 0.75; }
.app-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    border-bottom: 1px solid #d5e0ef;
    padding: 0.65rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 5;
}
.top-spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 1px solid #d5e0ef; border-radius: 6px; padding: 0.25rem 0.5rem; font-size: 1.1rem; cursor: pointer; }
.lang-dark a { color: var(--primary-blue); border-color: #b9cbe6; }
.lang-dark a.on { background: var(--primary-blue); color: #fff; }
.account-chip { display: flex; align-items: center; gap: 0.55rem; }
.account-chip strong { display: block; font-size: 0.88rem; line-height: 1.15; }
.account-chip small { display: block; color: var(--text-light); font-size: 0.75rem; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #d7e6f8; color: var(--primary-blue);
    display: grid; place-items: center; font-weight: 700;
}
.impersonation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--primary-blue);
    color: #fff;
    padding: 0.7rem 1.5rem;
}
.impersonation p { margin: 0; font-weight: 500; }
.impersonation .btn { background: #fff; color: var(--primary-blue); }
.impersonation form { margin: 0; }
.user-search { display: flex; gap: 0.6rem; align-items: center; margin: 0.2rem 0 1rem; max-width: 36rem; }
.user-search input { margin: 0; }
.user-search .btn, .btn.small { width: auto; white-space: nowrap; }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; align-items: center; }
.row-actions form { margin: 0; }
.workspace { padding: 1.4rem 1.5rem 2.5rem; }
.page-head { margin-bottom: 1rem; }
.eyebrow { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-blue); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 0.4rem 0 1rem; }
.stat-tile {
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    min-height: 6.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 32, 56, 0.04);
}
.stat-tile:hover { border-color: var(--primary-blue); text-decoration: none; }
.stat-tile span { font-size: 0.78rem; font-weight: 600; color: #4a5a6d; }
.stat-tile strong { font-size: 1.7rem; color: var(--primary-blue); line-height: 1.1; letter-spacing: -0.03em; }
.stat-tile strong.stat-code { font-size: 1rem; letter-spacing: 0; }
.stat-tile small { color: var(--text-light); font-size: 0.75rem; }
.dash-grid { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.2fr); gap: 0.9rem; }
.panel {
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 1px 2px rgba(16, 32, 56, 0.04);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel h2 { margin-top: 0; }
.workspace .card, .workspace form.stack, .workspace table { background: #fff; }
.workspace > table, .workspace > form.stack, .workspace > .card { border-radius: 10px; }
@media (max-width: 900px) {
    .menu-btn { display: inline-block; }
    .sidebar {
        position: fixed;
        z-index: 30;
        transform: translateX(-105%);
        transition: transform 0.18s ease;
        box-shadow: 8px 0 24px rgba(0,0,0,0.18);
    }
    .sidebar.is-open { transform: none; }
    .dash-grid { grid-template-columns: 1fr; }
    .account-chip span { display: none; }
}

.form-sheet { display: grid; gap: 0.9rem; max-width: 880px; }
.form-section {
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 12px;
    padding: 1.05rem 1.15rem 1.15rem;
    box-shadow: 0 1px 2px rgba(16, 32, 56, 0.04);
}
.section-title { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.85rem; }
.section-title > span {
    width: 2rem; height: 2rem; border-radius: 8px;
    background: #e7f0fb; color: var(--primary-blue);
    display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}
.section-title h2 { margin: 0; font-size: 1.05rem; }
.section-title p { margin: 0.15rem 0 0; color: var(--text-light); font-size: 0.88rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
.field.span-2 { grid-column: 1 / -1; }
.field .hint { display: block; margin: -0.1rem 0 0.3rem; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.file-card {
    border: 1px dashed #b7cbe6;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: #f7faff;
}
.file-card label { margin-bottom: 0.15rem; }
.file-flag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #5c6b7e; }
.file-flag.need { color: var(--primary-blue); }
.file-current { margin: 0.35rem 0; font-size: 0.85rem; display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.file-card input[type="file"] { background: transparent; border: 0; padding: 0.35rem 0 0; }
.study-list { display: grid; gap: 0.75rem; }
.study-card {
    border: 1px solid #d5e0ef;
    border-radius: 12px;
    padding: 0.9rem 1rem 0.75rem;
    background: #f8fbff;
}
.study-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 0.75rem; }
.study-slot {
    border: 1px dashed #b7cbe6;
    border-radius: 8px;
    padding: 0.4rem 0.55rem 0.45rem;
    background: #fff;
    min-width: 0;
}
.study-slot label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.05rem; }
.study-slot .file-flag { font-size: 0.62rem; }
.study-slot input[type="file"] { background: transparent; border: 0; padding: 0.15rem 0 0; font-size: 0.75rem; max-width: 100%; }
.study-file-list { list-style: none; margin: 0.35rem 0 0.5rem; padding: 0; display: grid; gap: 0.3rem; }
.study-file-list li { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; font-size: 0.88rem; }
.study-card input[type="file"] { background: #fff; }
.study-card-foot { display: flex; justify-content: flex-end; margin-top: 0.45rem; }
.study-add { margin-top: 0.75rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.2rem; }
.btn.ghost-danger { background: #fff; color: var(--danger); border: 1px solid #e4b4b4; }
.text-danger { background: none; border: 0; color: var(--danger); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 0; }
.guest-panel {
    max-width: 460px;
    margin: 0.5rem auto;
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 14px;
    padding: 1.4rem 1.35rem 1.15rem;
    box-shadow: 0 12px 32px rgba(16, 32, 56, 0.06);
}
.guest-panel .form-sheet { max-width: none; }
.check-row { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.check-row input { width: auto; }
.form-foot { margin: 0.2rem 0 0; }
.criteria { margin-top: 0.9rem; color: #3d4c5f; }
.criteria summary { cursor: pointer; font-weight: 600; color: var(--primary-blue); }
.facts { display: grid; gap: 0.4rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.4rem; }
.facts dt { color: var(--text-light); font-size: 0.82rem; }
.facts dd { margin: 0; }
.choice-set { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.45rem; }
.choice {
    display: inline-flex; align-items: center; gap: 0.4rem;
    border: 1px solid #d5e0ef; border-radius: 999px;
    padding: 0.32rem 0.75rem; background: #fff; font-weight: 500; cursor: pointer;
}
.choice input { width: auto; accent-color: var(--primary-blue); }
.choice:has(input:checked) { border-color: var(--primary-blue); background: #e7f0fb; color: var(--primary-blue); }
.file-card[hidden], .criteria[hidden], .packet[hidden] { display: none; }
.cert-option { grid-template-columns: auto 1fr; align-items: flex-start; }
.cert-option input { margin-top: 0.28rem; }
.cert-option small { display: block; margin-top: 0.15rem; color: var(--text-light); font-weight: 400; font-size: 0.84rem; line-height: 1.4; }
.packet { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.packet-notes { margin: 0 0 0.2rem; padding-left: 1.1rem; color: #3d4c5f; }
.packet .field, .packet .file-card { margin-top: 0.85rem; }
.pay-sheet { max-width: 920px; }
.fee-group { margin-top: 0.85rem; }
.fee-group h3 {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6b7e;
}
.fee-list { display: grid; gap: 0.45rem; }
.fee-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #d5e0ef;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}
.fee-option input { width: auto; accent-color: var(--primary-blue); }
.fee-option strong { display: block; font-size: 0.95rem; line-height: 1.35; }
.fee-amount { font-style: normal; font-weight: 700; color: var(--primary-blue); white-space: nowrap; }
.fee-option:has(input:checked) {
    border-color: var(--primary-blue);
    background: #f4f8fe;
    box-shadow: inset 3px 0 0 var(--primary-blue);
}
.choice.is-disabled { opacity: 0.45; cursor: not-allowed; }
.amount-due {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 0.95rem;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.amount-due span { font-weight: 500; }
.amount-due strong { font-size: 1.45rem; letter-spacing: -0.03em; }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.bank-card {
    border: 1px solid #d5e0ef;
    border-radius: 10px;
    padding: 0.8rem 0.85rem;
    background: #fff;
    min-width: 0;
}
.bank-card header { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; }
.bank-card header strong { color: var(--primary-blue); }
.bank-card header span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #e7f0fb;
    color: var(--primary-blue);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}
.bank-card p { margin: 0.35rem 0 0.55rem; font-size: 0.88rem; }
.bank-card dl { margin: 0; display: grid; gap: 0.45rem; }
.bank-card dt { font-size: 0.72rem; color: var(--text-light); }
.bank-card dd { margin: 0; font-size: 0.88rem; }
.bank-card code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; word-break: break-all; }
.bank-card.is-match { border-color: var(--primary-blue); background: #f4f8fe; }
.bank-card.is-dim { opacity: 0.55; }
.copy-btn {
    background: none;
    border: 0;
    color: var(--primary-blue);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.15rem 0 0;
}
.dropzone {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    text-align: center;
    border: 1px dashed #8aafd8;
    border-radius: 12px;
    padding: 1.15rem 1rem;
    background: #f7faff;
    cursor: pointer;
}
.dropzone strong { color: var(--primary-blue); }
.dropzone span, .dropzone em { color: var(--text-light); font-size: 0.85rem; font-style: normal; }
.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.fee-option { position: relative; padding-right: 2rem; }
.card-go {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 400;
}
.fee-option:hover { border-color: #8aafd8; }
.opt-flag {
    display: inline-block;
    margin: 0.15rem 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5c6b7e;
}
.picker-dialog {
    width: min(760px, calc(100vw - 1.5rem));
    max-height: min(90vh, 920px);
    border: 0;
    border-radius: 16px;
    padding: 0;
    color: var(--text-dark);
    box-shadow: 0 24px 70px rgba(10, 22, 40, 0.28);
}
.picker-dialog::backdrop { background: rgba(10, 22, 40, 0.5); }
.picker-dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dialog-in 0.18s ease;
}
@keyframes dialog-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.picker-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid #d5e0ef;
}
.picker-head h2 { margin: 0; font-size: 1.2rem; }
.picker-head p { margin: 0.2rem 0 0; color: var(--text-light); }
.dialog-x {
    margin-left: auto;
    background: #fff;
    color: var(--primary-blue);
    border: 1px solid #d5e0ef;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.picker-head, .picker-foot { flex: none; }
.picker-body { overflow: auto; flex: 1 1 auto; min-height: 0; padding: 0.4rem 1.15rem 1.15rem; }
.picker-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #d5e0ef;
    background: #fff;
}
.dialog-block { margin-top: 1rem; }
.dialog-block h2 { margin: 0 0 0.25rem; font-size: 1rem; }
.picker-dialog .bank-grid { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) {
    .picker-dialog[open] { animation: none; }
}
.entry-list { display: grid; gap: 0.55rem; margin-top: 0.85rem; }
a.entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 32, 56, 0.04);
}
a.entry:hover { text-decoration: none; border-color: var(--primary-blue); background: #f7faff; }
a.entry strong { display: block; color: var(--primary-blue); }
a.entry .hint { display: block; margin-top: 0.15rem; }
.entry-go { color: var(--primary-blue); font-size: 1.45rem; line-height: 1; }
.back-link { display: inline-block; margin-bottom: 0.7rem; font-weight: 600; }
.dropzone:hover { border-color: var(--primary-blue); background: #eef4fc; }
.pay-actions {
    margin-top: 0.9rem;
    max-width: 920px;
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 2px rgba(16, 32, 56, 0.04);
}
@media (max-width: 700px) {
    .field-grid, .file-grid, .study-slots, .facts div, .bank-grid { grid-template-columns: 1fr; }
    .fee-option { grid-template-columns: auto 1fr; }
    .fee-amount { grid-column: 2; }
}
