﻿:root {
    --bg: #eef3f9;
    --surface: #ffffff;
    --border: #d5e0ec;
    --text: #24425f;
    --primary: #002C54;
    --danger: #A4A3AB;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
html, body {
    min-height: 100%;
}
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: #0b2f52;
    color: #fff;
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a {
    color: #d8e5f4;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 16px 20px 28px; min-width: 0; }
.admin-topbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #d7e2ee;
    border-radius: 999px;
    background: #f7fbff;
    color: #0b3d71;
    font-size: 14px;
    font-weight: 700;
}
.admin-clock i {
    color: #0a4ea3;
}
.topbar-notify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #d7e2ee;
    border-radius: 999px;
    background: #f7fbff;
    color: #0b3d71;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    position: relative;
}
.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #e1c6cb;
    border-radius: 999px;
    background: #fff6f7;
    color: #8f1f2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.topbar-notify.active,
.topbar-notify:hover {
    background: #0a4ea3;
    color: #fff;
    border-color: #0a4ea3;
}
.topbar-logout:hover {
    background: #8f1f2d;
    color: #ffffff;
    border-color: #8f1f2d;
}
.notify-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ea8f13;
    color: #fff;
    font-size: 12px;
}
.notify-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ea4335;
    box-shadow: 0 0 0 2px #ffffff;
}
.menu-btn { display: none; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 10px; }
.me { font-size: 14px; color: #3d5b79; }
.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; }
.alert.success { background: #eaf8f0; border-color: #b8e4c7; color: #24603b; }
.alert.error { background: #feeff1; border-color: #f1c2c9; color: #7d1d2b; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}
.panel h2 { margin-top: 0; margin-bottom: 12px; }
.panel h2 i { margin-right: 8px; color: #0a4ea3; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.stat-card h3 { margin: 0 0 8px; font-size: 14px; color: #55718b; }
.stat-card p { margin: 0; font-size: 24px; font-weight: 800; color: #0e375d; }
.form-grid { display: grid; gap: 8px; }
.form-grid.two-col { grid-template-columns: 1fr; }
.form-grid label { font-weight: 600; font-size: 14px; }
.form-grid input, .form-grid textarea, .form-grid select {
    width: 100%;
    border: 1px solid #c7d8e8;
    border-radius: 10px;
    padding: 10px 11px;
    font: inherit;
    color: inherit;
    background: #fcfeff;
}
.password-field {
    position: relative;
}
.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 74px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: #e9ebee;
    color: #7a7f87;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.password-toggle:hover {
    background: #dde1e7;
    color: #000000;
    transform: translateY(-50%) scale(1.03);
}
.password-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Override generic .form-grid button styles for password eye toggle */
.form-grid .password-toggle {
    width: 24px;
    height: 24px;
    margin-left: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7a7f87;
    box-shadow: none;
}

.form-grid .password-toggle:hover {
    background: transparent;
    color: #5c6270;
    transform: translateY(-50%);
}
.form-grid button, .btn, .settings-submit-row button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 12px;
    cursor: pointer;
    width: auto;
    margin-left: 0;
    font-size: 14px;
    font-weight: 600;
}
.form-grid button.secondary { background: #fff; color: var(--primary); }
.btn.small { padding: 2px 2px; font-size: 10px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e0e8f0; padding: 8px; text-align: left; font-size: 13px; }
.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d6e2ef;
    background: #f6faff;
    color: #254868;
    font-weight: 600;
}
.action-chip i { color: #0a4ea3; }
.meta-empty {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f6fa;
    border: 1px solid #d7e2ee;
    color: #5d748c;
    font-size: 12px;
    font-weight: 600;
}
.meta-json {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #284966;
    background: #f8fbff;
    border: 1px solid #d8e6f4;
    border-radius: 8px;
    padding: 4px 8px;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-page {
    display: grid;
    gap: 16px;
}
.notice-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 300px;
    gap: 16px;
    padding: 22px;
    border: 1px solid #d4e0ec;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #082744 0%, #0b467f 58%, #0f5aa1 100%);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(11, 47, 82, 0.12);
}
.notice-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.notice-eyebrow,
.notice-tag,
.notice-subhead {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.notice-eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #deecfb;
}
.notice-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.notice-hero p {
    margin: 0;
    max-width: 680px;
    color: #d7e6f7;
    font-size: 14px;
    line-height: 1.65;
}
.notice-hero-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}
.notice-hero-metrics div {
    padding: 16px 18px;
    border: 1px solid rgba(213, 227, 241, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.notice-hero-metrics span {
    display: block;
    color: #6b8197;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.notice-hero-metrics strong {
    display: block;
    margin-top: 8px;
    color: #0d3153;
    font-size: 30px;
    line-height: 1;
}
.notice-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.notice-ribbon-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #d7e3ef;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.96) 100%);
    box-shadow: 0 10px 20px rgba(14, 49, 83, 0.05);
}
.notice-ribbon-card span {
    color: #7188a0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}
.notice-ribbon-card strong {
    color: #10385d;
    font-size: 26px;
    line-height: 1;
}
.notice-ribbon-card a,
.notice-column-head a,
.notice-panel-head a,
.notice-item-body a,
.notice-feed-body a {
    color: #0a4ea3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.notice-board {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.notice-column {
    display: grid;
    gap: 14px;
}
.notice-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}
.notice-tag {
    padding: 7px 12px;
    border: 1px solid #d4e2ef;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef5fc 0%, #e6f0fa 100%);
    color: #0a4ea3;
}
.notice-panel {
    padding: 16px;
    border: 1px solid #d7e3ef;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(17, 47, 79, 0.06);
}
.notice-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e4edf5;
}
.notice-panel-head h2 {
    margin: 0;
    color: #12395e;
    font-size: 18px;
    line-height: 1.2;
}
.notice-panel-head span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d9e5f1;
    color: #617b95;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}
.notice-panel-head-main {
    display: grid;
    gap: 8px;
}
.notice-panel-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.notice-list,
.notice-feed,
.notice-patterns {
    display: grid;
    gap: 12px;
}
.notice-subhead {
    margin-bottom: 2px;
    color: #6d88a2;
}
.notice-list + .notice-list {
    padding-top: 2px;
}
.notice-item,
.notice-feed-item {
    display: grid;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid #e2ebf3;
    border-radius: 16px;
    background: #fbfdff;
}
.notice-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
}
.notice-item:first-of-type,
.notice-feed-item:first-of-type {
    padding-top: 14px;
}
.notice-index {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf4fb 0%, #e6f0fa 100%);
    border: 1px solid #d8e4ef;
    color: #0a4ea3;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.notice-item-body,
.notice-feed-body {
    min-width: 0;
}
.notice-item-body strong,
.notice-feed-body strong {
    display: block;
    color: #12395e;
    font-size: 14px;
    line-height: 1.35;
}
.notice-item-body span,
.notice-feed-body span {
    display: block;
    margin-top: 4px;
    color: #5f788f;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}
.notice-item-body small,
.notice-feed-body small {
    display: block;
    margin-top: 4px;
    color: #7b92a7;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}
.notice-item-body a,
.notice-feed-body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 11px;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    background: #f7fbff;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.notice-feed-actions {
    margin-top: 10px;
}
.notice-item time,
.notice-feed-top time {
    color: #6f879d;
    font-size: 11px;
    white-space: nowrap;
}
.notice-feed-item {
    grid-template-columns: 30px 42px minmax(0, 1fr);
}
.notice-feed-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a4ea3 0%, #0d3153 100%);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 10px 18px rgba(10, 78, 163, 0.2);
}
.notice-feed-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.notice-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.notice-mini-stat {
    padding: 14px;
    border: 1px solid #dfe8f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
}
.notice-mini-stat span {
    display: block;
    color: #7290a7;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.85px;
}
.notice-mini-stat strong {
    display: block;
    margin-top: 8px;
    color: #12395e;
    font-size: 24px;
    line-height: 1;
}
.notice-patterns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.notice-pattern-block {
    padding: 14px;
    border: 1px solid #e0e9f2;
    border-radius: 16px;
    background: #fbfdff;
}
.notice-mini-row,
.notice-mini-user {
    padding: 11px 12px;
    border: 1px solid #e1eaf2;
    border-radius: 13px;
    background: #ffffff;
}
.notice-mini-row + .notice-mini-row,
.notice-mini-user + .notice-mini-user {
    margin-top: 8px;
}
.notice-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.notice-mini-row span {
    color: #567089;
    font-size: 13px;
    line-height: 1.45;
}
.notice-mini-row strong {
    color: #0d3153;
    font-size: 13px;
    white-space: nowrap;
}
.notice-mini-user strong {
    display: block;
    color: #12395e;
    font-size: 13px;
    line-height: 1.45;
}
.notice-mini-user span {
    display: block;
    margin-top: 4px;
    color: #5f788f;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}
.notice-mini-user small {
    display: block;
    margin-top: 5px;
    color: #7b91a6;
    font-size: 11px;
    line-height: 1.45;
}
.notice-ribbon-card a:hover,
.notice-column-head a:hover,
.notice-panel-head a:hover,
.notice-item-body a:hover,
.notice-feed-body a:hover {
    color: #0d3153;
    border-color: #bfd4e8;
    background: #edf5fc;
    transform: translateY(-1px);
}
.inline-form { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.muted { color: #68829b; margin-top: 0; }
.auth-wrap {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(circle at top, #eef4fc 0%, #e6edf7 60%, #e3ebf6 100%);
}
.auth-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}
.admin-auth-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    color: #a4acb8;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
}
.admin-auth-brand span {
    color: #0a4ea3;
}
.auth-card h1 { margin-top: 0; }
.alt-link, .auth-foot { font-size: 14px; color: #4e6b88; }
.auth-card .form-grid button:not(.password-toggle) {
    width: 100%;
}
.user-dashboard-page {
    background: linear-gradient(180deg, #eef3f9 0%, #e8eff7 100%);
    min-height: 100vh;
}
.user-dashboard-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 16px;
}
.user-dashboard-card {
    background: #ffffff;
    border: 1px solid #d8e3ee;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(10, 39, 67, .06);
}
.user-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d3153 0%, #0a4ea3 100%);
    margin-bottom: 18px;
}

.user-dashboard-hero-main {
    display: grid;
    gap: 10px;
}

.user-dashboard-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #d2e3f8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.user-dashboard-hero h1 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 30px;
}
.user-dashboard-hero p {
    margin: 0;
    color: #d7e6f6;
    font-size: 14px;
    line-height: 1.55;
}

.user-dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-dashboard-hero-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    color: #f5f9ff;
    font-size: 12px;
    font-weight: 700;
}

.user-dashboard-status-wrap {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.user-dashboard-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.2);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

.user-dashboard-status {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
}
.user-dashboard-status span {
    display: block;
    color: #68829a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.user-dashboard-status strong {
    display: block;
    margin-top: 6px;
    color: #0d3153;
    font-size: 22px;
    line-height: 1.2;
}
.user-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.user-dashboard-grid.secondary {
    margin-bottom: 0;
}
.user-info-panel {
    border: 1px solid #dce6ef;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.user-info-panel h2 {
    margin: 0 0 14px;
    color: #12395e;
    font-size: 18px;
}
.user-info-list {
    display: grid;
    gap: 10px;
}
.user-info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e4ecf3;
}
.user-info-row:first-child {
    border-top: 0;
    padding-top: 0;
}
.user-info-row span {
    color: #6a849c;
    font-size: 13px;
    font-weight: 600;
}
.user-info-row strong {
    color: #12395e;
    font-size: 14px;
}
.user-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.user-summary-badges span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d7e4f1;
    color: #0a4ea3;
    font-size: 12px;
    font-weight: 700;
}
.user-summary-text {
    margin: 0 0 14px;
    color: #60798f;
    font-size: 14px;
    line-height: 1.6;
}

