/*
 * KASKAL admin panel. Phone first: under 768 px the sections sit in a bar at the bottom and every
 * table becomes a stack of cards; from 768 px up the sections stand down one side. It follows the
 * phone's day / night setting (the button in the corner overrides it) and keeps clear of the notch
 * and the home bar, so it can be put on the home screen of an Android phone or an iPhone.
 * No framework, no build step. Sizes: 4 / 8 spacing, three type sizes (16 / 14 / 12), two weights.
 */

@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("fonts/ibm_plex_sans_arabic_regular.ttf") format("truetype"); }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("fonts/ibm_plex_sans_arabic_semibold.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #101216;
  --surface: #181b20;
  --raised: #20242b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eceef2;
  --dim: #a4aab6;
  --accent: #8ea4ff;
  --accent-fill: #4a66ea;
  --accent-soft: rgba(110, 139, 255, 0.16);
  --on-accent: #ffffff;
  --good: #3ecf8e;
  --warn: #f5b83d;
  --bad: #ff8588;
  --bad-fill: #c9353b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --mark: none;

  --vp-medium: 768px;
  --vp-wide: 1280px;
  --hit: 44px;
  --radius: 16px;
  --fast: 150ms;
  --slow: 200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Day: when the phone is in its light mode, unless night was chosen here; or when day was chosen here. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f4f7;
    --surface: #ffffff;
    --raised: #eef0f4;
    --line: rgba(16, 20, 30, 0.12);
    --text: #171a20;
    --dim: #596070;
    --accent: #2f4fd6;
    --accent-fill: #2f4fd6;
    --accent-soft: rgba(47, 79, 214, 0.1);
    --good: #0f7a52;
    --warn: #8f5b00;
    --bad: #c2313a;
    --bad-fill: #c2313a;
    --shadow: 0 8px 24px rgba(16, 20, 30, 0.07);
    --edge: none;
    --mark: brightness(0.12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f7;
  --surface: #ffffff;
  --raised: #eef0f4;
  --line: rgba(16, 20, 30, 0.12);
  --text: #171a20;
  --dim: #596070;
  --accent: #2f4fd6;
  --accent-fill: #2f4fd6;
  --accent-soft: rgba(47, 79, 214, 0.1);
  --good: #0f7a52;
  --warn: #8f5b00;
  --bad: #c2313a;
  --bad-fill: #c2313a;
  --shadow: 0 8px 24px rgba(16, 20, 30, 0.07);
  --edge: none;
  --mark: brightness(0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Plex", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 22px; font-weight: 600; line-height: 1.3; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.35; }
a { color: var(--accent); text-underline-offset: 3px; }
a.btn { text-decoration: none; }
img { max-width: 100%; }
.muted { color: var(--dim); font-size: 14px; }
.error { color: var(--bad); font-size: 14px; min-height: 1.5em; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }
.num { font-variant-numeric: tabular-nums; }
pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--raised); font: 400 13px/1.7 ui-monospace, monospace; overflow-x: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: fixed; inset-block-start: -80px; inset-inline-start: 12px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--accent-fill); color: var(--on-accent); }
.skip:focus { inset-block-start: calc(var(--safe-top) + 12px); }

