:root {
    --bg: #f6f7fb;
    --bg-elevated: #ffffff;
    --bg-soft: #f1f4fa;
    --line: #dde4f0;
    --line-strong: #c9d4e8;
    --text: #14233d;
    --muted: #61708a;
    --brand: #1367ff;
    --brand-soft: #e8f0ff;
    --brand-strong: #0f52cc;
    --ok: #13795b;
    --ok-soft: #e6f7f1;
    --danger: #b42336;
    --danger-soft: #fce8eb;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-1: 0 1px 2px rgba(14, 28, 52, 0.06);
    --shadow-2: 0 14px 38px rgba(14, 28, 52, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Avenir Next", "IBM Plex Sans", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at 10% -10%, #edf4ff 0, transparent 42%),
        radial-gradient(circle at 95% 0%, #eef8ff 0, transparent 38%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(13, 38, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 38, 76, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
}

body.modal-open {
    overflow: hidden;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-shell {
    width: min(1080px, 100%);
}

.login-card {
    padding: 32px;
    border-radius: 26px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
}

.login-copy {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.login-panel {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.login-panel h2,
.login-panel p {
    margin: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: 272px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.78);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.brand-mark {
    width: 10px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), #5da2ff);
}

.brand h1,
.hero h2,
.panel h3 {
    margin: 0;
    letter-spacing: -0.025em;
}

.brand h1 {
    font-size: 1.02rem;
}

.eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.73rem;
    color: #4f6fa6;
    font-weight: 700;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
    transition: 150ms ease;
}

.nav a:hover {
    color: var(--text);
    background: var(--bg-soft);
    border-color: var(--line);
}

.nav a.active {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: #c8dafd;
}

.status-card,
.panel,
.metric-card,
.shortcut-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}

.status-card {
    align-self: end;
    padding: 14px;
    border-radius: var(--radius-lg);
}

.status-label,
.metric-card p,
.metric-card span,
.panel label span,
.status-meta {
    margin: 0;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 10px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.86rem;
    font-weight: 700;
}

.status-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.online {
    color: var(--ok);
    background: var(--ok-soft);
}

.status-pill.offline {
    color: var(--danger);
    background: var(--danger-soft);
}

.logout-link,
.pin-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.logout-link {
    display: inline-block;
    margin-top: 10px;
}

.content {
    padding: 22px;
}

.global-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(175deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-1);
    position: sticky;
    top: 12px;
    z-index: 5;
}

.toolbar-main,
.toolbar-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.toolbar-group,
.toolbar-status,
.toolbar-timers {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-form {
    margin: 0;
}

.toolbar-title h2 {
    margin: 0;
    font-size: 1.26rem;
}

.toolbar-submeta {
    margin: 6px 0 0;
    color: var(--muted);
}

.toolbar-select {
    min-width: 150px;
    height: 42px;
}

.timer-chip {
    min-width: 145px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f8fbff;
}

.timer-chip span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.timer-chip strong {
    font-size: 1rem;
}

.button-icon {
    min-width: 16px;
    display: inline-grid;
    place-items: center;
}

.toolbar-pill,
.toolbar-meta {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.toolbar-pill.online {
    color: var(--ok);
    border-color: #bbe8d9;
    background: var(--ok-soft);
}

.toolbar-pill.offline {
    color: var(--danger);
    border-color: #f3c2ca;
    background: var(--danger-soft);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    padding: 26px;
    border-radius: 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}

.hero-copy {
    max-width: 760px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    top: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 103, 255, 0.14), transparent 65%);
}

.hero-actions,
.hero-timers,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.stats-grid,
.panel-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

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

.compact-grid {
    margin-top: 12px;
}

.panel-grid {
    grid-template-columns: 1.35fr 1fr;
}

.runtime-row {
    grid-template-columns: 1fr 1fr;
}

.single-panel {
    grid-template-columns: 1fr;
}

.metric-card {
    padding: 18px;
    border-radius: 16px;
}

.metric-card strong {
    display: block;
    margin: 8px 0 5px;
    font-size: 1.66rem;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.shortcut-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 18px;
    border-radius: 16px;
    transition: 140ms ease;
}

.shortcut-card:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}

.shortcut-card h3,
.shortcut-card span {
    margin: 0;
}

.shortcut-card span {
    margin-top: 8px;
    display: block;
    color: var(--muted);
}

