:root {
    --bg: #eef2f5;
    --surface: #ffffff;
    --surface-soft: #f3f6f8;
    --surface-tint: #e7f0f4;
    --line-surface: #f8fafb;
    --border: #ccd6dd;
    --text: #15212b;
    --muted: #526575;
    --accent: #174a5c;
    --accent-soft: #d9e8ee;
    --ok: #1f7a52;
    --ok-soft: #dff3e8;
    --warning: #b06a10;
    --warning-soft: #f9ecd7;
    --critical: #b63a32;
    --critical-soft: #f9dfdc;
    --focus: #0d5e7a;
    --shadow: 0 12px 34px rgba(21, 33, 43, 0.1);
    --shadow-soft: 0 8px 22px rgba(21, 33, 43, 0.06);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(180deg, #f7fafb 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(13, 94, 122, 0.26);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--focus);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    padding: 28px 22px;
    border-right: 1px solid var(--border);
    background: #edf3f6;
}

.topbar,
.panel,
.kpi-card,
.hero-panel,
.login-panel,
.site-card {
    background: var(--surface);
    border: 1px solid rgba(204, 214, 221, 0.95);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

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

.nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #405566;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease;
}

.nav-link.is-active,
.nav-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.app-main {
    padding: 20px;
}

.topbar {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav {
    display: none !important;
    position: relative;
}

.mobile-nav-toggle {
    list-style: none;
}

.mobile-nav-toggle::-webkit-details-marker {
    display: none;
}

.mobile-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    width: min(280px, calc(100vw - 32px));
    padding: 12px;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(204, 214, 221, 0.98);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.mobile-session-form {
    display: grid;
    margin-top: 6px;
}

.topbar h1,
.page-intro h1,
.hero-panel h1 {
    margin: 0;
    font-size: 1.8rem;
}

.page-content {
    display: grid;
    gap: 20px;
}

.notice-banner {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(176, 106, 16, 0.22);
    border-radius: var(--radius-md);
    background: var(--warning-soft);
    color: #72460b;
    font-weight: 600;
}

.hero-panel {
    border-radius: var(--radius-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 20px;
}

.hero-panel p,
.page-intro p,
.site-summary,
.row-meta,
.setting-row .row-meta {
    color: var(--muted);
    line-height: 1.5;
}

.hero-metrics,
.kpi-grid,
.site-grid {
    display: grid;
    gap: 16px;
}

.hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metric-card,
.kpi-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--surface-tint);
    border: 1px solid rgba(204, 214, 221, 0.82);
    box-shadow: var(--shadow-soft);
}

.metric-card strong,
.kpi-card strong {
    display: block;
    font-size: 1.7rem;
    margin-top: 6px;
}

.metric-label,
.kpi-label {
    color: #405566;
    font-size: 0.92rem;
    font-weight: 700;
}

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

.kpi-card {
    border-radius: var(--radius-md);
}

.security-kpi-grid {
    gap: 14px;
    align-items: stretch;
}

.security-kpi-grid .kpi-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 8px;
    min-height: 138px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
    border-color: rgba(190, 203, 212, 0.92);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.security-kpi-grid .kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: rgba(23, 74, 92, 0.18);
}

.security-kpi-grid .kpi-card strong {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1;
}

.security-kpi-grid .kpi-label {
    color: #344b5b;
}

.security-kpi-grid .kpi-card p {
    margin: 2px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 20px;
}

.stack {
    display: grid;
    gap: 20px;
}

.panel {
    border-radius: var(--radius-lg);
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-header h2,
.site-card h3 {
    margin: 0;
    color: #101b24;
}

.page-intro h1,
.hero-panel h1 {
    color: #101b24;
}

.site-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.panel > .site-grid,
.panel-header + .site-grid {
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: -8px;
}

.empty-state,
.detail-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--line-surface);
    border: 1px solid rgba(204, 214, 221, 0.74);
}

.empty-state h3,
.detail-card strong {
    margin: 0 0 8px;
}