/* ------------------------------------------------------------------ buttons and controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--hit); padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 15px/1 "Plex", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out), border-radius var(--fast) var(--ease-out), opacity var(--fast);
}
.btn:active { border-radius: 14px; }
.btn.primary { background: var(--accent-fill); border-color: transparent; color: var(--on-accent); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad-fill); border-color: transparent; color: #fff; }
.btn.quiet { background: transparent; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
  .btn.primary:hover:not(:disabled), .btn.danger.solid:hover:not(:disabled) { opacity: 0.92; border-color: transparent; }
}
.icon-btn {
  display: inline-grid; place-items: center; width: var(--hit); height: var(--hit); flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn svg, .rail-item svg, .tab-item svg, .empty svg { width: 22px; height: 22px; }
@media (hover: hover) { .icon-btn:hover { background: var(--raised); } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.field { display: grid; gap: 6px; font-size: 14px; }
.field > span { color: var(--dim); }
input, textarea, select {
  width: 100%; min-height: var(--hit); padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 400 16px/1.4 "Plex", system-ui, sans-serif; /* 16 px: an iPhone zooms the page on anything smaller */
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; border-radius: 12px; }
input[type="search"] { border-radius: 999px; padding-inline: 18px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

/* A switch: a real checkbox, drawn as a track with a knob. */
.switch { display: flex; align-items: center; gap: 12px; min-height: var(--hit); cursor: pointer; }
.switch input {
  appearance: none; flex: none; width: 46px; min-height: 0; height: 28px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--raised); position: relative; cursor: pointer;
  transition: background-color var(--fast) var(--ease-out);
}
.switch input::after {
  content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--dim); transition: inset-inline-start var(--fast) var(--ease-out), background-color var(--fast);
}
.switch input:checked { background: var(--accent-fill); border-color: transparent; }
.switch input:checked::after { inset-inline-start: 21px; background: #fff; }

/* ------------------------------------------------------------------ sign-in */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; padding-block-start: calc(24px + var(--safe-top)); }
.login-card {
  width: min(400px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 32px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), var(--edge);
}
.login-mark { width: 72px; height: auto; margin-block-end: 4px; }
/* The mark is white artwork: by day it is drawn dark. */
.login-mark, .brand img, .topbar img { filter: var(--mark); }
.google { min-height: 44px; margin-block-start: 8px; color-scheme: light; }

/* ------------------------------------------------------------------ the frame */
.app { min-height: 100dvh; }
.rail { display: none; }
.stage { min-width: 0; }
.topbar {
  position: sticky; inset-block-start: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 6px) 8px 6px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-block-end: 1px solid var(--line);
}
.topbar strong { flex: 1; font-size: 17px; font-weight: 600; }
.view {
  width: 100%; max-width: var(--vp-wide); margin-inline: auto;
  padding: 16px 16px calc(96px + var(--safe-bottom)); display: grid; gap: 16px; align-content: start;
}
.view:focus { outline: none; }

/* The sections on a phone: a bar at the bottom, the thumb's place. */
.tabbar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 20; display: flex;
  padding: 6px 8px calc(6px + var(--safe-bottom)); background: var(--surface); border-block-start: 1px solid var(--line);
}
.tab-item {
  position: relative; flex: 1; min-width: 0; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 2px;
  border: 0; border-radius: 14px; background: transparent; color: var(--dim); font: 400 12px/1.2 "Plex", system-ui, sans-serif; cursor: pointer;
}
.tab-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-item[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tab-item[aria-current="page"] svg { stroke-width: 2.1; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad-fill); color: #fff;
  font: 600 12px/20px "Plex", system-ui, sans-serif; text-align: center;
}
.tab-item .badge { position: absolute; inset-block-start: 2px; inset-inline-start: calc(50% + 4px); }

@media (min-width: 768px) {
  .app { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .topbar, .tabbar { display: none; }
  .view { padding: 28px 28px 48px; gap: 20px; }
  .rail {
    position: sticky; inset-block-start: 0; height: 100dvh; display: flex; flex-direction: column; gap: 16px;
    padding: 20px 12px 16px; background: var(--surface); border-inline-end: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 18px; font-weight: 600; }
  .rail-items { flex: 1; display: grid; gap: 2px; align-content: start; overflow-y: auto; }
  .rail-item {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--hit); padding: 0 12px;
    border: 0; border-radius: 12px; background: transparent; color: var(--dim); font: 400 15px/1 "Plex", system-ui, sans-serif;
    text-align: start; cursor: pointer; transition: background-color var(--fast) var(--ease-out);
  }
  .rail-item .label { flex: 1; }
  .rail-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .rail-foot { display: grid; gap: 8px; padding: 12px 10px 0; border-block-start: 1px solid var(--line); }
  .who { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 768px) and (hover: hover) { .rail-item:hover { background: var(--raised); color: var(--text); } }

/* A thin line under the top edge while a page is on its way. */
.progress { position: sticky; inset-block-start: 0; z-index: 11; height: 3px; overflow: hidden; background: var(--accent-soft); }
.progress::after { content: ""; display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 3px; animation: travel 1s linear infinite; }
@keyframes travel { from { transform: translateX(260%); } to { transform: translateX(-110%); } }

/* ------------------------------------------------------------------ what pages are made of */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.head .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* A phone has the page's name and "refresh" in its top bar: a head with nothing else is left out. */
@media (max-width: 767.98px) { .head h1, .wide-only { display: none; } .head:not(:has(.tools > :not(.wide-only))) { display: none; } }

.card { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--edge); }
.stack { display: grid; gap: 12px; }
.narrow { max-width: 560px; }

