@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #031450;
    --navy-deep: #010a2a;
    --teal: #5ce1e6;
    --mint: #b9fff5;
    --gold: #ffb85c;
    --rose: #ff8f8f;
    --ink: #0f172a;
    --ink-soft: #475569;
    --white: #ffffff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --stroke: rgba(3, 20, 80, 0.12);
    --shadow: 0 24px 60px rgba(3, 20, 80, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(92, 225, 230, 0.22), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(255, 184, 92, 0.22), transparent 25%),
        linear-gradient(180deg, #eef7ff 0%, #f8fbff 48%, #eef4ff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

.ambient {
    position: fixed;
    inset: auto;
    z-index: 0;
    pointer-events: none;
    filter: blur(28px);
    opacity: 0.75;
}

.ambient-one {
    top: 88px;
    left: -48px;
    width: 220px;
    height: 220px;
    background: rgba(92, 225, 230, 0.32);
    border-radius: 50%;
}

.ambient-two {
    right: 5%;
    bottom: 10%;
    width: 280px;
    height: 280px;
    background: rgba(255, 184, 92, 0.22);
    border-radius: 50%;
}

.app-frame {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 22px auto;
}

.topbar {
    background: linear-gradient(160deg, rgba(3, 20, 80, 0.98), rgba(4, 28, 102, 0.92));
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(3, 20, 80, 0.25);
}

.topbar__stripe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 28px;
    background: #031450;
}

.topbar__stripe--centered {
    justify-content: center;
}

.topbar__stripe--centered .brandmark {
    margin: 0 auto;
}

.brandmark img {
    height: 88px;
    width: auto;
}

.topbar__side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.stripe-title {
    color: var(--white);
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    white-space: nowrap;
}

