:root {
  --bg: #f5f7fb; --panel: #ffffff; --panel-2: #eef2f9; --border: #dbe2ee; --text: #121a2e; --muted: #5a6780;
    --accent: #4F46E5; --accent-text: #ffffff; --accent-soft: #e9e8fd;
    --hot: #c2410c; --hot-bg: #F97316; --hot-soft: #ffedd5;
    --ok: #15803d; --ok-soft: #dcfce7; --warn: #a35f00; --warn-soft: #fdf1dc; --bad: #c0262d; --bad-soft: #fde5e6;
    --crit: #8f1239; --info: #4b5b6b; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --brand-dark: #141338; --brand-primary: #4F46E5; --brand-secondary: #FBBF24;
  --shadow-md: 0 4px 12px rgba(16,24,40,.08), 0 2px 4px rgba(16,24,40,.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 10px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --panel: #121a2d; --panel-2: #18223a; --border: #26324d; --text: #e6ebf5; --muted: #98a5be;
    --accent: #a5a8ff; --accent-text: #12113a; --accent-soft: #232159;
    --hot: #ffa45c; --hot-bg: #F97316; --hot-soft: #3a2310;
    --ok: #4ade80; --ok-soft: #10301d; --warn: #e0a243; --warn-soft: #33270f; --bad: #f0686e; --bad-soft: #3a1b1d;
    --crit: #ff7aa2; --info: #9fb0c0; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --panel: #121a2d; --panel-2: #18223a; --border: #26324d; --text: #e6ebf5; --muted: #98a5be;
    --accent: #a5a8ff; --accent-text: #12113a; --accent-soft: #232159;
    --hot: #ffa45c; --hot-bg: #F97316; --hot-soft: #3a2310;
    --ok: #4ade80; --ok-soft: #10301d; --warn: #e0a243; --warn-soft: #33270f; --bad: #f0686e; --bad-soft: #3a1b1d;
    --crit: #ff7aa2; --info: #9fb0c0; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
pre { white-space: pre-wrap; word-break: break-word; margin: 0; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
.boot { padding: 40px; color: var(--muted); }

/* panels */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g4 { grid-template-columns: 1fr; } }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 26px; font-weight: 650; margin-top: 2px; }
.stat .hint { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.stack > * + * { margin-top: 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.hr { border-top: 1px solid var(--border); margin: 14px 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }

/* forms */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.field .help { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 400; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=email], input[type=time], input[type=search], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit;
}
textarea { font-family: var(--mono); font-size: 12.5px; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { margin: 0; }
button, .btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
button:hover, .btn:hover { background: var(--panel-2); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--bad); border-color: var(--bad); }
button.small, .btn.small { padding: 3px 9px; font-size: 12.5px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent); }

/* badges */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.pass, .badge.success, .badge.ok, .badge.active { background: var(--ok-soft); color: var(--ok); }
.badge.warn, .badge.queued, .badge.running, .badge.expired { background: var(--warn-soft); color: var(--warn); }
.badge.fail, .badge.failure, .badge.error, .badge.revoked { background: var(--bad-soft); color: var(--bad); }

/* verdict banner */

/* bars and charts */
.bar { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* diff viewer */

/* finding list */

/* misc */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
.tabs button.on { border-bottom-color: var(--accent); color: var(--accent); }
.notice { padding: 10px 12px; border-radius: 6px; background: var(--accent-soft); margin-bottom: 12px; }
.notice.warn { background: var(--warn-soft); } .notice.bad { background: var(--bad-soft); } .notice.ok { background: var(--ok-soft); }
.secret { font-family: var(--mono); background: var(--panel-2); padding: 10px; border-radius: 6px; word-break: break-all; user-select: all; }
/* Public demo (pre) notice on the sign-in page (platform STANDARD.md §14). */
.demo-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--warn); border-radius: 10px; background: var(--warn-soft); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.demo-badge { flex: none; padding: 4px 10px; border-radius: 6px; background: var(--warn); color: var(--panel); font-weight: 800; font-size: 13px; letter-spacing: .12em; }
.demo-banner a { color: var(--accent); font-weight: 600; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; max-width: calc(100vw - 32px); }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.toast.error { border-left-color: var(--bad); } .toast.ok { border-left-color: var(--ok); }
.modal-bg { position: fixed; inset: 0; background: rgba(10,15,20,.5); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal.wide { max-width: 880px; }
.modal { background: var(--panel); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* sign-in providers page */
.card h3 { margin-top: 16px; }
textarea[rows="2"], textarea[rows="3"] { min-height: 64px; }
details > summary { cursor: pointer; margin: 14px 0 8px; font-weight: 600; }

/* ── sign-in (suite standard layout, as in FacturAres / ARES Invoice) ──────────
   A brand panel beside the form. The panel keeps the brand colours in both
   themes; the form side follows the theme tokens. */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--bg); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 52px; color: #dbe6ff;
  background: linear-gradient(150deg, #141338 0%, #3730A3 55%, #4F46E5 100%); }
.auth-aside::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(255, 255, 255, .07); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-logo { height: 56px; width: auto; align-self: flex-start; margin-left: -6px; }
.auth-aside h2 { color: #fff; font-size: 29px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; font-weight: 700; }
.auth-aside p { margin: 0 0 24px; color: #d3d4ff; font-size: 16px; line-height: 1.5; max-width: 30rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; color: #eef3ff; font-size: 15px; line-height: 1.45; }
.auth-points svg { flex: none; margin-top: 1px; color: var(--brand-secondary); }
.auth-foot { font-size: 12.5px; color: #aec4f5; }
.auth-main { display: flex; flex-direction: column; padding: 24px 32px 40px; }
.auth-top { display: flex; justify-content: flex-end; min-height: 30px; }
.auth-panel { width: 100%; max-width: 420px; margin: auto; padding-top: 24px; }
.auth-panel h1 { font-size: 25px; font-weight: 660; letter-spacing: -0.015em; margin: 0 0 6px; }
.auth-intro { margin: 0 0 18px; color: var(--muted); }
.auth-panel .card { box-shadow: var(--shadow-md); }
.auth-below { margin-top: 16px; }
.auth-about { margin: 20px 0 0; text-align: center; font-size: 13px; }
.auth-about a { color: var(--muted); }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 24px 24px 28px; }
  .auth-logo { height: 44px; }
  .auth-aside h2 { font-size: 21px; margin-top: 16px; }
  .auth-aside p { margin-bottom: 0; }
  .auth-points, .auth-foot { display: none; }
}


/* ── site layout: top bar, page, admin area, footer ───────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 8px; z-index: 60; background: var(--panel); padding: 6px 10px; border-radius: 6px; }
.icon { flex: none; }
.row.tight { gap: 6px; }
.topbar-site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.site-logo { height: 38px; width: auto; display: block; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; } :root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block; } :root:not([data-theme="light"]) .only-light { display: none; } }
.topnav { display: flex; gap: 2px; }
.topnav a { padding: 8px 11px; border-radius: 8px; color: var(--text); font-weight: 550; white-space: nowrap; }
.topnav a:hover { background: var(--panel-2); text-decoration: none; }
.topnav a.active { color: var(--accent); background: var(--accent-soft); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); position: relative; }
.icon-btn:hover { background: var(--panel-2); text-decoration: none; }
.bell .dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot-bg); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; }
button.ghost, .btn.ghost { background: transparent; }
.menu-btn { display: none; }
.page { flex: 1; width: 100%; padding-top: 24px; padding-bottom: 60px; }
.admin-shell { flex: 1; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 60px; width: 100%; }
.admin-side { position: sticky; top: 86px; align-self: start; }
.admin-side a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--text); font-size: 13.5px; }
.admin-side a:hover { background: var(--panel-2); text-decoration: none; }
.admin-side a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.admin-side .sect { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 10px 4px; }
.admin-side .sect:first-child { margin-top: 0; }
.admin-main { min-width: 0; }
.site-foot { border-top: 1px solid var(--border); padding: 18px 0; color: var(--muted); font-size: 13px; background: var(--panel); }
.site-foot a { color: var(--muted); }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar .sub { color: var(--muted); max-width: 760px; }

@media (max-width: 1060px) {
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .topbar-in { flex-wrap: wrap; height: auto; min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
  .site-logo { height: 32px; }
  .topnav { display: none; order: 10; width: 100%; flex-direction: column; padding-bottom: 6px; }
  .topbar-site.open .topnav { display: flex; }
  .hide-sm { display: none; }
  .admin-shell { grid-template-columns: 1fr; gap: 12px; }
  .admin-side { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .admin-side .sect { display: none; }
  .admin-side a { white-space: nowrap; }
  .page { padding-top: 16px; }
  .wrap { padding: 0 14px; }
}

/* ── public product page ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 40px 40px 34px; color: #fff; margin-bottom: 26px;
  background: linear-gradient(135deg, #141338 0%, #3730A3 55%, #4F46E5 100%); }
.hero::after { content: ''; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; max-width: 760px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-cta a { color: #fff; }
.btn.on-dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--text); font-size: 13.5px; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip .n { color: var(--muted); font-size: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.feature h3 { font-size: 15px; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }
/* The top bar never wraps its items; the search box gives way first. */
.topbar-in .row { flex-wrap: nowrap; }
.topbar-in > a { flex: none; }
@media (max-width: 1000px) { .topnav a { padding: 8px 8px; } }
@media (max-width: 480px) {
  .topbar-in { gap: 6px; }
  .site-logo { height: 26px; }
  .topbar-in .btn.small { padding: 4px 8px; }
  .icon-btn { width: 34px; height: 34px; }
}
/* Language switch (ES | EN), as in FacturAres: a pill, the active language filled with the brand colour */
.lang-switch { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--panel); gap: 2px; }
.lang-switch button { font-size: 12px; font-weight: 650; letter-spacing: .04em; color: var(--muted); padding: 3px 10px; border: 0; border-radius: 999px; line-height: 1.4; background: transparent; min-height: 0; cursor: pointer; }
.lang-switch button:hover { color: var(--text); background: var(--panel-2); }
.lang-switch button.active { background: var(--brand-primary); color: #fff; cursor: default; }
.lang-switch button:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 1px; }

.topbar-in > .icon-btn, .topbar-in > .row, .topbar-in > .lang-switch { flex: none; }

/* ── app pieces ──────────────────────────────────────────────────────────── */
.bar > span.warn { background: var(--warn); } .bar > span.bad { background: var(--bad); }
.badge.static { background: var(--accent-soft); color: var(--accent); }
.badge.muted { color: var(--muted); }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.value.sm { font-size: 17px; overflow-wrap: anywhere; }
button.th { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.loading { display: flex; align-items: center; gap: 10px; padding: 22px; color: var(--muted); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
pre.code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; max-height: 460px; overflow-y: auto; }
pre.code.output { white-space: pre-wrap; }
.howread { margin-top: 4px; color: var(--muted); }
.howread > summary { display: inline-flex; gap: 6px; align-items: center; font-weight: 550; font-size: 13px; }
.howread .cmd { margin: 10px 0; }
.howread .cmd pre { margin-top: 4px; font-size: 12px; max-height: 240px; }
.use { display: grid; grid-template-columns: 70px auto; gap: 8px; align-items: center; justify-content: end; }
.demo-badge.sm { font-size: 11px; padding: 2px 7px; }
.chip.sm { padding: 2px 9px; font-size: 12px; }
.chip-x { border: 0; background: none; padding: 0 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1; }
.seg button { padding: 6px 12px; }
.cmdline { max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--mono); }
.small.mono, .mono.small { font-size: 12px; }

/* hosts */
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.host-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); margin: 0; }
.host-card:hover { border-color: var(--accent); text-decoration: none; }
.host-meters { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; align-items: center; }
.os-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: #64748b; flex: none; }
.os-icon.lg { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
.os-icon.linux { background: #d97706; } .os-icon.macos { background: #475569; } .os-icon.windows { background: #4F46E5; }
.host-head { margin-bottom: 12px; } .host-head h1 { margin: 0; }
.host-head > .row + .row { margin-top: 6px; }
.host-tabs { position: sticky; top: 62px; z-index: 10; background: var(--bg); padding-top: 6px; flex-wrap: nowrap; overflow-x: auto; gap: 0; scrollbar-width: thin; }
.host-tabs a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 9px; font-size: 13.5px; border-bottom: 2px solid transparent; color: var(--text); font-weight: 550; white-space: nowrap; }
.host-tabs a:hover { text-decoration: none; color: var(--accent); }
.host-tabs a.on { border-bottom-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) { .host-tabs { flex-wrap: nowrap; overflow-x: auto; top: 0; } }

/* summary */
.summary-head .lead { font-size: 16.5px; line-height: 1.55; margin: 0 0 8px; }
.count-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.count { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); }
.count:hover { border-color: var(--accent); text-decoration: none; }
.count strong { font-size: 20px; } .count span { color: var(--muted); font-size: 12.5px; } .count span.bad-text { color: var(--bad); font-weight: 600; }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.findings li { display: flex; gap: 8px; align-items: baseline; }
.findings li span:nth-child(2) { flex: 1; }
.top { margin: 0; padding-left: 20px; } .top li { margin: 3px 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.learn { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
@media (max-width: 600px) { .learn { grid-template-columns: 1fr; } }
.learn-card { margin: 0; }
.learn-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 4px; }
.learn-card ul { margin: 0; padding-left: 18px; }
.learn-card .try { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 3px 0; }
.learn-card .try code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }

/* logs */
table.logs td { padding: 5px 8px; }
table.logs .msg { white-space: pre-wrap; word-break: break-word; font-size: 12px; }
tr.lvl-error td, tr.lvl-critical td, tr.lvl-alert td, tr.lvl-emergency td { background: color-mix(in srgb, var(--bad) 6%, transparent); }
tr.lvl-warning td { background: color-mix(in srgb, var(--warn) 5%, transparent); }

/* firewall */
.fw-state { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.fw-state.on { background: var(--ok-soft); color: var(--ok); } .fw-state.off { background: var(--bad-soft); color: var(--bad); }

/* traffic */
.traffic-chart { width: 100%; height: 150px; display: block; margin: 8px 0; }
.traffic-chart .grid { stroke: var(--border); stroke-dasharray: 3 4; }
.traffic-chart path { fill: none; stroke-width: 2; }
.traffic-chart .rx, .rx { stroke: #4F46E5; color: #4F46E5; } .traffic-chart .tx, .tx { stroke: #F97316; color: #F97316; }
.traffic-chart .lbl { fill: var(--muted); font-size: 11px; }

/* relations */
.rel-scroll { overflow-x: auto; }
.rel-graph { display: block; font-size: 12px; }
.rel-graph .col-title { fill: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.rel-graph .edge { fill: none; stroke: var(--border); stroke-width: 1.4; }
.rel-graph .node { cursor: pointer; }
.rel-graph .node rect { fill: var(--panel); stroke: var(--border); stroke-width: 1.2; }
.rel-graph .node text { fill: var(--text); }
.rel-graph .node.user rect { stroke: #7c3aed; } .rel-graph .node.service rect { stroke: #4F46E5; } .rel-graph .node.process rect { stroke: #0891b2; }
.rel-graph .node.port rect { stroke: #F97316; } .rel-graph .node.address rect, .rel-graph .node.interface rect { stroke: #16a34a; } .rel-graph .node.peer rect { stroke: #64748b; stroke-dasharray: 4 3; }
.rel-graph .node.disk rect { stroke: #4F46E5; } .rel-graph .node.partition rect { stroke: #0891b2; } .rel-graph .node.filesystem rect { stroke: #16a34a; }
.rel-graph.focusing .node:not(.hot) { opacity: .3; } .rel-graph.focusing .edge:not(.hot) { opacity: .15; }
.rel-graph .edge.hot { stroke: var(--accent); stroke-width: 2; }
.rel-graph .node:focus { outline: none; } .rel-graph .node:focus rect { stroke-width: 2.4; }

/* public page */
.public-top { border-bottom: 1px solid var(--border); background: var(--panel); }
.public-top .wrap { height: 64px; }
.public main { padding-top: 26px; padding-bottom: 50px; }
.btn.lg { padding: 10px 20px; font-size: 15px; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 22px; color: #e6edff; }
.hero-points li { display: flex; gap: 8px; align-items: flex-start; }
.hero-points .icon { color: var(--brand-secondary); margin-top: 3px; }
.cta-band { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }

/* ── health, reports and AI */
.badge.ai { background: linear-gradient(135deg, #4F46E5, #7c3aed); color: #fff; letter-spacing: .03em; margin-right: 4px; }
.refresh select { padding: 2px 6px; min-height: 0; width: auto; }
.refresh-count { min-width: 3.2em; font-variant-numeric: tabular-nums; }
.refreshing { opacity: .65; transition: opacity .2s; }
ul.issues { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
ul.issues > li { border-left: 4px solid var(--border); padding: 6px 10px; background: var(--panel-2); border-radius: 0 6px 6px 0; }
ul.issues > li.critical { border-left-color: var(--bad); } ul.issues > li.warning { border-left-color: var(--warn); } ul.issues > li.info { border-left-color: var(--accent); }
ul.issues pre.code { margin-top: 6px; }
ul.recs { list-style: none; padding: 0; display: grid; gap: 8px; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
.md th, .md td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--panel-2); }
.md blockquote { border-left: 4px solid var(--ok); margin: 8px 0; padding: 4px 10px; color: var(--muted); }
.report-md h2 { font-size: 18px; margin-top: 22px; } .report-md h3 { font-size: 15px; }
.ai-card { border-top: 3px solid #7c3aed; margin-bottom: 14px; }
.ai-card h2 { margin: 0; }
.card.step h3 { margin: 0; } .card.step h4 { margin: 10px 0 4px; font-size: 13px; color: var(--muted); }

.bad-text { color: var(--bad); }


/* ── app shell: left side menu ─────────────────────────────────────────────── */
:root { --side-w: 252px; --side-bg: #141338; --side-text: #c9d4ea; --side-muted: #7f8db0; --side-hover: rgba(255,255,255,.06); --side-active: rgba(79,70,229,.28); }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-text); border-right: 1px solid rgba(255,255,255,.06); z-index: 40; }
.side-brand { padding: 18px 18px 10px; }
.side-brand .site-logo { height: 34px; }
/* The side menu is always dark: show the logo for dark backgrounds in both themes. */
.sidebar .only-light { display: none !important; } .sidebar .only-dark { display: block !important; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.side-sect { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); margin: 18px 10px 6px; font-weight: 650; }
.side-sect:first-child { margin-top: 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-weight: 550; font-size: 14px; }
.side-link:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.side-link.active { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 #FBBF24; }
.side-link .icon { opacity: .85; flex: none; }
.side-ic { width: 17px; flex: none; }
.side-hosts { display: grid; gap: 1px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.side-host { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--side-muted); font-size: 13px; min-width: 0; }
.side-host .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-host:hover { color: #fff; background: var(--side-hover); text-decoration: none; }
.side-host.active { color: #fff; background: var(--side-hover); font-weight: 600; }
.side-host.more { font-size: 12px; }
.side-host .dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; flex: none; }
.side-host .dot.ok { background: #FBBF24; } .side-host .dot.bad { background: #f0686e; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 14px 14px; display: grid; gap: 10px; }
.side-foot .lang-switch { background: transparent; border-color: rgba(255,255,255,.18); }
.side-foot .lang-switch button { color: var(--side-text); }
.side-foot .lang-switch button:hover { background: var(--side-hover); color: #fff; }
.side-foot .icon-btn { color: var(--side-text); border-color: rgba(255,255,255,.18); background: transparent; }
.side-user { display: flex; align-items: center; gap: 8px; }
.side-user > a { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; color: #fff; }
.side-user > a:hover { text-decoration: none; }
.side-user .who { display: grid; min-width: 0; line-height: 1.25; }
.side-user .who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.side-user .who .muted { color: var(--side-muted); text-transform: capitalize; }
.side-user .avatar { background: #4F46E5; color: #fff; }
.side-user button.ghost { color: var(--side-text); border-color: rgba(255,255,255,.18); }
.side-user button.ghost:hover { background: var(--side-hover); color: #fff; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.main-col .page { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 60px; }
.main-col .site-foot { padding: 16px 32px; background: transparent; }
.mobile-bar { display: none; }
.side-backdrop { display: none; }
.host-tabs { top: 0; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(84vw, 290px); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
  .shell.menu-open .sidebar { transform: none; }
  .shell.menu-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(5,10,25,.45); z-index: 35; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 12px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .mobile-bar .menu-btn { display: inline-flex; }
  .mobile-bar .site-logo { height: 30px; }
  .main-col .page { padding: 18px 14px 50px; }
  .main-col .site-foot { padding: 14px; }
  .host-tabs { top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ── readability pass ──────────────────────────────────────────────────────── */
body { font: 14.5px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h2 { font-size: 16.5px; font-weight: 650; letter-spacing: -.005em; }
h3 { font-size: 14.5px; font-weight: 650; }
:root { --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06); }
.card { padding: 18px 20px; border-color: color-mix(in srgb, var(--border) 85%, transparent); }
.card > h2:first-child, .card > .row:first-child > h2 { margin-bottom: 10px; }
.topbar { margin-bottom: 22px; align-items: flex-end; }
.topbar .sub { font-size: 14px; line-height: 1.55; margin-top: 2px; }
.stat .value { font-size: 28px; letter-spacing: -.01em; }
th { font-size: 11.5px; background: var(--panel-2); position: sticky; top: 0; }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
td { font-size: 13.5px; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
tr.clickable { cursor: pointer; }
button, .btn { border-radius: 8px; font-weight: 550; transition: background .12s, border-color .12s, box-shadow .12s; }
button.primary, .btn.primary { box-shadow: 0 1px 2px rgba(79,70,229,.25); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=email], input[type=search], select, textarea { border-radius: 8px; }
.badge { font-size: 11.5px; padding: 2px 9px; }
.notice { border-radius: 10px; padding: 12px 14px; line-height: 1.55; }
pre.code { border-radius: 8px; }
.host-head { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.host-tabs { margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.host-tabs a { padding: 10px 11px; }
.modal { border-radius: 14px; }

/* ── charts (AI usage & cost); palette validated light and dark ──────────────── */
.viz-root, .card { --series-1: #257de0; --series-2: #f47230; }
:root[data-theme="dark"] .card { --series-1: #338ced; --series-2: #e76624; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .card { --series-1: #338ced; --series-2: #e76624; } }
.viz-wrap { position: relative; }
svg.viz { width: 100%; height: auto; display: block; overflow: visible; }
svg.viz .grid { stroke: var(--border); stroke-width: 1; opacity: .7; }
svg.viz .axis { stroke: var(--muted); stroke-width: 1; opacity: .6; }
svg.viz .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.viz .tick.strong { fill: var(--text); font-weight: 600; }
svg.viz path.series-1 { fill: var(--series-1); } svg.viz path.series-2 { fill: var(--series-2); }
svg.viz .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.viz .line.series-1 { stroke: var(--series-1); }
svg.viz .dot.series-1 { fill: var(--series-1); stroke: var(--panel); stroke-width: 2; }
svg.viz .projection { stroke: var(--series-1); stroke-width: 2; stroke-dasharray: 5 5; opacity: .8; }
svg.viz .budget { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 4; }
svg.viz .hit { fill: transparent; cursor: crosshair; }
svg.viz .hit:hover { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.viz-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-md); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; min-width: 170px; z-index: 5; }
.viz-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: -4px 0 8px; }
.viz-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.viz-tip .sw { width: 9px; height: 9px; }
.sw.series-1 { background: var(--series-1); } .sw.series-2 { background: var(--series-2); }
.sw.dash { height: 0; border-top: 2px dashed var(--series-1); border-radius: 0; width: 16px; }
.sw.dash.muted-sw { border-top-color: var(--muted); }
.share { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.share > span { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }
/* Page actions stay on one line beside the title. */
.topbar > .row { flex-wrap: nowrap; }
ul.insights { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.insights li { display: flex; gap: 10px; align-items: baseline; line-height: 1.55; }
ul.insights .badge { flex: none; min-width: 74px; text-align: center; }

@media print {
  .sidebar, .mobile-bar, .side-backdrop, .site-foot, .host-tabs, .no-print, .topbar .row, .skip { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; border: 1px solid #ccc; }
  body { background: #fff; color: #000; }
  pre.code { white-space: pre-wrap; }
}
@media print { .shell { display: block; } .main-col .page { padding: 0; max-width: none; } }

/* ── ARES Ruta: the route screen (phone first) ─────────────────────────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center { text-align: center; }
.block { display: block; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.run { max-width: 760px; margin: 0 auto; }
.run-top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-bottom: 8px; }
.run-head { flex-wrap: nowrap; gap: 6px; }
.run-head > a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); flex: none; }
.run-head > a:hover { background: var(--panel-2); }
.run-title { min-width: 0; }
.run-title h1 { margin: 0; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-state { margin: 8px 0; }
.run-mid { display: flex; flex-direction: column; gap: 6px; }
.run-mid .notice, .run-mid .run-banner { margin: 0; }
.run-top .stop-nav { margin-top: 6px; }
.run-banner { text-align: center; margin: 14px 0; }
.run-banner p { margin: 8px 0 0; }
button.xl { width: 100%; padding: 16px 20px; font-size: 18px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
button.attention, .btn.attention { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.gps { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px 2px 7px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }
.gps.on { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.gps.off { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.stop-nav { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.stop-nav .icon-btn { width: 48px; height: 48px; }
.stop-id { text-align: center; min-width: 0; }
.stop-id h2 { margin: 2px 0 0; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 4px; overflow-wrap: anywhere; }
.stop-dots { display: flex; justify-content: center; gap: 2px; margin: 4px 0 2px; flex-wrap: wrap; }
.stop-dots button { width: 28px; height: 24px; padding: 0; border: 0; background: transparent; position: relative; border-radius: 6px; }
.stop-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--border); }
.stop-dots button.done::after { background: var(--ok); }
.stop-dots button.here::after { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stop-tools { gap: 8px; min-height: 0; }
.stop-tools button { display: inline-flex; align-items: center; gap: 5px; }
.wait { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.wait-time { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 44px; }
.wait.over { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .wait.over { animation: none; outline: 2px solid var(--bad); } }
.run-body { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; touch-action: pan-y; }
.pax { display: flex; gap: 10px; align-items: stretch; background: var(--panel); border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: 12px; padding: 10px 10px 10px 12px; box-shadow: var(--shadow); }
.pax.done.yes { border-left-color: var(--ok); } .pax.done.no { border-left-color: var(--bad); } .pax.done.late { border-left-color: var(--warn); }
.pax.blocked { opacity: .6; }
.pax-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pax-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 16px; }
.pax-notes { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 4px 8px; width: fit-content; max-width: 100%; }
.pax-notes .icon { flex: none; margin-top: 2px; }
.pax-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.pax-links .chip { cursor: pointer; }
.pax-marks { display: flex; gap: 6px; flex: none; align-items: center; }
.mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 68px; min-height: 64px; padding: 4px; border-radius: 12px; border: 2px solid var(--border); background: var(--panel); color: var(--muted); font-size: 10.5px; line-height: 1.15; font-weight: 600; text-align: center; }
.mark span { overflow-wrap: anywhere; }
.mark.yes:not(:disabled):hover, .mark.yes.on { border-color: var(--ok); color: var(--ok); }
.mark.no:not(:disabled):hover, .mark.no.on { border-color: var(--bad); color: var(--bad); }
.mark.late:not(:disabled):hover, .mark.late.on { border-color: var(--warn); color: var(--warn); }
.mark.yes.on { background: var(--ok-soft); } .mark.no.on { background: var(--bad-soft); } .mark.late.on { background: var(--warn-soft); }
.mark:disabled { opacity: .55; }
@media (max-width: 560px) {
  .pax { flex-direction: column; gap: 8px; }
  .pax-marks { width: 100%; }
  .mark { flex: 1 1 0; min-width: 0; width: auto; min-height: 58px; font-size: 12px; padding: 4px 6px; }
}
.feed { display: flex; flex-direction: column; }
.feed-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: 0; }
.feed-item.unread { background: var(--warn-soft); margin: 0 -8px; padding: 10px 8px; border-radius: 8px; }
.quote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--accent); background: var(--panel-2); border-radius: 0 8px 8px 0; }
.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; }
.menu-item > span { display: flex; flex-direction: column; }
.route-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.route-card { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; color: var(--text); box-shadow: var(--shadow); }
.route-card:hover { border-color: var(--accent); text-decoration: none; }
.route-card.active { border-color: var(--ok); }
.route-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.route-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.route-main strong { font-size: 16px; }
.route-state { display: flex; align-items: center; gap: 6px; flex: none; color: var(--muted); }
.section-title { margin: 18px 0 10px; font-size: 14px; color: var(--muted); }
a.tile { color: var(--text); display: block; } a.tile:hover { border-color: var(--accent); text-decoration: none; }
.fam-route { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fam-line { font-size: 16px; font-weight: 600; }
.fam-stops { list-style: none; margin: 0; padding: 0; }
.fam-stops li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; position: relative; }
.fam-stops li + li::before { content: ""; position: absolute; left: 6px; top: -10px; height: 20px; width: 2px; background: var(--border); }
.fam-stops .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); background: var(--panel); position: relative; z-index: 1; }
.fam-stops li.done .dot { background: var(--ok); border-color: var(--ok); }
.fam-stops li.mine .nm { font-weight: 650; }
.fam-stops .nm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stops-edit { display: flex; flex-direction: column; gap: 8px; }
.stop-row { display: grid; grid-template-columns: 28px minmax(140px, 2fr) 110px minmax(90px, 1fr) minmax(90px, 1fr) 34px 34px 34px; gap: 6px; align-items: center; }
.stop-row .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.stop-row.centre { grid-template-columns: 28px minmax(140px, 1fr) 110px; background: var(--panel-2); border-radius: 10px; padding: 8px 6px; margin: 0 -6px; }
.stop-row .fixed { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-weight: 600; }
.stop-row .icon-btn { width: 34px; height: 34px; border: 1px solid var(--border); }
@media (max-width: 760px) { .stop-row { grid-template-columns: 28px minmax(0, 1fr) 100px; } .stop-row input[inputmode=decimal] { grid-column: span 1; } .stop-row > :nth-child(4) { grid-column: 2; } }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.checks.tall { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.check { align-items: flex-start; } .check input { margin-top: 3px; }
.help-part + .help-part { margin-top: 14px; }
.help-part ol, .card > ol { margin: 0; padding-left: 22px; } .help-part li, .card > ol li { margin: 4px 0; }
.value.sm .badge { font-size: 14px; }
@media (max-width: 860px) { .run-top { top: 56px; } }