/* Things that wait for the admin: first on the first page. */
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.todo + .todo { border-block-start: 1px solid var(--line); }
.todo b { min-width: 2ch; font-size: 22px; font-weight: 600; color: var(--warn); }
.todo span { flex: 1; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.kpi { display: grid; gap: 2px; }
.kpi b { font-size: 22px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.kpi b small { font-size: 13px; font-weight: 400; color: var(--dim); }
@media (min-width: 768px) { .kpi b { font-size: 26px; } }
.kpi span { color: var(--dim); font-size: 14px; }

/* Choices across the top of a list (waiting, approved, refused): they scroll sideways on a phone. */
.tabs { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--dim); font: 400 14px/1 "Plex", system-ui, sans-serif; cursor: pointer; transition: border-radius var(--fast) var(--ease-out);
}
.tab[aria-current="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; border-radius: 12px; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); align-items: start; }
.item { display: grid; gap: 10px; }
.item-head { display: flex; align-items: center; gap: 12px; }
.item-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--raised); flex: none; }
.item p { font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.item .banner { width: 100%; aspect-ratio: 2.2; border-radius: 12px; object-fit: cover; background: var(--raised); }

/* Small facts side by side, a thin line between them (no pills: they are not buttons). The line stands
   before each fact and the list cuts off what falls outside it, so a row never starts or ends with a line. */
.meta { display: flex; flex-wrap: wrap; gap: 4px 21px; margin: 0; padding: 0; list-style: none; overflow: hidden; font-size: 14px; color: var(--dim); }
.meta li { position: relative; min-width: 0; overflow-wrap: anywhere; }
.meta li::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: -11px; width: 1px; background: var(--line); }
.meta b { color: var(--text); font-weight: 600; }
code { font: 400 13px/1.6 ui-monospace, monospace; white-space: nowrap; padding: 1px 6px; border-radius: 6px; background: var(--raised); color: var(--text); }

/* A state: a dot in its colour and the word. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status.on { color: var(--good); } .status.on::before { background: var(--good); }
.status.bad { color: var(--bad); } .status.bad::before { background: var(--bad); }
.status.wait { color: var(--warn); } .status.wait::before { background: var(--warn); }

.bar { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent-fill); }

.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--dim); }
.empty svg { width: 32px; height: 32px; opacity: 0.7; }

/* Tables: a real table from 768 px (it scrolls inside its own frame if it must); on a phone each
   row is a card and each cell says what it is. */
.table-wrap { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px 14px; text-align: start; font-weight: 600; font-size: 13px; color: var(--dim); white-space: nowrap; border-block-end: 1px solid var(--line); }
td { padding: 10px 14px; vertical-align: middle; border-block-end: 1px solid var(--line); }
tr:last-child td { border-block-end: 0; }
td { white-space: nowrap; }
td.wrap, td.title { white-space: normal; overflow-wrap: anywhere; }
td.wrap { min-width: 180px; }
td.title { min-width: 140px; font-weight: 600; }
td.actions .btn + .btn { margin-inline-start: 6px; }
.who-cell { display: grid; gap: 2px; }
.who-cell small { font-size: 13px; font-weight: 400; color: var(--dim); }
@media (max-width: 767.98px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: 6px 16px; margin-block-end: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  td { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 8px 0; min-width: 0 !important; white-space: normal; }
  td::before { content: attr(data-label); flex: none; color: var(--dim); font-size: 13px; }
  td:not([data-label])::before, td[data-label=""]::before { content: none; }
  td.actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; border-block-end: 0; padding-block: 10px 6px; }
  td.actions .btn + .btn { margin-inline-start: 0; }
  td.title { font-size: 16px; font-weight: 600; }
  td.title::before { content: none; }
}