.empty-state p,
.detail-card p,
.panel-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.detail-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-card {
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    border-color: rgba(190, 203, 212, 0.98);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.site-card:hover {
    border-color: rgba(23, 74, 92, 0.28);
    box-shadow: 0 12px 28px rgba(21, 33, 43, 0.1);
    transform: translateY(-1px);
}

.site-card h3 {
    font-size: 1.14rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.site-card-head,
.site-card-footer,
.table-row,
.alert-row,
.action-row,
.session-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-card-head {
    align-items: flex-start;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(204, 214, 221, 0.76);
    background:
        linear-gradient(90deg, rgba(23, 74, 92, 0.12) 0, rgba(23, 74, 92, 0.12) 4px, transparent 4px),
        var(--surface-tint);
}

.site-card-head .badge {
    flex: 0 0 auto;
    margin-top: 2px;
}

.site-card-head p,
.site-card-footer,
.table-side,
.session-user {
    color: var(--muted);
}

.site-card-head p {
    margin: 6px 0 0;
    font-weight: 600;
}

.site-summary {
    min-height: 3em;
    margin: 0;
    padding: 14px 18px 0;
}

.site-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 14px 18px 16px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(204, 214, 221, 0.68);
}

.site-stats dt {
    color: #526575;
    font-size: 0.88rem;
}

.site-stats dd {
    margin: 6px 0 0;
    font-weight: 700;
    color: #101b24;
}

.site-card-footer {
    padding: 0 18px 18px;
}

.badge,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-ok {
    color: var(--ok);
    background: var(--ok-soft);
}

.badge-warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.badge-critical {
    color: var(--critical);
    background: var(--critical-soft);
}

.status-chip {
    background: #e6edf1;
    color: var(--muted);
}

.alert-list,
.action-list,
.table-list,
.setting-list {
    display: grid;
    gap: 12px;
}

.alert-row,
.action-row,
.table-row,
.setting-row {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--line-surface);
    border: 1px solid rgba(204, 214, 221, 0.72);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.alert-row:hover,
.action-row:hover,
.table-row:hover {
    background: #ffffff;
    border-color: rgba(23, 74, 92, 0.2);
}

.table-main,
.setting-row {
    display: grid;
    gap: 4px;
}

.row-title,
.setting-value {
    font-weight: 700;
    color: #101b24;
}

.check-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.security-site-list,
.settings-site-list {
    display: grid;
    gap: 16px;
}

.security-site-card,
.settings-site-form {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    border: 1px solid rgba(204, 214, 221, 0.82);
}

.security-check-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.security-check-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(204, 214, 221, 0.58);
}

.security-focus-panel {
    padding-bottom: 18px;
}

.security-focus-panel,
.security-sites-panel {
    border-color: rgba(190, 203, 212, 0.98);
}

.security-sites-panel {
    margin-top: 4px;
    padding-top: 22px;
    background:
        linear-gradient(180deg, rgba(231, 240, 244, 0.46) 0%, rgba(255, 255, 255, 0) 120px),
        var(--surface);
}

.security-sites-panel .panel-header {
    margin-bottom: 16px;
    padding-top: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(204, 214, 221, 0.66);
}

.security-sites-panel .panel-header h2 {
    font-size: 1.12rem;
}

.security-compact-list {
    display: grid;
    gap: 10px;
}

.security-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(248, 250, 251, 0.92);
    border: 1px solid rgba(204, 214, 221, 0.72);
    transition: background 0.16s ease, border-color 0.16s ease;
}

.security-compact-row:hover {
    background: #ffffff;
    border-color: rgba(23, 74, 92, 0.2);
}

