/* El panel web de Basalt. El mismo lenguaje que la app —ver DESIGN.md—: un
   acento, color solo para estado, monoespaciada para lo técnico, cristal para
   lo que flota. Sin nada de fuera: la CSP no deja cargar otra cosa. */
:root {
  --ground: #F2F2F7; --surface: #FFFFFF; --raised: #F2F2F5; --ink: #1C1C1E;
  --muted: #6B6E78; --faint: #9A9CA6; --line: #E1E2E8;
  --accent: #007AFF; --accent-soft: rgba(0,122,255,.10);
  --ok: #248A3D; --ok-dot: #34C759; --warn: #C66A00; --warn-dot: #FF9F0A;
  --bad: #D70015; --bad-dot: #FF3B30; --bad-soft: rgba(255,59,48,.10);
  --glass: rgba(255,255,255,.72); --glass-line: rgba(0,0,0,.08);
  --shadow: 0 1px 2px rgba(20,22,30,.06), 0 8px 24px rgba(20,22,30,.06);
  --console: #0D0F12; --console-ink: #D7DAE0; --console-muted: #7D8390;
  --console-warn: #F5B94A; --console-bad: #FF7A70; --console-chat: #FFFFFF; --console-me: #8FC2FF;
  --r-s: 8px; --r-m: 12px; --r-l: 20px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, monospace;
  --t-xs: 12px; --t-s: 13px; --t-m: 15px; --t-l: 17px; --t-xl: 22px; --t-xxl: 28px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000; --surface: #1C1C1E; --raised: #2C2C2E; --ink: #F2F2F7;
    --muted: #9A9CA6; --faint: #6E7079; --line: #34353A; --accent: #0A84FF;
    --accent-soft: rgba(10,132,255,.18); --ok: #30D158; --ok-dot: #30D158;
    --warn: #FFB340; --warn-dot: #FF9F0A; --bad: #FF6961; --bad-dot: #FF453A;
    --bad-soft: rgba(255,69,58,.16); --glass: rgba(28,28,30,.72); --glass-line: rgba(255,255,255,.10);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --console: #0A0B0D;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ground); }
body { font: var(--t-m)/1.45 var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Armazón ——— */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: var(--s4);
}
.brand { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2); font-weight: 700; font-size: var(--t-l); color: var(--ink); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; }
.brand .mark svg { width: 16px; height: 16px; stroke: var(--ground); fill: none; stroke-width: 2; }
.switcher {
  display: flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none;
  background: var(--surface); border-radius: var(--r-m); padding: var(--s2) var(--s3); box-shadow: var(--shadow);
}
.switcher .meta { flex: 1; min-width: 0; }
.switcher .meta b { display: block; font-size: var(--t-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher .meta span { display: block; font-size: var(--t-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: var(--s3); padding: 7px var(--s2); border-radius: var(--r-s);
  color: var(--ink); text-decoration: none;
}
.nav a svg { color: var(--accent); }
.nav a:hover { background: var(--raised); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side .foot { margin-top: auto; display: flex; align-items: center; gap: var(--s2); padding: var(--s2); font-size: var(--t-s); color: var(--muted); }
.side .foot form { margin: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-weight: 600; font-size: var(--t-s); color: var(--ink); flex: none; }
.grow { flex: 1; min-width: 0; }
.main { min-width: 0; padding: 0 var(--s5) var(--s6); }

/* Cabecera del servidor: el estado arriba, que es lo que se lee. */
.head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; margin: 0 calc(-1 * var(--s5));
  padding: var(--s4) var(--s5); display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.head.static { position: static; }
.head .title { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.head h1 { margin: 0; font-size: var(--t-xxl); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.running { background: var(--ok-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-dot) 22%, transparent); }
.dot.starting, .dot.stopping, .dot.restarting { background: var(--warn-dot); }
.dot.crashed { background: var(--bad-dot); }
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); color: var(--muted); font-size: var(--t-s); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink);
}
.pill button { border: 0; background: none; padding: 0; color: var(--accent); display: inline-flex; }
.capsule {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.capsule button { width: 44px; height: 40px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; color: var(--ink); }
.capsule button:hover:not(:disabled) { background: var(--raised); }
.capsule button:disabled { color: var(--faint); cursor: default; }
.capsule button svg { width: 20px; height: 20px; }
.capsule .danger { color: var(--bad); }
.capsule .danger:disabled { color: var(--faint); }
.confirm { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: var(--t-s); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row.spread { justify-content: space-between; }

section.view { display: flex; flex-direction: column; gap: var(--s5); padding-top: var(--s2); }
h2 { margin: 0; font-size: var(--t-xl); letter-spacing: -.01em; }
h3 { margin: 0; font-size: var(--t-s); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lede { margin: 0; color: var(--muted); max-width: 62ch; }
.card { background: var(--surface); border-radius: var(--r-l); padding: var(--s4); }
.list { background: var(--surface); border-radius: var(--r-l); overflow: hidden; }
.list > .item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 52px; }
.list > .item + .item { border-top: 1px solid var(--line); }
.list .name { font-weight: 500; }
.list .note, .note { font-size: var(--t-s); color: var(--muted); }
.foot-note { font-size: var(--t-s); color: var(--muted); margin: calc(-1 * var(--s3)) var(--s4) 0; max-width: 70ch; }
.error { color: var(--bad); }
.empty { padding: var(--s5) var(--s4); color: var(--muted); text-align: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 16px;
  background: var(--raised); color: var(--ink); font-weight: 600; font-size: var(--t-s); white-space: nowrap; text-decoration: none;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.plain { background: none; color: var(--accent); padding-inline: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; background: var(--raised); color: var(--muted); }
.field { display: flex; align-items: center; gap: var(--s2); background: var(--raised); border-radius: 999px; padding: 0 var(--s3); min-height: 38px; border: 1px solid transparent; }
.field:focus-within { border-color: var(--accent); }
.field input, .field select { border: 0; background: none; outline: none; flex: 1; min-width: 0; padding: 8px 0; }

/* ——— Consola ——— */
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s4); align-items: start; }
.console { background: var(--console); color: var(--console-ink); border-radius: var(--r-l); display: flex; flex-direction: column; height: min(66vh, 680px); min-height: 360px; overflow: hidden; position: relative; }
.console .out { flex: 1; overflow-y: auto; padding: var(--s4) var(--s4) var(--s2); font: 12.5px/1.6 var(--mono); }
.console .out div { white-space: pre-wrap; word-break: break-word; }
.console .l-info { color: var(--console-muted); }
.console .l-warn { color: var(--console-warn); }
.console .l-error { color: var(--console-bad); }
.console .l-chat { color: var(--console-chat); }
.console .l-me { color: var(--console-me); }
.console .l-note { color: var(--console-muted); font-style: italic; }
.console .bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); flex-wrap: wrap; }
.console .entry { flex: 1 1 260px; display: flex; align-items: center; gap: var(--s2); border-radius: 999px; padding: 4px 4px 4px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }
.console .entry span { color: var(--console-muted); font-family: var(--mono); }
.console .entry input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--console-ink); font-family: var(--mono); font-size: 13px; padding: 7px 0; }
.console .entry button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; }
.console .entry button:disabled { opacity: .4; }
.console .live { position: absolute; top: var(--s3); right: var(--s3); display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--console-muted); background: rgba(255,255,255,.06); padding: 3px 10px; border-radius: 999px; }
.console .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.console .live.on i { background: var(--ok-dot); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .console .live.on i { animation: none; } }
.console-off { display: grid; gap: var(--s2); align-content: start; }

