/* TechRadius Console — own CSS, no external assets (strict CSP). Ported from Wi5River Admin: its top bar, then the page content in the VeeCloud Console design. */
/* Self-hosted variable fonts (latin subset, SIL Open Font License) — the CSP allows fonts from 'self' only. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }
:root {
  --page: #f1f4f8; --card: #ffffff; --line: #e6eaf0; --line-2: #eef1f5; --head: #f8fafc;
  --ink: #0f172a; --ink-2: #1e293b; --text: #334155; --muted: #64748b; --faint: #94a3b8;
  --blue: #206bc4; --blue-600: #1a5fb4; --blue-50: #eaf2fd; --blue-100: #dbe8fb; --blue-lt: #9ec2f0;
  --green: #16a34a; --green-ink: #15803d; --green-50: #e7f8ee; --green-100: #dcfce7;
  --red: #dc2626; --red-ink: #b91c1c; --red-50: #fdecec; --red-100: #fee2e2;
  --amber: #d97706; --amber-ink: #a15c07; --amber-50: #fff7e6; --amber-100: #fef3c7;
  --orange: #ea6a2f; --orange-50: #fff1e8; --teal: #0d9488; --teal-50: #e6f6f4; --violet: #5b4bd1;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--page); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.ico { display: inline-block; vertical-align: -3px; flex: none; }
.mono, code { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
strong, b { color: var(--ink-2); font-weight: 650; }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 22px;
  background: #fff; border-bottom: 1px solid var(--line); }
.topbar-brand { display: flex; align-items: center; gap: 9px; margin-right: 14px; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.topbar-brand:hover { text-decoration: none; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f7fd8, #1a5fb4); box-shadow: 0 2px 6px rgba(32, 107, 196, .35); }
.topbar-apps { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.topbar-apps:hover { background: #eef2ff; color: #1e40af; }
.topbar-sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px 0 4px; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav-item, .topnav-dd > button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px;
  border-radius: 7px; border: 0; background: transparent; color: #475569; font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; }
.topnav-item, .topnav-dd > button { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.topnav-item .chev, .topnav-dd > button .chev { color: var(--faint); margin-left: -1px; }
.topnav-item.active, .topnav-dd.active > button { background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(32, 107, 196, .3); }
.topnav-item.active .chev, .topnav-dd.active > button .chev { color: #fff; }
.topnav-item.active::after, .topnav-dd.active > button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -10px; height: 2px;
  border-radius: 2px; background: var(--blue); }
.topnav-item.active:hover, .topnav-dd.active > button:hover, .topnav-dd.active.open > button { background: var(--blue); color: #fff; }
.topnav-item.active .ico, .topnav-dd.active > button .ico, .topnav-dd.active > button .chev { color: #fff !important; }
.topnav-item.accent { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.topnav-dd { position: relative; }
.dd-panel { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 60; }
.dd-panel.right { left: auto; right: 0; }
.open > .dd-panel { display: block; }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; white-space: nowrap;
  border: 0; background: none; width: 100%; font-family: var(--sans); cursor: pointer; text-align: left; }
.dd-item .ico { color: var(--muted); }
.dd-item { transition: background-color .12s ease, color .12s ease; }
.dd-item.active { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.dd-item.active .ico { color: var(--blue); }
.dd-item.danger { color: var(--red-ink); } .dd-item.danger .ico { color: var(--red-ink); }
.dd-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dd-head { padding: 8px 10px 10px; }
.dd-head .n { font-weight: 650; color: var(--ink); } .dd-head .r { color: var(--muted); font-size: 12.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #475569; }
.icon-btn:hover { background: #eef2ff; color: #1e40af; text-decoration: none; }
.count-badge { position: absolute; top: -3px; right: -5px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.account-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.account-switch .ico { color: var(--muted); }
.user-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-family: var(--sans); }
.user-trigger:hover, .topnav-dd.open > .user-trigger { background: #eef2ff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-id { text-align: left; line-height: 1.15; }
.user-id .n { font-weight: 650; color: var(--ink); font-size: 13px; } .user-id .r { color: var(--muted); font-size: 12px; font-weight: 600; }


/* ══════════════════════════════════════════════════════════════════════════════════════════════
   Page content — VeeCloud Console design (page header, filter bar, card + table, badges, pagination,
   detail page with sticky sidebar and pill tabs). The top bar above is Wi5River's own and stays as is.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --vc-brand: #1e40af; --vc-brand-hover: #1e3a8a; --vc-brand-soft: #eef2ff;
  --vc-ink: #0f172a; --vc-ink-2: #334155; --vc-muted: #64748b; --vc-disabled: #94a3b8;
  --vc-surface: #f3f5f9; --vc-subtle: #f8fafc; --vc-border: #e2e8f0; --vc-border-2: #eef2f6;
  --vc-input: #cbd5e1; --vc-input-hover: #94a3b8; --vc-focus: rgba(30, 64, 175, .12);
  --vc-danger: #d63939; --vc-danger-text: #991b1b; --vc-danger-soft: #fff0f0; --vc-danger-border: #f5c2c2;
  --vc-good: #059669; --vc-warn: #d97706; --vc-bad: #dc2626;
  --vc-radius-card: 14px; --vc-radius-ctl: 9px;
  --vc-shadow-card: 0 1px 2px rgba(15, 23, 42, .04);
  --vc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body { background: var(--vc-surface); color: var(--vc-ink); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
main { padding: 1.5rem 1.75rem 2rem; }
main h1, main h2, main h3, main p { margin: 0; }
.mono, code { font-family: var(--vc-mono); font-size: 12.5px; }
.muted { color: var(--vc-muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
form.inline { display: inline; }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.page-header-text { flex: 1 1 auto; min-width: 0; }
.page-header-text h1 { font-size: 20px; font-weight: 800; color: var(--vc-ink); letter-spacing: -.015em; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.page-header-text p { font-size: 13px; color: var(--vc-muted); margin-top: .25rem; }
.page-header-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.page-header-actions .btn-row { padding: .5rem 1rem; font-size: 14px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary, .btn-row, .btn-danger { display: inline-flex; align-items: center; gap: .4rem; font-family: inherit; font-weight: 600; line-height: 1.4;
  border-radius: var(--vc-radius-ctl); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { padding: .5rem 1rem; font-size: 14px; color: #fff; background: var(--vc-brand); border: 1px solid var(--vc-brand); box-shadow: 0 1px 2px rgba(30, 64, 175, .25); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--vc-brand-hover); border-color: var(--vc-brand-hover); color: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(30, 64, 175, .25); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-row { padding: .35rem .7rem; font-size: 13px; color: var(--vc-ink-2); background: #fff; border: 1px solid var(--vc-input); }
.btn-row:hover { background: var(--vc-brand-soft); border-color: #c7d2fe; color: var(--vc-brand); text-decoration: none; }
.btn-row.danger { color: var(--vc-danger-text); border-color: var(--vc-danger-border); }
.btn-row.danger:hover { background: var(--vc-danger-soft); border-color: var(--vc-danger); color: var(--vc-danger-text); }
.btn-row.success { color: var(--vc-good); border-color: #a7f3d0; }
.btn-row.success:hover { background: rgba(16, 185, 129, .08); border-color: var(--vc-good); }
.btn-row.icon-only { padding: .35rem .45rem; }
.btn-danger { padding: .5rem 1rem; font-size: 14px; color: #fff; background: var(--vc-danger); border: 1px solid var(--vc-danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; text-decoration: none; }
.btn-row .ico, .btn-primary .ico, .btn-danger .ico { vertical-align: 0; }
.btn-row.spin .ico { transition: transform .6s; transform: rotate(360deg); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--vc-border); border-radius: var(--vc-radius-card); box-shadow: var(--vc-shadow-card); overflow: hidden; }
.card + .card { margin-top: 1rem; }
.stack > .card + .card, .grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.15rem .8rem; border-bottom: 1px solid var(--vc-border-2); }
.card-header h2, .card-title { font-size: 14.5px; font-weight: 700; color: var(--vc-ink); display: flex; align-items: center; gap: .5rem; }
.card-header h2 .ico { color: var(--vc-brand); }
.card-header .card-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-body { padding: 1.15rem; }
.card-body > p + p { margin-top: .6rem; }
.card-count { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--vc-ink-2); background: var(--vc-subtle); border: 1px solid var(--vc-border); border-radius: 6px; padding: .1rem .5rem; }
.card.danger-zone { border-color: var(--vc-danger-border); }
.card.danger-zone .card-header h2 { color: var(--vc-danger-text); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap thead th { padding: .6rem .9rem; text-align: left; font-size: 12px; font-weight: 600; color: #475569; border-bottom: 1px solid var(--vc-border);
  white-space: nowrap; background: var(--vc-subtle); }
.table-wrap tbody td { padding: .68rem .9rem; font-size: 13.5px; color: var(--vc-ink); border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr { transition: background-color .15s ease; }
.table-wrap tbody tr:hover td { background: #f8faff; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.table-wrap .col-actions > div { display: flex; gap: .35rem; justify-content: flex-end; }
.table-wrap td.name a { font-weight: 600; color: var(--vc-ink); }
.table-wrap td.name a:hover { color: var(--vc-brand); }
.table-wrap td .sub { display: block; font-size: 11.5px; color: var(--vc-muted); margin-top: 1px; }
.table-wrap td.when { font-size: 12px; color: var(--vc-ink-2); white-space: nowrap; }
.table-wrap td.when small { display: block; color: var(--vc-muted); font-size: 11px; }
.table-wrap td.err { color: var(--vc-danger-text); font-size: 12.5px; }
.table-dense tbody td { padding: .45rem .8rem; font-size: 13px; }
.table-dense thead th { padding: .45rem .8rem; }

/* sortable column headers (VeeCloud) */
.table-wrap thead th.table-sortable { padding: 0; }
.table-wrap thead th.table-sortable a { display: flex; align-items: center; gap: 4px; padding: .6rem .9rem; color: inherit; text-decoration: none; white-space: nowrap; }
.table-dense thead th.table-sortable a { padding: .45rem .8rem; }
.table-wrap thead th.table-sortable.num a { justify-content: flex-end; }
.table-wrap thead th.table-sortable a:hover { color: var(--vc-ink); background: #f1f5f9; }
.th-sort-icon { opacity: .35; transition: opacity .15s; flex: none; }
.table-wrap thead th.table-sortable a:hover .th-sort-icon { opacity: .75; }
.table-wrap thead th.sorted a { color: var(--vc-brand); }
.table-wrap thead th.sorted .th-sort-icon { opacity: 1; }
/* ── Badges & status ─────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; font-size: 11.5px; font-weight: 600; border-radius: 999px; white-space: nowrap; line-height: 1.35; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; flex-shrink: 0; }
.status-dot.live { background: var(--vc-good); box-shadow: 0 0 4px var(--vc-good); }
.status-dot.stale { background: var(--vc-warn); } .status-dot.offline { background: var(--vc-bad); } .status-dot.nodata { background: var(--vc-muted); }
.ver-badge { display: inline-flex; align-items: center; gap: .3rem; font: 600 12px var(--vc-mono); padding: .1rem .45rem; border-radius: 6px; border: 1px solid var(--vc-border); color: var(--vc-ink-2); background: #fff; }
.ver-badge.ver-ok { border-color: #a7f3d0; color: #047857; }
.ver-badge.ver-old { border-color: #fed7aa; color: #9a3412; }

/* ── Filter bar (list pages) ─────────────────────────────────────────────── */
.list-card { background: #fff; border: 1px solid var(--vc-border); border-radius: var(--vc-radius-card); box-shadow: var(--vc-shadow-card); overflow: hidden; }
.filter-bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid var(--vc-border-2); flex-wrap: wrap; margin: 0; }
.filter-search { display: flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--vc-input); border-radius: 8px; padding: .3rem .6rem;
  flex: 1 1 320px; max-width: 460px; min-height: 34px; transition: border-color .15s, box-shadow .15s; }
