:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #0b0e14; color: #edf2f7; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top right, #19364a 0, #0b0e14 38rem); min-height: 100vh; }
main { width: min(1380px, calc(100% - 32px)); margin: auto; padding: 32px 0; }
[hidden] { display: none !important; }
.auth-shell { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(40px, 10vw, 140px); }
.brand > p:last-child { max-width: 34rem; color: #9ca9b8; font-size: 1.1rem; line-height: 1.7; }
.auth-card { background: #111722ee; border: 1px solid #263143; border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px #0008; display: grid; gap: 18px; }
.auth-card h2 { margin-bottom: 0; }
.auth-card label { font-size: .85rem; }
.auth-card input { margin-top: 6px; width: 100%; font-size: 1rem; }
.auth-card .checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 9px; color: #dbe6f2; }
.auth-card .checkbox-label input { width: auto; margin: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #0b0e14; border-radius: 10px; padding: 4px; }
.tabs button { border: 0; background: transparent; color: #8290a3; }.tabs button.active { background: #1d2939; color: #6ee7d8; }
.primary { background: #6ee7d8; color: #06201d; border-color: #6ee7d8; font-weight: 750; }
.danger { background: #dc3545; color: #fff; border-color: #ef5968; font-weight: 750; }
.account { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }.account span { color: #6ee7d8; font-weight: 700; margin-right: 8px; }
.dashboard-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; min-height: calc(100vh - 64px); }
.dashboard-shell:has(> aside[hidden]) { grid-template-columns: 1fr; max-width: 1100px; margin: auto; }
#admin-sidebar { position: sticky; top: 32px; align-self: start; height: calc(100vh - 64px); padding: 24px 16px; background: #0e1520ee; border: 1px solid #263143; border-radius: 18px; display: flex; flex-direction: column; gap: 36px; }
#admin-sidebar h2 { margin: 7px 6px 0; font-size: 1.15rem; }
#admin-sidebar .eyebrow { margin-left: 6px; }
#admin-sidebar nav { display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; text-align: left; color: #91a0b2; padding: 12px 14px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; }
.nav-item span { color: #6ee7d8; font-size: 1.05rem; text-align: center; }
.nav-item:hover, .nav-item.active { background: #1b2939; color: #6ee7d8; }
.workspace { min-width: 0; }
.workspace header h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
select { border: 1px solid #334155; border-radius: 8px; background: #121824; color: inherit; padding: 8px 10px; margin-left: 8px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-heading span { color: #fbbf24; }
.pending { max-width: 700px; margin-top: 32px; }
.pending p:last-child { color: #9ca9b8; }
#users td:last-child { display: flex; gap: 8px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.calendar-weekdays { color: #8391a3; text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.calendar-day { min-height: 122px; border: 1px solid #263143; border-radius: 11px; padding: 10px; background: #0d131d; overflow: hidden; }
.calendar-day > strong { display: block; margin-bottom: 8px; }
.calendar-time { color: #6ee7d8; font-weight: 750; font-variant-numeric: tabular-nums; }
.calendar-activities { display: grid; gap: 4px; margin-top: 9px; }
.calendar-activities small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d4dde8; }
.calendar-day.outside { visibility: hidden; }
.calendar-day.heat-1, .calendar-legend .heat-1 { background: #102b2e; }
.calendar-day.heat-2, .calendar-legend .heat-2 { background: #124047; }
.calendar-day.heat-3, .calendar-legend .heat-3 { background: #15575e; }
.calendar-day.heat-4, .calendar-legend .heat-4 { background: #176f73; }
.calendar-day.heat-5, .calendar-legend .heat-5 { background: #198c89; border-color: #39bdb3; }
.calendar-legend { display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #8391a3; font-size: .75rem; margin-top: 14px; }
.calendar-legend i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #263143; }
.message { min-height: 1.5em; color: #fca5a5; }
dialog { width: min(560px, calc(100% - 32px)); color: #edf2f7; background: #111722; border: 1px solid #334155; border-radius: 18px; padding: 0; box-shadow: 0 30px 100px #000b; }
dialog::backdrop { background: #05070bcc; backdrop-filter: blur(5px); } dialog form { padding: 28px; position: relative; } .dialog-close { position: absolute; right: 16px; top: 16px; font-size: 1.4rem; border: 0; background: transparent; }
output { display: block; overflow-wrap: anywhere; padding: 16px; border-radius: 10px; background: #090d14; border: 1px dashed #44546a; color: #6ee7d8; font-family: ui-monospace, monospace; margin: 18px 0; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }.warning { color: #fbbf24; font-size: .85rem; }
header, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1 { margin: 4px 0 24px; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.05em; }
h2 { margin-top: 0; }
.eyebrow { margin: 0; color: #6ee7d8; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
label { display: grid; gap: 6px; color: #9ca9b8; font-size: .8rem; }
input, button { border: 1px solid #334155; border-radius: 9px; background: #121824; color: inherit; padding: 10px 13px; }
button { cursor: pointer; } button:hover { border-color: #6ee7d8; }
.toolbar { justify-content: flex-start; background: #111722cc; padding: 12px; border: 1px solid #263143; border-radius: 14px; }
#refresh { margin-left: auto; }
.view-switch { display: inline-flex; gap: 4px; margin-bottom: 10px; padding: 4px; background: #0e1520; border: 1px solid #263143; border-radius: 11px; }
.view-switch button { border: 0; background: transparent; color: #91a0b2; }
.view-switch button.active { color: #06201d; background: #6ee7d8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.cards article, .panel { background: #111722dd; border: 1px solid #263143; border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px #0004; }
.cards span { display: block; color: #9ca9b8; margin-bottom: 12px; }
.cards strong { font-size: 1.6rem; color: #6ee7d8; }
.panel { margin-top: 16px; overflow-x: auto; }
.summary-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 16px; align-items: start; }
.summary-grid .panel { min-width: 0; }
.branch-chart-panel { display: grid; justify-items: center; }
.branch-chart-panel h2 { justify-self: start; width: 100%; }
.pie-chart-wrap { width: min(230px, 75vw); aspect-ratio: 1; position: relative; margin: 12px auto 22px; }
.pie-chart { width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px #ffffff24, 0 14px 35px #0006; display: block; }
.pie-chart-wrap::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: #111722; box-shadow: 0 0 0 1px #263143; pointer-events: none; }
.chart-tooltip { position: fixed; z-index: 2147483647; width: max-content; max-width: calc(100vw - 16px); padding: 8px 10px; border-radius: 7px; background: #05080df7; border: 1px solid #6b7f98; color: #fff; font-size: .78rem; font-weight: 700; white-space: normal; pointer-events: none; box-shadow: 0 12px 36px #000d; }
.chart-legend { width: 100%; display: grid; gap: 9px; }
.chart-legend > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .84rem; }
.chart-legend i, .team-legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart-legend strong { font-variant-numeric: tabular-nums; color: #dbe6f2; }
.muted { color: #8391a3; margin: 5px 0 0; }
.team-table-wrap { overflow-x: auto; margin-top: 18px; }
.team-table th:first-child { position: sticky; left: 0; background: #111722; z-index: 1; }
.team-table td { min-width: 116px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.team-legend { display: flex; flex-wrap: wrap; gap: 14px; color: #9ca9b8; font-size: .78rem; }
.team-legend span { display: flex; align-items: center; gap: 6px; }
.team-legend .below { background: rgba(234, 179, 8, .5); }
.team-legend .above { background: rgba(34, 197, 94, .5); }
.trash-button { border: 0; background: transparent; padding: 6px; filter: grayscale(1); }
.trash-button:hover { filter: none; background: #3b1520; }
.copy-value { max-width: 430px; text-align: left; font-family: ui-monospace, monospace; white-space: normal; }
.pay-button { color: #6ee7d8; border-color: #27786f; font-size: 1.15rem; font-weight: 800; }
.role-form { display: grid; gap: 18px; }
.role-form > label { max-width: 420px; }
.role-form fieldset { border: 1px solid #334155; border-radius: 12px; padding: 16px; }
.role-form legend { color: #9ca9b8; padding: 0 7px; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px 18px; }
.permission-grid label { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 9px; color: #dbe6f2; }
.permission-grid input { width: auto; margin: 0; }
.role-list { display: grid; gap: 10px; }
.role-list article { padding: 14px; border: 1px solid #263143; border-radius: 11px; background: #0d131d; }
.role-list article strong, .role-list article small { display: block; }
.role-list article small { color: #6ee7d8; margin-top: 4px; }
.role-list article p { color: #9ca9b8; margin: 9px 0 0; line-height: 1.5; }
.role-permissions { margin-top: 16px; }
.role-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.rate-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.rate-form label { min-width: 180px; }
.rate-form input { width: 100%; }
.excluded-row td { color: #778496; }
.excluded-row td:not(:first-child) { text-decoration: line-through; }
.excluded-row td:first-child { position: relative; padding-top: 29px; }
.exclusion-note { position: absolute; top: 7px; left: 8px; color: #fbbf24; text-decoration: none; font-size: .68rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #263143; white-space: nowrap; }
th { color: #9ca9b8; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.empty { color: #64748b; text-align: center; padding: 32px; }
@media (max-width: 950px) { .summary-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .cards, .auth-shell, .dashboard-shell, .permission-grid { grid-template-columns: 1fr; } .auth-shell { padding: 24px 0; } main { padding-top: 16px; } #admin-sidebar { position: static; height: auto; } #admin-sidebar nav { grid-template-columns: repeat(2, 1fr); } .calendar-weekdays { display: none; } .calendar-grid { grid-template-columns: 1fr; } .calendar-day.outside { display: none; } .calendar-day { min-height: 88px; } }
