:root {
    color-scheme: dark;
    --bg: #030505;
    --bg-soft: #080c0d;
    --panel: rgba(10, 14, 16, 0.72);
    --panel-strong: rgba(14, 19, 23, 0.88);
    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #f5f8f7;
    --muted: #9ca8ad;
    --accent: #24d0a0;
    --accent-2: #38bdf8;
    --warm: #ff5b1f;
    --danger: #ff6961;
    --shadow: rgba(0, 0, 0, 0.55);
}

/* wurfOps classic panel skin */
:root {
    --bg: #070a0f;
    --panel: #10131b;
    --panel-strong: #141821;
    --panel-soft: #0b0e15;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(36, 208, 160, 0.28);
    --text: #f4f6fb;
    --muted: #9ca3b2;
    --accent: #24d0a0;
    --accent-deep: #0f8f72;
    --danger: #ff6b6b;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 66% 32%, rgba(36, 208, 160, 0.14), transparent 24rem),
        radial-gradient(circle at 80% 82%, rgba(56, 189, 248, 0.08), transparent 24rem),
        var(--bg);
}

body::before {
    display: none;
}

body::after {
    background:
        linear-gradient(90deg, rgba(7, 10, 15, 0.08), rgba(7, 10, 15, 0.78) 64%, rgba(7, 10, 15, 0.94)),
        radial-gradient(circle at 60% 36%, rgba(36, 208, 160, 0.12), transparent 28rem);
}

.sidebar {
    position: fixed;
    inset: 30px auto 30px 30px;
    z-index: 10;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 24px 0 0 24px;
    background: rgba(8, 11, 17, 0.84);
    padding: 36px 28px;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 42px;
    color: var(--text);
    font-size: 30px;
    font-weight: 900;
}

.brand span:not(.brand-mark) {
    color: var(--accent);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(36, 208, 160, 0.2);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(36, 208, 160, 0.18), transparent),
        rgba(36, 208, 160, 0.06);
    box-shadow: inset 0 0 22px rgba(36, 208, 160, 0.1);
    clip-path: none;
}

.brand-mark::after {
    display: block;
    color: var(--accent);
    content: "/";
    font-size: 24px;
    font-weight: 300;
    line-height: 40px;
    text-align: center;
    transform: skew(-16deg);
}