.filter-search .ico { color: var(--vc-muted); }
.filter-search input { border: 0; outline: 0; font: 13px var(--sans); color: var(--vc-ink); background: transparent; width: 100%; min-width: 0; height: auto; padding: 0; }
.filter-search:hover, .filter-select:hover { border-color: var(--vc-input-hover); }
.filter-search:focus-within, .filter-select:focus { border-color: var(--vc-brand); box-shadow: 0 0 0 3px var(--vc-focus); outline: none; }
.filter-select { padding: .35rem .6rem; min-height: 34px; font: 13px var(--sans); color: var(--vc-ink); background: #fff; border: 1px solid var(--vc-input); border-radius: 8px;
  outline: none; cursor: pointer; min-width: 120px; width: auto; height: auto; transition: border-color .15s, box-shadow .15s; }
.filter-clear { display: inline-flex; align-items: center; gap: .3rem; color: var(--vc-brand); font-size: 12.5px; font-weight: 600; background: none; border: 0; cursor: pointer;
  padding: .3rem .5rem; border-radius: 8px; font-family: inherit; }
.filter-clear:hover { background: var(--vc-brand-soft); text-decoration: none; }
.filter-note { margin-left: auto; font-size: 12.5px; color: var(--vc-muted); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--vc-border); flex-wrap: wrap; }
.pagination-info { font-size: 13px; color: var(--vc-muted); }
.pagination-controls { display: flex; align-items: center; gap: .5rem; }
.pagination-size-label { font-size: 13px; color: var(--vc-muted); white-space: nowrap; }
.pagination-controls select { width: auto; height: auto; padding: .2rem .5rem; font: 12px var(--sans); color: var(--vc-ink); border: 1px solid var(--vc-input); border-radius: 8px; background: #fff; }
.pager-btn { display: inline-flex; align-items: center; padding: .25rem .6rem; font: 600 12px var(--sans); color: var(--vc-ink-2); background: #fff; border: 1px solid var(--vc-input);
  border-radius: 8px; cursor: pointer; text-decoration: none; }
.pager-btn:hover { background: var(--vc-surface); text-decoration: none; color: var(--vc-ink); }
.pager-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--vc-disabled); }
.empty > .ico { display: block; margin: 0 auto .75rem; opacity: .55; }
.empty p { font-size: 14px; margin: 0 0 1rem; }
.empty-sm { padding: 1.5rem 1rem; text-align: center; color: var(--vc-disabled); font-size: 13px; }

