/* Habillage de l'application (hors carte). Ambiance « console d'astreinte » sombre. */

:root {
  --bg: #070b16;
  --panel: #0d1424;
  --panel-2: #111a2e;
  --line: #1e293b;
  --line-2: #2b3a52;
  --text: #e2e8f0;
  --muted: #8a9ab3;
  --accent: #38bdf8;
  --accent-ink: #04121c;
  --danger: #f83838;
  --radius: 12px;
  --grid-scale: 0.61;
  --text-2: #c3cfe0;
  --money: #fbbf24;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Couleurs des types pour l'interface (bordure et badge des cartes : card.css) */
  --t-resource: #38bdf8;
  --t-incident: #f83838;
  --t-hr: #6d68ff; /* #0800f6 du Figma, éclairci pour rester lisible sur fond sombre */
  --t-app: #f88838;
  --t-event: #a538f8;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgb(56 189 248 / 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgb(248 136 56 / 0.06), transparent 60%),
    radial-gradient(rgb(148 163 184 / 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg);
  color: var(--text);
  font: 15px/1.5 "Inter", system-ui, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.muted { color: var(--muted); margin: 4px 0 0; }
.small { font-size: 13px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Barre du haut */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgb(7 11 22 / 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); }
.brand-mark { display: grid; gap: 3px; }
.brand-mark i { display: block; height: 4px; border-radius: 2px; }
.brand-mark i:nth-child(1) { width: 18px; background: #f88838; }
.brand-mark i:nth-child(2) { width: 13px; background: #38bdf8; }
.brand-mark i:nth-child(3) { width: 8px;  background: #a538f8; }
.topnav { display: flex; align-items: center; gap: 16px; }
.topnav > a:not(.btn) { color: var(--muted); font-weight: 500; }
.topnav > a:not(.btn):hover { color: var(--text); text-decoration: none; }

.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: 14px; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: #3b4f6e; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7dd3fc; border-color: #7dd3fc; }
.btn-danger { background: transparent; border-color: rgb(248 56 56 / 0.5); color: #fca5a5; }
.btn-danger:hover { background: rgb(248 56 56 / 0.12); border-color: var(--danger); }
.btn:focus-visible, .chip:focus-visible, .menu-item:focus-visible, .grid-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Menu */
.menu {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 180px);
}
.menu h1 { font-size: clamp(30px, 4.2vw, 50px); }
.lead { max-width: 52ch; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.menu-actions { display: grid; gap: 12px; }
.menu-item {
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  transition: transform 120ms ease, border-color 120ms ease;
}
.menu-item-sub .more { color: var(--accent); font-weight: 600; }
.pill-admin {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 3px;
}
.page-actions { display: flex; align-items: center; gap: 10px; }
.demo-banner {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--money) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--money) 8%, var(--panel));
  font-size: 14px;
  color: var(--text-2);
}
.demo-banner strong { color: var(--money); white-space: nowrap; }
.demo-note { margin: 0 0 14px; font-size: 14px; color: var(--money); }
.page-actions form { margin: 0; }
.menu-item:hover { text-decoration: none; transform: translateX(4px); border-color: var(--line-2); }
.menu-item-title { font-size: 19px; font-weight: 700; }
.menu-item-sub { color: var(--muted); font-size: 14px; }
.menu-item.is-disabled { opacity: 0.45; border-left-color: var(--line-2); cursor: not-allowed; }
.menu-item.is-disabled:hover { transform: none; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  --chip: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.chip:hover { text-decoration: none; color: var(--text); border-color: var(--line-2); }
.chip.is-active { color: var(--text); border-color: var(--chip); background: color-mix(in srgb, var(--chip) 16%, var(--panel)); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip); flex: none; }

/* Grille */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, calc(374px * var(--grid-scale)));
  gap: 26px 22px;
}
.grid-item { display: block; border-radius: 14px; transition: transform 140ms ease; }
.grid-item:hover { transform: translateY(-6px) rotate(-0.6deg); text-decoration: none; }

.empty { display: grid; justify-items: center; gap: 12px; padding: 80px 0; text-align: center; }
.empty p { margin: 0; color: var(--muted); }

/* Détail */
.detail { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.detail-side { flex: 1 1 280px; max-width: 420px; padding-top: 8px; }
.facts { display: grid; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--panel); }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.actions form { margin: 0; }

/* Éditeur */
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert code, .files code, .empty code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.files { display: grid; gap: 4px; margin: 4px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.files .eyebrow { margin-bottom: 2px; }
.files code { color: #cbd5e1; }
.empty p { max-width: 52ch; }
.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgb(248 56 56 / 0.45);
  border-radius: 10px;
  background: rgb(248 56 56 / 0.1);
  color: #fecaca;
}
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 374px; gap: 40px; align-items: start; }
.editor-preview { position: sticky; top: 84px; }
.editor-form { display: grid; gap: 4px; }
.editor-form fieldset { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }

.field { display: grid; gap: 6px; margin-bottom: 10px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field .label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
.counter { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-near { color: #fbbf24; }
.field-hint { margin: 0; font-size: 12px; color: var(--muted); }
.field-error { margin: 0; font-size: 12px; color: #fca5a5; }
.field-error:empty { display: none; }

input:not([type="radio"]):not([type="checkbox"]), textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(56 189 248 / 0.18); }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { --chip: var(--accent); position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.seg:hover span { color: var(--text); }
.seg input:checked + span { color: var(--text); border-color: var(--chip); background: color-mix(in srgb, var(--chip) 18%, var(--panel)); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; color: #cbd5e1; }

/* Responsive */
@media (max-width: 960px) {
  .menu { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-top: 12px; }
  .editor { grid-template-columns: 1fr; }
  .editor-preview { position: static; order: -1; }
  .editor-preview .card-frame { --s: 0.72; margin: 0 auto; }
}


/* ------------------------------------------------------------------------------------------
   Page des règles (/regles)
   ------------------------------------------------------------------------------------------ */
.rules { display: grid; gap: 88px; padding-bottom: 32px; }
.rules h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.rules h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0; }
.rules p { margin: 0; }
.prose { display: grid; gap: 14px; max-width: 66ch; color: var(--text-2); }
.rules-lead { font-size: 17px; color: var(--text-2); max-width: 62ch; }
.money { font-family: var(--mono); font-weight: 600; color: var(--money); white-space: nowrap; }
.rules strong em { font-weight: 700; font-style: italic; color: var(--text); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; align-content: start; }
.section-head .eyebrow { margin: 0; }

.rules-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; }
.rules-hero-text { display: grid; gap: 22px; min-width: 0; }
.rules-hero-text .eyebrow { margin: 0; }
.rules-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; font-weight: 800; text-wrap: balance; }
.draft {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 999px;
  font-size: 12px; color: var(--muted);
}
.draft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--money); }

.ledger { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; }
.ledger div + div { border-top: 1px solid var(--line); }
.ledger dt { color: var(--muted); font-size: 14px; }
.ledger dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ledger .ledger-title { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }

.rules-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.roster { display: grid; gap: 14px; }
.roster-group { display: grid; gap: 10px; }
.roster-group .eyebrow { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  display: flex; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); border-radius: 10px;
  background: var(--panel); font-weight: 600;
}