.nav-group {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.nav-group p {
    margin: 0 0 4px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.nav-group a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #d9dde7;
    padding: 0 14px;
    text-decoration: none;
}

.nav-group a:hover,
.nav-group a.active {
    border-color: var(--line-strong);
    background:
        linear-gradient(90deg, rgba(36, 208, 160, 0.18), rgba(36, 208, 160, 0.04)),
        rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.nav-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.legal {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.app {
    min-height: 100vh;
    margin-left: 290px;
    padding: 30px 24px 30px 0;
}

.top-actions {
    position: fixed;
    top: 50px;
    right: 48px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(20, 24, 33, 0.82);
    color: var(--muted);
    font-weight: 700;
    padding: 0 16px;
}

button,
.button {
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), #18b686);
    box-shadow: 0 12px 36px rgba(36, 208, 160, 0.16);
}

.ghost-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    box-shadow: none;
}

.top-actions button {
    min-height: 38px;
}

.workspace {
    position: relative;
    min-height: calc(100vh - 60px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0 24px 24px 0;
    background: rgba(10, 12, 18, 0.78);
    padding: 86px 52px 48px;
}

.workspace-glow {
    position: absolute;
    inset: 120px 16% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(36, 208, 160, 0.1);
    filter: blur(70px);
    pointer-events: none;
}

.page-title,
.section,
.scan-card,
.backup-list {
    position: relative;
}

.page-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-title h1 {
    margin: 0 0 10px;
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1;
}

.page-title h1 span {
    color: var(--accent);
}

.page-title p {
    margin: 0;
    font-size: 16px;
}

.status-pill {
    gap: 9px;
    color: var(--text);
}

.status-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
}

.scan-card {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin-bottom: 34px;
}

.scan-card > div,
.card,
.schedule,
.backup-row,
.notice,
.error {
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(14, 17, 25, 0.9);
    box-shadow: none;
    backdrop-filter: none;
}

.scan-card > div {
    padding: 18px 20px;
}

.scan-card strong {
    display: block;
    margin-bottom: 6px;
}

.scan-card p {
    margin: 0;
}

.section {
    border-top: 0;
    padding: 0;
    margin-top: 30px;
}

.section-heading {
    display: block;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.section-heading h2::first-letter {
    color: var(--accent);
}

.section-heading p {
    margin: 0;
}

.grid {
    gap: 14px;
}

.card {
    min-height: 128px;
    padding: 18px 20px;
}

.service-card {
    border-color: rgba(36, 208, 160, 0.18);
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.service-actions form {
    margin: 0;
}

.action-button {
    min-height: 32px;
    border-radius: 9px;
    box-shadow: none;
    font-size: 13px;
    padding: 0 11px;
    text-transform: capitalize;
}

.danger-soft {
    background: rgba(255, 107, 107, 0.13);
    color: #ff9a94;
}

.card-title {
    color: #d7dbe5;
    font-size: 15px;
    font-weight: 800;
}

.card strong {
    font-size: 30px;
}

.badge.ok {
    background: rgba(36, 208, 160, 0.16);
    color: var(--accent);
}

.meter span {
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.vault-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

.schedule {
    align-items: center;
    margin: 14px 0;
}

input,
select,
textarea {
    border-radius: 13px;
    background: rgba(7, 9, 14, 0.86);
}

textarea {
    width: 100%;
    min-height: 112px;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 13px;
    resize: vertical;
}

.settings-form {
    position: relative;
}

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

.field {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(14, 17, 25, 0.9);
    padding: 16px;
}

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

.field span {
    color: #d7dbe5;
    font-weight: 800;
}

.field small {
    color: var(--muted);
    line-height: 1.35;
}

.settings-actions {
    position: sticky;
    bottom: 18px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 12, 18, 0.82);
    backdrop-filter: blur(14px);
}

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

.danger {
    background: rgba(255, 107, 107, 0.12);
    color: #ff9a94;
    box-shadow: none;
}

.remote-host {
    display: grid;
    gap: 14px;
}

.remote-host + .remote-host {
    margin-top: 18px;
}

.remote-host-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(14, 17, 25, 0.72);
    padding: 16px 20px;
}

.remote-host-title strong {
    display: block;
    margin-bottom: 4px;
}

.remote-host-title p {
    margin: 0;
}

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

.event-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(14, 17, 25, 0.9);
    padding: 14px 16px;
}

.event-marker {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--muted);
}

.event-row.ok .event-marker {
    background: var(--accent);
    box-shadow: 0 0 18px rgba(36, 208, 160, 0.45);
}

.event-row.bad .event-marker {
    background: var(--danger);
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.35);
}

.event-row.warn .event-marker {
    background: #f2b84b;
    box-shadow: 0 0 18px rgba(242, 184, 75, 0.3);
}

.event-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.event-title strong {
    color: var(--text);
}

.event-title span,
.event-row time {
    color: var(--muted);
    font-size: 13px;
}

.event-main p {
    margin: 0;
}

.login-page {
    background:
        radial-gradient(circle at 55% 35%, rgba(36, 208, 160, 0.14), transparent 26rem),
        var(--bg);
}

.login-box {
    border-radius: 22px;
    background: rgba(10, 12, 18, 0.88);
}