/* ── Flash messages ──────────────────────────────────────────────────────── */
.alert-flash { border-radius: 10px; padding: .7rem .95rem; font-size: 13px; margin-bottom: 1rem; border: 1px solid; }
.alert-flash.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-flash.error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.alert-flash.warning { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.alert-flash.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-flash ul { margin: .35rem 0 0 1.1rem; padding: 0; }
.alert-flash a { font-weight: 600; }
.alert-flash .creds { margin-top: .5rem; display: grid; grid-template-columns: max-content 1fr; gap: .25rem .75rem; align-items: center; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-section + .form-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--vc-border-2); }
.form-section h3 { font-size: 14px; font-weight: 700; color: var(--vc-ink); margin-bottom: .85rem; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--vc-ink-2); margin: 0 0 .3rem; }
.form-label .req { color: var(--vc-danger); margin-left: 2px; }
.form-input { width: 100%; height: auto; padding: .52rem .75rem; font: 14px var(--sans); color: var(--vc-ink); background: #fff; border: 1px solid var(--vc-input);
  border-radius: 8px; outline: none; transition: border-color .12s, box-shadow .12s; }
input.form-input:not([type=file]), select.form-input { height: 38px; padding-top: 0; padding-bottom: 0; }
.form-input:hover { border-color: var(--vc-input-hover); }
.form-input:focus { border-color: var(--vc-brand); box-shadow: 0 0 0 3px var(--vc-focus); }
.form-input:disabled { background: var(--vc-subtle); color: var(--vc-muted); }
textarea.form-input { min-height: 96px; resize: vertical; line-height: 1.45; }
textarea.form-input.mono { font-family: var(--vc-mono); font-size: 12.5px; }
.field-validation-error { display: block; font-size: 12px; color: var(--vc-danger); margin-top: .25rem; }
.field-help { display: block; font-size: 12px; color: var(--vc-muted); margin-top: .25rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: 13.5px; color: var(--vc-ink-2); font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--vc-brand); }
.form-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--vc-border-2); }
.form-actions.flush { border-top: 0; padding-top: 0; margin-top: 1rem; }
input[type=file].form-input { padding: .35rem .5rem; }