.topnav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topnav a {
    display: inline-flex;
    padding: 12px 18px;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.topnav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.topnav__icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topnav__label {
    line-height: 1;
}

.topnav a:hover,
.topnav a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.topnav a:hover .topnav__icon,
.topnav a.is-active .topnav__icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.hero {
    padding: 34px 30px 38px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(92, 225, 230, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.hero__eyebrow,
.section-heading__eyebrow,
.metric-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero__eyebrow {
    color: var(--mint);
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dashboard-body--user .hero h1 {
    font-size: clamp(1.45rem, 2.1vw, 2.25rem);
    line-height: 1.08;
}

.hero p {
    width: min(760px, 100%);
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

.page-content {
    padding: 28px 0 48px;
}

.flash {
    margin-bottom: 22px;
    padding: 16px 20px;
    border-radius: 18px;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.flash--success {
    color: #085f46;
    background: rgba(185, 255, 245, 0.9);
    border-color: rgba(8, 95, 70, 0.12);
}

.flash--error {
    color: #8b1e3a;
    background: rgba(255, 143, 143, 0.18);
    border-color: rgba(139, 30, 58, 0.18);
}

.login-grid,
.content-grid,
.split-metrics,
.card-grid {
    display: grid;
    gap: 22px;
}

.login-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
}

.login-grid--single {
    grid-template-columns: minmax(0, 780px);
    justify-content: center;
}

.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid--sidebar {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.38fr);
}

.content-grid--narrow {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
}

.split-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.split-metrics--admin {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(220px, 1fr));
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.glass-card,
.table-card,
.metric-card,
.library-card,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.glass-card,
.table-card {
    padding: 26px;
}

.metric-card {
    padding: 24px;
    backdrop-filter: blur(12px);
}

.metric-card--wide {
    background: linear-gradient(145deg, rgba(3, 20, 80, 0.98), rgba(9, 51, 162, 0.9));
    color: var(--white);
}

.metric-card--wide p,
.metric-card--wide .metric-card__label {
    color: rgba(255, 255, 255, 0.82);
}

.metric-card strong {
    display: block;
    margin: 10px 0 8px;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.metric-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading--tight {
    margin-bottom: 16px;
}

.section-heading__eyebrow {
    color: var(--navy);
    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.auth-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.auth-inline-note {
    margin: 4px 0 0;
    text-align: center;
}

.auth-status {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-status--success {
    color: #0f4d3c;
    background: rgba(76, 201, 172, 0.16);
    border: 1px solid rgba(76, 201, 172, 0.24);
}

.auth-status--error {
    color: #8f1237;
    background: rgba(255, 110, 110, 0.12);
    border: 1px solid rgba(197, 31, 76, 0.18);
}

.auth-inline-link {
    color: #0b2d75;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 45, 117, 0.28);
    padding-bottom: 1px;
}

.auth-inline-link:hover {
    color: #1158d1;
    border-bottom-color: rgba(17, 88, 209, 0.48);
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
}

.field input,
.field select,
.inline-form input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--ink);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus,
.field select:focus,
.inline-form input:focus {
    border-color: rgba(3, 20, 80, 0.48);
    box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.18);
    transform: translateY(-1px);
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #0b2d75;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
}

.password-toggle:hover {
    background: rgba(3, 20, 80, 0.08);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(3, 20, 80, 0.35);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
}

.btn--icon {
    justify-content: center;
}

.btn__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.btn__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn--small {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.btn--primary {
    color: var(--white);
    background: linear-gradient(135deg, #031450, #1158d1);
    box-shadow: 0 16px 30px rgba(3, 20, 80, 0.24);
}

.btn--ghost {
    color: var(--navy);
    background: rgba(3, 20, 80, 0.07);
}

.btn--danger {
    color: var(--white);
    background: linear-gradient(135deg, #c51f4c, #ff6e6e);
}

.verify-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}

.verify-email-edit-form {
    padding-top: 16px;
    border-top: 1px solid rgba(3, 20, 80, 0.08);
}

@media (max-width: 720px) {
    .verify-actions-grid {
        grid-template-columns: 1fr;
    }
}

.info-panel {
    display: grid;
    gap: 18px;
}

.muted {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--navy);
    background: rgba(92, 225, 230, 0.18);
}

.pill--soft {
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    background: rgba(3, 20, 80, 0.08);
}

.pill--source {
    min-width: 112px;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap--pdfs {
    overflow-x: auto;
    padding-bottom: 4px;
}

.table-wrap--users {
    overflow-x: auto;
    padding-bottom: 4px;
}

.users-list-heading {
    margin-bottom: 18px;
}

.users-list-heading__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.users-list-heading__count {
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

.users-table {
    min-width: 940px;
    border-collapse: separate;
    border-spacing: 0 14px;
    table-layout: fixed;
}

.users-table thead th:nth-child(1) {
    width: 13%;
}

.users-table thead th:nth-child(2) {
    width: 16%;
}

.users-table thead th:nth-child(3) {
    width: 31%;
}

.users-table thead th:nth-child(4) {
    width: 11%;
}

.users-table thead th:nth-child(5) {
    width: 12%;
}

.users-table thead th:nth-child(6) {
    width: 17%;
}

.users-table tbody td {
    padding: 18px 16px;
    border-top: 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(3, 20, 80, 0.08);
}

.users-table tbody tr td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.users-table tbody tr td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.users-table__name strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.32;
}

.users-table__username {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d2942;
}

.users-table__email {
    color: #334155;
    font-weight: 500;
}

.users-table__status-pill {
    min-width: 86px;
}

.users-table__status-pill--active {
    background: rgba(3, 20, 80, 0.1);
    color: var(--navy);
}

.users-table__status-pill--inactive {
    background: rgba(197, 31, 76, 0.14);
    color: #9b1b49;
}

.users-table__updated {
    color: #25324a;
    font-weight: 600;
}

.users-table__actions .table-actions {
    justify-content: flex-end;
    gap: 10px;
}

.users-table__actions .btn {
    min-width: 92px;
}

.user-records {
    display: grid;
    gap: 14px;
}

.user-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(3, 20, 80, 0.09);
}

.user-record--compact .user-record__side {
    min-width: 120px;
}

.user-record__identity {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.user-record__name {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #111f3d;
}

.user-record__meta {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr) minmax(120px, 1fr);
    gap: 10px;
}

.user-meta-item {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(3, 20, 80, 0.04);
}

.user-meta-item__label {
    color: #1d2942;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-meta-item__value {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.user-meta-item--updated .user-meta-item__value {
    overflow-wrap: normal;
    white-space: nowrap;
}

.user-record__side {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 106px;
}

.user-record__status-pill {
    min-width: 90px;
}

.user-record__joined-pill {
    min-width: 118px;
    letter-spacing: 0.03em;
    font-size: 0.74rem;
    background: rgba(17, 88, 209, 0.12);
    color: #0e2b61;
}

.user-record__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 92px;
}

.user-record__actions form {
    margin: 0;
    width: 100%;
}

.user-record__actions .btn {
    width: 100%;
    min-height: 36px;
    font-size: 0.84rem;
    padding: 8px 10px;
    border-radius: 11px;
}

.admin-notice-card {
    margin-bottom: 22px;
}

.admin-notice-card__form {
    max-width: 860px;
}

.admin-notice-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-notice-toggle__option {
    position: relative;
    cursor: pointer;
}

.admin-notice-toggle__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-notice-toggle__option span {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    background: rgba(244, 247, 255, 0.92);
    display: grid;
    align-items: center;
    justify-items: center;
    color: #1f2d4a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-notice-toggle__option input:checked + span {
    border-color: rgba(3, 20, 80, 0.48);
    background: linear-gradient(145deg, rgba(3, 20, 80, 0.98), rgba(17, 88, 209, 0.94));
    color: var(--white);
    box-shadow: 0 14px 24px rgba(3, 20, 80, 0.18);
}

.admin-notice-panel {
    display: none;
    gap: 12px;
}

.admin-notice-panel.is-active {
    display: grid;
}

.admin-notice-image-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-notice-image-preview {
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.admin-notice-image-preview img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(3, 20, 80, 0.1);
    background: #f8faff;
}

.admin-notice-image-preview p {
    margin: 0;
    color: #4a5875;
    font-size: 0.95rem;
    line-height: 1.45;
}

.admin-notice-image-preview__meta {
    display: grid;
    gap: 2px;
}

.admin-notice-image-preview__meta strong {
    color: #12244d;
    font-size: 0.95rem;
    line-height: 1.3;
}

.admin-notice-image-preview__meta small {
    color: #5c6b88;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 20px;
}

.notice-gallery-modal[hidden] {
    display: none;
}

.notice-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 20, 80, 0.42);
    cursor: pointer;
}

.notice-gallery-modal__panel {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    max-height: 88vh;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(3, 20, 80, 0.1);
    background: #f6f9ff;
    box-shadow: 0 24px 48px rgba(3, 20, 80, 0.24);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    overflow: hidden;
}

.notice-gallery-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice-gallery-modal__header h2 {
    margin: 0;
    color: #10224f;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.notice-gallery-upload {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(3, 20, 80, 0.1);
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 12px;
}

.notice-gallery-grid {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.notice-gallery-item {
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    padding: 8px;
    text-align: left;
    display: grid;
    gap: 8px;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.notice-gallery-item:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 88, 209, 0.5);
}

.notice-gallery-item.is-selected {
    border-color: rgba(3, 20, 80, 0.58);
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.24);
}

.notice-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(3, 20, 80, 0.1);
    background: #edf3ff;
}

.notice-gallery-item span {
    color: #1a2c4e;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.notice-gallery-modal__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-tab-assignments {
    margin-bottom: 22px;
}

.admin-tabs-form {
    display: grid;
    gap: 18px;
}

.admin-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-tab-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(3, 20, 80, 0.08);
    display: grid;
    gap: 12px;
    min-width: 0;
}

