:root {
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Newsreader', serif;
    --background: #f4f8fc;
    --foreground: #10243d;
    --card: #ffffff;
    --card-foreground: #10243d;
    --muted: #edf3f9;
    --muted-foreground: #5a718d;
    --border: #d2dfec;
    --input: #cad9e8;
    --ring: #1e5fae;
    --primary: #1e5fae;
    --primary-foreground: #f8fbff;
    --accent-red: #b7374f;
    --accent-red-soft: #fdf2f4;
    --destructive: #dc2626;
    --destructive-foreground: #fafafa;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --radius: 0.75rem;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #091a2c;
        --foreground: #fafafa;
        --card: #0e253d;
        --card-foreground: #fafafa;
        --muted: #112c47;
        --muted-foreground: #b4c7dc;
        --border: #254869;
        --input: #2d5478;
        --ring: #8ec2ff;
        --primary: #8ec2ff;
        --primary-foreground: #0e253d;
        --accent-red: #ff8fa3;
        --accent-red-soft: #4a1d29;
        --destructive: #ef4444;
        --destructive-foreground: #fafafa;
        --success: #22c55e;
        --success-bg: #052e16;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--foreground);
    background:
        radial-gradient(1200px 760px at 8% -20%, rgba(161, 161, 170, 0.2), transparent 60%),
        radial-gradient(1000px 640px at 100% 0%, rgba(212, 212, 216, 0.18), transparent 58%),
        var(--background);
    min-height: 100vh;
}

body.dialog-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    margin-top: 0;
    font-family: var(--font-sans);
    line-height: 1.15;
    text-wrap: balance;
}
h1 {
    font-size: clamp(1.75rem, 4.3vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.032em;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -0.022em;
    font-weight: 650;
}

h3 {
    font-size: clamp(1.02rem, 2vw, 1.24rem);
    line-height: 1.18;
    letter-spacing: -0.016em;
    font-weight: 620;
}

h4 {
    font-size: clamp(.95rem, 1.5vw, 1.05rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.muted,
.subtitle {
    color: var(--muted-foreground);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .3;
    pointer-events: none;
}

.bg-orb-one { width: 320px; height: 320px; background: #d4d4d8; top: -110px; left: -110px; }
.bg-orb-two { width: 260px; height: 260px; background: #8ec2ff; right: -80px; top: 40px; }

.topbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apbmt-ribbon {
    width: 100%;
    background: linear-gradient(90deg, #1e5fae 0%, #2f79cb 62%, #b7374f 100%);
    color: #eaf3ff;
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .38rem 1rem;
    text-align: center;
    font-weight: 700;
}

body.public-theme-apbmt {
    --background: #ece9e8;
    --foreground: #21201f;
    --card: #fbfbfb;
    --card-foreground: #22201f;
    --muted: #f1ecea;
    --muted-foreground: #6b625e;
    --border: #ddd4cf;
    --input: #d5c9c4;
    --ring: #9b2f2a;
    --primary: #a6322d;
    --primary-foreground: #fffaf8;
    --accent-red: #ab4b45;
    --accent-red-soft: #f4e6e4;
    background: var(--background);
}

body.public-theme-apbmt .bg-orb {
    display: none;
}

body.public-theme-apbmt .apbmt-ribbon {
    background: #8f2622;
    color: #f7ecea;
}

body.public-theme-apbmt .topbar {
    max-width: 1280px;
    padding: .9rem 1rem .35rem;
}

body.public-theme-apbmt .brand {
    color: #282422;
    font-weight: 700;
    letter-spacing: -0.015em;
}

body.public-theme-apbmt .topbar nav {
    border: 1px solid #d7ceca;
    background: #f6f1ef;
    box-shadow: none;
}

body.public-theme-apbmt .topbar nav a {
    color: #8e3b34;
}

body.public-theme-apbmt .topbar nav a:hover {
    color: #ffffff;
    background: #a6322d;
}

body.public-theme-apbmt .container {
    max-width: 1280px;
    width: 100%;
}

body.public-theme-apbmt .card,
body.public-theme-apbmt .hero-card,
body.public-theme-apbmt .metric-card {
    border-color: #ddd4cf;
    background: #fbfaf9;
    box-shadow: 0 2px 6px rgba(67, 49, 43, 0.08);
    backdrop-filter: none;
}

body.public-theme-apbmt .hero-card::after {
    display: none;
}

body.public-theme-apbmt .section-kicker,
body.public-theme-apbmt .eyebrow {
    color: #7b3d38;
}

body.public-theme-apbmt .section-kicker::before {
    background: #c59f2c;
    box-shadow: 0 0 0 4px rgba(197, 159, 44, 0.18);
}

body.public-theme-apbmt .btn-primary {
    background: #a6322d;
    border-color: #a6322d;
}

body.public-theme-apbmt .btn-primary:hover {
    background: #8e2a26;
}

body.public-theme-apbmt .btn-outline {
    border-color: #d3c5bf;
    background: #f8f4f2;
    color: #5a413b;
}

body.public-theme-apbmt .btn-outline:hover {
    background: #eee3df;
}

body.public-theme-apbmt .institutional-note {
    border-color: #d9c8c2;
    background: #f4e6e4;
    color: #74463f;
}

body.public-theme-apbmt .feature-item {
    background: #f8f4f2;
    border-color: #ddd0ca;
}

body.public-theme-home .hero-card {
    border-top: 4px solid #b35f57;
}

body.public-theme-home {
    --background: #ffffff;
    --foreground: #242424;
    --card: #ffffff;
    --muted: #f5f6fb;
    --muted-foreground: #555f70;
    --border: #e4e7ef;
    --primary: #aa0000;
    --primary-foreground: #ffffff;
    --ring: #0b2592;
    background: #ffffff;
}

body.public-theme-home .topbar,
body.public-theme-home .container {
    max-width: min(100%, 1440px);
}

body.public-theme-home .apbmt-ribbon {
    display: none;
}

body.public-theme-home .topbar {
    min-height: 5.45rem;
    align-items: center;
    background: #ffffff;
    padding-block: 1rem .85rem;
}

body.public-theme-home .brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #7c1717;
    font-size: 1rem;
    font-weight: 800;
}

body.public-theme-home .brand img {
    height: 3.15rem;
}

body.public-theme-home .topbar nav {
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: .55rem;
}

body.public-theme-home .topbar nav a {
    color: #aa0000;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .58rem .82rem;
}

body.public-theme-home .topbar nav a:hover {
    background: #aa0000;
    color: #ffffff;
}

body.public-theme-home .container {
    padding-inline: clamp(1rem, 3vw, 2rem);
}

body.public-theme-register .form-section,
body.public-theme-register .choice-group,
body.public-theme-register .data-privacy-notice {
    background: #ffffff;
    border-color: #eceff5;
}

body.public-theme-register input,
body.public-theme-register select,
body.public-theme-register textarea {
    background: #ffffff;
    border-color: #d9deea;
}

body.public-theme-register .segmented-option {
    border-color: #d9deea;
    background: #ffffff;
}

body.public-theme-register .segmented-option input:checked + span {
    background: #fff7f7;
    color: #7c1717;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: #184778;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand img,
.sidebar-brand img {
    display: block;
    width: auto;
    height: 2.35rem;
    object-fit: contain;
}

.brand span,
.sidebar-brand span {
    line-height: 1.15;
}

.topbar nav {
    display: flex;
    gap: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, #ffffff 92%, transparent);
    padding: 0.25rem;
    box-shadow: var(--shadow);
}

.topbar nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 600;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    transition: background-color .2s ease, color .2s ease;
}

.topbar nav a:hover {
    background: #e7f0fb;
    color: #184778;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.card,
.hero-card,
.stat-card,
.metric-card {
    background: color-mix(in srgb, var(--card) 94%, transparent);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card {
    padding: 1.1rem;
    margin-bottom: 0.9rem;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    padding: 1.35rem;
    margin-bottom: 0.9rem;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(30, 95, 174, 0.2) 0%, rgba(30, 95, 174, 0) 70%);
}

.quick-start-card {
    border-top: 4px solid color-mix(in srgb, var(--primary) 72%, var(--border));
}

.quick-start-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}

.quick-start-kicker {
    display: inline-block;
    margin-bottom: .25rem;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #7b3d38;
}

.quick-start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .48rem;
    justify-content: flex-end;
}

.btn-lg {
    min-height: 2.65rem;
    padding: .68rem 1.15rem;
    font-size: .92rem;
    font-weight: 700;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 0.74rem;
    color: #4f6986;
    font-weight: 700;
}

.section-intro {
    margin-bottom: .75rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #4f6986;
}

.section-kicker::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--accent-red);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-red) 18%, transparent);
}

