:root {
    --s50: #F0F7FC;
    --s100: #E1EFF9;
    --s200: #C3DFF3;
    --s300: #A0CCEA;
    --s400: #79B6E0;
    --s500: #59A5D8;
    --s600: #3D8BC2;
    --s700: #2F6F9E;
    --s800: #285A80;
    --s900: #1F4764;
    --s950: #12293D;
    --text: var(--s950);
    --muted: #4A6479;
    --line: var(--s200);
    --good: #1C7C4E;
    --good-bg: #E5F6EE;
    --warn: #9A6412;
    --warn-bg: #FFF4DE;
    --bad: #A3262C;
    --bad-bg: #FDECEC;
    --sans: Manrope, system-ui, sans-serif;
    --shadow: 0 1px 2px rgba(18, 41, 61, 0.06), 0 8px 24px -8px rgba(47, 111, 158, 0.18);
    --sky: var(--s500);
    --sky-deep: var(--s700);
    --ink: var(--s950);
    --navy: var(--s950);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; }
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-family: var(--sans);
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--s700); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
:focus-visible { outline: 3px solid var(--s700); outline-offset: 3px; }
.skip {
    position: absolute; left: 1rem; top: -4rem; background: var(--s700); color: #fff;
    padding: 0.5rem 0.8rem; z-index: 20;
}
.skip:focus { top: 1rem; }

