:root {
    --bg: #f3f6fb;
    --bg-deep: #eaf0f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #f1f5f9;
    --text: #172033;
    --text-strong: #0f172a;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e4e9f2;
    --line-strong: #d7deea;
    --primary: #3157d5;
    --primary-dark: #2443ae;
    --primary-soft: #edf2ff;
    --primary-ring: rgba(49, 87, 213, .16);
    --success: #067647;
    --success-soft: #ecfdf3;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --info: #175cd3;
    --info-soft: #eff8ff;
    --sidebar: #111b32;
    --sidebar-2: #172541;
    --sidebar-text: #dce5f6;
    --sidebar-muted: #8191ad;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 4px 16px rgba(16, 24, 40, .06);
    --shadow-md: 0 14px 36px rgba(16, 24, 40, .09);
    --shadow-lg: 0 24px 70px rgba(16, 24, 40, .14);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --sidebar-width: 286px;
    --sidebar-collapsed-width: 88px;
    --topbar-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
::selection { background: #cdd8ff; color: #132253; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.gap-top { margin-top: 20px; }
.wide { width: 100%; }
.success-text { color: var(--success) !important; }
.danger-text { color: var(--danger) !important; }

/* Shared surfaces */
.panel, .toolbar, .stat-card, .form-card, .table-card, .quick-card, .login-card, .day-card {
    background: var(--surface);
    border: 1px solid rgba(216, 224, 236, .92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.form-card, .table-card { padding: 22px; }
.card-head, .section-heading, .page-actions, .card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.card-head { margin-bottom: 18px; }
.card-head h2, .section-heading h2 { margin: 0; color: var(--text-strong); font-size: 17px; letter-spacing: -.015em; }
.card-head p, .section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-heading { align-items: flex-end; margin: 30px 0 13px; }
.section-heading h2 { font-size: 19px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* Buttons */
.button, .icon-button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #3a63df, var(--primary));
    box-shadow: 0 6px 16px rgba(49, 87, 213, .18);
    font-weight: 760;
    font-size: 13px;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover, .icon-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(49, 87, 213, .24); }
.button:active, .icon-button:active { transform: translateY(0); }
.button.secondary, .icon-button.secondary, .light-button {
    color: #344054;
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-xs);
}
.button.secondary:hover, .icon-button.secondary:hover, .light-button:hover { color: var(--primary); border-color: #b9c7f5; background: #f9fbff; box-shadow: var(--shadow-sm); }
.button.danger { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; box-shadow: none; }
.button.small { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.icon-button { width: 42px; padding: 0; }
.big-button { min-height: 60px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.button-row, .header-actions, .topbar-actions, .attendance-times, .inline-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-button {
    appearance: none;
    border: 0;
    padding: 0;
    color: var(--primary);
    background: transparent;
    font-weight: 760;
    font-size: 12px;
    white-space: nowrap;
}
.text-button:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-group { display: grid; align-content: start; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: #344054; font-size: 12px; font-weight: 780; }
.form-group small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-card input:not([type="checkbox"]):not([type="radio"]),
.form-card select,
.form-card textarea,
.input, .select, .textarea,
.inline-form input, .inline-form select,
.branch-switch select {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid #d0d7e4;
    border-radius: 10px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .02);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-card textarea, .textarea { min-height: 105px; resize: vertical; line-height: 1.55; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus,
.input:focus, .select:focus, .textarea:focus,
.inline-form input:focus, .inline-form select:focus {
    border-color: #7f97ec;
    box-shadow: 0 0 0 4px var(--primary-ring);
}
.form-card input::placeholder, .textarea::placeholder { color: #a8b1c0; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.inline-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.inline-form > * { flex: 0 1 auto; }
.stack-form { display: grid; gap: 12px; }
.check-group { display: grid; gap: 9px; }
.check-line { display: flex; align-items: center; gap: 9px; color: #344054; font-size: 12px; font-weight: 700; }
.check-line input { width: auto !important; min-height: 0 !important; accent-color: var(--primary); }

/* Layout grids */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-layout { align-items: start; }

/* Alerts and statuses */
.alert {
    margin: 16px 28px 0;
    padding: 13px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: var(--shadow-xs);
}
.alert-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: currentColor; }
.alert.success { color: var(--success); background: var(--success-soft); border-color: #abefc6; }
.alert.error, .alert.danger { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; }
.alert.warning { color: var(--warning); background: var(--warning-soft); border-color: #fedf89; }
.status, .count-badge, .coverage-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 3px 9px;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    color: #475467;
    background: #f9fafb;
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
}
.status.approved, .status.success { color: var(--success); background: var(--success-soft); border-color: #abefc6; }
.status.pending, .status.warning { color: var(--warning); background: var(--warning-soft); border-color: #fedf89; }
.status.rejected, .status.danger { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; }

/* Tables */
.table-scroll, .data-table-wrap, .schedule-scroll {
    width: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.table-scroll::-webkit-scrollbar, .data-table-wrap::-webkit-scrollbar, .schedule-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
.table-scroll::-webkit-scrollbar-thumb, .data-table-wrap::-webkit-scrollbar-thumb, .schedule-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.data-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.data-table th {
    padding: 11px 12px;
    text-align: left;
    color: #667085;
    background: #f8fafc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.data-table th:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 0; }
.data-table th:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 0 0; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: #344054; font-size: 12px; vertical-align: middle; }
.data-table tbody tr { transition: background .16s ease; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table td strong, .data-table td small { display: block; }
.data-table td strong { color: var(--text-strong); font-size: 12px; }
.data-table td small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.data-table .actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.data-table .actions form { margin: 0; }
.row-muted { opacity: .56; }
.json-cell { max-width: 380px; white-space: normal; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px !important; }

/* Admin shell */
.admin-body { min-height: 100vh; background: var(--bg); }
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns .24s ease;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--sidebar-text);
    background:
        radial-gradient(circle at 0 0, rgba(88, 116, 221, .23), transparent 34%),
        linear-gradient(180deg, var(--sidebar-2), var(--sidebar) 62%);
    border-right: 1px solid rgba(255,255,255,.055);
    box-shadow: 16px 0 38px rgba(17, 27, 50, .08);
}
.sidebar::after {
    content: "";
    position: absolute;
    inset: auto -90px -110px auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}
.sidebar-header {
    height: 82px;
    flex: 0 0 82px;
    padding: 14px 14px 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.sidebar-header .brand { flex: 1; }
.brand-mark {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #6280ef, #3157d5 70%);
    box-shadow: 0 10px 24px rgba(49,87,213,.34), inset 0 1px 0 rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.04em;
}
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { color: #fff; font-size: 15px; letter-spacing: -.01em; }
.brand-copy small { margin-top: 3px; color: #98a8c5; font-size: 10px; }
.sidebar-collapse {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    color: #aebbd2;
    background: rgba(255,255,255,.045);
    transition: .18s ease;
}
.sidebar-collapse:hover { color: #fff; background: rgba(255,255,255,.09); }
.sidebar-collapse .ui-icon { width: 18px; height: 18px; }
.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 20px;
    scrollbar-width: none;
    overscroll-behavior: contain;
}
.sidebar-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sidebar-nav { display: grid; gap: 12px; }
.nav-group { display: grid; gap: 3px; }
.nav-group-title {
    height: 27px;
    padding: 8px 10px 5px;
    display: flex;
    align-items: center;
    color: #71819e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}
.nav-link, .sidebar-public-link {
    position: relative;
    min-height: 43px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #aebbd2;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .17s ease, background .17s ease, border-color .17s ease, transform .17s ease;
}
.nav-link:hover, .sidebar-public-link:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(76,108,221,.28), rgba(72,101,197,.12));
    border-color: rgba(132,155,240,.18);
    box-shadow: inset 3px 0 0 #7893ff;
}
.nav-link.active .nav-icon { color: #9cb0ff; }
.nav-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; color: #8292ae; }
.nav-icon .ui-icon { width: 18px; height: 18px; }
.nav-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-arrow { width: 15px; opacity: 0; transform: translateX(-3px); transition: .17s ease; }
.nav-arrow .ui-icon { width: 14px; height: 14px; }
.nav-link:hover .nav-arrow, .nav-link.active .nav-arrow { opacity: .58; transform: translateX(0); }
.sidebar-footer {
    flex: 0 0 auto;
    padding: 10px 10px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(4, 11, 25, .11);
}
.sidebar-public-link { margin-bottom: 8px; }
.sidebar-account {
    min-height: 60px;
    padding: 9px 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
}
.avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #607bea, #3157d5);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(49,87,213,.22);
}
.account-copy { min-width: 0; flex: 1; }
.account-copy strong, .account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { color: #e7edf9; font-size: 11px; }
.account-copy small { margin-top: 2px; color: #7f8faa; font-size: 9px; }
.logout-button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #8292ae;
}
.logout-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.logout-button .ui-icon { width: 17px; height: 17px; }
.sidebar-overlay { display: none; }

.admin-main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: var(--topbar-height);
    padding: 13px 28px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(243, 246, 251, .88);
    border-bottom: 1px solid rgba(215,222,234,.85);
    backdrop-filter: blur(18px) saturate(140%);
}
.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: #344054;
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.page-title { min-width: 0; flex: 1; }
.page-title p { margin: 0 0 3px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.page-title p span { color: var(--primary); }
.page-title p i { color: #c1c8d3; font-style: normal; }
.page-title h1 { margin: 0; color: var(--text-strong); font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.topbar-actions { margin-left: auto; flex-wrap: nowrap; }
.branch-switch {
    height: 48px;
    padding: 5px 8px 5px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255,255,255,.85);
    box-shadow: var(--shadow-xs);
}
.branch-switch label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.branch-switch select { min-height: 34px; width: auto; max-width: 180px; padding: 5px 26px 5px 8px; border: 0; background-color: transparent; font-size: 11px; font-weight: 760; box-shadow: none; }
.topbar-public {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: #475467;
    background: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 760;
    box-shadow: var(--shadow-xs);
}
.topbar-public:hover { color: var(--primary); border-color: #bac8f4; }
.topbar-public .ui-icon { width: 16px; height: 16px; }
.admin-chip {
    min-height: 48px;
    padding: 5px 10px 5px 6px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-xs);
}
.admin-chip .avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.admin-chip strong, .admin-chip small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-chip strong { color: #344054; font-size: 10px; }
.admin-chip small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.content { width: 100%; max-width: 1860px; margin: 0 auto; padding: 26px 28px 46px; flex: 1; }
.admin-footer { padding: 16px 28px 22px; display: flex; justify-content: space-between; gap: 20px; color: #98a2b3; font-size: 10px; }

/* Desktop collapsed sidebar */
body.sidebar-collapsed .admin-shell { grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr); }
body.sidebar-collapsed .sidebar-header { padding-left: 12px; justify-content: center; }
body.sidebar-collapsed .sidebar-header .brand { flex: 0 0 auto; }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-arrow,
body.sidebar-collapsed .nav-group-title span,
body.sidebar-collapsed .account-copy { display: none; }
body.sidebar-collapsed .sidebar-collapse { position: absolute; top: 61px; right: 8px; width: 25px; height: 25px; border-radius: 8px; z-index: 3; }
body.sidebar-collapsed .sidebar-collapse .ui-icon { width: 14px; height: 14px; transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-scroll { padding-left: 11px; padding-right: 11px; padding-top: 18px; }
body.sidebar-collapsed .sidebar-nav { gap: 15px; }
body.sidebar-collapsed .nav-group-title { height: 1px; margin: 2px 7px 7px; padding: 0; background: rgba(255,255,255,.08); }
body.sidebar-collapsed .nav-link, body.sidebar-collapsed .sidebar-public-link { width: 48px; min-height: 44px; margin: 0 auto; padding: 0; justify-content: center; }
body.sidebar-collapsed .nav-link.active { box-shadow: inset 0 0 0 1px rgba(132,155,240,.2); }
body.sidebar-collapsed .nav-icon { width: 24px; height: 24px; }
body.sidebar-collapsed .sidebar-account { justify-content: center; padding: 7px; }
body.sidebar-collapsed .logout-button { display: none; }
body.sidebar-collapsed .sidebar-footer { padding-left: 11px; padding-right: 11px; }

/* Dashboard */
.stat-card {
    position: relative;
    min-height: 138px;
    padding: 20px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: #ccd7ee; box-shadow: var(--shadow-md); }
.stat-card::after { content: ""; position: absolute; right: -20px; bottom: -28px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(49,87,213,.11), transparent 70%); }
.stat-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 760; }
.stat-card strong { display: block; margin-top: 14px; color: var(--text-strong); font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.stat-card small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.quick-card {
    min-height: 180px;
    padding: 22px;
    display: block;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: #bccbf3; box-shadow: var(--shadow-md); }
.quick-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 900; }
.quick-card strong { display: block; margin-top: 20px; color: var(--text-strong); font-size: 17px; }
.quick-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.issue-list, .simple-list, .request-list, .swap-list, .announcement-list, .shift-list, .notification-list, .balance-list { display: grid; }
.issue-list { gap: 8px; }
.issue { padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.issue > span { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 5px; border-radius: 50%; background: #98a2b3; }
.issue.warning > span { background: #f79009; }
.issue.danger > span { background: #f04438; }
.issue p { margin: 0; color: #475467; font-size: 11px; line-height: 1.5; }
.simple-list > a, .simple-list > div, .request-list > div, .swap-list > div, .announcement-list > div, .shift-list > a, .notification-list > a, .balance-list > div {
    padding: 12px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}
.simple-list > *:last-child, .request-list > *:last-child, .swap-list > *:last-child, .announcement-list > *:last-child, .shift-list > *:last-child, .notification-list > *:last-child, .balance-list > *:last-child { border-bottom: 0; }
.simple-list strong, .simple-list span { display: block; }
.simple-list strong { color: var(--text-strong); font-size: 12px; }
.simple-list span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.empty-compact { padding: 28px 12px; color: var(--muted); text-align: center; font-size: 12px; }

/* Schedule */
.schedule-panel, .admin-schedule { overflow: hidden; }
.schedule-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; }
.schedule-table th, .schedule-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-table th:last-child, .schedule-table td:last-child { border-right: 0; }
.schedule-table thead th { position: sticky; top: 0; z-index: 3; padding: 13px 10px; color: var(--muted); background: #f8fafc; text-align: center; font-size: 11px; }
.schedule-table thead th.person-col { min-width: 270px; padding-left: 18px; text-align: left; }
.day-head strong { display: block; color: var(--text-strong); font-size: 12px; }
.day-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.department-row td { padding: 10px 18px; color: #304aa5; background: #eff3ff; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.employee-cell { padding: 12px 16px; background: #fff; }
.employee-cell strong { display: block; color: var(--text-strong); font-size: 12px; }
.employee-cell span { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.employee-code { display: inline-flex; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: #475467; background: #f8fafc; font-size: 9px; font-weight: 800; }
.shift-cell { height: 66px; padding: 7px; background: #fff; text-align: center; }
.shift-badge { width: 100%; min-height: 48px; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 8px rgba(16,24,40,.06); }
.shift-badge strong { font-size: 14px; line-height: 1; }
.shift-badge small { margin-top: 5px; font-size: 9px; opacity: .84; }
.empty-shift { color: var(--muted-2); font-weight: 700; }
.edit-table select.shift-select { width: 100%; min-width: 110px; padding: 9px 7px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 800; outline: none; }
.leave-cell { min-width: 105px; min-height: 52px; padding: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; background: var(--leave-color, #eff3ff); color: #172033; }
.leave-cell small { font-size: 9px; }
.legend { padding: 15px 17px; display: flex; flex-wrap: wrap; gap: 9px; background: #fbfcfe; }
.legend-item { padding: 7px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.legend-code { min-width: 32px; height: 27px; display: grid; place-items: center; border-radius: 7px; font-size: 10px; font-weight: 900; }
.legend-text strong { display: block; font-size: 10px; }
.legend-text span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.coverage-grid { padding: 15px 17px 17px; display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); gap: 9px; overflow-x: auto; border-top: 1px solid var(--line); }
.coverage-day { min-width: 145px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.coverage-day > strong { display: block; margin-bottom: 7px; font-size: 10px; }
.coverage-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.coverage-tag { min-height: 23px; padding: 2px 7px; font-size: 9px; }
.coverage-tag.low { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; }
.publish-card { color: #fff; background: linear-gradient(145deg, #17233f, #294b91); border-color: transparent; box-shadow: 0 20px 42px rgba(26,52,108,.22); }
.publish-card p { color: rgba(255,255,255,.72); }
.publish-card .eyebrow.dark { color: #bfd0ff; }
.version-list { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); }
.version-list > strong { display: block; margin-bottom: 7px; }
.version-list form { padding: 7px 0; display: flex; align-items: center; justify-content: space-between; }
.version-list .text-button { color: #fff; }

/* Chips and module details */
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.definition-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); font-size: 10px; }
.definition-chip i { width: 8px; height: 8px; border-radius: 50%; }
.muted-chip { opacity: .5; }
.balance-list { max-height: 520px; overflow: auto; scrollbar-width: none; }
.balance-list::-webkit-scrollbar { display: none; }
.balance-list > div > span:first-child { flex: 1; }
.balance { color: var(--muted); white-space: nowrap; }
.balance b { color: var(--text-strong); font-size: 16px; }
.request-color, .mini-shift { width: 42px; height: 42px; flex: 0 0 42px; display: grid !important; place-items: center; border-radius: 10px; color: #fff; font-weight: 850; }
.request-list > div, .swap-list > div, .announcement-item { align-items: flex-start; }
.request-list > div > span:nth-child(2), .swap-list > div > span:first-child, .announcement-item > span { flex: 1; }
.request-list p, .swap-list p, .announcement-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.announcement-banner { margin-bottom: 14px; padding: 13px 16px; border: 1px solid #fedf89; border-radius: 12px; background: var(--warning-soft); }
.announcement-banner p { margin: 5px 0 0; color: #7a2e0e; font-size: 11px; line-height: 1.5; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.permission-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.permission-grid p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-note, .secret-box, .recovery-codes, .info-box { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.security-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.danger-zone { border-color: #fecdca; background: #fffafa; }
.secret-box code, .recovery-codes code, .copy-code { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-list { display: grid; gap: 9px; }
.task-row { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.task-check { display: flex; align-items: center; gap: 9px; }
.score-badge { min-width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); font-size: 18px; font-weight: 900; }
.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.score-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.score-grid strong, .score-grid small { display: block; }
.review-text { line-height: 1.65; white-space: pre-wrap; }
.attendance-hero { padding: 24px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #16213b, #284985 64%, #3157d5); box-shadow: 0 24px 55px rgba(31,58,116,.23); }
.availability-grid { display: grid; gap: 9px; }
.availability-row { padding: 12px 13px; display: grid; grid-template-columns: 130px 150px minmax(220px,1fr) 170px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.time-pair { display: flex; align-items: center; gap: 7px; }
.time-pair input, .availability-row select, .inline-mini input, .inline-mini select { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }

/* Public schedule */
.public-page { min-height: 100vh; background: radial-gradient(circle at 90% 0, rgba(49,87,213,.14), transparent 28%), var(--bg); }
.public-header { padding: 34px 24px 78px; color: #fff; background: linear-gradient(135deg, #111b32 0%, #203764 52%, #3157d5 100%); }
.public-header-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: inherit; opacity: .68; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.public-header h1 { margin: 0; font-size: clamp(29px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.public-header .subtitle { max-width: 720px; margin: 12px 0 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.6; }
.admin-link { padding: 10px 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.09); font-size: 12px; font-weight: 750; white-space: nowrap; backdrop-filter: blur(8px); }
.admin-link:hover { background: rgba(255,255,255,.15); }
.public-main { max-width: 1500px; margin: -46px auto 0; padding: 0 24px 44px; }
.toolbar { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.week-navigation { display: flex; align-items: center; gap: 9px; }
.week-title { min-width: 240px; text-align: center; }
.week-title strong { display: block; color: var(--text-strong); font-size: 15px; }
.week-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.empty-state { padding: 68px 24px; text-align: center; }
.empty-state .empty-icon { font-size: 38px; }
.empty-state h3 { margin: 11px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); }
.public-footer { max-width: 1500px; margin: 0 auto; padding: 0 24px 34px; color: var(--muted); text-align: center; font-size: 10px; }

/* Portal */
.portal-body { min-height: 100vh; background: radial-gradient(circle at 100% 0, rgba(49,87,213,.11), transparent 30%), var(--bg); }
.portal-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 78px;
    padding: 0 max(20px, calc((100vw - 1380px) / 2));
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(215,222,234,.9);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
}
.portal-header .brand { color: var(--text); }
.portal-header .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
.portal-header .brand-copy strong { color: var(--text-strong); }
.portal-header .brand-copy small { color: var(--muted); }
.portal-nav-scroll { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.portal-nav-scroll::-webkit-scrollbar { display: none; }
.portal-header nav { display: flex; align-items: center; gap: 3px; width: max-content; }
.portal-header nav a { padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 720; white-space: nowrap; }
.portal-header nav a:hover { color: var(--primary); background: #f5f7ff; }
.portal-header nav a.active { color: var(--primary); background: var(--primary-soft); }
.portal-user { display: flex; align-items: center; gap: 9px; }
.portal-user > span:nth-child(2) { max-width: 145px; }
.portal-user strong, .portal-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-user strong { color: #344054; font-size: 10px; }
.portal-user small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.portal-logout { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.portal-logout:hover { color: var(--danger); border-color: #fecdca; background: var(--danger-soft); }
.portal-logout .ui-icon { width: 17px; height: 17px; }
.portal-main { max-width: 1380px; margin: 0 auto; padding: 26px 20px 50px; }
.portal-page-title { margin: 0 0 18px; }
.portal-page-title p { margin: 0 0 4px; color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.portal-page-title h1 { margin: 0; color: var(--text-strong); font-size: 24px; letter-spacing: -.03em; }
.portal-main > .alert { margin: 0 0 16px; }
.hero-shift { min-height: 270px; padding: 32px; display: flex; align-items: flex-end; justify-content: space-between; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #16213b, #27467f 62%, #3157d5); box-shadow: 0 25px 60px rgba(31,49,93,.24); }
.hero-shift h1 { margin: 11px 0 6px; font-size: clamp(28px,5vw,50px); }
.hero-shift p { margin: 0; color: rgba(255,255,255,.74); }
.hero-shift-code { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; font-size: 22px; font-weight: 900; box-shadow: 0 12px 25px rgba(0,0,0,.17); }
.announcement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 20px 20px; }
.announcement-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.announcement-grid p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.personal-calendar { display: grid; grid-template-columns: repeat(7,minmax(145px,1fr)); gap: 11px; }
.day-card { padding: 12px; }
.today-card { border-color: #8da2ee; box-shadow: 0 0 0 3px rgba(49,87,213,.09), var(--shadow-sm); }
.day-card-head { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; }
.day-card-head strong { font-size: 12px; }
.day-card-head span { color: var(--muted); font-size: 10px; }
.large-shift { min-height: 160px; padding: 15px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 13px; color: #111827; }
.large-shift b { font-size: 31px; }
.large-shift strong { margin-top: 7px; font-size: 12px; }
.large-shift small { margin-top: 4px; font-size: 9px; opacity: .78; }
.large-shift.empty { color: var(--muted); background: #f8fafc; border: 1px dashed #cfd6e4; }
.filter-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface-muted); }
.filter-tabs a { padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.filter-tabs a.active { color: var(--primary); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }

/* Login / install / kiosk */
.login-page, .kiosk-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top right, rgba(72,105,222,.24), transparent 30%), linear-gradient(145deg, #10182c, #1b2c4d); }
.login-card { width: min(430px, 100%); padding: 28px; box-shadow: var(--shadow-lg); }
.install-card { width: min(780px, calc(100% - 28px)); }
.login-brand { margin-bottom: 24px; text-align: center; }
.login-brand .brand-mark { margin: 0 auto 12px; }
.login-brand h1 { margin: 0; color: var(--text-strong); font-size: 24px; }
.login-brand p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.login-links { margin-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.install-card .form-grid { margin-top: 20px; }

/* Responsive */
@media (max-width: 1380px) {
    .grid.cols-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .personal-calendar { grid-template-columns: repeat(4,minmax(145px,1fr)); }
    .availability-row { grid-template-columns: 110px 140px 1fr; }
    .topbar-public span { display: none; }
}
@media (max-width: 1180px) {
    .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .permission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .announcement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
    :root { --sidebar-width: 286px; }
    .admin-shell, body.sidebar-collapsed .admin-shell { display: block; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(286px, calc(100vw - 48px));
        transform: translateX(-103%);
        transition: transform .24s ease;
        box-shadow: 24px 0 60px rgba(4,11,25,.28);
    }
    body.menu-open { overflow: hidden; }
    body.menu-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: block; visibility: hidden; opacity: 0; background: rgba(4,11,25,.48); backdrop-filter: blur(2px); transition: opacity .22s ease, visibility .22s ease; }
    body.menu-open .sidebar-overlay { visibility: visible; opacity: 1; }
    .sidebar-collapse { display: none; }
    body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .nav-arrow, body.sidebar-collapsed .nav-group-title span, body.sidebar-collapsed .account-copy { display: block; }
    body.sidebar-collapsed .sidebar-header { padding: 14px 14px 12px 16px; justify-content: initial; }
    body.sidebar-collapsed .sidebar-header .brand { flex: 1; }
    body.sidebar-collapsed .sidebar-scroll { padding: 10px 10px 20px; }
    body.sidebar-collapsed .sidebar-nav { gap: 12px; }
    body.sidebar-collapsed .nav-group-title { height: 27px; margin: 0; padding: 8px 10px 5px; background: transparent; }
    body.sidebar-collapsed .nav-link, body.sidebar-collapsed .sidebar-public-link { width: auto; min-height: 43px; margin: 0; padding: 0 10px; justify-content: initial; }
    body.sidebar-collapsed .sidebar-account { justify-content: initial; padding: 9px 8px; }
    body.sidebar-collapsed .logout-button { display: grid; }
    .menu-button { display: grid; }
    .content { padding: 22px 20px 42px; }
    .topbar { padding: 12px 20px; }
    .alert { margin-left: 20px; margin-right: 20px; }
    .admin-footer { padding-left: 20px; padding-right: 20px; }
    .admin-chip > span:nth-child(2) { display: none; }
    .admin-chip { padding-right: 6px; }
    .portal-header { height: auto; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
    .portal-header .brand { flex: 1; }
    .portal-nav-scroll { order: 3; flex: 0 0 100%; }
    .portal-user > span:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5, .feature-grid, .permission-grid, .score-grid, .announcement-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
    .form-layout { gap: 16px; }
    .topbar { min-height: 76px; }
    .page-title p { display: none; }
    .page-title h1 { font-size: 18px; }
    .branch-switch { display: none; }
    .content { padding: 18px 14px 38px; }
    .alert { margin: 12px 14px 0; }
    .admin-footer { padding: 14px; flex-direction: column; gap: 4px; }
    .form-card, .table-card { padding: 17px; }
    .card-head, .section-heading, .page-actions { align-items: flex-start; flex-direction: column; }
    .page-actions > .button-row { width: 100%; justify-content: flex-end; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .week-navigation { justify-content: center; }
    .public-header-inner { flex-direction: column; }
    .public-main { padding-left: 14px; padding-right: 14px; }
    .personal-calendar { grid-template-columns: repeat(2,minmax(140px,1fr)); }
    .availability-row { grid-template-columns: 1fr; }
    .time-pair { max-width: 340px; }
    .hero-shift { min-height: 240px; padding: 24px; }
}
@media (max-width: 520px) {
    .topbar-actions .topbar-public { display: none; }
    .topbar { padding: 10px 12px; }
    .menu-button { width: 40px; height: 40px; }
    .content { padding-left: 10px; padding-right: 10px; }
    .alert { margin-left: 10px; margin-right: 10px; }
    .form-card, .table-card { padding: 14px; border-radius: 14px; }
    .page-actions > .button-row { flex-wrap: wrap; justify-content: stretch; }
    .page-actions > .button-row > * { flex: 1; }
    .personal-calendar { grid-template-columns: 1fr; }
    .hero-shift { align-items: flex-start; flex-direction: column; }
    .hero-shift .button { margin-top: 18px; }
    .recovery-codes { grid-template-columns: 1fr; }
    .week-title { min-width: 0; flex: 1; }
    .public-header { padding-left: 16px; padding-right: 16px; }
    .portal-user .avatar { display: none; }
}

@media print {
    .sidebar, .sidebar-overlay, .topbar, .page-actions, .button, .filter-tabs, .portal-header, .admin-footer { display: none !important; }
    .admin-shell, .admin-main, .content, .portal-main { display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
    .table-card, .form-card, .panel, .stat-card { box-shadow: none; }
    .data-table { min-width: 0; }
    .data-table th, .data-table td { padding: 6px; font-size: 8px; }
}

/* Dashboard composition */
.dashboard-banner {
    position: relative;
    min-height: 190px;
    margin-bottom: 18px;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 15%, rgba(125,151,255,.42), transparent 24%),
        linear-gradient(125deg, #13213d 0%, #203b72 62%, #3157d5 100%);
    box-shadow: 0 24px 52px rgba(27,54,112,.22);
}
.dashboard-banner::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -115px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018);
}
.dashboard-banner > * { position: relative; z-index: 1; }
.dashboard-banner h2 { max-width: 720px; margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.dashboard-banner p:not(.eyebrow) { max-width: 740px; margin: 12px 0 0; color: rgba(255,255,255,.73); font-size: 12px; line-height: 1.65; }
.dashboard-banner-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-banner .light-button { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.19); box-shadow: none; backdrop-filter: blur(8px); }
.dashboard-banner .light-button:hover { color: #fff; background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.28); }
.dashboard-banner .button .ui-icon { width: 17px; height: 17px; }
.dashboard-stats { margin-top: 0; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-head i { width: 36px; height: 36px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 10px; font-style: normal; }
.stat-head i .ui-icon { width: 17px; height: 17px; }
.quick-card > span .ui-icon { width: 18px; height: 18px; }
@media(max-width:760px){.dashboard-banner{min-height:0;padding:24px;align-items:flex-start;flex-direction:column}.dashboard-banner-actions{width:100%;justify-content:flex-start}.dashboard-banner-actions .button{flex:1}.dashboard-banner h2{font-size:27px}}
@media(max-width:480px){.dashboard-banner{padding:21px}.dashboard-banner-actions{flex-direction:column}.dashboard-banner-actions .button{width:100%}}

/* Compatibility refinements */
.button.light { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); box-shadow: none; }
.button.light:hover { color: #fff; background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.28); }
.validation-panel { margin-bottom: 18px; padding: 18px 20px; border: 1px solid #fedf89; border-radius: var(--radius); background: var(--warning-soft); box-shadow: var(--shadow-xs); }
.validation-panel .card-head { margin-bottom: 12px; }
.issue-list.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shift-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.shift-legend .legend-item { min-width: 0; padding: 10px; }
.shift-legend .legend-item > span { min-width: 38px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 900; }
.shift-legend .legend-item > div { min-width: 0; }
.shift-legend .legend-item strong, .shift-legend .legend-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-legend .legend-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.header-actions { justify-content: flex-end; }
@media(max-width:1100px){.shift-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.issue-list.compact{grid-template-columns:1fr}}
@media(max-width:580px){.shift-legend{grid-template-columns:1fr}.header-actions{width:100%;justify-content:flex-start}}
.button.primary { color: #fff; background: linear-gradient(135deg, #3a63df, var(--primary)); }
