:root {
  color-scheme: light; color: #1b263c; background: #f3f5f9;
  font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: #1b263c; --muted: #546278; --line: #e0e5ef; --accent: #5143bb; --nav: #171d35;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid #8f80ed; outline-offset: 3px;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.95rem, 4vw, 2.85rem); letter-spacing: -.055em; line-height: 1.12; }
h2 { font-size: 1.12rem; letter-spacing: -.02em; }
small { font-size: .81rem; color: var(--muted); }
code { font: .85rem ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.nav { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 26px 15px 15px; background: var(--nav); color: #eff0ff; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.045em; }
.nav nav { display: grid; gap: 5px; margin-top: 43px; }
.nav nav a { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c8cee4; font-weight: 640; font-size: .9rem; }
.nav nav a span { width: 18px; flex: none; font-size: 1.23rem; line-height: 1; }
.nav nav a[aria-current] { color: #fff; background: #34315f; }
.nav nav a:hover { color: #fff; background: #2d2c50; }
#nav-urgent { margin-left: auto; color: #fff; background: #b4324c; border-radius: 13px; padding: 1px 7px; font-size: .8rem; }
#nav-pending { margin-left: auto; color: #fff; background: #6858cf; border-radius: 13px; padding: 1px 7px; font-size: .8rem; }
.nav-footer { margin-top: auto; display: flex; align-items: center; gap: 9px; border-top: 1px solid #3c4560; padding: 15px 0 4px; }
.nav-footer strong, .nav-footer small { display: block; }
.nav-footer small { color: #b9c1df; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 50%; background: #39345c; font-weight: 700; }
.logout { border: 0; padding: 5px 8px; border-radius: 6px; margin-left: auto; color: white; background: #333954; font-size: 1.15rem; }
.workspace { min-width: 0; }
.content { max-width: 1550px; margin: 0 auto; padding: 30px clamp(16px, 3.1vw, 48px) 50px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-actions, .row-actions, .card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kicker { margin-bottom: 8px; color: #5143bb; font-size: .82rem; font-weight: 760; }
.subtitle { color: var(--muted); margin-top: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid #d8dfed; border-radius: 8px; background: white; color: var(--text); font-size: .87rem; font-weight: 690; white-space: nowrap; }
.button:hover { border-color: #a69ae7; color: #4937ac; }
.button.primary { color: white; border-color: #5547bd; background: #5547bd; }
.button.primary:hover { background: #4435a8; }
.button.icon { min-width: 36px; font-size: 1.2rem; padding: 0; }
.button.danger-text { color: #a92e44; }
.button.danger-text:hover { border-color: #e7a3b1; color: #8d2339; background: #fff6f8; }
.button.danger { color: white; border-color: #b4324c; background: #b4324c; }
.button.danger:hover { color: white; background: #962840; }
.button:disabled:hover { border-color: #d8dfed; color: var(--text); }
.button.inline-link { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: #4c3bad; font-weight: 650; font-size: inherit; white-space: normal; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.button.inline-link:hover { color: #36288c; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 0 0 19px; }
.stat { background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.stat.danger { background: #fff3f3; border-color: #f5dade; }
.stat.danger strong { color: #a02d45; }
.stat h2 { font-size: .86rem; color: #4b5871; }
.stat strong { display: block; margin: 9px 0 3px; font-size: 1.75rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 16px; box-shadow: 0 1px 3px #1b264309; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search:focus-within { outline: 3px solid #8f80ed; outline-offset: 2px; }
.search { display: flex; align-items: center; gap: 7px; padding: 0 7px 0 10px; border: 1px solid #d8dfed; border-radius: 8px; }
.search span { color: var(--accent); font-size: 1.35rem; line-height: 1; }
.search input { border: 0; min-width: 0; width: min(220px, 56vw); padding-inline: 2px; font-size: .87rem; }
.search input:focus-visible { outline: none; }
input[readonly], textarea[readonly] { background: #f4f6fa; color: var(--muted); }
::placeholder { color: #9aa5b8; opacity: 1; }
input, select, textarea { min-height: 36px; border-radius: 8px; border: 1px solid #d8dfed; padding: 7px 9px; background: white; color: var(--text); width: 100%; min-width: 0; }
.toolbar select { width: auto; font-size: .86rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; }
th { font-weight: 700; color: #46546e; background: #f4f6fa; border-bottom: 1px solid var(--line); white-space: nowrap; }
th, td { padding: 11px 14px; vertical-align: middle; }
td { border-bottom: 1px solid #edf0f6; }
td:first-child, th:first-child { padding-left: 17px; }
tr:hover td { background: #f9f9fd; }
.cell-title, .stack { display: grid; gap: 3px; min-width: 135px; overflow-wrap: anywhere; }
.cell-title strong, .strong-link { font-weight: 740; }
.strong-link:hover, .plain-link { color: #4c3bad; text-decoration: underline; text-underline-offset: 3px; }
.plain-link { font-weight: 650; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 14px; font-size: .8rem; font-weight: 700; width: max-content; color: #4b5971; background: #edf0f6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.good { color: #15684c; background: #e4f5ed; }
.pill.warn { color: #84500e; background: #fff1d8; }
.pill.danger { color: #a02d45; background: #fdebf0; }
.stack { min-width: 116px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 12px 17px; color: var(--muted); font-size: .86rem; }
.pager div { display: flex; gap: 7px; }
.empty { padding: 27px 20px; color: var(--muted); border-top: 1px solid var(--line); }
.empty strong { color: var(--text); }
.empty p { margin: 5px 0 8px; }
.tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid #dce1ef; }
.tabs a { border-bottom: 2px solid transparent; padding: 9px 12px; font-weight: 680; font-size: .88rem; color: var(--muted); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; }
.tabs a.active { color: #4c3bad; border-color: #5947c6; }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #edf0f6; color: #4b5971; font-size: .76rem; text-align: center; font-variant-numeric: tabular-nums; }
.tab-count.danger { background: #fdebf0; color: #a02d45; }
.metrics-loading { padding: 0 17px 15px; color: var(--muted); }
.metrics-loading:has(.table-wrap, .empty) { padding: 0; color: inherit; }
.metrics-chart { display: grid; gap: 9px; padding: 0 17px 16px; }
.metrics-probe { display: grid; gap: 5px; }
.metrics-label, .metrics-axis { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.metrics-axis { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.metrics-strip { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2px; }
.metrics-strip span { height: 20px; border-radius: 2px; background: #dce1ef; }
.metrics-strip .good { background: #38a97a; }
.metrics-strip .danger { background: #d84b63; }
.metrics-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .78rem; }
.metrics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.metrics-legend i { width: 12px; height: 12px; border-radius: 2px; background: #dce1ef; }
.metrics-legend i.good { background: #38a97a; }
.metrics-legend i.danger { background: #d84b63; }
.toolbar .metrics-site { max-width: min(100%, 260px); }
.backup-scope { width: auto; max-width: min(100%, 260px); }
#server-metrics > .card { grid-column: 1 / -1; margin-bottom: 0; }
#server-metrics .stat strong { font-size: clamp(1.25rem, 5vw, 1.75rem); }
.settings-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 17px 17px; border-top: 1px solid var(--line); }
.settings-body.form { flex-direction: row; align-items: end; }
.settings-body.form label { flex: 1 1 240px; }
.address { padding: 7px 10px; border-radius: 8px; background: #f1f2f9; color: #393072; }
.login-screen { display: grid; place-items: center; min-height: 100dvh; padding: 20px; background: linear-gradient(145deg,#161e37 0%,#202b56 70%,#342969 100%); }
.login-card { width: min(100%, 440px); background: white; padding: 29px; border-radius: 17px; box-shadow: 0 15px 80px #0b102933; }
.login-card p { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 13px; }
.form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 650; }
.form input, .form select { font-weight: 450; }
.form label small { font-weight: 480; }
.backup-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-top: 0; }
.backup-sections { display: grid; gap: 14px; min-width: 0; }
.backup-page fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; }
.backup-page fieldset[hidden], .backup-page [hidden] { display: none; }
.job-section { padding: 16px 17px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 1px 3px #1b264309; }
.job-section > legend { float: left; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0; font-weight: 750; font-size: 1rem; }
.job-store { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.job-store > legend { font-weight: 700; padding: 0 4px; }
.backup-page textarea { min-width: 0; width: 100%; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 6px; resize: vertical; }
details.more > summary { cursor: pointer; width: max-content; color: var(--accent); font-weight: 650; font-size: .88rem; }
details.more[open] > summary { margin-bottom: 10px; }
details.more[open] { display: grid; gap: 10px; }
.section-error { margin: 0; color: #9b223e; font-size: .86rem; font-weight: 600; }
.job-summary { position: sticky; top: 16px; display: grid; gap: 12px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 1px 3px #1b264309; }
.job-summary h2 { font-size: 1rem; }
.job-summary ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem; overflow-wrap: anywhere; }
.job-actions { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 1000px) { .backup-page { grid-template-columns: 1fr; } .job-summary { position: static; } }
.form .form-error { color: #9b223e; font-size: .84rem; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 26px); padding: 20px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); box-shadow: 0 20px 55px #1c21424d; }
dialog::backdrop { background: #14192e70; }
dialog.wide { width: min(760px, calc(100% - 24px)); }
dialog.narrow { width: min(440px, calc(100% - 24px)); }
.dialog-head { position: sticky; top: -20px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -20px -20px 0; padding: 16px 20px 12px; background: white; border-bottom: 1px solid var(--line); }
.dialog-actions { position: sticky; bottom: -20px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px -20px -20px; padding: 12px 20px 16px; background: white; border-top: 1px solid var(--line); }
.dialog-buttons { display: flex; gap: 8px; margin-left: auto; }
.confirm-text { margin: 14px 0 18px; color: var(--muted); }
.form .hint { margin-top: -4px; }
.notice { display: grid; gap: 8px; justify-items: start; padding: 12px; border-radius: 8px; background: #f4f2fe; color: #3b3474; font-size: .87rem; }
.runbook { margin-top: 14px; color: var(--text); font-size: .93rem; }
.runbook p, .runbook ul, .runbook ol, .runbook pre { margin: 0 0 10px; }
.runbook h3, .runbook h4 { margin: 16px 0 6px; font-size: 1rem; }
.runbook :not(pre) > code { padding: 1px 5px; border-radius: 5px; background: #f1f2f9; color: #393072; }
.runbook pre { overflow-x: auto; padding: 10px 12px; border-radius: 8px; background: #f1f2f9; }
.instructions { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.instructions p { margin: 5px 0 8px; }
#invite-code { margin: 7px 0; }
.snippet { background: #f1f2f9; border-radius: 8px; padding: 8px; display: flex; gap: 9px; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #393072; }
.snippet code { min-width: 0; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; }
.guide-list { padding-left: 22px; }
.guide-list li { padding: 10px 12px; margin-bottom: 10px; border: 1px solid transparent; border-radius: 10px; }
.guide-list li.current { border-color: #f0d9a8; background: #fffaf0; }
.guide-list li.current .pill { margin-bottom: 6px; }
.guide-list li strong { display: block; }
.guide-list li strong { color: var(--text); }
.guide-list li .snippet { color: #393072; }
summary { cursor: pointer; }
.toast { position: fixed; z-index: 50; right: 16px; bottom: 16px; background: #e5f5ed; border: 1px solid #bee6d0; color: #176442; max-width: min(370px, calc(100vw - 32px)); padding: 11px 14px; border-radius: 9px; box-shadow: 0 3px 15px #23322b1a; font-weight: 650; }
.toast.error { background: #fdebf0; color: #8d2339; border-color: #f3c8d1; }
@media (max-width: 1100px) { .layout { grid-template-columns: 173px minmax(0, 1fr); } .stats { gap: 8px; } .stat { padding: 11px; } }
@media (max-width: 820px) {
  .layout { display: block; }
  .nav { position: static; flex-direction: row; justify-content: space-between; height: auto; padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .nav nav { margin-top: 0; display: flex; flex-wrap: wrap; gap: 3px; order: 3; width: 100%; }
  .nav nav a { min-height: 34px; padding: 6px 8px; gap: 4px; }
  .nav-footer { margin: 0; border: 0; padding: 0; }
  .nav-footer small, .avatar { display: none; }
  .content { padding-top: 19px; }
  .page-head { align-items: start; flex-direction: column; gap: 9px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .snippet { align-items: start; flex-direction: column; }
  .form-columns { grid-template-columns: 1fr; }
}
.cell-label { display: none; }
@media (max-width: 630px) {
  .table-wrap table, .table-wrap tbody { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tbody tr { display: block; padding: 9px 13px; border-top: 1px solid var(--line); }
  .table-wrap td, .table-wrap td:first-child { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 6px; padding: 4px 0; border: 0; }
  .table-wrap td:first-child { display: block; padding-bottom: 7px; }
  .table-wrap td:first-child .cell-label { display: none; }
  .table-wrap td:last-child:has(.row-actions) { display: block; padding-top: 6px; }
  .table-wrap td:last-child:has(.row-actions) .cell-label { display: none; }
  .cell-content .cell-title, .cell-content .stack { min-width: 0; }
  .cell-content .pill { max-width: 100%; width: auto; }
  .cell-label { display: block; font-size: .8rem; color: var(--muted); }
  .table-wrap tr:hover td { background: transparent; }
}
.stat.warn { background: #fffaf0; border-color: #f3e2bd; }
.stat.warn strong { color: #84500e; }
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-link { display: block; min-width: 0; border-radius: 12px; }
.summary-link .stat { height: 100%; transition: border-color .15s; }
.summary-link:hover .stat { border-color: #a69ae7; }
.summary-link .stat p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.overview-grid .card { margin: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; padding: 14px 17px 17px; border-top: 1px solid var(--line); font-size: .89rem; }
.facts dt { color: var(--muted); }
.facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.changes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.changes li { display: grid; gap: 2px; padding: 10px 17px; border-bottom: 1px solid #edf0f6; font-size: .88rem; }
.changes li:last-child { border-bottom: 0; }
.profile-fields { margin: 0; }
.manual-fields { display: grid; gap: 10px; }
@media (max-width: 1100px) { .overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .summary-grid { grid-template-columns: 1fr; } }
.notice.warn { background: #fff6e5; color: #6b4310; border: 1px solid #f0d9a8; }
.policy-summary { margin-top: -6px; color: var(--muted); font-size: .84rem; }
.form fieldset.group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.form fieldset.group legend { font-weight: 700; padding: 0 4px; }
.form-columns.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.found { display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.button.chip { min-height: 28px; padding: 3px 9px; border-radius: 14px; font-size: .8rem; font-weight: 600; white-space: normal; text-align: left; }
.card-note { padding: 0 17px 10px; color: #84500e; font-size: .85rem; }
@media (max-width: 630px) { .form-columns.four { grid-template-columns: 1fr 1fr; } }
.overview-grid { margin-bottom: 16px; }
.form p.hint, .form .hint { font-size: .82rem; color: var(--muted); margin: 0; }
.content > .notice { margin-bottom: 16px; }
.notice.danger { background: #fff3f3; color: #7d2235; border: 1px solid #f5dade; }
.card-notices { display: grid; gap: 10px; padding: 0 17px 14px; }
.section-head { padding: 14px 17px 10px; border-top: 1px solid var(--line); }
.section-head h3 { font-size: .95rem; }
.section-head p { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.login-logo { display: block; width: 160px; height: auto; margin: 0 auto 20px; }
.brand-wordmark { display: block; width: 132px; height: auto; }
html:has(.login-screen:not([hidden])) { scrollbar-gutter: auto; }
.manual-records { padding: 10px 17px 14px; font-size: .86rem; color: var(--muted); }
.manual-records summary { cursor: pointer; color: #84500e; font-weight: 650; }
.manual-records ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.history-frame { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.history-chart { width: 100%; height: 160px; display: block; overflow: visible; border-bottom: 1px solid var(--line); }
.history-toolbar { padding: 4px 2px 14px; gap: 12px; }
.history-toolbar strong { margin-right: 4px; }
.history-toolbar label.check { width: auto; font-size: .86rem; color: var(--muted); }
.history-toolbar label.check input { width: 16px; height: 16px; margin: 0; flex: none; }
.history-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 4px 18px; padding: 0 17px 6px; }
.history-chart-card { min-width: 0; }
.history-head { display: grid; gap: 2px; margin-bottom: 8px; }
.history-head h3 { margin: 0; font-size: .92rem; }
.history-head small, .history-note { color: var(--muted); font-size: .78rem; }
.history-slot { padding: 0 0 16px; }
.history-slot.reloading { opacity: .45; transition: opacity .2s; }
.history-plot { position: relative; min-width: 0; outline-offset: 3px; cursor: crosshair; }
.history-hair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text); opacity: .45; pointer-events: none; }
.history-tip { position: absolute; top: 4px; z-index: 2; min-width: 190px; max-width: 280px; margin-left: 10px; padding: 8px 10px;
  background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 6px 18px #1b264322; font-size: .78rem; pointer-events: none; }
.history-tip.flip { transform: translateX(calc(-100% - 20px)); }
.history-tip-time { color: var(--muted); margin-bottom: 4px; }
.history-tip-row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 2px 6px; }
.history-tip-row i { width: 12px; height: 2px; border-radius: 1px; }
.history-tip-row strong { font-variant-numeric: tabular-nums; }
.history-tip-row span { color: var(--muted); }
.history-tip-row small { grid-column: 2 / -1; color: var(--muted); }
.history-tip-alert { margin-top: 4px; color: #a8263c; }
.history-line.previous { opacity: .4; stroke-dasharray: 4 3; }
.metrics-legend i.line-key { width: 14px; height: 2px; border-radius: 1px; }
.metrics-legend i.previous-key { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.metrics-legend i.band-key { width: 12px; height: 6px; background: #f2a600; }
.history-table summary { cursor: pointer; color: var(--muted); font-size: .8rem; margin-top: 6px; }
.history-note .pill { margin-right: 4px; }
.history-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.history-line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.history-scale { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.os-toolbar { padding: 0 17px 10px; }
.os-summary { color: var(--muted); font-size: .82rem; }
.os-ids summary { cursor: pointer; font-weight: 650; }
.os-ids ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: .84rem; }
.os-table td { vertical-align: top; }
.os-line { padding: 0 17px 10px; margin: 0; }
.image-item { border-top: 1px solid var(--line); }
.image-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 17px; cursor: pointer; }
.image-head .cell-title { flex: 1; min-width: 0; }
.image-item[open] > .image-head { background: #f7f8fc; }
.image-head { list-style: none; }
.image-head::-webkit-details-marker { display: none; }
.image-head::before { content: "▸"; color: var(--muted); }
.image-item[open] > .image-head::before { content: "▾"; }
.severity-cell { display: grid; gap: 6px; justify-items: start; }
.priority-mark { color: var(--muted); }
.priority-mark.P1, .priority-mark.P2 { color: #b42318; }
.priority-mark.P3 { color: #84500e; }
.notify-form { display: grid; gap: 10px; width: 100%; }
.weekdays { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; padding: 0; margin: 0; }
.weekdays legend { width: 100%; margin-bottom: 4px; color: var(--muted); font-size: .82rem; }
label.check { display: flex; align-items: center; gap: 6px; flex-direction: row; }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-menu { position: sticky; top: 20px; display: grid; gap: 4px; }
.settings-menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 660; font-size: .92rem; }
.settings-menu a:hover { background: #eef0f7; color: var(--text); }
.settings-menu a[aria-current] { background: #ece9fb; color: #4c3bad; }
.settings-main { min-width: 0; }
.issue-mark { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #8a94a8; }
.issue-mark.warn { background: #d8901f; }
.issue-mark.danger { background: #d84b63; }
dialog.drawer { inset: 0 0 0 auto; margin: 0; width: min(480px, 100%); height: 100dvh; max-height: 100dvh; border-width: 0 0 0 1px; border-radius: 0; }
dialog.drawer::backdrop { background: #14192e38; }
@media (max-width: 860px) { .settings-layout { grid-template-columns: 1fr; } .settings-menu { position: static; display: flex; flex-wrap: wrap; } }
.notice.danger-notice { margin: 0 17px 12px; background: #fdecef; color: #8f1f33; }
.card-subtitle { margin: 14px 17px 6px; font-size: .9rem; }
.card > .hint { padding: 0 17px 10px; }
.file-list { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 2px; font-size: .8rem; }
.muted { color: var(--muted); }
.inline-details summary { cursor: pointer; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.inline-details[open] summary { margin-bottom: 6px; }
.inline-details .chips { margin-top: 4px; }
.attention-list { list-style: none; margin: 0; padding: 0 17px 12px; display: grid; gap: 2px; }
.attention-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.attention-item:first-child { border-top: 0; }
.attention-mark { width: 10px; height: 10px; border-radius: 50%; background: #f2a600; }
.attention-item.danger .attention-mark { background: #d84b63; }
.attention-text { display: grid; gap: 2px; min-width: 0; }
.attention-text small { color: var(--muted); }
.history-alerts { width: 100%; height: 6px; display: block; margin-top: 3px; }
.history-group > summary { cursor: pointer; list-style: none; }
.history-group > summary::-webkit-details-marker { display: none; }
.history-group > summary::before { content: "▸"; color: var(--muted); margin-right: 2px; }
.history-group[open] > summary::before { content: "▾"; }
.history-current { margin-left: auto; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.one-line { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.freshness { display: grid; grid-template-columns: 62px minmax(120px, 1fr); align-items: center; gap: 1px 8px; min-width: 200px; }
.freshness small { grid-column: 2; }
.freshness-name { font-size: .78rem; color: var(--muted); }
.freshness-strip { width: 100%; height: 12px; display: block; border-radius: 3px; overflow: hidden; }
.freshness-strip .fresh { fill: #3aa57a; }
.freshness-strip .stale { fill: #d84b63; }
.freshness-strip .none { fill: var(--line); }
.history-vmui { display: inline-block; margin-top: 6px; font-size: .8rem; }
.finding-toggle::after { content: " ▸"; }
.finding-toggle.open::after { content: " ▾"; }
.finding-detail td { background: #f7f8fc; padding: 6px 14px 12px; }
.finding-list { display: grid; grid-template-columns: minmax(150px, max-content) minmax(110px, max-content) minmax(90px, max-content) 1fr; gap: 0 16px; }
.finding-row { display: contents; }
.finding-row > * { padding: 5px 0; border-bottom: 1px solid var(--line); align-self: center; }
.finding-row small { color: var(--muted); }
@media (max-width: 760px) { .finding-list { grid-template-columns: 1fr 1fr; } }
.range-controls { display: inline-flex; align-items: center; gap: 6px; }
.range-controls input { width: auto; }
.availability-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; }
.availability-summary .stat { padding: 11px; }
.proxy-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.proxy-services legend { font-size: .85rem; font-weight: 690; padding: 0 4px; }
.proxy-services small { grid-column: 1 / -1; }
.proxy-check { display: flex; gap: 8px; align-items: center; }
.proxy-services label.check { display: flex; align-items: center; gap: 8px; width: auto; margin: 0; font-weight: 500; font-size: .87rem; }
.proxy-services label.check input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; flex: none; }
.proxy-check select { flex: 1; }
.card .section-layout { padding: 4px 17px 17px; }
.section-layout .settings-main > .card:last-child { margin-bottom: 0; }
strong.danger-text, .danger-text:not(.button) { color: #a02d45; }
