@font-face {
    font-family: "Bornomala";
    src: url("../fonts/bornomala/Bornomala-Regular.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

@font-face {
    font-family: "Bornomala";
    src: url("../fonts/bornomala/Bornomala-Bold.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

:root {
    --ink: #17233f;
    --muted: #5d6982;
    --line: #cbd8e4;
    --soft: #eff7fb;
    --paper: #ffffff;
    --sky: #00a8de;
    --green: #049a7a;
    --green-dark: #04735e;
    --gold: #c89542;
    --danger: #c73535;
}

* {
    box-sizing: border-box;
}

[v-cloak] {
    display: none;
}

body {
    margin: 0;
    background: #dfe8f2;
    color: var(--ink);
    font-family: "Bornomala", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

button,
input,
select,
textarea {
    font-family: "Bornomala", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: inherit;
}

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

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 12px;
}

.site-brand {
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 850;
}

.site-topbar div {
    display: flex;
    gap: 6px;
}

.top-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: 3px;
    padding: 0 9px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.top-link.primary {
    background: var(--green);
    color: #fff;
}

.page-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 12px 12px 96px;
}

.hero-band,
.section-block,
.form-header,
.registration-form,
.invoice-sheet,
.draft-note,
.empty-state,
.loading-state {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.hero-band {
    overflow: hidden;
    border-top: 8px solid var(--gold);
}

.hero-cover {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
}

.hero-poster {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(4, 154, 122, 0.12), rgba(0, 168, 222, 0.12)),
        #f8fcfa;
    border-bottom: 1px solid var(--line);
}

.poster-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(4, 154, 122, 0.25);
    border-radius: 6px;
    background: #fff;
}

.poster-mark img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.poster-copy p {
    margin-bottom: 4px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
}

.poster-copy strong,
.poster-copy span {
    display: block;
    line-height: 1.2;
}

.poster-copy strong {
    font-size: 25px;
}

.poster-copy span {
    margin-top: 3px;
    color: #d21e1e;
    font-size: 22px;
    font-weight: 800;
}

.poster-mini {
    display: grid;
    gap: 6px;
}

.poster-mini span {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    border: 1px solid rgba(200, 149, 66, 0.35);
    border-radius: 3px;
    background: #fffaf0;
    padding: 0 10px;
    color: #72501a;
    font-size: 13px;
    font-weight: 800;
}

.hero-banner {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
}

.hero-copy {
    padding: 18px 18px 22px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.2;
}

h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

.section-block {
    margin-top: 12px;
    padding: 18px;
}

.compact-grid {
    display: grid;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
}

.info-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 18px;
}

.fee-panel {
    border-color: rgba(4, 154, 122, 0.45);
}

.fee-amount {
    margin-bottom: 4px;
    color: var(--green);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.exam-notice {
    border-color: rgba(4, 154, 122, 0.35);
    border-top: 6px solid var(--green);
    background:
        linear-gradient(180deg, rgba(4, 154, 122, 0.08), rgba(255, 255, 255, 0)),
        var(--paper);
}

.notice-head h2 {
    margin-bottom: 8px;
    color: var(--green-dark);
    font-size: 26px;
}

.notice-head p {
    margin-bottom: 0;
    color: var(--muted);
}

.quiz-link-box {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    border: 1px solid rgba(0, 168, 222, 0.28);
    border-radius: 6px;
    background: #eef9fd;
    padding: 14px;
}

.quiz-link-box span {
    color: #075ba8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.quiz-link-box a {
    overflow-wrap: anywhere;
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 900;
}

.time-panel {
    display: grid;
    gap: 8px;
    border-color: rgba(4, 154, 122, 0.35);
}

.time-panel span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.time-panel strong {
    color: var(--green-dark);
    font-size: 28px;
    line-height: 1.12;
}

.time-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.accent-panel {
    border-color: rgba(200, 149, 66, 0.45);
    background: #fffaf0;
}

.clean-list,
.checked-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clean-list li,
.checked-list li {
    padding: 9px 0;
    border-bottom: 1px solid #edf2f7;
}

.clean-list li:last-child,
.checked-list li:last-child {
    border-bottom: 0;
}

.checked-list li {
    position: relative;
    padding-left: 24px;
}

.checked-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}

.group-list {
    display: grid;
    gap: 10px;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.group-card {
    border: 1px solid var(--line);
    border-left: 4px solid var(--sky);
    border-radius: 6px;
    padding: 14px;
}

.schedule-card {
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    background: #fff;
    padding: 14px;
}

.group-card span {
    color: var(--gold);
    font-weight: 800;
}

.schedule-card span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 3px;
    background: #ebf8f5;
    padding: 0 10px;
    color: var(--green-dark);
    font-weight: 900;
}

.schedule-card h3 {
    color: var(--ink);
    font-size: 18px;
}

.schedule-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 700;
}