.institutional-note {
    margin-top: .45rem;
    border: 1px solid color-mix(in srgb, var(--accent-red) 25%, var(--border));
    background: color-mix(in srgb, var(--accent-red-soft) 70%, var(--card));
    color: #6f2d3d;
    border-radius: calc(var(--radius) - 0.22rem);
    padding: .55rem .65rem;
    font-size: .78rem;
}

.form-meta-grid {
    margin-top: .4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.form-meta-grid .meta-cell {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.25rem);
    background: color-mix(in srgb, var(--card) 92%, var(--muted));
    padding: .5rem .6rem;
}

.form-meta-grid .meta-cell span {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted-foreground);
    font-weight: 700;
}

.form-meta-grid .meta-cell strong {
    display: block;
    margin-top: .15rem;
    font-size: .85rem;
    color: var(--foreground);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.hero-main {
    display: flex;
    flex-direction: column;
}

.hero-quick-meta {
    margin-top: .35rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.hero-quick-meta div {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 86%, var(--muted));
    border-radius: calc(var(--radius) - 0.22rem);
    padding: .5rem .6rem;
}

.hero-quick-meta span {
    display: block;
    font-size: .72rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.hero-quick-meta strong {
    display: block;
    margin-top: .15rem;
    font-size: .88rem;
    color: var(--foreground);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.38rem;
    border-radius: calc(var(--radius) - 0.15rem);
    border: 1px solid var(--input);
    padding: 0.58rem 0.95rem;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #184f92;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
}

.btn-outline:hover {
    background: #eaf2fb;
}

.btn-danger {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
}

.btn-danger:hover {
    background: #901d14;
    border-color: #901d14;
}

.confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirm-dialog.is-open {
    display: flex;
}

.confirm-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 20, 0.55);
    backdrop-filter: blur(2px);
}

.confirm-dialog__content {
    position: relative;
    width: min(100%, 28rem);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 0.08rem);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
    padding: 1.05rem;
    animation: confirm-pop .18s ease-out;
}

.confirm-dialog__title {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.confirm-dialog__description {
    margin: .5rem 0 0;
    color: var(--muted-foreground);
    line-height: 1.4;
    font-size: .92rem;
}

.confirm-dialog__actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

@keyframes confirm-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-sm {
    min-height: 1.95rem;
    padding: .42rem .68rem;
    font-size: .77rem;
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
}

.metric-card,
.stat-card {
    padding: .82rem .86rem;
}

.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.stat-card-link:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    background: color-mix(in srgb, var(--card) 88%, #eaf2fb);
    box-shadow: 0 10px 24px -16px rgba(16, 36, 61, 0.5);
}

.stat-card-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.metric-card span,
.stat-card span {
    color: var(--muted-foreground);
    font-size: .76rem;
}

.metric-card strong,
.stat-card strong {
    display: block;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    margin-top: .28rem;
}

.metric-card small {
    color: var(--muted-foreground);
}

.stat-card small {
    display: block;
    margin-top: .24rem;
    font-size: .72rem;
    color: var(--muted-foreground);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .55rem;
}

.feature-item {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    background: color-mix(in srgb, var(--card) 94%, transparent);
    padding: .75rem;
}

.feature-item h3 {
    margin-bottom: .45rem;
    font-size: .98rem;
}

.feature-item p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: .82rem;
    line-height: 1.5;
}

