/* ══════════════════════════════════════════════════════════════════════════
   FleetDash design system — self-contained, theme-aware (light + dark).
   Direction: an internal fleet-operations console. Dense, quiet, scannable —
   Linear / Vercel / Retool caliber. Neutral cool-gray surfaces, one indigo
   accent used sparingly, hairline borders as the primary separator with soft
   shadows secondary, status as subtle dots/pills (never garish blocks),
   tabular numerics, tight heading tracking. Memorable detail: the brand "mesh"
   mark (a 2×2 node grid) echoing the fleet-across-the-mesh language.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens — light ────────────────────────────────────────────────────────── */
:root {
  --bg:        #f5f6f8;
  --surface:   #ffffff;
  --surface-2: #f1f2f5;
  --surface-3: #e9ebf0;
  --border:    #e6e8ec;
  --border-2:  #d6d9e0;
  --text:      #14161c;
  --text-2:    #59626f;
  --text-3:    #89909e;
  --accent:    #5a63d8;
  --accent-2:  #ecedfb;
  --accent-ink:#ffffff;

  --green:  #17794a;  --green-bg:  #e6f4ec;  --green-dot:  #1fa35a;
  --amber:  #92650a;  --amber-bg:  #fbf0d8;  --amber-dot:  #dfa020;
  --red:    #b42318;  --red-bg:    #fbe9e7;  --red-dot:    #e5484d;

  --add-bg: #e6f6ec;  --add-ink: #12643a;  --add-gutter:#bfe6cd;
  --del-bg: #fdeceb;  --del-ink: #a11b12;  --del-gutter:#f2c4bf;

  /* Radius scale */
  --radius:   12px;
  --radius-s: 9px;
  --radius-xs:6px;

  /* Elevation — subtle; borders carry most of the separation */
  --shadow-1: 0 1px 2px rgba(17,24,39,.05), 0 1px 1px rgba(17,24,39,.03);
  --shadow-2: 0 6px 16px rgba(17,24,39,.08), 0 2px 5px rgba(17,24,39,.05);
  --shadow-pop: 0 12px 34px rgba(17,24,39,.14), 0 4px 10px rgba(17,24,39,.07);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d0f13;
    --surface:   #15181f;
    --surface-2: #1b1f27;
    --surface-3: #232833;
    --border:    #262b34;
    --border-2:  #343b47;
    --text:      #e8eaf0;
    --text-2:    #a3accd;
    --text-3:    #6f7889;
    --accent:    #838cf6;
    --accent-2:  #23253a;
    --accent-ink:#0d0f13;
    --green:#48cd81; --green-bg:#10281c; --green-dot:#2fb268;
    --amber:#e6b74f; --amber-bg:#2a2211; --amber-dot:#e0a020;
    --red:  #f37970; --red-bg:  #2a1615; --red-dot:  #e5484d;
    --add-bg:#0f2a1c; --add-ink:#74e3a5; --add-gutter:#1d4a32;
    --del-bg:#2a1513; --del-ink:#f3897f; --del-gutter:#5a2521;
    --shadow-1: 0 1px 2px rgba(0,0,0,.5);
    --shadow-2: 0 6px 20px rgba(0,0,0,.55);
    --shadow-pop: 0 16px 40px rgba(0,0,0,.6);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#0d0f13; --surface:#15181f; --surface-2:#1b1f27; --surface-3:#232833;
  --border:#262b34; --border-2:#343b47; --text:#e8eaf0; --text-2:#a3accd; --text-3:#6f7889;
  --accent:#838cf6; --accent-2:#23253a; --accent-ink:#0d0f13;
  --green:#48cd81; --green-bg:#10281c; --green-dot:#2fb268;
  --amber:#e6b74f; --amber-bg:#2a2211; --amber-dot:#e0a020;
  --red:#f37970; --red-bg:#2a1615; --red-dot:#e5484d;
  --add-bg:#0f2a1c; --add-ink:#74e3a5; --add-gutter:#1d4a32;
  --del-bg:#2a1513; --del-ink:#f3897f; --del-gutter:#5a2521;
  --shadow-1:0 1px 2px rgba(0,0,0,.5); --shadow-2:0 6px 20px rgba(0,0,0,.55);
  --shadow-pop:0 16px 40px rgba(0,0,0,.6);
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { text-wrap: balance; margin: 0; font-weight: 650; letter-spacing: -.014em; line-height: 1.2; }
p { text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; }
code, kbd { font-family: var(--mono); }
hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* Refined scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }

/* ── App bar ───────────────────────────────────────────────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 54px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo {
  position: relative; width: 23px; height: 23px; border-radius: 7px; flex: none;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--shadow-1);
}
.brand .logo::after {                       /* the "mesh" — a 2×2 node grid */
  content: ""; position: absolute; top: 7px; left: 7px;
  width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .95;
  box-shadow: 5px 0 0 #fff, 0 5px 0 #fff, 5px 5px 0 #fff;
}
.appnav { display: flex; gap: 2px; margin-left: 4px; }
.appnav a {
  color: var(--text-2); padding: 6px 11px; border-radius: var(--radius-xs);
  font-weight: 540; transition: background-color .13s, color .13s;
}
.appnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.appnav a.active { background: var(--accent-2); color: var(--accent); }
.appbar .spacer { flex: 1; }
.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-weight: 540; padding: 4px 10px 4px 5px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.userchip .av { width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.iconbtn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 15px;
  transition: background-color .13s, color .13s, transform .13s;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn:active { transform: scale(.93); }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 26px 22px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 23px; display: flex; align-items: center; gap: 11px; }