.login-box h1 {
    font-size: 42px;
    font-weight: 800;
    text-transform: none;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: auto;
        border-radius: 0;
        margin: 0;
    }

    .app {
        margin-left: 0;
        padding: 0;
    }

    .top-actions {
        position: static;
        justify-content: flex-end;
        padding: 16px;
    }

    .workspace {
        min-height: auto;
        border-radius: 0;
        padding: 28px 16px 34px;
    }

    .page-title,
    .scan-card {
        grid-template-columns: 1fr;
    }

    .page-title {
        display: grid;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 75% 14%, rgba(56, 189, 248, 0.14), transparent 24rem),
        radial-gradient(circle at 20% 88%, rgba(36, 208, 160, 0.08), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("../img/wurfops-hero-iridescent.png") top left / min(72rem, 94vw) auto no-repeat;
    content: "";
    opacity: 0.86;
    pointer-events: none;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 5, 5, 0.2), rgba(3, 5, 5, 0.78) 62%, rgba(3, 5, 5, 0.96)),
        linear-gradient(180deg, rgba(3, 5, 5, 0.08), rgba(3, 5, 5, 0.8) 56%, var(--bg) 82%);
    content: "";
    pointer-events: none;
}

button,
input,
select {
    font: inherit;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #18b686);
    color: #04100d;
    cursor: pointer;
    font-weight: 800;
    padding: 0 18px;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
}

.button.ghost,
.nav-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

input,
select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    padding: 0 13px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.8);
    outline-offset: 3px;
}

h1,
h2,
p {
    margin-top: 0;
}

p,
.muted {
    color: var(--muted);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px clamp(24px, 4vw, 48px);
    pointer-events: none;
}

.site-header > * {
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.brand span:not(.brand-mark) {
    color: var(--accent);
}

.brand-mark {
    display: inline-block;
    width: 19px;
    height: 19px;
    background: linear-gradient(135deg, #fff 0 36%, transparent 37% 50%, #fff 51% 100%);
    clip-path: polygon(18% 0, 86% 0, 58% 42%, 100% 42%, 28% 100%, 44% 56%, 0 56%);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    text-transform: uppercase;
}

.site-nav a,
.nav-button {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.nav-button {
    min-height: 34px;
    padding: 0 13px;
}

.app {
    min-height: 100vh;
}

.hero {
    position: relative;
    display: grid;
    min-height: 560px;
    align-items: end;
    padding: 130px clamp(24px, 4vw, 48px) 48px;
}

.hero-copy {
    width: min(660px, 100%);
}

.eyebrow {
    margin-bottom: 10px;
    color: rgba(245, 248, 247, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 8ch;
    margin-bottom: 22px;
    font-size: clamp(78px, 12vw, 166px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 0.82;
    text-transform: uppercase;
}

.hero-lede {
    max-width: 440px;
    margin-bottom: 24px;
    color: rgba(245, 248, 247, 0.78);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.28;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-status {
    position: absolute;
    right: clamp(24px, 4vw, 48px);
    bottom: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 300px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 8, 9, 0.5);
    padding: 16px 18px;
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 90px var(--shadow);
}

.hero-status strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.hero-status span:last-child {
    color: var(--muted);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 24px rgba(36, 208, 160, 0.9);
}

.content-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 56px;
}

.topbar,
.section {
    border-top: 1px solid var(--line-soft);
}

.topbar {
    padding: 24px 0 34px;
}

.topbar h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 46px);
    font-weight: 400;
}

.section {
    padding: 34px 0 14px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 58px);
    font-weight: 400;
    line-height: 0.95;
}

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

.card,
.backup-row,
.schedule,
.notice,
.error {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.card {
    min-height: 128px;
    padding: 18px;
}

.service-card {
    min-height: 116px;
}

.card-title {
    margin-bottom: 14px;
    color: rgba(245, 248, 247, 0.58);
    font-size: 13px;
    font-weight: 700;
}

.card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 34px;
    line-height: 1;
}

.card p {
    margin-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-weight: 800;
}

.badge.ok {
    background: rgba(36, 208, 160, 0.15);
    color: var(--accent);
}

.badge.bad,
.error {
    background: rgba(255, 105, 97, 0.14);
    color: var(--danger);
}

.notice {
    margin-bottom: 12px;
    background: rgba(36, 208, 160, 0.12);
    color: var(--accent);
    padding: 12px 14px;
}

.error {
    margin-bottom: 12px;
    padding: 12px 14px;
}

.metrics {
    margin-top: 14px;
}

.meter {
    overflow: hidden;
    height: 6px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.meter span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--warm));
}