.meters { display: grid; gap: var(--s3); }
.meter { background: var(--surface); border-radius: var(--r-l); padding: var(--s3) var(--s4); display: grid; gap: 6px; }
.meter .top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.meter .label { font-size: var(--t-s); color: var(--muted); }
.meter .value { font-size: var(--t-l); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .value small { font-size: var(--t-s); color: var(--muted); font-weight: 400; }
.meter svg.spark { width: 100%; height: 38px; display: block; overflow: visible; }
.meter .track { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.meter .track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); }
.who { display: grid; gap: 2px; }
.who .p { display: flex; align-items: center; gap: var(--s2); padding: 4px 0; }
.head8 { width: 28px; height: 28px; border-radius: 6px; flex: none; display: block; }

/* ——— Inicio ——— */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--s4); }
.srv { background: var(--surface); border-radius: var(--r-l); padding: var(--s4); display: grid; gap: var(--s3); color: var(--ink); text-decoration: none; }
.srv:hover { box-shadow: var(--shadow); }
.srv .top { display: flex; align-items: center; gap: var(--s3); }
.srv .top b { font-size: var(--t-l); }
.srv .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.srv .facts div { background: var(--raised); border-radius: var(--r-m); padding: var(--s2) var(--s3); }
.srv .facts small { display: block; font-size: var(--t-xs); color: var(--muted); }
.srv .facts b { font-variant-numeric: tabular-nums; }