.admin-tab-card__head h3 {
    margin: 0;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.04rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.admin-tab-card__list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.admin-tab-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(3, 20, 80, 0.04);
    color: #1e2a44;
    font-size: 0.92rem;
    line-height: 1.45;
}

.admin-tab-check input {
    margin-top: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.pdf-admin-layout {
    display: grid;
    gap: 22px;
}

.pdf-admin-layout__upload {
    width: min(560px, 100%);
}

.pdf-records {
    display: grid;
    gap: 16px;
}

.pdf-record {
    display: grid;
    grid-template-columns: minmax(300px, 1.45fr) minmax(260px, 1fr) minmax(360px, auto);
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 0 0 1px rgba(3, 20, 80, 0.08);
}

.pdf-record__main,
.pdf-record__edit {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.pdf-record__label {
    color: #5d6b86;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pdf-record__form {
    margin: 0;
}

.pdf-record__input {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 18px;
    background: rgba(244, 247, 255, 0.98);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pdf-record__input:focus {
    border-color: rgba(3, 20, 80, 0.48);
    box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.16);
    outline: none;
    transform: translateY(-1px);
}

.pdf-record__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    gap: 12px;
    align-items: center;
}

.pdf-record__action {
    width: 100%;
    min-width: 0;
}

.pdf-record__action--save {
    box-shadow: 0 16px 28px rgba(3, 20, 80, 0.18);
}

.pdf-record__action--download {
    background: rgba(3, 20, 80, 0.07);
}

.pdf-record__replace-form {
    margin: 0;
    position: relative;
}

.pdf-record__replace-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.pdf-record__action--replace {
    background: rgba(8, 38, 112, 0.08);
}

.pdf-record__action--delete {
    box-shadow: 0 16px 28px rgba(197, 31, 76, 0.18);
}

.pdf-record__delete-form {
    margin: 0;
}

.pdf-table {
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 14px;
    table-layout: fixed;
}

.pdf-table thead th:nth-child(1) {
    width: 40%;
}

.pdf-table thead th:nth-child(2) {
    width: 24%;
}

.pdf-table thead th:nth-child(3) {
    width: 12%;
}

.pdf-table thead th:nth-child(4),
.pdf-table thead th:nth-child(5) {
    width: 12%;
}

thead th {
    padding: 0 0 16px;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
}

tbody td {
    padding: 16px 0;
    border-top: 1px solid rgba(3, 20, 80, 0.08);
    vertical-align: middle;
}

.pdf-table tbody td {
    padding: 18px 16px;
    border-top: 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(3, 20, 80, 0.08);
}

.pdf-table tbody tr td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.pdf-table tbody tr td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.pdf-table__title-cell,
.pdf-table__input-cell,
.pdf-table__source-cell,
.pdf-table__action-cell {
    vertical-align: middle;
}

.pdf-table__input-cell,
.pdf-table__source-cell,
.pdf-table__action-cell {
    text-align: center;
}

.pdf-table__form {
    display: block;
}

.pdf-table__input {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 18px;
    background: rgba(244, 247, 255, 0.98);
    color: var(--ink);
}

.pdf-table__input:focus {
    border-color: rgba(3, 20, 80, 0.48);
    box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.16);
    outline: none;
}