.landing-section {
    margin-top: .75rem;
    scroll-margin-top: 1rem;
}

.landing-section .section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--border);
}

.landing-section p {
    line-height: 1.55;
}

.landing-section a:not(.btn),
.contact-panel a:not(.btn) {
    color: var(--primary);
    font-weight: 700;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.info-card-grid .feature-item,
.landing-split .feature-item,
.payment-table-card {
    box-shadow: 0 8px 22px -20px rgba(67, 49, 43, 0.5);
}

.step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: registration-step;
}

.step-list li {
    counter-increment: registration-step;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    background: color-mix(in srgb, var(--card) 95%, var(--muted));
    padding: .72rem;
    color: var(--foreground);
    font-size: .86rem;
    font-weight: 650;
}

.step-list li::before {
    content: counter(registration-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    margin-right: .42rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: .74rem;
    font-weight: 800;
}

.fee-table th span,
.fee-table small {
    color: var(--muted-foreground);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.fee-table {
    table-layout: fixed;
}

.fee-table th,
.fee-table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

.fee-table tbody td:first-child {
    color: var(--foreground);
    font-weight: 800;
}

.landing-note {
    margin: .65rem 0 0;
}

.landing-split {
    align-items: stretch;
}

.landing-split .feature-item {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.info-list {
    margin: 0;
    display: grid;
    gap: .58rem;
}

.info-list dt {
    color: #7b3d38;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.info-list dd {
    margin: 0;
    color: var(--muted-foreground);
    font-size: .84rem;
    line-height: 1.45;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.landing-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-top: .82rem;
}

.landing-jump-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, var(--card));
    color: var(--foreground);
    padding: .34rem .7rem;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 750;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.landing-jump-links a:hover,
.landing-jump-links a:focus {
    background: color-mix(in srgb, var(--primary) 15%, var(--card));
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    transform: translateY(-1px);
}

.payment-intro-grid {
    margin-bottom: .75rem;
}

.payment-checklist ul {
    display: grid;
    gap: .48rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.payment-checklist li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--muted-foreground);
    font-size: .84rem;
    line-height: 1.45;
}

.payment-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42rem;
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: var(--accent-red);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-red) 14%, transparent);
}

.payment-table-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr .85fr;
    gap: .7rem;
    margin-bottom: .75rem;
}

.payment-table-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.16rem);
    background: color-mix(in srgb, var(--card) 96%, var(--muted));
}

.payment-table-head {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f7efed 0%, #efe3df 100%);
    padding: .72rem .78rem;
}

.payment-table-head span {
    display: block;
    color: #7b3d38;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.payment-table-head h3 {
    margin: .18rem 0 0;
    font-size: .98rem;
}

.compact-table-wrap .table {
    min-width: 0;
}

.payment-table,
.policy-table {
    border: 0;
    border-radius: 0;
}

.payment-table th,
.payment-table td,
.policy-table th,
.policy-table td {
    vertical-align: top;
    font-size: .82rem;
}

.payment-table tbody th,
.policy-table tbody th {
    width: 42%;
    background: color-mix(in srgb, var(--card) 82%, var(--muted));
    color: #6b3e37;
    font-weight: 800;
}

.payment-table tbody tr:hover,
.policy-table tbody tr:hover {
    background: transparent;
}

.payment-table tbody tr:last-child th,
.policy-table tbody tr:last-child th {
    border-bottom: none;
}

.payment-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid rgba(8, 25, 140, .18);
    border-radius: .55rem;
    background: #f7f9ff;
    padding: .32rem .55rem;
    color: #08198c;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.payment-link:hover,
.payment-link:focus-visible {
    border-color: rgba(170, 0, 0, .35);
    background: #fff7f7;
    color: #aa0000;
    outline: none;
}

.annual-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
    align-items: stretch;
    overflow: hidden;
    margin: 0 calc(clamp(1rem, 3vw, 2rem) * -1) 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 58%, rgba(255,255,255,.82) 100%),
        radial-gradient(circle at 88% 24%, rgba(103, 170, 248, .28), transparent 24rem),
        radial-gradient(circle at 72% 78%, rgba(170, 0, 0, .12), transparent 18rem),
        #ffffff;
    border-bottom: 1px solid #edf0f6;
}

.annual-hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.8rem) clamp(1.25rem, 5vw, 4.2rem);
}

.annual-kicker {
    margin: 0 0 .65rem;
    color: #0b2592;
    font-size: clamp(1.35rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.05;
}

.annual-hero h1 {
    max-width: 38rem;
    margin: 0;
    color: #202020;
    font-size: clamp(1.35rem, 2.7vw, 2.7rem);
    line-height: 1.1;
    font-weight: 700;
}

.annual-hero h1 span {
    display: block;
    margin-top: .35rem;
    color: #aa0000;
    font-size: 1.16em;
    font-weight: 800;
}

.annual-date-pill {
    width: fit-content;
    margin-top: 1.25rem;
    border-radius: 999px;
    background: #67aaf8;
    color: #ffffff;
    padding: .55rem 1.1rem;
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.annual-venue {
    max-width: 30rem;
    margin: 1rem 0 0;
    color: #444;
    font-size: .94rem;
    font-weight: 650;
}

.annual-emphasis {
    display: grid;
    gap: .18rem;
    margin-top: 1.2rem;
}

.annual-emphasis strong {
    color: #aa0000;
    font-size: 1.28rem;
    font-weight: 800;
}

.annual-emphasis span {
    color: #555f70;
    font-size: .9rem;
}

.annual-overview,
.annual-section {
    max-width: 1180px;
    margin-inline: auto;
}

.annual-hero__panel {
    display: grid;
    align-content: center;
    gap: .9rem;
    padding: clamp(1.25rem, 4vw, 3rem);
}

.annual-hero__panel div {
    border: 1px solid rgba(8, 25, 140, .14);
    border-left: 5px solid #aa0000;
    border-radius: .95rem;
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 42px -32px rgba(8, 25, 140, .45);
    padding: 1rem;
}

.annual-hero__panel span {
    display: block;
    color: #555f70;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.annual-hero__panel strong {
    display: block;
    margin-top: .2rem;
    color: #08198c;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.05;
}

.annual-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .6fr);
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}