.vault-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.action-card form {
    margin-top: 18px;
}

.schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
}

.schedule label {
    align-items: center;
    display: flex;
    gap: 10px;
    min-height: 42px;
    color: var(--text);
    font-weight: 700;
}

.schedule input[type="checkbox"] {
    min-height: 16px;
    width: 16px;
    accent-color: var(--accent);
}

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

.backup-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
}

.backup-row p {
    margin: 6px 0 0;
}

.backup-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vault-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.vault-buttons form,
.backup-actions form {
    margin: 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
    text-decoration: none;
}

.danger {
    background: linear-gradient(135deg, var(--danger), #ff946d);
    color: #190706;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-box {
    display: grid;
    gap: 18px;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 8, 9, 0.68);
    padding: 28px;
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(22px);
}

.login-box h1 {
    margin-bottom: 0;
    font-size: 54px;
    font-weight: 300;
    line-height: 0.95;
    text-transform: uppercase;
}

.login-box label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 980px) {
    body::before {
        background-size: 58rem auto;
        opacity: 0.68;
    }

    .site-header {
        align-items: center;
        padding: 22px;
    }

    .site-nav {
        gap: 13px;
    }

    .hero {
        min-height: 610px;
        padding: 118px 22px 38px;
    }

    .hero-status {
        position: static;
        margin-top: 28px;
        width: fit-content;
    }

    .content-shell {
        width: calc(100% - 32px);
    }

    .grid,
    .vault-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header {
        position: static;
        align-items: flex-start;
        background: rgba(3, 5, 5, 0.82);
    }

    .site-nav {
        align-items: flex-end;
        flex-direction: column;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .hero h1 {
        font-size: clamp(60px, 22vw, 92px);
    }

    .schedule,
    .backup-row {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule button,
    .schedule input,
    .schedule select,
    .backup-row button {
        width: 100%;
    }
}

/* wurfOps classic panel skin */
:root {
    --bg: #070a0f;
    --panel: #10131b;
    --panel-strong: #141821;
    --panel-soft: #0b0e15;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(36, 208, 160, 0.28);
    --text: #f4f6fb;
    --muted: #9ca3b2;
    --accent: #24d0a0;
    --accent-deep: #0f8f72;
    --danger: #ff6b6b;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 66% 32%, rgba(36, 208, 160, 0.14), transparent 24rem),
        radial-gradient(circle at 80% 82%, rgba(56, 189, 248, 0.08), transparent 24rem),
        var(--bg);
}

body::before {
    display: none;
}

body::after {
    background:
        linear-gradient(90deg, rgba(7, 10, 15, 0.08), rgba(7, 10, 15, 0.78) 64%, rgba(7, 10, 15, 0.94)),
        radial-gradient(circle at 60% 36%, rgba(36, 208, 160, 0.12), transparent 28rem);
}

.sidebar {
    position: fixed;
    inset: 30px auto 30px 30px;
    z-index: 10;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 24px 0 0 24px;
    background: rgba(8, 11, 17, 0.84);
    padding: 36px 28px;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 42px;
    color: var(--text);
    font-size: 30px;
    font-weight: 900;
}

.brand span:not(.brand-mark) {
    color: var(--accent);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(36, 208, 160, 0.2);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(36, 208, 160, 0.18), transparent),
        rgba(36, 208, 160, 0.06);
    box-shadow: inset 0 0 22px rgba(36, 208, 160, 0.1);
    clip-path: none;
}

.brand-mark::after {
    display: block;
    color: var(--accent);
    content: "/";
    font-size: 24px;
    font-weight: 300;
    line-height: 40px;
    text-align: center;
    transform: skew(-16deg);
}

.nav-group {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.nav-group p {
    margin: 0 0 4px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.nav-group a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #d9dde7;
    padding: 0 14px;
    text-decoration: none;
}

.nav-group a:hover,
.nav-group a.active {
    border-color: var(--line-strong);
    background:
        linear-gradient(90deg, rgba(36, 208, 160, 0.18), rgba(36, 208, 160, 0.04)),
        rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.nav-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.legal {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.app {
    min-height: 100vh;
    margin-left: 290px;
    padding: 30px 24px 30px 0;
}

.top-actions {
    position: fixed;
    top: 50px;
    right: 48px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(20, 24, 33, 0.82);
    color: var(--muted);
    font-weight: 700;
    padding: 0 16px;
}

button,
.button {
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), #18b686);
    box-shadow: 0 12px 36px rgba(36, 208, 160, 0.16);
}

.top-actions button {
    min-height: 38px;
}

.workspace {
    position: relative;
    min-height: calc(100vh - 60px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0 24px 24px 0;
    background: rgba(10, 12, 18, 0.78);
    padding: 86px 52px 48px;
}

.workspace-glow {
    position: absolute;
    inset: 120px 16% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(36, 208, 160, 0.1);
    filter: blur(70px);
    pointer-events: none;
}

.page-title,
.section,
.scan-card,
.backup-list {
    position: relative;
}

.page-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-title h1 {
    margin: 0 0 10px;
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1;
}

.page-title h1 span {
    color: var(--accent);
}

.page-title p {
    margin: 0;
    font-size: 16px;
}

.status-pill {
    gap: 9px;
    color: var(--text);
}

.status-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
}

.scan-card {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin-bottom: 34px;
}

.scan-card > div,
.card,
.schedule,
.backup-row,
.notice,
.error {
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(14, 17, 25, 0.9);
    box-shadow: none;
    backdrop-filter: none;
}

.scan-card > div {
    padding: 18px 20px;
}

.scan-card strong {
    display: block;
    margin-bottom: 6px;
}

.scan-card p {
    margin: 0;
}

.section {
    border-top: 0;
    padding: 0;
    margin-top: 30px;
}

.section-heading {
    display: block;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.section-heading h2::first-letter {
    color: var(--accent);
}

.section-heading p {
    margin: 0;
}

.grid {
    gap: 14px;
}

.card {
    min-height: 128px;
    padding: 18px 20px;
}

.service-card {
    border-color: rgba(36, 208, 160, 0.18);
}

.card-title {
    color: #d7dbe5;
    font-size: 15px;
    font-weight: 800;
}

.card strong {
    font-size: 30px;
}

.badge.ok {
    background: rgba(36, 208, 160, 0.16);
    color: var(--accent);
}

.meter span {
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.vault-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

.schedule {
    align-items: center;
    margin: 14px 0;
}

input,
select {
    border-radius: 13px;
    background: rgba(7, 9, 14, 0.86);
}

.danger {
    background: rgba(255, 107, 107, 0.12);
    color: #ff9a94;
    box-shadow: none;
}

.login-page {
    background:
        radial-gradient(circle at 55% 35%, rgba(36, 208, 160, 0.14), transparent 26rem),
        var(--bg);
}

.login-box {
    border-radius: 22px;
    background: rgba(10, 12, 18, 0.88);
}

.login-box h1 {
    font-size: 42px;
    font-weight: 800;
    text-transform: none;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: auto;
        border-radius: 0;
        margin: 0;
    }

    .app {
        margin-left: 0;
        padding: 0;
    }

    .top-actions {
        position: static;
        justify-content: flex-end;
        padding: 16px;
    }

    .workspace {
        min-height: auto;
        border-radius: 0;
        padding: 28px 16px 34px;
    }

    .page-title,
    .scan-card {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .event-row {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .event-row time {
        grid-column: 2;
    }
}

.sidebar .brand {
    gap: 3px;
    transform: translateX(-6px);
}

.sidebar .brand-mark {
    width: 40px;
    height: 40px;
    margin-right: 0;
}

.sidebar .brand-mark::after {
    line-height: 38px;
}

@media (max-width: 860px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        background:
            radial-gradient(circle at 70% 12%, rgba(36, 208, 160, 0.12), transparent 16rem),
            var(--bg);
    }

    .sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        border-width: 0 0 1px;
        border-radius: 0;
        background: rgba(8, 11, 17, 0.94);
        padding: 18px 16px 14px;
    }

    .sidebar .brand {
        display: flex;
        gap: 6px;
        width: max-content;
        margin: 0 0 18px;
        font-size: 28px;
        transform: none;
    }

    .sidebar .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .sidebar .brand-mark::after {
        line-height: 36px;
    }

    .nav-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 0 14px;
    }

    .nav-group.legal {
        border-top: 1px solid var(--line);
        padding-top: 14px;
    }

    .nav-group p {
        flex: 0 0 100%;
        margin: 0 0 2px;
        font-size: 11px;
    }

    .nav-group a {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
        min-height: 42px;
        border-radius: 12px;
        padding: 0 12px;
    }

    .app {
        min-height: auto;
        margin-left: 0;
        padding: 0;
    }

    .top-actions {
        position: relative;
        top: auto;
        right: auto;
        justify-content: flex-end;
        width: 100%;
        padding: 14px 16px;
    }

    .user-chip,
    .status-pill,
    .top-actions button {
        min-height: 36px;
        border-radius: 11px;
        padding: 0 13px;
    }

    .workspace {
        min-height: auto;
        width: 100%;
        overflow: visible;
        border-width: 1px 0 0;
        border-radius: 0;
        padding: 22px 16px 36px;
    }

    .workspace-glow {
        display: none;
    }

    .page-title {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .page-title h1 {
        font-size: clamp(38px, 13vw, 52px);
    }

    .page-title p {
        max-width: 34rem;
        font-size: 15px;
        line-height: 1.45;
    }

    .status-pill {
        width: max-content;
        max-width: 100%;
    }

    .scan-card,
    .grid,
    .metrics,
    .vault-layout,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .scan-card {
        max-width: none;
        margin-bottom: 26px;
    }

    .section {
        margin-top: 26px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .card,
    .scan-card > div,
    .field,
    .schedule,
    .backup-row,
    .remote-host-title,
    .event-row,
    .notice,
    .error {
        border-radius: 14px;
    }

    .card {
        min-height: auto;
        padding: 16px;
    }

    .card strong {
        font-size: 28px;
    }

    .card-title,
    .backup-row strong,
    .remote-host-title strong,
    .event-title strong,
    .muted,
    .card p,
    .remote-host-title p,
    .event-main p,
    .field small {
        overflow-wrap: anywhere;
    }

    .service-actions,
    .vault-buttons,
    .backup-actions,
    .secondary-actions,
    .settings-actions {
        align-items: stretch;
        justify-content: stretch;
    }

    .service-actions form,
    .vault-buttons form,
    .backup-actions form,
    .settings-actions button,
    .secondary-actions button {
        width: 100%;
    }

    .service-actions button,
    .vault-buttons button,
    .settings-actions button,
    .secondary-actions button,
    .download-button,
    .backup-actions button {
        width: 100%;
    }

    .vault-buttons,
    .backup-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .download-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        border-radius: 11px;
        background: rgba(36, 208, 160, 0.12);
        color: var(--accent);
        text-decoration: none;
    }

    .schedule {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .schedule label,
    .schedule input,
    .schedule select,
    .schedule button,
    .field input,
    .field select,
    .field textarea {
        width: 100%;
        min-width: 0;
    }

    .settings-actions {
        position: static;
        display: grid;
        padding: 0;
        border: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .remote-host-title {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 16px;
    }

    .remote-host-title .badge {
        width: max-content;
    }

    .event-row {
        grid-template-columns: 10px minmax(0, 1fr);
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .event-row time {
        grid-column: 2;
    }

    .event-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 16px 12px 12px;
    }

    .workspace {
        padding: 20px 12px 32px;
    }

    .top-actions {
        padding: 12px;
    }

    .nav-group a {
        flex-basis: 100%;
    }

    .sidebar .brand {
        font-size: 26px;
    }

    .page-title h1 {
        font-size: clamp(34px, 15vw, 46px);
    }

    .scan-card > div,
    .card,
    .field,
    .backup-row,
    .remote-host-title,
    .event-row {
        padding: 14px;
    }
}