/* ——— Entrar ——— */
.login { max-width: 360px; margin: 14vh auto 0; display: grid; gap: var(--s4); padding-inline: var(--s4); }
.login .brand { justify-content: center; font-size: var(--t-xl); }
.login form { display: grid; gap: var(--s3); background: var(--surface); border-radius: var(--r-l); padding: var(--s5); }
.login h1 { margin: 0 0 var(--s1); font-size: var(--t-xl); }
.login label { display: grid; gap: 4px; font-size: var(--t-s); color: var(--muted); }
.login input { border: 1px solid var(--line); background: var(--ground); border-radius: var(--r-m); padding: 10px 12px; }
.login input:focus { outline: none; border-color: var(--accent); }
.login button { margin-top: var(--s1); justify-content: center; padding-block: 11px; }

/* Móvil: la barra de pestañas flotante de la app. */
.tabbar { display: none; }
.mobile-top { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 0 var(--s4) calc(96px + env(safe-area-inset-bottom, 0px)); }
  .head { margin: 0 calc(-1 * var(--s4)); padding: var(--s3) var(--s4); }
  .head h1 { font-size: var(--t-xl); }
  .console-grid { grid-template-columns: minmax(0, 1fr); }
  .console { height: 56vh; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s3); }
  .mobile-top form { margin: 0; }
  .tabbar {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 10; gap: 2px; padding: 4px; border-radius: 999px; max-width: calc(100% - 24px); overflow-x: auto;
    background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  }
  .tabbar a { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 999px; color: var(--ink); flex: none; }
  .tabbar a[aria-current="page"] { background: var(--surface); color: var(--accent); }
}

/* ——— Jugadores ——— */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--raised); border-radius: 999px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: var(--t-s); font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs .n { font-weight: 400; color: var(--faint); margin-left: 4px; font-variant-numeric: tabular-nums; }
.toggle { width: 44px; height: 26px; border-radius: 999px; background: var(--line); border: 0; position: relative; flex: none; padding: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.toggle[aria-checked="true"] { background: var(--ok-dot); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); }
.toggle:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .toggle::after { transition: none; } }
img.head8 { image-rendering: pixelated; object-fit: cover; background: var(--raised); }
.head8.big { width: 34px; height: 34px; }
.list .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.icon { padding: 8px; }

/* ——— Copias ——— */
.stepper { display: inline-flex; align-items: center; background: var(--raised); border-radius: 999px; }
.stepper button { border: 0; background: none; width: 36px; height: 32px; font-size: 18px; color: var(--ink); }
.stepper button:disabled { color: var(--faint); }
.stepper b { min-width: 2.5em; text-align: center; }
.item .ask { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; font-size: var(--t-s); }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok-dot) 16%, transparent); }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn-dot) 16%, transparent); }
.list > .item.asking { flex-wrap: wrap; }
.list > .item.asking > .actions { flex-basis: 100%; }
.item .ask span { flex: 1 1 260px; color: var(--muted); }