.user-profile-highlights {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.user-profile-highlight {
    padding: 12px 13px;
    border: 1px solid #dfe9f2;
    border-radius: 14px;
    background: #fbfdff;
}

.user-profile-highlight span {
    display: block;
    color: #7890a5;
    font-size: 12px;
    font-weight: 700;
}

.user-profile-highlight strong {
    display: block;
    margin-top: 4px;
    color: #113a60;
    font-size: 14px;
    line-height: 1.45;
}

.user-support-box {
    padding: 11px 12px;
    border: 1px solid #dfe9f2;
    border-radius: 14px;
    background: #fbfdff;
    margin-top: 10px;
}
.user-support-box span {
    display: block;
    color: #7890a5;
    font-size: 12px;
    font-weight: 700;
}
.user-support-box strong {
    display: block;
    margin-top: 4px;
    color: #113a60;
    font-size: 14px;
}
.user-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.user-note-list {
    margin: 0;
    padding-left: 18px;
    color: #60798f;
}
.user-note-list li {
    margin-bottom: 10px;
    line-height: 1.55;
    font-size: 14px;
}
.settings-page {
    display: grid;
    gap: 16px;
}

.settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 320px;
    gap: 16px;
    padding: 22px;
    border: 1px solid #d6e2ee;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #082744 0%, #0b467f 58%, #0f5aa1 100%);
    box-shadow: 0 16px 34px rgba(12, 45, 78, 0.1);
}

