/*
 * The dashboard's own styles, on the tokens every Nowa app shares: the default look below is the one in
 * staff's, project-manager's and installer's globals.css, and light or dark is the `dark` class on <html>.
 * The other looks (looks/*.css, the very same files as those apps', scripts/sync-looks.mjs) are loaded
 * after this, outside any layer, so they win over everything here; they restyle elements by the data-slot
 * names app.js gives them (tagSlots).
 */
@layer dashboard {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
    /* the dashboard's own: status colours and the colour of data (bars, heat map, sparklines) */
    --ok: 142 72% 29%;
    --warn: 32 95% 44%;
    --info: 221 83% 53%;
    --heat: 37, 99, 235;
  }

  .dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 72% 58%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    --ok: 142 69% 58%;
    --warn: 38 92% 50%;
    --info: 213 94% 68%;
    --heat: 96, 165, 250;
  }

  * { box-sizing: border-box; border-color: hsl(var(--border)); }
  body {
    margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground));
    font: 14px/1.45 var(--font-body); font-feature-settings: "rlig" 1, "calt" 1;
  }
  .font-display { font-family: var(--font-display); }
  .hidden { display: none !important; }
  .muted { color: hsl(var(--muted-foreground)); }
  .err { color: hsl(var(--destructive)); min-height: 1.2em; }
  a { color: inherit; }
  input, select, textarea, button { font: inherit; color: inherit; }
  input, select, textarea {
    background: hsl(var(--background)); border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px); padding: 7px 10px;
  }
  :is(input, select, textarea, button, a):focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
  textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
  button {
    background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: 1px solid transparent;
    border-radius: calc(var(--radius) - 2px); padding: 7px 14px; cursor: pointer; font-weight: 500;
    transition: background-color .15s, color .15s, opacity .15s;
  }
  button:hover { background: hsl(var(--primary) / .9); }
  button.ghost { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--input)); }
  button.ghost:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
  button.ghost.on { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
  button.danger { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
  button.danger:hover { background: hsl(var(--destructive) / .9); }
  button:disabled { opacity: .5; cursor: default; }
  .icon-btn, .user-btn { background: transparent; color: hsl(var(--foreground)); border-color: transparent; }
  .icon-btn:hover, .user-btn:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
  .icon-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; }
  .user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; }
  svg.i { width: 16px; height: 16px; flex-shrink: 0; }
  .icon-btn svg.i { width: 20px; height: 20px; }
  code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

  .login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
  .login .auth { width: min(400px, 100%); display: grid; gap: 12px; }
  .login .auth-head { display: flex; align-items: center; gap: 10px; }
  .login .auth-head img { width: 36px; height: 36px; border-radius: calc(var(--radius) - 2px); }
  .login h1 { margin: 0; font-size: 22px; }

  /* ---------- app header + navigation ---------- */
  header {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 16px;
    background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); position: sticky; top: 0; z-index: 5;
  }
  .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-right: 4px; cursor: pointer; }
  .brand img { width: 32px; height: 32px; border-radius: calc(var(--radius) - 2px); }
  .header-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  #game-select { min-width: 160px; }
  /* the games page belongs to no game: the controls and pages of one are hidden */
  body.at-home :is(#game-select, #env-toggle, #tabs, #toolbar) { display: none; }
  /* Development's data is the team's tests: the switch and a line under the header say so on every page */
  .seg.env-toggle button { padding: 4px 8px; font-size: 13px; }
  .seg.env-toggle button[data-env="development"][aria-pressed="true"] { background: hsl(var(--warn)); color: hsl(0 0% 100%); }
  body.env-dev header { box-shadow: inset 0 -3px 0 hsl(var(--warn)); }
  .chip.env-development { background: hsl(var(--warn) / .15); color: hsl(var(--warn)); }
  .chip.env-production { background: hsl(var(--ok) / .15); color: hsl(var(--ok)); }
  h2 .chip { vertical-align: middle; margin-left: 4px; font-weight: 500; }
  h3.env-keys { margin: 8px 0 0; font-size: 14px; }
  /* the tabs wrap rather than scroll: the looks' wider lettering would hide the last ones */
  nav#tabs {
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 12px;
    background: hsl(var(--muted) / .3); border-bottom: 1px solid hsl(var(--border));
  }
  nav#tabs a {
    padding: 6px 12px; border-radius: calc(var(--radius) - 2px); cursor: pointer; white-space: nowrap;
    color: hsl(var(--muted-foreground)); text-decoration: none; transition: color .15s;
  }
  nav#tabs a:hover { color: hsl(var(--foreground)); }
  nav#tabs a[aria-current="page"] {
    background: hsl(var(--background)); color: hsl(var(--foreground)); font-weight: 500; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
  }
  main { padding: 16px; max-width: 1400px; margin: 0 auto; }

  .avatar {
    width: 32px; height: 32px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--foreground));
    display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0;
  }
  .user-name { font-weight: 500; }
  .menu-list .skin { display: flex; align-items: center; gap: 8px; }
  .menu-list .skin .check { width: 16px; display: inline-grid; place-items: center; }
  .menu-list .skin .swatches { display: flex; margin-left: auto; }
  .menu-list .skin .swatches span { width: 14px; height: 14px; margin-left: -4px; border-radius: 999px; border: 1px solid hsl(var(--foreground) / .2); }
  .menu-list .who { padding: 8px 10px; }
  .menu-list .who .sub { font-size: 12px; color: hsl(var(--muted-foreground)); }
  .menu-list hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 4px 0; }
  .menu-list.end { left: auto; right: 0; }

  .card {
    background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border));
    border-radius: .75rem; padding: 16px; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
  }
  .grid { display: grid; gap: 12px; }
  .kpis { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 12px; }
  .kpi .label { color: hsl(var(--muted-foreground)); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-label); }
  .kpi .value { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
  /* after Yenile, until the next one: how much a card's figure changed */
  .kpi .delta { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; font-size: 13px; font-weight: 600; vertical-align: middle;
    font-family: var(--font-sans, inherit); }
  .kpi .delta .i { width: 14px; height: 14px; }
  .kpi .delta.up { color: hsl(var(--ok)); }
  .kpi .delta.down { color: hsl(var(--destructive)); }
  .charts { grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); margin-bottom: 12px; }
  .chart-box { position: relative; height: 260px; }
  h2 { font-size: 15px; margin: 0 0 10px; }
  h3 { font-size: 14px; margin: 16px 0 8px; }
  .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

  .table-wrap { overflow-x: auto; }
  table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
  th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
  th { color: hsl(var(--muted-foreground)); font-weight: 600; font-size: 12px; position: sticky; top: 0; background: hsl(var(--card)); }
  td.num, th.num { text-align: right; }
  tr.click { cursor: pointer; }
  tr.click:hover td { background: hsl(var(--muted) / .5); }
  td.heat { text-align: center; min-width: 54px; }
  .chip { display: inline-block; padding: 1px 8px; border-radius: 99px; background: hsl(var(--muted)); font-size: 12px; }
  .chip.on { background: hsl(var(--ok) / .15); color: hsl(var(--ok)); }
  .chip.off { background: hsl(var(--destructive) / .12); color: hsl(var(--destructive)); }
  .bar { height: 6px; background: hsl(var(--muted)); border-radius: 3px; overflow: hidden; min-width: 80px; }
  .bar > i { display: block; height: 100%; background: hsl(var(--info)); }
  .form { display: grid; gap: 8px; }
  .form label { display: grid; gap: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .secret { display: flex; gap: 6px; align-items: center; }
  .secret code { background: hsl(var(--muted)); padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
  .toast {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: hsl(var(--foreground)); color: hsl(var(--background));
    padding: 10px 16px; border-radius: calc(var(--radius) - 2px); z-index: 50; max-width: calc(100% - 32px);
  }
  .crumbs a { cursor: pointer; color: hsl(var(--info)); }
  @media (max-width: 640px) { main { padding: 12px; } .data-controls { margin-left: 0; } .user-name { display: none; } }

  /* ---------- toolbar: shortcuts + filters ---------- */
  .toolbar { background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); padding: 8px 16px; display: grid; gap: 8px; position: relative; }
  .toolbar:empty, .toolbar.off { display: none; }
  .views, .filterbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .toolbar-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .toolbar-main .filterbar { flex: 1 1 auto; }
  .data-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }
  .range { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .views:empty { display: none; }
  .filterbar .quick { display: inline-flex; align-items: center; gap: 4px; }
  .filterbar .quick .i { width: 14px; height: 14px; opacity: .6; }
  .views .label, .filterbar .label { color: hsl(var(--muted-foreground)); font-size: 12px; margin-right: 2px; }
  .pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid hsl(var(--border));
    background: hsl(var(--background)); cursor: pointer; font-size: 13px; max-width: 100%;
  }
  .pill:hover { border-color: hsl(var(--ring) / .6); }
  .pill.active { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .1); }
  .pill.filter { border-color: hsl(var(--info) / .6); background: hsl(var(--info) / .1); }
  .pill .x { color: hsl(var(--muted-foreground)); padding: 0 2px; border-radius: 4px; }
  .pill .x:hover { color: hsl(var(--destructive)); }
  .pill .sub { color: hsl(var(--muted-foreground)); font-size: 11px; }
  .pill b { font-weight: 600; }
  .pill .vals { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
  .menu { position: relative; display: inline-block; }
  .menu-list {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 220px; max-height: 70vh; overflow: auto;
    background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .35); padding: 4px;
  }
  .menu-list a { display: block; padding: 7px 10px; border-radius: calc(var(--radius) - 4px); cursor: pointer; text-decoration: none; }
  .menu-list a:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
  .menu-list .sep { font-size: 11px; color: hsl(var(--muted-foreground)); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .05em; }
  .popover { position: absolute; z-index: 15; top: 100%; left: 16px; width: min(420px, calc(100% - 32px)); margin-top: 4px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .35); display: grid; gap: 10px; }
  .popover h3 { margin: 0; }
  .opt-list { max-height: 280px; overflow: auto; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); }
  .opt-list label { display: flex; gap: 8px; align-items: center; padding: 5px 10px; cursor: pointer; }
  .opt-list label:hover { background: hsl(var(--accent)); }
  .opt-list .cnt { margin-left: auto; color: hsl(var(--muted-foreground)); font-size: 12px; font-variant-numeric: tabular-nums; }
  .seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: calc(var(--radius) - 2px); background: hsl(var(--muted)); }
  .seg button { background: transparent; color: hsl(var(--muted-foreground)); border: 0; border-radius: calc(var(--radius) - 4px); font-weight: 500; padding: 4px 10px; }
  .seg button:hover { color: hsl(var(--foreground)); }
  .seg button[aria-pressed="true"] { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px 0 rgb(0 0 0 / .1); }
  .badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
  .badge.ae { background: hsl(var(--info) / .12); color: hsl(var(--info)); }

  /* ---------- tables ---------- */
  th.sortable { cursor: pointer; user-select: none; }
  th.sortable:hover { color: hsl(var(--foreground)); }
  th .arrow { font-size: 10px; margin-left: 3px; }
  .table-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
  .table-tools input { padding: 5px 8px; min-width: 180px; }
  td.wrap { white-space: normal; min-width: 240px; max-width: 520px; overflow-wrap: anywhere; }
  .good { color: hsl(var(--ok)); } .warn { color: hsl(var(--warn)); } .badv { color: hsl(var(--destructive)); }

  /* ---------- drawer + dialog ---------- */
  .drawer { position: fixed; inset: 0; z-index: 30; }
  .drawer-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
  .drawer-panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(760px, 100%); background: hsl(var(--background));
    border-left: 1px solid hsl(var(--border)); overflow: auto; padding: 16px; box-shadow: -8px 0 24px rgb(0 0 0 / .2);
    display: grid; gap: 12px; align-content: start;
  }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .drawer-head h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
  .modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .5); }
  .modal > .card { width: min(440px, 100%); display: grid; gap: 12px; box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); }
  .modal h2 { margin: 0; font-size: 18px; }
  .modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
  .modal .err { margin: 0; }
  .modal .err:empty { display: none; }
  pre.msg { white-space: pre-wrap; overflow-wrap: anywhere; background: hsl(var(--muted)); padding: 10px; border-radius: calc(var(--radius) - 2px); margin: 0; font-size: 12px; max-height: 320px; overflow: auto; }

  /* ---------- home: the games ---------- */
  .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .page-head h1 { margin: 0; font-size: 24px; font-weight: 700; }
  .page-head button { display: inline-flex; align-items: center; gap: 6px; }
  .home-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin-bottom: 16px; }
  .home-tools select { height: 38px; }
  .search { position: relative; flex: 0 1 288px; }
  .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: hsl(var(--muted-foreground)); pointer-events: none; }
  .search input { width: 100%; height: 38px; padding-left: 34px; }
  .seg.views-toggle button { width: 32px; height: 30px; padding: 0; display: inline-grid; place-items: center; }
  .games { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); grid-auto-rows: 1fr; }
  .game { position: relative; min-width: 0; }
  .game-card { display: flex; flex-direction: column; gap: 14px; height: 100%; text-decoration: none; cursor: pointer; transition: box-shadow .15s; }
  .game-card:hover { box-shadow: 0 6px 16px -4px rgb(0 0 0 / .2); }
  .game-top { display: flex; gap: 12px; align-items: flex-start; padding-right: 30px; min-width: 0; }
  .game-icon {
    width: 40px; height: 40px; border-radius: calc(var(--radius) - 2px); display: grid; place-items: center; flex-shrink: 0;
    color: #fff; font-weight: 700; font-size: 16px; font-family: var(--font-display);
  }
  img.game-icon { object-fit: cover; background: hsl(var(--muted)); }
  .game-icon.big { width: 64px; height: 64px; font-size: 26px; }
  .icon-row { align-items: center; gap: 10px; }
  .game-title { min-width: 0; display: grid; gap: 2px; }
  .game-title h2 { margin: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .game-sub { font-size: 12px; color: hsl(var(--muted-foreground)); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .game-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
  .game-stats .label { font-size: 11px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game-stats .value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
  .spark { display: block; width: 100%; height: 40px; color: hsl(var(--info)); }
  .spark .area { fill: currentColor; opacity: .12; }
  .spark .line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .star {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
    display: grid; place-items: center; background: transparent; color: hsl(var(--muted-foreground));
  }
  .star:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
  .star[aria-pressed="true"] { color: #fbbf24; }
  .star[aria-pressed="true"] svg { fill: currentColor; }
  .games.list { display: block; border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--card)); overflow: hidden; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
  .games.list .game + .game { border-top: 1px solid hsl(var(--border)); }
  .game-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 56px 12px 16px; text-decoration: none; cursor: pointer; }
  .game-row:hover { background: hsl(var(--muted) / .4); }
  .game-row .game-top { flex: 1 1 260px; padding-right: 0; align-items: center; }
  .game-row .game-icon { width: 32px; height: 32px; font-size: 14px; }
  .game-row .game-stats { flex: 0 1 420px; margin-top: 0; }
  .game-row .spark { width: 140px; flex: 0 0 140px; height: 32px; }
  .games.list .star { top: 50%; right: 12px; transform: translateY(-50%); }
  .empty { border: 1px dashed hsl(var(--border)); border-radius: .75rem; padding: 32px; text-align: center; color: hsl(var(--muted-foreground)); }

  /* ---------- players ---------- */
  .player-link { color: hsl(var(--info)); cursor: pointer; text-decoration: none; }
  .player-link:hover { text-decoration: underline; }
  .player-head .player-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
  .player-head .player-id code { font-size: 14px; background: hsl(var(--muted)); padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
  .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; margin: 0; }
  .facts dt { font-size: 12px; color: hsl(var(--muted-foreground)); }
  .facts dd { margin: 2px 0 0; }
  .player-head #pl-erase { margin-left: auto; }
  /* the player's live events: a dot that beats while on, new rows lit up for a moment */
  button.live { display: inline-flex; align-items: center; gap: 6px; }
  button.live .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--muted-foreground)); }
  button.live.on .dot { background: hsl(var(--ok)); animation: beat 1.6s ease-in-out infinite; }
  .live-state { font-size: 12px; }
  @keyframes beat { 50% { opacity: .3; } }
  tr.fresh > td { animation: fresh 3s ease-out; }
  .refreshed { margin-left: auto; font-size: 12px; }
  #refresh { display: inline-flex; align-items: center; gap: 6px; }
  .spin .i { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes fresh { from { background: hsl(var(--ok) / .2); } }
  @media (prefers-reduced-motion: reduce) { button.live.on .dot, tr.fresh > td { animation: none; } }
  .modal .erase-id { font-size: 13px; background: hsl(var(--muted)); padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
  .modal .erase-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
  #pl-found .table-tools { display: none; }
  .empty b { display: block; color: hsl(var(--foreground)); font-size: 15px; margin-bottom: 4px; }
}