.page-head .sub { color: var(--text-3); margin-top: 5px; font-size: 13px; max-width: 76ch; }
.crumbs { color: var(--text-3); font-size: 12.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.card.pad { padding: 18px 20px; }

/* ── Stat tiles ────────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { padding: 15px 17px; position: relative; overflow: hidden; }
.tile .k { color: var(--text-3); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-size: 26px; font-weight: 680; margin-top: 7px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }

/* ── Badges · dots · pills ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; line-height: 1.55; white-space: nowrap;
}
.badge.green { color: var(--green); background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 22%, transparent); }
.badge.amber { color: var(--amber); background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 26%, transparent); }
.badge.red   { color: var(--red);   background: var(--red-bg);   border-color: color-mix(in srgb, var(--red) 26%, transparent); }
.badge.mute  { color: var(--text-2); background: var(--surface-2); border-color: var(--border); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-dot) 20%, transparent); }
.dot.amber { background: var(--amber-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber-dot) 20%, transparent); }
.dot.red   { background: var(--red-dot);   box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-dot) 20%, transparent); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ── Tables ────────────────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1); }
table.data { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.data th, table.data td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data thead th {
  color: var(--text-3); font-size: 11px; font-weight: 640; text-transform: uppercase; letter-spacing: .05em;
  background: var(--surface-2); position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--border-2);
}
table.data tbody tr { transition: background-color .1s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.rowlink { font-weight: 600; color: var(--text); }
.rowlink:hover { color: var(--accent); text-decoration: none; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 14px; border-radius: var(--radius-xs); font: inherit; font-weight: 600; line-height: 1.1;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  transition: background-color .13s ease-out, border-color .13s, transform .1s, box-shadow .13s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); text-decoration: none; }
.btn:active { transform: translateY(.5px) scale(.985); }
.btn.primary { background: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, #000); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 90%, #000); border-color: color-mix(in srgb, var(--accent) 50%, #000); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 32%, var(--border-2)); }
.btn.danger:hover { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }

input[type=text], input[type=tel], input[type=search], input[type=password],
input[type=email], input[type=number], select, textarea {
  font: inherit; padding: 8px 11px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  transition: border-color .13s, box-shadow .13s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .appnav a:focus-visible,
a:focus-visible, button:focus-visible, .iconbtn:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}

/* ── Bot header ────────────────────────────────────────────────────────────── */
.bothead { display: flex; align-items: center; gap: 16px; padding: 17px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.bothead .title { display: flex; align-items: center; gap: 11px; }
.bothead h1 { font-size: 21px; }
.bothead .facts { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.bothead .facts b { color: var(--text); font-weight: 600; }
.bothead .actions { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }

/* ── Tab nav (segmented) ───────────────────────────────────────────────────── */
.tabnav { display: flex; gap: 2px; flex-wrap: wrap; padding: 4px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.tabnav a {
  color: var(--text-2); padding: 6px 13px; border-radius: 7px; font-weight: 560; font-size: 13.5px;
  transition: background-color .12s, color .12s, box-shadow .12s;
}
.tabnav a:hover { color: var(--text); text-decoration: none; }
.tabnav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ── Chat ──────────────────────────────────────────────────────────────────── */
.chat { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } }
.threadlist { padding: 6px; max-height: 72vh; overflow-y: auto; }
.thread { display: block; padding: 9px 12px; border-radius: var(--radius-s); color: var(--text); }
.thread:hover { background: var(--surface-2); text-decoration: none; }
.thread.active { background: var(--accent-2); box-shadow: inset 2px 0 0 var(--accent); }
.thread .who { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.thread .who .n { color: var(--text-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.thread .meta { color: var(--text-3); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.messages { padding: 18px; max-height: 74vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 74%; padding: 9px 13px; border-radius: 15px; font-size: 13.5px; box-shadow: var(--shadow-1); }
.bubble .t { text-wrap: pretty; white-space: pre-wrap; word-break: break-word; }
.bubble .ts { font-size: 11px; color: var(--text-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; box-shadow: var(--shadow-2); }
.bubble.mine .ts { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }

/* ── Documents ─────────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 262px 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }
.filelist { padding: 6px; max-height: 74vh; overflow-y: auto; }
.filelist .grp { color: var(--text-3); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 13px 12px 5px; }
.filelist a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: var(--radius-s); color: var(--text); }
.filelist a:hover { background: var(--surface-2); text-decoration: none; }
.filelist a.active { background: var(--accent-2); color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.filelist a .sz { color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.viewer { overflow: hidden; }
.viewer .vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.viewer .vhead .fn { font-family: var(--mono); font-size: 13px; font-weight: 600; word-break: break-all; }
.viewer pre { margin: 0; padding: 16px 18px; overflow-x: auto; max-height: 72vh; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre; }

/* ── Diff (syntax-aware unified) ───────────────────────────────────────────── */
.difffile { margin-bottom: 16px; overflow: hidden; }
.difffile .dh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.difffile .dh .fn { font-family: var(--mono); font-size: 13px; font-weight: 600; word-break: break-all; }
.diff { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; }
.diff .ln { display: block; padding: 0 15px 0 12px; white-space: pre; border-left: 3px solid transparent; }
.diff .ln.add { background: var(--add-bg); color: var(--add-ink); border-left-color: var(--add-gutter); }
.diff .ln.del { background: var(--del-bg); color: var(--del-ink); border-left-color: var(--del-gutter); }
.diff .ln.hunk { color: var(--accent); background: var(--accent-2); }
.diff .ln.meta { color: var(--text-3); }
.diff .ln.ctx { color: var(--text-2); }

/* ── Preserve manifest — the "what survives" reassurance panel ──────────────── */
.preserve {
  padding: 20px 22px; margin: 6px 0 22px;
  border-color: color-mix(in srgb, var(--green) 32%, var(--border));
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--green-bg) 70%, var(--surface)), var(--surface) 60%);
  box-shadow: var(--shadow-2);
}
.preserve-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.preserve-head .shield {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; font-size: 20px; line-height: 1;
  border-radius: 11px; background: var(--green-bg);
  border: 1px solid color-mix(in srgb, var(--green) 26%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.preserve-head h2 { font-size: 18px; color: var(--green); }
.preserve-sub { color: var(--text-2); margin-top: 4px; font-size: 13px; }
.preserve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 12px; }
.preserve-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 13px 15px; box-shadow: var(--shadow-1);
  position: relative;
}
.preserve-group .pg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preserve-group .pg-name { font-weight: 640; letter-spacing: -.01em; display: flex; align-items: center; gap: 7px; }
.preserve-group .pg-name::before { content: "✓"; color: var(--green); font-weight: 800; font-size: 12px; }
.preserve-group .pg-blurb { color: var(--text-3); font-size: 12.5px; margin: 7px 0 10px; text-wrap: pretty; }
.preserve-group .pg-globs { display: flex; flex-wrap: wrap; gap: 5px; }
.preserve-group .pg-glob {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 1px 7px; word-break: break-all;
}

/* ── Blocked plan — clearly non-actionable ─────────────────────────────────── */
.blocked-card {
  border-color: color-mix(in srgb, var(--red) 36%, var(--border));
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 11px,
      color-mix(in srgb, var(--red) 5%, transparent) 11px,
      color-mix(in srgb, var(--red) 5%, transparent) 22px),
    var(--surface);
}
.blocked-card .blockmsg {
  background: var(--red-bg); color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 24%, transparent);
  border-radius: var(--radius-s); padding: 11px 14px; margin: 12px 0; overflow-x: auto; white-space: pre-wrap;
  font-family: var(--mono); font-size: 12.5px;
}

/* ── Plan confirm bar — the deliberate "arm & run" zone ─────────────────────── */
.planbar {
  display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap;
  border-top: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border));
}
.apply-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); font-weight: 550;
  transition: color .13s, background-color .13s, border-color .13s;
}
.apply-toggle:has(input:checked) {
  color: var(--amber); background: var(--amber-bg);
  border-color: color-mix(in srgb, var(--amber) 42%, transparent);
}