/* ——— Archivos ——— */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: var(--t-s); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs span { color: var(--faint); }
.crumbs b { font-weight: 500; }
.table-wrap { overflow-x: auto; border-radius: var(--r-l); }
table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 560px; }
th, td { text-align: left; padding: 9px var(--s4); font-size: var(--t-s); }
th { color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: var(--t-xs); }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--raised); }
td.fname { font-family: var(--mono); font-size: 13px; }
td.fname a, td.fname span.n { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; }
td.fname svg { color: var(--accent); }
td.fname .sub { display: none; margin: 2px 0 0 calc(16px + var(--s2)); font-family: var(--sans); font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
td.dim { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .acts { display: flex; gap: 2px; justify-content: flex-end; }
@media (hover: hover) { td .acts { opacity: 0; } tbody tr:hover .acts, tbody tr:focus-within .acts { opacity: 1; } }
td .acts .btn { padding: 6px; background: none; color: var(--accent); }
td .acts .btn.danger { color: var(--bad); }
td .ask { display: flex; align-items: center; gap: var(--s2); justify-content: flex-end; white-space: nowrap; }
.editor { display: grid; gap: var(--s3); }
.editor textarea {
  width: 100%; min-height: 60vh; resize: vertical; border: 0; outline: none; border-radius: var(--r-l);
  background: var(--surface); color: var(--ink); padding: var(--s4); font: 13px/1.65 var(--mono); tab-size: 2;
}
.editor textarea:focus { box-shadow: 0 0 0 2px var(--accent); }

/* Lo que antes iba en atributos `style`, que la CSP no deja pasar. */
.sprite { position: absolute; }
.btn.bare { padding: 0; }
.i.small { width: 15px; height: 15px; }
.foot-note.hint { margin-top: 0; display: flex; gap: var(--s2); align-items: flex-start; }
#addForm { flex: 0 1 340px; min-width: min(100%, 300px); }
#nameForm .field { flex: 1 1 220px; }

/* En un teléfono las acciones tienen que verse sin desplazar la tabla de lado:
   la fecha se va, y el tamaño pasa debajo del nombre. */
@media (max-width: 640px) {
  #fileTable table { min-width: 0; }
  #fileTable th:nth-child(2), #fileTable td:nth-child(2),
  #fileTable th:nth-child(3), #fileTable td:nth-child(3) { display: none; }
  #fileTable th, #fileTable td { padding-inline: var(--s3); }
  #fileTable td.fname { overflow-wrap: anywhere; }
  #fileTable td.fname .sub { display: block; }
  #fileTable td .ask { white-space: normal; flex-wrap: wrap; }
}

/* Añadidos. */
.ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); color: var(--muted); flex: none; }
.ic.accent { color: var(--accent); background: var(--accent-soft); }
.item.off .ic, .item.off .name { opacity: .55; }
.note.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note.warn-text { color: var(--warn); display: flex; gap: var(--s1); align-items: flex-start; }
.note.warn-text .i { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.note.dim { color: var(--faint); font-size: var(--t-xs); }
.list .item .grow { display: grid; gap: 2px; }
#addonAsk .grow, #addonsChanged .grow { color: var(--ink); }

/* Tareas: el editor. */
.tedit { display: grid; gap: var(--s4); }
.tedit h3 { margin: 0; }
.stack { display: grid; gap: var(--s2); }
.row.end { justify-content: flex-end; }
.field.fit { flex: 0 0 auto; }
.field.fit input[type="number"] { width: 5em; }
.days { display: flex; gap: var(--s1); flex-wrap: wrap; }
.days button { border: 0; border-radius: 999px; min-width: 44px; height: 34px; padding: 0 var(--s2); background: var(--raised); color: var(--ink); text-transform: capitalize; }
.days button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.list.steps .item { min-height: 46px; padding-block: var(--s2); }
.list.steps .item .field { flex: 1 1 200px; background: var(--bg, var(--raised)); }
.list.steps .item .field.fit { flex: 0 0 auto; }
.list.steps .item .btn { padding: 6px; background: none; color: var(--muted); }
.list.steps .item .btn.danger { color: var(--bad); }
.list.steps .empty { padding: var(--s3) var(--s4); }
.list > .item.pick { cursor: pointer; }
.list > .item.pick:hover { background: var(--raised); }

/* Añadidos: buscar en los catálogos. */
.catalog { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.catalog .field { flex: 1 1 260px; }
.catalog .field .i { color: var(--muted); flex: none; }
#catalogResults .actions .btn.primary { white-space: nowrap; }
.error.ok { color: var(--ok); }
.chip.accent { color: var(--accent); background: var(--accent-soft); }

/* Versión y arranque. */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s4); align-items: start; }
.two h3, .view > .row h3 { margin: 0; }
.list .item .value { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.list .item .value.mono { font-family: var(--mono); font-size: var(--t-s); }
.setting-group h4 { margin: 0 0 var(--s2) var(--s4); font-size: var(--t-s); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.list .item.setting { flex-wrap: wrap; }
.list .item.setting .field { flex: 0 1 220px; background: var(--raised); }
.list .item.setting.wide .field { flex: 1 1 100%; }
.list .item.setting .field input[type="number"] { width: 6em; text-align: right; }
.list .item.setting.changed .name::after { content: " •"; color: var(--accent); }
.list .item.setting textarea { width: 100%; border: 0; background: none; outline: none; resize: vertical; font-family: var(--mono); font-size: var(--t-s); color: var(--ink); padding: 8px 0; }
.list .item.setting.wide .field { border-radius: var(--r-m, 12px); }
.list .item .hint-row { flex-basis: 100%; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.note.ok-text { color: var(--ok); }
#netAdd .tabs { flex: none; }

/* ——— Actualizar ——— */
.update-ask { display: grid; gap: var(--s2); }
.update-ask .row { justify-content: flex-end; flex-wrap: wrap; }
.update-step { display: flex; align-items: center; gap: var(--s2); }
.update-step i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1.4s infinite; }
@media (prefers-reduced-motion: reduce) { .update-step i { animation: none; } }
.note.bad-text { color: var(--bad); white-space: pre-wrap; }
.update-pick { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.update-pick .field { flex: 1 1 140px; }