.goal { display: grid; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.track { position: relative; height: 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); }
.track-fill { position: absolute; inset: 0 auto 0 0; min-width: 12px; border-radius: 999px; background: var(--money); }
.track-legend { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }

.types { display: grid; gap: 18px; }
.type-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start;
  padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.type-row .card-frame { --s: 0.5; border-radius: 10px; }
.type-row .card-frame:hover { text-decoration: none; }
.type-empty {
  display: grid; place-items: center; width: 187px; height: 287px; padding: 16px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 13px;
}
.type-body { display: grid; gap: 10px; min-width: 0; }
.type-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.type-name h3 { color: var(--c); letter-spacing: 0.02em; }
.count { font-size: 13px; color: var(--muted); }
.count:hover { color: var(--text); }
.type-body p { color: var(--text-2); max-width: 64ch; }

.day { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: phase; }
.phase { display: grid; align-content: start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.phase-top { display: flex; align-items: baseline; gap: 12px; }
.phase-top::before {
  counter-increment: phase; content: counter(phase);
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; align-self: center;
  border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 13px; color: var(--accent);
}
.phase-top h3 { flex: 1; }
.when { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.phase p { color: var(--text-2); }
.points {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px;
  padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: 16px;
}
.points-badge { font-family: var(--mono); font-weight: 600; font-size: 22px; color: var(--accent); padding: 6px 12px; border-radius: 10px; background: rgb(56 189 248 / 0.1); }
.points ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); }

