* {
    box-sizing:border-box;
}
body {
    margin:0;
    background:#f3f5f9;
    color:#1f2937;
    font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
.top {
    background:#132b4f;
    color:#fff;
    padding:15px max(20px,calc((100% - 1180px)/2));
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    flex-wrap:wrap;
}
.brand {
    color:white;
    font-weight:800;
    text-decoration:none;
    font-size:19px;
}
.top nav {
    display:flex;
    gap:15px;
    align-items:center;
    flex-wrap:wrap;
}
.top nav a,.top nav span {
    color:#eaf1ff;
    text-decoration:none;
    font-size:13px;
}
.container {
    max-width:1180px;
    margin:28px auto;
    padding:0 18px;
    min-height:70vh;
}
.footer {
    text-align:center;
    color:#6b7280;
    padding:25px;
    font-size:12px;
}
.card {
    background:#fff;
    border:1px solid #e1e6ef;
    border-radius:14px;
    padding:22px;
    margin-bottom:18px;
    box-shadow:0 3px 12px #14213d08;
}
.grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:15px;
}
.stat {
    font-size:30px;
    font-weight:800;
    color:#15365f;
}
.muted {
    color:#64748b;
}
.btn,button {
    display:inline-block;
    background:#174b83;
    color:#fff;
    border:0;
    border-radius:8px;
    padding:10px 14px;
    text-decoration:none;
    cursor:pointer;
    font-weight:650;
    font-size:14px;
}
.btn.secondary,button.secondary {
    background:#e8eef6;
    color:#18324f;
}
.btn.danger,button.danger {
    background:#b42318;
}
.btn.success,button.success {
    background:#16794b;
}
.btn.warning {
    background:#a15c00;
}
.actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.form-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:14px;
}
label {
    display:block;
    font-weight:650;
    margin-bottom:5px;
}
input,select,textarea {
    width:100%;
    padding:10px 11px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#fff;
    font:inherit;
}
textarea {
    min-height:80px;
}
form .field {
    margin-bottom:12px;
}
table {
    width:100%;
    border-collapse:collapse;
    background:#fff;
}
th,td {
    text-align:left;
    padding:10px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:top;
}
th {
    background:#edf2f8;
    font-size:13px;
}
td {
    font-size:13px;
}
.table-wrap {
    overflow:auto;
    border-radius:10px;
}
.pill {
    display:inline-block;
    padding:4px 9px;
    border-radius:99px;
    background:#e5e7eb;
    font-size:12px;
}
.pill.green {
    background:#d8f5e5;
    color:#12613b;
}
.pill.red {
    background:#fee2e2;
    color:#991b1b;
}
.pill.amber {
    background:#ffefc2;
    color:#854d0e;
}
.alert {
    padding:12px 15px;
    border-radius:8px;
    background:#e8f2ff;
    margin:12px 0;
}
.alert.error {
    background:#fee2e2;
    color:#991b1b;
}
.alert.success {
    background:#dcfce7;
    color:#166534;
}
h1 {
    font-size:27px;
    margin:0 0 8px;
}
h2 {
    font-size:19px;
    margin-top:0;
}
.qrgrid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
}
.qrbox {
    border:1px dashed #aab8ca;
    border-radius:12px;
    padding:18px;
    text-align:center;
}
.qrimage {
    margin:12px auto;
    min-height:200px;
    display:flex;
    justify-content:center;
    align-items:center;
}
.small {
    font-size:12px;
}
.login {
    max-width:480px;
    margin:7vh auto;
}
.right {
    float:right;
}
.nowrap {
    white-space:nowrap;
}
@media print {
    .top,.footer,.no-print,.btn,button {
        display:none!important;
    }
    body {
        background:#fff;
    }
    .container {
        max-width:none;
        margin:0;
        padding:0;
    }
    .card {
        box-shadow:none;
        border:0;
        padding:0;
    }
    th {
        background:#eee!important;
    }
    table {
        font-size:10px;
    }
    td,th {
        padding:5px;
    }
}
/* Header, footer, dashboard and filtered-print enhancements */
.top {
    padding:0 22px;
    min-height:82px;
}
.header-inner {
    width:100%;
    max-width:1180px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.brand {
    display:flex;
    align-items:center;
    gap:10px;
    line-height:1.15;
}
.brand-mark {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border-radius:12px;
    background:#24466f;
    font-size:24px;
}
.brand strong {
    display:block;
    letter-spacing:.2px;
}
.brand small {
    display:block;
    font-size:11px;
    font-weight:500;
    color:#c8d8ed;
    margin-top:4px;
}
.top nav {
    gap:7px;
}
.top nav a {
    padding:9px 10px;
    border-radius:7px;
    transition:background .15s;
}
.top nav a:hover {
    background:#ffffff1c;
}
.top nav .user-chip {
    padding:7px 10px;
    background:#ffffff17;
    border-radius:7px;
}
.top nav .logout-link {
    background:#ffffff14;
}
.nav-toggle {
    display:none;
}
.footer {
    background:#e8edf4;
    border-top:1px solid #d8e0ea;
    padding:20px 22px;
    margin-top:34px;
}
.footer-inner {
    max-width:1180px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:12px;
}
.footer-inner strong,.footer-inner span {
    display:block;
}
.footer-inner span {
    color:#64748b;
}
.print-heading {
    display:none;
}
.page-intro {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:20px;
}
.page-intro h1 {
    margin-bottom:5px;
}
.eyebrow {
    font-size:11px;
    font-weight:800;
    letter-spacing:1.5px;
    color:#52708f;
    margin:0 0 5px;
}
.dashboard-stats {
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin-bottom:26px;
}
.stat-card {
    position:relative;
    overflow:hidden;
}
.stat-label {
    font-weight:650;
    color:#64748b;
}
.stat-note {
    font-size:11px;
    color:#64748b;
    margin-top:3px;
}
.stat {
    font-variant-numeric:tabular-nums;
}
.section-heading {
    margin:8px 0 12px;
}
.unit-stats {
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-bottom:25px;
}
.unit-card {
    display:flex;
    align-items:center;
    gap:14px;
}
.unit-icon {
    display:grid;
    place-items:center;
    min-width:48px;
    height:48px;
    border-radius:13px;
    background:#edf3fa;
    font-size:22px;
}
.attendance-counts {
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-bottom:16px;
}
.attendance-counts .card {
    margin-bottom:0;
}
.filter-actions {
    align-self:end;
}
.print-tools {
    align-items:center;
    margin:15px 0 10px;
}
.print-tools h2 {
    margin-bottom:0;
}
.qrbox button {
    margin-top:8px;
}
.qrbox input {
    font-size:11px;
}
.qrbox .qrimage canvas,.qrbox .qrimage img {
    max-width:100%;
    height:auto;
}
@media(max-width:900px) {
    .top {
        padding:12px 18px;
    }
    .header-inner {
        flex-wrap:wrap;
    }
    .nav-toggle {
        display:inline-block;
        margin-left:auto;
    }
    .top nav {
        display:none;
        width:100%;
        padding:4px 0 10px;
    }
    .top nav.nav-open {
        display:flex;
    }
    .dashboard-stats {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .unit-stats {
        grid-template-columns:1fr;
    }
    .footer-inner {
        flex-direction:column;
        gap:10px;
    }
}
@media(max-width:560px) {
    .dashboard-stats,.attendance-counts {
        grid-template-columns:1fr 1fr;
    }
    .page-intro {
        align-items:flex-start;
        flex-direction:column;
    }
    .top nav.nav-open {
        align-items:stretch;
        flex-direction:column;
    }
    .top nav a,.top nav span {
        display:block;
    }
    .brand strong {
        font-size:15px;
    }
    .container {
        margin-top:20px;
    }
    .card {
        padding:16px;
    }
    .filter-actions .btn,.filter-actions button {
        margin-bottom:6px;
    }
}
@media print {
    .top,.footer,.no-print,.nav-toggle {
        display:none!important;
    }
    .print-heading {
        display:flex;
        flex-direction:column;
        text-align:center;
        border-bottom:1px solid #999;
        padding:0 0 12px;
        margin:0 0 14px;
    }
    .print-heading strong {
        font-size:16px;
    }
    .print-heading span {
        font-size:14px;
        font-weight:700;
    }
    .print-heading small {
        font-size:10px;
        color:#555;
    }
    .container {
        max-width:none;
        margin:0;
        padding:0;
    }
    .card {
        box-shadow:none;
        border:0;
        padding:0;
        margin:0 0 10px;
    }
    .page-intro {
        margin-bottom:10px;
    }
    .page-intro .muted {
        display:none;
    }
    .attendance-counts {
        display:none;
    }
    body {
        background:#fff;
        color:#000;
        font-size:11px;
    }
    h1 {
        font-size:18px;
    }
    h2 {
        font-size:13px;
    }
    th {
        background:#eee!important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }
    table {
        font-size:10px;
    }
    td,th {
        padding:5px;
        border-color:#bbb;
    }
    .table-wrap {
        overflow:visible;
    }
    table {
        page-break-inside:auto;
    }
    tr {
        page-break-inside:avoid;
        page-break-after:auto;
    }
    a {
        color:#000;
        text-decoration:none;
    }
}
.public-top {
    background:#132b4f;
    color:#fff;
    padding:17px 22px;
}
.public-brand {
    max-width:760px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:11px;
}
.public-brand strong,.public-brand small {
    display:block;
}
.public-brand strong {
    font-size:17px;
}
.public-brand small {
    font-size:11px;
    color:#c8d8ed;
}
.public-mark {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border-radius:12px;
    background:#24466f;
    font-size:24px;
}
.public-container {
    margin-top:28px;
}
.public-footer {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    text-align:center;
    padding:20px 15px;
    color:#64748b;
    font-size:12px;
}
.public-footer strong {
    color:#334155;
}
@media print {
    .public-top,.public-footer {
        display:none!important;
    }
}


/* ================================================================
   Design refinement: professional, consistent, accessible interface;
   ================================================================ */
:root {
    --navy-950: #0b1c32;
    --navy-900: #102746;
    --navy-800: #173b63;
    --blue-700: #1d5fa7;
    --blue-600: #2674c8;
    --blue-50: #edf5ff;
    --ink: #17263b;
    --muted: #66768b;
    --line: #dce5ef;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --success: #16764b;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 5px 20px rgba(16, 39, 70, 0.055);
}

html { scroll-behavior: smooth; }
body {
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
::selection { background: #d5e8ff; color: var(--navy-950); }
:focus-visible { outline: 3px solid #7cb8ff; outline-offset: 2px; }

.top {
    background: linear-gradient(112deg, var(--navy-950), var(--navy-800));
    box-shadow: 0 4px 18px rgba(11, 28, 50, .16);
    position: relative;
    z-index: 5;
}
.brand-mark, .public-mark {
    background: linear-gradient(145deg, #2c5d92, #1b3d66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.brand strong { letter-spacing: .25px; }
.top nav a { font-weight: 600; }
.top nav a:hover, .top nav a:focus-visible { background: rgba(255,255,255,.13); }
.top nav .user-chip { border: 1px solid rgba(255,255,255,.12); }

.container {
    max-width: 1240px;
    padding-left: 24px;
    padding-right: 24px;
    margin-top: 30px;
}
.page-intro { margin-bottom: 24px; }
.eyebrow { color: var(--blue-700); letter-spacing: 1.65px; }
h1, h2, h3 { color: var(--navy-950); letter-spacing: -.025em; }
h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; }
h2 { font-size: 19px; line-height: 1.35; }
.muted, .stat-label, .stat-note { color: var(--muted); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 20px;
}
.dashboard-stats .card, .unit-stats .card { margin-bottom: 0; }
.stat-card { min-height: 142px; }
.stat-label { font-size: 13px; }
.stat { color: var(--navy-900); font-size: clamp(28px, 3vw, 35px); letter-spacing: -.04em; line-height: 1.25; margin-top: 8px; }
.stat-note { margin-top: 7px; line-height: 1.45; }
.unit-card { min-height: 122px; }
.unit-icon { background: var(--blue-50); border: 1px solid #deebfa; }
.section-heading { margin-top: 28px; margin-bottom: 14px; }

.btn, button {
    border-radius: 9px;
    background: var(--blue-700);
    padding: 10px 15px;
    min-height: 40px;
    font-weight: 650;
    box-shadow: 0 1px 2px rgba(16,39,70,.08);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover, button:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn:active, button:active { transform: translateY(0); }
.btn.secondary, button.secondary { background: #eef3f9; color: #23415f; border: 1px solid #dce5ef; box-shadow: none; }
.btn.secondary:hover, button.secondary:hover { background: #e1ebf6; }
.btn.success, button.success { background: var(--success); }
.btn.danger, button.danger { background: #b42318; }
.btn.warning { background: #a15c00; }
.actions { align-items: center; }

input, select, textarea {
    border-color: #cbd7e5;
    border-radius: 9px;
    min-height: 42px;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #9fb2c9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #4a8bd3; box-shadow: 0 0 0 3px rgba(38,116,200,.12); }
label { color: #30445c; font-size: 13px; }
.form-grid { gap: 16px; }
.alert { border: 1px solid #cfe1f6; border-radius: 10px; }
.alert.error { border-color: #f4c8c5; }
.alert.success { border-color: #b9e8ce; }
.pill { font-weight: 700; letter-spacing: .01em; }

.table-wrap { border: 1px solid var(--line); background: var(--surface); }
table { min-width: 620px; }
th { background: #f0f5fa; color: #344a63; font-weight: 750; white-space: nowrap; border-bottom: 1px solid #dbe4ee; }
td { color: #293c52; }
tbody tr:nth-child(even) { background: #fbfcfe; }
tbody tr:hover { background: #f1f7ff; }
td, th { padding: 12px 13px; }
td a { color: var(--blue-700); font-weight: 650; text-decoration: none; }
td a:hover { text-decoration: underline; }

.qrbox { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.qrbox h2 { min-height: 48px; }
.qrimage { background: #fff; border-radius: 12px; }
.login { max-width: 480px; margin: 7vh auto; padding: 30px; }
.login h1 { font-size: 27px; }
.footer { background: #eaf0f7; border-top-color: #dce5ef; }
.footer-inner { max-width: 1240px; }
.public-top { background: linear-gradient(112deg, var(--navy-950), var(--navy-800)); }
.public-container { max-width: 810px; }
.public-footer { border-top: 1px solid #e1e8f0; background: #eef3f8; margin-top: 36px; }

@media (max-width: 900px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .card { padding: 20px; }
    .top nav { background: var(--navy-900); border-radius: 10px; padding: 10px; }
}
@media (max-width: 560px) {
    .container { padding-left: 13px; padding-right: 13px; margin-top: 18px; }
    .card { padding: 16px; border-radius: 13px; }
    .dashboard-stats { gap: 11px; }
    .dashboard-stats .stat-card { min-height: 126px; }
    .stat { font-size: 27px; }
    .actions .btn, .actions button { max-width: 100%; }
    .footer-inner { text-align: center; }
    .login { margin: 28px 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .card { box-shadow: none; }
}

.login-submit {
    width: 100%;
    margin-top: 4px;
}

.login .small {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 20px;
}

/* Shared page chrome: consistent header, navigation, and footer across admin pages. */
html { min-height: 100%; }
body.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { min-height: 84px; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.header-inner { max-width: 1320px; min-height: 84px; }
.brand { min-width: 230px; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: #fff; font-size: 0; }
.brand-mark span { display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; font-size: 17px; line-height: 1; font-weight: 800; }
.brand-copy { display: block; }
.brand strong { font-size: 15px; line-height: 1.3; display: block; }
.brand small { font-size: 10px; letter-spacing: .045em; text-transform: uppercase; }
.top nav { justify-content: flex-end; gap: 4px; }
.top nav a { padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; color: #eaf2fc; font-size: 12px; white-space: nowrap; }
.top nav a.is-active { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.15); color: #fff; box-shadow: inset 0 -2px 0 #8ec5ff; }
.top nav a.is-active:hover { background: rgba(255,255,255,.19); }
.top nav .user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 7px; margin-left: 4px; background: rgba(255,255,255,.09); }
.user-avatar { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; border-radius: 9px; background: #dcecff; color: #153b64; font-size: 12px; font-weight: 800; }
.user-details { display: flex; flex-direction: column; line-height: 1.25; }
.user-details strong { color: #fff; font-size: 11px; }
.user-details small { color: #c8d8ed; font-size: 9px; letter-spacing: .07em; }
.top nav .logout-link { border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.05); }
.nav-toggle { align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); }
.nav-toggle-label { font-size: 12px; }
.header-public-label { display: flex; align-items: center; gap: 8px; color: #d7e6f7; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 4px rgba(95,224,160,.13); }
.site-main { width: 100%; flex: 1 0 auto; }
.site-footer { width: 100%; margin-top: 42px; padding: 23px 24px; background: #fff; border-top: 1px solid #dfe7f0; }
.footer-inner { max-width: 1320px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e9f2fc; border: 1px solid #d7e6f7; color: #1d5fa7; font-size: 18px; font-weight: 800; }
.footer-brand strong { color: #203b59; font-size: 12px; letter-spacing: .025em; }
.footer-brand span:not(.footer-mark) { font-size: 11px; margin-top: 3px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 11px; color: #66768b; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: #fff; color: #102746; box-shadow: 0 2px 12px #0002; }
.skip-link:focus { top: 12px; }
@media (max-width: 1100px) {
  .site-header { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .brand { min-width: 205px; }
  .top nav { gap: 2px; }
  .top nav a { padding: 8px; font-size: 11px; }
  .top nav .user-chip { padding-right: 7px; }
}
@media (max-width: 900px) {
  .site-header { padding: 12px 18px; }
  .header-inner { min-height: 0; }
  .brand { min-width: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .top nav { display: none; flex-direction: column; align-items: stretch; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.12); background: #102746; }
  .top nav.nav-open { display: flex; }
  .top nav a { display: flex; justify-content: space-between; padding: 11px 12px; font-size: 13px; }
  .top nav .user-chip { margin: 4px 0; }
  .footer-inner { align-items: flex-start; }
  .footer-meta { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .site-header { padding: 11px 13px; }
  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 9px; }
  .header-public-label { display: none; }
  .site-footer { padding: 19px 14px; }
  .footer-inner { gap: 14px; }
  .footer-meta { font-size: 10px; }
}
@media print {
  .site-header, .site-footer, .skip-link { display: none !important; }
}

/* Public attendance page uses the same visual identity as the admin portal. */
body.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-top { padding: 17px 24px; box-shadow: 0 4px 18px rgba(11,28,50,.13); }
.public-brand { max-width: 1240px; width: 100%; gap: 12px; }
.public-mark { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; font-size: 0; }
.public-mark span { display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; font-size: 17px; line-height: 1; font-weight: 800; }
.public-brand strong { font-size: 14px; letter-spacing: .02em; }
.public-brand small { font-size: 10px; letter-spacing: .045em; text-transform: uppercase; margin-top: 3px; }
.public-header-tag { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); color: #e1ecf8; font-size: 11px; }
.public-header-tag i { width: 7px; height: 7px; border-radius: 50%; background: #5fe0a0; }
.public-container { flex: 1 0 auto; width: 100%; }
.public-container > .card { padding: clamp(20px, 4vw, 34px); }
.public-footer { width: 100%; margin-top: 40px; padding: 20px 24px; background: #fff; border-top: 1px solid #dfe7f0; }
.public-footer-inner { width: 100%; max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.public-footer-brand { display: flex; align-items: center; gap: 10px; text-align: left; }
.public-footer-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e9f2fc; border: 1px solid #d7e6f7; color: #1d5fa7; font-weight: 800; font-size: 18px; }
.public-footer-brand strong, .public-footer-brand small { display: block; }
.public-footer-brand strong { color: #203b59; font-size: 11px; }
.public-footer-brand small { color: #66768b; font-size: 10px; margin-top: 3px; }
.public-footer-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; color: #66768b; font-size: 10px; }
@media (max-width: 600px) {
  .public-top { padding: 13px; }
  .public-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .public-brand strong { font-size: 12px; }
  .public-brand small { font-size: 9px; }
  .public-header-tag { display: none; }
  .public-footer { padding: 17px 13px; }
  .public-footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .public-footer-meta { align-items: flex-start; text-align: left; }
}

/* CMS-inspired application chrome: navy gradient header, off-canvas menu, and compact footer. */
:root {
    --cms-navy: #0f172a;
    --cms-blue: #1e3a8a;
    --cms-ink: #1e293b;
    --cms-muted: #64748b;
    --cms-border: #e2e8f0;
    --cms-surface: #ffffff;
    --cms-page: #f1f5f9;
}
body.app-shell {
    background: var(--cms-page);
    color: var(--cms-ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(135deg, var(--cms-navy) 0%, var(--cms-blue) 100%);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .25);
    border-bottom: 0;
}
.header-inner, .header-left, .header-actions { display: flex; align-items: center; }
.header-inner { gap: 20px; }
.header-left { min-width: 0; gap: 16px; }
.brand { min-width: 0; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-mark i { font-size: 23px; }
.brand-copy strong { color: #fff; font-size: 14px; letter-spacing: .02em; }
.brand-copy small { color: #cbd5e1; font-size: 9px; }
.cms-menu-button, .cms-action-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 9px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255,255,255,.09);
    font: 600 12px/1.2 Inter, system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.cms-menu-button { font-size: 13px; }
.cms-menu-button i { font-size: 18px; }
.cms-menu-button:hover, .cms-action-button:hover { color: #fff; background: rgba(255,255,255,.17); transform: translateY(-1px); }
.header-actions { justify-content: flex-end; gap: 9px; }
.cms-user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: #fff;
}
.cms-user-icon { display: grid; place-items: center; color: #fbbf24; font-size: 25px; }
.cms-user-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.cms-user-copy strong { color: #fff; font-size: 11px; }
.cms-user-copy small { color: #fcd34d; font-size: 9px; font-weight: 700; letter-spacing: .07em; }
.cms-dashboard-button { background: #fff; border-color: #fff; color: #1d4ed8; }
.cms-dashboard-button:hover { color: #1e40af; background: #eff6ff; }
.cms-logout-button { background: #dc2626; border-color: #dc2626; }
.cms-logout-button:hover { background: #b91c1c; border-color: #b91c1c; }
.header-public-label { display: inline-flex; align-items: center; gap: 8px; color: #dbeafe; font-size: 12px; }
.cms-sidebar-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(15,23,42,.52); backdrop-filter: blur(2px); }
.cms-sidebar-backdrop[hidden] { display: none; }
.cms-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: min(320px, 88vw);
    background: #f8fafc;
    box-shadow: 16px 0 40px rgba(15,23,42,.18);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
}
.cms-sidebar.is-open { transform: translateX(0); visibility: visible; }
.cms-sidebar-heading {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--cms-navy) 0%, var(--cms-blue) 100%);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}
.cms-sidebar-heading > span { display: flex; align-items: center; gap: 10px; }
.cms-sidebar-heading > span i { color: #fbbf24; font-size: 17px; }
.cms-sidebar-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ffffff36; border-radius: 8px; color: #fff; background: #ffffff12; cursor: pointer; }
.cms-sidebar-content { flex: 1; overflow-y: auto; padding: 13px 12px 18px; }
.cms-sidebar-section { padding: 17px 10px 7px; color: #1d4ed8; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.cms-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    margin: 3px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.cms-sidebar-link > i:first-child { width: 20px; color: #2563eb; text-align: center; font-size: 17px; }
.cms-sidebar-link:hover { color: #0f172a; background: #e2e8f0; transform: translateX(3px); }
.cms-sidebar-link.is-active { color: #0f172a; background: #fff; border-color: #e2e8f0; box-shadow: 0 3px 8px rgba(15,23,42,.05); font-weight: 750; }
.cms-sidebar-link.is-active > i:first-child { color: #1d4ed8; }
.cms-active-chevron { margin-left: auto; color: #64748b; font-size: 11px !important; }
.cms-sidebar-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.cms-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px 13px; }
.cms-sidebar-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-weight: 800; }
.cms-sidebar-user strong, .cms-sidebar-user small { display: block; }
.cms-sidebar-user strong { color: #1e293b; font-size: 12px; }
.cms-sidebar-user small { margin-top: 3px; color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.cms-sidebar-logout { color: #b91c1c; }
.cms-sidebar-logout > i:first-child { color: #dc2626; }
body.sidebar-open { overflow: hidden; }
.site-main { max-width: 1320px; padding-top: 28px; }
.card { border-color: #e8edf4; border-radius: 15px; box-shadow: 0 4px 12px rgba(15,23,42,.045); }
.btn, button { border-radius: 9px; }
.site-footer { margin-top: 28px; padding: 17px 24px; background: transparent; border-top: 0; }
.footer-inner { padding: 13px 17px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(15,23,42,.035); }
.footer-mark { border-radius: 10px; }
.footer-brand-copy { display: flex; flex-direction: column; gap: 3px; }
.footer-brand-copy strong { color: #203b59; font-size: 11px; letter-spacing: .035em; }
.footer-brand-copy small { color: #64748b; font-size: 10px; }
.footer-meta { gap: 5px; }
.footer-separator { padding: 0 4px; color: #cbd5e1; }
@media (max-width: 900px) {
    .site-header { padding: 10px 15px; }
    .header-inner { flex-wrap: nowrap; }
    .header-left { flex: 1; gap: 10px; }
    .header-actions { gap: 6px; }
    .cms-user-badge { display: none; }
    .cms-action-button { padding: 8px 9px; }
    .site-main { padding-top: 22px; }
}
@media (max-width: 560px) {
    .site-header { padding: 10px 12px; }
    .header-left { gap: 8px; }
    .cms-menu-button { padding: 7px 9px; }
    .cms-menu-button .nav-toggle-label { display: none; }
    .cms-menu-button span { font-size: 0; }
    .cms-menu-button i { font-size: 20px; }
    .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
    .brand-copy strong { font-size: 11px; }
    .brand-copy small { font-size: 8px; }
    .cms-action-button { min-height: 34px; gap: 5px; padding: 7px 8px; font-size: 10px; }
    .cms-action-button i { font-size: 13px; }
    .site-main { padding-top: 17px; }
    .site-footer { padding: 12px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 13px; }
    .footer-meta { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .cms-sidebar, .cms-sidebar-link, .cms-menu-button, .cms-action-button { transition: none !important; }
}

/* Public participant form follows the same CMS palette and typography. */
body.public-shell { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: #f1f5f9; color: #1e293b; }
.public-top { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.public-mark { display: grid; place-items: center; background: rgba(255,255,255,.1); }
.public-mark span { border-color: rgba(255,255,255,.92); }
.public-brand strong { color: #fff; }
.public-brand small { color: #cbd5e1; }
.public-header-tag { background: rgba(255,255,255,.08); }
.public-container > .card { border: 1px solid #e8edf4; border-radius: 16px; box-shadow: 0 5px 18px rgba(15,23,42,.06); }
.public-footer { background: transparent; border-top: 0; padding-top: 12px; }
.public-footer-inner { padding: 13px 17px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(15,23,42,.035); }
@media (max-width: 600px) {
    .public-footer-inner { padding: 13px; }
}


/* Layout hardening: prevent unstyled-looking header/sidebar when legacy selectors override CMS styles. */
body.app-shell { display:flex !important; flex-direction:column !important; min-height:100vh; }
body.app-shell > .site-header { width:100%; flex:0 0 auto; }
.site-header .header-inner { display:flex !important; width:100%; max-width:1320px; margin:0 auto; align-items:center; justify-content:space-between; gap:24px; }
.site-header .header-left { display:flex !important; align-items:center; gap:16px; min-width:0; }
.site-header .brand { display:flex !important; align-items:center; gap:12px; min-width:0; color:#fff; text-decoration:none; }
.site-header .brand-copy { display:flex !important; flex-direction:column; justify-content:center; gap:4px; }
.site-header .brand-copy strong { display:block; color:#fff; line-height:1.3; font-size:15px; }
.site-header .brand-copy small { display:block; color:#dbeafe; line-height:1.4; font-size:10px; }
.site-header .header-actions { display:flex !important; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.site-header .cms-user-badge { display:flex; align-items:center; gap:9px; }
.site-header .cms-user-copy { display:flex; flex-direction:column; gap:3px; }
.site-header .cms-user-copy strong,.site-header .cms-user-copy small { display:block; }
.site-header a, .site-header a:visited { color:#eef5ff; text-decoration:none; }
.site-header a:hover { color:#fff; text-decoration:none; }
.site-header .cms-action-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.site-main { width:100%; flex:1 0 auto; margin:0 auto; }
body.app-shell .cms-sidebar { display:flex !important; position:fixed !important; inset:0 auto 0 0 !important; z-index:1000 !important; width:min(320px,88vw); max-width:100%; height:100dvh; flex-direction:column; overflow:hidden; background:#f8fafc; box-shadow:16px 0 40px rgba(15,23,42,.18); transform:translateX(-105%); visibility:hidden; }
body.app-shell .cms-sidebar.is-open { transform:translateX(0); visibility:visible; }
body.app-shell .cms-sidebar-content { display:block; flex:1; overflow-y:auto; }
body.app-shell .cms-sidebar-link { display:flex !important; align-items:center; width:100%; text-decoration:none; }
body.app-shell .cms-sidebar-link:visited { color:#475569; }
body.app-shell .cms-sidebar-link.is-active { color:#0f172a; }
body.app-shell .cms-sidebar-backdrop { position:fixed; inset:0; z-index:999; background:rgba(15,23,42,.52); }
body.app-shell .cms-sidebar-backdrop[hidden] { display:none !important; }
body.app-shell .site-footer { width:100%; flex:0 0 auto; margin-top:auto; }
.site-footer .footer-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.site-footer .footer-brand { display:flex; align-items:center; gap:11px; }
.site-footer .footer-brand-copy { display:flex; flex-direction:column; gap:3px; }
.site-footer .footer-brand-copy strong,.site-footer .footer-brand-copy small { display:block; }
.site-footer .footer-meta { display:flex; flex-direction:column; align-items:flex-end; gap:5px; text-align:right; }
.skip-link:not(:focus) { position:absolute; top:-100px; }
@media (max-width:760px) {
 .site-header { padding-left:14px !important; padding-right:14px !important; }
 .site-header .header-inner { align-items:center; gap:10px; }
 .site-header .header-left { gap:9px; }
 .site-header .brand { gap:8px; }
 .site-header .brand-copy strong { font-size:12px; }
 .site-header .brand-copy small { font-size:9px; }
 .site-header .header-actions { gap:6px; }
 .site-header .cms-user-badge { display:none; }
 .site-header .cms-action-button span { display:none; }
 .site-main { padding-top:20px; }
 .site-footer .footer-inner { flex-direction:column; align-items:flex-start; }
 .site-footer .footer-meta { align-items:flex-start; text-align:left; }
}


/* Logo header: tingkatkan keterbacaan logo resmi pada latar gelap. */
.brand-mark.brand-mark-image {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.brand-mark-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 7px;
    image-rendering: auto;
}
@media (max-width: 600px) {
    .site-header .brand-mark.brand-mark-image {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        padding: 3px;
    }
}
.settings-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start; margin-top:22px; }
.settings-grid .panel { min-width:0; padding:24px; background:#fff; border:1px solid #dbe3ef; border-radius:16px; box-shadow:0 8px 24px rgba(15,23,42,.045); }
.settings-grid .panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.settings-grid .panel-header h2 { margin:0 0 6px; font-size:19px; color:#142b4f; }
.settings-grid .panel-header p { margin:0; color:#64748b; font-size:13px; }
.settings-panel-icon { font-size:24px; color:#2563eb; }
.settings-upload-form { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.settings-upload-form label { font-weight:700; color:#334155; }
.settings-upload-form input[type=file] { width:100%; padding:14px; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:10px; }
.form-help { margin:0 0 6px; color:#64748b; font-size:13px; line-height:1.6; }
.settings-remove-form { margin-top:16px; padding-top:16px; border-top:1px solid #e2e8f0; }
.logo-header-preview { display:flex; align-items:center; gap:14px; min-height:96px; padding:18px; color:#fff; background:linear-gradient(115deg,#162e52,#0f1d39); border-radius:12px; }
.logo-preview-mark { display:flex; align-items:center; justify-content:center; flex:0 0 54px; width:54px; height:54px; padding:7px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:13px; }
.logo-preview-mark img { display:block; width:100%; height:100%; object-fit:contain; }
.logo-preview-mark i { font-size:29px; }
.logo-preview-copy { display:flex; flex-direction:column; gap:6px; min-width:0; }
.logo-preview-copy strong { font-size:16px; line-height:1.25; }
.logo-preview-copy small { color:#d4deed; font-size:10px; font-weight:700; letter-spacing:.04em; }
.settings-tips { display:grid; gap:10px; margin:20px 0 0; padding-left:20px; color:#526176; font-size:13px; line-height:1.6; }
@media (max-width: 800px) { .settings-grid { grid-template-columns:1fr; } .settings-grid .panel { padding:18px; } }

/* Unified UI audit pass — authoritative component rules */
:root {
  --ui-navy: #14294b;
  --ui-blue: #1d4ed8;
  --ui-blue-dark: #174b83;
  --ui-text: #172b45;
  --ui-muted: #64748b;
  --ui-border: #dbe4ef;
  --ui-surface: #ffffff;
  --ui-page: #f3f6fb;
}
html { scroll-behavior: smooth; }
body.app-shell, body.public-shell {
  margin: 0 !important;
  background: var(--ui-page) !important;
  color: var(--ui-text) !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px;
  line-height: 1.55;
}
body.app-shell > .site-header {
  position: relative;
  z-index: 20;
  display: block !important;
  padding: 0 24px !important;
  background: linear-gradient(115deg, #14294b 0%, #10203d 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .12);
}
body.app-shell .site-header .header-inner {
  min-height: 82px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px;
}
body.app-shell .site-header .header-left,
body.app-shell .site-header .header-actions,
body.app-shell .site-header .brand,
body.app-shell .site-header .cms-user-badge { display: flex !important; align-items: center !important; }
body.app-shell .site-header .header-left { gap: 14px; min-width: 0; }
body.app-shell .site-header .brand { gap: 12px; text-decoration: none !important; }
body.app-shell .site-header .brand-copy { display: flex !important; flex-direction: column; gap: 4px; }
body.app-shell .site-header .brand-copy strong { display: block; color: #fff !important; font-size: 15px; font-weight: 800; line-height: 1.25; }
body.app-shell .site-header .brand-copy small { display: block; color: #d8e4f5 !important; font-size: 10px; line-height: 1.4; letter-spacing: .045em; text-transform: uppercase; }
body.app-shell .site-header .cms-menu-button,
body.app-shell .site-header .cms-action-button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px; background: rgba(255,255,255,.08); color: #fff !important;
  font: 600 12px/1.2 Inter, system-ui, sans-serif; text-decoration: none !important; white-space: nowrap;
}
body.app-shell .site-header .cms-menu-button { background: #1d4f86; cursor: pointer; }
body.app-shell .site-header .cms-menu-button:hover,
body.app-shell .site-header .cms-action-button:hover { background: rgba(255,255,255,.17); }
body.app-shell .site-header .header-actions { gap: 9px; }
body.app-shell .site-header .cms-user-badge { gap: 9px; padding: 5px 8px; }
body.app-shell .site-header .cms-user-copy { display: flex !important; flex-direction: column; gap: 2px; }
body.app-shell .site-header .cms-user-copy strong { color: #fff; font-size: 12px; }
body.app-shell .site-header .cms-user-copy small { color: #cbd5e1; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
body.app-shell .site-header a, body.app-shell .site-header a:visited { color: #f8fbff !important; text-decoration: none !important; }
body.app-shell .site-header .brand-mark { display: grid; place-items: center; overflow: hidden; }
body.app-shell .site-header .brand-mark.brand-mark-image {
  width: 60px !important; height: 60px !important; flex: 0 0 60px !important;
  padding: 5px !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  overflow: hidden !important; background: #fff !important; border-radius: 10px !important;
}
body.app-shell .site-header .brand-mark.brand-mark-image img {
  display: block !important; width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important; object-position: center !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 0 !important; box-sizing: border-box !important;
}
body.app-shell .cms-sidebar {
  display: flex !important; position: fixed !important; inset: 0 auto 0 0 !important;
  z-index: 1000 !important; width: min(320px, 88vw) !important; height: 100vh !important; height: 100dvh !important;
  flex-direction: column !important; overflow: hidden !important; padding: 0 !important;
  background: #f8fafc !important; color: var(--ui-text) !important;
  box-shadow: 18px 0 45px rgba(15,23,42,.2) !important;
  transform: translateX(-110%); visibility: hidden;
  transition: transform .22s ease, visibility .22s ease;
}
body.app-shell .cms-sidebar.is-open { transform: translateX(0) !important; visibility: visible !important; }
body.app-shell .cms-sidebar-heading {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 15px 17px; background: var(--ui-navy) !important; color: #fff !important;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
body.app-shell .cms-sidebar-heading > span { display: flex; align-items: center; gap: 9px; }
body.app-shell .cms-sidebar-content { display: block !important; flex: 1; overflow-y: auto; padding: 10px 12px 18px; }
body.app-shell .cms-sidebar-section { padding: 18px 10px 7px; color: #64748b !important; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
body.app-shell a.cms-sidebar-link,
body.app-shell a.cms-sidebar-link:visited {
  display: flex !important; align-items: center; gap: 10px; width: 100%; min-height: 42px;
  margin: 3px 0; padding: 10px 11px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #475569 !important; font-size: 13px; font-weight: 600;
  line-height: 1.35; text-decoration: none !important; box-shadow: none;
}
body.app-shell a.cms-sidebar-link > i:first-child { display: inline-block; width: 20px; color: #2563eb !important; text-align: center; font-size: 17px; }
body.app-shell a.cms-sidebar-link:hover { background: #eaf0f8 !important; color: #14294b !important; }
body.app-shell a.cms-sidebar-link.is-active { background: #e7efff !important; border-color: #c8d9ff !important; color: #173f86 !important; font-weight: 750; }
body.app-shell .cms-sidebar-close { display: grid !important; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 8px; border: 1px solid #ffffff3d; background: #ffffff12; color: #fff; }
body.app-shell .cms-sidebar-bottom { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--ui-border); }
body.app-shell .cms-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px 13px; }
body.app-shell .cms-sidebar-user strong, body.app-shell .cms-sidebar-user small { display: block; }
body.app-shell .cms-sidebar-user strong { font-size: 12px; }
body.app-shell .cms-sidebar-user small { margin-top: 3px; color: var(--ui-muted); font-size: 9px; font-weight: 800; }
body.app-shell .cms-sidebar-backdrop { position: fixed !important; inset: 0 !important; z-index: 999 !important; background: rgba(15,23,42,.55) !important; }
body.app-shell .cms-sidebar-backdrop[hidden] { display: none !important; }
body.app-shell .site-main { display: block; width: 100%; max-width: 1320px; min-height: 0; flex: 1 0 auto; margin: 0 auto; padding: 28px 24px 36px; }
body.app-shell .site-main h1 { margin: 0 0 8px; color: #14294b; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
body.app-shell .site-main h2 { color: #1e3554; }
body.app-shell .site-main .card { min-width: 0; background: #fff; border: 1px solid var(--ui-border); border-radius: 14px; box-shadow: 0 4px 14px rgba(15,23,42,.045); }
body.app-shell .site-main a:not(.btn) { text-underline-offset: 3px; }
body.app-shell .site-main table { width: 100%; border-collapse: separate; border-spacing: 0; }
body.app-shell .site-main th { background: #f4f7fb; color: #334155; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
body.app-shell .site-main th, body.app-shell .site-main td { padding: 11px 12px; border-bottom: 1px solid #e8edf4; vertical-align: middle; }
body.app-shell .site-main input, body.app-shell .site-main select, body.app-shell .site-main textarea { max-width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #172b45; }
body.app-shell .site-main input:focus, body.app-shell .site-main select:focus, body.app-shell .site-main textarea:focus { outline: 3px solid rgba(37,99,235,.15); border-color: #5b8de8; }
body.app-shell .site-main .btn, body.app-shell .site-main button:not(.cms-sidebar-close) { border-radius: 8px; font-weight: 700; text-decoration: none; }
body.app-shell .site-footer { display: block; width: 100%; margin-top: auto; padding: 0 24px 22px; background: transparent; }
body.app-shell .site-footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1272px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--ui-border); border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.035); }
body.app-shell .site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }
body.app-shell .site-footer .footer-brand-copy { display: flex; flex-direction: column; gap: 3px; }
body.app-shell .site-footer .footer-brand-copy strong { color: #203b59; font-size: 11px; }
body.app-shell .site-footer .footer-brand-copy small, body.app-shell .site-footer .footer-meta { color: #64748b; font-size: 10px; }
body.app-shell .site-footer .footer-meta { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.skip-link:not(:focus) { position: absolute !important; top: -100px !important; left: 12px; }
@media (max-width: 760px) {
  body.app-shell > .site-header { padding: 0 14px !important; }
  body.app-shell .site-header .header-inner { min-height: 72px; gap: 8px; }
  body.app-shell .site-header .header-left { gap: 8px; }
  body.app-shell .site-header .brand { gap: 8px; }
  body.app-shell .site-header .brand-copy strong { font-size: 12px; }
  body.app-shell .site-header .brand-copy small { font-size: 8px; }
  body.app-shell .site-header .brand-mark.brand-mark-image { width: 48px !important; height: 48px !important; flex-basis: 48px !important; padding: 4px !important; }
  body.app-shell .site-header .header-actions { gap: 5px; }
  body.app-shell .site-header .cms-user-badge { display: none !important; }
  body.app-shell .site-header .cms-action-button { min-height: 34px; padding: 7px 8px; }
  body.app-shell .site-header .cms-action-button span { display: none; }
  body.app-shell .site-main { padding: 21px 14px 28px; }
  body.app-shell .site-footer { padding: 0 14px 14px; }
  body.app-shell .site-footer .footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  body.app-shell .site-footer .footer-meta { text-align: left; }
}
@media (max-width: 420px) {
  body.app-shell .site-header .cms-menu-button span { display: none; }
  body.app-shell .site-header .cms-menu-button { width: 36px; padding: 7px; }
  body.app-shell .site-header .brand-copy small { display: none; }
}
@media print {
  body.app-shell { background: #fff !important; }
  body.app-shell > .site-header, body.app-shell .cms-sidebar, body.app-shell .cms-sidebar-backdrop, body.app-shell .site-footer, body.app-shell .no-print { display: none !important; }
  body.app-shell .site-main { max-width: none; padding: 0; }
}
