:root {
    --bg: #eef3f9;
    --page: #f8fbff;
    --card: #ffffff;
    --line: #d7e1ee;
    --text: #17233b;
    --muted: #6f8099;
    --blue: #2f67e8;
    --button-primary-start: #3d73ee;
    --button-primary-end: #2455d6;
    --button-secondary-bg: #ffffff;
    --button-secondary-text: #17233b;
    --button-secondary-border: #d7e1ee;
    --button-danger-bg: #cf3f3f;
    --blue-soft: #eaf1ff;
    --green-soft: #eaf9ef;
    --green-text: #1f7a36;
    --amber-soft: #fff4dc;
    --amber-text: #9a6700;
    --red-soft: #feeceb;
    --red-text: #b42318;
    --shadow: 0 10px 26px rgba(20, 37, 63, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: sans-serif;
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
}

body.theme-public {
    display: flex;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.public-page {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: clip;
    background: var(--page);
    box-shadow: 0 0 0 1px rgba(215, 225, 238, 0.8);
}

.public-shell {
    width: 100%;
    padding-left: 11px;
    padding-right: 11px;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 251, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(215, 225, 238, 0.9);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-mark {
    min-width: 48px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f426e, #5a86bb);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong {
    font-size: 11px;
    line-height: 1.35;
}

.brand-copy small {
    font-size: 10px;
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 5px;
}

.site-nav a {
    flex: 1;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
}

.site-nav a.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #284f82, #4d78b0);
    box-shadow: 0 10px 22px rgba(40, 79, 130, 0.18);
}

.page-main {
    padding: 10px 0 20px;
}

.page-main-home {
    padding-top: 10px;
}

.flash-banner {
    margin-bottom: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 11px;
    line-height: 1.5;
}

.flash-success {
    background: var(--green-soft);
    color: var(--green-text);
}

.flash-error {
    background: var(--red-soft);
    color: var(--red-text);
}

.home-hero,
.page-hero,
.content-card,
.landing-section,
.resume-card,
.summary-box,
.info-item,
.note-box,
.empty-panel,
.timeline-item,
.qr-card,
.status-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.home-hero,
.page-hero,
.content-card,
.landing-section {
    padding: 12px;
    margin-bottom: 8px;
}

.content-card:not(.side-card) > * + *,
.status-card > * + * {
    margin-top: 12px;
}

.resume-card {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.home-hero-grid,
.application-layout,
.payment-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.home-copy h1,
.page-hero-copy h1 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.home-copy h1 span {
    color: var(--blue);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
}

.hero-description,
.page-hero-copy p,
.section-head p,
.ticket-card p,
.panel-title p,
.note-box p,
.empty-panel p,
.timeline-item p,
.info-banner,
.file-tip {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.hero-points {
    display: grid;
    gap: 6px;
    margin: 10px 0;
}

.hero-point {
    padding: 7px 9px;
    border-radius: 10px;
    background: #f5f8fd;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
}

body.theme-public .action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

body.theme-admin .action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 8px;
}

.section-head.center {
    text-align: center;
}

.section-head h2,
.status-card h3,
.panel-title h3,
.pricing-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-cards,
.ticket-grid,
.ticket-select-grid,
.form-grid,
.info-grid,
.notice-grid,
.registration-form,
.lookup-form,
.timeline-panel,
.payment-summary,
.payment-panel,
.side-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.pricing-card,
.notice-card {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.pricing-card {
    position: relative;
}

.pricing-card.is-featured {
    border: 1.5px solid var(--blue);
}

.card-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
    border-radius: 0 12px 0 10px;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.pricing-amount strong {
    font-size: 20px;
    color: var(--blue);
}

.home-hero-compact {
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.home-banner-simple {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-banner-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.home-hero-scenic {
    position: relative;
    min-height: 420px;
    margin: 0 -11px 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 30px 30px;
    box-shadow: none;
    background: #c9d8ea;
    isolation: isolate;
}

.home-hero-scenic::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(10, 24, 44, 0.12) 0%, rgba(10, 24, 44, 0.18) 34%, rgba(10, 24, 44, 0.74) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.home-hero-scenic::after {
    content: "";
    position: absolute;
    inset: auto -16% -28% 42%;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(238, 197, 118, 0.22) 0%, rgba(238, 197, 118, 0) 72%);
}

.home-hero-frame {
    position: relative;
    z-index: 1;
    min-height: 420px;
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-crest {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    backdrop-filter: blur(10px);
}

.home-hero-card {
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(180deg, rgba(14, 27, 46, 0.68) 0%, rgba(14, 27, 46, 0.86) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(11, 22, 39, 0.32);
    backdrop-filter: blur(12px);
}

.home-hero-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-chip-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-kicker {
    color: #6883a4;
}

.home-hero-card .hero-description {
    color: rgba(255, 255, 255, 0.82);
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.hero-meta-card {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-meta-card span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
}

.hero-meta-card strong {
    display: block;
    font-size: 12px;
    line-height: 1.6;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.button-home-primary {
    background: linear-gradient(135deg, #e7c68e, #d5a755);
    color: #20344d;
    box-shadow: 0 12px 24px rgba(231, 198, 142, 0.24);
}

.button-home-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.home-glance-strip {
    position: relative;
    z-index: 3;
    margin: -38px 0 14px;
}

.home-glance-grid {
    display: grid;
    gap: 8px;
}

.home-glance-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 223, 234, 0.96);
    box-shadow: 0 14px 36px rgba(31, 49, 78, 0.1);
}

.home-glance-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3fa;
    color: #42658f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-glance-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #24364f;
}

.home-entry-section,
.home-workshop-section,
.home-status-section,
.home-guide-section {
    border-radius: 22px;
    padding: 16px;
}

.home-status-link {
    display: grid;
    gap: 10px;
}

.home-status-copy {
    min-width: 0;
}

.home-status-copy h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.2;
}

.home-status-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.home-status-action {
    width: 100%;
    min-height: 40px;
    box-shadow: 0 12px 24px rgba(36, 85, 214, 0.2);
}

.home-section-head {
    margin-bottom: 12px;
}

.home-section-head h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.home-workshop-section .home-section-head {
    margin-bottom: 18px;
}

.home-workshop-section .home-section-head h2 {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
}

.home-pricing-grid {
    gap: 10px;
}

.home-pricing-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 252, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(20, 37, 63, 0.06);
}

.home-pricing-card.is-featured {
    border-color: #2d5f9a;
    box-shadow: 0 16px 34px rgba(45, 95, 154, 0.12);
}

.home-phase-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #edf3fa;
    color: #40658f;
    font-size: 10px;
    font-weight: 700;
}

.pricing-card-head p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.home-pricing-card .pricing-amount {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.home-pricing-card .pricing-amount strong {
    font-size: 21px;
    color: #274f81;
    white-space: nowrap;
}

.home-pricing-card .pricing-amount span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.phase-status-row {
    display: flex;
}

.phase-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.phase-status.is-open {
    background: #eaf6ee;
    color: #20744b;
}

.phase-status.is-waiting {
    background: #fff4dc;
    color: #9a6700;
}

.home-note-group {
    display: grid;
    gap: 0;
    border: 1px solid #dce6f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    overflow: hidden;
}

.home-note-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
}

.home-note-row + .home-note-row {
    border-top: 1px solid #e5edf7;
}

.note-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 56px;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--button-primary-start), var(--button-primary-end));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-note-row p {
    margin: 0;
    flex: 1;
    font-size: 11px;
    line-height: 1.6;
    color: #26384f;
}

.pricing-card-simple {
    display: grid;
    gap: 8px;
}

.pricing-copy {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.home-workshop-grid {
    display: grid;
    gap: 8px;
}

.home-direct-entry-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f4f7fb;
    border: 1px solid #d9e4f1;
}

.home-direct-entry-copy {
    display: grid;
    gap: 10px;
}

.home-direct-entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-direct-entry-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e3ecf7;
    color: #33567f;
    font-size: 10px;
    font-weight: 700;
}

.home-direct-entry-progress {
    color: #33567f;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.home-direct-entry-copy strong {
    font-size: 13px;
    line-height: 1.5;
    color: #1f426e;
}

.home-direct-entry-copy p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.home-direct-entry-limit {
    color: #1f426e;
    font-weight: 700;
}

.home-direct-entry-date {
    white-space: nowrap;
}

.home-direct-entry-side {
    display: grid;
    gap: 8px;
}

.home-direct-entry-card .pricing-amount {
    display: grid;
    justify-items: start;
    gap: 2px;
}

.home-direct-entry-card .pricing-amount strong {
    font-size: 18px;
    color: #1f426e;
}

.home-direct-entry-card .pricing-amount span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.mini-notice {
    display: grid;
    gap: 4px;
}

.mini-notice strong {
    font-size: 12px;
}

.mini-notice p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.feature-list,
.notice-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.notice-card li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.6;
}