.settings-eyebrow,
.settings-section-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.settings-eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #deecfb;
}

.settings-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.settings-hero p {
    margin: 0;
    max-width: 720px;
    color: #d7e6f7;
    font-size: 14px;
    line-height: 1.65;
}

.settings-hero-meta {
    display: grid;
    gap: 12px;
}

.settings-hero-card {
    padding: 16px 18px;
    border: 1px solid rgba(215, 228, 241, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
}

.settings-hero-card span {
    display: block;
    color: #6c8399;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.settings-hero-card strong {
    display: block;
    margin-top: 8px;
    color: #0d3153;
    font-size: 28px;
    line-height: 1.1;
}

.settings-hero-card small {
    display: block;
    margin-top: 6px;
    color: #6e879d;
    font-size: 12px;
    line-height: 1.45;
}

.settings-board {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 340px;
    gap: 16px;
    align-items: start;
}

.settings-form-panel,
.settings-side-panel {
    display: grid;
    gap: 16px;
}

.settings-section-card,
.settings-preview-card {
    padding: 18px;
    border: 1px solid #d8e4ef;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(17, 47, 79, 0.06);
}

.settings-section-head,
.settings-preview-head {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e4edf5;
}

.settings-section-tag {
    color: #0a4ea3;
}

.settings-section-head h2,
.settings-preview-head h2 {
    margin: 0;
    color: #12395e;
    font-size: 20px;
    line-height: 1.2;
}

.settings-section-head p,
.settings-preview-head p {
    margin: 0;
    color: #68829b;
    font-size: 13px;
    line-height: 1.55;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.settings-field {
    display: grid;
    gap: 7px;
}

.settings-field-full {
    grid-column: 1 / -1;
}

.settings-field span {
    color: #183f64;
    font-size: 14px;
    font-weight: 700;
}

.settings-field input,
.settings-field textarea {
    width: 100%;
    border: 1px solid #c9d8e7;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: #234765;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.settings-field input:focus,
.settings-field textarea:focus {
    outline: none;
    border-color: #98b8d5;
    box-shadow: 0 0 0 3px rgba(0, 44, 84, 0.08);
    background: #ffffff;
}

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

.settings-field small {
    color: #728aa0;
    font-size: 12px;
    line-height: 1.5;
}

.settings-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #d8e4ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(17, 47, 79, 0.05);
}

.settings-submit-row button {
    min-width: 220px;
}

.settings-submit-row p {
    margin: 0;
    color: #668199;
    font-size: 13px;
    line-height: 1.55;
}

.settings-preview-brand {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fcff 0%, #f3f8fd 100%);
}

.settings-preview-brand strong {
    color: #10385d;
    font-size: 24px;
    line-height: 1.2;
}

.settings-preview-brand span {
    color: #668096;
    font-size: 14px;
    line-height: 1.5;
}

.settings-preview-list,
.settings-usage-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.settings-preview-row,
.settings-usage-item {
    padding: 12px 14px;
    border: 1px solid #dfE8f1;
    border-radius: 16px;
    background: #fbfdff;
}

.settings-preview-row span,
.settings-usage-item span {
    display: block;
    color: #6e869c;
    font-size: 12px;
    line-height: 1.5;
}

.settings-preview-row strong,
.settings-usage-item strong {
    display: block;
    color: #12395e;
    font-size: 14px;
    line-height: 1.45;
}

.settings-meta-preview {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #dfe8f1;
    border-radius: 16px;
    background: #fbfdff;
}

.settings-meta-preview span {
    display: block;
    color: #7089a0;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.settings-meta-preview p {
    margin: 0;
    color: #47647f;
    font-size: 13px;
    line-height: 1.6;
}

.settings-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-actions-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e4edf5;
}

.quick-actions-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d7e4f0;
    color: #0a4ea3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.quick-actions-head h2 {
    margin: 0;
}