.annual-overview article,
.annual-overview aside,
.annual-section {
    border: 1px solid #eceff5;
    background: #ffffff;
    box-shadow: 0 18px 42px -34px rgba(20, 20, 20, .35);
}

.annual-overview article,
.annual-overview aside {
    border-radius: 1rem;
    padding: clamp(1.1rem, 3vw, 1.8rem);
}

.annual-overview h2,
.annual-section h2 {
    color: #aa0000;
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    font-weight: 800;
}

.annual-overview aside {
    background: #08198c;
    color: #ffffff;
}

.annual-overview aside strong {
    display: block;
    margin-bottom: .7rem;
    font-size: 1.05rem;
}

.annual-overview aside ol {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding-left: 1.15rem;
}

.annual-overview aside li {
    line-height: 1.45;
}

.registration-journey {
    scroll-margin-top: 1rem;
}

.registration-journey .section-intro {
    align-items: end;
}

.journey-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .8rem;
}

.journey-track a {
    position: relative;
    display: grid;
    gap: .22rem;
    min-height: 7.1rem;
    border: 1px solid #eceff5;
    border-radius: .9rem;
    background: #ffffff;
    padding: .75rem;
    text-decoration: none;
    color: #202020;
    box-shadow: 0 10px 26px -24px rgba(8, 25, 140, .45);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.journey-track a:hover,
.journey-track a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(170, 0, 0, .34);
    box-shadow: 0 16px 34px -26px rgba(170, 0, 0, .55);
    outline: none;
}

.journey-track span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #08198c;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
}

.journey-track strong {
    margin-top: .18rem;
    color: #aa0000;
    font-size: .92rem;
    line-height: 1.2;
}

.journey-track small {
    color: #555f70;
    font-size: .74rem;
    line-height: 1.35;
}

.annual-section {
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 1.6rem);
}

