/* 2.x LOOK restored (owner 11-17 via Lane 7: "Manage looks very generic now"; lanes/manage-2x-look-diff.md part A): DM Sans + Space Grotesk, square 4/6 corners, flat surfaces, blue info. The neutrals are graphite (owner 23:22Z 11-17 "okay go graphite then", replaces 145(b)); the rest of the 2.x look stays.
   ShadowLatch design tokens: ONE file for Manage (browser) and the desktop app (port-agent-ui). GRAPHITE (owner 11-14 9:05 PM EST: "Graphite looks great", the approved Manage samples;
   lanes/design-manage-graphite-spec.md + design-manage-graphite-tokens.md). No green-tinted neutral anywhere: grey does the work, neon is a signal (focus, the primary button, the active nav
   marker, status), never a large fill. Radius 10/6 is the owner's approval of the samples (docs/brand says 6/4). Light = a cool light grey page with near-white cards (owner 9:10 PM EST).
   Manage: dark unless this device saved Light or System (owner 11-17; boot.js sets data-theme before the first paint). Without data-theme (System, or the desktop app) the system setting decides. */
:root {
  --bg: #f2f3f5; --card: #ffffff; --soft: #eceef1; --line: #e1e4e8; --line-strong: #c3c8ce;
  --text: #1b1c1d; --muted: #686c70;
  --accent: #4f792c; --accent-soft: rgba(79, 121, 44, .08); --btn: #c2fa84; --btn-t: #1b2b11;
  --good: #24654a; --good-bg: rgba(36, 101, 74, .08); --warn: #815715; --warn-bg: rgba(129, 87, 21, .08); --bad: #a63431; --bad-bg: rgba(166, 52, 49, .07); --info: #245cb3; --info-bg: rgba(36, 92, 179, .08);
  --field: #ffffff; --sidebar-bg: #f7f8fa; --logo-tint: #1b1c1d;
  --shadow: 0 1px 2px rgba(20,24,28,.05), 0 6px 16px -12px rgba(20,24,28,.16); --surface: linear-gradient(180deg, #ffffff, #fbfbfc); --page-bg: radial-gradient(ellipse 90% 55% at 50% 0%, #fafbfc, transparent 78%); --glow: 0 0 0 1px rgba(79,121,44,.40); --glow-text: none; /* graphite depth: an inner highlight on top, a long soft drop */
  --radius: 6px; --radius-sm: 4px; --btn-radius: 4px; /* 2.x: --surface-radius 6, --chip-radius 4 (owner 10-18 "square everything") */
  --tap-min: 44px; /* the smallest tap target on a touch screen (pointer: coarse, and inside the app: html.in-app) */
  --ctl-h: 34px; /* one height for toolbar controls (search, filters, refresh, sort) bundle-wide */
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; --font-head: "Space Grotesk", "DM Sans", -apple-system, "Segoe UI", sans-serif; /* 2.x Signal layer */ --mono: ui-monospace, Consolas, monospace;
  /* a plain hairline where the neon line used to be; the tile is a neutral graphite gradient, not a coloured bubble */
  --mint: #0b7a5a; --neon-line: linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)); --tile-grad: linear-gradient(160deg, #f2f3f5, #eceef1); --tile-ink: #2a2c2e;
  --mesh: #12b894; --mesh-ink: #086a4d; --mesh-bg: #d2f3e6; /* the mesh indicator: a cool mint, not blue; --mesh for rings and dots, --mesh-ink for text on its tint */
  --glass: rgba(255, 255, 255, .88); --glass-edge: rgba(0, 0, 0, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --bg: #0e0f0f; --card: #161718; --soft: #1d1f20; --line: #050606; --line-strong: #1b1d1f; /* graphite: BLACK edges on dark, as the padlock's body (owner 11-24) */
    --text: #eef0ee; --muted: #9a9f9c;
    --accent: #c2fa84; --accent-soft: rgba(194, 250, 132, .08); --btn: #c2fa84; --btn-t: #1b2b11;
    --good: #8fd3ad; --good-bg: rgba(143, 211, 173, .10); --warn: #e6c07a; --warn-bg: rgba(230, 192, 122, .10); --bad: #ff9f97; --bad-bg: rgba(255, 159, 151, .10); --info: #9cbeff; --info-bg: rgba(156, 190, 255, .10);
    --field: #121314; --sidebar-bg: #0b0c0c; --logo-tint: #eef0ee;
    --shadow: 0 6px 16px -10px rgba(0,0,0,.6); --surface: linear-gradient(180deg, #181919, #161718); --page-bg: radial-gradient(ellipse 90% 55% at 50% 0%, #1b1c1b, transparent 78%); --glow: 0 0 0 1px rgba(194,250,132,.40); --glow-text: none; /* the padlock's body: brushed depth, an inner top highlight, a black edge; the neon ring/glow is for the highlighted item */
    --mint: #8fd9c0; --neon-line: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)); --tile-grad: linear-gradient(160deg, #1d1f20, #161718); --tile-ink: #dfe3e0;
    --mesh: #62f0c0; --mesh-ink: #62f0c0; --mesh-bg: #1b3329;
    --glass: rgba(25, 29, 26, .86); --glass-edge: rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}
/* forced dark even when the system is light (the options page shows both side by side) */
:root[data-theme="dark"] {
  --bg: #0e0f0f; --card: #161718; --soft: #1d1f20; --line: #050606; --line-strong: #1b1d1f; /* graphite: BLACK edges on dark, as the padlock's body (owner 11-24) */
  --text: #eef0ee; --muted: #9a9f9c;
  --accent: #c2fa84; --accent-soft: rgba(194, 250, 132, .08); --btn: #c2fa84; --btn-t: #1b2b11;
  --good: #8fd3ad; --good-bg: rgba(143, 211, 173, .10); --warn: #e6c07a; --warn-bg: rgba(230, 192, 122, .10); --bad: #ff9f97; --bad-bg: rgba(255, 159, 151, .10); --info: #9cbeff; --info-bg: rgba(156, 190, 255, .10);
  --field: #121314; --sidebar-bg: #0b0c0c; --logo-tint: #eef0ee;
  --shadow: 0 6px 16px -10px rgba(0,0,0,.6); --surface: linear-gradient(180deg, #181919, #161718); --page-bg: radial-gradient(ellipse 90% 55% at 50% 0%, #1b1c1b, transparent 78%); --glow: 0 0 0 1px rgba(194,250,132,.40); --glow-text: none; /* the padlock's body: brushed depth, an inner top highlight, a black edge; the neon ring/glow is for the highlighted item */
  --mint: #8fd9c0; --neon-line: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)); --tile-grad: linear-gradient(160deg, #1d1f20, #161718); --tile-ink: #dfe3e0;
  --mesh: #62f0c0; --mesh-ink: #62f0c0; --mesh-bg: #1b3329;
  --glass: rgba(25, 29, 26, .86); --glass-edge: rgba(255, 255, 255, .06);
  color-scheme: dark;
}
/* A native select's open list takes its own colors: where a select's background is clear, a browser draws a white list under the theme's light words
   (owner 11-28: "Internet (automatic address)" looked disabled on the dark page). */
select option, select optgroup { background-color: var(--card); color: var(--text); }
