:root {
    color-scheme: light;
    --navy: #102a43;
    --navy-deep: #0b1f33;
    --navy-light: #244766;
    --gold: #c5a45d;
    --gold-soft: #f7f1e4;
    --ink: #243746;
    --muted: #718096;
    --line: #e4e9ef;
    --canvas: #f5f7fa;
    --white: #fff;
    --green: #2f855a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --app-font-size: 14px;
    --brand-logo-width: 52px;
    --brand-logo-height: 52px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: var(--app-font-size); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 254px; flex: 0 0 254px; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #eaf0f5; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 28px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand-mark { display: inline-flex; width: var(--brand-logo-width); height: var(--brand-logo-height); flex: 0 0 var(--brand-logo-width); align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--gold); border-radius: 8px; color: #f4d992; font-family: Georgia, serif; font-size: min(14px, var(--brand-logo-width)); letter-spacing: 1px; }
.brand-logo { display: block; width: var(--brand-logo-width); height: var(--brand-logo-height); flex: 0 0 var(--brand-logo-width); object-fit: contain; border-radius: 5px; background: white; }
.brand-logo-login { width: min(var(--brand-logo-width), 120px); height: min(var(--brand-logo-height), 120px); flex-basis: min(var(--brand-logo-width), 120px); margin: auto; }
.brand strong, .brand small, .sidebar-footer strong, .sidebar-footer small { display: block; }
.brand strong { font-size: 13px; font-weight: 650; }
.brand small, .sidebar-footer small { margin-top: 4px; color: #adbdcc; font-size: 11px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 27px; }
.nav-caption, .eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.nav-caption { padding: 0 12px 9px; color: #93a6b8; }
.nav-caption-spaced { padding-top: 23px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 6px; color: #d3dee8; font-size: 13px; transition: background .15s ease; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.12); }
.nav-link.active { box-shadow: inset 3px 0 var(--gold); }
.nav-icon { width: 18px; color: #d8c184; font-size: 17px; text-align: center; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-footer strong { font-size: 11px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #64c99a; box-shadow: 0 0 0 4px rgba(100,201,154,.12); }
.main-column { min-width: 0; flex: 1; }
.topbar { position: sticky; z-index: 4; top: 0; display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.topbar-context { display: flex; flex-direction: column; gap: 4px; }
.topbar-context strong { color: var(--navy); font-size: 14px; font-weight: 650; }
.topbar-context .eyebrow { font-size: 9px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.avatar, .profile-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--navy); background: #e8eef3; font-weight: 700; }
.avatar { width: 36px; height: 36px; }
.user-label strong, .user-label small { display: block; }
.user-label strong { font-size: 12px; }
.user-label small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.logout-button { margin-left: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; font-size: 11px; }
.logout-button:hover { border-color: #b7c3cf; background: #f8fafc; }
.menu-toggle { display: none; }
.content { width: min(100%, 1500px); margin: 0 auto; padding: 32px 36px 20px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-intro .eyebrow { margin: 0 0 7px; color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--navy); font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.5px; }
h2 { margin-bottom: 0; color: var(--navy); font-size: 17px; letter-spacing: -.15px; }
h3 { margin-bottom: 16px; color: var(--navy); font-size: 14px; }
.muted { color: var(--muted); }
.page-intro .muted { margin: 0; font-size: 13px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.button-primary { border-color: var(--navy); color: white; background: var(--navy); }
.button-primary:hover { border-color: var(--navy-deep); background: var(--navy-deep); }
.button-secondary { border-color: #cfd8e1; color: var(--navy); background: white; }
.button-secondary:hover, .button-quiet:hover { border-color: #aebdca; background: #f8fafc; }
.button-quiet { border-color: transparent; color: #596c7c; background: transparent; }
.button-danger { border-color: #b83b45; color: white; background: #b83b45; }
.button-danger:hover { border-color: #982c35; background: #982c35; }
.button-wide { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 124px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 2px 6px rgba(16,42,67,.025); }
.stat-card-primary { border-top: 3px solid var(--gold); }
.stat-label, .stat-foot { display: block; }
.stat-label { color: #5f7180; font-size: 12px; font-weight: 550; }
.stat-card strong { display: block; margin-top: 12px; color: var(--navy); font-size: 27px; font-weight: 680; line-height: 1; }
.stat-foot { margin-top: 8px; color: #96a2ad; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 2px 7px rgba(16,42,67,.025); }
.dashboard-grid > .panel { padding: 20px; }
.panel-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-heading .eyebrow, .section-heading .eyebrow { margin: 0 0 5px; color: var(--gold); }
.panel-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 7px; color: var(--navy); background: #eef3f6; font-size: 19px; }
.distribution-row { display: flex; justify-content: space-between; padding: 11px 1px; border-bottom: 1px solid #eef1f4; color: #506271; font-size: 12px; }
.distribution-row strong { color: var(--navy); }
.panel-foot { margin-top: 14px; color: #8997a3; font-size: 10px; }
.recent-panel { padding: 20px 20px 0; }
.text-link { color: var(--navy-light); font-size: 11px; font-weight: 650; }
.text-link:hover, .row-action:hover { color: #a78031; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #778795; background: #fafbfd; font-size: 10px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #edf0f3; color: #506170; font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }
.table-id { color: #748493; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.table-name { color: var(--navy); font-weight: 650; }
.row-action { color: var(--navy-light); font-size: 11px; font-weight: 650; }
.badge { display: inline-flex; padding: 4px 8px; border: 1px solid #e6ebef; border-radius: 20px; color: #526371; background: #f6f8fa; font-size: 10px; font-weight: 600; }
.badge-success { border-color: #cce8d9; color: var(--green); background: #f0faf4; }
.badge-gold { border-color: #ead9ae; color: #826526; background: var(--gold-soft); }
.empty-state { padding: 25px 12px; color: #8593a0; text-align: center; font-size: 12px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 27px; padding: 14px 0 0; border-top: 1px solid var(--line); color: #8a97a3; font-size: 10px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.form-control, .form-select, .stack-form input { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #d6dee6; border-radius: 5px; outline: none; color: var(--ink); background: white; font-size: 12px; }
.form-control:focus, .form-select:focus, .stack-form input:focus { border-color: #6a849b; box-shadow: 0 0 0 3px rgba(36,71,102,.1); }
.filter-form .search-input { width: min(390px, 100%); }
.filter-form .form-select { width: 190px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 17px; color: var(--muted); font-size: 11px; }
.pagination a { color: var(--navy-light); font-weight: 650; }
.breadcrumb { display: flex; gap: 9px; margin: -7px 0 17px; color: #8593a0; font-size: 11px; }
.breadcrumb a { color: var(--navy-light); }
.profile-header { display: flex; align-items: center; gap: 16px; padding: 22px; margin-bottom: 17px; }
.profile-avatar { width: 56px; height: 56px; flex: 0 0 56px; color: #fff; background: var(--navy); font-family: Georgia,serif; font-size: 20px; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-title { min-width: 0; flex: 1; }
.profile-title .eyebrow { margin-bottom: 5px; color: var(--gold); }
.profile-title h1 { margin: 0 0 5px; font-size: 22px; }
.profile-title p { margin: 0; font-size: 12px; }
.profile-actions { display: flex; align-items: center; gap: 4px; }
.profile-actions form { margin: 0; }
.delete-confirm-panel { max-width: 760px; margin: 0 auto; padding: 28px; }
.delete-confirm-panel > .eyebrow { margin-bottom: 8px; color: #b83b45; }
.delete-confirm-panel > p { color: #506170; line-height: 1.65; }
.delete-consequences { display: grid; gap: 10px; margin: 20px 0; padding: 18px 18px 18px 36px; border: 1px solid #f0d7d9; border-radius: 6px; color: #506170; background: #fff9f9; font-size: 13px; line-height: 1.5; }
.delete-warning { display: block; margin: 0; font-size: 12px; }
.delete-confirm-panel .form-actions { margin-top: 24px; }
.delete-confirm-panel .form-actions form { margin: 0; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 17px; }
.profile-main, .profile-side { padding: 21px; }
.profile-side { position: sticky; top: 94px; }
.profile-side h2 { margin: 5px 0 18px; }
.profile-side > strong { display: block; margin-top: 8px; color: var(--navy); font-size: 21px; }
.profile-side > p.muted { margin: 6px 0; font-size: 11px; line-height: 1.6; }
.progress-track { height: 7px; overflow: hidden; border-radius: 8px; background: #edf1f4; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.side-divider { height: 1px; margin: 19px 0; background: var(--line); }
.side-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.side-meta strong { color: var(--ink); font-weight: 600; }
.profile-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { padding: 0 0 12px; color: #758492; font-size: 11px; white-space: nowrap; }
.tab.active { border-bottom: 2px solid var(--gold); color: var(--navy); font-weight: 650; }
.detail-section { padding: 22px 0 18px; border-bottom: 1px solid #edf0f3; scroll-margin-top: 100px; }
.detail-section:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 25px; margin: 0; }
.detail-grid div { min-width: 0; }
.detail-grid dt { margin-bottom: 5px; color: #8a97a3; font-size: 10px; }
.detail-grid dd { margin: 0; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.detail-grid .field-full { grid-column: 1/-1; }
.history-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf0f3; font-size: 11px; }
.history-item:last-child { border-bottom: 0; }
.history-item strong { color: var(--ink); }
.history-item span { color: var(--muted); }
.form-panel { padding: 23px; }
.form-section { padding: 0 0 22px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin-bottom: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.identity-document-fields[hidden] { display: none; }
.field { min-width: 0; }
.field label, .stack-form label { display: block; margin-bottom: 6px; color: #415463; font-size: 11px; font-weight: 650; }
.field-full { grid-column: 1/-1; }
.field textarea { min-height: 78px; resize: vertical; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.field-error { display: block; margin-top: 5px; color: #b33a3a; font-size: 10px; }
.required-mark { color: #b34b4b; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.document-upload-panel, .document-list-panel { padding: 21px; margin-bottom: 16px; }
.document-upload-form .form-grid { margin-bottom: 14px; }
.upload-hint { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.document-actions { display: flex; gap: 13px; }
.document-actions form { display: inline-flex; margin: 0; }
.row-action-button { padding: 0; border: 0; color: var(--navy-light); background: transparent; font-size: 11px; font-weight: 650; }
.row-action-button:hover { color: #a78031; }
.danger-link { color: #a43e3e; }
.export-panel { padding: 22px; }
.export-filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field-picker { padding: 17px 0 20px; margin: 20px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field-picker legend { padding: 0 10px 0 0; color: var(--navy); font-size: 13px; font-weight: 650; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding-top: 12px; }
.checkbox-option { display: flex; align-items: center; gap: 8px; color: #536574; font-size: 11px; }
.checkbox-option input { accent-color: var(--navy); }
.export-note { margin: 0 0 18px; padding: 11px 13px; border-left: 3px solid var(--gold); color: #637381; background: #faf8f3; font-size: 11px; line-height: 1.6; }
.selection-export-form { padding-bottom: 3px; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.selection-actions > .checkbox-option { margin-right: auto; }
.report-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.report-card { display: flex; min-height: 177px; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 2px 7px rgba(16,42,67,.025); transition: border-color .15s ease, transform .15s ease; }
.report-card:hover { transform: translateY(-2px); border-color: #bcc9d4; }
.report-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 13px; border-radius: 7px; color: var(--navy); background: #eef3f6; font-size: 19px; }
.report-card strong { color: var(--navy); font-size: 13px; }
.report-card small { margin: 7px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.report-card .text-link { margin-top: auto; }
.report-profile-panel { padding: 20px; margin-bottom: 16px; }
.report-profile-panel .muted { font-size: 12px; }
.archive-profile-option { margin: 18px 0; }
.archive-jobs { padding: 20px; margin-top: 17px; }
.archive-status-panel { padding: 22px; }
.archive-download-button { margin-top: 22px; }
.activity-description { min-width: 220px; white-space: normal; }
.field-label-inline { color: #415463; font-size: 11px; font-weight: 650; }
@media (max-width: 760px) { .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .report-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .checkbox-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .export-filter-grid { grid-template-columns: 1fr; } .checkbox-grid { grid-template-columns: 1fr; } .selection-actions { align-items: stretch; flex-wrap: wrap; } .selection-actions > .checkbox-option { width: 100%; } .selection-actions .muted { width: 100%; } }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.message { padding: 11px 13px; border: 1px solid #cce8d9; border-radius: 5px; color: #236545; background: #f0faf4; font-size: 12px; }
.message-error { border-color: #f0cccc; color: #923d3d; background: #fff5f5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: linear-gradient(135deg,var(--navy),var(--navy-deep)); }
.login-card { width: min(100%,410px); padding: 36px; border: 1px solid rgba(255,255,255,.7); border-radius: 9px; background: white; box-shadow: 0 20px 60px rgba(2,18,33,.25); }
.submission-card { width: min(100%,1000px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px; border: 1px solid rgba(255,255,255,.7); border-radius: 9px; background: white; box-shadow: 0 20px 60px rgba(2,18,33,.25); }
.submission-card > .eyebrow, .submission-card > h1, .submission-card > .muted { text-align: center; }
.submission-card > .muted { max-width: 650px; margin: 0 auto 24px; font-size: 12px; }
.submission-form .form-section { margin-bottom: 15px; }
.submission-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.identity-documents-section { padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.identity-documents-section h2 { margin-bottom: 8px; }
.identity-documents-intro { margin-bottom: 18px; font-size: 12px; line-height: 1.6; }
.identity-document-choice { max-width: 430px; margin-bottom: 18px; }
.identity-choice-panel[hidden] { display: none; }
.identity-choice-panel { padding: 16px; margin-bottom: 14px; border: 1px solid #dfe6ec; border-radius: 7px; background: white; }
.identity-choice-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.identity-choice-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.identity-choice-step, .optional-mark { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 99px; color: var(--navy); background: #eef3f6; font-size: 9px; font-weight: 700; letter-spacing: .45px; white-space: nowrap; }
.identity-upload-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.identity-upload-card { min-width: 0; padding: 14px; border: 1px solid #e6ebf0; border-radius: 6px; background: #fbfcfd; }
.identity-upload-card label { display: flex; align-items: center; gap: 6px; min-height: 20px; margin-bottom: 10px; }
.file-picker { position: relative; display: grid !important; grid-template-columns: auto minmax(0,1fr); min-width: 0; min-height: 62px; align-items: center; gap: 6px 9px; padding: 8px; margin: 0 !important; border: 1px dashed #cbd6df; border-radius: 5px; background: white; cursor: pointer; }
.file-picker:focus-within { outline: 3px solid rgba(36,71,102,.14); border-color: #6a849b; }
.file-picker-button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #cfd8e1; border-radius: 4px; color: var(--navy); background: #f5f8fa; font-size: 11px; font-weight: 650; }
.file-picker:hover .file-picker-button { background: #eaf0f4; }
.file-picker-name { grid-column: 1/-1; min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.file-picker input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.identity-upload-card .field-help { line-height: 1.5; }
.passport-upload-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,1fr); align-items: center; gap: 14px; margin-top: 12px; }
.passport-upload-card label { margin-bottom: 4px; }
.passport-upload-card .field-help { margin-top: 0; }
.optional-mark { min-height: 19px; color: #647568; background: #edf5ef; font-size: 8px; }
.identity-upload-card .required-mark { font-size: 12px; }
.submission-privacy { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.submission-review-panel { padding: 22px; }
.submission-review-panel .detail-grid { margin-bottom: 24px; }
.submission-photo-preview { margin-bottom: 22px; }
.submission-photo-preview h2 { margin-bottom: 12px; }
.submission-photo-preview img { width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; }
.submission-decision-form { border-top: 1px solid var(--line); padding-top: 19px; }
.submission-decision-form .field { margin-bottom: 18px; }
.submission-outcome { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; }
.login-brand { display: flex; justify-content: center; margin-bottom: 23px; }
.login-brand .brand-mark { width: 57px; height: 57px; color: var(--gold); }
.login-card > .eyebrow { margin-bottom: 8px; color: var(--gold); text-align: center; }
.login-card h1 { font-size: 22px; text-align: center; }
.login-card > .muted { margin-bottom: 23px; text-align: center; font-size: 12px; }
.stack-form { display: grid; gap: 9px; }
.stack-form label { margin: 6px 0 0; }
.stack-form .button { margin-top: 13px; }
.login-note { margin: 20px 0 0; color: #8794a0; font-size: 10px; text-align: center; }
.font-system { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-arial { font-family: Arial, sans-serif; }
.font-helvetica { font-family: Helvetica, Arial, sans-serif; }
.font-verdana { font-family: Verdana, sans-serif; }
.font-tahoma { font-family: Tahoma, sans-serif; }
.font-trebuchet { font-family: "Trebuchet MS", sans-serif; }
.font-georgia { font-family: Georgia, serif; }
.font-times { font-family: "Times New Roman", serif; }
.font-palatino { font-family: Palatino, "Palatino Linotype", serif; }
.font-courier { font-family: "Courier New", monospace; }
.font-garamond { font-family: Garamond, serif; }
.appearance-panel { max-width: 850px; padding: 22px; }
.appearance-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.appearance-color-field input[type="color"] { width: 100%; height: 42px; padding: 4px; cursor: pointer; }
.appearance-logo-preview { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.appearance-logo-preview img { width: var(--brand-logo-width); height: var(--brand-logo-height); max-width: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .sidebar { position: fixed; z-index: 8; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 12px 0 30px rgba(4,18,30,.14); }
    .sidebar.is-open { transform: translateX(0); }
    .topbar { height: 65px; justify-content: flex-start; gap: 12px; padding: 0 16px; }
    .menu-toggle { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; color: var(--navy); background: white; }
    .topbar-user { margin-left: auto; }
    .user-label { display: none; }
    .logout-button { margin-left: 0; padding: 7px; }
    .content { padding: 24px 16px 18px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 13px; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-side { position: static; }
    .profile-header { align-items: flex-start; flex-wrap: wrap; }
    .profile-actions { width: 100%; justify-content: flex-end; }
    .profile-tabs { gap: 15px; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .stat-card { min-height: 109px; padding: 14px; }
    .stat-card strong { font-size: 24px; }
    .page-intro { align-items: flex-start; flex-direction: column; }
    .page-intro > .button { width: 100%; }
    .form-grid, .detail-grid { grid-template-columns: 1fr; }
    .detail-grid .field-full { grid-column: auto; }
    .filter-form { align-items: stretch; }
    .filter-form .search-input, .filter-form .form-select { width: 100%; }
    .filter-form .button { flex: 1; }
    .page-footer { flex-direction: column; }
    .login-card, .submission-card { padding: 27px 22px; }
    .submission-form .form-grid { grid-template-columns: 1fr; }
    .identity-documents-section { padding: 16px; }
    .identity-upload-grid { grid-template-columns: 1fr; }
    .identity-choice-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .passport-upload-card { grid-template-columns: 1fr; gap: 10px; }
    .appearance-form-grid { grid-template-columns: 1fr; }
}