.security-compact-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.security-compact-title,
.security-compact-side,
.security-compact-checks {
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-compact-title {
    justify-content: space-between;
}

.security-compact-checks {
    flex-wrap: wrap;
}

.security-compact-side {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.settings-site-head,
.settings-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

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

.settings-field-wide {
    grid-column: 1 / -1;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.toggle-field input {
    width: 18px;
    height: 18px;
}

.table-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    transition: color 0.16s ease;
}

.text-link:hover {
    color: var(--focus);
}

.dashboard-cockpit {
    --dash-bg: #dfe6eb;
    --dash-surface: rgba(255, 255, 255, 0.86);
    --dash-surface-strong: rgba(255, 255, 255, 0.96);
    --dash-line: rgba(120, 137, 150, 0.2);
    --dash-line-soft: rgba(120, 137, 150, 0.14);
    --dash-text: #23313d;
    --dash-muted: #748391;
    --dash-cyan: #2db7e5;
    --dash-magenta: #7d63ff;
    --dash-green: #23b99a;
    --dash-amber: #eba33a;
    --dash-red: #d85d6b;
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(78deg, rgba(45, 183, 229, 0.1) 0%, rgba(125, 99, 255, 0.08) 100%),
        linear-gradient(135deg, #eef3f7 0%, #dce5eb 58%, #cfd9df 100%);
    color: var(--dash-text);
    box-shadow:
        0 24px 70px rgba(54, 70, 84, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dashboard-cockpit .eyebrow,
.dashboard-cockpit .metric-label,
.dashboard-cockpit .kpi-label {
    color: var(--dash-muted);
}

.dashboard-cockpit .text-link {
    color: #267ca4;
}

.dashboard-cockpit .text-link:hover {
    color: #155f84;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.52fr) minmax(280px, 0.85fr);
    align-items: stretch;
    gap: 18px;
    padding: 20px;
    border-color: var(--dash-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 253, 0.92) 100%);
    box-shadow:
        0 16px 36px rgba(61, 76, 89, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(91, 117, 138, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 117, 138, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

.dashboard-hero > * {
    position: relative;
}

.dashboard-hero-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.dashboard-hero h1 {
    color: var(--dash-text);
    font-size: 1.85rem;
    line-height: 1.08;
}

.dashboard-hero p,
.dashboard-orbit p,
.dashboard-cockpit .row-meta,
.dashboard-cockpit .site-summary {
    color: var(--dash-muted);
}

.dashboard-signal {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    width: min(100%, 520px);
    height: 86px;
    margin-top: 10px;
    padding: 15px 16px 11px;
    border: 1px solid rgba(218, 226, 232, 0.92);
    border-radius: 16px;
    background:
        linear-gradient(rgba(112, 135, 153, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 135, 153, 0.05) 1px, transparent 1px),
        rgba(251, 253, 255, 0.74);
    background-size: 28px 28px;
}

.dashboard-signal span {
    display: block;
    min-width: 0;
    border-radius: 999px 999px 2px 2px;
    background: linear-gradient(180deg, #7d63ff 0%, #31c4e8 100%);
    box-shadow: 0 6px 12px rgba(45, 134, 197, 0.15);
}

.dashboard-signal span:nth-child(1) { height: 28%; }
.dashboard-signal span:nth-child(2) { height: 42%; }
.dashboard-signal span:nth-child(3) { height: 54%; }
.dashboard-signal span:nth-child(4) { height: 68%; }
.dashboard-signal span:nth-child(5) { height: 48%; }
.dashboard-signal span:nth-child(6) { height: 38%; }
.dashboard-signal span:nth-child(7) { height: 72%; }
.dashboard-signal span:nth-child(8) { height: 84%; }
.dashboard-signal span:nth-child(9) { height: 58%; }
.dashboard-signal span:nth-child(10) { height: 36%; }
.dashboard-signal span:nth-child(11) { height: 62%; }
.dashboard-signal span:nth-child(12) { height: 50%; }

.dashboard-orbit {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(218, 226, 232, 0.92);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-orbit-ring {
    width: 116px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            from 220deg,
            var(--dash-cyan) 0 var(--stable-angle, 0deg),
            rgba(218, 226, 232, 0.92) var(--stable-angle, 0deg) 360deg
        );
    box-shadow:
        0 10px 22px rgba(45, 134, 197, 0.18),
        inset 0 0 18px rgba(255, 255, 255, 0.42);
}

.dashboard-orbit-ring::before {
    content: "";
    grid-area: 1 / 1;
    width: 78px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 14px rgba(84, 104, 120, 0.08);
}

.dashboard-orbit-ring span,
.dashboard-orbit-ring small {
    position: relative;
    grid-area: 1 / 1;
}

.dashboard-orbit-ring span {
    align-self: center;
    margin-top: -10px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dash-text);
}

.dashboard-orbit-ring small {
    align-self: center;
    margin-top: 30px;
    color: var(--dash-muted);
    font-weight: 700;
}

.dashboard-orbit-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.dashboard-orbit-copy strong {
    color: var(--dash-text);
    font-size: 1.45rem;
}

.dashboard-orbit-copy p {
    margin: 0;
}

.dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-metrics .metric-card,
.dashboard-kpi-card,
.dashboard-panel,
.dashboard-cockpit .site-card {
    border-color: rgba(218, 226, 232, 0.92);
    background: var(--dash-surface);
    box-shadow:
        0 14px 30px rgba(61, 76, 89, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-metrics .metric-card {
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.dashboard-metrics .metric-card strong {
    color: var(--dash-text);
    font-size: 1.45rem;
}

.metric-pulse {
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(45, 183, 229, 0.16) 0%, var(--dash-cyan) 52%, rgba(125, 99, 255, 0.64) 100%);
    box-shadow: 0 6px 14px rgba(45, 134, 197, 0.14);
}

.dashboard-kpi-grid {
    gap: 14px;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 18px 20px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--dash-cyan);
    opacity: 0.8;
}

.dashboard-kpi-card strong {
    color: var(--dash-text);
    font-size: 2rem;
}

.dashboard-kpi-card p {
    margin: 8px 0 0;
    color: var(--dash-muted);
}

.dashboard-kpi-meter {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(116, 205, 255, 0.12);
}

.dashboard-kpi-meter span {
    display: block;
    width: var(--meter-value, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--dash-cyan);
    box-shadow: 0 0 18px currentColor;
}

.dashboard-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 183, 229, 0.34);
    box-shadow: 0 18px 38px rgba(61, 76, 89, 0.18);
}

.dashboard-kpi-ok::before {
    background: var(--dash-green);
}

.dashboard-kpi-ok .dashboard-kpi-meter span {
    background: var(--dash-green);
}

.dashboard-kpi-warning::before {
    background: var(--dash-amber);
}

.dashboard-kpi-warning .dashboard-kpi-meter span {
    background: var(--dash-amber);
}

.dashboard-kpi-critical::before {
    background: var(--dash-red);
}

.dashboard-kpi-critical .dashboard-kpi-meter span {
    background: var(--dash-red);
}

.dashboard-content-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
}

.dashboard-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 252, 0.9) 100%);
}

.dashboard-panel .panel-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dash-line-soft);
}