.pdf-table__action {
    width: 100%;
    min-width: 124px;
}

.pdf-table__action--save {
    box-shadow: 0 16px 28px rgba(3, 20, 80, 0.18);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-actions form {
    margin: 0;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.empty-state {
    padding: 28px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.empty-state--compact {
    padding: 20px;
}

.library-card {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.library-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.library-card h2 {
    margin: 0;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.library-card p {
    margin: 0;
}

.arrow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(3, 20, 80, 1), rgba(17, 88, 209, 0.94));
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(3, 20, 80, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.arrow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(3, 20, 80, 0.24);
}

.arrow-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.55;
    box-shadow: none;
}

.pdf-stage {
    display: grid;
    gap: 22px;
}

.pdf-stage__library-bar,
.pdf-stage__controls,
.pdf-stage__viewer {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.pdf-stage__library-bar {
    display: block;
    padding: 18px;
}

.pdf-stage__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.pdf-stage__tab {
    min-height: 56px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.96));
    color: #1f2d46;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pdf-stage__tab span {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.pdf-stage__tab small {
    min-width: 30px;
    min-height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.83rem;
    font-weight: 800;
    color: #203053;
    background: rgba(3, 20, 80, 0.08);
}

.pdf-stage__tab:hover {
    transform: translateY(-1px);
    border-color: rgba(3, 20, 80, 0.22);
}

.pdf-stage__tab.is-active {
    color: var(--white);
    border-color: rgba(17, 88, 209, 0.6);
    background: linear-gradient(145deg, rgba(3, 20, 80, 0.98), rgba(17, 88, 209, 0.94));
    box-shadow: 0 16px 28px rgba(3, 20, 80, 0.24);
}

.pdf-stage__tab.is-active small {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.pdf-stage__search {
    display: grid;
    align-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.pdf-stage__search--inline {
    justify-self: stretch;
}

.pdf-stage__controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
    padding: 16px 20px;
}

.pdf-stage__controls[hidden] {
    display: none !important;
}

.pdf-stage__controls-search {
    width: 100%;
    max-width: 700px;
    justify-self: stretch;
}

.pdf-stage__search-shell {
    position: relative;
}

.pdf-stage__search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 18;
    display: grid;
    gap: 6px;
    max-height: 280px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(3, 20, 80, 0.16);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 255, 0.98));
    box-shadow: 0 18px 30px rgba(3, 20, 80, 0.2);
}

.pdf-stage__search-suggestions[hidden] {
    display: none;
}

.pdf-stage__search-suggestion {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    text-align: left;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.pdf-stage__search-suggestion-title {
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}

.pdf-stage__search-suggestion-hint {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5e6a85;
}

.pdf-stage__search-suggestion:hover,
.pdf-stage__search-suggestion.is-active {
    color: var(--navy);
    background: rgba(92, 225, 230, 0.2);
}

.pdf-stage__notice {
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    box-shadow: var(--shadow);
    text-align: center;
}

.pdf-stage__notice strong {
    display: block;
    color: #10224f;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: 800;
}

.pdf-stage__notice--media {
    padding: 0;
    overflow: hidden;
    min-height: clamp(300px, 40vw, 540px);
}

.pdf-stage__notice-image-trigger {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.pdf-stage__notice-image {
    display: block;
    width: 100%;
    height: clamp(300px, 40vw, 540px);
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: #eef3ff;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.notice-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 86;
    display: grid;
    place-items: center;
    padding: 20px;
}

.notice-image-lightbox[hidden] {
    display: none;
}

.notice-image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 20, 80, 0.72);
    cursor: pointer;
}