.quick-actions-head p {
    margin: 0;
    max-width: 420px;
    color: #68829b;
    font-size: 13px;
    line-height: 1.55;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-card {
    display: grid;
    gap: 6px;
    min-height: 88px;
    padding: 9px 10px;
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 20px rgba(14, 49, 83, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: #bfd4e8;
    box-shadow: 0 16px 28px rgba(12, 45, 78, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
}

.quick-action-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #0a4ea3 0%, #0d3153 100%);
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 5px 8px rgba(10, 78, 163, 0.14);
}

.quick-action-card strong {
    color: #12395e;
    font-size: 13px;
    line-height: 1.2;
}

.quick-action-card small {
    color: #60798f;
    font-size: 10px;
    line-height: 1.35;
}

.quick-action-form {
    display: block;
}

.quick-action-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.pending-page {
    display: grid;
    gap: 16px;
}

.pending-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 320px;
    gap: 16px;
    padding: 22px;
    border: 1px solid #d6e2ee;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #082744 0%, #0b467f 58%, #0f5aa1 100%);
    box-shadow: 0 16px 34px rgba(12, 45, 78, 0.1);
}

.pending-eyebrow,
.pending-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.pending-eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #deecfb;
}

.pending-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.pending-hero p {
    margin: 0;
    max-width: 720px;
    color: #d7e6f7;
    font-size: 14px;
    line-height: 1.65;
}