/* ── Definition summary (plan facts) + step/log surfaces ───────────────────── */
.summary { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.summary th, .summary td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary tr:last-child th, .summary tr:last-child td { border-bottom: none; }
.summary th { color: var(--text-3); font-weight: 600; width: 190px; white-space: nowrap; }
.summary td { color: var(--text); }
.log {
  margin: 0; padding: 15px 17px; border-radius: var(--radius-s);
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto; max-height: 62vh; color: var(--text);
}

/* ── Empty · notice · misc ─────────────────────────────────────────────────── */
.empty { padding: 46px 20px; text-align: center; color: var(--text-3); }
.empty .big { font-size: 15px; color: var(--text-2); font-weight: 620; margin-bottom: 5px; }
.empty::before {
  content: ""; display: block; width: 38px; height: 38px; margin: 0 auto 14px;
  border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: inset 0 0 0 4px var(--surface);
}
.notice { padding: 11px 15px; border-radius: var(--radius-s); font-size: 13px; margin-bottom: 15px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.notice.warn { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 26%, transparent); color: var(--amber); }
.notice.good { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 28%, transparent); color: var(--green); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv .k { color: var(--text-3); font-size: 12px; font-weight: 600; }
.kv .v { font-weight: 560; font-variant-numeric: tabular-nums; }
.section-title { font-size: 12px; font-weight: 680; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 24px 0 11px; }
.actionbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
ul.mono, .card.pad ul.mono { margin: 0; padding-left: 20px; }
ul.mono li { padding: 1px 0; }

/* per-row action buttons in the fleet grid */
td.rowactions{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
td.rowactions .btn.sm{padding:3px 9px;font-size:12px}