.dashboard-panel .panel-header h2,
.dashboard-cockpit .site-card h3,
.dashboard-cockpit .row-title {
    color: var(--dash-text);
}

.dashboard-cockpit .site-grid {
    gap: 14px;
}

.dashboard-cockpit .site-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 252, 0.92) 100%);
}

.dashboard-cockpit .site-card:hover {
    border-color: rgba(45, 183, 229, 0.32);
    box-shadow: 0 18px 34px rgba(61, 76, 89, 0.16);
}

.dashboard-cockpit .site-card-head {
    border-bottom-color: var(--dash-line-soft);
    background:
        linear-gradient(90deg, rgba(45, 183, 229, 0.24) 0, rgba(45, 183, 229, 0.24) 4px, transparent 4px),
        rgba(250, 253, 255, 0.92);
}

.dashboard-cockpit .site-card-head p,
.dashboard-cockpit .site-card-footer,
.dashboard-cockpit .site-stats dt {
    color: var(--dash-muted);
}

.dashboard-cockpit .site-stats {
    border-top-color: var(--dash-line-soft);
}

.dashboard-cockpit .site-stats dd {
    color: var(--dash-text);
}

.dashboard-cockpit .status-chip {
    background: rgba(45, 183, 229, 0.1);
    color: #287899;
}

.dashboard-cockpit .alert-row,
.dashboard-cockpit .action-row,
.dashboard-cockpit .empty-state {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(218, 226, 232, 0.92);
}

.dashboard-cockpit .alert-row:hover,
.dashboard-cockpit .action-row:hover {
    background: #ffffff;
    border-color: rgba(45, 183, 229, 0.28);
}

.dashboard-cockpit .badge-ok {
    color: var(--ok);
    background: var(--ok-soft);
}

.dashboard-cockpit .badge-warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.dashboard-cockpit .badge-critical {
    color: var(--critical);
    background: var(--critical-soft);
}