.pending-hero-metrics {
    display: grid;
    gap: 12px;
}

.pending-hero-card {
    padding: 16px 18px;
    border: 1px solid rgba(215, 228, 241, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
}

.pending-hero-card span {
    display: block;
    color: #6c8399;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pending-hero-card strong {
    display: block;
    margin-top: 8px;
    color: #0d3153;
    font-size: 28px;
    line-height: 1.1;
}

.pending-hero-card small {
    display: block;
    margin-top: 6px;
    color: #6e879d;
    font-size: 12px;
    line-height: 1.45;
}

.pending-ribbon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pending-ribbon-card {
    padding: 14px 16px;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: 0 10px 20px rgba(14, 49, 83, 0.05);
}

.pending-ribbon-card span,
.pending-ribbon-card small {
    display: block;
}

.pending-ribbon-card span {
    color: #7188a0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.pending-ribbon-card strong {
    display: block;
    margin-top: 8px;
    color: #10385d;
    font-size: 24px;
    line-height: 1.1;
}

.pending-ribbon-card small {
    margin-top: 6px;
    color: #6b8399;
    font-size: 12px;
    line-height: 1.5;
}

.pending-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.pending-panel {
    padding: 18px;
    border: 1px solid #d8e4ef;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(17, 47, 79, 0.06);
}

.pending-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e4edf5;
}

.pending-panel-head h2 {
    margin: 4px 0 0;
    color: #12395e;
    font-size: 22px;
    line-height: 1.2;
}

.pending-panel-head a {
    color: #0a4ea3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.pending-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d7e4f0;
    color: #0a4ea3;
}

.pending-list {
    display: grid;
    gap: 14px;
}

.pending-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2ebf3;
    border-radius: 18px;
    background: #fbfdff;
}

.pending-item-top {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.pending-item-headline strong,
.pending-item-headline span {
    display: block;
}

.pending-item-headline strong {
    color: #12395e;
    font-size: 16px;
    line-height: 1.35;
}

.pending-item-headline span {
    margin-top: 4px;
    color: #6a839a;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.pending-priority {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff3e2;
    border: 1px solid #efd7a1;
    color: #835500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pending-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pending-item-meta span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f8fd;
    border: 1px solid #dce7f1;
    color: #52708c;
    font-size: 12px;
    line-height: 1.4;
}

.pending-smart-note {
    padding: 12px 14px;
    border: 1px solid #dfe8f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbff 0%, #f1f7fc 100%);
}

.pending-smart-note strong,
.pending-smart-note span {
    display: block;
}

.pending-smart-note strong {
    color: #12395e;
    font-size: 13px;
}

.pending-smart-note span {
    margin-top: 4px;
    color: #5f788f;
    font-size: 13px;
    line-height: 1.55;
}

.pending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pending-actions input[type="text"] {
    min-width: 220px;
    flex: 1 1 220px;
}

.pending-danger {
    background: #8f1f2d;
    border-color: #8f1f2d;
}

.pending-danger:hover {
    background: #741522;
    border-color: #741522;
}

.access-page {
    display: grid;
    gap: 16px;
}

.access-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 320px;
    gap: 16px;
    padding: 22px;
    border: 1px solid #d6e2ee;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #082744 0%, #0b467f 58%, #0f5aa1 100%);
    box-shadow: 0 16px 34px rgba(12, 45, 78, 0.1);
}

.access-eyebrow,
.access-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.access-eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #deecfb;
}

.access-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.access-hero p {
    margin: 0;
    max-width: 720px;
    color: #d7e6f7;
    font-size: 14px;
    line-height: 1.65;
}

.access-hero-grid,
.access-stats {
    display: grid;
    gap: 12px;
}

.access-hero-grid {
    grid-template-columns: 1fr;
}

.access-hero-card,
.access-stat-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(215, 228, 241, 0.85);
    background: rgba(255, 255, 255, 0.95);
}

.access-hero-card span,
.access-stat-card span {
    display: block;
    color: #6c8399;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.access-hero-card strong,
.access-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #0d3153;
    font-size: 28px;
    line-height: 1.1;
}