.notice-image-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(1220px, 100%);
    max-height: 90vh;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(160deg, #081741, #102a63);
    box-shadow: 0 24px 46px rgba(3, 20, 80, 0.4);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
}

.notice-image-lightbox__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice-image-lightbox__head h3 {
    margin: 0;
    color: #f2f6ff;
    font-size: 1.18rem;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.notice-image-lightbox__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-image-lightbox__body {
    min-height: 0;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 18, 46, 0.76);
    padding: 8px;
}

.notice-image-lightbox__body img {
    display: block;
    width: 100%;
    max-height: calc(90vh - 180px);
    object-fit: contain;
    border-radius: 12px;
}

.pdf-stage__search-field {
    display: grid;
    gap: 8px;
    min-height: auto;
    align-content: center;
}

.pdf-stage__search-label {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pdf-stage__search-input {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    color: var(--ink);
    font-size: 1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pdf-stage__search-input:focus {
    border-color: rgba(3, 20, 80, 0.48);
    box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.16);
    transform: translateY(-1px);
}

.pdf-stage__copy h2 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.pdf-stage__copy p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.pdf-stage__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-stage__counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    min-width: 118px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(3, 20, 80, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 252, 0.98));
    color: var(--navy);
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pdf-stage__counter span {
    font-size: 1.7rem;
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.pdf-stage__counter small {
    color: #5d6b86;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pdf-stage__table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.pdf-stage__table-head h3 {
    margin: 0;
    flex: 1 1 420px;
    min-width: 220px;
}

.pdf-stage__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
}

.pdf-stage__back,
.pdf-stage__download {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pdf-stage__back {
    min-width: 110px;
}

.pdf-stage__download {
    min-width: 170px;
    padding-inline: 18px;
}

.pdf-stage__back.pdf-stage__back--hidden,
.pdf-stage__download.pdf-stage__download--hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.pdf-stage__corporate {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(3, 20, 80, 0.02), rgba(17, 88, 209, 0.03)),
        var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.pdf-stage__corporate[hidden] {
    display: none;
}

.pdf-stage__corporate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.pdf-stage__corporate-card {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 156px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92));
}

.pdf-stage__corporate-card h4 {
    margin: 0;
    color: #10224f;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.pdf-stage__corporate-card-tab {
    margin: 0;
    color: #506085;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pdf-stage__announcement-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 248, 255, 0.94));
}

.pdf-stage__announcement-card p {
    margin: 0;
    color: #10224f;
    line-height: 1.65;
    white-space: pre-wrap;
}

.pdf-stage__announcement-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    background: #fff;
}

.pdf-stage__announcement-actions {
    display: flex;
    justify-content: flex-end;
}

.pdf-stage__catalog {
    display: grid;
    gap: 14px;
}

.pdf-stage__catalog-head h4 {
    margin: 0;
    color: #10224f;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.14rem;
    letter-spacing: -0.01em;
}

.pdf-stage__catalog-hint {
    margin: 6px 0 0;
    color: #4a5a7f;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 600;
}

.pdf-stage__catalog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pdf-stage__catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(3, 20, 80, 0.12);
    background: rgba(255, 255, 255, 0.94);
}

.pdf-stage__catalog-open {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: #11234d;
    cursor: pointer;
    font-family: inherit;
}

.pdf-stage__catalog-open:hover .pdf-stage__catalog-title {
    text-decoration: underline;
}

.pdf-stage__catalog-index {
    flex: 0 0 auto;
    min-width: 46px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 20, 80, 0.08);
    color: #10224f;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pdf-stage__catalog-title {
    min-width: 0;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.pdf-stage__catalog-meta {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pdf-stage__catalog-tab {
    color: #506085;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pdf-stage__catalog-download {
    flex: 0 0 auto;
    white-space: nowrap;
}

.pdf-stage__viewer {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(3, 20, 80, 0.02), rgba(17, 88, 209, 0.03)),
        var(--surface);
}

.pdf-stage__viewer[hidden] {
    display: none !important;
}

.pdf-stage__nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.pdf-stage__nav-arrow--left {
    left: -84px;
}

.pdf-stage__nav-arrow--right {
    right: -84px;
}

.pdf-stage__viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pdf-stage__viewer-head strong {
    display: block;
    margin-top: 10px;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.pdf-stage__status {
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(3, 20, 80, 0.06);
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 700;
}

.pdf-stage__pages {
    display: grid;
    gap: 18px;
    min-height: 620px;
    max-height: 82vh;
    overflow-y: auto;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(3, 20, 80, 0.06), rgba(3, 20, 80, 0.02));
}