.annual-date-grid .feature-item {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.annual-date-grid .feature-item span {
    display: inline-flex;
    margin-bottom: .5rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #0b2592;
    padding: .24rem .58rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.annual-date-grid .feature-item.is-highlighted {
    border-color: #aa0000;
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.annual-date-grid .feature-item.is-highlighted span {
    background: #aa0000;
    color: #ffffff;
}

.payment-note-grid,
.policy-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .75rem;
}

.annual-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .9rem;
    border: 1px solid rgba(8, 25, 140, .14);
    border-left: 5px solid #08198c;
    border-radius: .9rem;
    background: #f7f9ff;
    padding: 1rem;
}

.annual-callout strong,
.annual-callout span {
    display: block;
}

.annual-callout strong {
    color: #08198c;
    font-size: 1rem;
}

.annual-callout span {
    margin-top: .2rem;
    color: #555f70;
    font-size: .86rem;
}

.ready-register-panel {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(20rem, 1.14fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: .75rem;
    border-color: rgba(170, 0, 0, .18);
    background:
        linear-gradient(135deg, #fff7f7 0%, #ffffff 46%),
        #ffffff;
}

.ready-register-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ready-register-copy h2 {
    margin: .45rem 0 .5rem;
}

.ready-register-copy p {
    margin: 0;
    color: #555f70;
}

.ready-register-card {
    border: 1px solid #eceff5;
    border-left: 5px solid #aa0000;
    border-radius: .9rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 18px 42px -34px rgba(20, 20, 20, .45);
}

.ready-register-card h3 {
    margin-bottom: .6rem;
    color: #08198c;
}

.ready-register-card ul {
    display: grid;
    gap: .48rem;
    margin: 0 0 .85rem;
    padding-left: 1.05rem;
    color: #555f70;
    font-size: .86rem;
    line-height: 1.45;
}

.annual-fee-table thead th {
    background: #08198c;
    color: #ffffff;
}

.annual-fee-table thead th span {
    color: rgba(255,255,255,.82);
}

.annual-fee-table tbody td:nth-child(2) {
    background: #fff7f7;
    color: #7c1717;
}

.annual-step-list li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .36rem;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: center;
}

.annual-step-list li::before {
    display: none;
}

.annual-step-list li strong,
.annual-step-list li span {
    display: block;
}

.annual-step-list li strong {
    color: #08198c;
    font-size: .95rem;
    line-height: 1.25;
}

.annual-step-list li span {
    color: var(--muted-foreground);
    font-size: .78rem;
    font-weight: 600;
}

.annual-step-list .step-orb {
    display: grid;
    place-items: center;
    gap: .45rem;
    width: min(100%, 10.25rem);
    aspect-ratio: 1;
    border: .34rem solid #08198c;
    border-radius: 999px;
    background: #ffffff;
    color: #08198c;
    box-shadow: 0 10px 20px -18px rgba(8, 25, 140, .65);
    padding: 1rem;
}

.annual-step-list li:nth-child(odd) .step-orb {
    border-color: #aa0000;
    color: #aa0000;
}

.annual-step-list .step-orb span {
    color: #09132a;
    font-size: .78rem;
    font-weight: 800;
}

.annual-step-list .step-orb svg {
    width: 3rem;
    height: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.annual-footer-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem calc(clamp(1rem, 3vw, 2rem) * -1) 0;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 8vw, 9rem);
    background: #071786;
    color: #ffffff;
}

.annual-footer-panel span,
.annual-footer-panel strong {
    display: block;
}

.annual-footer-panel span {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.annual-footer-panel strong {
    margin-bottom: .35rem;
}

.annual-footer-panel p {
    margin: .25rem 0;
    color: rgba(255,255,255,.88);
}

.annual-footer-panel a:not(.btn) {
    color: #ffffff;
}

.annual-footer-panel .btn-outline {
    border-color: rgba(255,255,255,.55);
    color: #ffffff;
    background: transparent;
}

body.public-theme-home .annual-hero {
    background:
        linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 64%, rgba(248, 250, 255, .92) 100%),
        #ffffff;
}

body.public-theme-home .annual-hero__panel div {
    border-left-width: 3px;
    box-shadow: none;
}

body.public-theme-home .landing-jump-links a {
    min-height: 1.86rem;
    background: #ffffff;
}

body.public-theme-home .annual-overview {
    gap: .8rem;
    padding: clamp(1.25rem, 4vw, 2.4rem) 0 .35rem;
}

body.public-theme-home .annual-overview article,
body.public-theme-home .annual-overview aside,
body.public-theme-home .annual-section {
    box-shadow: none;
}

body.public-theme-home .annual-overview article,
body.public-theme-home .annual-section {
    border-color: #eef1f6;
    background: #ffffff;
}

body.public-theme-home .annual-overview aside {
    border: 0;
    background: #f7f9ff;
    color: #202020;
}

body.public-theme-home .annual-overview aside strong {
    color: #08198c;
}

body.public-theme-home .annual-overview aside li {
    color: #555f70;
}

body.public-theme-home .landing-section {
    margin-top: .9rem;
}

body.public-theme-home .landing-section .section-intro {
    align-items: start;
    padding-bottom: .48rem;
    border-bottom-color: #eef1f6;
}

body.public-theme-home .annual-section h2 {
    font-size: clamp(1.22rem, 2vw, 1.68rem);
    letter-spacing: 0;
}

body.public-theme-home .feature-item,
body.public-theme-home .payment-table-card,
body.public-theme-home .ready-register-card {
    box-shadow: none;
}

body.public-theme-home .feature-item {
    border-color: #eef1f6;
    background: #ffffff;
}

body.public-theme-home .journey-track {
    gap: .42rem;
}

body.public-theme-home .journey-track a {
    min-height: 5.8rem;
    border-color: #eef1f6;
    border-radius: .78rem;
    box-shadow: none;
    padding: .65rem;
}

body.public-theme-home .journey-track a:hover,
body.public-theme-home .journey-track a:focus-visible {
    transform: translateY(-1px);
    box-shadow: none;
}

body.public-theme-home .journey-track span {
    width: 1.55rem;
    height: 1.55rem;
    font-size: .72rem;
}

body.public-theme-home .annual-date-grid .feature-item.is-highlighted {
    background: #fffafa;
}

body.public-theme-home .annual-step-list .step-orb {
    width: min(100%, 8.8rem);
    border-width: .24rem;
    box-shadow: none;
}

body.public-theme-home .annual-step-list .step-orb svg {
    width: 2.45rem;
    height: 2.45rem;
}

body.public-theme-home .payment-table-head {
    background: #f7f9ff;
}

body.public-theme-home .payment-table-card {
    border-color: #eef1f6;
}

body.public-theme-home .payment-table tbody th,
body.public-theme-home .policy-table tbody th {
    background: #fafbfe;
}

body.public-theme-home .institutional-note,
body.public-theme-home .annual-callout {
    border-left-width: 3px;
}

body.public-theme-home .ready-register-panel {
    background: #ffffff;
}

body.public-theme-home .ready-register-card {
    border-left-width: 3px;
}

.tracking-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
    gap: 1rem;
    align-items: stretch;
}

.tracking-form-panel,
.tracking-help-panel {
    border: 1px solid #eceff5;
    border-radius: .9rem;
    background: #ffffff;
    padding: clamp(1rem, 3vw, 1.4rem);
    box-shadow: 0 14px 34px -32px rgba(8, 25, 140, .34);
}

.tracking-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: end;
}

.tracking-form label {
    color: #555f70;
    font-weight: 800;
}

.tracking-form input {
    background: #fff;
}

.tracking-form .btn {
    min-height: 2.55rem;
}

.tracking-help-panel {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    background:
        linear-gradient(135deg, rgba(8, 25, 140, .96), rgba(8, 25, 140, .9)),
        #08198c;
    color: #ffffff;
}

.tracking-help-panel h3 {
    margin-bottom: .7rem;
    color: #ffffff;
}

.tracking-help-list {
    display: grid;
    gap: .55rem;
    margin-bottom: auto;
}

.tracking-help-list div {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .72rem;
    background: rgba(255,255,255,.08);
    padding: .58rem .65rem;
}

.tracking-help-list span {
    display: block;
    margin-bottom: .16rem;
    color: rgba(255,255,255,.74);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tracking-help-list strong {
    display: block;
    color: rgba(255,255,255,.92);
    font-size: .82rem;
    line-height: 1.4;
}

.tracking-help-panel .btn-outline {
    border-color: rgba(255,255,255,.55);
    color: #ffffff;
    background: transparent;
}

.registration-shell {
    max-width: 1040px;
}

.registration-intro {
    align-items: center;
}

.registration-intro p {
    margin: 0;
    font-weight: 650;
}

.registration-form {
    gap: 1rem;
}

.page-guide-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: 1rem;
}

.page-guide-strip div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .55rem;
    row-gap: .12rem;
    align-items: start;
    border: 1px solid #eceff5;
    border-radius: .85rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: .68rem;
}

.page-guide-strip span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #08198c;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 800;
}

.page-guide-strip div:nth-child(even) span {
    background: #aa0000;
}