.access-hero-card small {
    display: block;
    margin-top: 6px;
    color: #6e879d;
    font-size: 12px;
    line-height: 1.45;
}

.access-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-board {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 16px;
    align-items: start;
}

.access-panel {
    padding: 18px;
    border: 1px solid #d8e4ef;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(17, 47, 79, 0.06);
}

.access-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e4edf5;
}

.access-panel-head h2 {
    margin: 4px 0 0;
    color: #12395e;
    font-size: 22px;
    line-height: 1.2;
}

.access-panel-head a {
    color: #0a4ea3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.access-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d7e4f0;
    color: #0a4ea3;
}

.access-feed {
    display: grid;
    gap: 12px;
}

.access-feed-item {
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid #e2ebf3;
    border-radius: 16px;
    background: #fbfdff;
}

.access-feed-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a4ea3 0%, #0d3153 100%);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 10px 18px rgba(10, 78, 163, 0.2);
}

.access-feed-body strong,
.access-feed-body span,
.access-feed-body small {
    display: block;
}

.access-feed-body strong {
    color: #12395e;
    font-size: 14px;
}

.access-feed-body span {
    margin-top: 4px;
    color: #617b95;
    font-size: 12px;
}

.access-feed-body small {
    margin-top: 4px;
    color: #7890a5;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 992px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: -280px; width: 260px; z-index: 1000; transition: left .2s ease; }
    .admin-shell.sidebar-open .admin-sidebar { left: 0; }
    .menu-btn { display: inline-block; }
    .stats-grid { grid-template-columns: 1fr; }
    .notice-hero,
    .notice-board {
        grid-template-columns: 1fr;
    }
    .notice-ribbon {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-dashboard-hero,
    .user-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .user-dashboard-status-wrap {
        justify-items: start;
    }
    .settings-hero,
    .settings-board,
    .pending-hero,
    .pending-board,
    .access-hero,
    .access-board {
        grid-template-columns: 1fr;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pending-ribbon {
        grid-template-columns: 1fr;
    }
    .access-stats {
        grid-template-columns: 1fr;
    }
    .admin-main { padding: 12px; }
    .panel { padding: 12px; }
    .admin-topbar { gap: 10px; }
    .me { font-size: 12px; }
}

@media (max-width: 640px) {
    .admin-main {
        padding: 10px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .stat-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #dde7f0;
        box-shadow: none;
    }
    .stat-card h3 {
        margin: 0;
        font-size: 12px;
        line-height: 1.4;
        color: #5f7991;
        font-weight: 700;
        max-width: 180px;
    }
    .stat-card p {
        margin: 0;
        font-size: 22px;
        line-height: 1;
        color: #0d3153;
        flex-shrink: 0;
    }
    .admin-topbar {
        padding: 10px 12px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .admin-topbar > div:first-of-type {
        order: 1;
        width: calc(100% - 44px);
    }
    .menu-btn {
        order: 0;
    }
    .topbar-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding-top: 4px;
    }
    .me {
        display: none;
    }
    .admin-clock {
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
    }
    .topbar-notify,
    .topbar-logout {
        min-width: 0;
        padding: 8px 10px;
    }
    .topbar-notify span {
        display: none;
    }
    .topbar-logout span {
        display: none;
    }
    .notice-hero {
        padding: 16px;
        gap: 12px;
        border-radius: 18px;
    }
    .notice-hero h1 {
        font-size: 24px;
    }
    .notice-ribbon,
    .notice-mini-grid,
    .notice-patterns {
        grid-template-columns: 1fr;
    }
    .notice-column-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .notice-hero-metrics {
        min-width: 0;
    }
    .user-dashboard-card {
        padding: 14px;
    }
    .user-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .user-action-list {
        flex-direction: column;
    }
    .notice-panel-head,
    .notice-feed-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .notice-panel {
        padding: 14px;
    }
    .settings-hero,
    .settings-section-card,
    .settings-preview-card,
    .settings-submit-row,
    .pending-hero,
    .pending-panel,
    .access-hero,
    .access-panel {
        padding: 14px;
        border-radius: 18px;
    }
    .settings-hero h1 {
        font-size: 24px;
    }
    .pending-hero h1 {
        font-size: 24px;
    }
    .access-hero h1 {
        font-size: 24px;
    }
    .settings-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
    .settings-submit-row button {
        width: 100%;
    }
    .settings-preview-row,
    .settings-usage-item,
    .pending-item,
    .access-feed-item,
    .notice-item,
    .notice-feed-item {
        border-radius: 14px;
    }
    .quick-actions-head {
        flex-direction: column;
        gap: 8px;
    }
    .dashboard-quick-actions {
        display: none;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    .quick-action-card {
        min-height: 0;
        padding: 10px;
    }
    .pending-panel-head,
    .pending-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .pending-item-top {
        grid-template-columns: 1fr;
    }
    .pending-priority {
        white-space: normal;
    }
    .access-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .access-feed-item {
        grid-template-columns: 1fr;
    }
    .pending-actions input[type="text"],
    .pending-actions .btn,
    .pending-actions button {
        width: 100%;
    }
    .inline-form {
        width: 100%;
    }
    .btn-row {
        display: grid;
        grid-template-columns: 1fr;
    }
    .btn-row .btn,
    .inline-form .btn {
        width: 100%;
        text-align: center;
    }
    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 12px;
    }
    table {
        min-width: 720px;
    }
    th, td {
        white-space: nowrap;
        font-size: 12px;
        padding: 9px 8px;
    }
    .notice-item,
    .notice-feed-item {
        grid-template-columns: 1fr;
    }
    .notice-index,
    .notice-feed-icon {
        margin-bottom: 4px;
    }
}

.msg-cell {
    max-width: 280px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d5e0ec;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-new {
    background: #eaf2ff;
    color: #164a8a;
    border-color: #c7dbf7;
}

.status-in_progress {
    background: #fff4de;
    color: #835500;
    border-color: #efd7a1;
}

.status-closed {
    background: #e8f7ef;
    color: #1d6a3a;
    border-color: #c3e7d2;
}

.status-pending {
    background: #eaf2ff;
    color: #164a8a;
    border-color: #c7dbf7;
}

.status-approved {
    background: #e8f7ef;
    color: #1d6a3a;
    border-color: #c3e7d2;
}

.status-rejected {
    background: #fdecee;
    color: #851f2d;
    border-color: #f3bfc7;
}

/* Admin UI refresh */
body {
    background:
        radial-gradient(circle at top right, rgba(0, 44, 84, 0.08), transparent 42%),
        linear-gradient(180deg, #edf3fa 0%, #e8eff7 100%);
}

.admin-shell {
    grid-template-columns: 278px 1fr;
}

.admin-sidebar {
    padding: 22px 16px;
    background: linear-gradient(180deg, #0b2f52 0%, #0a3a64 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.brand {
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.admin-sidebar nav {
    gap: 7px;
}

.admin-sidebar nav a {
    border: 1px solid transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.admin-main {
    padding: 20px 22px 30px;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    border-color: #d5e0ec;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 22px rgba(17, 47, 79, 0.08);
}

.admin-topbar strong {
    font-size: 16px;
    letter-spacing: .2px;
}

.me {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5fc;
    border: 1px solid #d3e3f2;
    color: #345b7e;
}

.panel,
.stat-card {
    box-shadow: 0 8px 20px rgba(17, 47, 79, 0.08);
}

.panel {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.stat-card h3 {
    font-size: 13px;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.inline-form input,
.inline-form textarea,
.inline-form select {
    border-radius: 10px;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.inline-form input:focus,
.inline-form textarea:focus,
.inline-form select:focus {
    outline: none;
    border-color: #98b8d5;
    box-shadow: 0 0 0 3px rgba(0, 44, 84, 0.1);
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 48px;
}

.password-toggle {
    width: 30px;
    height: 30px;
}

.form-grid button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.form-grid button:hover,
.btn:hover,
.settings-submit-row button:hover {
    background: #0c3d6a;
    border-color: #0c3d6a;
    transform: translateY(-1px);
}

table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 860px;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #edf4fb;
    color: #2a4f71;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .35px;
}

th,
td {
    padding: 10px 9px;
    vertical-align: top;
}

tbody tr:hover {
    background: #f8fbff;
}

.inline-form {
    align-items: center;
}

.auth-card {
    width: min(540px, 100%);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 24px 46px rgba(11, 37, 66, 0.12);
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        left: -300px;
        width: 280px;
        box-shadow: 0 24px 46px rgba(11, 37, 66, 0.18);
    }

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

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* User auth redesign */
.user-auth-page {
    margin: 0;
    background:
        radial-gradient(circle at 82% 10%, rgba(159, 19, 35, 0.10), transparent 40%),
        radial-gradient(circle at 70% 85%, rgba(17, 33, 52, 0.08), transparent 36%),
        linear-gradient(180deg, #f4f5f7 0%, #edeff2 100%);
    color: #1a2230;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-y: auto;
}

.user-auth-layout {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    padding: 20px;
    animation: uaFadeIn 0.8s ease both;
}

.user-auth-media {
    min-height: calc(100vh - 40px);
    position: relative;
}

.user-auth-media-inner {
    height: 80%;
    background-repeat: cover;
    border-radius: 24px;
    overflow: hidden;
    background: #dce1e7;
    border: 1px solid #e2e6ea;
    position: relative;
    box-shadow: 0 24px 50px rgba(17, 33, 52, 0.12);
}

.user-auth-media-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 28, 47, 0.28), rgba(159, 19, 35, 0.14));
    opacity: 0.65;
    pointer-events: none;
}

.user-auth-media-inner::after {
    content: "";
    position: absolute;
    top: 6%;
    right: 6%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 72%);
    animation: uaPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.user-auth-media-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-auth-main {
    display: grid;
    align-items: start;
    padding: 28px 10px 28px 0;
    position: relative;
}

.user-auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(19, 30, 45, 0.10);
    animation: uaSlideUp 0.8s ease 0.1s both;
}

.user-auth-brand {
    display: inline-block;
    text-decoration: none;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    color: #002C54;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.user-auth-brand span {
    color: #6f7278;
    font-weight: 500;
}

.user-auth-card h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.08;
    color: #0f1c2f;
}

.user-auth-page .auth-sub {
    margin: 10px 0 16px;
    color: #4e5b6d;
    font-size: 16px;
}

.user-auth-page .auth-sub a,
.user-auth-page .user-auth-link,
.user-auth-page .auth-foot a {
    color: #9f1323;
    font-weight: 600;
    text-decoration: none;
}

.user-auth-page .auth-sub a:hover,
.user-auth-page .user-auth-link:hover,
.user-auth-page .auth-foot a:hover {
    text-decoration: underline;
}

.user-auth-form {
    gap: 10px;
    position: relative;
}

.user-auth-form label {
    font-size: 14px;
    color: #596579;
    font-weight: 500;
}

.user-auth-form input[type="text"],
.user-auth-form input[type="email"],
.user-auth-form input[type="password"] {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #c6ced9;
    background: #f7f8fa;
    padding: 0 16px;
    font-size: 15px;
    color: #1b2434;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.user-auth-form input[type="text"]:focus,
.user-auth-form input[type="email"]:focus,
.user-auth-form input[type="password"]:focus {
    outline: none;
    border-color: #003a70;
    background: #fff;
    transform: translateY(-1px);
}

.user-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 8px;
}

.user-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4f5c6f;
    font-weight: 500;
}

.user-auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #003a70;
}

.user-auth-submit {
    height: 54px;
    border-radius: 12px;
    border: 1px solid #003a70;
    background: linear-gradient(135deg, #7f0f1d 0%, #9f1323 55%, #b11a2c 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    width: 100%;
    margin-left: 0;
}

.user-auth-submit:hover {
    border-color: #003a70;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 58, 112, 0.28);
    filter: brightness(1.03);
}

.user-auth-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -38%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-20deg);
    animation: uaShine 3s ease-in-out infinite;
}

.user-auth-page .alert {
    border-radius: 12px;
    margin: 12px 0 16px;
    font-size: 15px;
}

.user-auth-page .auth-foot {
    margin-top: 16px;
    font-size: 14px;
    color: #6d7787;
}

@keyframes uaFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes uaSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uaPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes uaShine {
    0% {
        left: -45%;
    }
    55%, 100% {
        left: 130%;
    }
}

@media (max-width: 1200px) {
    .user-auth-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .user-auth-media {
        min-height: 300px;
    }

    .user-auth-main {
        padding: 0;
    }

    .user-auth-card {
        width: min(680px, 100%);
        padding: 18px;
    }

    .user-auth-card h1 {
        font-size: 24px;
    }

    .user-auth-page .auth-sub {
        font-size: 14px;
    }

    .user-auth-form input[type="text"],
    .user-auth-form input[type="email"],
    .user-auth-form input[type="password"] {
        font-size: 18px;
    }

    .user-auth-submit {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .user-auth-media {
        display: none;
    }

    .user-auth-brand {
        font-size: 28px;
    }

    .user-auth-card h1 {
        font-size: 30px;
    }

    .user-auth-form input[type="text"],
    .user-auth-form input[type="email"],
    .user-auth-form input[type="password"] {
        height: 48px;
        font-size: 16px;
    }

    .user-auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .user-auth-submit {
        font-size: 18px;
        height: 50px;
    }
}
