/* =====================================================================
   Panel del servidor — sistema visual
   Tipografía: IBM Plex Sans (interfaz) + IBM Plex Mono (código, rutas, logs)
   ===================================================================== */

@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Paleta «grafito y ciruela»: estructura en grafito, un solo acento (ciruela) para lo activo y los datos. */
  /* superficie */
  --bg: #ecede8;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --line: #dfe0d9;
  --line-strong: #c8cac1;
  /* texto */
  --ink: #1d1f1b;
  --ink-2: #3a3d36;
  --muted: #696d62;
  /* acciones principales (botones) */
  --action: #1d1f1b;
  --action-hover: #33362f;
  --action-ink: #ffffff;
  /* acento */
  --primary: #7a3768;
  --primary-hover: #652c56;
  --primary-soft: #f3e7ef;
  --primary-ink: #ffffff;
  /* estado */
  --ok: #2b7a3e;     --ok-soft: #e5f2e6;
  --warn: #9e5d00;   --warn-soft: #f9eedb;
  --danger: #b43a2e; --danger-soft: #fbe9e6;
  --off: #777b70;    --off-soft: #ecede7;
  /* barra flotante */
  --bar: #1d1f1b;
  --bar-ink: #c9cbc2;
  --bar-muted: #8c8f85;
  --bar-hover: rgba(255, 255, 255, .07);
  --bar-active: #ecede8;
  --bar-active-ink: #1d1f1b;
  /* forma */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-pop: 0 18px 50px -12px rgba(29, 31, 27, .35), 0 2px 6px rgba(29, 31, 27, .08);
  --shadow-card: 0 1px 2px rgba(29, 31, 27, .04);
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121311;
    --surface: #1a1b18;
    --surface-2: #20221e;
    --line: #2d2f29;
    --line-strong: #3b3e36;
    --ink: #ecede7;
    --ink-2: #c9cbc2;
    --muted: #979b8f;
    --action: #ecede7;
    --action-hover: #ffffff;
    --action-ink: #1d1f1b;
    --primary: #d790c4;
    --primary-hover: #e4a9d4;
    --primary-soft: rgba(215, 144, 196, .14);
    --primary-ink: #1d1f1b;
    --ok: #6cc07c;     --ok-soft: rgba(108, 192, 124, .13);
    --warn: #e2a64b;   --warn-soft: rgba(226, 166, 75, .14);
    --danger: #ee7d6f; --danger-soft: rgba(238, 125, 111, .14);
    --off: #8c9085;    --off-soft: rgba(140, 144, 133, .14);
    --bar: #23251f;
    --bar-active: #ecede7;
    --bar-edge: rgba(255, 255, 255, .08);
    --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .7);
    --shadow-card: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 14.5px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: .92em; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.lg { width: 20px; height: 20px; }
svg.i.xl { width: 24px; height: 24px; }

/* =========================== estructura =========================== */

.shell { min-height: 100vh; }

/* Barra de navegación flotante: separada de los bordes, se queda arriba al bajar. */
.bar-wrap { position: sticky; top: 0; z-index: 40; padding: 14px 20px 0; }
.bar {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--bar); color: var(--bar-ink);
  border: 1px solid var(--bar-edge, transparent);
  border-radius: 14px; padding: 7px 8px 7px 10px;
  box-shadow: 0 10px 30px -14px rgba(29, 31, 27, .55), 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 2px 2px; margin-right: 4px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.brand-text { display: grid; line-height: 1.15; }