.pdf-stage__content-shell {
    display: grid;
    gap: 18px;
}

.pdf-stage__summary-card,
.pdf-stage__meta-card,
.pdf-stage__section-card,
.pdf-stage__loading,
.pdf-stage__empty {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(3, 20, 80, 0.06);
}

.pdf-stage__summary-card {
    padding: 26px;
}

.pdf-stage__summary-card--table {
    padding: 24px;
}

.pdf-stage__section-kicker {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
}

.pdf-stage__summary-card h3 {
    margin: 0 0 12px;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    letter-spacing: -0.04em;
    color: #0d1d45;
}

.pdf-stage__summary-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.82;
}

.pdf-doc {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.pdf-doc__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #1f2e49;
    table-layout: fixed;
    background: #ffffff;
    font-family: "Times New Roman", Georgia, serif;
}

.pdf-doc__table th,
.pdf-doc__table td {
    border: 1px solid #1f2e49;
    padding: 7px 9px;
    color: #0f203c;
    font-size: 0.95rem;
    line-height: 1.25;
    vertical-align: top;
    word-break: break-word;
}

.pdf-doc__table--profile th,
.pdf-doc__table--profile .pdf-doc__cell-label {
    background: #1e3c6f;
    color: #ffffff;
    font-weight: 700;
}

.pdf-doc__table--profile th {
    width: 24%;
}

.pdf-doc__table--profile td {
    width: 26%;
}

.pdf-doc__table--section thead th {
    background: #1e3c6f;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 1.12rem;
    padding: 5px 8px;
}

.pdf-doc__subhead {
    text-align: center;
    font-weight: 700;
    color: #111e36;
}

.pdf-doc__body {
    display: grid;
    gap: 8px;
}

.pdf-doc__body p {
    margin: 0;
    color: #111e36;
    font-size: 0.97rem;
    line-height: 1.26;
}

.pdf-doc__list {
    margin: 0;
    padding: 0 0 0 24px;
}

.pdf-doc__list li {
    margin: 2px 0;
    color: #111e36;
    font-size: 0.97rem;
    line-height: 1.26;
}

.pdf-doc__status {
    border: 1px solid rgba(3, 20, 80, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: #2b3b58;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
}

.pdf-stage__preview {
    display: grid;
    gap: 18px;
    margin-top: 2px;
}

.pdf-stage__preview-note,
.pdf-stage__preview-status {
    border: 1px solid rgba(3, 20, 80, 0.14);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #203556;
    font-size: 0.95rem;
    line-height: 1.55;
}

.pdf-stage__preview-page {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(3, 20, 80, 0.12);
    box-shadow: 0 18px 34px rgba(3, 20, 80, 0.08);
}

.pdf-stage__preview-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #1b3157;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pdf-stage__preview-canvas,
.pdf-stage__preview-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(3, 20, 80, 0.12);
    border-radius: 12px;
    background: #ffffff;
}

.pdf-stage__preview-fallback {
    display: grid;
    gap: 16px;
}

.pdf-stage__preview-iframe {
    min-height: 72vh;
}

.pdf-doc-plain {
    display: grid;
    gap: 16px;
    margin-top: 2px;
}

.pdf-doc-plain__section {
    border: 1px solid #1f2e49;
    background: #ffffff;
    padding: 12px 14px;
    display: grid;
    gap: 10px;
    font-family: "Times New Roman", Georgia, serif;
}

.pdf-doc-plain__section h4 {
    margin: 0;
    color: #132b5d;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.18;
}

.pdf-doc-plain__section .pdf-doc__body {
    gap: 10px;
}

.pdf-doc-plain__section .pdf-doc__body p {
    font-size: 1.1rem;
    line-height: 1.4;
}

.pdf-doc-plain__raw {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #111e36;
    font-size: 1.05rem;
    line-height: 1.56;
    font-family: "Times New Roman", Georgia, serif;
}

.pdf-doc-plain__section .pdf-doc__list {
    padding-left: 28px;
    gap: 7px;
}

.pdf-doc-plain__section .pdf-doc__list li {
    font-size: 1.1rem;
    line-height: 1.4;
}