/* ── Code, logs, copy chips ──────────────────────────────────────────────── */
.code-block { background: #0d1b2a; color: #e2e8f0; font: 12.5px/1.6 var(--vc-mono); padding: 1rem; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.log { background: #0d1b2a; color: #d1d5db; font: 12.5px/1.55 var(--vc-mono); padding: 1rem; max-height: 560px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.log .warn { color: #fbbf24; } .log .error { color: #f87171; } .log .ts { color: #6b7280; }
.cv { display: inline-flex; align-items: center; gap: 4px; background: #f6f8fa; border: 1px solid #e8ebf0; border-radius: 6px; padding: 1px 2px 1px 8px; max-width: 100%; vertical-align: middle; }
.cv code { font-size: 12px; color: var(--vc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp { border: 0; background: none; color: var(--vc-muted); cursor: pointer; width: 24px; height: 22px; display: grid; place-items: center; border-radius: 4px; flex: none; padding: 0; }
.cp:hover { background: #e8ecf1; color: var(--vc-brand); }
.cp.done { color: var(--vc-good); }
.progress { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--vc-brand); border-radius: 3px; transition: width .3s; }
.bar-cell { display: flex; align-items: center; gap: 8px; }
.bar-track { flex: 0 0 64px; width: 64px; height: 6px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--vc-brand); }
.bar-fill.warn { background: var(--vc-warn); } .bar-fill.bad { background: var(--vc-bad); } .bar-fill.good { background: var(--vc-good); }

/* ── Stat cards (Health / RADIUS) ────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card { background: #fff; border: 1px solid var(--vc-border); border-radius: var(--vc-radius-card); box-shadow: var(--vc-shadow-card); padding: 1rem 1.15rem; min-width: 0; }
.stat-card.stat-good { box-shadow: inset 0 3px 0 var(--vc-good), var(--vc-shadow-card); }
.stat-card.stat-warn { box-shadow: inset 0 3px 0 var(--vc-warn), var(--vc-shadow-card); }
.stat-card.stat-bad { box-shadow: inset 0 3px 0 var(--vc-bad), var(--vc-shadow-card); }
.stat-card.stat-info { box-shadow: inset 0 3px 0 var(--vc-brand), var(--vc-shadow-card); }
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--vc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value.sm { font-size: 1.15rem; }
.stat-value.text-good { color: var(--vc-good); } .stat-value.text-warn { color: var(--vc-warn); } .stat-value.text-bad { color: var(--vc-bad); }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--vc-muted); margin-bottom: .35rem; }
.stat-sub { font-size: 12px; color: var(--vc-ink-2); margin-top: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Detail page: sticky sidebar + pill tabs (VeeCloud device detail) ────── */
:root { --rd-line: #eef2f6; --rd-blue: #1e40af; --rd-blue-soft: #eef2ff; }
.rd-page { font-size: 13.5px; line-height: 1.45; }
.rd-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rd-crumb { font-size: 12px; color: var(--vc-muted); }
.rd-crumb a { color: var(--vc-muted); }
.rd-crumb b { color: var(--vc-ink-2); font-weight: 500; }
.rd-sidel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.rd-mcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rd-card { background: #fff; border: 1px solid var(--vc-border); border-radius: var(--vc-radius-card); box-shadow: var(--vc-shadow-card); overflow: hidden; }
.rd-side { padding: 18px; position: sticky; top: 66px; }
.rd-sp { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--rd-line); }
.rd-sp h1 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; word-break: break-word; color: var(--vc-ink); }
.rd-sp .rd-sub { font-size: 12px; color: var(--vc-muted); }
.rd-avatar { width: 60px; height: 60px; border-radius: 16px; background: var(--rd-blue-soft); color: var(--rd-blue); display: grid; place-items: center; flex: none; }
.rd-live { display: inline-flex; align-items: center; gap: 6px; background: #e7f7ec; color: #15803d; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.rd-live i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #c8ecd3; }
.rd-live.rd-stale { background: #fef3e2; color: #b45309; } .rd-live.rd-stale i { background: #f59e0b; box-shadow: 0 0 0 3px #fde3b5; }
.rd-live.rd-offline { background: #fdecec; color: #b91c1c; } .rd-live.rd-offline i { background: #ef4444; box-shadow: 0 0 0 3px #fbd0d0; }
.rd-live.rd-nodata { background: #f1f4f8; color: #6b7686; } .rd-live.rd-nodata i { background: #b8c0cc; box-shadow: 0 0 0 3px #e5e9ef; }
.rd-live.rd-blue { background: var(--rd-blue-soft); color: var(--rd-blue); } .rd-live.rd-blue i { background: var(--rd-blue); box-shadow: 0 0 0 3px #dbe3fb; }
.rd-info { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rd-line); }
.rd-info > div { display: flex; justify-content: space-between; padding: 6px 0; gap: 10px; }
.rd-info dt { color: #6b7686; font-size: 12.5px; flex: none; }
.rd-info dd { margin: 0; font-weight: 600; font-size: 12.5px; text-align: right; min-width: 0; overflow-wrap: anywhere; color: var(--vc-ink); }
.rd-none { color: #9aa3b2 !important; font-weight: 500 !important; }
.rd-sblk { padding: 14px 0; border-bottom: 1px solid var(--rd-line); }
.rd-kl { font-size: 12.5px; font-weight: 600; color: var(--vc-ink-2); }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rd-tg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #e7f7ec; color: #15803d; }
.rd-tg.bad { background: #fdecec; color: #b91c1c; } .rd-tg.warn { background: #fef3e2; color: #b45309; } .rd-tg.blue { background: var(--rd-blue-soft); color: var(--rd-blue); }
.rd-tg.grey { background: #f1f4f8; color: var(--vc-ink-2); }
a.rd-tg:hover { text-decoration: none; filter: brightness(.97); }
.rd-ok { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #6b7686; }
.rd-ok .ico { color: #16a34a; }
.rd-sacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
.rd-sacts form { display: contents; }
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid #d6dce5; border-radius: 8px; padding: 6px 12px;
  font: 500 12.5px var(--sans); color: var(--vc-ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.rd-btn:hover { background: #f7f9fb; text-decoration: none; color: var(--vc-ink); }
.rd-btn.rd-wide { grid-column: span 2; }
.rd-btn.rd-primary { background: var(--rd-blue); border-color: var(--rd-blue); color: #fff; }
.rd-btn.rd-primary:hover { background: #1e3a8a; color: #fff; }
.rd-btn.rd-danger { grid-column: span 2; color: #b91c1c; border-color: #f3c5c5; }
.rd-btn.rd-danger:hover { background: #fef5f5; }
.rd-btn .ico { transition: transform .6s ease; }
.rd-btn.spin .ico { transform: rotate(360deg); }
.rd-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; padding: 4px; background: #fff; border: 1px solid var(--vc-border);
  border-radius: 10px; box-shadow: var(--vc-shadow-card); scrollbar-width: none; }
.rd-tabs::-webkit-scrollbar { display: none; }
.rd-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 7px; background: none; color: #5b6576; font: 500 13px var(--sans);
  white-space: nowrap; cursor: pointer; }
.rd-tab:hover { color: var(--rd-blue); }
.rd-tab.active { background: var(--rd-blue); color: #fff; font-weight: 600; }
.rd-tab .tab-count { font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: #eef2f6; color: var(--vc-muted); }
.rd-tab.active .tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
/* Users: Standard / Guest / Temporary tabs (links, one page each). */
.user-tabs { margin: 0 0 14px; }
.user-tabs a.rd-tab { text-decoration: none; }
.input-group { display: flex; gap: 6px; align-items: stretch; }
.input-group .form-input { flex: 1; min-width: 0; }
.input-group .btn-row { white-space: nowrap; }
.rd-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rd-panel[hidden] { display: none; }
.rd-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-strip > div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; min-width: 0; }
.rd-strip > div + div { border-left: 1px solid var(--rd-line); }
.rd-ki { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.rd-ki.grey { background: #f1f4f8; color: #8a94a6; } .rd-ki.blue { background: var(--rd-blue-soft); color: var(--rd-blue); }
.rd-ki.green { background: #e7f7ec; color: #15803d; } .rd-ki.amber { background: #fef3e2; color: #b45309; } .rd-ki.red { background: #fdecec; color: #b91c1c; }
.rd-kv { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--vc-ink); }
.rd-kv span { font-size: 14px; color: #8a94a6; font-weight: 600; }
.rd-ks { font-size: 12px; color: #8a94a6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-ch { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rd-line); gap: 12px; flex-wrap: wrap; }
.sd-ct { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--vc-ink); }
.sd-ct .ico { color: var(--rd-blue); }
.sd-chr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--vc-ink-2); }
.sd-body { padding: 14px 16px; }
.sd-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-dgrid.one { grid-template-columns: 1fr; }
.sd-dg { padding: 4px 0; min-width: 0; }
.sd-dgrid:not(.one) .sd-dg:nth-child(odd) { border-right: 1px solid var(--rd-line); }
.sd-dgrid .sd-dg:nth-child(n+3) { border-top: 1px solid var(--rd-line); }
.sd-dgrid.one .sd-dg + .sd-dg { border-top: 1px solid var(--rd-line); }
.sd-dgh { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a94a6; padding: 10px 16px 4px; }
.sd-dr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 7px 16px; align-items: start; margin: 0; }
.sd-dr dt { color: #6b7686; font-size: 12.5px; padding-top: 1px; }
.sd-dr dd { margin: 0; font-size: 13px; min-width: 0; overflow-wrap: anywhere; color: var(--vc-ink); }
.sd-dr small { display: block; color: #8a94a6; font-size: 11.5px; margin-top: 3px; }
.sd-note { padding: 10px 16px 14px; font-size: 12.5px; color: var(--vc-muted); }
.rd-card .table-wrap thead th:first-child, .rd-card .table-wrap tbody td:first-child { padding-left: 16px; }
.rd-card .form-wrap, .card .form-wrap { padding: 16px 18px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { text-align: center; color: var(--vc-disabled); font-size: 12px; padding: 8px 24px 26px; }
footer a { color: var(--vc-muted); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1300px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1200px) {
  .rd-sidel { grid-template-columns: 1fr; } .rd-side { position: static; }
  .rd-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-strip > div:nth-child(3) { border-left: 0; } .rd-strip > div:nth-child(n+3) { border-top: 1px solid var(--rd-line); }
  .user-id { display: none; } .account-switch span { display: none; }
}
@media (max-width: 1000px) { .grid-2, .grid-3, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; } .sd-dgrid { grid-template-columns: 1fr; }
  .sd-dgrid:not(.one) .sd-dg:nth-child(odd) { border-right: 0; } .sd-dgrid .sd-dg + .sd-dg { border-top: 1px solid var(--rd-line); } }
@media (max-width: 900px) { .topnav .lbl { display: none; } }
@media (max-width: 768px) {
  main { padding: 1rem; } .topbar { padding: 0 12px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: 1fr; }
  .rd-strip { grid-template-columns: 1fr; } .rd-strip > div + div { border-left: 0; border-top: 1px solid var(--rd-line); }
  .sd-dr { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ── SVG charts (server-rendered: Charts / TrendChart) ─────────────────────── */
.tc { display: block; width: 100%; height: auto; overflow: visible; }
.tc-grid { stroke: #eef1f5; stroke-width: 1; }
.tc-ax { fill: #8a94a6; font: 10.5px var(--sans); }
.tc-none { fill: #8a94a6; font: 12.5px var(--sans); }
.tc-hit { fill: transparent; }
.tc-hit:hover { fill: rgba(32, 107, 196, .08); }
/* ── User data usage chart (download / upload bars) ──────────────────────────────────────── */
.uc-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.uc-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.uc-legend i.dn { background: #1f6feb; } .uc-legend i.upl { background: #16a34a; margin-left: 8px; }
.uc-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.uc-sum > div { padding: 12px 16px; min-width: 0; }
.uc-sum > div + div { border-left: 1px solid var(--line-2); }
.uc-sum span { display: block; font-size: 11.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.uc-sum b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.uc-sum small { font-size: 11.5px; color: var(--faint); }
.uc-body { padding: 10px 16px 0; }
.sd-trend.loading .uc-body { opacity: .55; transition: opacity .15s; }
@media (max-width: 900px) { .uc-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uc-sum > div:nth-child(odd) { border-left: 0; } .uc-sum > div:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
/* Settings: quick controls + read-only values. */
.qc { display: flex; flex-direction: column; gap: 10px; }
.qc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.qc-row > div { flex: 1; min-width: 0; }
.qc-row b { display: block; color: var(--ink); }
.qc-row span { font-size: 12.5px; color: var(--muted); }
.qc-block { padding: 6px 2px 0; }
.ro { margin: 0; padding: 6px 16px 12px; }
.ro > div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.ro > div:last-child { border-bottom: 0; }
.ro dt { font-size: 12.5px; color: var(--muted); }
.ro dd { margin: 0; font-size: 13px; color: #6b7686; overflow-wrap: anywhere; }

/* ── Monitor ──────────────────────────────────────────────────────────────────── */
.mon-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.mon-summary b { font-size: 16px; color: var(--ink); }
.mon-summary span { font-size: 13px; color: var(--muted); }
.mon-summary.mon-ok { background: linear-gradient(90deg, #f0faf3, #fff 60%); border-color: #cfe9d8; }
.mon-summary.mon-warn { background: linear-gradient(90deg, #fff7ea, #fff 60%); border-color: #f8dcae; }
.mon-summary.mon-bad { background: linear-gradient(90deg, #fdf1f1, #fff 60%); border-color: #f6caca; }
.mon-summary.mon-unknown { background: linear-gradient(90deg, #f4f6f9, #fff 60%); }
.mon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .mon-grid { grid-template-columns: 1fr; } }
.mon-list { padding: 4px 0; }
.mon-item { border-top: 1px solid var(--line-2); }
.mon-item:first-child { border-top: 0; }
.mon-item > summary { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; list-style: none; }
.mon-item > summary::-webkit-details-marker { display: none; }
.mon-dot { width: 9px; height: 9px; border-radius: 50%; background: #b8c0cc; flex: none; }
.mon-ok .mon-dot { background: var(--green); } .mon-warn .mon-dot { background: var(--amber); } .mon-bad .mon-dot { background: var(--red); }
.mon-name { font-weight: 600; color: var(--ink); min-width: 150px; }
.mon-sum { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-item[open] .mon-sum { white-space: normal; }
.mon-more { padding: 0 16px 12px 35px; font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.mon-fix { display: flex; gap: 8px; align-items: flex-start; background: #f4f7fb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink-2); }
.mon-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Small pager under a card table (router DHCP leases). */
.pager-mini { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--vc-border); font-size: 13px; color: var(--vc-muted); }
.pager-mini span { margin-right: auto; }

/* Monitor menu (dropdown): failing-checks badge on the button and inside the menu. */
.topnav-dd > button { position: relative; }
.topnav-dd > button .count-badge { position: static; margin-left: 2px; }
.topnav-dd.accent > button { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.dd-item .count-badge { position: static; margin-left: auto; }


/* ══════════════════════════════════════════════════════════════════════════════════════════════
   TechRadius additions — small pieces the Console needs on top of the Wi5River design (same tokens).
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
.dev-ribbon { background: #b91c1c; color: #fff; text-align: center; font: 700 11.5px var(--sans); letter-spacing: .08em; padding: 3px 0; }
button.icon-btn { border: 0; background: none; cursor: pointer; padding: 0; }
.topnav-dd.open > button.icon-btn { background: #eef2ff; color: #1e40af; }
button.account-switch { border: 0; background: none; font-family: var(--sans); font-size: 14px; cursor: pointer; }
button.account-switch:hover, .topnav-dd.open > button.account-switch { background: #eef2ff; }
.account-switch .chev { color: var(--faint); }
.dd-panel.scroll { max-height: 70vh; overflow-y: auto; }
.dd-label { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dd-item .dd-meta { margin-left: auto; padding-left: 12px; color: var(--vc-muted); font: 500 11.5px var(--vc-mono); }
.dd-item .badge { margin-left: auto; }
.dd-panel form { margin: 0; }
.dd-empty { padding: 8px 10px; font-size: 13px; color: var(--vc-muted); }
.alert-flash .ico { vertical-align: -3px; margin-right: 4px; }
.alert-flash .field-help { color: inherit; opacity: .85; }
.table-wrap tbody tr.row-bad td { background: #fffafa; }
.table-wrap tbody tr.row-muted td { color: var(--vc-muted); }
.tr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b8c0cc; margin-right: 7px; vertical-align: 1px; flex: none; }
.tr-dot.on { background: var(--vc-good); box-shadow: 0 0 0 3px #d1fae5; } .tr-dot.off { background: var(--vc-bad); box-shadow: 0 0 0 3px #fee2e2; }
.list-note { display: flex; align-items: center; gap: .4rem; font-size: 12px; color: var(--vc-muted); margin: .6rem .2rem 0; }
.grid-note { display: flex; align-items: center; gap: .4rem; padding: .6rem 1rem; font-size: 12px; color: var(--vc-muted); border-top: 1px solid var(--vc-border-2); }
.filter-range { display: inline-flex; align-items: center; gap: .4rem; }
.filter-range[hidden] { display: none; }
.filter-date { padding: .3rem .5rem; min-height: 34px; font: 13px var(--sans); color: var(--vc-ink); background: #fff; border: 1px solid var(--vc-input); border-radius: 8px; }
.page-tabs { margin: 0 0 14px; }
.page-tabs a.rd-tab { text-decoration: none; }
.form-readonly { min-height: 38px; display: flex; align-items: center; font-size: 14px; color: var(--vc-ink); font-weight: 600; }
.check-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: .35rem; }
.card .form-wrap .alert-flash:first-child { margin-top: 0; }
.denied { max-width: 560px; margin: 3rem auto; }
.inline-form { display: inline; margin: 0; }
.col-actions form { display: inline; margin: 0; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px 12px; font-size: 12px; color: var(--vc-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-body { padding: 12px 16px 6px; }
.secret-box .creds { grid-template-columns: max-content minmax(0, 1fr); }
.secret-box .cv { max-width: 640px; }
.secret-box .cv code { white-space: normal; word-break: break-all; }
.key-pill { font: 500 12px var(--vc-mono); color: var(--vc-ink-2); background: #f6f8fa; border: 1px solid #e8ebf0; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
@media (max-width: 1300px) { .stat-grid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .stat-grid.cols-3, .stat-grid.cols-6 { grid-template-columns: 1fr; } }.row-actions { display: flex; gap: .35rem; justify-content: flex-end; align-items: center; }
a.cell-link { color: var(--vc-ink); } a.cell-link:hover { color: var(--vc-brand); }
.dash button.tlink { border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; }