.brand-name { color: #fff; font-weight: 600; font-size: 14.5px; }
.brand-host { color: var(--bar-muted); font-size: 12px; }

.nav { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.nav-group { display: flex; align-items: center; gap: 2px; }
.nav-group.admin { margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .12); }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 12px; border-radius: 9px;
  color: var(--bar-ink); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: background-color .12s, color .12s;
}
.nav-link svg { opacity: .65; }
.nav-link:hover { background: var(--bar-hover); color: #fff; }
.nav-link:hover svg { opacity: 1; }
.nav-link[aria-current="page"] { background: var(--bar-active); color: var(--bar-active-ink); font-weight: 600; }
.nav-link[aria-current="page"] svg { opacity: 1; color: var(--primary); }
.bar :focus-visible { outline-color: #fff; }

.acct { position: relative; margin-left: auto; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: var(--bar-ink); cursor: pointer;
}
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--bar-hover); color: #fff; }
.acct-btn .avatar { width: 28px; height: 28px; font-size: 11px; }

.menu-btn {
  display: none; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px;
  border: 0; background: var(--bar-hover); color: #fff; font-weight: 600; cursor: pointer;
}

/* Menús emergentes (cuenta y navegación en móvil) */
.pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 230px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px;
  animation: pop-in .14s ease-out;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-name { font-weight: 600; }
.pop-role { color: var(--muted); font-size: 12.5px; }
.pop-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 0; background: none; color: var(--ink-2); text-align: left; cursor: pointer; font-weight: 500;
}
.pop-item:hover { background: var(--surface-2); color: var(--ink); }
.pop-item svg { color: var(--muted); }
.nav-pop { left: 0; right: 0; }
.nav-pop nav { display: grid; gap: 4px; }
.nav-pop .nav-group { display: grid; gap: 2px; }
.nav-pop .nav-group.admin { margin: 4px 0 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line); }
.nav-pop .nav-link { color: var(--ink-2); padding: 9px 10px; }
.nav-pop .nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-pop .nav-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

main { padding: 30px 20px 72px; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 64ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* =========================== botones =========================== */

.btn {
  --h: 36px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
  position: relative;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); font-weight: 600; }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn.danger-solid:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--off-soft); }
.btn.sm { --h: 32px; padding: 0 11px; font-size: 13.5px; gap: 6px; }
.btn.block { width: 100%; --h: 42px; font-size: 15px; }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn[aria-busy="true"], .btn[aria-busy="true"]:disabled { cursor: progress; opacity: 1; }

.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.icon-btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn[aria-busy="true"], .icon-btn[aria-busy="true"]:disabled { cursor: progress; opacity: 1; color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* tooltip para botones de solo icono */
/* Tooltip único en la capa superior (ver showTip en app.js) */
#tip {
  position: fixed; inset: auto; margin: 0; border: 0; overflow: visible;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; line-height: 1.3;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 1001;
  box-shadow: 0 4px 14px -4px rgba(29, 31, 27, .35);
}
#tip:not([popover]):not(.on) { display: none; }

/* spinner */
.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.spinner.lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================== insignias =========================== */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  background: var(--off-soft); color: var(--ink-2);
}
.badge svg.i { width: 13px; height: 13px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.off { background: var(--off-soft); color: var(--off); }
.badge.info { background: var(--primary-soft); color: var(--primary); }
.badge.live .dot { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff;
  background: var(--av, #7a3768);
}
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.owner { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.owner.none { color: var(--muted); font-style: italic; }

/* =========================== tarjetas y listas =========================== */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.card-head h2 svg { color: var(--muted); }
.card-body { padding: 16px 18px; }

.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 34px !important; height: 36px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.tabs button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29,31,27,.12); }
.tabs .n { font-size: 12px; color: var(--muted); }
.toolbar .spacer { flex: 1; }
.toolbar .total { color: var(--muted); font-size: 13px; }

.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--surface-2); }
.item-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.item-icon.ok { background: var(--ok-soft); color: var(--ok); }
.item-icon.warn { background: var(--warn-soft); color: var(--warn); }
.item-icon.off { background: var(--off-soft); color: var(--off); }
.item-icon.bad { background: var(--danger-soft); color: var(--danger); }
.item-main { min-width: 0; }
.item-title {
  font-weight: 600; font-size: 15.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; min-width: 0;
}
.item-title a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-title a:hover { color: var(--primary); }
.item-title .ext { color: var(--muted); opacity: 0; transition: opacity .12s; }
.item:hover .item-title .ext { opacity: 1; }
.item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.item-sub > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.item-sub .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.item-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}