.group-card p,
.hero-copy p,
.fee-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.action-panel p {
    margin-bottom: 14px;
    color: var(--muted);
}

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

.link-button {
    text-decoration: none;
}

.section-title-row {
    display: grid;
    gap: 10px;
}

.compact-link {
    min-height: 38px;
    width: max-content;
}

.books-intro p {
    margin-bottom: 0;
    color: var(--muted);
}

.book-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.book-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.book-card img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #f7fbfd;
}

.book-card-body {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.book-card-body span,
.book-card-body small {
    color: var(--gold);
    font-weight: 800;
}

.book-card-body h2,
.book-card-body p {
    margin-bottom: 0;
}

.book-card-body p {
    color: var(--muted);
}

.book-actions {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.book-reader-page {
    width: min(100%, 940px);
    margin: 0 auto;
    padding: 8px 8px 92px;
}

.reader-toolbar,
.reader-controls {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    padding: 10px;
}

.reader-toolbar {
    position: sticky;
    top: 53px;
    z-index: 12;
    border-radius: 6px;
}

.reader-toolbar div {
    display: grid;
    gap: 2px;
}

.reader-tool-actions {
    display: grid;
    gap: 8px;
}

.reader-zoom-controls {
    display: grid;
    grid-template-columns: 42px minmax(64px, 1fr) 42px;
    gap: 6px;
}

.icon-button,
.zoom-level {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: 3px;
    background: #fff;
    color: var(--green-dark);
    font-weight: 900;
}

.icon-button {
    font-size: 24px;
    line-height: 1;
}

.zoom-level {
    font-size: 13px;
    cursor: pointer;
}

.icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.reader-toolbar span,
.reader-controls span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.reader-back {
    width: max-content;
}

.reader-cache-note {
    margin: 8px 0 0;
    border: 1px solid rgba(4, 154, 122, 0.28);
    border-radius: 3px;
    background: #eefaf6;
    padding: 10px;
    color: var(--green-dark);
    font-weight: 800;
}

.reader-frame {
    margin-top: 10px;
    overflow: hidden;
    min-height: clamp(520px, calc(100vh - 210px), 1120px);
    touch-action: pan-y;
}

.reader-frame.is-zoomed {
    cursor: grab;
    touch-action: none;
}

.reader-frame.is-panning {
    cursor: grabbing;
}

.reader-page-stage {
    display: block;
    width: 100%;
    max-width: 860px;
    min-height: clamp(520px, calc(100vh - 210px), 1120px);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
    will-change: transform, opacity;
}

.reader-page-image {
    display: block;
    width: 100%;
    min-height: clamp(520px, calc(100vh - 210px), 1120px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 170ms ease;
    will-change: transform;
}

.reader-frame.is-panning .reader-page-image {
    transition: none;
}

.reader-page-slide-next {
    animation: readerSlideNext 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reader-page-slide-previous {
    animation: readerSlidePrevious 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reader-page-pop {
    animation: readerPagePop 240ms ease both;
}

@keyframes readerSlideNext {
    from {
        opacity: 0.18;
        transform: translateX(64px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes readerSlidePrevious {
    from {
        opacity: 0.18;
        transform: translateX(-64px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes readerPagePop {
    from {
        opacity: 0.55;
        transform: scale(0.992);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reader-controls {
    position: sticky;
    bottom: 0;
    z-index: 11;
    margin-top: 10px;
    border-radius: 6px 6px 0 0;
}

.reader-controls label {
    display: grid;
    gap: 4px;
}

.reader-controls input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0 10px;
}

.floating-register {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border: 2px solid #f7d47b;
    border-radius: 6px;
    background: var(--green);
    color: white;
    font-weight: 800;
    animation: registerPulse 1.4s ease-in-out infinite;
}

@keyframes registerPulse {
    0%,
    100% {
        transform: scale(1);
        background: var(--green);
    }

    50% {
        transform: scale(1.06);
        background: var(--sky);
    }
}

.form-header {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-top: 6px solid var(--green);
}

.form-header img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.form-header h1 {
    margin-bottom: 0;
    font-size: 26px;
}

.back-link {
    grid-column: 1 / -1;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
}

.draft-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-color: rgba(0, 168, 222, 0.45);
    background: #edf9fd;
    color: var(--green-dark);
    font-weight: 700;
}

.registration-form {
    margin-top: 12px;
    padding: 16px;
}

.field-group {
    margin-bottom: 16px;
}

.step-panel {
    margin-bottom: 16px;
    border: 1px solid #d9e6ee;
    border-radius: 6px;
    background: #f8fbfd;
    padding: 14px;
}

.details-step {
    padding-bottom: 0;
}

.step-count {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid rgba(4, 154, 122, 0.35);
    border-radius: 3px;
    padding: 0 9px;
    background: #ebf8f5;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
}

.field-group label,
.field-group .field-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 750;
}

.field-group label span,
.field-group .field-label span,
.error-message {
    color: var(--danger);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-group.invalid {
    outline: 1px solid var(--danger);
    outline-offset: 4px;
    border-radius: 3px;
}

.radio-option {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin: 0;
    border: 1px solid #9fb1c1;
    border-radius: 3px;
    background: #fff;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 700;
}

.radio-option input {
    width: auto;
    min-height: 0;
    margin: 0;
    accent-color: var(--green);
}

.radio-option:has(input:checked) {
    border-color: var(--green);
    background: #ebf8f5;
}

.field-group input,
.field-group select,
.field-group textarea {
    display: block;
    width: 100%;
    border: 1px solid #9fb1c1;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    outline: 0;
}

.field-group input {
    min-height: 46px;
    padding: 0 12px;
}

.field-group select {
    min-height: 46px;
    padding: 0 10px;
}

.field-group textarea {
    min-height: 104px;
    padding: 10px 12px;
    resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--green);
}

.field-group input.invalid,
.field-group select.invalid,
.field-group textarea.invalid {
    border-color: var(--danger);
}

.error-message {
    width: 100%;
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 650;
}

.submit-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 3px;
    font-weight: 800;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    border: 1px solid var(--green);
    background: var(--green);
    color: white;
}

.submit-button:disabled,
.outline-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.outline-button {
    border: 1px solid var(--green);
    background: #fff;
    color: var(--green-dark);
    padding: 0 14px;
}

.invoice-sheet {
    padding: 18px;
}

.invoice-save-warning,
.invoice-switcher {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    border-radius: 3px;
    padding: 14px;
}

.invoice-save-warning {
    border: 1px solid #efd5a4;
    background: #fffaf0;
    color: #765113;
}

.invoice-save-warning span,
.invoice-switcher span {
    color: var(--muted);
}

.small-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.invoice-switcher {
    border: 1px solid rgba(4, 154, 122, 0.28);
    background: #eefaf6;
}

.invoice-switcher > div:first-child {
    display: grid;
    gap: 2px;
}

.invoice-tabs {
    display: grid;
    gap: 8px;
}

.invoice-tab {
    display: grid;
    gap: 2px;
    min-height: 54px;
    border: 1px solid var(--line);
    border-left: 4px solid transparent;
    border-radius: 3px;
    background: #fff;
    padding: 9px 10px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.invoice-tab.active {
    border-color: rgba(4, 154, 122, 0.42);
    border-left-color: var(--green);
    background: #f8fffc;
}

.invoice-tab strong {
    font-size: 14px;
}

.invoice-tab span {
    font-size: 13px;
    font-weight: 700;
}

.invoice-header,
.invoice-parties,
.invoice-footer {
    display: grid;
    gap: 14px;
}

.brand-lockup {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
}

.brand-lockup img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-lockup h1 {
    margin-bottom: 2px;
    font-size: 21px;
}

.brand-lockup p,
.invoice-parties p,
.invoice-footer p {
    margin-bottom: 0;
    color: var(--muted);
}

.invoice-meta {
    display: grid;
    justify-items: start;
    gap: 4px;
    color: var(--muted);
}

.invoice-meta strong {
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
}

.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 3px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 800;
}

.status-pill.paid {
    background: #e3f8ef;
    color: #086343;
}

.status-pill.pending {
    background: #fff4d9;
    color: #855c00;
}

.invoice-parties {
    margin-top: 22px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.invoice-parties span,
.amount-words span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-table {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.invoice-row {
    display: grid;
    grid-template-columns: 1fr 56px 86px;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.invoice-row:last-child {
    border-bottom: 0;
}

.table-head,
.total-row {
    background: var(--soft);
    font-weight: 800;
}

.invoice-row span:nth-child(2),
.invoice-row span:nth-child(3) {
    text-align: right;
}

.amount-words {
    margin-top: 16px;
    padding: 14px;
    border-left: 4px solid var(--gold);
    background: #fffaf0;
}

.credential-box {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    border: 1px solid rgba(0, 168, 222, 0.35);
    border-radius: 3px;
    background: #eef8fc;
    padding: 14px;
}

.credential-box span {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.credential-box div {
    display: grid;
    gap: 6px;
}

.credential-box strong {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0;
}

.credential-box p {
    margin: 2px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.invoice-footer {
    margin-top: 20px;
}

.invoice-actions {
    grid-column: 1 / -1;
}

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

.link-button {
    width: 100%;
}

.lookup-copy {
    color: var(--muted);
}

.lookup-form {
    margin-top: 16px;
}

.lookup-empty {
    margin-top: 14px;
    border: 1px solid #efd5a4;
    border-radius: 3px;
    background: #fffaf0;
    padding: 12px;
    color: #765113;
    font-weight: 700;
}

.lookup-results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.lookup-result {
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 3px;
    padding: 12px;
    background: #fff;
}

.lookup-result span {
    color: var(--muted);
}

.group-link-box {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    border: 1px solid rgba(4, 154, 122, 0.35);
    border-radius: 3px;
    background: #eefaf6;
    padding: 14px;
}

.group-link-box span {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.group-link-box p {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.group-link-box a {
    overflow-wrap: anywhere;
    color: #075ba8;
    font-weight: 800;
}

.loading-state,
.empty-state {
    padding: 30px 18px;
    text-align: center;
}

@media (min-width: 700px) {
    .page-shell {
        padding-top: 22px;
    }

    .site-topbar {
        padding-right: max(12px, calc((100% - 760px) / 2 + 12px));
        padding-left: max(12px, calc((100% - 760px) / 2 + 12px));
    }

    .compact-grid,
    .group-list,
    .schedule-list,
    .book-grid,
    .book-actions,
    .invoice-parties,
    .invoice-header,
    .invoice-footer,
    .invoice-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-poster {
        grid-template-columns: 72px 1fr auto;
        padding: 18px;
    }

    .poster-mini {
        justify-items: end;
    }

    .invoice-meta {
        justify-items: end;
        text-align: right;
    }

    .section-title-row,
    .reader-toolbar,
    .reader-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
    }

    .section-title-row h2 {
        grid-column: span 2;
        margin-bottom: 0;
    }

    .book-card {
        grid-template-columns: 180px 1fr;
    }

    .home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-card img {
        height: 100%;
        max-height: none;
    }

    .floating-register {
        right: calc(50% - 360px);
    }
}

@media print {
    body {
        background: #fff;
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    .invoice-actions,
    .floating-register,
    .site-topbar,
    .invoice-save-warning,
    .invoice-switcher {
        display: none;
    }

    .invoice-sheet {
        border: 0;
    }
}

.closed-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #e8f1f8 0%, #dfe8f2 100%);
}

.closed-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 24px);
    padding-top: 20px;
    padding-bottom: 28px;
}

.closed-shell {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow:
        0 18px 40px rgba(23, 35, 63, 0.08),
        0 2px 8px rgba(23, 35, 63, 0.04);
}

.closed-hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #f4faf8;
}

.closed-banner {
    display: block;
    width: 100%;
    /* aspect-ratio: 16 / 7; */
    object-fit: contain;
    object-position: center;
}

.closed-card {
    padding: 28px 22px 30px;
    text-align: center;
}

.closed-card-head {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.closed-mark {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    margin-bottom: 4px;
    border: 1px solid rgba(4, 154, 122, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(4, 154, 122, 0.08), rgba(0, 168, 222, 0.08)),
        #fff;
    box-shadow: 0 8px 20px rgba(4, 154, 122, 0.12);
}

.closed-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.closed-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid rgba(199, 53, 53, 0.18);
    border-radius: 999px;
    background: #fff3f3;
    padding: 0 12px;
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.closed-card .eyebrow {
    margin: 0;
}

.closed-card h1 {
    margin: 0;
    max-width: 26ch;
    font-size: clamp(1.55rem, 4.8vw, 2rem);
    line-height: 1.25;
}

.closed-copy {
    max-width: 36rem;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.closed-notice-head {
    max-width: 36rem;
    margin: 22px auto 0;
    text-align: center;
}

.closed-notice-head h2 {
    margin: 6px 0 10px;
}

.closed-notice-head p:last-child {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.closed-quiz-link {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

.closed-time-grid,
.closed-schedule,
.closed-instructions {
    margin-top: 18px;
    text-align: left;
}

.closed-time-grid {
    display: grid;
    gap: 10px;
}

.closed-time-grid .time-panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
}

.closed-schedule h2,
.closed-instructions h2,
.closed-actions h2 {
    margin-bottom: 12px;
    text-align: center;
}

.closed-actions {
    max-width: 36rem;
    margin: 24px auto 0;
    text-align: center;
}

.closed-actions > p {
    margin: 0 auto 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.closed-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.closed-btn {
    width: auto;
    min-height: 46px;
    padding: 0 16px;
    font-size: 15px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.closed-btn.submit-button:hover {
    background: var(--green-dark);
    box-shadow: 0 8px 18px rgba(4, 154, 122, 0.24);
    transform: translateY(-1px);
}

.closed-btn.outline-button:hover {
    background: #ebf8f5;
    box-shadow: 0 6px 14px rgba(4, 154, 122, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .closed-page {
        padding-top: 10px;
        padding-bottom: 18px;
    }

    .closed-card {
        padding: 22px 16px 24px;
    }

    .closed-banner {
        aspect-ratio: 16 / 9;
    }

    .closed-action-buttons {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .closed-card h1 {
        max-width: 100%;
    }

    .closed-btn {
        width: 100%;
    }
}

@media (min-width: 720px) {
    .closed-page {
        width: min(100%, 992px);
    }

    .closed-card {
        padding: 32px 36px 34px;
    }

    .closed-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