.public { background: #fff; color: var(--text); }
.public a { color: var(--s700); }
.site-header, .site-footer { padding-left: clamp(1rem, 4vw, 3rem); padding-right: clamp(1rem, 4vw, 3rem); }
.site-header, .site-footer, .hero, .band, main { width: 100%; }
.site-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; min-height: 84px;
    border-bottom: 1px solid var(--line); flex-wrap: nowrap;
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); overflow: visible;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--text); font-weight: 800; min-width: 0; }
.brand:focus-visible { outline: 2px solid var(--s700); outline-offset: 3px; border-radius: 8px; }
.brand strong { display: block; font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.86rem; font-weight: 650; letter-spacing: 0; line-height: 1.25; margin-top: 0.12rem; }
.brand-mark {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: linear-gradient(145deg, var(--s400), var(--s700)); border: 0;
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-logo { overflow: hidden; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.header-end { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.account-menu { position: relative; }
.account-toggle {
    display: flex; align-items: center; gap: 0.5rem; min-height: 44px;
    background: #fff; color: var(--s950); border: 1px solid var(--line); border-radius: 999px;
    padding: 0.15rem 0.75rem 0.15rem 0.15rem; font-weight: 800; cursor: pointer;
}
.account-photo {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--s700); color: #fff;
    display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}
.account-name { max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel {
    position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 40; min-width: 190px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 0.35rem;
}
.account-panel a { display: block; text-decoration: none; color: var(--s950); font-weight: 700; padding: 0.6rem 0.75rem; border-radius: 9px; }
.account-panel a:hover { background: var(--s50); }
.logo-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.a11y-widget { position: relative; }
.a11y-open {
    width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 999px;
    border: 1px solid var(--s300); background: #fff; color: var(--s800);
    display: inline-grid; place-items: center; cursor: pointer;
}
.a11y-open svg, .a11y-open img, .nav-toggle svg, .theme-toggle svg, .header-signin svg { width: 22px; height: 22px; display: block; }
.theme-toggle {
    width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 999px;
    border: 1px solid var(--s300); background: #fff; color: var(--s800);
    display: inline-grid; place-items: center; cursor: pointer;
}
.theme-toggle .icon-sun { display: none; }
html.theme-night .theme-toggle .icon-moon { display: none; }
html.theme-night .theme-toggle .icon-sun { display: block; }
.header-signin {
    display: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 999px;
    border: 1px solid var(--s300); background: #fff; color: var(--s800);
    place-items: center; text-decoration: none;
}
.a11y-panel {
    position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 80;
    width: min(220px, calc(100vw - 2rem));
    background: #fff; color: var(--s950); border: 2px solid var(--s950); border-radius: 16px; padding: 0.7rem;
    box-shadow: var(--shadow);
}
.a11y-panel, .install-note, .account-panel, .cookie-banner {
    max-height: min(70dvh, calc(100dvh - 6rem));
    overflow-y: auto;
}
.a11y-actions { display: grid; grid-template-columns: repeat(3, 44px); gap: 0.4rem; margin: 0; }
.a11y-actions button {
    width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px;
    border: 2px solid var(--s950); background: #fff; color: var(--s950);
    font-weight: 800; cursor: pointer; font-size: 1rem;
}
.a11y-panel p { margin: 0.55rem 0 0; }
.a11y-actions button[aria-pressed="true"] { background: var(--s950); color: #fff; }
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 150%; }
html.a11y-contrast { --text: #000; --muted: #111; --line: #000; --s50: #fff; }
html.a11y-contrast body,
html.a11y-contrast .public,
html.a11y-contrast .app,
html.a11y-contrast .card,
html.a11y-contrast .panel,
html.a11y-contrast .site-header,
html.a11y-contrast .site-footer { background: #fff; color: #000; }
html.a11y-contrast a { color: #000; }
html.a11y-contrast .btn,
html.a11y-contrast button.btn,
html.a11y-contrast .a11y-open { background: #000; color: #fff; border-color: #000; }
html.a11y-contrast .sidebar { background: #000; color: #fff; }
html.a11y-links a:not(.btn):not(.brand):not(.nav-cta) { background: #fff3a0; color: #000; text-decoration: underline; }
html.a11y-space body { line-height: 1.85; letter-spacing: 0.04em; word-spacing: 0.16em; }
html.theme-night {
    color-scheme: dark;
    --s50: #163044;
    --s100: #1C3A52;
    --s200: #2A4E6C;
    --text: #F3F8FC;
    --muted: #B7CBDA;
    --line: #2C4D68;
    --good-bg: #143528;
    --warn-bg: #3A2E14;
    --bad-bg: #3A181B;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.theme-night body,
html.theme-night .public,
html.theme-night .app,
html.theme-night .site-header,
html.theme-night .topbar,
html.theme-night .card,
html.theme-night .panel,
html.theme-night .steps article,
html.theme-night input,
html.theme-night select,
html.theme-night textarea,
html.theme-night .a11y-panel,
html.theme-night .account-panel,
html.theme-night .install-note,
html.theme-night .public .site-nav,
html.theme-night .site-footer {
    background: #102433;
    color: var(--text);
}
html.theme-night .hero {
    background: radial-gradient(70% 80% at 90% 0%, #1C4664, transparent 65%), linear-gradient(180deg, #102433, #0C1C2A);
}
html.theme-night .hero h1,
html.theme-night .display { color: #F3F8FC; }
html.theme-night .hero h1 em,
html.theme-night .display em { color: #79B6E0; }
html.theme-night .band { background: #0E2233; }
html.theme-night .wave { background: linear-gradient(180deg, #102433, #0E2233); }
html.theme-night .a11y-open,
html.theme-night .theme-toggle,
html.theme-night .nav-toggle,
html.theme-night .header-signin,
html.theme-night .account-toggle,
html.theme-night .a11y-actions button,
html.theme-night button.btn-ghost,
html.theme-night .btn-ghost {
    background: #163044;
    color: #F3F8FC;
    border-color: #3D6A90;
}
html.theme-night .site-nav a { color: #D6E7F3; }
html.theme-night .public input,
html.theme-night .public select,
html.theme-night .public textarea,
html.theme-night .choice { background: #163044; color: #F3F8FC; }
.install-app {
    min-height: 44px; border-radius: 999px; border: 0; background: var(--s950); color: #fff;
    font-weight: 800; cursor: pointer; padding: 0.4rem 0.85rem; white-space: nowrap;
}
.install-note {
    position: fixed; left: 50%; bottom: 5.2rem; transform: translateX(-50%); z-index: 37;
    width: min(440px, calc(100% - 2rem)); background: #fff; color: var(--s950);
    border: 2px solid var(--s950); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow);
}
.install-note button { min-height: 44px; margin-top: 0.4rem; }
.to-top {
    position: fixed; right: 0.55rem; bottom: 0.55rem; z-index: 35;
    width: 26px; height: 26px; min-height: 0; padding: 0;
    display: inline-grid; place-items: center;
    background: var(--s700); color: #fff; border: 0; border-radius: 999px;
    cursor: pointer; box-shadow: 0 2px 8px rgba(18, 41, 61, 0.22); line-height: 0;
}
.to-top svg { width: 13px; height: 13px; display: block; }
.to-top[hidden] { display: none !important; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a { text-decoration: none; color: var(--s800); font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.75rem; border-radius: 9px; }
.site-nav a:hover, .site-nav a.is-active { background: var(--s100); color: var(--s800); }
.nav-cta {
    background: var(--s700) !important; color: #fff !important; text-decoration: none;
    padding: 0.65rem 1rem; border-radius: 11px; font-weight: 700;
    box-shadow: 0 6px 16px -6px rgba(47, 111, 158, 0.6);
}
.nav-cta:hover { background: var(--s800) !important; }
.nav-toggle {
    display: none; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
    background: #fff; color: var(--s800); border: 1px solid var(--s300);
    border-radius: 11px; padding: 0.4rem 0.8rem; font-weight: 700; cursor: pointer;
}

.hero {
    min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px);
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
    background: radial-gradient(70% 80% at 90% 0%, var(--s200), transparent 65%), linear-gradient(180deg, var(--s50), #fff);
}
.eyebrow, .kicker { color: var(--s700); letter-spacing: 0; text-transform: none; font-size: 0.82rem; font-weight: 800; }
.hero h1, .display {
    font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 0.8rem 0 0; color: var(--s950); max-width: none; font-weight: 800;
}
.hero h1 em, .display em { font-style: normal; color: var(--s600); font-weight: 800; }
.lead { font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: none; color: var(--muted); margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--muted); font-size: 0.92rem; margin-top: 1.2rem; font-weight: 600; }
.hero-meta strong { color: var(--s700); font-weight: 800; }
.wave { width: 100%; height: 72px; display: block; background: linear-gradient(180deg, #fff, var(--s50)); }
.wave polyline { fill: none; stroke: var(--s400); stroke-width: 2.2; }

.band { background: var(--s50); color: var(--text); padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); }
.band a { color: var(--s700); }
.band-narrow { width: 100%; max-width: none; margin: 0; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.section-head h2, .band h2, .page h1 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); margin: 0.35rem 0; font-weight: 800; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0.9rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .panel, .steps article { min-width: 0; }
.card h3, .card p, .steps p, .member-type p { overflow-wrap: anywhere; }
.card, .panel {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow); color: var(--text);
}
.public .card { background: #fff; border-color: var(--line); color: var(--text); }
.office-card { display: flex; flex-direction: column; height: 100%; }
.office-map { flex: 1 1 auto; min-height: 260px; margin-top: 0.2rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.office-map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }
.objective { min-height: 100%; }
.objective span {
    display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 11px;
    background: var(--s100); color: var(--s700); font-weight: 800;
}
.member-type h3 { margin-bottom: 0.3rem; }
.fee { color: var(--s700); font-weight: 800; }
.public .fee { color: var(--s700); }
.muted, .public .muted, .public .help, .help { color: var(--muted); }
.help { font-size: 0.86rem; }
.steps { counter-reset: step; }
.steps article { position: relative; padding-top: 2.6rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.1rem 1.1rem; }
.steps article::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--s100); color: var(--s800); font-weight: 800; font-size: 0.9rem; margin-bottom: 0.8rem;
}
.steps article:nth-child(n+3)::before { background: var(--s200); }
.steps article:last-child::before { background: var(--s700); color: #fff; }

.btn, button.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    background: var(--s700); color: #fff; border: 1px solid transparent; border-radius: 11px;
    padding: 0.72rem 1.15rem; text-decoration: none; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(47, 111, 158, 0.55);
}
.btn:hover, button.btn:hover { background: var(--s800); }
.btn-ink { background: var(--s950); color: #fff; }
a.btn, .public a.btn, .band a.btn { color: #fff; }
button.btn-ghost, .btn-ghost, a.btn-ghost, .public a.btn-ghost, .band a.btn-ghost { background: #fff; color: var(--s800); border-color: var(--s300); box-shadow: none; }
button.btn-ghost:hover, .btn-ghost:hover, a.btn-ghost:hover { background: var(--s50); color: var(--s800); }
[hidden] { display: none !important; }
.btn-danger { background: var(--bad); color: #fff; box-shadow: none; }
.btn-danger:hover { background: #8E1E24; }
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.86rem; box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: #fff; padding-top: 2rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.5rem; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--s700); }
.motto { font-style: normal; font-weight: 700; font-size: 1.15rem; color: var(--s950); }
.legal { color: var(--muted); font-size: 0.88rem; }

.flash-slot { padding: 0.6rem 6vw 0; }
.flash-slot:empty, .flash-slot:not(:has(.alert)) { display: none; }
.alert { padding: 0.8rem 1rem; border-radius: 12px; margin: 0.8rem 0; }
.alert-ok { background: var(--good-bg); color: var(--good); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }

.page { width: 100%; max-width: none; padding: 2.2rem clamp(1rem, 4vw, 3rem) 4rem; }
section.page.member-apply {
    padding-left: clamp(1.5rem, 7vw, 3rem);
    padding-right: clamp(1.5rem, 7vw, 3rem);
}
section.page.member-apply > * { width: min(720px, 100%); }
fieldset.captcha-box { width: 100%; margin: 0; box-sizing: border-box; min-inline-size: 0; }
.captcha-image { max-width: 100%; height: auto; }
.craft-credit { margin: 0.85rem 0 0; text-align: center; font-size: 0.92rem; color: var(--muted); }
.craft-credit a { font-weight: 800; }
.form { display: grid; gap: 0.9rem; width: min(520px, 100%); max-width: 100%; min-width: 0; margin-inline: auto; }
.public .page:has(.form) { display: flex; flex-direction: column; align-items: center; }
.public .page:has(.form) > * { width: min(520px, 100%); max-width: 100%; min-width: 0; }
form.form[enctype="multipart/form-data"],
#exam-form { width: min(880px, 100%); }
.public .page:has(form[enctype="multipart/form-data"]) > * { width: min(880px, 100%); }
.public .page:has(.grid-2) > * { width: min(980px, 100%); }
.grid-2 > .form,
form.filters { width: 100%; margin-inline: 0; }
.field, .grid-2, .grid-3, .grid-4, .choice-grid, .choice, fieldset, .captcha-box, .selfie-capture { min-width: 0; max-width: 100%; }
.field { display: grid; gap: 0.3rem; }
.field.span-2 { grid-column: span 2; }
label { font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
    width: 100%; max-width: 100%; min-width: 0; padding: 0.72rem 0.8rem; border-radius: 11px; border: 1px solid var(--line);
    background: #fff; color: var(--text);
}
input[type="checkbox"], input[type="radio"] { width: auto; }
input[type="file"] { width: 100%; max-width: 100%; }
.password-field { position: relative; }
.password-field input { padding-right: 3.1rem; }
.password-reveal {
    position: absolute; right: 0.15rem; top: 0; height: 100%; width: 44px;
    border: 0; background: transparent; color: var(--s700); cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
.password-reveal svg { width: 22px; height: 22px; display: block; }
.password-reveal .eye-off { display: none; }
.password-reveal[aria-pressed="true"] .eye-on { display: none; }
.password-reveal[aria-pressed="true"] .eye-off { display: block; }
.public input, .public select, .public textarea { background: #fff; color: var(--text); border-color: var(--line); }
textarea { min-height: 120px; resize: vertical; }
.error { color: var(--bad); font-size: 0.86rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.choice {
    border: 1.5px solid var(--line); border-radius: 14px; padding: 0.9rem; display: grid; gap: 0.25rem; background: #fff;
}
.choice span { min-width: 0; overflow-wrap: anywhere; }
.choice:has(input:checked) { border-color: var(--s500); background: var(--s50); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-bottom: 1rem; }
.filters .field { min-width: 160px; }

.app { background: var(--s50); color: var(--text); }
.app-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--s950); color: var(--s100); padding: 1.2rem 0.9rem; position: sticky; top: 0; height: 100vh; overflow: auto;
}
.sidebar .brand { margin: 0 0.4rem 1rem; color: #fff; }
.sidebar .brand small { color: var(--s300); }
.sidebar .install-app { margin: 0.7rem 0.4rem 0; }
.side-label { margin: 1.1rem 0.7rem 0.35rem; color: var(--s300); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.side-link {
    display: flex; justify-content: space-between; align-items: center; text-decoration: none;
    padding: 0.5rem 0.7rem; border-radius: 9px; margin-bottom: 0.15rem; font-weight: 600; font-size: 0.92rem;
}
.side-link:hover { background: var(--s900); color: #fff; }
.side-link.is-active { background: var(--s700); color: #fff; }
.side-link em { background: var(--s500); color: var(--s950); border-radius: 999px; font-style: normal; font-size: 0.75rem; padding: 0.05rem 0.4rem; }
.app-main { min-width: 0; }
.topbar {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.4rem; background: #fff;
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; overflow: visible;
}
.topbar h1 { font-size: 1.35rem; margin: 0; flex: 1; }
.topbar .nav-toggle { color: var(--s800); border-color: var(--s300); }
.who { text-align: right; }
.who strong, .who span { display: block; }
.who span { color: var(--muted); font-size: 0.82rem; }
.app-content { padding: 1.2rem 1.4rem 3rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.stat strong { display: block; font-size: 1.8rem; color: var(--s700); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.75rem; font-weight: 800; background: var(--s100); color: var(--s800); }
.badge-approved, .badge-verified, .badge-active, .badge-paid, .badge-attended, .badge-passed, .badge-sent { background: var(--good-bg); color: var(--good); }
.badge-rejected, .badge-revoked, .badge-failed, .badge-suspended, .badge-absent, .badge-not_passed { background: var(--bad-bg); color: var(--bad); }
.badge-pending, .badge-queued, .badge-under_review, .badge-needs_documents, .badge-draft { background: var(--warn-bg); color: var(--warn); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.timeline li { border-left: 3px solid var(--s500); padding: 0.1rem 0 0.1rem 0.8rem; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 0.35rem 0.8rem; }
.dl dt { color: var(--muted); }
.empty { padding: 1.4rem; color: var(--muted); }
.pager { display: flex; gap: 0.8rem; align-items: center; margin-top: 1rem; }
.notice { background: var(--s100); color: var(--s800); border-radius: 14px; padding: 0.9rem 1rem; }

.cert-sheet { background: #fff; color: var(--text); }
.cert-sheet {
    width: min(1000px, 100%); margin: 1rem auto; padding: 2rem; border: 10px solid var(--s500);
    outline: 1px solid var(--s800); outline-offset: -16px; min-height: 560px;
}
.cert-sheet header { display: flex; justify-content: space-between; align-items: center; }
.cert-kicker { letter-spacing: 0.08em; text-transform: uppercase; color: var(--s700); font-size: 0.78rem; font-weight: 800; }
.cert-sheet h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.4rem 0; }
.cert-name { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.2rem 0; }
.cert-grid { display: grid; grid-template-columns: 1fr 150px; gap: 1rem; align-items: end; }
.qr svg { width: 140px; height: 140px; }
.stamp { display: inline-block; border: 2px solid currentColor; padding: 0.2rem 0.55rem; letter-spacing: 0.14em; font-weight: 800; }
.stamp-ok { color: var(--good); }
.stamp-bad { color: var(--bad); }
.member-card {
    width: min(460px, 100%); border-radius: 18px; overflow: hidden; color: #fff;
    background: linear-gradient(120deg, var(--s800), var(--s600));
    box-shadow: var(--shadow);
}
.member-card .card-top { padding: 1.1rem 1.2rem 0.4rem; display: flex; justify-content: space-between; }
.member-card .card-body { padding: 0.6rem 1.2rem 1.2rem; display: grid; grid-template-columns: 1fr 96px; gap: 0.6rem; }
.member-card h2 { margin: 0.2rem 0; font-size: 1.7rem; }
.avatar, .avatar-lg { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--s900); }
.avatar-lg { width: 120px; height: 120px; }
.timer-bar {
    position: sticky; top: 72px; z-index: 4; display: flex; justify-content: space-between; align-items: center;
    background: var(--s950); color: #fff; border-radius: 14px; padding: 0.7rem 1rem; margin-bottom: 1rem;
}
.timer-bar strong { font-size: 1.6rem; color: var(--s400); }
.timer-bar.is-late strong { color: #FFB4B4; }
.question { margin-bottom: 1rem; }
.option { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.35rem 0; }
.option input { width: auto; margin-top: 0.25rem; }
.print-bar { display: flex; gap: 0.6rem; justify-content: center; margin: 1rem; }

.site-nav a { padding: 0.4rem 0.55rem; }
@media (max-width: 980px) {
    .grid-4, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .footer-grid, .split, .choice-grid { grid-template-columns: 1fr; }
    .field.span-2 { grid-column: auto; }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .public .site-header {
        display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between;
        gap: 0.55rem; min-height: 0; padding-top: 0.7rem; padding-bottom: 2.35rem;
    }
    .public .site-header .brand { display: flex; width: auto; flex: 1 1 auto; align-items: center; justify-content: flex-start; text-align: left; gap: 0.7rem; min-width: 0; }
    .public .site-header .brand-mark { width: 54px; height: 54px; flex: 0 0 54px; }
    .public .site-header .brand-copy { min-width: 0; }
    .public .site-header .brand strong { font-size: 1.5rem; }
    .public .site-header .brand small {
        position: absolute; left: clamp(1rem, 4vw, 3rem); right: clamp(1rem, 4vw, 3rem); bottom: 0.55rem; margin: 0;
        font-size: 0.98rem; line-height: 1.2; font-weight: 650; white-space: normal;
    }
    .public .header-end { width: auto; flex: 0 0 auto; margin-left: 0; justify-content: flex-end; align-items: center; gap: 0.4rem; }
    .public .header-signin { display: inline-grid; }
    .public .a11y-open,
    .public .theme-toggle,
    .public .nav-toggle,
    .public .header-signin,
    .public .account-toggle {
        width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; border-radius: 999px;
        display: inline-grid; place-items: center; box-sizing: border-box; flex: 0 0 36px;
    }
    .public .a11y-open svg,
    .public .a11y-open img,
    .public .theme-toggle svg,
    .public .nav-toggle svg,
    .public .header-signin svg { width: 18px; height: 18px; }
    .public .account-name { display: none; }
    .public .account-photo { width: 26px; height: 26px; }
    .public .a11y-panel {
        position: fixed; left: 50%; right: auto; transform: translateX(-50%);
        top: calc(var(--header-h, 7.2rem) + 0.35rem);
    }
    .public .site-nav {
        display: none; position: fixed; top: var(--header-h, 7.2rem); left: 0; right: 0; z-index: 80;
        flex-direction: column; align-items: stretch; background: #fff;
        padding: 0.8rem 1rem 1rem; border-bottom: 1px solid var(--line);
        width: 100%; max-height: calc(100dvh - var(--header-h, 7.2rem)); overflow-y: auto;
        box-shadow: var(--shadow);
    }
    body.nav-open .public .site-nav,
    .public .site-nav.is-open { display: flex; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; z-index: 30; transform: translateX(-105%); transition: transform 0.2s ease; width: min(300px, 88vw);
    }
    body.nav-open .sidebar { transform: none; z-index: 40; }
    .dl { grid-template-columns: 1fr; }
    .cert-grid, .member-card .card-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid-2, .grid-4, .stat-grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero, .band { padding-left: 1rem; padding-right: 1rem; }
    .site-header, .site-footer { padding-left: 1rem; padding-right: 1rem; }
    .public .site-header .brand small { left: 1rem; right: 1rem; }
    .hero h1 { max-width: none; }
    .account-name { display: none; }
}
@media print {
    .print-bar, .site-header, .site-footer, .sidebar, .topbar, .flash-slot, .print-hide, .cookie-banner, .to-top, .a11y-widget, .slider-controls, .install-app, .install-note { display: none !important; }
    body, .public, .app { background: #fff; color: #000; }
    .app-shell { display: block; }
    .cert-sheet { outline: none; }
}

.legal-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; margin: 0.4rem 0 0.8rem; }
.legal-links a { font-weight: 700; }
.legal h2 { margin-top: 1.6rem; }
.stack { display: grid; gap: 1rem; }
.slider-frame { position: relative; min-height: 280px; aspect-ratio: 16 / 7; background: var(--s100); border-radius: 18px; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.2rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(18, 41, 61, 0.82)); color: #fff;
    display: grid; gap: 0.15rem;
}
.slider-controls { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.slider-controls button {
    min-height: 44px; border-radius: 999px; border: 2px solid var(--s950); background: #fff; color: var(--s950);
    font-weight: 800; cursor: pointer; padding: 0.4rem 0.9rem;
}
.video-frame { position: relative; padding-top: 56.25%; background: #12293d; border-radius: 16px; overflow: hidden; margin: 0.6rem 0 0.8rem; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { display: block; width: 100%; max-height: 520px; background: #12293d; border-radius: 16px; margin: 0.6rem 0 0.8rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-grid figure { margin: 0; }
.team-heading { margin: 1.4rem 0 0.7rem; font-size: 1.25rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; margin: 0 0 0.4rem; }
.team-card { text-align: center; padding: 1rem 0.75rem 1.05rem; }
.team-card img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; background: var(--s100); }
.team-card h3 { margin: 0.7rem 0 0.15rem; font-size: 1rem; }
.team-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.card-scroll { display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.2rem 0.1rem 0.7rem; }
.affiliate-card {
    flex: 0 0 min(280px, 82%); scroll-snap-align: start; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 0.35rem; min-height: 168px;
}
a.affiliate-card h3 { margin: 0.15rem 0 0; color: inherit; font-size: 1.15rem; }
a.affiliate-card p { margin: 0; color: var(--muted); flex: 1; }
a.affiliate-card .visit { font-weight: 800; color: var(--s700); }
.affiliate-mark { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--s50); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--s100); }
.gallery-grid figcaption { display: grid; gap: 0.2rem; padding: 0.45rem 0.1rem 0; }
.legal ul { padding-left: 1.2rem; }
.hp-field {
    position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.captcha-box {
    border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; background: var(--s50); display: grid; gap: 0.6rem;
}
.captcha-box legend { font-weight: 800; padding: 0 0.3rem; }
.captcha-image { border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.captcha-question { margin: 0; font-weight: 700; }
.captcha-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cookie-banner {
    position: sticky; bottom: 0; z-index: 40; display: flex; gap: 1rem; justify-content: space-between; align-items: center;
    flex-wrap: wrap; margin: 0; padding: 0.9rem 6vw; background: var(--s950); color: #fff;
}
.cookie-banner p { margin: 0.15rem 0; }
.cookie-banner a { color: var(--s300); }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.selfie-stage[hidden], .selfie-stage video[hidden], .selfie-stage .selfie-preview[hidden] { display: none !important; }
.selfie-stage {
    width: min(100%, 280px); aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
    background: var(--s950); border: 1px solid var(--line); position: relative;
}
.selfie-stage video, .selfie-stage .selfie-preview {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: var(--s950);
}
.selfie-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.photo-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.6rem 0 1rem; }
.photo-row figure { margin: 0; }
.photo-row figcaption { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.form-label { font-weight: 800; display: block; margin-bottom: 0.35rem; }
.btn, button.btn { min-height: 44px; }
.btn-small { min-height: 32px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
