:root {
    --navy: #0a2a6b;
    --navy-deep: #061433;
    --royal: #123a8c;
    --gold: #e6c35c;
    --gold-rich: #c9a227;
    --gold-soft: #ffe9a8;
    --emerald: #14915a;
    --emerald-deep: #0b5c38;
    --emerald-bright: #22c57a;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.14);
    --text: #fff8e8;
    --muted: rgba(255, 248, 232, 0.74);
    --danger: #ff6b6b;
    --ok: #7dffb3;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(230, 195, 92, 0.32), transparent 52%),
        radial-gradient(900px 480px at 100% 0%, rgba(20, 145, 90, 0.28), transparent 48%),
        radial-gradient(800px 500px at 50% 110%, rgba(18, 58, 140, 0.45), transparent 55%),
        linear-gradient(160deg, #05122d 0%, #0a2a6b 46%, #0b5c38 100%);
    min-height: 100vh;
}
h1, h2, h3 { font-family: "Outfit", "Segoe UI", sans-serif; margin: 0 0 8px; letter-spacing: 0.01em; }
a { color: var(--gold-soft); text-decoration: none; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--gold-soft); margin-bottom: 6px; }
.lede { color: var(--muted); margin-bottom: 22px; }

.glass {
    background: linear-gradient(180deg, rgba(18, 42, 92, 0.92), rgba(8, 22, 52, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.14);
    border-radius: var(--radius);
}
.glass-inset {
    background: rgba(7, 21, 38, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
}

.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
    padding: 18px 14px;
    background: #061433;
    border-right: 1px solid rgba(18, 58, 140, 0.8);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brand {
    display: flex; gap: 12px; align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(230,195,92,0.18), rgba(18,58,140,0.18));
    border: 1px solid rgba(230,195,92,0.28);
}
.brand h1 { margin: 0; font-size: 28px; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #ffe08a, var(--gold-rich));
    color: var(--navy-deep); font-weight: 800; font-size: 22px;
    box-shadow: 0 8px 18px rgba(201,162,39,0.28);
}
.brand-logo {
    width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(201,162,39,0.28);
    background: #061433;
    object-fit: contain;
}
.brand-favicon { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #061433; }
.settings-preview { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.settings-asset { display: grid; gap: 8px; font-size: 12px; color: var(--gold-soft); }
.help-hero {
    position: relative; overflow: hidden;
    display: flex; justify-content: space-between; align-items: center;
    padding: 28px 30px; min-height: 160px;
    animation: rise 0.5s ease;
}
.help-hero-copy { position: relative; z-index: 1; max-width: 640px; }
.help-hero h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 8px; }
.help-orb {
    width: 180px; height: 180px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, #ffe08a, #14915a 46%, transparent 72%);
    filter: blur(2px); opacity: 0.85;
    animation: helpPulse 4.5s ease-in-out infinite;
}
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.help-shell {
    position: relative; display: flex; border-radius: 28px; padding: 2px; min-width: 0;
    animation: helpRise 0.55s ease both;
    box-shadow:
        0 28px 48px rgba(0,0,0,0.38),
        0 0 0 1px rgba(255,255,255,0.08),
        0 10px 24px rgba(6,20,51,0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.help-shell:hover {
    transform: translateY(-4px);
    box-shadow:
        0 34px 56px rgba(0,0,0,0.44),
        0 0 0 1px rgba(255,255,255,0.16),
        0 14px 28px rgba(6,20,51,0.4);
}
.help-shell:nth-child(2) { animation-delay: 0.08s; }
.help-shell:nth-child(3) { animation-delay: 0.16s; }
.help-shell-phone {
    background: linear-gradient(145deg, rgba(197,216,255,0.85), rgba(18,58,140,0.55) 42%, rgba(230,195,92,0.55));
}
.help-shell-whatsapp {
    background: linear-gradient(145deg, rgba(157,243,199,0.85), rgba(20,145,90,0.5) 42%, rgba(230,195,92,0.5));
}
.help-shell-hours {
    background: linear-gradient(145deg, rgba(255,233,168,0.85), rgba(18,58,140,0.5) 42%, rgba(230,195,92,0.58));
}
.help-card {
    position: relative; overflow: hidden; flex: 1; width: 100%;
    padding: 24px 22px; min-height: 268px;
    display: flex; flex-direction: column; gap: 8px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(6,20,51,0.35);
}
.help-card::after {
    content: ""; position: absolute; inset: auto -40px -60px auto;
    width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 68%);
    pointer-events: none;
}
.help-card h3 {
    margin: 0 0 4px;
    min-height: 2.5em;
    line-height: 1.25;
    font-size: clamp(20px, 2.1vw, 28px);
    word-break: break-word;
}
.help-icon {
    width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 18px rgba(0,0,0,0.22);
    animation: helpFloat 3.2s ease-in-out infinite;
}
.help-icon svg { width: 24px; height: 24px; fill: currentColor; }
.help-shell-phone .help-card {
    background: linear-gradient(165deg, rgba(18,58,140,0.62), rgba(8,22,52,0.92) 58%, rgba(230,195,92,0.14));
}
.help-shell-phone .help-icon { background: linear-gradient(145deg, #4f8dff, #0a2a6b); color: #fff8e8; }
.help-shell-whatsapp .help-card {
    background: linear-gradient(165deg, rgba(20,145,90,0.52), rgba(8,22,52,0.92) 58%, rgba(230,195,92,0.14));
}
.help-shell-whatsapp .help-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.help-shell-hours .help-card {
    background: linear-gradient(165deg, rgba(18,58,140,0.56), rgba(8,22,52,0.92) 58%, rgba(230,195,92,0.16));
}
.help-shell-hours .help-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }
.help-cta {
    margin-top: auto; display: inline-flex; align-items: center; gap: 10px; width: fit-content;
    min-height: 48px; padding: 6px 16px 6px 6px; border-radius: 999px; font-weight: 800;
    color: #fff8e8; letter-spacing: 0.03em; text-decoration: none;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 20px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.help-cta-icon {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 12px rgba(0,0,0,0.18);
}
.help-cta-icon svg { width: 16px; height: 16px; fill: currentColor; }
.help-shell-phone .help-cta {
    background: linear-gradient(135deg, rgba(197,216,255,0.28), rgba(18,58,140,0.22) 52%, rgba(10,42,107,0.18));
    border-color: rgba(197,216,255,0.5);
}
.help-shell-phone .help-cta-icon { background: linear-gradient(145deg, #4f8dff, #0a2a6b); color: #fff8e8; }
.help-shell-whatsapp .help-cta {
    background: linear-gradient(135deg, rgba(157,243,199,0.28), rgba(20,145,90,0.22) 52%, rgba(11,92,56,0.18));
    border-color: rgba(157,243,199,0.5);
}
.help-shell-whatsapp .help-cta-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.help-shell-hours .help-cta {
    background: linear-gradient(135deg, rgba(255,233,168,0.24), rgba(18,58,140,0.22) 52%, rgba(201,162,39,0.16));
    border-color: rgba(255,233,168,0.48);
}
.help-shell-hours .help-cta-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }
.help-cta:hover { transform: translateY(-2px); color: var(--gold-soft); }
.help-cta-static { cursor: default; pointer-events: none; }
@keyframes helpPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}
@keyframes helpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes helpRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.brand-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 2px; }
.nav-label {
    margin: 2px 8px 0; font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--gold-soft);
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 12px; color: var(--text);
    border: 1px solid transparent; font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-icon {
    width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(230,195,92,0.22);
}
.nav-icon svg { width: 14px; height: 14px; fill: currentColor; }
.nav a:hover {
    background: rgba(230,195,92,0.12);
    border-color: rgba(230,195,92,0.28);
}
.nav a.active {
    background: linear-gradient(90deg, rgba(230,195,92,0.28), rgba(20,145,90,0.16));
    border-color: rgba(230,195,92,0.42);
    color: var(--gold-soft);
}
.nav a.active .nav-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; border: 0; }
.nav-logout { margin-top: 8px; }
.nav-signout {
    appearance: none; cursor: pointer; font: inherit; width: 100%;
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 6px 12px 6px 6px;
    border-radius: 999px; font-weight: 800; color: #fff8e8;
    background: linear-gradient(135deg, rgba(255,138,138,0.32), rgba(138,31,42,0.38) 52%, rgba(90,10,18,0.28));
    border: 1px solid rgba(255,179,179,0.55);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,210,210,0.4), 0 8px 16px rgba(90,10,18,0.22);
}
.nav-signout .nav-icon {
    background: linear-gradient(145deg, #ff8a8a, #8a1f2a);
    color: #fff8e8; border: 0;
}
.nav-signout:hover { transform: translateY(-1px); }
.sidebar-user {
    margin-top: auto; display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(18,58,140,0.28), rgba(20,145,90,0.14));
    border: 1px solid rgba(230,195,92,0.24);
}
.sidebar-user strong { display: block; font-size: 13px; margin-bottom: 4px; }
.chip {
    display: inline-flex; width: fit-content;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(31, 138, 91, 0.2); color: var(--ok); font-size: 12px;
}
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 28px 10px; gap: 16px;
}
.topbar-title { min-width: 0; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-meta { display: none; gap: 14px; color: var(--muted); font-size: 13px; }
@media (min-width: 1100px) { .topbar-meta { display: flex; } }
.content { padding: 8px 28px 40px; display: grid; gap: 14px; width: 100%; min-width: 0; }
.menu-toggle {
    display: none;
    appearance: none; -webkit-appearance: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; padding: 0; flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(255,233,168,0.45);
    background: linear-gradient(145deg, rgba(18,58,140,0.72), rgba(8,22,52,0.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 16px rgba(0,0,0,0.22);
}
.hamburger {
    position: relative; display: block; width: 18px; height: 14px;
}
.hamburger span {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 999px;
    background: #ffe08a;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { top: 12px; }
.menu-toggle.is-open .hamburger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle.is-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .hamburger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.profile-menu { position: relative; }
.profile-trigger {
    display: flex; align-items: center; gap: 10px;
    appearance: none; border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08); color: var(--text);
    border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font: inherit;
}
.profile-trigger:hover { border-color: rgba(212,175,55,0.45); }
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 13px;
    background: linear-gradient(145deg, var(--gold), #aa8418); color: var(--navy-deep);
    object-fit: cover;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.profile-hero { display: flex; align-items: center; gap: 14px; }
.profile-copy { display: grid; text-align: left; line-height: 1.15; min-width: 0; max-width: 160px; }
.profile-copy strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: var(--gold-soft); font-size: 11px; letter-spacing: 0.04em; }
.profile-copy .profile-position {
    color: #7dffb3;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
    padding: 14px; z-index: 30; display: grid; gap: 6px;
}
.profile-dropdown[hidden] { display: none; }
.dropdown-kicker { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.dropdown-email { margin: 0 0 8px; font-size: 12px; color: var(--muted); word-break: break-all; }
.profile-dropdown a {
    display: block; width: 100%; text-align: left; padding: 10px 10px; border-radius: 10px;
    color: var(--text); background: transparent; border: 0; font: inherit; cursor: pointer;
}
.profile-dropdown a:hover { background: rgba(212,175,55,0.16); }
.dropdown-logout {
    appearance: none; cursor: pointer; font: inherit; width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; margin-top: 6px; padding: 5px 14px 5px 5px;
    border-radius: 999px; font-weight: 800; letter-spacing: 0.03em; color: #fff8e8;
    background: linear-gradient(135deg, rgba(255,138,138,0.32), rgba(138,31,42,0.38) 52%, rgba(90,10,18,0.28));
    border: 1px solid rgba(255,179,179,0.55);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,210,210,0.4), 0 10px 20px rgba(90,10,18,0.28);
}
.dropdown-logout:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(255,138,138,0.42), rgba(138,31,42,0.48) 52%, rgba(90,10,18,0.34)); }
.dropdown-logout .btn-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(145deg, #ff8a8a, #8a1f2a); color: #fff8e8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 12px rgba(0,0,0,0.18);
}
.dropdown-logout svg { width: 16px; height: 16px; fill: currentColor; }

.btn {
    appearance: none; border: 0; cursor: pointer;
    padding: 13px 18px; border-radius: 14px; font-weight: 700;
    font-family: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #ffe08a, var(--gold-rich)); color: #132047; }
.btn-find, .btn-pdf {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 8px 16px 8px 8px; white-space: nowrap;
    border-radius: 999px; font-weight: 800; letter-spacing: 0.04em;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 12px 24px rgba(0,0,0,0.22);
}
.btn-find:hover, .btn-pdf:hover { transform: none; }
.btn-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 12px rgba(0,0,0,0.18);
}
.btn-find svg, .btn-pdf svg { width: 18px; height: 18px; fill: currentColor; }
.btn-find {
    color: #fff8e8;
    background: linear-gradient(135deg, rgba(255,244,196,0.28), rgba(230,195,92,0.22) 48%, rgba(201,162,39,0.18));
    border: 1px solid rgba(255,233,168,0.55);
}
.btn-find .btn-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }
.btn-pdf {
    color: #fff8e8;
    background: linear-gradient(135deg, rgba(52,211,153,0.28), rgba(20,145,90,0.22) 48%, rgba(11,92,56,0.2));
    border: 1px solid rgba(157,243,199,0.5);
}
.btn-pdf .btn-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.18); }
.btn-add {
    background: linear-gradient(135deg, rgba(20,145,90,0.95), #0b5c38);
    color: #fff8e8; border: 1px solid rgba(157,243,199,0.35);
    box-shadow: 0 10px 22px rgba(11,92,56,0.28);
}
.btn-prev {
    background: linear-gradient(135deg, rgba(18,58,140,0.95), #0a2a6b);
    color: #fff8e8; border: 1px solid rgba(197,216,255,0.35);
    box-shadow: 0 10px 22px rgba(10,42,107,0.28);
}
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 12px; min-height: 0; }
.btn-danger {
    background: linear-gradient(135deg, #ff8a8a, #8a1f2a);
    color: #fff8e8; border: 1px solid rgba(255,179,179,0.35);
}
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.row-actions form { margin: 0; display: inline-flex; }
.status-toggle { display: inline-flex; align-items: center; margin: 0; }
.toggle {
    appearance: none;
    position: relative;
    width: 124px; height: 34px; border-radius: 999px; padding: 0;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 18px rgba(0,0,0,0.22);
}
.toggle.on {
    color: #9ff3c7;
    background: linear-gradient(135deg, rgba(52,211,153,0.28), rgba(11,92,56,0.22));
    border: 1px solid rgba(157,243,199,0.55);
}
.toggle.off {
    color: #ff8a8a;
    background: linear-gradient(135deg, rgba(160,36,48,0.28), rgba(88,16,24,0.22));
    border: 1px solid rgba(255,140,140,0.5);
}
.toggle:disabled { opacity: 0.45; cursor: not-allowed; }
.toggle-knob {
    position: absolute; top: 4px; left: 4px;
    width: 26px; height: 26px; border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 10px rgba(0,0,0,0.22);
}
.toggle.off .toggle-knob { left: auto; right: 4px; }
.toggle.on .toggle-knob { background: linear-gradient(145deg, #34d399, #0b5c38); }
.toggle.off .toggle-knob { background: linear-gradient(145deg, #ff8a8a, #8a1f2a); }
.toggle-text { white-space: nowrap; position: relative; z-index: 1; }
.toggle.on .toggle-text { padding-left: 22px; }
.toggle.off .toggle-text { padding-right: 22px; }
.user-edit-dp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.user-search { display: flex; align-items: center; gap: 8px; min-width: min(100%, 420px); }
.user-search input[type="search"] { flex: 1; }
#userList { min-height: 120px; transition: opacity 0.18s ease; }
#userList.is-loading { opacity: 0.45; }
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.page-current {
    min-width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; font-weight: 800;
    background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047;
}
.planner-wrap { min-width: 0; overflow: hidden; }
.cal-grid {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.cal-head { margin-bottom: 8px; }
.cal-head div {
    text-align: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold-soft); font-weight: 700; padding: 6px 0;
}
.cal-cell {
    min-height: 92px; border-radius: 16px; padding: 10px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    text-align: left; color: var(--text); font: inherit; cursor: pointer;
    background: linear-gradient(180deg, rgba(18, 42, 92, 0.72), rgba(8, 22, 52, 0.86));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.cal-cell.is-empty { background: transparent; border: 0; box-shadow: none; min-height: 0; cursor: default; }
.cal-cell.is-today { border-color: rgba(230,195,92,0.7); box-shadow: 0 0 0 1px rgba(230,195,92,0.35); }
.cal-cell.has-plan { border-color: rgba(52,211,153,0.45); background: linear-gradient(165deg, rgba(20,145,90,0.22), rgba(8,22,52,0.88)); }
.cal-cell.is-sunday { border-color: rgba(230,195,92,0.28); }
.cal-day { font-weight: 800; font-size: 14px; }
.cal-dow-label { display: none; font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-title { font-size: 12px; color: #9ff3c7; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.cal-add { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.plan-modal {
    position: fixed; inset: 0; z-index: 40;
    display: grid; place-items: center; padding: 18px;
    background: rgba(3, 8, 24, 0.72);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: planFade 0.28s ease both;
}
.plan-modal[hidden] { display: none; }
@keyframes planFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.plan-shell {
    width: min(540px, 100%);
    border-radius: 28px; padding: 2px;
    background: linear-gradient(145deg, #ffe9a8, rgba(18,58,140,0.85) 46%, rgba(20,145,90,0.7));
    box-shadow: 0 32px 64px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.1);
    animation: dsrRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.plan-shell-wide { width: min(720px, 100%); }
.plan-sheet {
    position: relative; overflow: hidden;
    width: min(540px, 100%); padding: 24px 24px 22px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(18, 42, 92, 0.96), rgba(8, 22, 52, 0.98));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.plan-shell .plan-sheet { width: 100%; }
.plan-shell-wide .plan-sheet {
    display: flex; flex-direction: column;
    max-height: min(88vh, 860px);
}
#expenseForm {
    display: flex; flex-direction: column; min-height: 0; flex: 1;
}
.plan-form-body {
    overflow-y: auto; min-height: 0; flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.plan-form-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.plan-actions-sticky {
    flex-shrink: 0; margin-top: 12px; padding-top: 12px;
    background: linear-gradient(180deg, transparent, rgba(8, 22, 52, 0.98) 28%);
    z-index: 2;
}
.plan-actions-sticky .btn-modal-save { width: 100%; justify-content: center; }
.plan-head {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    margin-bottom: 18px;
}
.plan-head h3 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--gold-soft);
    line-height: 1.25;
    word-break: break-word;
}
.plan-sheet .stack,
.plan-sheet .form-grid,
.plan-sheet .exp-details,
.plan-sheet .plan-actions { position: relative; z-index: 1; }
.plan-sheet .form-grid { margin-top: 2px; }
.plan-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.plan-sheet .bill-open { position: relative; z-index: 1; }
a.btn-modal { text-decoration: none; color: #fff8e8; }
a.btn-modal[hidden] { display: none; }
.btn-modal {
    appearance: none; cursor: pointer; font: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 6px 16px 6px 6px; white-space: nowrap;
    border-radius: 999px; font-weight: 800; letter-spacing: 0.03em; color: #fff8e8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 20px rgba(0,0,0,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-modal:hover { transform: translateY(-1px); }
.btn-modal .btn-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 12px rgba(0,0,0,0.18);
}
.btn-modal svg { width: 16px; height: 16px; fill: currentColor; }
.btn-modal-save {
    background: linear-gradient(135deg, #ffe08a, #c9a227);
    color: #132047; border: 1px solid rgba(255,233,168,0.7);
}
.btn-modal-save .btn-icon { background: #132047; color: #ffe08a; }
.btn-modal-close {
    min-height: 42px; padding: 4px 14px 4px 4px; font-size: 13px;
    background: linear-gradient(135deg, #4f8dff, #0a2a6b);
    color: #fff8e8; border: 1px solid rgba(197,216,255,0.45);
}
.btn-modal-close .btn-icon { width: 30px; height: 30px; background: rgba(255,255,255,0.16); color: #fff8e8; }
.btn-modal-delete {
    background: linear-gradient(135deg, #ff8a8a, #8a1f2a);
    color: #fff8e8; border: 1px solid rgba(255,179,179,0.45);
}
.btn-modal-delete .btn-icon { background: rgba(6,20,51,0.35); color: #fff8e8; }
.btn-modal-delete[hidden] { display: none; }
.exp-cell { cursor: default; min-height: 118px; min-width: 0; overflow: hidden; }
.exp-chip {
    appearance: none; width: 100%; display: grid; gap: 4px; min-width: 0;
    padding: 6px; border-radius: 12px; text-align: left; color: inherit; font: inherit; cursor: pointer;
    background: rgba(7, 21, 38, 0.35);
    border: 1px solid rgba(255,255,255,0.1);
}
.exp-chip .cal-title, .exp-chip .exp-meta { white-space: nowrap; max-width: 100%; }
.exp-meta { font-size: 11px; color: var(--gold-soft); overflow: hidden; text-overflow: ellipsis; }
.exp-actions { display: flex; align-items: center; gap: 6px; width: 100%; flex-wrap: wrap; }
.exp-actions form { margin: 0; min-width: 0; }
.bill-thumb {
    width: 48px; height: 48px; padding: 0; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(230,195,92,0.4); cursor: pointer;
    background: rgba(255,255,255,0.08); color: var(--gold-soft); font-weight: 800; font-size: 11px;
}
.bill-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bill-sheet { width: min(720px, 100%); }
.bill-preview { width: 100%; max-height: 28vh; object-fit: contain; border-radius: 14px; background: #061433; }
.bill-preview-pdf { width: 100%; height: 70vh; border: 0; border-radius: 14px; background: #fff; }
.bill-open {
    appearance: none; display: grid; gap: 8px; width: 100%; padding: 0; margin: 0 0 12px;
    border: 0; background: transparent; color: inherit; font: inherit; cursor: zoom-in;
}
.bill-open-hint { font-size: 12px; color: var(--gold-soft); }
.bill-lightbox { z-index: 50; background: rgba(2, 8, 22, 0.86); }
.bill-lightbox-sheet {
    position: relative; width: min(96vw, 1100px); max-height: 92vh;
    display: grid; place-items: center;
}
.bill-lightbox-img {
    max-width: 96vw; max-height: 88vh; object-fit: contain;
    border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); background: #061433;
    cursor: zoom-out;
}
.bill-lightbox-close { position: absolute; top: -8px; right: 0; z-index: 1; }
.cal-day-btn {
    appearance: none; border: 0; background: transparent; color: inherit; font: inherit;
    display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; padding: 0;
}
.exp-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0 0 16px; }
.exp-details div {
    background: linear-gradient(165deg, rgba(10,42,107,0.48), rgba(8,22,52,0.72));
    border: 1px solid rgba(230,195,92,0.22);
    border-radius: 14px; padding: 10px 12px;
}
.exp-details dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.exp-details dd { margin: 0; font-weight: 700; }
.btn-remove {
    margin-top: 12px;
    background: rgba(160,36,48,0.28);
    color: #ffd4d4; border: 1px solid rgba(255,140,140,0.4);
}
.stepper {
    display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 0;
}
.stepper input {
    text-align: center; border-radius: 0; height: 42px; min-height: 42px; max-height: 42px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.stepper-btn {
    height: 42px; border: 1px solid rgba(230,195,92,0.28);
    background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047;
    font-size: 18px; font-weight: 800; cursor: pointer;
}
.stepper-btn:first-child { border-radius: 12px 0 0 12px; }
.stepper-btn:last-child { border-radius: 0 12px 12px 0; }
.stepper-btn:hover { filter: brightness(1.08); }
.stepper-btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.att-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.att-metric {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 22px; min-width: 0;
    background: linear-gradient(180deg, rgba(18, 42, 92, 0.82), rgba(8, 22, 52, 0.9));
    box-shadow: 0 16px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.16);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.att-metric::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(230,195,92,0.55), rgba(18,58,140,0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.att-metric h3 { margin: 0 0 2px; font-size: 28px; line-height: 1; }
.att-metric .muted { margin: 0; font-size: 12px; }
.att-metric .eyebrow { margin-bottom: 2px; }
.att-icon {
    width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 16px rgba(0,0,0,0.18);
}
.att-icon svg { width: 20px; height: 20px; fill: currentColor; }
.att-done { background: linear-gradient(165deg, rgba(20,145,90,0.28), rgba(8,22,52,0.9)); }
.att-done::before { background: linear-gradient(135deg, #9ff3c7, #14915a, rgba(255,255,255,0.2)); }
.att-done .att-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.att-absent { background: linear-gradient(165deg, rgba(160,36,48,0.28), rgba(8,22,52,0.9)); }
.att-absent::before { background: linear-gradient(135deg, #ffb3b3, #8a1f2a, rgba(255,255,255,0.2)); }
.att-absent .att-icon { background: linear-gradient(145deg, #ff8a8a, #8a1f2a); color: #fff8e8; }
.att-remain { background: linear-gradient(165deg, rgba(18,58,140,0.38), rgba(8,22,52,0.9)); }
.att-remain::before { background: linear-gradient(135deg, #c5d8ff, #123a8c, rgba(255,255,255,0.2)); }
.att-remain .att-icon { background: linear-gradient(145deg, #4f8dff, #0a2a6b); color: #fff8e8; }
.att-holiday { background: linear-gradient(165deg, rgba(230,195,92,0.28), rgba(8,22,52,0.9)); }
.att-holiday::before { background: linear-gradient(135deg, #fff4c4, #c9a227, rgba(255,255,255,0.2)); }
.att-holiday .att-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }
.exp-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.exp-metric-grid .att-metric {
    min-height: 108px; padding: 18px 20px; gap: 16px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.22);
}
.exp-metric-grid .att-icon { width: 52px; height: 52px; border-radius: 16px; }
.exp-metric-grid .att-icon svg { width: 24px; height: 24px; }
.exp-metric-grid h3 { font-size: clamp(26px, 3vw, 34px); }
.exp-metric-bills {
    background:
        linear-gradient(165deg, rgba(230,195,92,0.32), rgba(18,58,140,0.28) 52%, rgba(8,22,52,0.88)),
        rgba(255,255,255,0.05);
}
.exp-metric-bills::before { background: linear-gradient(135deg, #fff4c4, #c9a227, rgba(120,168,255,0.35)); }
.exp-metric-bills .att-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }
.exp-metric-total {
    background:
        linear-gradient(165deg, rgba(20,145,90,0.34), rgba(8,22,52,0.88) 58%, rgba(230,195,92,0.12)),
        rgba(255,255,255,0.05);
}
.exp-metric-total::before { background: linear-gradient(135deg, #9ff3c7, #14915a, rgba(230,195,92,0.35)); }
.exp-metric-total .att-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.kpi-grid .stat-card { min-width: 0; }
.stat-card, .panel { padding: 22px; min-width: 0; }
.stat-card {
    position: relative;
    display: flex; flex-direction: column; gap: 4px;
    min-height: 188px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.stat-card:hover { border-color: rgba(212,175,55,0.38); box-shadow: 0 18px 36px rgba(0,0,0,0.28); }
.stat-card h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; word-break: break-word; }
.stat-icon {
    width: 42px; height: 42px; border-radius: 14px; margin-bottom: 10px;
    display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
    background: rgba(230,195,92,0.18); color: var(--gold-soft); border: 1px solid rgba(230,195,92,0.38);
}
.stat-foot { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--gold-soft); }
.card-gold {
    background: linear-gradient(165deg, rgba(230,195,92,0.34), rgba(10,42,107,0.22) 62%, rgba(255,255,255,0.06));
    border-color: rgba(230,195,92,0.46);
}
.card-gold .stat-icon { background: linear-gradient(145deg, #ffe08a, var(--gold-rich)); color: #132047; border: 0; }
.card-emerald {
    background: linear-gradient(165deg, rgba(20,145,90,0.38), rgba(6,20,51,0.18) 64%, rgba(255,255,255,0.06));
    border-color: rgba(34,197,122,0.42);
}
.card-emerald .stat-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; border: 0; }
.card-emerald .stat-foot { color: #9ff3c7; }
.card-blue {
    background: linear-gradient(165deg, rgba(18,58,140,0.62), rgba(6,20,51,0.2) 66%, rgba(255,255,255,0.06));
    border-color: rgba(120,168,255,0.38);
}
.card-blue .stat-icon { background: linear-gradient(145deg, #4f8dff, #0a2a6b); color: #fff8e8; border: 0; }
.card-blue .stat-foot { color: #c5d8ff; }
.card-navy {
    background: linear-gradient(165deg, rgba(10,42,107,0.72), rgba(201,162,39,0.16) 78%, rgba(255,255,255,0.06));
    border-color: rgba(230,195,92,0.28);
}
.hero-welcome { padding: 2px 2px 0; animation: dashIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-kicker { margin: 0 0 4px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; color: var(--gold-soft); }
.hero-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    background: linear-gradient(120deg, #fff4c4 0%, #e6c35c 38%, #c9a227 68%, #ffe9a8 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(201,162,39,0.18);
    animation: dsrShine 6s linear infinite;
}
.hero-role {
    display: inline-flex; align-items: center;
    min-height: 34px; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
    color: #9ff3c7;
    background: linear-gradient(135deg, rgba(52,211,153,0.28), rgba(20,145,90,0.22) 48%, rgba(11,92,56,0.18));
    border: 1px solid rgba(157,243,199,0.5);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(180,255,210,0.35), 0 8px 16px rgba(6,58,34,0.22);
}
.hero-sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.dash-shell {
    position: relative; display: flex; min-width: 0; color: inherit;
    border-radius: 24px; padding: 2px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.08);
    animation: dashIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.dash-shell-gold { background: linear-gradient(145deg, rgba(255,244,196,0.9), rgba(18,58,140,0.5) 48%, rgba(201,162,39,0.7)); }
.dash-shell-blue { background: linear-gradient(145deg, rgba(197,216,255,0.9), rgba(18,58,140,0.55) 48%, rgba(230,195,92,0.5)); }
.dash-shell-green { background: linear-gradient(145deg, rgba(157,243,199,0.85), rgba(20,145,90,0.5) 48%, rgba(230,195,92,0.5)); }
.dash-shell-red { background: linear-gradient(145deg, rgba(255,180,180,0.85), rgba(176,28,40,0.5) 48%, rgba(90,10,18,0.55)); }
.window-shell {
    border-radius: 24px; padding: 2px;
    background: linear-gradient(145deg, rgba(255,244,196,0.85), rgba(18,58,140,0.55) 50%, rgba(20,145,90,0.45));
    box-shadow: 0 16px 32px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.08);
    animation: dashIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.window-card {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 22px;
    background: linear-gradient(165deg, rgba(18,58,140,0.55), rgba(8,22,52,0.92) 58%, rgba(230,195,92,0.12));
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(6,20,51,0.28);
}
.window-copy h3 { font-size: clamp(16px, 1.8vw, 22px); margin: 0 0 4px; }
.window-copy .muted { margin: 0; font-size: 12px; }
.window-status { display: grid; gap: 6px; justify-items: end; flex-shrink: 0; }
.status-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 88px; padding: 8px 14px; border-radius: 999px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; font-size: 12px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.status-pill.is-open {
    background: linear-gradient(135deg, rgba(34,197,94,0.72), rgba(16,185,129,0.58) 46%, rgba(5,150,105,0.7));
    color: #ecfdf5;
    border: 1px solid rgba(167,243,208,0.72);
    box-shadow: inset 0 1px 0 rgba(220,252,231,0.45), 0 0 16px rgba(16,185,129,0.45), 0 8px 16px rgba(6,95,70,0.32);
}
.status-pill.is-closed {
    background: linear-gradient(135deg, rgba(239,68,68,0.78), rgba(220,38,38,0.62) 46%, rgba(153,27,27,0.74));
    color: #fff1f2;
    border: 1px solid rgba(254,202,202,0.72);
    box-shadow: inset 0 1px 0 rgba(254,226,226,0.45), 0 0 16px rgba(239,68,68,0.45), 0 8px 16px rgba(127,29,29,0.32);
}
.window-clock { color: var(--gold-soft); font-weight: 700; }

.counter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.counter-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; min-height: 0;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 14px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.22);
    animation: dashIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.counter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.26);
}
.counter-grid .counter-card:nth-child(1) { animation-delay: 0.14s; }
.counter-grid .counter-card:nth-child(2) { animation-delay: 0.22s; }
.counter-grid .counter-card:nth-child(3) { animation-delay: 0.3s; }
.counter-card::before {
    content: ""; position: absolute; inset: auto -18px -28px auto;
    width: 92px; height: 92px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 68%);
    pointer-events: none;
}
.counter-icon {
    width: 46px; height: 46px; border-radius: 16px; flex-shrink: 0;
    display: grid; place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 16px rgba(0,0,0,0.18);
}
.counter-icon svg { width: 22px; height: 22px; fill: currentColor; }
.counter-copy { min-width: 0; }
.counter-copy .eyebrow { margin-bottom: 2px; font-size: 10px; }
.counter-card h3 { font-size: 30px; margin: 0 0 2px; line-height: 1; }
.counter-copy .muted { margin: 0; font-size: 12px; }
.counter-done {
    border-color: rgba(34,197,122,0.5);
    background:
        linear-gradient(135deg, rgba(20,145,90,0.42), rgba(6,20,51,0.22) 58%, rgba(230,195,92,0.12)),
        rgba(255,255,255,0.05);
}
.counter-done .counter-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.counter-absent {
    border-color: rgba(255,140,140,0.48);
    background:
        linear-gradient(135deg, rgba(160,36,48,0.4), rgba(10,42,107,0.22) 58%, rgba(255,255,255,0.05)),
        rgba(255,255,255,0.04);
}
.counter-absent .counter-icon { background: linear-gradient(145deg, #ff8a8a, #8a1f2a); color: #fff8e8; }
.counter-remain {
    border-color: rgba(230,195,92,0.55);
    background:
        linear-gradient(135deg, rgba(230,195,92,0.34), rgba(18,58,140,0.28) 55%, rgba(255,255,255,0.06)),
        rgba(255,255,255,0.05);
}
.counter-remain .counter-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }

.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 0; }
.dash-shell.portal-dsr { background: linear-gradient(145deg, rgba(255,244,196,0.9), rgba(18,58,140,0.5) 48%, rgba(201,162,39,0.7)); }
.dash-shell.portal-report { background: linear-gradient(145deg, rgba(197,216,255,0.9), rgba(18,58,140,0.55) 48%, rgba(230,195,92,0.5)); }
.dash-shell.portal-attendance { background: linear-gradient(145deg, rgba(157,243,199,0.85), rgba(20,145,90,0.5) 48%, rgba(230,195,92,0.5)); }
.dash-shell.portal-planner { background: linear-gradient(145deg, rgba(255,210,160,0.9), rgba(18,58,140,0.5) 48%, rgba(201,162,39,0.55)); }
.dash-shell.portal-expense { background: linear-gradient(145deg, rgba(180,210,255,0.9), rgba(80,40,140,0.5) 48%, rgba(230,195,92,0.45)); }
.dash-shell.portal-help { background: linear-gradient(145deg, rgba(255,190,210,0.85), rgba(140,40,80,0.45) 48%, rgba(230,195,92,0.45)); }
.portal-card {
    flex: 1; width: 100%; color: inherit;
    padding: 16px 14px 14px; min-height: 188px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    position: relative; overflow: hidden; border-radius: 22px;
    background: linear-gradient(165deg, rgba(18,58,140,0.5), rgba(8,22,52,0.92) 58%, rgba(230,195,92,0.12));
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(6,20,51,0.28);
}
.action-grid .dash-shell:nth-child(1) { animation-delay: 0.28s; }
.action-grid .dash-shell:nth-child(2) { animation-delay: 0.36s; }
.action-grid .dash-shell:nth-child(3) { animation-delay: 0.44s; }
.action-grid .dash-shell:nth-child(4) { animation-delay: 0.52s; }
.action-grid .dash-shell:nth-child(5) { animation-delay: 0.6s; }
.action-grid .dash-shell:nth-child(6) { animation-delay: 0.68s; }
.dash-shell:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.16);
}
.portal-card h3 { font-size: 22px; margin: 0; }
.portal-card .muted { margin: 0 0 8px; font-size: 12px; flex: 1; }
.portal-seal {
    width: 62px; height: 62px; border-radius: 50%; padding: 4px; margin-bottom: 6px;
    display: grid; place-items: center;
    background: conic-gradient(from 210deg, #fff4c4, #c9a227 28%, #8a6a12 48%, #ffe08a 72%, #c9a227 88%, #fff4c4);
    box-shadow: 0 0 0 3px rgba(6,20,51,0.45), 0 10px 18px rgba(201,162,39,0.28);
    animation: portalFloat 3.6s ease-in-out infinite;
}
.portal-icon {
    width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.portal-icon svg { width: 22px; height: 22px; fill: currentColor; }
.portal-dsr .portal-icon { background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047; }
.portal-report .portal-icon { background: linear-gradient(145deg, #4f8dff, #0a2a6b); color: #fff8e8; }
.portal-attendance .portal-icon { background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8; }
.portal-planner .portal-icon { background: linear-gradient(145deg, #ffb347, #c45d12); color: #fff8e8; }
.portal-expense .portal-icon { background: linear-gradient(145deg, #c4b5fd, #6d28d9); color: #fff8e8; }
.portal-help .portal-icon { background: linear-gradient(145deg, #fb7185, #9f1239); color: #fff8e8; }
@keyframes portalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes dashIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
.frost-btn {
    margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
    width: fit-content; min-width: 88px; min-height: 34px; padding: 0 14px; border-radius: 999px;
    font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px;
    color: #fff8e8;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.38);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 12px rgba(0,0,0,0.18);
}
.frost-btn svg { width: 13px; height: 13px; fill: currentColor; }
.dash-shell:hover .frost-btn {
    color: var(--gold-soft);
    border-color: rgba(230,195,92,0.55);
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(230,195,92,0.12));
    transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
    .hero-welcome, .hero-title, .window-shell, .counter-card, .dash-shell, .portal-seal {
        animation: none;
    }
}

.welcome-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    padding: 26px 28px;
    background:
        linear-gradient(120deg, rgba(230,195,92,0.28), rgba(18,58,140,0.28) 46%, rgba(20,145,90,0.22)),
        var(--glass);
    border-color: rgba(230,195,92,0.34);
}
.welcome-text { min-width: 0; flex: 1; }
.welcome-banner h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.welcome-copy { margin-bottom: 0; max-width: 640px; }
.welcome-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex-shrink: 0; }
.chip-gold { background: rgba(230,195,92,0.24); color: var(--gold-soft); border: 1px solid rgba(230,195,92,0.35); }
.chip-green { background: rgba(20,145,90,0.24); color: #9ff3c7; border: 1px solid rgba(34,197,122,0.35); }
.chip-blue { background: rgba(18,58,140,0.38); color: #c5d8ff; border: 1px solid rgba(120,168,255,0.35); }
.chip-time { background: rgba(255,255,255,0.1); color: var(--text); }
.dash-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: stretch; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-intro { display: grid; gap: 6px; width: 100%; margin: 18px 0 14px; align-items: start; justify-content: start; }
.cal-hint { margin: 0; font-weight: 700; color: var(--text); }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.quick-links a {
    padding: 12px 14px; border-radius: 12px; color: var(--text);
    background: linear-gradient(135deg, rgba(18,58,140,0.28), rgba(20,145,90,0.16));
    border: 1px solid rgba(230,195,92,0.22);
}
.quick-links a:hover { border-color: rgba(230,195,92,0.55); background: rgba(230,195,92,0.16); }
.pulse-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.pulse-dot, .legend i {
    width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.pulse-present { background: #3ddc84; }
.pulse-absent { background: #ff6b6b; }
.pulse-future { background: rgba(255,255,255,0.18); }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.insight-list { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.action-panel {
    background: linear-gradient(165deg, rgba(18,58,140,0.32), rgba(230,195,92,0.12) 70%, rgba(255,255,255,0.05));
    border-color: rgba(230,195,92,0.28);
}
.dash-split .panel {
    border-color: rgba(20,145,90,0.2);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--text); min-width: 0; }
label > span {
    color: var(--gold-soft); font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; font-size: 12px;
}
input, select, textarea {
    width: 100%; padding: 11px 13px; border-radius: 12px;
    border: 1px solid rgba(230,195,92,0.28);
    background: rgba(6, 16, 40, 0.72);
    color: var(--text);
    font: inherit; font-size: 14px; line-height: 1.35; outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
input, select {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
}
input[type="file"] {
    height: auto;
    min-height: 42px;
    max-height: none;
    padding: 8px 10px;
}
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #e6c35c 50%), linear-gradient(135deg, #e6c35c 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
    text-overflow: ellipsis;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(230,195,92,0.22), 0 0 18px rgba(230,195,92,0.18);
    animation: fieldGlow 1.6s ease-in-out infinite;
}
@keyframes fieldGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(230,195,92,0.18), 0 0 12px rgba(230,195,92,0.12); }
    50% { box-shadow: 0 0 0 6px rgba(230,195,92,0.12), 0 0 22px rgba(230,195,92,0.22); }
}
.wizard #addMeeting { position: relative; z-index: 1; animation: dsrRise 0.5s ease both; }
input[readonly] { opacity: 0.9; border-color: rgba(255,255,255,0.14); }

.alert {
    padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; font-weight: 600;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 22px rgba(0,0,0,0.18);
}
.alert-danger {
    background: linear-gradient(135deg, rgba(176,28,40,0.52), rgba(90,10,18,0.62));
    border: 1px solid rgba(255,130,130,0.48);
    box-shadow: inset 0 1px 0 rgba(255,180,180,0.22), 0 10px 22px rgba(90,10,18,0.28);
    color: #ffd0d0;
}
.alert-success {
    background: linear-gradient(135deg, rgba(12,110,62,0.56), rgba(6,58,34,0.66));
    border: 1px solid rgba(90,220,150,0.48);
    box-shadow: inset 0 1px 0 rgba(180,255,210,0.22), 0 10px 22px rgba(6,58,34,0.28);
    color: #9ff3c7;
}
.alert-gold { background: rgba(212,175,55,0.14); border: 1px solid rgba(212,175,55,0.35); color: var(--gold-soft); }

.dsr-hero {
    position: relative; overflow: hidden;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 18px; border-radius: 22px;
    background:
        linear-gradient(125deg, rgba(230,195,92,0.28), rgba(18,58,140,0.42) 52%, rgba(20,145,90,0.22)),
        rgba(8,22,52,0.72);
    border: 1px solid rgba(230,195,92,0.38);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: dsrRise 0.55s ease both;
}
.dsr-hero-orb {
    position: absolute; right: 90px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe08a, #14915a 48%, transparent 72%);
    filter: blur(2px); opacity: 0.7; pointer-events: none;
    animation: dsrOrb 5s ease-in-out infinite;
}
.dsr-hero h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    background: linear-gradient(120deg, #fff4c4 0%, #e6c35c 42%, #c9a227 72%, #ffe9a8 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dsrShine 4s linear infinite;
}
.dsr-hero .eyebrow { margin-bottom: 2px; }
.dsr-hero .muted { margin: 0; font-size: 13px; }
.dsr-lock-note { padding: 16px 18px; animation: dsrRise 0.5s ease both; }
.dsr-done {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(12,110,62,0.48), rgba(6,58,34,0.58) 58%, rgba(20,145,90,0.22));
    border: 1px solid rgba(90,220,150,0.48);
    box-shadow: inset 0 1px 0 rgba(180,255,210,0.22), 0 12px 24px rgba(6,58,34,0.22);
}
.dsr-done h3 { color: #9ff3c7; margin-bottom: 6px; }
.progress-wrap {
    padding: 12px 14px 10px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(18,58,140,0.38), rgba(8,22,52,0.72));
    border: 1px solid rgba(230,195,92,0.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 28px rgba(0,0,0,0.22);
    animation: dsrRise 0.6s ease both;
}
.progress-track {
    position: relative; height: 6px; border-radius: 999px; overflow: hidden;
    background: rgba(255,255,255,0.1); margin: 0 10px 8px;
}
.progress-fill {
    display: block; height: 100%; width: 33.333%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c9a227, #ffe08a, #22c57a, #ffe08a);
    background-size: 220% 100%;
    box-shadow: 0 0 18px rgba(230,195,92,0.55);
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    animation: progressShine 2.4s linear infinite;
}
.progress-wrap[data-progress="1"] .progress-fill { width: 33.333%; }
.progress-wrap[data-progress="2"] .progress-fill { width: 66.666%; }
.progress-wrap[data-progress="3"] .progress-fill { width: 100%; }
@keyframes progressShine {
    from { background-position: 180% 0; }
    to { background-position: 0 0; }
}
@keyframes dsrRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes dsrOrb {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.65; }
    50% { transform: scale(1.12) translateY(8px); opacity: 0.9; }
}
@keyframes dsrShine {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; }
.steps li {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    text-align: center; padding: 2px 4px; color: var(--muted); font-size: 12px;
}
.steps li strong { font-weight: 700; font-size: 12px; color: inherit; }
.steps li span {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 800;
    background: rgba(255,255,255,0.08); color: var(--gold-soft);
    border: 1px solid rgba(230,195,92,0.28);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.steps li.active { color: var(--gold-soft); }
.steps li.active span {
    background: linear-gradient(145deg, #ffe08a, #c9a227); color: #132047;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(230,195,92,0.18), 0 8px 18px rgba(201,162,39,0.35);
    animation: stepPulse 1.8s ease-in-out infinite;
}
@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(230,195,92,0.16), 0 8px 18px rgba(201,162,39,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(230,195,92,0.08), 0 10px 22px rgba(201,162,39,0.42); }
}
.wizard-shell {
    position: relative; display: flex; border-radius: 28px; padding: 2px;
    background: linear-gradient(145deg, rgba(255,233,168,0.9), rgba(18,58,140,0.55) 42%, rgba(20,145,90,0.45));
    box-shadow: 0 28px 48px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.08);
    animation: dsrRise 0.55s ease both;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.wizard-step[hidden] { display: none !important; }
.wizard-shell:hover {
    transform: translateY(-2px);
    box-shadow: 0 34px 56px rgba(0,0,0,0.44), 0 0 0 1px rgba(255,255,255,0.16);
}
.wizard-card {
    position: relative; overflow: hidden; flex: 1; width: 100%;
    padding: 22px 22px; border-radius: 26px;
    background:
        linear-gradient(165deg, rgba(18,58,140,0.42), rgba(8,22,52,0.88) 58%, rgba(20,145,90,0.14)),
        rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(6,20,51,0.35);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.wizard-card::after {
    content: ""; position: absolute; inset: -40% auto auto -20%;
    width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(230,195,92,0.18), transparent 68%);
    animation: dsrOrb 6s ease-in-out infinite;
}
.wizard-step.active { animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
.wizard-head { margin-bottom: 16px; position: relative; z-index: 1; }
.wizard-head h3 {
    font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 6px;
    background: linear-gradient(120deg, #fff4c4, #e6c35c 40%, #ffe9a8 80%);
    background-size: 180% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dsrShine 5s linear infinite;
}
.wizard-head .muted { margin: 0; max-width: 680px; font-size: 14px; }
.meeting-shared { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(230,195,92,0.18); }
#meetingRows { display: grid; gap: 14px; margin: 0 0 14px; }
.meeting-row {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(10,42,107,0.52), rgba(8,22,52,0.72) 58%, rgba(230,195,92,0.08));
    border: 1px solid rgba(230,195,92,0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 22px rgba(0,0,0,0.16);
    margin: 0;
    animation: stepIn 0.4s ease both;
    position: relative;
    z-index: 1;
    transition: transform 0.22s ease, border-color 0.22s ease;
}
.meeting-row:hover {
    transform: translateY(-2px);
    border-color: rgba(230,195,92,0.48);
}
.meeting-kicker {
    margin: 0 0 12px;
    letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--gold-soft);
}
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.wizard-actions .btn { min-width: 110px; font-size: 14px; padding: 11px 16px; }
.wizard .form-grid { position: relative; z-index: 1; }
.wizard.is-locked { pointer-events: none; opacity: 0.72; }
.wizard.is-locked [data-next],
.wizard.is-locked [data-prev] { pointer-events: auto; }
.counter { font-size: 14px; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin-bottom: 4px; }
.filter-actions {
    display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
    grid-column: 1 / -1;
}
.filter-actions .btn-find,
.filter-actions .btn-pdf { flex: 1 1 0; min-width: 0; }
[data-user-search] { position: relative; min-width: 0; }
.user-search-input { width: 100%; }
.user-search-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
    max-height: 240px; overflow: auto; padding: 8px;
    background: linear-gradient(180deg, rgba(18, 42, 92, 0.98), rgba(8, 22, 52, 0.98));
    border: 1px solid rgba(230,195,92,0.32); border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.32);
}
.user-search-list button {
    display: block; width: 100%; text-align: left; padding: 10px 12px;
    border: 0; border-radius: 10px; background: transparent; color: var(--text);
    font: inherit; cursor: pointer;
}
.user-search-list button:hover, .user-search-list button.is-active { background: rgba(230,195,92,0.18); color: var(--gold-soft); }
.user-search-empty { margin: 8px 10px; font-size: 13px; }
.table-scroll { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
table.table-compact { min-width: 0; }
.table-wrap table, .dash-split table { min-width: 480px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
th { color: var(--gold-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.mini { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.badge { display: inline-flex; min-width: 32px; justify-content: center; padding: 4px 8px; border-radius: 999px; font-weight: 700; }
.badge-present { background: rgba(31,138,91,0.2); color: var(--ok); }
.badge-absent { background: rgba(255,107,107,0.18); color: var(--danger); }
.badge-holiday { background: rgba(230,195,92,0.22); color: var(--gold-soft); }
.counter { color: var(--muted); }

.guest-body {
    display: grid; place-items: center; padding: 28px 18px;
    background:
        radial-gradient(720px 420px at 12% 8%, rgba(230,195,92,0.28), transparent 58%),
        radial-gradient(640px 380px at 92% 12%, rgba(20,145,90,0.22), transparent 52%),
        radial-gradient(900px 520px at 50% 110%, rgba(18,58,140,0.5), transparent 58%),
        linear-gradient(165deg, #040b1c 0%, #061433 42%, #0a2a6b 100%);
}
.auth-wrap { width: min(520px, 100%); }
.auth-card { padding: 32px 28px; }
.auth-brand { margin-bottom: 18px; }
.stack { display: grid; gap: 14px; }
.hint { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.login-stage {
    position: relative; width: min(460px, 100%);
    display: grid; place-items: center;
}
.login-orb {
    position: absolute; border-radius: 50%; pointer-events: none; filter: blur(8px);
}
.login-orb-gold {
    width: 220px; height: 220px; top: -70px; right: -50px;
    background: radial-gradient(circle at 30% 30%, #ffe08a, rgba(201,162,39,0.2) 48%, transparent 70%);
    opacity: 0.7;
}
.login-orb-emerald {
    width: 180px; height: 180px; bottom: -60px; left: -40px;
    background: radial-gradient(circle at 40% 40%, #34d399, rgba(11,92,56,0.18) 50%, transparent 72%);
    opacity: 0.55;
}
.login-pass { position: relative; z-index: 1; width: 100%; }
.login-pass-frame {
    padding: 2px; border-radius: 34px;
    background:
        linear-gradient(160deg, #fff4c4 0%, #c9a227 28%, rgba(18,58,140,0.9) 62%, #34d399 100%);
    box-shadow:
        0 36px 70px rgba(0,0,0,0.46),
        0 0 0 1px rgba(255,255,255,0.12),
        0 18px 40px rgba(6,20,51,0.4);
}
.login-pass-inner {
    position: relative; overflow: hidden;
    padding: 42px 32px 28px; border-radius: 32px; text-align: center;
    background:
        linear-gradient(180deg, rgba(18,42,92,0.55), rgba(6,20,51,0.92) 48%, rgba(8,22,52,0.96)),
        radial-gradient(circle at 50% 0%, rgba(230,195,92,0.18), transparent 46%);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(6,20,51,0.4);
}
.login-pass-inner::before {
    content: ""; position: absolute; inset: 12px; border-radius: 24px; pointer-events: none;
    border: 1px solid rgba(230,195,92,0.18);
}
.login-seal {
    display: grid; place-items: center; margin: 0 auto 16px;
}
.login-seal-ring {
    width: 118px; height: 118px; aspect-ratio: 1 / 1; border-radius: 50%; padding: 6px;
    display: grid; place-items: center;
    background:
        conic-gradient(from 210deg, #fff4c4, #c9a227 28%, #8a6a12 48%, #ffe08a 72%, #c9a227 88%, #fff4c4);
    box-shadow:
        0 0 0 6px rgba(6,20,51,0.55),
        0 16px 32px rgba(201,162,39,0.32),
        inset 0 1px 0 rgba(255,255,255,0.7);
}
.login-seal-core {
    width: 100%; height: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
    display: block;
    background: radial-gradient(circle at 35% 30%, #123a8c, #061433 72%);
    box-shadow: inset 0 0 0 3px rgba(6,20,51,0.7);
    clip-path: circle(50%);
}
.login-seal-core img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    border-radius: 50%;
}
.login-kicker {
    margin: 0 0 4px; font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold-soft);
}
.login-pass-inner h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 6vw, 46px);
    background: linear-gradient(120deg, #fff4c4 0%, #e6c35c 42%, #c9a227 72%, #ffe9a8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-tag { margin: 0 auto 16px; max-width: 320px; color: var(--muted); }
.login-divider {
    width: 84px; height: 2px; margin: 0 auto 22px; border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffe08a, transparent);
}
.login-form { display: grid; gap: 14px; text-align: left; }
.login-form label > span { text-align: left; }
.login-submit {
    appearance: none; cursor: pointer; width: 100%;
    min-height: 52px; margin-top: 6px; border-radius: 999px; font: inherit; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; color: #132047;
    background: linear-gradient(135deg, #fff4c4, #e6c35c 46%, #c9a227);
    border: 1px solid rgba(255,244,196,0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 14px 28px rgba(201,162,39,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 32px rgba(201,162,39,0.38);
}
.login-hint { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.fade-in { animation: rise 0.45s ease; }
.nav-backdrop { display: none; }
.page-loader {
    position: fixed; inset: 0; z-index: 80;
    display: grid; place-items: center; place-content: center; gap: 14px;
    background: rgba(6, 20, 51, 0.42);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.page-loader[hidden] { display: none; }
.page-loader-seal {
    position: relative; width: 72px; height: 72px;
    border-radius: 50%; padding: 3px;
    background: conic-gradient(from 210deg, rgba(255,244,196,0.15), #ffe08a 28%, #c9a227 52%, #34d399 78%, rgba(255,244,196,0.12));
    box-shadow: 0 16px 36px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.12);
}
.page-loader-ring {
    position: absolute; inset: 3px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 62%, #ffe08a 78%, #fff4c4 92%, transparent 100%);
    animation: loaderSpin 0.9s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.page-loader-core {
    position: absolute; inset: 12px; border-radius: 50%;
    background: linear-gradient(165deg, rgba(18,58,140,0.72), rgba(8,22,52,0.94));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.page-loader-label {
    margin: 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-soft); font-weight: 700;
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .page-loader-ring { animation: none; }
}
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1200px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .att-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-split { grid-template-columns: 1fr; }
    .counter-grid, .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; inset: 0 auto 0 0; width: min(84vw, 320px);
        transform: translateX(-105%); transition: transform 0.25s ease; z-index: 20;
    }
    .sidebar.open { transform: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .content, .topbar { padding-left: 18px; padding-right: 18px; }
    .topbar { gap: 10px; }
    .topbar-title { min-width: 0; overflow: hidden; }
    .topbar-title .eyebrow { font-size: 9px; letter-spacing: 0.1em; margin-bottom: 0; }
    .topbar-title h2 { font-size: 16px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-right { gap: 8px; flex-shrink: 0; }
    .profile-trigger { padding: 4px 8px 4px 4px; gap: 6px; }
    .form-grid { grid-template-columns: 1fr; }
    .steps li strong { font-size: 12px; }
    .wizard-card { padding: 16px 14px; }
    .wizard-shell { border-radius: 22px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .att-metric-grid { grid-template-columns: 1fr; }
    .exp-metric-grid { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: 1fr; }
    .help-hero { flex-direction: column; align-items: flex-start; }
    .help-orb { width: 110px; height: 110px; position: absolute; right: 12px; top: 12px; }
    .login-pass-inner { padding: 34px 20px 22px; }
    .login-seal-ring { width: 96px; height: 96px; }
    .welcome-banner { flex-direction: column; align-items: flex-start; }
    .welcome-meta { justify-content: flex-start; }
    .dsr-hero { flex-direction: column; align-items: flex-start; }
    .counter-grid, .action-grid { grid-template-columns: 1fr; }
    .window-card { flex-direction: column; align-items: flex-start; }
    .window-status { justify-items: start; }
    .counter-card h3 { font-size: 26px; }
    .portal-card { min-height: 0; }
    .profile-copy { display: grid; max-width: 120px; }
    .legend { flex-wrap: wrap; }
    .cal-cell { min-height: 72px; padding: 8px; }
    .exp-details { grid-template-columns: 1fr; }
    .planner-wrap .cal-grid { gap: 6px; }
    .exp-cell { min-height: 84px; padding: 6px; gap: 4px; }
    .exp-cell .exp-actions,
    .exp-cell .bill-thumb,
    .exp-cell .cal-add { display: none; }
    .exp-chip { padding: 4px; }
    .exp-chip .cal-title, .exp-chip .exp-meta { font-size: 10px; }
    .plan-modal {
        align-items: stretch; padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .plan-shell, .plan-shell-wide { width: 100%; max-width: 100%; }
    .plan-sheet, .plan-shell-wide .plan-sheet {
        width: 100%; max-height: calc(100dvh - 20px);
    }
    .plan-head { margin-bottom: 12px; }
    .nav-backdrop.show {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 15;
    }
}
@media (max-width: 700px) {
    .planner-wrap .cal-head { display: none; }
    .planner-wrap .cal-grid { grid-template-columns: 1fr; gap: 10px; }
    .planner-wrap .cal-cell.is-empty { display: none; }
    .exp-cell { min-height: 0; padding: 12px; gap: 8px; overflow: visible; }
    .exp-cell .exp-actions { display: flex; }
    .exp-cell .bill-thumb { display: inline-grid; place-items: center; }
    .exp-cell .cal-add { display: inline; }
    .cal-dow-label { display: inline; }
    .cal-day-btn { justify-content: flex-start; gap: 8px; }
    .exp-chip .cal-title, .exp-chip .exp-meta { white-space: normal; }
}

.install-stage { width: min(720px, 100%); }
.install-inner { text-align: left; }
.install-inner .login-seal,
.install-inner .login-kicker,
.install-inner .login-tag,
.install-inner .login-divider { text-align: center; margin-left: auto; margin-right: auto; }
.install-inner h1 { text-align: center; }
.install-steps { margin: 0 0 22px; }
.install-checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.install-checks li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: 16px;
    background: rgba(6, 16, 40, 0.55);
    border: 1px solid rgba(255,255,255,0.12);
}
.install-checks .install-flag {
    flex-shrink: 0; min-width: 44px; height: 28px; border-radius: 999px;
    display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
}
.install-checks strong { display: block; font-size: 14px; }
.install-checks small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.install-checks .is-ok .install-flag {
    background: linear-gradient(145deg, #34d399, #0b5c38); color: #fff8e8;
}
.install-checks .is-fail {
    border-color: rgba(255,130,130,0.4);
}
.install-checks .is-fail .install-flag {
    background: linear-gradient(145deg, #ff8a8a, #8a1f2a); color: #fff8e8;
}
a.login-submit {
    display: grid; place-items: center; text-decoration: none; color: #132047;
}
.install-inner .wizard-actions { justify-content: space-between; }
.install-inner .wizard-actions .btn { min-width: 140px; }