.pdf-stage__data-table-wrap {
    margin-top: 14px;
    border: 1px solid rgba(3, 20, 80, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.pdf-stage__data-table {
    width: 100%;
    border-collapse: collapse;
}

.pdf-stage__data-table thead th {
    padding: 12px 14px;
    color: #1c3057;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(3, 20, 80, 0.14);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(238, 244, 252, 0.98));
}

.pdf-stage__data-table tbody {
    display: table-row-group;
}

.pdf-stage__data-table tbody tr {
    display: table-row;
    border-bottom: 1px solid rgba(3, 20, 80, 0.1);
}

.pdf-stage__data-row--full {
    background: rgba(255, 255, 255, 0.98);
}

.pdf-stage__data-row--summary td {
    background: rgba(255, 255, 255, 0.98);
}

.pdf-stage__data-row--description {
    background: rgba(252, 253, 255, 0.98);
}

.pdf-stage__data-table tbody th {
    width: 31%;
    min-width: 220px;
    padding: 14px;
    color: #0f2453;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(3, 20, 80, 0.11);
    border-right: 1px solid rgba(3, 20, 80, 0.1);
    border-bottom: 1px solid rgba(3, 20, 80, 0.1);
    white-space: normal;
    vertical-align: top;
}

.pdf-stage__data-row--full th {
    border-right: 1px solid rgba(3, 20, 80, 0.1);
    border-bottom: 1px solid rgba(3, 20, 80, 0.1);
    background: rgba(3, 20, 80, 0.11);
    color: #0f2453;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.pdf-stage__data-table tbody td {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(3, 20, 80, 0.1);
    white-space: normal;
    vertical-align: top;
}

.pdf-stage__data-table tbody tr:last-child th,
.pdf-stage__data-table tbody tr:last-child td {
    border-bottom: 0;
}

.pdf-stage__data-detail {
    display: grid;
    gap: 10px;
    font-family: Georgia, 'Times New Roman', serif;
}

.pdf-stage__data-detail p {
    margin: 0;
    color: #243750;
    line-height: 1.58;
    font-size: 1.02rem;
}

.pdf-stage__data-detail ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.pdf-stage__data-detail li {
    color: #243750;
    line-height: 1.56;
    font-size: 1.01rem;
}

.pdf-stage__timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pdf-stage__timeline-list li {
    position: relative;
    padding-left: 14px;
    color: #213551;
    line-height: 1.62;
}

.pdf-stage__timeline-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.63em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, #031450, #1158d1);
}

.pdf-stage__timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.pdf-stage__timeline-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(3, 20, 80, 0.18);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
}

.pdf-stage__timeline-table tbody tr:nth-child(even) {
    background: rgba(3, 20, 80, 0.03);
}

.pdf-stage__timeline-table th,
.pdf-stage__timeline-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(3, 20, 80, 0.1);
    text-align: left;
    vertical-align: top;
}

.pdf-stage__timeline-table tbody tr:last-child th,
.pdf-stage__timeline-table tbody tr:last-child td {
    border-bottom: 0;
}

.pdf-stage__timeline-table th {
    width: 28%;
    color: #071b4f;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(3, 20, 80, 0.08);
}

.pdf-stage__timeline-table td {
    color: #1d314d;
    line-height: 1.55;
}

.pdf-stage__timeline-col {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pdf-stage__timeline-col li {
    color: #1c2f4a;
    line-height: 1.52;
    font-size: 1.02rem;
}

.pdf-stage__timeline-col li strong {
    color: #071b4f;
    font-weight: 800;
}

.pdf-stage__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.pdf-stage__meta-grid.is-empty {
    display: none;
}

.pdf-stage__meta-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.pdf-stage__meta-card span {
    color: #5d6b86;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pdf-stage__meta-card strong {
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--ink);
}

.pdf-stage__sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pdf-stage__section-card {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.pdf-stage__section-card--full {
    grid-column: 1 / -1;
}

.pdf-stage__section-card h4 {
    margin: 0;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.pdf-stage__section-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.78;
}

.pdf-stage__section-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdf-stage__section-card li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    line-height: 1.72;
}

.pdf-stage__section-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #031450, #1158d1);
}

.pdf-stage__loading,
.pdf-stage__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    padding: 24px;
    color: var(--ink-soft);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.locked-field {
    display: grid;
    gap: 4px;
}

.locked-field--pdf {
    gap: 6px;
}

.locked-field strong {
    font-size: 1rem;
}

.locked-field--pdf strong {
    font-size: 1.1rem;
    line-height: 1.35;
}

.locked-field span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

form {
    margin: 0;
}

.login-body .page-content {
    padding-top: 24px;
}