.feature-list li::before,
.notice-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4caf50;
}

.pricing-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.landing-table {
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
    background: #fff;
}

.landing-table thead {
    background: #17233b;
    color: #fff;
}

.landing-table th,
.landing-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e6edf6;
    text-align: left;
    vertical-align: top;
    font-size: 11px;
    line-height: 1.55;
}

.landing-table tbody tr:nth-child(even) {
    background: #f7f9fd;
}

.highlight-price {
    color: #d24545;
    font-weight: 700;
}

.notice-card {
    background: #fffefc;
}

.notice-amber {
    background: #fffaf0;
}

.notice-red {
    background: #fff5f5;
}

.info-banner {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #cbdcf9;
    background: #eef4ff;
}

.info-banner strong {
    color: var(--text);
}

.page-hero {
    padding: 10px 12px;
}

.page-hero-compact {
    background: linear-gradient(135deg, #fff 0%, #eef4ff 100%);
}

.ticket-card {
    position: relative;
    display: block;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f8fbff;
    cursor: pointer;
}

.ticket-option-card {
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
}

.ticket-option-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #485b74;
}

.ticket-select-grid {
    gap: 12px;
}

.ticket-card.is-active {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgba(47, 103, 232, 0.12);
}

.ticket-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.ticket-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
}