.shortcut-static {
    pointer-events: none;
}

.panel {
    padding: 18px;
    border-radius: 16px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.counter-badge {
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--brand-strong);
    border: 1px solid #c8dafd;
    background: var(--brand-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.config-section,
.search-item,
.report-card,
.report-block,
.report-table-wrap,
.report-kpi {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: 14px;
}

.config-section {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.config-section h4,
.section-heading p,
.section-copy,
.section-note,
.search-item-title p {
    margin: 0;
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.section-note {
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px dashed #c8d3e6;
    border-radius: 12px;
    background: #f9fbff;
}

.command-preview {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.command-preview code {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f2f6fd;
    color: #1e2e4d;
    border: 1px solid var(--line);
}

.search-form,
.search-list,
.activity-list,
.candidate-list,
.stacked-bars,
.bar-row {
    display: grid;
    gap: 12px;
}

.search-item {
    padding: 14px;
}

.search-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.search-item-title {
    display: grid;
    gap: 4px;
    flex: 1;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}

label {
    display: grid;
    gap: 7px;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    padding: 0 12px;
    outline: none;
    transition: 120ms ease;
}

input:focus,
select:focus {
    border-color: #94b8ff;
    box-shadow: 0 0 0 4px rgba(19, 103, 255, 0.12);
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.switch input {
    width: auto;
    height: auto;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button {
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    padding: 10px 14px;
    transition: 120ms ease;
    white-space: nowrap;
}

.primary-button {
    color: white;
    background: var(--brand);
    border-color: #0f57db;
}

.primary-button:hover {
    background: #0f59de;
}

.ghost-button {
    color: #26344f;
    background: #fff;
    border-color: var(--line-strong);
}

.ghost-button:hover {
    background: #f7faff;
}

.danger-button {
    color: white;
    background: #c72a40;
    border-color: #a91f34;
}

.danger-button:hover {
    background: #b8263b;
}

.text-button {
    text-decoration: none;
}

.activity-item,
.candidate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.activity-item p,
.candidate-price,
.candidate-card {
    margin: 0;
    color: var(--muted);
    text-decoration: none;
}

.activity-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
}

.ok {
    color: var(--ok);
    font-weight: 700;
}

.ko {
    color: var(--danger);
    font-weight: 700;
}

.terminal {
    margin: 0;
    min-height: 320px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #cdd8eb;
    background: #0f1726;
    color: #d8e4ff;
    overflow: auto;
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.55;
}

.report-filter {
    margin-bottom: 14px;
}

.report-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

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

.report-kpi {
    padding: 12px;
}

.report-kpi span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.report-kpi strong {
    font-size: 1.25rem;
}

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

.large-report-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.report-card {
    padding: 14px;
}

.report-card p,
.report-card strong,
.report-card span {
    margin: 0;
}

.report-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 1.55rem;
}

.report-block {
    padding: 16px;
}

.report-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.report-block-head h3,
.report-block-head span {
    margin: 0;
}

.report-block-head span {
    color: var(--muted);
}

.bar-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
}

.bar-track {
    height: 12px;
    border-radius: 999px;
    background: #dde6f5;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f92ff, #89b8ff);
}

.bar-fill.is-good {
    background: linear-gradient(90deg, #18a56f, #6ac9a7);
}

.bar-fill.is-bad {
    background: linear-gradient(90deg, #d33f59, #ef8196);
}

.bar-fill.is-alt {
    background: linear-gradient(90deg, #6258ff, #9c94ff);
}

.empty-state,
.empty-report-state {
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    color: var(--muted);
    border: 1px dashed #cad5e9;
    background: #fafcff;
}

.empty-report-state h3,
.empty-report-state p {
    margin: 0;
}

.empty-report-state p {
    margin-top: 6px;
}

.report-table-wrap {
    margin-top: 14px;
    padding: 14px;
}

.report-table,
.config-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td,
.config-table th,
.config-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.report-table th,
.config-table th {
    color: var(--muted);
    font-size: 0.82rem;
    background: #f7faff;
}

.table-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.config-table {
    min-width: 1280px;
    background: white;
}

.config-table td input,
.config-table td select {
    min-width: 120px;
}

.report-select {
    max-width: 320px;
}

.flash {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.flash-success {
    color: #0f6d52;
    background: #ebf9f3;
    border-color: #c7ebdc;
}

.flash-error {
    color: #9c1d33;
    background: #ffeff2;
    border-color: #f8ccd5;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 27, 49, 0.46);
    z-index: 20;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(500px, 100%);
    padding: 20px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
}

.modal-copy {
    color: var(--muted);
    line-height: 1.6;
}

.modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.field-hint {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dfe9ff;
    color: #224f9a;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
    cursor: help;
}

.info-tip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 6px;
}

.info-tip__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    color: #0e3776;
    background: #dfe9ff;
    cursor: help;
}

.info-tip__panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 220px;
    padding: 10px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
    z-index: 12;
}

.info-tip__panel span {
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.45;
}

.info-tip:hover .info-tip__panel,
.info-tip:focus-within .info-tip__panel {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1180px) {
    .app-shell,
    .panel-grid,
    .runtime-row,
    .stats-grid,
    .login-grid,
    .shortcut-grid,
    .report-grid,
    .large-report-grid,
    .report-kpis,
    .report-toolbar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .content,
    .sidebar,
    .login-card {
        padding: 16px;
    }

    .field-grid,
    .form-actions,
    .search-item-head,
    .activity-item,
    .candidate-card,
    .hero-actions,
    .hero-timers,
    .inline-form,
    .toolbar-main,
    .toolbar-subline,
    .toolbar-group,
    .toolbar-status,
    .toolbar-timers {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-form,
    .toolbar-form button,
    .toolbar-select,
    .icon-button,
    .toolbar-link {
        width: 100%;
    }

    .activity-meta {
        justify-items: start;
    }
}/* 2026 SaaS refonte */
.nav a {display:flex;align-items:center;justify-content:space-between}
.content {padding: 28px}
.hero {padding: 28px;border-radius:22px}
.panel {border-radius:18px;padding:22px}
.table-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:14px}
.table-toolbar .left,.table-toolbar .right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.table-toolbar input,.table-toolbar select{height:40px;min-width:180px}
.modern-table-wrap{border:1px solid var(--line);border-radius:14px;overflow:auto;background:#fff}
.modern-table{width:100%;border-collapse:collapse;min-width:960px}
.modern-table th,.modern-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.modern-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:#f7faff;cursor:pointer;user-select:none}
.modern-table tr:hover td{background:#fbfdff}
.table-actions{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;border:1px solid var(--line);font-size:.78rem;background:#fff;color:var(--muted);font-weight:600}
.chip-ok{color:var(--ok);background:var(--ok-soft);border-color:#bbe8d9}
.chip-muted{color:#6f7d93;background:#f3f6fb;border-color:#dde4ef}
.table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:14px}
.pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pager small{color:var(--muted)}
.empty-card{padding:24px;border:1px dashed #cad5e9;border-radius:14px;background:#fafcff;color:var(--muted)}
.text-muted{color:var(--muted)}
.modal-shell{position:fixed;inset:0;display:grid;place-items:center;padding:16px;background:rgba(11,24,41,.52);z-index:30}
.modal-shell[hidden]{display:none!important}
.modal-panel{width:min(640px,100%);padding:20px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-2)}
.modal-panel h3{margin:0 0 8px}
.modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.modal-grid-full{grid-column:1 / -1}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.toast-stack{position:fixed;right:18px;bottom:18px;display:grid;gap:8px;z-index:60;max-width:320px}
.toast{padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow-2);font-size:.9rem}
.toast-success{border-color:#c7ebdc;background:#ebf9f3;color:#0f6d52}
.toast-error{border-color:#f8ccd5;background:#ffeff2;color:#9c1d33}
.toast.is-closing{opacity:0;transform:translateY(6px);transition:all .16s ease}
.is-loading{opacity:.6;pointer-events:none}
.preview-thumb{display:inline-grid;place-items:center;width:88px;height:88px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.preview-thumb img{width:100%;height:100%;object-fit:cover}
.tag-list{display:flex;gap:6px;flex-wrap:wrap}
.tag-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef3ff;border:1px solid #d9e4ff;color:#3e5d95;font-size:.77rem}
.section-headline{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.section-headline p{margin:6px 0 0;color:var(--muted)}
.sidebar .status-card{position:sticky;bottom:14px}
@media (max-width: 980px){
  .modern-table{min-width:760px}
  .modal-grid{grid-template-columns:1fr}
}
/* Coolify-like dark theme */
:root {
    --bg: #07090f;
    --bg-elevated: #0f131d;
    --bg-soft: #151b27;
    --line: #232b3a;
    --line-strong: #313b4e;
    --text: #e8edf7;
    --muted: #99a5ba;
    --brand: #eab308;
    --brand-soft: rgba(234, 179, 8, 0.16);
    --brand-strong: #facc15;
    --ok: #10b981;
    --ok-soft: rgba(16, 185, 129, 0.16);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.16);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 18px 46px rgba(0, 0, 0, 0.62);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 15% -8%, rgba(250, 204, 21, 0.08) 0, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.06) 0, transparent 34%),
        var(--bg);
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    opacity: 0.22;
}

a {
    color: #c6ddff;
}

a:hover {
    color: #f8fbff;
}

.sidebar {
    background: rgba(9, 12, 18, 0.92);
    border-right: 1px solid var(--line);
}

.eyebrow {
    color: #c3cfdf;
}

.nav a {
    color: #b5bfd0;
}

.nav a:hover {
    color: #eef3ff;
    background: #141b27;
    border-color: #273245;
}

.nav a.active {
    color: #ffdf6a;
    background: rgba(234, 179, 8, 0.16);
    border-color: rgba(250, 204, 21, 0.42);
}

.global-toolbar,
.hero {
    background: linear-gradient(170deg, #0f131d 0%, #0c1018 100%);
    border: 1px solid var(--line);
}

.status-card,
.panel,
.metric-card,
.shortcut-card,
.report-card,
.report-block,
.report-table-wrap,
.report-kpi,
.config-section,
.search-item {
    background: var(--bg-elevated);
    border-color: var(--line);
}

.status-meta,
.metric-card p,
.metric-card span,
.section-copy,
.section-note,
.empty-state,
.empty-card,
.empty-report-state,
.toolbar-submeta,
.bar-head {
    color: var(--muted);
}

.section-note,
.empty-state,
.empty-card,
.empty-report-state {
    background: #111827;
    border-color: #2b3446;
}

.timer-chip,
.toolbar-pill,
.toolbar-meta,
.command-preview code {
    background: #101723;
    border-color: #2a3447;
    color: #d8e2f3;
}

input,
select,
textarea {
    background: #0c111a;
    color: var(--text);
    border-color: #2a3447;
}

input::placeholder,
textarea::placeholder {
    color: #7f8ca3;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.16);
}

.primary-button {
    color: #1a1200;
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
    border-color: #ca9802;
}

.primary-button:hover {
    background: linear-gradient(180deg, #fcd34d 0%, #eab308 100%);
}

.ghost-button {
    color: #d6dfef;
    background: #111827;
    border-color: #2d3a4f;
}

.ghost-button:hover {
    background: #182132;
}

.danger-button {
    background: #dc2626;
    border-color: #b91c1c;
}

.report-table th,
.config-table th,
.modern-table th {
    background: #0f1723;
    color: #acb8cc;
    border-bottom-color: #2a3447;
}

.report-table td,
.config-table td,
.modern-table td {
    border-bottom-color: #212b3c;
}

.report-table,
.config-table,
.modern-table,
.modern-table-wrap,
.table-wrap,
.table-actions .ghost-button,
.table-actions .danger-button {
    background: #0e141f;
}

.activity-item,
.candidate-card {
    background: #0e141f;
    border-color: #273145;
}

.preview-thumb {
    background: #0d1320;
    border-color: #293247;
}

.tag-pill {
    background: #1b2332;
    border-color: #344259;
    color: #cfd9ea;
}

.modal-backdrop,
.modal-shell {
    background: rgba(2, 6, 13, 0.78);
}

.modal-card,
.modal-panel {
    background: #0f1522;
    border-color: #2a3447;
}

.toast {
    background: #111a28;
    border-color: #2b374a;
    color: #dfe7f6;
}

.toast-success {
    color: #73f0c1;
    border-color: #1d5d48;
    background: #0d2a22;
}

.toast-error {
    color: #ff9ba5;
    border-color: #6f222b;
    background: #2b1116;
}

.terminal {
    background: #05080f;
    border-color: #28324a;
    color: #d7e3ff;
}