@media (max-width: 980px) {
    .login-grid,
    .content-grid,
    .content-grid--sidebar,
    .split-metrics,
    .split-metrics--admin {
        grid-template-columns: 1fr;
    }

    .pdf-stage__viewer-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-stage__library-bar {
        padding: 16px;
    }

    .pdf-stage__controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .pdf-stage__controls-search {
        max-width: none;
        justify-self: stretch;
    }

    .pdf-stage__catalog-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .pdf-stage__catalog-download {
        margin-left: 58px;
    }

    .admin-tabs-grid {
        grid-template-columns: 1fr;
    }

    .admin-notice-toggle {
        grid-template-columns: 1fr;
    }

    .notice-gallery-modal__panel {
        width: min(940px, 100%);
    }

    .notice-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .pdf-stage__actions {
        justify-content: flex-start;
    }

    .pdf-stage__sections-grid {
        grid-template-columns: 1fr;
    }

    .user-record {
        grid-template-columns: 1fr;
    }

    .user-record__meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-record__side {
        justify-items: start;
    }

    .user-meta-item--updated .user-meta-item__value {
        white-space: normal;
    }

    .user-record__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .pdf-record {
        grid-template-columns: 1fr 1fr;
    }

    .pdf-record__actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pdf-table {
        min-width: 860px;
        table-layout: auto;
    }

    .pdf-stage__nav-arrow--left {
        left: -58px;
    }

    .pdf-stage__nav-arrow--right {
        right: -58px;
    }

    .users-table {
        min-width: 900px;
    }

    .topbar__stripe {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar__side {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .topnav {
        width: 100%;
    }

    .brandmark img {
        height: 74px;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .app-frame {
        width: min(100% - 20px, 1200px);
        margin: 10px auto 20px;
    }

    .topbar {
        border-radius: 24px;
    }

    .topbar__stripe {
        padding: 18px 18px 16px;
    }

    .topbar__side {
        gap: 12px;
    }

    .brandmark img {
        height: 64px;
    }

    .stripe-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 26px 18px 28px;
    }

    .glass-card,
    .table-card,
    .metric-card,
    .library-card,
    .pdf-stage__library-bar,
    .pdf-stage__controls,
    .pdf-stage__viewer,
    .pdf-stage__corporate {
        padding: 18px;
        border-radius: 22px;
    }

    .pdf-stage__pages {
        min-height: 520px;
        max-height: none;
        padding: 8px;
    }

    .pdf-stage__loading,
    .pdf-stage__empty {
        min-height: 420px;
    }

    .pdf-stage__summary-card,
    .pdf-stage__section-card {
        padding: 18px;
    }

    tbody td,
    thead th {
        white-space: nowrap;
    }

    .actions-row,
    .table-actions,
    .pdf-stage__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .notice-gallery-modal {
        padding: 10px;
    }

    .notice-gallery-modal__panel {
        padding: 14px;
        border-radius: 18px;
    }

    .notice-gallery-modal__header {
        align-items: flex-start;
    }

    .notice-gallery-modal__header h2 {
        font-size: 1.25rem;
    }

    .notice-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice-image-lightbox {
        padding: 10px;
    }

    .notice-image-lightbox__panel {
        padding: 10px;
        border-radius: 16px;
    }

    .notice-image-lightbox__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-image-lightbox__actions {
        width: 100%;
    }

    .pdf-stage__notice--media {
        min-height: 240px;
    }

    .pdf-stage__notice-image {
        height: clamp(240px, 56vw, 360px);
    }

    .users-list-heading__row {
        align-items: stretch;
    }

    .pdf-doc-plain__section h4 {
        font-size: 1.45rem;
    }

    .pdf-doc-plain__section .pdf-doc__body p,
    .pdf-doc-plain__section .pdf-doc__list li {
        font-size: 1rem;
    }

    .users-list-heading__count {
        justify-content: center;
    }

    .admin-tab-card__list {
        max-height: none;
    }

    .user-record__actions {
        grid-template-columns: 1fr;
    }

    .pdf-stage__nav-arrow {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .pdf-stage__nav-arrow--left {
        left: -30px;
    }

    .pdf-stage__nav-arrow--right {
        right: -30px;
    }

    .pdf-stage__timeline-grid {
        grid-template-columns: 1fr;
    }

    .pdf-doc {
        overflow-x: auto;
    }

    .pdf-doc__table {
        min-width: 700px;
    }

    .pdf-stage__data-table-wrap {
        overflow-x: auto;
    }

    .pdf-stage__data-table {
        min-width: 640px;
    }

    .pdf-stage__data-table thead {
        display: table-header-group;
    }

    .pdf-stage__catalog-item {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-stage__catalog-download {
        margin-left: 0;
    }

    .pdf-record {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .pdf-record__actions {
        grid-template-columns: 1fr;
    }

    .pdf-table__action {
        min-width: 0;
    }
}