.page-guide-strip strong {
    color: #2b3038;
    font-size: .82rem;
    line-height: 1.25;
}

.page-guide-strip small {
    color: #555f70;
    font-size: .72rem;
    line-height: 1.35;
}

.registration-form .form-section {
    border-radius: .9rem;
    padding: 1rem;
    box-shadow: 0 12px 28px -30px rgba(8, 25, 140, .32);
}

.registration-form .form-section > legend {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #aa0000;
    font-size: .86rem;
    letter-spacing: .02em;
}

.registration-form .form-section > legend span {
    display: inline-flex;
    border-radius: 999px;
    background: #08198c;
    color: #ffffff;
    padding: .22rem .58rem;
    font-size: .68rem;
    letter-spacing: .05em;
}

.registration-form label,
.registration-form .choice-group legend {
    color: #2b3038;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    min-height: 2.55rem;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    border-color: #08198c;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(8, 25, 140, .18);
}

.registration-form .choice-group {
    border-radius: .85rem;
    padding: .8rem;
}

.registration-form .segmented-option {
    min-height: 2.45rem;
}

.registration-form .segmented-option input:checked + span {
    box-shadow: inset 0 0 0 1px rgba(170, 0, 0, .18);
}

.registration-form .data-privacy-notice {
    border: 1px solid var(--border);
    border-radius: .85rem;
    background: color-mix(in srgb, var(--card) 96%, transparent);
    padding: .8rem;
}

.registration-form .data-privacy-notice.is-invalid-group {
    border-color: color-mix(in srgb, var(--destructive) 48%, var(--border));
}

.registration-form .data-privacy-notice > legend {
    padding: 0 .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: #2b3038;
}

.registration-form .data-privacy-copy {
    display: grid;
    gap: .38rem;
    margin: .12rem 0 .68rem;
}

.registration-form .data-privacy-copy p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: .74rem;
    line-height: 1.5;
}

.registration-form .privacy-consent-option {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    color: #2b3038;
}

.registration-form .privacy-consent-option input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    min-height: auto;
    margin: 0;
    accent-color: var(--primary);
}

.registration-upload {
    border: 1px solid #eceff5;
    border-left: 4px solid #aa0000;
    border-radius: .9rem;
    background: #fff;
    padding: 1rem;
}

.registration-form .sticky-actions {
    justify-content: flex-end;
    border-color: #eceff5;
    background: rgba(255,255,255,.95);
    box-shadow: 0 18px 42px -34px rgba(20, 20, 20, .45);
}

.tracking-result-shell {
    display: grid;
    gap: 1rem;
}

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

.tracking-summary--annual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-left: 5px solid #aa0000;
    background: #fff7f7;
    box-shadow: 0 12px 28px -30px rgba(8, 25, 140, .35);
}

.tracking-summary--annual span {
    color: #555f70;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tracking-summary--annual strong {
    color: #aa0000;
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.tracking-timeline {
    display: grid;
    gap: .75rem;
    border-left: 0;
    padding-left: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    border: 1px solid #eceff5;
    border-radius: .85rem;
    background: #ffffff;
    padding: .9rem;
}

.timeline-item .dot {
    width: .9rem;
    height: .9rem;
    margin-top: .2rem;
    border-radius: 999px;
    background: #d7dce8;
    box-shadow: 0 0 0 5px #f4f6fb;
}

.timeline-item.done .dot {
    background: #08198c;
}

.timeline-item.reject .dot {
    background: #aa0000;
}

.timeline-item strong {
    color: #242424;
}

.timeline-item p {
    margin: .2rem 0 0;
    color: #555f70;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem;
}

.admin-form-grid {
    gap: .85rem;
}

.form-section {
    margin: 0;
    padding: .82rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.16rem);
    background: color-mix(in srgb, var(--card) 94%, var(--muted));
}

.form-section + .form-section {
    margin-top: .12rem;
}

.form-section > legend {
    padding: 0 .42rem;
    color: #355879;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.choice-group {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    padding: .62rem;
    background: color-mix(in srgb, var(--card) 95%, transparent);
}

.choice-group.is-invalid-group {
    border-color: color-mix(in srgb, var(--destructive) 48%, var(--input));
}

.choice-group legend {
    padding: 0 .35rem;
    color: #355879;
    font-size: .76rem;
    font-weight: 700;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .15rem;
}

.segmented-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 0.22rem);
    background: color-mix(in srgb, var(--card) 95%, transparent);
    min-height: 2.2rem;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.segmented-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.segmented-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.1rem;
    border-radius: calc(var(--radius) - 0.26rem);
    font-size: .82rem;
    font-weight: 600;
    color: var(--foreground);
    transition: background-color .16s ease, color .16s ease;
}

.segmented-option input:checked + span {
    background: color-mix(in srgb, var(--primary) 14%, var(--card));
}

.segmented-option:focus-within {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--input));
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--ring) 28%, transparent);
}

.form-surface {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.18rem);
    background: color-mix(in srgb, var(--card) 96%, transparent);
}

.compact-form-surface {
    padding: .78rem;
}

.form-intro {
    margin-bottom: .72rem;
}

.form-intro h2,
.form-intro h3 {
    margin-bottom: .2rem;
}

label {
    display: grid;
    gap: .38rem;
    font-size: .82rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--foreground) 92%, #fff 8%);
}

.field-label {
    font-size: .79rem;
    letter-spacing: .015em;
    color: #355879;
}

.field-label .muted,
.field-help {
    font-size: .74rem;
    color: var(--muted-foreground);
}

.field-error {
    min-height: 1.05rem;
    font-size: .73rem;
    color: #9b2f2a;
    line-height: 1.35;
}

input,
select,
textarea,
progress {
    width: 100%;
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--input);
    background: transparent;
    color: var(--foreground);
    border-radius: calc(var(--radius) - 0.25rem);
    min-height: 2.38rem;
    padding: .58rem .72rem;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted-foreground) 72%, transparent);
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--ring) 28%, transparent);
}