/* ------------------------------------------------------------------ dialogs: a sheet from the bottom on a phone */
dialog.sheet {
  width: 100%; max-width: 100%; margin: auto 0 0; padding: 20px 16px calc(16px + var(--safe-bottom));
  border: 1px solid var(--line); border-block-end: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); max-height: 88dvh; overflow-y: auto;
}
dialog.sheet[open] { animation: rise var(--slow) var(--ease-out); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.55); }
dialog.sheet form { display: grid; gap: 14px; }
dialog.sheet .row { justify-content: flex-end; }
dialog.sheet .row .btn { flex: 1; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* "More" on a phone: the other sections, then who is in and the two switches. */
.more-list { display: grid; gap: 2px; }
.more-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font: 400 16px/1 "Plex", system-ui, sans-serif; text-align: start; cursor: pointer;
}
.more-item svg { width: 22px; height: 22px; color: var(--dim); }
.more-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.more-item[aria-current="page"] svg { color: var(--accent); }
.more-foot { display: grid; gap: 10px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
dialog.sheet .row .icon-btn { flex: none; }
.btn svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  dialog.sheet { width: min(480px, calc(100% - 48px)); margin: auto; padding: 24px; border-radius: 24px; border-block-end: 1px solid var(--line); }
  dialog.sheet .row .btn { flex: none; }
}

.toasts { position: fixed; inset-inline: 12px; inset-block-end: calc(84px + var(--safe-bottom)); z-index: 40; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
@media (min-width: 768px) { .toasts { inset-block-end: 24px; } }
.toast {
  max-width: min(480px, 100%); padding: 10px 16px; border-radius: 14px; background: var(--raised); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: rise var(--slow) var(--ease-out);
}
.toast.bad { border-color: var(--bad); color: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress::after { width: 100%; }
}

/* ---- the server on the first page: meters, advice, a table of services ---- */
.server { display: grid; gap: 12px; margin-block-start: 12px; }
.server-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.server-head small { color: var(--dim); font-size: 13px; }
.tips { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.tips li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.tips i { flex: none; inline-size: 10px; block-size: 10px; margin-block-start: 8px; border-radius: 3px; background: var(--good); }
.tips .warn i { background: var(--warn); }
.tips .bad i { background: var(--bad); }
.meters { align-items: stretch; }
.meter { display: grid; gap: 8px; align-content: start; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter-head b { font-size: 20px; font-weight: 600; }
.meter small { color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.meter-track { block-size: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.meter-track i { display: block; block-size: 100%; border-radius: 4px; background: var(--accent-fill); transition: inline-size var(--slow) var(--ease-out); }
.meter-track i.warn { background: var(--warn); }
.meter-track i.bad { background: var(--bad-fill); }
.net { display: flex; gap: 20px; }
.net span { display: grid; gap: 2px; }
.net b { font-size: 16px; font-weight: 600; }
.spark { inline-size: 100%; block-size: 32px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.scroll { overflow-x: auto; }
.svc { inline-size: 100%; border-collapse: collapse; margin-block-start: 8px; font-size: 14px; }
.svc th { text-align: start; font-weight: 500; color: var(--dim); font-size: 13px; padding: 8px 8px 8px 0; white-space: nowrap; }
.svc td { padding: 10px 8px 10px 0; border-block-start: 1px solid var(--line); white-space: nowrap; }
.svc td small { color: var(--bad); }
.dot { display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-end: 8px; border-radius: 3px; background: var(--good); }
.dot.bad { background: var(--bad); }
.folders { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.folders li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-block-start: 1px solid var(--line); }
.folders li:first-child { border: 0; }
@media (max-width: 767.98px) {
  /* A service is a small card on a phone: its name on top, the four numbers under it with their words. */
  .svc thead { display: none; }
  .svc tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-block-start: 1px solid var(--line); }
  .svc tr:first-child { border: 0; }
  .svc td { border: 0; padding: 0; white-space: normal; }
  .svc td:first-child { grid-column: 1 / -1; }
  .svc td[data-label]::before { content: attr(data-label) ": "; color: var(--dim); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .meter-track i { transition: none; } }