.ticket-top strong {
    font-size: 13px;
    line-height: 1.5;
}

.ticket-price,
.summary-price {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.field {
    display: grid;
    gap: 5px;
}

.field span {
    font-size: 11px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 12px;
}

.field textarea {
    min-height: 82px;
    resize: vertical;
}

.field-file {
    padding: 10px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px dashed #9ec0ff;
}

.student-panel {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #f1d68c;
    background: #fffaf0;
}

.summary-box,
.status-card,
.empty-panel,
.pay-action-card {
    padding: 10px;
}

.summary-box {
    display: grid;
    gap: 10px;
}

.summary-box strong,
.info-item strong {
    font-size: 12px;
    line-height: 1.5;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.button-block {
    width: 100%;
}

.button-primary {
    background: linear-gradient(135deg, var(--button-primary-start), var(--button-primary-end));
    color: #fff;
}

.button.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.button-secondary {
    background: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border-color: var(--button-secondary-border);
}

.button-danger {
    background: var(--button-danger-bg);
    color: #fff;
}

.text-link {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.status-success {
    background: var(--green-soft);
    color: var(--green-text);
}

.status-warning {
    background: var(--amber-soft);
    color: var(--amber-text);
}

.status-danger {
    background: var(--red-soft);
    color: var(--red-text);
}

.status-info {
    background: var(--blue-soft);
    color: var(--blue);
}

.status-muted {
    background: #edf1f7;
    color: var(--muted);
}

.status-card-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caption,
.info-item span {
    color: var(--muted);
    font-size: 10px;
}

.info-item {
    padding: 9px 10px;
}

.note-box,
.empty-panel,
.pay-action-card,
.timeline-item {
    padding: 10px;
}

.note-box strong,
.empty-panel strong,
.timeline-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.channel-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11px;
}

.qr-card {
    padding: 10px;
    text-align: center;
}

.qr-card img {
    width: min(200px, 100%);
    margin: 0 auto 8px;
}

.proof-block,
.history-proof {
    display: grid;
    gap: 6px;
}

.proof-block span,
.history-proof span {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.code-inline {
    word-break: break-all;
    font-family: monospace;
}

.pay-status-text {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.pay-action-card {
    display: grid;
    gap: 0;
    padding: 18px 14px;
}

.pay-action-card .button {
    min-height: 42px;
}

.proof-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.registration-list {
    display: grid;
    gap: 8px;
}

.registration-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
}

.registration-list-item.is-active {
    border-color: #9bb9ef;
    background: #f7fbff;
}

.registration-list-main,
.registration-list-side {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.registration-list-main strong {
    font-size: 12px;
    line-height: 1.5;
}

.registration-list-main span,
.registration-list-side small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    word-break: break-all;
}

.registration-list-side {
    justify-items: end;
    text-align: right;
}

[hidden] {
    display: none !important;
}

body.theme-admin {
    background: #f3f4f6;
    color: #1f2937;
}

body.theme-admin .flash-banner,
body.theme-admin .button,
body.theme-admin .status-badge,
body.theme-admin .field input,
body.theme-admin .field select,
body.theme-admin .field textarea,
body.theme-admin .field-file,
body.theme-admin .info-item,
body.theme-admin .note-box,
body.theme-admin .empty-panel,
body.theme-admin .timeline-item,
body.theme-admin .channel-option,
body.theme-admin .proof-image,
body.theme-admin .table-empty,
body.theme-admin .brand-mark,
body.theme-admin .eyebrow,
body.theme-admin .stats-card,
body.theme-admin .admin-card,
body.theme-admin .admin-login-card,
body.theme-admin .admin-list-card,
body.theme-admin .admin-table-wrap,
body.theme-admin .log-item {
    border-radius: 0;
    box-shadow: none;
}

body.theme-admin .button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

body.theme-admin .button-primary {
    background: linear-gradient(135deg, var(--button-primary-start), var(--button-primary-end));
}

body.theme-admin .button-secondary {
    background: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border-color: var(--button-secondary-border);
}

body.theme-admin .button-danger {
    background: var(--button-danger-bg);
}

body.theme-admin .status-badge {
    padding: 3px 6px;
    font-size: 11px;
}

body.theme-admin .field input,
body.theme-admin .field select,
body.theme-admin .field textarea {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
}

body.theme-admin .field textarea {
    min-height: 96px;
}

body.theme-admin .brand-mark {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    letter-spacing: 0.08em;
}

body.theme-admin .eyebrow {
    padding: 3px 7px;
    border: 1px solid #cfd6df;
    background: transparent;
    color: #526071;
    letter-spacing: 0.06em;
    text-transform: none;
}

.invoice-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-page {
    min-height: 100vh;
}

.admin-topbar {
    position: static;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.admin-topbar-inner,
body.theme-admin .public-shell {
    width: min(1400px, calc(100% - 24px));
    margin: 0 auto;
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.admin-nav a {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-left: -1px;
}

.admin-nav form {
    margin-left: -1px;
}

.admin-nav form .button {
    border-color: var(--line);
}

.admin-user-inline {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.admin-main {
    padding: 16px 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9eef8;
    color: #35568f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-header {
    margin-bottom: 12px;
}

.admin-header h1,
.admin-login-card h1,
.admin-card h1 {
    margin: 8px 0 6px;
    font-size: 22px;
    line-height: 1.2;
}

.admin-header p,
.admin-login-card p,
.admin-card p,
.admin-list-foot span,
.log-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.stats-grid,
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.stats-card,
.admin-card,
.admin-login-card,
.admin-list-card {
    background: #fff;
    border: 1px solid var(--line);
}

.stats-card {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.stats-card span {
    color: var(--muted);
    font-size: 12px;
}

.stats-card strong {
    font-size: 22px;
    line-height: 1;
}

.admin-card {
    padding: 12px;
    margin-bottom: 8px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.section-heading h2,
.section-heading h1 {
    margin: 0 0 4px;
    font-size: 18px;
}

.admin-filter,
.review-form,
.log-list {
    display: grid;
    gap: 8px;
}

.admin-filter {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.field-wide {
    grid-column: span 2;
}

.invoice-inline-summary {
    margin-bottom: 8px;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-table {
    width: 100%;
    min-width: 1360px;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f3f4f6;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e8eef7;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.5;
}

.admin-table th {
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table td {
    color: var(--text);
}

.admin-table td .status-badge {
    white-space: nowrap;
}

.admin-cell-main,
.admin-cell-stack {
    min-width: 0;
}

.admin-cell-main strong,
.admin-cell-stack strong {
    display: block;
    font-size: 13px;
    line-height: 1.45;
}

.admin-cell-main small,
.admin-cell-stack small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.admin-cell-amount {
    white-space: nowrap;
    font-weight: 700;
    color: #1f3f83;
}

.admin-cell-action {
    white-space: nowrap;
}

.admin-cell-action .button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
}

.admin-action-stack {
    display: grid;
    gap: 6px;
}

.admin-action-stack form,
.admin-action-stack .button {
    width: 100%;
}

.admin-review-cell {
    min-width: 220px;
}

.admin-review-meta {
    display: grid;
    gap: 4px;
}

.admin-data-stack {
    display: grid;
    gap: 2px;
}

.admin-data-stack small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    word-break: break-all;
}

.admin-inline-review {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.admin-mini-input {
    width: 100%;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 12px;
}

.admin-inline-actions {
    display: flex;
    gap: 6px;
}

.button-inline-action {
    flex: 1;
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
}

.log-item {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.log-item strong {
    display: block;
    margin-bottom: 4px;
}

.table-empty {
    padding: 14px;
    background: #fff;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
}

.admin-login-wrap {
    min-height: calc(100vh - 96px);
    display: grid;
    place-items: center;
    padding: 16px 0;
}

.admin-login-card {
    width: min(460px, 100%);
    padding: 18px;
    display: grid;
    gap: 12px;
}

body.theme-admin .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

body.theme-admin .info-item,
body.theme-admin .note-box,
body.theme-admin .empty-panel,
body.theme-admin .timeline-item {
    padding: 8px;
    border: 1px solid #e3e8ef;
    background: #fff;
}

body.theme-admin .note-box,
body.theme-admin .empty-panel {
    margin-top: 8px;
}

body.theme-admin .proof-block,
body.theme-admin .history-proof {
    gap: 8px;
}

body.theme-admin .proof-image {
    max-width: 360px;
    border: 1px solid #d8dee8;
}

@media (max-width: 760px) {
    body.theme-public {
        display: block;
    }

    .public-page {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }

    .public-shell {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .home-banner-simple,
    .home-hero-scenic {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .home-banner-image {
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .admin-topbar-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-nav {
        justify-content: flex-start;
    }

    .field-wide {
        grid-column: auto;
    }

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

    .admin-nav a,
    .admin-nav form {
        margin-left: 0;
    }

    .admin-inline-actions {
        flex-direction: column;
    }

    .home-status-link {
        align-items: stretch;
        flex-direction: column;
    }

    .home-status-action {
        width: 100%;
    }

    .hero-meta-grid,
    .hero-actions {
        grid-template-columns: 1fr;
    }
}