input:invalid,
select:invalid,
textarea:invalid,
.is-invalid {
    border-color: color-mix(in srgb, var(--destructive) 48%, var(--input));
}

input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus,
.is-invalid:focus {
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--destructive) 26%, transparent);
}

.full { grid-column: 1 / -1; }

.sticky-actions {
    position: sticky;
    bottom: .5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.1rem);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    padding: .65rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.alert {
    border-radius: calc(var(--radius) - 0.1rem);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--card-foreground);
    margin-bottom: .65rem;
    padding: .62rem .72rem;
    font-size: .84rem;
}

.alert.success {
    border-color: color-mix(in srgb, var(--success) 35%, var(--border));
    background: var(--success-bg);
}

.alert.error {
    border-color: color-mix(in srgb, var(--destructive) 35%, var(--border));
    background: color-mix(in srgb, var(--destructive) 8%, var(--card));
}

.alert ul {
    margin: .4rem 0 0;
    padding-left: 1.1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: .16rem .55rem;
    font-size: .68rem;
    letter-spacing: .04em;
    font-weight: 700;
}

.badge.pending {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e5fae;
}

.badge.approved {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.badge.rejected {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.progress {
    appearance: none;
    height: .55rem;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--muted);
}

.progress::-webkit-progress-bar { background: var(--muted); }
.progress::-webkit-progress-value { background: var(--primary); }
.progress::-moz-progress-bar { background: var(--primary); }

.code-box {
    border: 1px dashed var(--border);
    border-radius: calc(var(--radius) - 0.1rem);
    margin: .8rem 0;
    padding: .85rem;
}

.code-box strong {
    display: block;
    margin-top: .2rem;
    font-size: 1.4rem;
    letter-spacing: .02em;
}

.qr-preview {
    margin-top: .6rem;
    width: 160px;
    height: 160px;
    border-radius: calc(var(--radius) - 0.15rem);
    border: 1px solid var(--border);
}

.status-timeline {
    margin-top: .8rem;
    border-left: 1px solid var(--border);
    padding-left: .9rem;
}

.tracking-summary {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    background: color-mix(in srgb, var(--card) 92%, var(--muted));
    padding: .6rem .7rem;
    margin-bottom: .65rem;
    font-size: .83rem;
}

.attachment-preview-image {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    background: #fff;
}

.attachment-preview-frame {
    width: 100%;
    min-height: 560px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    background: #fff;
}

.preview-dialog {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform .18s cubic-bezier(.4,2,.6,1);
}

.preview-zoom-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.preview-zoom-controls .btn {
    border: 1px solid #800000;
    color: #800000;
    background: #fff;
    border-radius: 4px;
    padding: 0.2rem 0.7rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.preview-zoom-controls .btn:hover,
.preview-zoom-controls .btn:focus {
    background: #800000;
    color: #fff;
    outline: none;
}

.preview-dialog.is-open {
    display: flex;
}

.preview-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 20, 0.55);
    backdrop-filter: blur(2px);
}

.preview-dialog__content {
    position: relative;
    width: min(100%, 62rem);
    max-height: calc(100vh - 2rem);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 0.08rem);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
    padding: .9rem;
    animation: confirm-pop .18s ease-out;
    overflow: auto;
}

.preview-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .65rem;
}

.preview-dialog__head h3 {
    margin: 0;
}

.preview-dialog__body {
    min-height: 220px;
}

.status-timeline:not(.tracking-timeline) .timeline-item {
    position: relative;
    margin-bottom: .92rem;
}

.status-timeline:not(.tracking-timeline) .timeline-item .dot {
    width: .56rem;
    height: .56rem;
    border-radius: 999px;
    background: var(--muted-foreground);
    position: absolute;
    left: -1.18rem;
    top: .34rem;
}

.status-timeline:not(.tracking-timeline) .timeline-item.done .dot { background: var(--success); }
.status-timeline:not(.tracking-timeline) .timeline-item.done.reject .dot { background: var(--destructive); }

.admin-body {
    --background: #ece9e8;
    --foreground: #21201f;
    --card: #fbfbfb;
    --card-foreground: #22201f;
    --muted: #f1ecea;
    --muted-foreground: #6b625e;
    --border: #ddd4cf;
    --input: #d5c9c4;
    --ring: #9b2f2a;
    --primary: #a6322d;
    --primary-foreground: #fffaf8;
    --accent-red: #ab4b45;
    --accent-red-soft: #f4e6e4;
    display: grid;
    grid-template-columns: 244px 1fr;
    gap: 0;
}

body.admin-theme-apbmt {
    background: var(--background);
}

.sidebar {
    min-height: 100vh;
    border-right: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 96%, var(--muted));
    backdrop-filter: none;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .38rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -0.02em;
    margin-bottom: .45rem;
    color: var(--foreground);
}

.sidebar-brand img {
    height: 2.15rem;
    flex: 0 0 auto;
}

.sidebar a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 600;
    border-radius: calc(var(--radius) - 0.2rem);
    border: 1px solid transparent;
    padding: .5rem .58rem;
}

.sidebar a:hover {
    color: #fffaf8;
    background: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
}

.admin-main {
    padding: 1rem;
}

.admin-main h1 {
    font-size: clamp(1.32rem, 2.15vw, 1.72rem);
    line-height: 1.1;
    letter-spacing: -0.018em;
    font-weight: 650;
}

.admin-main h2 {
    font-size: clamp(1.08rem, 1.65vw, 1.34rem);
    line-height: 1.14;
    letter-spacing: -0.013em;
    font-weight: 620;
}

.admin-main h3 {
    font-size: clamp(.97rem, 1.18vw, 1.08rem);
    line-height: 1.18;
    letter-spacing: -0.009em;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: .82rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.12rem);
    overflow: hidden;
}

