:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #0c1019;
    color: #e7ebf5;
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #a7b9ff; }
a:hover { color: #d3ddff; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.topbar { background: #111827; border-bottom: 1px solid #273143; }
.topbar-inner, .top-actions, .section-heading, .notification, .task-top, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { padding: 18px 0; }
.top-actions { justify-content: flex-end; }
.brand { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .12em; }
.brand span { color: #8fa9ff; }
.role, .count { color: #a9bafa; background: #252e49; border-radius: 100px; padding: 3px 9px; font-size: 12px; }
.role { text-transform: capitalize; margin-left: 6px; }
.dashboard { padding: 32px 0 64px; }
.page-heading { margin-bottom: 26px; }
.eyebrow { color: #91a8ff; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1, h2, h3, p { margin: 0; }
h1 { color: #fff; font-size: 30px; letter-spacing: -.03em; margin-bottom: 5px; }
h2 { color: #fff; font-size: 18px; margin-bottom: 8px; }
h3 { color: #f5f7ff; font-size: 16px; overflow-wrap: anywhere; }
.muted { color: #95a1b7; }
.small { font-size: 12px; }
.panel { background: #151c2a; border: 1px solid #293447; border-radius: 14px; }
.section { margin-bottom: 20px; padding: 22px; }
.tasks-section { padding: 4px 0; }
.section-heading { align-items: flex-start; margin-bottom: 16px; }
.stack { display: grid; gap: 15px; margin-top: 16px; }
.stack.compact { gap: 8px; margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }
label { display: grid; gap: 6px; color: #c9d2e3; font-size: 13px; font-weight: 600; }
input, textarea, select { width: 100%; color: #f3f5fa; background: #0e1521; border: 1px solid #344057; border-radius: 8px; padding: 10px 12px; font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid #91a8ff; outline-offset: 2px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #687fdf; border-radius: 8px; background: #586dd2; color: #fff; padding: 10px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
button:hover { background: #6a7fe1; }
.button.secondary { background: #202b3e; border-color: #3a4860; color: #e1e8f7; }
.button.secondary:hover { background: #2b3a51; }
.small-button { padding: 7px 11px; font-size: 12px; }
.button-row { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.alert.success { background: #12392e; color: #a9ebcd; }
.alert.error { background: #46202c; color: #ffbeca; }
.notification { padding: 12px 0; border-top: 1px solid #2a3548; font-size: 14px; }
.notification:first-child { border-top: 0; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.task-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.badge.pending { background: #403821; color: #f6d488; }
.badge.review { background: #25375c; color: #a7c7ff; }
.badge.approved { background: #1b4135; color: #a3e6c6; }
.task-description { font-size: 14px; color: #c4cede; white-space: normal; overflow-wrap: anywhere; }
.review-note { background: #392f20; color: #f4d8a4; padding: 10px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.task-action { margin-top: auto; }
summary { color: #a7b9ff; cursor: pointer; font-size: 13px; font-weight: 600; }
.edit-form { padding-top: 12px; }
.empty { padding: 30px; color: #95a1b7; text-align: center; }
.date-form { display: flex; align-items: end; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th, td { padding: 12px 10px; border-bottom: 1px solid #2a3548; white-space: nowrap; }
th { color: #a9b5ca; font-weight: 600; }
.total-row { font-weight: 700; }
.report-heading { margin: 24px 0 8px; }
.report-title { white-space: normal; overflow-wrap: anywhere; min-width: 180px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 440px); padding: 32px; }
.auth-card h1 { margin-top: 28px; font-size: 26px; }
.auth-card > p { color: #95a1b7; font-size: 14px; }
.auth-link { margin-top: 20px; }
@media (max-width: 650px) {
    .container { width: calc(100% - 28px); }
    .topbar-inner, .section-heading { flex-wrap: wrap; }
    .top-actions { flex-wrap: wrap; gap: 8px; }
    .user-label { font-size: 13px; }
    .form-grid { grid-template-columns: 1fr; }
    .section { padding: 16px; }
    .tasks-section { padding: 4px 0; }
    .date-form { width: 100%; }
}
