:root {
    color-scheme: dark;
    --dp-bg: #09090b;
    --dp-sidebar: #0c0c0f;
    --dp-panel: #111114;
    --dp-panel-raised: #16161a;
    --dp-muted-panel: #0e0e11;
    --dp-border: #27272a;
    --dp-border-strong: #3f3f46;
    --dp-text: #fafafa;
    --dp-muted: #a1a1aa;
    --dp-faint: #71717a;
    --dp-accent: #0ea5e9;
    --dp-accent-soft: rgb(14 165 233 / 13%);
    --dp-success: #22c55e;
    --dp-warning: #f59e0b;
    --dp-danger: #ef4444;
    --dp-radius: 12px;
    --dp-shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 12px 34px rgb(0 0 0 / 16%);
    font-size: 18px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dp-bg);
    color: var(--dp-text);
}

* { scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
body.dpanel-body { min-width: 320px; min-height: 100vh; background: var(--dp-bg); color: var(--dp-text); font-size: 1rem; }
body.dpanel-body::before { position: fixed; z-index: -1; inset: 0; background: radial-gradient(circle at 78% -10%, rgb(14 165 233 / 6%), transparent 30rem); content: ""; pointer-events: none; }
a { color: #7dd3fc; transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease; }
a:hover { color: #bae6fd; }

.app-frame { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; z-index: 100; display: flex; height: 100vh; flex-direction: column; border-right: 1px solid var(--dp-border); padding: 20px 14px 14px; background: rgb(12 12 15 / 96%); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--dp-text); font-weight: 700; }
.brand:hover { color: white; }
.brand > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.brand strong { font-size: 1rem; letter-spacing: -.015em; }
.brand small { margin-top: 1px; color: var(--dp-faint); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: grid; width: 31px; height: 31px; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 3px; border: 1px solid rgb(56 189 248 / 38%); border-radius: 9px; padding: 6px; background: linear-gradient(145deg, #075985, #0c4a6e); box-shadow: inset 0 1px rgb(255 255 255 / 16%), 0 8px 24px rgb(2 132 199 / 16%); }
.brand-mark i { border-radius: 2px; background: #e0f2fe; }
.nav-label { margin: 33px 10px 8px; color: #52525b; font-size: .61rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { position: relative; display: flex; min-height: 40px; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 9px; padding: 0 11px; color: var(--dp-muted); font-size: .95rem; font-weight: 580; }
.side-nav a svg { width: 17px; height: 17px; fill: currentColor; opacity: .78; }
.side-nav a:hover { border-color: #27272a; background: #18181b; color: #e4e4e7; }
.side-nav a.active { border-color: rgb(14 165 233 / 22%); background: var(--dp-accent-soft); color: #e0f2fe; box-shadow: inset 2px 0 #0ea5e9; }
.side-nav a.active svg { color: #38bdf8; opacity: 1; }
.side-nav a:has(.nav-concern-count) { padding-right: 52px; }
.nav-concern-count { position: absolute; top: 50%; right: 11px; display: inline-flex; min-width: 30px; height: 21px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; border: 1px solid #3f3f46; border-radius: 6px; padding: 0 6px; margin: 0; background: #18181b; color: #fbbf24; font-size: .62rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px rgb(255 255 255 / 4%); transform: translateY(-50%); }
.nav-concern-count::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px rgb(245 158 11 / 13%); content: ''; }
.nav-concern-count.critical { border-color: rgb(248 113 113 / 34%); background: #1f1517; color: #fca5a5; }
.nav-concern-count.critical::before { background: #ef4444; box-shadow: 0 0 0 2px rgb(239 68 68 / 14%); }
.nav-concern-count.warning { border-color: rgb(245 158 11 / 32%); background: #1d1912; color: #fbbf24; }
.side-nav a.active .nav-concern-count { border-color: rgb(125 211 252 / 30%); background: #111d27; }
.sidebar-account { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; border-top: 1px solid var(--dp-border); padding: 13px 2px 1px; margin-top: auto; }
.sidebar-account-profile { display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 10px; padding: 5px; color: inherit; }
.sidebar-account-profile:hover, .sidebar-account-profile.active { border-color: #3f3f46; background: #18181b; color: white; }
.account-avatar { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #3f3f46; border-radius: 9px; background: #18181b; color: #d4d4d8; font-size: .73rem; font-weight: 750; }
.account-copy { display: flex; min-width: 0; flex-direction: column; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { color: #e4e4e7; font-size: .72rem; }
.account-copy small { margin-top: 2px; color: #52525b; font-size: .61rem; }
.sidebar-account form { margin: 0; }
.account-logout-button { width: 34px; height: 34px; border-color: #27272a; background: #111113; color: #a1a1aa; }
.account-logout-button svg { width: 17px; height: 17px; }
.account-logout-button:hover { border-color: #7f1d1d; background: #2b1114; color: #fca5a5; }

.account-page-heading { margin-bottom: 20px; }
.account-page-heading h1 { margin: 5px 0 5px; }
.account-role-badge { border: 1px solid #3f3f46; border-radius: 999px; padding: 7px 11px; background: #18181b; color: #d4d4d8; font-size: .75rem; font-weight: 700; }
.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1040px; }
.account-settings-card { display: flex; min-width: 0; flex-direction: column; gap: 17px; margin: 0; }
.account-settings-card h2, .account-settings-card p { margin: 0; }
.account-settings-card > button { align-self: flex-start; margin-top: auto; }
.account-readonly-field { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #27272a; border-radius: 8px; padding: 10px 11px; background: #0c0c0f; }
.account-readonly-field span { color: #71717a; font-size: .8rem; }
.account-readonly-field code { color: #d4d4d8; }

.app-workspace { min-width: 0; }
.workspace-bar { display: flex; height: 49px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dp-border); padding: 0 24px; background: rgb(9 9 11 / 82%); color: var(--dp-faint); font-size: .8rem; backdrop-filter: blur(15px); }
.workspace-bar b { color: #d4d4d8; font-weight: 650; }
.workspace-bar .workspace-fullscreen { min-height: 27px; padding: 4px 9px; font-size: .72rem; }
.workspace-health { display: flex; align-items: center; gap: 7px; }
.workspace-health i, .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dp-success); box-shadow: 0 0 9px rgb(34 197 94 / 65%); }
.shell, .shell.wide { width: 100%; max-width: none; padding: 26px clamp(18px, 2vw, 34px) 50px; margin: 0 auto; }

h1, h2, h3 { color: var(--dp-text); letter-spacing: -.02em; }
h1 { font-size: clamp(1.55rem, 2vw, 2rem); font-weight: 690; }
h2 { font-size: 1.08rem; font-weight: 650; }
h3 { font-size: .92rem; font-weight: 640; }
.muted, .help { color: var(--dp-muted); }
.eyebrow { display: block; margin-bottom: 8px; color: #38bdf8; font-size: .62rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 2px 0 24px; }
.page-heading h1 { margin: 0; }
.page-heading p { margin: 7px 0 0; color: var(--dp-muted); }
.page-heading-meta { display: flex; align-items: center; gap: 8px; border: 1px solid var(--dp-border); border-radius: 999px; padding: 7px 11px; color: var(--dp-muted); font-size: .69rem; background: #111114; }
.sites-page-heading { align-items: center; margin-bottom: 14px; }
.sites-page-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sites-search { display: flex; width: 100%; align-items: center; gap: 8px; border: 1px solid var(--dp-border); border-radius: 11px; padding: 9px; background: #111114; box-shadow: var(--dp-shadow); }
.sites-search input[type="search"] { width: 100%; min-width: 0; min-height: 39px; border-color: transparent; background: #09090b; }
.sites-search input[type="search"]:focus { border-color: #2563eb; }
.sites-search-status { min-width: 66px; color: var(--dp-muted); font-size: .7rem; text-align: right; white-space: nowrap; }
.sites-search.is-searching .sites-search-status { color: #93c5fd; }
.sites-search .button { display: inline-flex; align-items: center; }
.sites-add-button { white-space: nowrap; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--dp-muted); font-size: .75rem; }

.card, .feature-console, .health-stat, .ops-hero-main, .ops-kpis, .ops-control-deck, .site-tile, .wallboard-bar, .resource-meter {
    border-color: var(--dp-border);
    background: linear-gradient(180deg, rgb(22 22 26 / 94%), rgb(16 16 19 / 96%));
    box-shadow: var(--dp-shadow);
}
.card { border-radius: var(--dp-radius); padding: 19px; }
.flush-card { overflow: hidden; padding: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--dp-border); padding: 20px; }
.section-header h2 { margin: 0 0 5px; }
.section-header p { max-width: 700px; margin: 0; color: var(--dp-muted); font-size: .76rem; }
.count-pill { border: 1px solid var(--dp-border-strong); border-radius: 999px; padding: 5px 9px; color: #d4d4d8; font-size: .68rem; white-space: nowrap; }

.toolbar { gap: 8px; }
.button, button { min-height: 36px; border: 1px solid #0284c7; border-radius: 8px; padding: 8px 13px; background: #0284c7; color: white; font-size: .9rem; font-weight: 630; box-shadow: 0 1px 2px rgb(0 0 0 / 28%); transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease; }
.button:hover, button:hover { border-color: #0ea5e9; background: #0ea5e9; color: white; }
.button:active, button:active { transform: translateY(1px); }
.button.secondary, button.secondary { border-color: #3f3f46; background: #18181b; color: #e4e4e7; }
.button.secondary:hover, button.secondary:hover { border-color: #52525b; background: #27272a; }
.button.danger, button.danger { border-color: #7f1d1d; background: #450a0a; color: #fecaca; }
.button.compact, button.compact { min-height: 31px; padding: 5px 9px; font-size: .84rem; }
.icon-button { display: inline-grid; min-width: 30px; min-height: 30px; place-items: center; border-color: transparent; padding: 0; background: transparent; color: var(--dp-muted); font-size: 1rem; box-shadow: none; }
.icon-button:hover { border-color: #3f3f46; background: #27272a; color: white; }

label { color: #d4d4d8; font-size: .9rem; font-weight: 620; }
input, select, textarea { border: 1px solid #3f3f46; border-radius: 8px; background: #0c0c0f; color: #fafafa; font-size: .95rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover, textarea:hover { border-color: #52525b; }
input:focus, select:focus, textarea:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgb(14 165 233 / 12%); }
.input-suffix { display: flex; }
.input-suffix input { border-radius: 8px 0 0 8px; }
.input-suffix > span { display: flex; align-items: center; border: 1px solid #3f3f46; border-left: 0; border-radius: 0 8px 8px 0; padding: 0 12px; background: #18181b; color: var(--dp-muted); font-size: .7rem; }
.advanced-settings, .confirmation, .setup-json-section, .laravel-details, .empty-state { border-color: var(--dp-border); background: var(--dp-muted-panel); }

.notice, .warning, .error { border-width: 1px; border-radius: 9px; padding: 11px 13px; font-size: .92rem; box-shadow: 0 8px 25px rgb(0 0 0 / 10%); }
.notice { border-color: rgb(34 197 94 / 28%); background: rgb(20 83 45 / 30%); color: #bbf7d0; }
.warning { border-color: rgb(245 158 11 / 32%); background: rgb(120 53 15 / 28%); color: #fde68a; }
.error { border-color: rgb(239 68 68 / 34%); background: rgb(127 29 29 / 28%); color: #fecaca; }
.subtle-notice { border-color: var(--dp-border); background: #111114; color: var(--dp-muted); }

.feature-console { border-radius: var(--dp-radius); }
.feature-nav { gap: 4px; overflow-x: auto; flex-wrap: nowrap; border-color: var(--dp-border); padding: 9px 12px; background: #0e0e11; }
.feature-nav .button { min-height: 31px; border-color: transparent; border-radius: 7px; background: transparent; color: var(--dp-muted); box-shadow: none; white-space: nowrap; }
.feature-nav .button:hover { border-color: var(--dp-border); background: #18181b; color: #e4e4e7; }
.feature-nav .button[aria-current="page"] { border-color: #075985; background: rgb(14 165 233 / 14%); color: #bae6fd; }
.feature-content { padding: 22px; }
.domain-row, .form-section, .feature-form + .feature-form, .database-permissions, .mail-section, .dns-section, .certbot-actions { border-color: var(--dp-border); }
.domains-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; margin-top: 18px; }
.domains-grid > .feature-form { display: flex; min-width: 0; max-width: none; flex-direction: column; border: 1px solid var(--dp-border); border-radius: 10px; padding: 16px; margin: 0; background: #0d0d10; }
.domains-grid > .feature-form + .feature-form { border-top-width: 1px; padding-top: 16px; margin-top: 0; }
.domains-grid > .feature-form > button:last-child { align-self: flex-start; margin-top: auto; }
.domains-grid .domain-row { flex-wrap: wrap; }

table { font-size: 1rem; line-height: 1.4; }
th, td { border-color: var(--dp-border); padding: 15px 14px; }
th { color: #a1a1aa; font-size: .82rem; font-weight: 750; letter-spacing: .07em; }
td { color: #e4e4e7; font-size: 1rem; }
table .badge { font-size: .9rem; }
table .button, table button { font-size: .9rem; }
.sites-table { font-size: 1.125rem; line-height: 1.2; }
.sites-table td { font-size: 1.125rem; }
.sites-table th { font-size: .9rem; }
.sites-table .badge { font-size: 1rem; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgb(39 39 42 / 32%); }
code, .credential { border-color: var(--dp-border); background: #09090b; color: #d4d4d8; }
pre { border-color: var(--dp-border); border-radius: 9px; background: #09090b; }
.badge { border-color: #3f3f46; background: #18181b; color: #d4d4d8; font-size: .84rem; font-weight: 620; }
.badge.active, .badge.succeeded, .badge.healthy, .badge.online, .badge.available, .badge.http-success { border-color: rgb(34 197 94 / 32%); background: rgb(20 83 45 / 28%); color: #bbf7d0; }
.badge.maintenance, .badge.http-maintenance { border-color: rgb(245 158 11 / 38%); background: rgb(120 53 15 / 32%); color: #fde68a; }
.badge.pending, .badge.running, .badge.provisioning, .badge.deleting, .badge.activating, .badge.deactivating { border-color: rgb(245 158 11 / 34%); background: rgb(120 53 15 / 28%); color: #fde68a; }
.badge.failed, .badge.unhealthy, .badge.inactive, .badge.delete_failed, .badge.http-error { border-color: rgb(239 68 68 / 34%); background: rgb(127 29 29 / 30%); color: #fecaca; }

.modal-backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: blur(6px); }
.modal { border-color: #3f3f46; border-radius: 14px; background: #141417; box-shadow: 0 30px 100px rgb(0 0 0 / 65%); }
.native-modal { position: fixed; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); color: var(--dp-text); }
.native-modal::backdrop { background: rgb(0 0 0 / 70%); backdrop-filter: blur(6px); }
.native-modal .modal-dismiss { position: absolute; top: 12px; right: 12px; }
.native-modal h2 { margin: 0 0 4px; }
.native-modal > .muted { margin: 0 0 22px; }
.modal-header { border-bottom: 1px solid var(--dp-border); padding-bottom: 13px; }
.modal-actions { border-top: 1px solid var(--dp-border); padding-top: 15px; }

.storage-overview { display: grid; grid-template-columns: minmax(240px, 1fr) 160px minmax(260px, .8fr); gap: 28px; align-items: center; padding: 24px; }
.storage-overview h2 { margin: 0 0 7px; }
.storage-overview p { max-width: 560px; margin: 0; font-size: .76rem; }
.storage-gauge { position: relative; display: grid; width: 128px; height: 128px; place-content: center; justify-self: center; border-radius: 50%; text-align: center; background: conic-gradient(var(--gauge-color, var(--dp-success)) var(--storage-value), #27272a 0); }
.storage-gauge::before { position: absolute; inset: 10px; border: 1px solid #27272a; border-radius: inherit; background: #111114; content: ""; }
.storage-gauge strong, .storage-gauge span { position: relative; z-index: 1; }
.storage-gauge strong { font-size: 1.5rem; letter-spacing: -.04em; }
.storage-gauge span { margin-top: 3px; color: var(--dp-muted); font-size: .61rem; }
.storage-gauge.warning { --gauge-color: var(--dp-warning); }
.storage-gauge.critical { --gauge-color: var(--dp-danger); }
.storage-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.storage-stats div { border: 1px solid var(--dp-border); border-radius: 9px; padding: 12px; background: #0d0d10; }
.storage-stats dt { color: var(--dp-faint); font-size: .6rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.storage-stats dd { margin: 5px 0 0; color: #e4e4e7; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.storage-stats small { display: block; margin-top: 4px; color: var(--dp-muted); font-size: .61rem; line-height: 1.3; }
.storage-stats .quota-capacity.warning { border-color: rgb(245 158 11 / 60%); background: rgb(120 53 15 / 18%); }
.storage-stats .quota-capacity.warning dd { color: #fbbf24; }
.storage-stats .quota-capacity.critical { border-color: rgb(239 68 68 / 65%); background: rgb(127 29 29 / 22%); }
.storage-stats .quota-capacity.critical dd { color: #f87171; }
.storage-table .site-link { display: flex; flex-direction: column; }
.sortable-header { display: inline-flex; align-items: center; gap: 6px; color: inherit; white-space: nowrap; }
.sortable-header span { color: var(--dp-faint); font-size: .68rem; }
.sortable-header:hover, .sortable-header.active { color: #f4f4f5; }
.sortable-header.active span { color: #60a5fa; }
.site-link strong { color: #f4f4f5; font-size: 1rem; }
.site-link span { margin-top: 3px; color: var(--dp-muted); font-size: .82rem; }
.quota-meter { display: grid; grid-template-columns: minmax(90px, 1fr) 48px; gap: 9px; align-items: center; min-width: 150px; }
.quota-meter > div { position: relative; height: 5px; overflow: hidden; border-radius: 999px; background: #27272a; }
.quota-meter > div span { display: block; height: 100%; border-radius: inherit; background: var(--dp-success); }
.quota-meter strong { color: var(--dp-muted); font-size: .76rem; text-align: right; }
.storage-table .quota-meter strong { font-size: .875rem; }
.quota-meter.warning > div span { background: var(--dp-warning); }
.quota-meter.critical > div span { background: var(--dp-danger); }
.quota-meter.unknown > div span { background: #52525b; }
.storage-table .quota-meter.warning,
.storage-table .quota-meter.critical { grid-template-columns: minmax(116px, 1fr) 44px; gap: 7px; min-width: 167px; }
.storage-table .quota-meter.warning > div,
.storage-table .quota-meter.critical > div { height: 22px; border: 1px solid; }
.storage-table .quota-meter.warning > div { border-color: rgb(245 158 11 / 48%); background: rgb(120 53 15 / 38%); }
.storage-table .quota-meter.critical > div { border-color: rgb(248 113 113 / 48%); background: rgb(127 29 29 / 38%); }
.storage-table .quota-meter.warning > div > span,
.storage-table .quota-meter.critical > div > span { position: absolute; inset: 0 auto 0 0; opacity: .38; }
.quota-meter-usage { position: absolute; z-index: 1; inset: 0; display: flex; min-width: 0; align-items: center; overflow: hidden; padding: 0 7px; color: #fff7ed; font-size: .6rem; font-style: normal; font-weight: 750; line-height: 1; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgb(0 0 0 / 45%); }
.quota-meter.critical .quota-meter-usage { color: #fee2e2; }
.quota-meter.large { display: block; margin: 18px 0; }
.quota-meter.large > div { height: 8px; }
.align-right { text-align: right; }
.table-primary, .table-secondary { display: block; }
.table-primary { color: #f4f4f5; }
.table-secondary { margin-top: 4px; color: var(--dp-muted); font-size: .82rem; }
.merged-sites { margin-top: 18px; }
.merged-sites-table { min-width: 1380px; }
.activity-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-summary span { border: 1px solid var(--dp-border); border-radius: 999px; padding: 7px 11px; background: #111114; color: var(--dp-muted); font-size: .82rem; }
.activity-summary strong { color: #f4f4f5; }
.activity-summary .has-issues { border-color: rgb(239 68 68 / 34%); color: #fecaca; }
.activity-filters { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; }
.activity-filters label { display: grid; gap: 6px; }
.activity-filter-actions { display: flex; gap: 8px; }
.activity-list { margin-top: 18px; }
.activity-table { min-width: 1080px; }
.backup-table { min-width: 720px; table-layout: fixed; }
.backup-table th:nth-child(1) { width: 24%; }
.backup-table th:nth-child(2) { width: 12%; }
.backup-table th:nth-child(3) { width: 14%; }
.backup-table th:nth-child(4) { width: 10%; }
.backup-table th:nth-child(5) { width: 16%; }
.backup-table th:nth-child(6) { width: 24%; }
.backup-table td { overflow-wrap: anywhere; vertical-align: top; }
.backup-action-menu { min-width: 0; }
.backup-action-menu summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none; }
.backup-action-menu summary::-webkit-details-marker { display: none; }
.backup-action-menu summary::after { color: var(--dp-faint); content: '▾'; font-size: .68rem; }
.backup-action-menu[open] summary::after { content: '▴'; }
.backup-action-list { display: grid; gap: 6px; margin-top: 8px; }
.backup-action-list .button, .backup-action-list button { display: inline-flex; width: 100%; align-items: center; justify-content: center; margin: 0; text-align: center; }
.backup-action-label { padding: 5px 3px 0; color: var(--dp-faint); font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.backup-action-label:not(:first-child) { border-top: 1px solid var(--dp-border); padding-top: 9px; margin-top: 2px; }
.backup-action-label.danger-label { color: #fca5a5; }
.backup-storage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.backup-storage-card { border: 1px solid var(--dp-border); border-radius: 10px; padding: 16px; background: #0d0d10; }
.backup-storage-card h3 { margin: 3px 0 0; }
.backup-storage-card dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; margin: 12px 0 0; }
.backup-storage-card dt { color: var(--dp-muted); }
.backup-storage-card dd { margin: 0; color: #e4e4e7; text-align: right; }
.backup-storage-card .quota-meter.large { margin: 12px 0; }
.backup-quota-link { margin: 5px 0 0; font-size: .78rem; text-align: right; }
.backup-count-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 14px 0; }
.backup-count-badge { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #3f3f46; border-radius: 9px; padding: 10px 12px; color: #d4d4d8; background: #111114; box-shadow: none; text-align: left; }
.backup-count-badge:hover { border-color: #2563eb; color: #fff; background: #151923; }
.backup-count-badge strong { color: #93c5fd; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.backup-count-badge span { color: var(--dp-muted); font-size: .7rem; font-weight: 750; letter-spacing: .035em; }
.backup-quota-form, .backup-retention-form { margin: 14px 0; }
.backup-manager-modal { width: min(1180px, calc(100vw - 40px)); }
.backup-manager-modal .modal-header { align-items: flex-start; }
.backup-manager-modal .modal-header p { margin: 4px 0 0; }
.backup-manager-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.backup-manager-filters button.active { border-color: #2563eb; color: #dbeafe; background: #172554; }
.backup-manager-filters button b { margin-left: 5px; color: #93c5fd; font-variant-numeric: tabular-nums; }
.backup-manager-table { max-height: calc(100vh - 225px); overflow: auto; }
.activity-event { display: flex; align-items: flex-start; gap: 10px; }
.activity-event > i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; margin-top: 8px; background: #71717a; box-shadow: 0 0 0 4px rgb(113 113 122 / 12%); }
.activity-event > i.succeeded { background: var(--dp-success); box-shadow: 0 0 0 4px rgb(34 197 94 / 12%); }
.activity-event > i.failed { background: var(--dp-danger); box-shadow: 0 0 0 4px rgb(239 68 68 / 12%); }
.activity-event > span { display: grid; gap: 3px; }
.activity-event small { color: var(--dp-faint); font-size: .75rem; }
.storage-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.storage-number { margin-top: 14px; color: white; font-size: 2.3rem; font-weight: 690; letter-spacing: -.05em; }
.storage-stats.vertical { grid-template-columns: 1fr 1fr; margin-top: 22px; }

.ops-hero-main, .ops-kpis, .ops-control-deck, .site-tile, .wallboard-bar { background: linear-gradient(160deg, #16161a, #101013); border-color: var(--dp-border); }
.site-status-box, .site-facts, .service-matrix > div:not(.service-empty), .resource-meter { border-color: var(--dp-border); background-color: #0e0e11; }
.site-facts > span, .site-endpoint div { background: #0c0c0f; }
.site-tile h3 a, .site-identity h2 a { color: #f4f4f5; }
.wallboard-bar { min-height: 76px; grid-template-areas: "overall stats meta"; grid-template-columns: minmax(240px, 1.1fr) minmax(250px, .8fr) auto; gap: 14px; padding: 10px 16px 12px; margin-bottom: 8px; box-shadow: var(--dp-shadow); }
.wallboard-overall { grid-area: overall; }
.wallboard-stats { grid-area: stats; }
.wallboard-meta { grid-area: meta; }
.wallboard-bar .status-orb.large { width: 32px; height: 32px; }
.wallboard-bar .wallboard-stats { grid-template-columns: repeat(5, minmax(50px, 1fr)); align-self: center; }
.wallboard-bar .wallboard-stats strong { font-size: 1.2rem; }
.wallboard-bar .wallboard-stats span { margin-top: 3px; }
.wallboard-bar .wallboard-stats .security-critical strong { color: #fca5a5; }
.wallboard-bar .wallboard-stats .security-warning strong { color: #fdba74; }
.wallboard-bar .resource-meter { display: grid; min-width: 0; height: 48px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 15px 4px; align-content: center; gap: 5px; border: 1px solid var(--dp-border); border-radius: 7px; padding: 7px 8px; }
.wallboard-bar .resource-meter header { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; }
.wallboard-bar .resource-meter header span { color: var(--dp-faint); font-size: .56rem; font-weight: 800; line-height: 1; letter-spacing: .07em; text-transform: uppercase; }
.wallboard-bar .resource-meter header strong { overflow: hidden; color: #e4e4e7; font-size: .66rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.wallboard-bar .resource-meter-track { height: 4px; overflow: hidden; border-radius: 999px; background: #27272a; }
.wallboard-bar .resource-meter-track > span { display: block; width: var(--meter-value, 0%); height: 100%; border-radius: inherit; background: var(--dp-success); transition: width .25s ease; }
.wallboard-bar .resource-meter.warning .resource-meter-track > span { background: var(--dp-warning); }
.wallboard-bar .resource-meter.critical .resource-meter-track > span { background: var(--dp-danger); }
.wallboard-bar .resource-meter > small { display: none; }
.server-fleet { margin: 0 0 10px; }
.server-overview-grid { display: grid; grid-auto-rows: 126px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.server-overview-card { display: grid; min-width: 0; height: 126px; grid-template-rows: minmax(0, 1fr) 52px; overflow: hidden; border: 1px solid rgb(56 189 248 / 58%); border-radius: 10px; padding: 9px; background: linear-gradient(155deg, rgb(14 32 48 / 92%), #101013 52%); box-shadow: 0 0 0 1px rgb(56 189 248 / 7%) inset, 0 10px 24px rgb(0 0 0 / 22%); transition: border-color .2s ease, box-shadow .2s ease; }
.server-overview-card.control-plane { border-color: rgb(34 211 238 / 64%); background: linear-gradient(155deg, rgb(9 36 48 / 94%), #101013 54%); }
.server-overview-card.is-down { border-color: rgb(248 113 113 / 70%); box-shadow: 0 0 0 1px rgb(248 113 113 / 8%) inset, 0 12px 30px rgb(0 0 0 / 24%); }
.server-overview-header { display: flex; min-width: 0; min-height: 0; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.server-overview-identity { display: grid; min-width: 0; align-content: start; gap: 2px; overflow: hidden; }
.server-title-line, .site-title-line { display: flex; min-width: 0; align-items: center; gap: 6px; }
.server-kind, .site-kind { display: inline-flex; height: 16px; flex: 0 0 auto; align-items: center; border: 1px solid rgb(56 189 248 / 30%); border-radius: 999px; padding: 0 5px; background: rgb(14 165 233 / 10%); color: #7dd3fc; font-size: .5rem; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.server-overview-card.control-plane .server-kind { color: #22d3ee; }
.server-overview-identity h3 { min-width: 0; overflow: hidden; margin: 0; color: #f4f4f5; font-size: .92rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.server-overview-identity h3 a { color: inherit; text-decoration: none; }
.server-overview-identity h3 a:hover { color: #7dd3fc; }
.server-overview-identity small { overflow: hidden; color: var(--dp-faint); font-size: .6rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.server-availability { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; border: 1px solid rgb(34 197 94 / 30%); border-radius: 999px; padding: 3px 7px; background: rgb(34 197 94 / 9%); color: #86efac; font-size: .58rem; line-height: 1; text-transform: uppercase; }
.server-availability i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 13%); }
.server-availability.is-down { border-color: rgb(239 68 68 / 35%); background: rgb(239 68 68 / 10%); color: #fca5a5; }
.server-availability.is-down i { background: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / 14%); }
.server-card-resources { display: grid; height: 52px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 6px; margin: 0; }
.server-card-resources .resource-meter { display: grid; min-height: 0; height: 52px; grid-template-rows: 13px 4px 10px; align-content: center; row-gap: 4px; overflow: hidden; border-radius: 7px; padding: 5px 7px; }
.server-card-resources .resource-meter header { gap: 5px; }
.server-card-resources .resource-meter header span { font-size: .52rem; }
.server-card-resources .resource-meter header strong { overflow: hidden; font-size: .66rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.server-card-resources .resource-meter-track { height: 4px; margin: 0; }
.server-card-resources .resource-meter > small { min-width: 0; overflow: hidden; font-size: .52rem; line-height: 10px; text-overflow: ellipsis; white-space: nowrap; }
.server-maintenance-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 18px; }
.server-maintenance-panel .eyebrow { margin-bottom: 4px; }
.server-maintenance-panel h2 { margin: 0 0 5px; }
.server-maintenance-panel p { margin: 0; }
.server-maintenance-actions { display: flex; align-items: center; gap: 8px; }
.server-maintenance-actions form { margin: 0; }
.server-maintenance-help { grid-column: 1 / -1; }
.site-tile.compact { min-height: 178px; }
.site-tile-link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.site-tile-link:hover { border-color: rgb(56 189 248 / 58%); background-color: #11151b; box-shadow: 0 14px 38px rgb(0 0 0 / 26%); transform: translateY(-1px); }
.site-tile-link:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.site-tile-header.compact { min-height: 64px; padding: 11px 14px 9px; }
.site-title-line h2 { min-width: 0; margin-bottom: 0; }
.site-kind { border-color: rgb(148 163 184 / 28%); background: rgb(148 163 184 / 8%); color: #a1a1aa; }
.security-concern-count { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: #d97706; color: #fff; font-size: .67rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px rgb(255 255 255 / 8%); }
.security-concern-count.critical { background: #dc2626; }
.security-concern-count.warning { background: #d97706; }
.site-facts { margin-bottom: 6px; }
.service-matrix { flex: 0 0 auto; gap: 4px; }
.service-matrix > div:not(.service-empty) { padding: 6px; }
.service-matrix .service-summary { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.service-matrix .service-summary > span:first-child { width: auto; margin: 0; }
.service-matrix .service-summary strong { overflow: hidden; color: #cbd5e1; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.site-storage-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; align-items: center; border: 1px solid var(--dp-border); border-radius: 7px; padding: 7px 8px; margin: 7px 14px 0; background: #0c0c0f; }
.site-storage-compact > span { display: flex; min-width: 0; flex-direction: column; }
.site-storage-compact small { color: #52525b; font-size: .55rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-storage-compact strong { overflow: hidden; margin-top: 2px; color: #cbd5e1; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.site-storage-compact > b { color: #86efac; font-size: .65rem; }
.site-storage-compact > div { height: 4px; overflow: hidden; grid-column: 1 / -1; border-radius: 999px; background: #27272a; }
.site-storage-compact > div i { display: block; height: 100%; border-radius: inherit; background: var(--dp-success); }
.site-storage-compact.warning > b { color: #fbbf24; }
.site-storage-compact.warning > div i { background: var(--dp-warning); }
.site-storage-compact.critical > b { color: #f87171; }
.site-storage-compact.critical > div i { background: var(--dp-danger); }
.site-storage-compact.unknown > b { color: #71717a; }
.site-tile-summary-grid { display: grid; grid-template-columns: .9fr .65fr 1.45fr; gap: 1px; overflow: hidden; border: 1px solid var(--dp-border); border-radius: 8px; margin: 0 12px 7px; background: var(--dp-border); }
.site-tile-summary-grid > span { display: flex; min-width: 0; min-height: 49px; flex-direction: column; justify-content: center; padding: 7px 9px; background: #0c0c0f; }
.site-tile-summary-grid small { color: #52525b; font-size: .52rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.site-tile-summary-grid strong { overflow: hidden; margin-top: 4px; color: #d4d4d8; font-size: .68rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.site-tile-storage > i { display: block; height: 3px; overflow: hidden; border-radius: 999px; margin-top: 5px; background: #27272a; }
.site-tile-storage > i > b { display: block; height: 100%; border-radius: inherit; background: var(--dp-success); }
.site-tile-storage.warning > i > b { background: var(--dp-warning); }
.site-tile-storage.critical > i > b { background: var(--dp-danger); }
.site-tile-message { overflow: hidden; margin: 0 12px 6px; border-radius: 6px; padding: 5px 7px; color: #fca5a5; background: rgb(127 29 29 / 18%); font-size: .61rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.site-tile-message.maintenance { color: #fcd34d; background: rgb(146 64 14 / 18%); }
.site-tile-card-footer { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--dp-border); padding: 6px 13px; margin-top: auto; background: rgb(2 6 23 / 20%); }
.site-tile-card-footer span { overflow: hidden; color: #71717a; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.site-tile-card-footer small { color: #52525b; font-size: .5rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-tile-card-footer strong { flex: 0 0 auto; color: #7dd3fc; font-size: .63rem; }
.site-tile-actions.compact { min-height: 43px; padding: 7px 14px; margin-top: auto; }
body:not(.dpanel-tv) .site-wall.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 480px)); justify-content: center; align-items: stretch; }
body:not(.dpanel-tv) .site-wall.compact .site-tile.compact { width: 100%; height: auto; min-height: 178px; }
.site-wall.compact[data-fit-grid="true"] { display: grid; height: var(--fit-height); grid-template-columns: repeat(var(--fit-columns), minmax(0, 1fr)) !important; grid-template-rows: repeat(var(--fit-rows), minmax(0, 1fr)); gap: var(--fit-gap); }
.site-wall.compact[data-fit-grid="true"] .site-tile.compact { display: grid; width: var(--fit-card-width); height: var(--fit-card-height); min-height: 0; grid-template-areas: "history" "header" "summary" "message" "footer"; grid-template-columns: minmax(0, 1fr); grid-template-rows: 7px auto auto auto auto; justify-self: center; align-self: center; transform: scale(var(--fit-scale)); transform-origin: center; }
.site-wall.compact[data-fit-grid="true"] .site-uptime-history { grid-area: history; }
.site-wall.compact[data-fit-grid="true"] .site-tile-header.compact { min-height: 48px; grid-area: header; padding: 7px 12px 6px; }
.site-wall.compact[data-fit-grid="true"] .site-tile-header .status-orb { width: 24px; height: 24px; }
.site-wall.compact[data-fit-grid="true"] .site-identity h2 { font-size: .91rem; }
.site-wall.compact[data-fit-grid="true"] .site-tile-summary-grid { grid-area: summary; margin: 0 10px 5px; }
.site-wall.compact[data-fit-grid="true"] .site-tile-summary-grid > span { min-height: 40px; padding: 5px 7px; }
.site-wall.compact[data-fit-grid="true"] .site-tile-message { grid-area: message; margin: 0 10px 4px; padding: 3px 6px; font-size: .56rem; }
.site-wall.compact[data-fit-grid="true"] .site-tile-card-footer { min-height: 25px; grid-area: footer; padding: 4px 10px; }
.site-overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 20px; align-items: stretch; }
.site-overview-side { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.site-quick-actions .site-essential-actions { flex: 1; justify-content: flex-end; }
.site-overview-health { width: 100%; overflow: hidden; border: 1px solid var(--dp-border); border-radius: 10px; background: #0d0d10; }
.site-overview-health-strip { flex: 0 0 7px; height: 7px; background: var(--dp-success); box-shadow: 0 0 20px rgb(34 197 94 / 28%); }
.site-overview-health.attention .site-overview-health-strip { background: var(--dp-danger); box-shadow: 0 0 20px rgb(239 68 68 / 30%); }
.site-overview-details { min-width: 0; border: 1px solid var(--dp-border); border-radius: 10px; padding: 17px 18px; background: #0d0d10; }
.site-overview-details h2 { margin-bottom: 17px; }
.site-overview-details dl { grid-template-columns: minmax(120px, 165px) minmax(0, 1fr); }
.overview-health-heading { display: flex; align-items: center; gap: 11px; padding: 14px 15px; }
.overview-health-heading > div { min-width: 0; }
.overview-health-heading .spacer { flex: 1; }
.overview-health-heading h2 { margin: 2px 0 1px; font-size: 1rem; }
.overview-health-heading small { display: block; overflow: hidden; color: var(--dp-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.overview-status-rows { display: grid; gap: 7px; padding: 0 12px 12px; }
.overview-status-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; border: 1px solid var(--dp-border); border-radius: 8px; padding: 9px 10px; background: #09090b; }
.overview-status-row > span, .overview-service-list > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.overview-status-row small, .overview-service-list small { color: var(--dp-faint); font-size: .57rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.overview-status-row strong, .overview-service-list strong { overflow: hidden; color: #e4e4e7; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.overview-services-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; }
.overview-service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.overview-service-list .badge { align-self: flex-start; }
.overview-storage-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; }
.overview-storage-row > b { color: #86efac; font-size: .72rem; }
.overview-storage-row > div { height: 4px; overflow: hidden; grid-column: 1 / -1; border-radius: 999px; background: #27272a; }
.overview-storage-row > div i { display: block; height: 100%; border-radius: inherit; background: var(--dp-success); }
.overview-storage-row.warning > b { color: #fbbf24; }
.overview-storage-row.warning > div i { background: var(--dp-warning); }
.overview-storage-row.critical > b { color: #f87171; }
.overview-storage-row.critical > div i { background: var(--dp-danger); }
.overview-storage-row.unknown > b { color: #71717a; }
.overview-status-actions { display: flex; justify-content: flex-end; }
.site-limits-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.site-limit-summary, .site-limit-form { border: 1px solid var(--dp-border); border-radius: 10px; padding: 18px; background: #0d0d10; }
.site-limit-summary .quota-meter { margin: 18px 0 8px; }
.site-limit-form { grid-column: 1 / -1; }
.site-limit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quota-text-warning { color: #fbbf24; }
.quota-text-critical { color: #fca5a5; }
.clickable-site-row { cursor: pointer; }
.clickable-site-row:focus { outline: 2px solid #38bdf8; outline-offset: -2px; }

.login { width: min(430px, calc(100% - 32px)); max-width: none; border: 1px solid var(--dp-border); border-radius: 16px; padding: 26px; margin: 10vh auto; background: #111114; box-shadow: 0 30px 100px rgb(0 0 0 / 48%); }
.login-brand { margin-bottom: 27px; }
.login .card { border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; }

@media (max-width: 1200px) {
    .app-frame { grid-template-columns: 86px minmax(0, 1fr); }
    .app-sidebar { align-items: center; padding-right: 10px; padding-left: 10px; }
    .brand > span:last-child, .nav-label, .side-nav a span, .account-copy { display: none; }
    .side-nav { width: 100%; margin-top: 28px; }
    .side-nav a { justify-content: center; padding: 0; }
    .side-nav a:has(.nav-concern-count) { padding-right: 0; }
    .side-nav a .nav-concern-count { position: absolute; top: 50%; right: 1px; min-width: 18px; height: 18px; gap: 0; padding: 0 3px; border-radius: 5px; font-size: .52rem; box-shadow: 0 0 0 2px #101013; transform: translateY(-50%); }
    .side-nav a .nav-concern-count::before { display: none; }
    .sidebar-account { display: block; border: 0; }
    .storage-overview { grid-template-columns: 1fr 150px; }
    .storage-stats { grid-column: 1 / -1; }
    .activity-filters { grid-template-columns: 1fr 1fr; }
    .activity-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 1050px) {
    .account-settings-grid { grid-template-columns: 1fr; }
    .site-overview-grid, .site-limits-grid, .site-limit-fields, .backup-storage-grid { grid-template-columns: 1fr; }
    .domains-grid { grid-template-columns: 1fr; }
    .backup-panel .table-scroll { overflow: visible; }
    .backup-table { display: block; min-width: 0; table-layout: auto; overflow: visible; }
    .backup-table thead { display: none; }
    .backup-table tbody { display: grid; gap: 12px; }
    .backup-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--dp-border); border-radius: 10px; background: #0d0d10; }
    .backup-table td { display: block; min-width: 0; border: 0; padding: 10px 12px; }
    .backup-table td::before { display: block; margin-bottom: 5px; color: var(--dp-faint); content: attr(data-label); font-size: .61rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
    .backup-table td.backup-actions { grid-column: 1 / -1; border-top: 1px solid var(--dp-border); }
    .backup-action-menu summary { width: 100%; justify-content: center; }
    .backup-table tr.backup-empty { display: block; }
    .backup-table tr.backup-empty td::before { content: none; }
}

@media (max-width: 720px) {
    .server-maintenance-panel { grid-template-columns: 1fr; }
    .server-maintenance-actions { flex-wrap: wrap; }
    .server-maintenance-help { grid-column: auto; }
    .site-wall.compact[data-fit-grid="true"] { height: auto; grid-template-columns: 1fr !important; grid-template-rows: none; }
    .site-wall.compact[data-fit-grid="true"] .site-tile.compact { width: auto; height: auto; transform: none; }
    .site-overview-details dl { grid-template-columns: 1fr; }
    .app-frame { display: block; }
    .app-sidebar { position: static; display: grid; width: 100%; height: auto; grid-template-columns: auto minmax(0, 1fr) auto; border-right: 0; border-bottom: 1px solid var(--dp-border); padding: 10px 14px; }
    .brand > span:last-child { display: flex; }
    .side-nav { display: flex; min-width: 0; flex-direction: row; gap: 2px; overflow-x: auto; margin: 0 0 0 18px; }
    .side-nav a { min-width: 39px; flex: 0 0 39px; }
    .sidebar-account { align-self: center; padding: 0; margin: 0 0 0 8px; }
    .workspace-bar { display: none; }
    .shell, .shell.wide { padding: 20px 14px 36px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .sites-page-heading { width: 100%; align-items: center; flex-direction: row; }
    .sites-search { min-width: 0; flex-wrap: wrap; }
    .sites-search input[type="search"] { flex-basis: calc(100% - 80px); }
    .sites-search-status { flex: 0 0 70px; }
    .storage-overview, .storage-detail-grid { grid-template-columns: 1fr; }
    .storage-gauge { justify-self: start; }
    .storage-stats { grid-template-columns: 1fr; }
    .section-header { align-items: flex-start; }
    .native-modal { padding: 18px; }
    .activity-filters { grid-template-columns: 1fr; }
    .activity-filter-actions { grid-column: auto; }
}

body.dpanel-tv { overflow-x: hidden; }
.tv-shell { width: 100%; min-height: 100vh; padding: 16px; }
.dpanel-tv .wallboard-bar { grid-template-areas: "overall stats meta"; grid-template-columns: minmax(280px, 1.05fr) minmax(190px, .62fr) auto; }
.dpanel-tv .site-wall.compact { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dpanel-tv .site-wall.compact[data-fit-grid="true"] .site-facts { align-self: start; }
.dpanel-tv .site-wall.compact[data-fit-grid="true"] .service-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dpanel-tv .site-wall.compact[data-fit-grid="true"] .service-matrix > div:first-child { grid-column: 1 / -1; }
.dpanel-tv .site-wall.compact[data-fit-grid="true"] .site-storage-compact { grid-area: auto; grid-row: 3; grid-column: 1; align-self: end; margin: 0 4px 5px 12px; }
.dpanel-tv .site-tile-actions { display: none; }
.tv-display-tools { position: fixed; z-index: 200; right: 13px; bottom: 13px; display: flex; gap: 6px; border: 1px solid rgb(63 63 70 / 65%); border-radius: 10px; padding: 5px; background: rgb(12 12 15 / 74%); opacity: .22; box-shadow: 0 8px 30px rgb(0 0 0 / 30%); backdrop-filter: blur(12px); transition: opacity .15s ease; }
.tv-display-tools:hover, .tv-display-tools:focus-within { opacity: 1; }
.tv-display-tools .icon-button { width: 31px; height: 31px; min-height: 31px; text-decoration: none; }

@media (max-width: 900px) {
    .tv-shell { padding: 10px; }
    .dpanel-tv .wallboard-bar { grid-template-areas: "overall meta" "stats stats"; grid-template-columns: minmax(0, 1fr) auto; }
    .dpanel-tv .wallboard-stats { grid-row: auto; grid-column: auto; }
}

@media (max-width: 1500px) {
    body:not(.dpanel-tv) .wallboard-bar { grid-template-areas: "overall stats"; grid-template-columns: minmax(230px, 1fr) minmax(190px, .62fr); }
    body:not(.dpanel-tv) .wallboard-meta { display: none; }
}

@media (max-width: 1700px) {
    .server-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    body:not(.dpanel-tv) .wallboard-bar { grid-template-areas: "overall" "stats"; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    body:not(.dpanel-tv) .wallboard-bar { grid-template-areas: "overall" "stats"; grid-template-columns: minmax(0, 1fr); }
    .server-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .server-card-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.business-module-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.business-module-heading div {
    display: grid;
    gap: .15rem;
}

.business-module-heading span,
.business-module-heading small {
    color: #71717a;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.business-module-heading strong {
    color: #fafafa;
    font-size: 1.15rem;
}

.business-module-nav {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    margin: 0 0 1rem;
    padding: .45rem;
    border: 1px solid #27272a;
    border-radius: .75rem;
    background: #111113;
}

.business-module-nav a {
    flex: 0 0 auto;
    padding: .55rem .8rem;
    border-radius: .5rem;
    color: #a1a1aa;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.business-module-nav a:hover,
.business-module-nav a.active {
    color: #fafafa;
    background: #27272a;
}

.business-module-nav--primary {
    gap: .3rem;
    padding: .35rem;
}

.business-module-nav--primary a {
    min-width: 7.25rem;
    padding: .7rem 1rem;
    text-align: center;
}

.business-module-nav--primary a.active {
    background: #3f3f46;
    box-shadow: inset 0 1px rgb(255 255 255 / 8%);
}

.business-context-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    overflow-x: auto;
    margin: -.35rem 0 1.1rem;
    padding: 0 .45rem .65rem;
    border-bottom: 1px solid #27272a;
}

.business-context-nav span {
    margin-right: .35rem;
    color: #52525b;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.business-context-nav a {
    flex: 0 0 auto;
    padding: .42rem .68rem;
    border-radius: .45rem;
    color: #a1a1aa;
    font-size: .73rem;
    font-weight: 700;
    text-decoration: none;
}

.business-context-nav a:hover,
.business-context-nav a.active {
    color: #f4f4f5;
    background: #27272a;
}

@media (max-width: 720px) {
    .business-module-heading { align-items: start; flex-direction: column; }
    .business-module-nav--primary a { min-width: auto; }
    .business-context-nav span { display: none; }
}

.business-module-surface {
    min-width: 0;
    color: #e4e4e7;
}

.business-module-surface button,
.business-module-surface .button {
    width: auto;
}

/* The imported Wizard workspace now shares DPanel's dark visual language. */
.business-module-surface .bg-white { background-color: #141417 !important; }
.business-module-surface .bg-slate-50,
.business-module-surface .bg-slate-50\/60,
.business-module-surface .bg-slate-50\/70 { background-color: #19191d !important; }
.business-module-surface .bg-slate-100 { background-color: #27272a !important; }
.business-module-surface .bg-slate-200 { background-color: #3f3f46 !important; }
.business-module-surface .bg-slate-950 { background-color: #09090b !important; }
.business-module-surface .border-slate-100 { border-color: #27272a !important; }
.business-module-surface .border-slate-200 { border-color: #303036 !important; }
.business-module-surface .border-slate-300 { border-color: #45454d !important; }
.business-module-surface .divide-slate-100 > :not(:last-child) { border-color: #27272a !important; }
.business-module-surface .divide-slate-200 > :not(:last-child) { border-color: #303036 !important; }
.business-module-surface .text-slate-950,
.business-module-surface .text-slate-900,
.business-module-surface .text-slate-800 { color: #fafafa !important; }
.business-module-surface .text-slate-700,
.business-module-surface .text-slate-600 { color: #d4d4d8 !important; }
.business-module-surface .text-slate-500 { color: #a1a1aa !important; }
.business-module-surface .text-slate-400 { color: #71717a !important; }
.business-module-surface .form-input,
.business-module-surface input:not([type="checkbox"]):not([type="radio"]),
.business-module-surface select,
.business-module-surface textarea {
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
    background: #111113 !important;
}
.business-module-surface input::placeholder,
.business-module-surface textarea::placeholder { color: #71717a !important; }
.business-module-surface table tbody tr:hover { background: #1c1c20 !important; }

/* Password vault rows keep credentials and row actions on one compact line. */
.password-vault-table td { padding-top: .5rem !important; padding-bottom: .5rem !important; vertical-align: middle; }
.password-vault-table [data-access-actions].grid {
    display: grid !important;
    grid-template-columns: 18rem 4.5rem 3.5rem !important;
    align-items: center;
    gap: .375rem !important;
}
.password-vault-table .password-credential-pair {
    display: grid !important;
    width: 18rem;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .375rem !important;
}
.password-vault-table .password-row-tools { display: flex !important; align-items: center; justify-content: center; gap: .25rem !important; }
.password-vault-table .credential-copy--compact { gap: 0; }
.password-vault-table .credential-copy--compact .credential-copy__control { display: flex; height: 2rem; font-size: .7rem; }
.password-vault-table .credential-copy--compact code { padding-inline: .5rem; }
.password-vault-table .credential-copy--compact button { min-width: 2.2rem; padding-inline: .4rem; }
.password-vault-table [data-access-actions] > button,
.password-vault-table [data-access-actions] > a,
.password-vault-table [data-access-actions] > form > button { height: 2rem; }
.password-vault-footer { min-height: 54px; border-color: #303036 !important; background: linear-gradient(180deg, #151519, #101013) !important; box-shadow: inset 0 1px rgb(255 255 255 / 3%); }
.password-vault-footer > p { color: #71717a !important; }
.password-vault-footer-controls { min-width: 0; }
.password-vault-footer select { height: 30px; border-color: #3f3f46 !important; border-radius: 7px !important; padding: 0 28px 0 9px !important; background-color: #0c0c0f !important; color: #d4d4d8 !important; font-size: .65rem !important; font-weight: 650; box-shadow: inset 0 1px rgb(255 255 255 / 3%); }
.password-vault-footer select:hover { border-color: #52525b !important; }
.password-vault-footer nav[role="navigation"] { min-width: 0; color: #a1a1aa; font-size: .64rem; }
.password-vault-footer nav[role="navigation"] p { color: #71717a !important; font-size: .62rem !important; }
.password-vault-footer nav[role="navigation"] a,
.password-vault-footer nav[role="navigation"] [aria-current="page"] > span,
.password-vault-footer nav[role="navigation"] [aria-disabled="true"] > span { display: inline-flex; min-width: 29px; height: 29px; align-items: center; justify-content: center; border: 1px solid #3f3f46 !important; padding: 0 8px !important; background: #18181b !important; color: #d4d4d8 !important; font-size: .64rem !important; line-height: 1 !important; box-shadow: none !important; }
.password-vault-footer nav[role="navigation"] a:hover { z-index: 2; border-color: #0ea5e9 !important; background: rgb(14 165 233 / 12%) !important; color: #e0f2fe !important; }
.password-vault-footer nav[role="navigation"] [aria-current="page"] > span { border-color: #0284c7 !important; background: #075985 !important; color: #f0f9ff !important; font-weight: 800; }
.password-vault-footer nav[role="navigation"] [aria-disabled="true"] > span { color: #52525b !important; }
.password-vault-footer nav[role="navigation"] svg { width: 13px !important; height: 13px !important; }
.business-module-surface .shadow-sm,
.business-module-surface .shadow-xl { box-shadow: 0 14px 35px rgb(0 0 0 / 28%) !important; }
.business-module-surface .bg-emerald-50 { background-color: #052e25 !important; }
.business-module-surface .bg-emerald-100 { background-color: #064e3b !important; }
.business-module-surface .text-emerald-950,
.business-module-surface .text-emerald-800,
.business-module-surface .text-emerald-700 { color: #6ee7b7 !important; }
.business-module-surface .border-emerald-200 { border-color: #047857 !important; }
.business-module-surface .bg-amber-50 { background-color: #321d06 !important; }
.business-module-surface .bg-amber-100 { background-color: #4a2b08 !important; }
.business-module-surface .text-amber-950,
.business-module-surface .text-amber-900,
.business-module-surface .text-amber-800,
.business-module-surface .text-amber-700 { color: #fcd34d !important; }
.business-module-surface .border-amber-200,
.business-module-surface .border-amber-300 { border-color: #a16207 !important; }
.business-module-surface .bg-violet-50,
.business-module-surface .bg-violet-100 { background-color: #2e1065 !important; }
.business-module-surface .text-violet-950,
.business-module-surface .text-violet-700 { color: #c4b5fd !important; }
.business-module-surface .border-violet-200 { border-color: #6d28d9 !important; }
.business-module-surface .bg-rose-50,
.business-module-surface .bg-rose-100 { background-color: #4c0519 !important; }
.business-module-surface .text-rose-800,
.business-module-surface .text-rose-700,
.business-module-surface .text-rose-600 { color: #fda4af !important; }
.business-module-surface .border-rose-200 { border-color: #be123c !important; }

/* Slate utility text was designed for light cards; interactive text needs
   stronger contrast after those cards are translated into the dark shell. */
.business-module-surface button.text-slate-400,
.business-module-surface button.text-slate-500,
.business-module-surface button.text-slate-600,
.business-module-surface button.text-slate-700,
.business-module-surface button.text-slate-800,
.business-module-surface a.text-slate-400,
.business-module-surface a.text-slate-500,
.business-module-surface a.text-slate-600,
.business-module-surface a.text-slate-700,
.business-module-surface a.text-slate-800 {
    color: #f4f4f5 !important;
}
.business-module-surface button:disabled,
.business-module-surface button[aria-disabled="true"] {
    color: #71717a !important;
}
.business-module-surface .business-modal-backdrop {
    border: 0 !important;
    border-radius: 0 !important;
    background: rgb(0 0 0 / 76%) !important;
    box-shadow: none !important;
}
.business-module-surface .business-modal-backdrop:hover {
    background: rgb(0 0 0 / 76%) !important;
}
.business-module-surface .business-modal-panel {
    border: 1px solid #3f3f46;
    background: #141417 !important;
    box-shadow: 0 30px 100px rgb(0 0 0 / 68%) !important;
}

/* Laravel and Livewire pagination must remain legible outside Tailwind views. */
.shell nav[role="navigation"] {
    margin-top: 1rem;
    color: #a1a1aa;
    font-size: .8rem;
}
.shell nav[role="navigation"] svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem;
    max-height: 1rem;
}
.shell nav[role="navigation"] a {
    color: #d4d4d8 !important;
    border-color: #3f3f46 !important;
    background: #18181b !important;
}
.shell nav[role="navigation"] a:hover {
    color: #fff !important;
    background: #27272a !important;
}
.shell nav[role="navigation"] span[aria-current="page"] > span {
    color: #fff !important;
    border-color: #3b82f6 !important;
    background: #2563eb !important;
}
.shell nav[role="navigation"] span[aria-disabled="true"] > span {
    color: #71717a !important;
    border-color: #27272a !important;
    background: #111113 !important;
}
.shell nav[role="navigation"] p { color: #a1a1aa !important; }

/* Settings navigation reserves its full button height before page content. */
.settings-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; }
.settings-tabs > .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; font-size: .95rem; line-height: 1.25; }