.dashboard-cockpit .badge-info {
    color: #287899;
    background: rgba(45, 183, 229, 0.1);
}

.button {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:hover {
    border-color: rgba(23, 74, 92, 0.24);
    background: var(--accent-soft);
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 24px;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 22%),
        radial-gradient(circle at 82% 10%, rgba(232, 239, 243, 0.9) 0%, rgba(232, 239, 243, 0) 20%),
        linear-gradient(180deg, #f9fbfc 0%, #f3f6f8 52%, #eef2f5 100%);
}

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

.login-panel {
    position: relative;
    overflow: hidden;
    padding: 30px 28px 24px;
    border-radius: 28px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.74) 0%,
        rgba(255, 255, 255, 0.56) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 22px 48px rgba(21, 33, 43, 0.09),
        0 6px 18px rgba(21, 33, 43, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 42%;
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.18) 36%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.login-panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.login-brand {
    position: relative;
    display: grid;
    gap: 6px;
}

.login-brand .eyebrow {
    margin-bottom: 0;
    color: #738290;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #13212b;
    font-weight: 700;
}

.login-brand p {
    margin: 0;
    color: #617381;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.login-panel .field {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.login-field {
    gap: 7px;
}

.field-label {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7b88;
}

.field-shell {
    display: block;
    min-height: 52px;
    padding: 0 15px;
    border-radius: 15px;
    border: 1px solid rgba(209, 219, 225, 0.92);
    background: rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 1px 2px rgba(21, 33, 43, 0.03);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.field-shell:focus-within {
    border-color: rgba(23, 74, 92, 0.24);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 0 0 4px rgba(23, 74, 92, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.login-panel .field input {
    width: 100%;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    color: #16232d;
}

.login-panel .field input::placeholder {
    color: #9aa8b2;
}

.form-error {
    border-radius: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(182, 58, 50, 0.12);
    background: rgba(182, 58, 50, 0.07);
    color: #923b35;
    font-weight: 600;
    line-height: 1.4;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border-radius: 15px;
    border: 1px solid rgba(29, 86, 108, 0.18);
    background: linear-gradient(180deg, #2f6f89 0%, #285e75 100%);
    box-shadow:
        0 10px 22px rgba(23, 74, 92, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #32748f 0%, #2a6279 100%);
    box-shadow:
        0 12px 24px rgba(23, 74, 92, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.placeholder-panel {
    max-width: 760px;
}

.placeholder-copy {
    display: grid;
    gap: 10px;
}

.placeholder-copy p {
    margin: 0;
}

.page-intro {
    padding: 8px 4px 0;
}

@media (max-width: 1080px) {
    .content-grid,
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-metrics,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .session-form,
    .table-row,
    .alert-row,
    .action-row,
    .security-compact-row,
    .security-check-row,
    .settings-site-head,
    .settings-form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-card-head,
    .site-card-footer,
    .security-compact-title,
    .security-compact-side {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        align-items: center;
        flex-direction: row;
        gap: 14px;
        padding: 16px;
        position: sticky;
        top: 12px;
        z-index: 20;
    }

    .topbar-title {
        min-width: 0;
    }

    .topbar-title .eyebrow {
        display: none;
    }

    .topbar h1 {
        font-size: 1.35rem;
    }

    .topbar-actions {
        margin-left: auto;
    }

    .topbar .session-form {
        display: none !important;
    }

    .mobile-nav {
        display: block !important;
    }

    .dashboard-cockpit {
        margin: -4px;
        padding: 12px;
        border-radius: 22px;
        gap: 14px;
    }

    .dashboard-hero,
    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-hero h1 {
        font-size: 1.55rem;
    }

    .dashboard-orbit {
        grid-template-columns: 96px minmax(0, 1fr);
        padding: 14px;
    }

    .dashboard-orbit-ring {
        width: 96px;
    }

    .dashboard-orbit-ring::before {
        width: 66px;
    }

    .dashboard-orbit-ring span {
        font-size: 1.45rem;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

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

    .app-main {
        padding: 16px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .login-body {
        padding: 18px;
    }

    .login-panel {
        padding: 24px 20px 22px;
        border-radius: 22px;
    }
}