.stack { display: grid; gap: 12px; }
.stack .eyebrow { margin: 0; }
.stack .stack-gap { margin-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font-size: 13px; font-weight: 600; color: #cbd5e1;
}
.tag.code { font-family: var(--mono); font-weight: 500; }
.versions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.versions .sep { color: var(--line-2); }

.foils { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.foil-item { display: grid; justify-items: center; gap: 10px; text-align: center; }
.foil-item .card-frame { --s: 0.42; }
.foil-item b { font-size: 14px; }
.foils.is-skins { grid-template-columns: repeat(2, max-content); gap: 24px; }
.foils.is-shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 24px; }
.concepts { display: grid; gap: 40px; }
.concepts-head { align-items: flex-end; }
.concepts-head .muted { max-width: 70ch; margin: 6px 0 0; }
.concepts-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b14;
}
.concepts > .section-head { margin-bottom: 0; }
.concept { display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.concept-head { display: grid; gap: 6px; max-width: 70ch; }
.concept-head .eyebrow { margin: 0; }
.concept-head h3 { margin: 0; font-size: 20px; }
.concept-head p:not(.eyebrow) { margin: 0; color: var(--text-2); }

.topnav > a[aria-current="page"] { color: var(--text); box-shadow: 0 2px 0 var(--accent); }

@media (max-width: 1000px) {
  .foils { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rules-hero, .rules-split { grid-template-columns: 1fr; gap: 28px; }
  .day { grid-template-columns: 1fr; }
  .type-row { grid-template-columns: 1fr; justify-items: center; }
  .type-body { justify-self: stretch; }
}

/* ------------------------------------------------------------------------------------------
   Comptes : connexion, mon compte, administration
   ------------------------------------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.usermenu { position: relative; }
.usermenu summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text);
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--panel-2); color: var(--accent); font-weight: 800; font-size: 13px;
}
.usermenu-name { font-size: 14px; font-weight: 600; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px;
  display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel); box-shadow: 0 12px 30px rgb(2 6 23 / 0.5);
}
.usermenu-panel p { margin: 0 6px 4px; }
.usermenu-panel a, .usermenu-panel button {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--panel-2); text-decoration: none; }
.usermenu-panel form { margin: 0; }

.auth { display: grid; gap: 24px; max-width: 440px; margin: 24px auto 0; }
.auth-intro { display: grid; gap: 8px; }
.auth-intro .eyebrow, .auth-intro .muted { margin: 0; }
.auth-form {
  display: grid; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.auth-form .btn { margin-top: 8px; justify-self: start; }
.auth-subtitle { margin: 0 0 12px; font-size: 18px; }
.alert pre { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); overflow-x: auto; }
.alert-ok { border-color: rgb(74 222 128 / 0.45); background: rgb(74 222 128 / 0.1); color: #bbf7d0; }
.alert-info { border-color: rgb(56 189 248 / 0.45); background: rgb(56 189 248 / 0.08); color: #bae6fd; }

.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.secret-value {
  padding: 6px 10px; border-radius: 8px; background: var(--bg); color: var(--text);
  font: 600 15px/1.4 var(--mono); letter-spacing: 0.04em; user-select: all;
}

.admin { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-new { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.admin-new .btn { justify-self: start; margin-top: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.users { width: 100%; border-collapse: collapse; font-size: 14px; }
.users th, .users td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.users thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.users tbody tr:last-child td { border-bottom: 0; }
.users .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.users tr.is-off td { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--accent); font-size: 12px; font-weight: 600; }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.state-on::before { background: #4ade80; }
.state-off::before { background: var(--muted); }

@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
}