.table th,
.table td {
    text-align: left;
    padding: .55rem .62rem;
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
    line-height: 1.45;
}

.table thead th {
    background: linear-gradient(180deg, #f6efed 0%, #efe3df 100%);
    font-size: .74rem;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: #6b3e37;
    font-weight: 800;
}

.table tbody tr:hover {
    background: #f7f0ee;
}

.table tbody tr:last-child td { border-bottom: none; }

.filter-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    margin-bottom: .7rem;
}

.split-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem;
    margin: .72rem 0;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .75rem;
}

.section-head h1 {
    margin-bottom: .22rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-wrap .table {
    min-width: 1240px;
}

.table-wrap .fee-table {
    min-width: 760px;
}

body.public-theme-home .landing-section .table-wrap {
    overflow-x: visible;
}

body.public-theme-home .landing-section .table-wrap .table,
body.public-theme-home .landing-section .table-wrap .fee-table {
    min-width: 0;
}

.table.sticky-head thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-wrap.density-compact .table th,
.table-wrap.density-compact .table td {
    padding: .4rem .52rem;
    font-size: .77rem;
}

.table-wrap.density-comfortable .table th,
.table-wrap.density-comfortable .table td {
    padding: .62rem .7rem;
}

.table-toolbar {
    align-items: center;
}

.density-toggle {
    display: inline-flex;
    gap: .35rem;
    padding-right: .25rem;
    margin-right: .1rem;
    border-right: 1px solid var(--border);
}

.density-toggle .btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.admin-theme-apbmt .card,
.admin-theme-apbmt .stat-card,
.admin-theme-apbmt .metric-card {
    border-color: var(--border);
    background: color-mix(in srgb, var(--card) 96%, var(--muted));
    box-shadow: 0 2px 8px rgba(67, 49, 43, 0.08);
    backdrop-filter: none;
}

.admin-theme-apbmt .btn-outline {
    border-color: #d3c5bf;
    background: #f8f4f2;
    color: #5a413b;
}

.admin-theme-apbmt .btn-outline:hover {
    background: #eee3df;
}

.admin-filter-grid {
    align-items: end;
}

.admin-filter-grid label {
    font-size: .75rem;
    color: var(--muted-foreground);
}

.admin-filter-grid input,
.admin-filter-grid select {
    margin-top: .2rem;
}

.filter-actions {
    display: flex;
    gap: .45rem;
}

.form-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: calc(var(--radius) - 0.15rem);
    padding: 1rem;
    background: color-mix(in srgb, var(--card) 90%, var(--muted));
}

.empty-state h3 {
    margin-bottom: .2rem;
}

.reg-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.reg-meta-item {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.2rem);
    background: color-mix(in srgb, var(--card) 95%, var(--muted));
    padding: .6rem .68rem;
}

.reg-meta-item span {
    display: block;
    color: var(--muted-foreground);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.reg-meta-item strong {
    display: block;
    margin-top: .18rem;
    font-size: .9rem;
    line-height: 1.4;
    word-break: break-word;
}

.admin-actions-grid .card {
    margin-bottom: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--foreground);
}

.checkbox-row input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-height: auto;
    margin: 0;
}

.pagination-wrap {
    margin-top: .72rem;
}

.pagination-wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .6rem;
    border-radius: calc(var(--radius) - 0.24rem);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--foreground);
    background: var(--card);
    font-size: .8rem;
}

.pagination-wrap .active span,
.pagination-wrap a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.fade-up {
    animation: fade-up .34s ease both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .annual-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .annual-hero__copy {
        padding-block: 2rem;
    }

    .annual-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 1rem;
    }

    .annual-footer-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracking-shell {
        grid-template-columns: 1fr;
    }

    .page-guide-strip,
    .tracking-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-card,
    .chart-grid,
    .split-panels {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .info-card-grid,
    .step-list,
    .payment-note-grid,
    .policy-detail-grid,
    .payment-table-grid {
        grid-template-columns: 1fr;
    }

    .journey-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ready-register-panel {
        grid-template-columns: 1fr;
    }

    .annual-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-section .section-intro {
        display: block;
    }

    .quick-start-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-start-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .form-meta-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reg-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 700px) {
    body.public-theme-home .topbar {
        align-items: flex-start;
    }

    body.public-theme-home .brand {
        font-size: .86rem;
    }

    .brand img {
        height: 2rem;
    }

    body.public-theme-home .brand img {
        height: 2.45rem;
    }

    body.public-theme-home .topbar nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .annual-hero {
        margin-inline: -1rem;
    }

    .annual-hero__copy {
        padding: 1.4rem 1rem 1.6rem;
    }

    .annual-date-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: .8rem;
    }

    .annual-footer-panel {
        margin-inline: -1rem;
    }

    .annual-section {
        border-radius: .75rem;
    }

    body.public-theme-home .landing-section .table-wrap {
        overflow-x: auto;
    }

    body.public-theme-home .landing-section .table-wrap .fee-table {
        min-width: 760px;
    }

    body.public-theme-home .landing-section .table-wrap .policy-table {
        min-width: 520px;
    }

    .journey-track {
        grid-template-columns: 1fr;
    }

    .page-guide-strip,
    .tracking-result-grid {
        grid-template-columns: 1fr;
    }

    .journey-track a {
        min-height: 0;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .journey-track small {
        grid-column: 2;
    }

    .form-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: .7rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        width: 100%;
    }

    .form-actions-inline {
        width: 100%;
    }

    .form-actions-inline .btn {
        flex: 1;
    }

    .density-toggle {
        border-right: 0;
        margin-right: 0;
        padding-right: 0;
        width: 100%;
    }

    .density-toggle .btn {
        flex: 1;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .reg-meta-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .topbar nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero-quick-meta {
        grid-template-columns: 1fr;
    }

    .apbmt-ribbon {
        font-size: .64rem;
        letter-spacing: .03em;
    }
}
