/* WMC 0.7.0 – Dark UI foundation. No frontend dependencies. */
:root {
  color-scheme: dark;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  --bg: #0d0f14;
  --sidebar: #111318;
  --topbar: #0f1117;
  --surface: #15181e;
  --surface-2: #1a1e26;
  --surface-3: #20252f;
  --input: #11151b;
  --hover: #232833;
  --line: #2a2e37;
  --line-soft: #22262e;
  --text: #eef0f5;
  --subtle: #b2bac8;
  --muted: #88919f;
  --faint: #707988;
  --accent: #87a9ff;
  --accent-bg: #202b46;
  --success: #53d4a0;
  --success-bg: #173428;
  --warning: #ffcc79;
  --warning-bg: #372a1b;
  --danger: #ff7884;
  --danger-bg: #3d222a;
  --info: #83baff;
  --info-bg: #1c2d42;
  --radius: 10px;
  --radius-lg: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
::placeholder { color: var(--faint); opacity: 1; }
::selection { color: var(--text); background: #304b80; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.23; letter-spacing: -.035em; }
h1 { margin: 0 0 11px; font-size: clamp(26px, 2.1vw, 34px); font-weight: 660; }
h2 { margin: 0 0 5px; font-size: 16px; font-weight: 650; }
h3 { margin: 0 0 7px; font-size: 14px; font-weight: 630; }
p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
small { font-size: 11px; }
code { font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ui-icon { display: inline-block; width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Shared controls. Status color is meaningful; primary actions stay neutral. */
.btn, .primary, .small-btn, .topbar-download, .topbar-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 38px; padding: 9px 13px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface-2); color: var(--text);
  font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover, .small-btn:hover, .topbar-logout:hover { background: var(--hover); border-color: #394251; }
.btn-primary, .primary { background: #eef1f7; color: #171b23; border-color: #eef1f7; }
.btn-primary:hover, .primary:hover { background: #d9e0ea; color: #171b23; border-color: #d9e0ea; }
.btn-subtle, .topbar-download { background: var(--surface-2); }
.btn-ghost, .topbar-logout { background: transparent; border-color: transparent; color: var(--subtle); }
.btn-danger, .danger-btn { background: transparent; color: var(--danger); border-color: #663b42; }
.btn-danger:hover, .danger-btn:hover { background: var(--danger-bg); border-color: #8c4852; }
.btn-sm, .small-btn { min-height: 33px; padding: 7px 10px; font-size: 11px; }
.btn .ui-icon, .primary .ui-icon, .small-btn .ui-icon { width: 15px; height: 15px; }
.link-btn { display: inline-flex; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #373d49;
  border-radius: 99px; background: #22262f; color: #c3cad5; font-size: 10px; font-weight: 640; line-height: 1.3; white-space: nowrap; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.success { background: var(--success-bg); color: var(--success); border-color: #27513e; }
.pill.warning { background: var(--warning-bg); color: var(--warning); border-color: #5a4428; }
.pill.danger { background: var(--danger-bg); color: var(--danger); border-color: #6d3843; }
.pill.info { background: var(--info-bg); color: var(--info); border-color: #314760; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.up { background: var(--success); box-shadow: 0 0 0 4px rgba(83,212,160,.12); }
.dot.down { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,120,132,.12); }
.notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--subtle); font-size: 12px; }
.notice .ui-icon { width: 16px; height: 16px; margin-top: 1px; }
.notice-success { color: var(--success); border-color: #27513e; background: var(--success-bg); }
.notice-danger, .danger-notice { color: var(--danger); border-color: #603640; background: var(--danger-bg); }
.notice-info, .muted-notice { color: var(--subtle); background: var(--surface-2); }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

/* App shell */
.app-frame { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line-soft); padding: 24px 12px 16px;
  display: flex; flex-direction: column; min-height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 13px; margin: 0 0 45px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border: 1px solid #404957; border-radius: 10px; background: #2a3040; color: #f8f9fc;
  font-size: 16px; font-weight: 750; letter-spacing: -.08em; }
.side-brand-title { font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
.side-brand-title small { display: block; margin-top: 1px; font-size: 10px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.sidebar-scroll { min-height: 0; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 37px; padding: 9px 12px; border-radius: 8px;
  color: var(--muted); font-size: 12px; font-weight: 530; transition: background .15s, color .15s; }
.side-nav a:hover { color: var(--text); background: #1d222a; }
.side-nav a.active { color: #f8f9fc; background: #2a2d36; font-weight: 620; }
.side-nav .ui-icon { width: 16px; height: 16px; }
.nav-group { margin: 0 12px 11px; color: var(--faint); letter-spacing: .12em; font-size: 9px; font-weight: 680; }
.nav-group-secondary { margin-top: 31px; }
.nav-note { margin-left: auto; color: #727987; font-size: 9px; font-weight: 450; }
.sidebar-bottom { margin-top: auto; padding: 20px 10px 3px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line-soft); }
.sidebar-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.sidebar-bottom strong, .sidebar-bottom small { display: block; font-size: 10px; line-height: 1.45; }
.sidebar-bottom small, .sidebar-version { color: var(--faint); }
.sidebar-version { margin-left: auto; font-size: 10px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; flex: none; padding: 0 clamp(22px,3vw,48px); display: flex; align-items: center;
  justify-content: space-between; gap: 20px; background: var(--topbar); border-bottom: 1px solid var(--line-soft); }
.topbar-location { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--faint); }
.topbar-location strong { color: var(--subtle); font-weight: 590; }
.crumb-sep { color: #535b69; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; padding: 0 12px; }
.user-chip .ui-icon { width: 15px; height: 15px; }
.mobile-brand { display: none; }
.content-wrap { width: 100%; max-width: 1580px; margin: 0 auto; padding: 43px clamp(22px,3vw,48px) 55px; }

/* Main content and data display */
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.heading p { font-size: 12px; margin: 0; }
.eyebrow { color: var(--faint); font-size: 10px; letter-spacing: .12em; font-weight: 710; margin-bottom: 10px; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.metric { position: relative; display: flex; flex-direction: column; min-width: 0; gap: 9px; padding: 21px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.metric > span { color: var(--subtle); font-size: 11px; }
.metric strong { font-size: clamp(26px,2.3vw,33px); font-weight: 680; letter-spacing: -.055em; line-height: 1.22; font-variant-numeric: tabular-nums; }
.metric small { color: var(--faint); font-size: 10px; }
.metric.metric-success strong { color: var(--success); }
.metric.metric-danger strong { color: var(--danger); }
.metric.metric-warning strong { color: var(--warning); }
.metric.metric-info strong { color: var(--info); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-top .ui-icon { width: 16px; height: 16px; color: var(--faint); }
.panel { margin: 0 0 20px; padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.sectionhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.sectionhead p { margin: 0; font-size: 11px; }
.section-link { display: inline-flex; align-items: center; gap: 5px; color: var(--subtle); font-size: 11px; font-weight: 600; }
.section-link:hover { color: var(--accent); }
.section-link .ui-icon { width: 14px; height: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 17px; }
.dashboard-grid .panel { margin: 0; }
.dashboard-grid .full-span { grid-column: 1/-1; }
.sites { border-top: 1px solid var(--line-soft); }
.site-item { display: flex; align-items: center; gap: 15px; padding: 16px 5px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s; }
.site-item:hover { background: rgba(255,255,255,.025); }
.site-item:last-child { border-bottom: 0; }
.site-name { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.site-name strong { font-size: 12px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-name small { color: var(--faint); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-meta { min-width: 106px; }
.site-meta strong { font-size: 11px; font-weight: 600; }
.site-meta small { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; }
.chev { color: var(--faint); font-size: 22px; }
.feed { margin-top: 7px; }
.feed-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line-soft); }
.feed-row:last-child { border-bottom: none; }
.feed-row > div { min-width: 0; }
.feed-row strong { display: block; font-size: 11px; line-height: 1.65; font-weight: 540; overflow-wrap: anywhere; }
.feed-row small { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.event-circle { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.event-circle .ui-icon { width: 14px; height: 14px; }
.event-circle.danger { color: var(--danger); background: var(--danger-bg); border-color: #693942; }
.event-circle.warning { color: var(--warning); background: var(--warning-bg); border-color: #57452d; }
.event-circle.info { color: var(--info); background: var(--info-bg); border-color: #304961; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--subtle); }
.empty p { max-width: 360px; margin: 0 0 19px; font-size: 12px; }
.empty:not(:has(.btn)) p { margin-bottom: 0; }
.panel-quiet { background: #13171c; }
.site-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: -6px 0 23px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.site-tabs a { padding: 8px 12px; border-radius: 8px; font-size: 11px; color: var(--subtle); }
.site-tabs a:hover { background: var(--hover); color: var(--text); }
section[id] { scroll-margin-top: 20px; }
.breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 11px; }
.breadcrumb a:hover { color: var(--accent); }
.external { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); text-decoration: none; font-size: 12px; }
.external:hover { text-decoration: underline; text-underline-offset: 3px; }
.footnote { margin: 26px 0 0; text-align: center; color: var(--faint); font-size: 10px; }
.muted-text, .hint, .field-help { font-size: 11px; color: var(--muted); line-height: 1.7; }
.hint, .field-help { margin-top: 13px; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }

/* Tables, search and filters */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 610px; }
th { padding: 13px 13px; border-bottom: 1px solid var(--line); text-align: left; color: var(--faint);
  font-size: 10px; letter-spacing: .065em; text-transform: uppercase; font-weight: 650; }
td { padding: 15px 13px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #1a1e25; }
td strong, td small { display: block; }
td strong { font-size: 12px; font-weight: 610; }
td small { font-size: 10px; color: var(--faint); margin-top: 3px; overflow-wrap: anywhere; }
td a.cell-link:hover { color: var(--accent); }
.table-status { display: inline-flex; align-items: center; gap: 10px; }
.table-actions { text-align: right; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .searchbox { flex: 1; min-width: min(270px,100%); }
.searchbox { display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--input); border: 1px solid var(--line); border-radius: 8px; }
.searchbox .ui-icon { width: 15px; height: 15px; color: var(--faint); }
.searchbox input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 11px 0; color: var(--text); outline: none; font-size: 12px; }
.searchbox:focus-within { border-color: #6b85ae; }
.toolbar select { min-height: 41px; }

/* Forms and settings */
.stack { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.stack label { display: flex; flex-direction: column; gap: 7px; color: var(--subtle); font-size: 12px; font-weight: 580; }
input:not([type="checkbox"]):not([type="hidden"]), select, textarea { min-height: 41px; width: 100%; padding: 10px 12px;
  color: var(--text); border: 1px solid var(--line); background: var(--input); border-radius: 8px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #6685bd; }
select { cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); }
.narrow { max-width: 670px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,1fr); gap: 18px; align-items: start; }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.checkbox-row { display: flex!important; flex-direction: row!important; align-items: flex-start; gap: 11px!important; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.settings-aside { display: flex; flex-direction: column; gap: 0; }
.setting-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; color: var(--subtle); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.settings-save { align-self: flex-start; }
.credentials { display: grid; grid-template-columns: 1fr 140px; gap: 13px; margin-top: 17px; }
.credentials > div:last-child { grid-column: 1/-1; }
.credentials small { display: block; margin-bottom: 6px; font-size: 10px; color: var(--muted); }
.credentials code, .path-code { display: block; padding: 12px; background: var(--input); border: 1px solid var(--line-soft); border-radius: 8px; color: #d4d9e3; font-size: 11px; overflow-wrap: anywhere; }
.secret-panel { border-color: #394e6e; background: #141b27; }
.danger-zone { background: #151417; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-size: 12px; font-weight: 620; }
.danger-zone p { margin: 14px 0; font-size: 12px; }
.inline { display: flex; align-items: center; gap: 10px; }
.inline input { min-width: 230px; }
.snap-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.snap { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.preview { display: grid; place-items: center; height: 135px; background: #202630; color: var(--muted); font-size: 11px; }
.preview a, .preview img { width: 100%; height: 100%; display: block; }
.preview img { object-fit: cover; object-position: top; }
.snap-meta { padding: 12px; }
.snap-meta strong, .snap-meta small { display: block; }
.snap-meta strong { font-size: 11px; }
.snap-meta small { color: var(--muted); margin-top: 4px; font-size: 10px; }

/* UI styleguide and module placeholders */
.kit { display: grid; gap: 16px; }
.kit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { flex: 1; min-width: 115px; padding: 14px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.swatch .swatch-dot { display: block; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 7px; }
.tone-success { background: var(--success); }
.tone-warning { background: var(--warning); }
.tone-danger { background: var(--danger); }
.tone-info { background: var(--info); }
.tone-muted { background: var(--muted); }
.swatch strong, .swatch small { display: block; }
.swatch small { color: var(--faint); margin-top: 2px; }
.module-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.module-item { padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.module-item strong { display: block; margin-bottom: 4px; }
.module-item span { color: var(--muted); font-size: 11px; }
.module-notice { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--info); font-size: 11px; }

/* Login */
.auth-layout { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; background: var(--bg); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 27px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 16px; }
.auth-brand small { font-size: 10px; color: var(--muted); }
.login { width: min(440px,100%); }
.login .panel { padding: 35px; }
.login p { font-size: 12px; }
.login .stack button { width: 100%; margin-top: 4px; }
.login .heading { margin: 0; }

@media (max-width: 1180px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .settings-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .settings-aside .panel { margin-bottom: 0; }
}
@media (max-width: 830px) {
  .app-frame { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-brand { margin: 0 0 12px; padding: 0; }
  .sidebar-scroll { overflow-x: auto; }
  .sidebar-scroll .nav-group, .sidebar-bottom { display: none; }
  .side-nav { flex-direction: row; gap: 4px; width: max-content; }
  .side-nav a { padding: 9px 12px; min-height: 35px; }
  .nav-note { display: none; }
  .topbar { height: 58px; padding: 0 18px; }
  .topbar-location { display: none; }
  .topbar-right { margin-left: auto; }
  .mobile-brand { display: inline; }
  .content-wrap { padding: 29px 18px 40px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .user-chip { display: none; }
  .topbar-logout span { display: none; }
  .topbar-download span { display: none; }
  .heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .heading-actions { width: 100%; }
  .metrics { gap: 9px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 26px; }
  .panel { padding: 17px; }
  .sectionhead { align-items: flex-start; flex-direction: column; }
  .site-meta { display: none; }
  .settings-aside, .field-row, .kit-grid, .module-list { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
  .credentials > div:last-child { grid-column: auto; }
  .snap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inline { flex-direction: column; align-items: stretch; }
  .inline input { min-width: 0; }
  .auth-layout { padding: 16px; }
  .login .panel { padding: 26px; }
}
@media (max-width: 390px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric strong { font-size: 23px; }
  .metric > span { font-size: 10px; }
  .snap-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none!important; animation: none!important; } }

/* WMC 0.4.1 – Detailpflege, gut lesbare Statussignale und Analysebereich. */
:root { --faint:#929aaa; --muted:#a2aabb; --subtle:#c6ccda; }
.side-brand-title { font-size: 14px; }
.side-brand-title small { font-size: 11px; }
.side-nav a { font-size: 13px; }
.nav-group { font-size: 10px; }
.heading p, .sectionhead p { font-size: 13px; }
.metric > span, .metric-top { font-size: 12px; }
.metric small, .site-name small, .feed-row small, .footnote { font-size: 11px; }
.site-name strong, .feed-row strong, td strong { font-size: 13px; }
.pill { font-size: 11px; font-weight: 620; }
.btn, .small-btn, .topbar-download { font-size: 12px; }
.project-heading { align-items: flex-end; }
.project-actions { display:flex; gap:14px; align-items:flex-end; flex-direction:column; }
.project-actions form { margin:0; }
.project-badges { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
.manual-results { border-color: #385073; background:linear-gradient(160deg,#171d29 0%,var(--surface) 56%); }
.manual-result-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.manual-result-grid > div { padding:18px; background:#10151d; border:1px solid var(--line); border-radius:10px; min-width:0; }
.manual-result-grid strong { display:block; font-size:13px; margin-bottom:7px; }
.manual-result-grid p { font-size:12px; margin:0 0 9px; overflow-wrap:anywhere; }
.manual-result-grid .hint { color:var(--subtle); }
.manual-result-grid .notice { margin:11px 0 13px; }
.notice-warning { color: var(--warning); border-color:#5a4428; background:var(--warning-bg); }
.notice strong { font-weight:700; }
.notice a, .manual-result-grid a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.site-tabs { gap:4px; }
.site-tabs a { font-size:12px; }
.site-tabs a:hover { background:var(--surface-2); }
.tablewrap tbody tr:hover td { background:rgba(136,169,255,.025); }
.toolbar select { width:auto; min-width:240px; }
.panel > .toolbar select:only-of-type { flex:0 1 320px; }
@media(max-width:760px) {
  .project-actions { align-items:flex-start; width:100%; }
  .project-badges { justify-content:flex-start; }
  .manual-result-grid { grid-template-columns:1fr; }
  .toolbar select { width:100%; min-width:0; }
}

.cron-status { margin:16px 0 7px; }


/* WMC 0.4.2 – Search / filter bar refinement. */
.toolbar {
  align-items: stretch;
}
.toolbar .searchbox {
  position: relative;
  flex: 1 1 520px;
  min-width: min(320px, 100%);
  min-height: 44px;
  padding: 0 14px 0 40px;
  gap: 0;
}
.toolbar .searchbox .ui-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.toolbar .searchbox input,
.toolbar .searchbox input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 0 !important;
  height: 42px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 42px;
}
.toolbar .searchbox input[type="search"]::-webkit-search-decoration,
.toolbar .searchbox input[type="search"]::-webkit-search-cancel-button,
.toolbar .searchbox input[type="search"]::-webkit-search-results-button,
.toolbar .searchbox input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
.toolbar > select {
  flex: 0 0 340px;
  max-width: 100%;
  min-height: 44px;
}
.toolbar > .btn {
  min-height: 44px;
}
@media (max-width: 980px) {
  .toolbar .searchbox,
  .toolbar > select,
  .toolbar > .btn,
  .toolbar > a.btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* WMC 0.5.0 – Monitoring foundation */
.monitor-banner { margin: 0 0 20px; }
.monitor-banner a { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.monitor-metric-pill { display: flex; align-items: center; min-height: 44px; margin: 7px 0 3px; }
.monitoring-site-panel .sectionhead { margin-bottom: 19px; }
.monitoring-site-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.monitoring-site-summary > div { display: flex; flex-direction: column; gap: 5px; background: var(--input); border: 1px solid var(--line-soft); border-radius: 9px; padding: 15px; min-width: 0; }
.monitoring-site-summary small { color: var(--muted); font-size: 11px; }
.monitoring-site-summary strong { font-size: 23px; font-weight: 660; line-height: 1.4; }
.monitoring-site-summary .monitoring-value-small { font-size: 14px; margin: 6px 0 4px; }
.monitoring-site-summary span { color: var(--muted); font-size: 11px; }
.monitor-history { display: flex; align-items: stretch; gap: 4px; margin: 22px 0 2px; max-width: 620px; min-height: 39px; }
.monitor-tick { flex: 1; min-width: 4px; max-width: 20px; border-radius: 3px; }
.monitor-tick.is-up { background: #288a69; }
.monitor-tick.is-down { background: #d35b66; }
.monitor-tick:hover { outline: 1px solid var(--text); outline-offset: 1px; }
@media (max-width: 650px) { .monitoring-site-summary { grid-template-columns: 1fr; } }

.cancel-queued-command { margin-top: 9px; }


/* WMC 0.5.1 – Fixed sidebar and simplified brand */
.app-frame {
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.side-brand {
  display: block;
  padding: 0 13px;
  margin: 0 0 34px;
}
.side-brand-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
}
.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #252b35;
  border-radius: 999px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
@media (max-width: 830px) {
  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }
  .side-brand {
    margin: 0 0 12px;
    padding: 0;
  }
  .side-brand-title {
    font-size: 14px;
    line-height: 1.35;
  }
  .sidebar-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
  }
}

/* WMC 0.6.0 – Backup monitoring views */
.backup-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
.backup-status-grid > div { padding:15px; border:1px solid var(--line-soft); border-radius:9px; background:var(--input); min-width:0; }
.backup-status-grid span, .backup-status-grid strong { display:block; }
.backup-status-grid span { font-size:11px; color:var(--muted); margin-bottom:8px; }
.backup-status-grid strong { font-size:13px; font-weight:650; }
.backup-status-line { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:12px; margin-bottom:10px; }
@media(max-width:700px){ .backup-status-grid{grid-template-columns:1fr;} }


/* WMC 0.6.1 – Refined sidebar brand */
.side-brand {
  display: block;
  padding: 0 13px;
  margin: 0 0 34px;
}
.side-brand-title {
  display: block;
}
.side-brand-title strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.side-brand-title small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
}
@media (max-width: 830px) {
  .side-brand {
    margin: 0 0 12px;
    padding: 0;
  }
  .side-brand-title strong {
    font-size: 15px;
  }
  .side-brand-title small {
    font-size: 10px;
    margin-top: 4px;
  }
}

/* WMC 0.7.0 – Security monitoring */
.security-explain { max-width:900px; }
.security-tally { font-variant-numeric:tabular-nums; }


/* WMC 0.8.0 – individual monitor policies and e-mail diagnostics */
.monitor-policy-panel .stack { max-width: 720px; }
.monitor-policy-panel .checkbox-row { margin-bottom: 1px; }
.mail-test-form { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 18px; }
.mail-test-form .field-help { max-width: 680px; }


/* WMC 0.9.0 – manually approved backup jobs */
.backup-command-box { margin: 22px 0 21px; padding: 18px; background: var(--input); border: 1px solid var(--line); border-radius: 10px; }
.backup-command-box h3 { margin: 0 0 7px; font-size: 14px; }
.backup-command-box p { font-size: 12px; max-width: 920px; }
.backup-command-box form { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 14px; }
.backup-confirm { display:flex; align-items:flex-start; gap:10px; width:100%; color:var(--subtle); font-size:12px; line-height:1.6; }
.backup-confirm input { flex:none; margin-top:4px; accent-color:var(--accent); }
.backup-job-heading { margin: 24px 0 10px; }

/* WMC 0.10 – Native backup settings */
.native-backup-config { border:1px solid var(--line); border-radius:11px; background:var(--input); padding:22px; margin:22px 0; }
.native-backup-config .sectionhead { align-items:flex-start; }
.native-backup-form { display:flex; flex-direction:column; gap:14px; }
.native-backup-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.native-backup-grid label { display:flex; flex-direction:column; gap:8px; color:var(--subtle); font-size:12px; }
.native-backup-form .btn { align-self:flex-start; }
.native-manual-form { margin-top:20px; border-top:1px solid var(--line-soft); padding-top:19px; }
@media(max-width:650px){ .native-backup-grid { grid-template-columns:1fr; } }