/* =========================== tablas =========================== */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted);
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-user strong { font-weight: 600; }
.cell-user small { display: block; color: var(--muted); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .item-actions { display: inline-flex; }

/* =========================== resumen =========================== */

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; display: grid; grid-template-columns: 1fr; gap: 4px 12px; text-decoration: none; color: inherit; transition: border-color .12s; }
a.kpi:hover { border-color: var(--line-strong); }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi-foot { grid-column: 1 / -1; margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.meter { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--off-soft); overflow: hidden; margin-top: 10px; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.feed { list-style: none; margin: 0; padding: 4px 0; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; }
.feed .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--off-soft); color: var(--ink-2); }
.feed .ic.ok { background: var(--ok-soft); color: var(--ok); }
.feed .ic.bad { background: var(--danger-soft); color: var(--danger); }
.feed .ic.info { background: var(--primary-soft); color: var(--primary); }
.feed .what { font-size: 13.5px; }
.feed .what strong { font-weight: 600; }
.feed time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* =========================== estados vacíos y carga =========================== */

.empty { text-align: center; padding: 48px 24px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.empty p { margin: 0 auto 18px; color: var(--muted); max-width: 46ch; }
.empty.compact { padding: 26px 18px; }
.empty.compact p { margin-bottom: 0; }

.skeleton { padding: 6px 0; }
.sk-row { display: grid; grid-template-columns: 40px 1fr 120px; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--off-soft) 25%, var(--surface-2) 50%, var(--off-soft) 75%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
.sk.box { height: 40px; border-radius: 10px; }
.sk.w60 { width: 60%; } .sk.w35 { width: 35%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -100% 0; } }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.alert svg { margin-top: 2px; }
.alert.bad { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--primary-soft); color: var(--ink-2); }
.alert.info svg { color: var(--primary); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

/* =========================== diálogos y formularios =========================== */

dialog {
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop);
  overflow: hidden;
}
dialog.wide { width: min(860px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(20, 21, 18, .5); backdrop-filter: blur(2px); }
dialog > form, dialog > .dlg { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dlg-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 4px; }
.dlg-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.dlg-icon.danger { background: var(--danger-soft); color: var(--danger); }
.dlg-head h2 { margin: 2px 0 2px; font-size: 18px; font-weight: 600; }
.dlg-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dlg-close { margin-left: auto; }
.dlg-body { padding: 16px 22px 6px; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; margin-top: 12px; background: var(--surface-2); border-top: 1px solid var(--line); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.field .hint { color: var(--muted); font-size: 12.5px; }
.field .hint code { font-family: var(--mono); font-size: 12px; }
.input-wrap { position: relative; }
.input-wrap .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border-color: transparent; background: transparent; }

input[type=text], input[type=password], input[type=number], input[type=email], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea.code {
  height: auto; min-height: 300px; padding: 12px 14px; resize: vertical;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; tab-size: 2;
  background: #1a1b18; color: #e3e4dd; border-color: #1a1b18;
}
textarea.code:focus { border-color: var(--primary); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.check small { display: block; color: var(--muted); font-size: 12.5px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.choice {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ci { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--off-soft); color: var(--ink-2); }
.choice b { font-weight: 600; font-size: 14px; }
.choice small { color: var(--muted); font-size: 12.5px; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: color-mix(in srgb, var(--primary-soft) 40%, var(--surface)); }
.choice:has(input:checked) .ci { background: var(--primary); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; margin-bottom: 16px; white-space: pre-wrap; }
.form-error svg { margin-top: 2px; }

/* logs */
.terminal { background: #161714; color: #dcddd5; display: flex; flex-direction: column; min-height: 0; }
.terminal-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #2a2c26; font-size: 12.5px; color: #8f9387; }
.terminal-bar .live { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.terminal-bar input { accent-color: #d790c4; }
.terminal pre { margin: 0; padding: 14px 16px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 52vh; min-height: 220px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 22px 16px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .meter { margin-top: 8px; }

/* =========================== toasts =========================== */

#toasts[popover] { margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; }
#toasts[popover]:not(:popover-open) { display: none; }
#toasts, #toasts[popover] { position: fixed; inset: 84px 20px auto auto; z-index: 1000; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: flex-start;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 12px 12px 14px; box-shadow: var(--shadow-pop); font-size: 13.5px;
}
.toast .ti { color: var(--ok); margin-top: 1px; }
.toast.bad .ti { color: var(--danger); }
.toast.info .ti { color: var(--primary); }
.toast b { display: block; font-weight: 600; }
.toast .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 5px; display: grid; }
.toast .x:hover { color: var(--ink); background: var(--off-soft); }

/* =========================== login =========================== */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  background: var(--bar); color: var(--bar-ink); padding: 48px 56px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-side .brand { padding: 0; }
.auth-pitch { margin-top: auto; max-width: 440px; position: relative; }
.auth-pitch h2 { color: #fff; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.auth-pitch > p { margin: 0 0 30px; color: var(--bar-muted); font-size: 15px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.auth-points .pi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #e0a6d0; }
.auth-points b { color: #fff; font-weight: 500; display: block; }
.auth-points span { color: var(--bar-muted); font-size: 13.5px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(380px, 100%); }
.auth-card h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 26px; }
.auth-foot { margin-top: 22px; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }

/* =========================== responsivo =========================== */

@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .item-badges { grid-column: 2; justify-content: flex-start; }
  .item-actions { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 1100px) {
  .nav-link { padding: 7px 10px; }
  .nav-link svg { display: none; }
}
@media (max-width: 920px) {
  .bar-wrap { padding: 10px 12px 0; }
  .bar > .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-text { display: none; }
  .brand { padding-right: 2px; }
  main { padding: 20px 16px 56px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-actions { justify-content: flex-start; }
  .page-head h1 { font-size: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .choices { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .search { max-width: none; }
}

@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .item { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 14px; }
  .item-icon { width: 34px; height: 34px; }
  .item-badges, .item-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .item-actions { padding-top: 6px; }
  .item-sub .mono { max-width: 100%; }
  .tabs { width: 100%; overflow-x: auto; }
  th.hide-sm, td.hide-sm { display: none; }
  th, td { padding-left: 12px; padding-right: 12px; }
  .cell-user small { display: none; }
  .cell-user { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spinner { animation: spin 1.4s linear infinite !important; animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
  @keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
  .toast { animation: slidein .22s ease-out; }
  @keyframes slidein { from { transform: translateX(16px); opacity: 0; } }
}

/* iconos de evento también en la tabla de actividad */
td .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--off-soft); color: var(--ink-2); flex: none; }
td .ic.ok { background: var(--ok-soft); color: var(--ok); }
td .ic.bad { background: var(--danger-soft); color: var(--danger); }
td .ic.info { background: var(--primary-soft); color: var(--primary); }
td time { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* =========================== progreso en vivo =========================== */

.progress-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.progress-banner b { display: block; font-size: 14.5px; font-weight: 600; }
.progress-banner span:not(.spinner) { color: inherit; opacity: .85; }
.progress-banner .spinner { margin-top: 2px; }
.progress-banner.running { background: var(--primary-soft); color: var(--primary); }
.progress-banner.running span:not(.spinner) { color: var(--ink-2); }
.progress-banner.ok { background: var(--ok-soft); color: var(--ok); }
.progress-banner.bad { background: var(--danger-soft); color: var(--danger); }

.steps { list-style: none; margin: 0 0 6px; padding: 0; position: relative; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 7px 0; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 30px; bottom: -6px; width: 2px; background: var(--line); border-radius: 2px; }
.step[data-status="done"]:not(:last-child)::before { background: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.step-mark { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); background: var(--surface); position: relative; z-index: 1; }
.step-mark svg.i { width: 20px; height: 20px; }
.step-mark .spinner { width: 17px; height: 17px; color: var(--primary); }
.step[data-status="done"] .step-mark { color: var(--ok); }
.step[data-status="error"] .step-mark { color: var(--danger); }
.step[data-status="rollback"] .step-mark { color: var(--warn); }
.step-body { min-width: 0; }
.step-line { display: flex; align-items: baseline; gap: 10px; min-height: 22px; }
.step-label { font-weight: 500; color: var(--ink); }
.step[data-status="running"] .step-label { color: var(--primary); }
.step[data-status="skipped"] .step-label { color: var(--muted); }
.step[data-status="error"] .step-label { color: var(--danger); }
.step[data-status="rollback"] .step-label { color: var(--warn); }
.step-time { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.step-note { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.step[data-status="error"] .step-note { color: var(--danger); }
.step-cmds { margin-top: 6px; display: grid; gap: 4px; }
.step-cmds code {
  display: block; font: 12px/1.5 var(--mono); color: #d6d8cf; background: #1a1b18;
  padding: 6px 10px; border-radius: 7px; white-space: pre-wrap; word-break: break-all;
}
.step-cmds .prompt { color: #d790c4; }

.summary { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 10px; display: grid; gap: 8px; background: var(--surface-2); }
.summary-head { display: flex; align-items: center; gap: 9px; }
.summary-head > svg { color: var(--primary); }
.summary-note { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.summary .btn { justify-self: start; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px; font-size: 13.5px; align-items: baseline; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; word-break: break-all; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } }
.step-note details { margin-top: 4px; }
.step-note summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.step-note pre { margin: 6px 0 0; font: 11.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; max-height: 180px; overflow: auto; }

/* datos de acceso */
.kv-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); display: grid; gap: 6px; }
.kv-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.kv-title svg { color: var(--primary); }
.kv-val { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kv-val b { min-width: 0; }
.kv-val .icon-btn { width: 26px; height: 26px; border-color: transparent; background: transparent; flex: none; }
.kv-val .icon-btn svg.i { width: 14px; height: 14px; }
.kv { grid-template-columns: 150px 1fr; min-height: 26px; align-items: center; }
.message-preview summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.message-preview pre { margin: 8px 0 0; font: 12px/1.55 var(--mono); white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink-2); }
.sftp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.sftp-help { font-size: 13.5px; color: var(--ink-2); }
.sftp-help ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 860px) { .sftp-body { grid-template-columns: 1fr; gap: 14px; } }

/* =========================== métricas =========================== */

.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-title { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.section-title .push, .section-title > .muted-note:last-child { margin-left: auto; }
.section-title h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.muted-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.kpi-value.small { font-size: 24px; }
.kpi-detail { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.res .kpi-foot { color: var(--ink-2); }
.sev { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sev .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev.ok { color: var(--ok); } .sev.warn { color: var(--warn); } .sev.bad { color: var(--danger); }
.meter.ok > i { background: var(--ok); }
.meter.warn { background: var(--warn-soft); } .meter.warn > i { background: var(--warn); }
.meter.bad { background: var(--danger-soft); } .meter.bad > i { background: var(--danger); }
.meter.ok { background: var(--ok-soft); }

.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--primary); opacity: .1; }
.chart .end { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }
.chart .endlabel { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--sans); }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart rect:focus { outline: none; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-pop); padding: 6px 10px; font-size: 12px; display: grid; min-width: 96px; z-index: 5;
}
.chart-tip b { font-size: 14px; font-weight: 600; color: var(--ink); }
.chart-tip span { color: var(--muted); }

.disks { display: grid; gap: 14px; }
.disk-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.disk-line span { color: var(--muted); font-variant-numeric: tabular-nums; }

table.usage td { white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(60px, 140px) auto; align-items: center; gap: 10px; }
.hbar-track { height: 8px; border-radius: 99px; background: var(--off-soft); overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: var(--primary); border-radius: 0 4px 4px 0; }
.hbar .num { font-size: 13px; color: var(--ink-2); }

@media (max-width: 1080px) { .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2.even { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .kpis.three { grid-template-columns: 1fr; } .section-title { flex-wrap: wrap; } }

/* avisos sobre el formulario de inicio */
.form-error.info { background: var(--ok-soft); color: var(--ok); }
.form-error.warn { background: var(--warn-soft); color: var(--warn); }

/* contador sencillo en cabeceras */
.count-pill { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--off-soft); border-radius: 99px; padding: 1px 8px; font-variant-numeric: tabular-nums; }

/* datos en vivo */
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ok); }
.live-time { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ok); opacity: 0; animation: live-ping 2.4s ease-out infinite; }
@keyframes live-ping { 0% { transform: scale(.6); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* =========================== dominios =========================== */

/* Selector de dos opciones (subdominio / dominio propio) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--off-soft); margin-bottom: 14px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 7px 10px; border-radius: 7px; font-weight: 500; color: var(--ink-2); font-size: 13.5px; }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(29, 31, 27, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Campo con sufijo fijo: [mitienda].vps.pimentel.cloud */
.affix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); overflow: hidden; }
.affix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.affix input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; border-radius: 0; }
.affix-text { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; font-size: 13.5px; }

/* Registro DNS a crear */
.dns-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); margin: 10px 0; display: grid; gap: 4px; }
.dns-card > p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.dns-card > p.muted-note { margin: 6px 0 0; }
.dns-block + .dns-block { margin-top: 14px; }
.dns-now { margin: 0; font-size: 13.5px; }

.dns-slot:empty { display: none; }
.badge.as-btn { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; }
.badge.as-btn:hover { filter: brightness(.96); }
.item-note { margin-top: 4px; font-size: 13px; color: var(--danger); }
.requests { margin-bottom: 18px; }
.nav-count { margin-left: 2px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.nav-link[aria-current="page"] .nav-count { background: var(--primary); color: #fff; }

.pop-version { margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* =========================== aplicaciones =========================== */

.item-title .tech { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--off-soft); border-radius: 5px; padding: 1px 7px; vertical-align: 1px; }
.item-domains { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 13px; }
.item-domains svg { color: var(--muted); }
.item-domains a { color: var(--primary); text-decoration: none; font-weight: 500; }
.item-domains a:hover { text-decoration: underline; }
.item-domains.muted { color: var(--muted); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.item-sub .chip + .chip { margin-left: 4px; }

.details { display: grid; gap: 2px; }
.details .alert { margin-top: 10px; }
.kv-block { display: grid; gap: 6px; margin-top: 8px; font-size: 13.5px; }
.kv-block > span { color: var(--muted); }
pre.cmd { margin: 0; padding: 10px 12px; border-radius: 8px; background: #1a1b18; color: #dcddd5; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; max-height: 160px; overflow: auto; }
.list.nested { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list.nested .item { padding: 10px 12px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; padding: 10px 18px 18px; }
.tech-row { display: grid; gap: 6px; align-content: start; }
.tech-row b { font-weight: 600; }
.tech-row .versions { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-row .ver { font: 12.5px/1.4 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.tech-row .ver small { font-family: var(--sans); color: var(--muted); margin-left: 6px; }
.tech-cat { padding: 14px 18px 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tech-cat + .tech-grid { padding-top: 8px; }
.tech-grid + .tech-cat { border-top: 1px solid var(--line); }
.item-sub .to-app { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.item-sub .to-app:hover { color: var(--primary); }
.item-sub .tech { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--off-soft); border-radius: 5px; padding: 0 6px; }
.warn-text { color: var(--warn); font-weight: 500; }
