/* Galaxy OCPP — charte inspirée de beebots.tech */
:root {
  --page: #08070c;
  --card: #13121a;
  --card-2: #1b1a24;
  --card-3: #23222e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --text-2: #c3c2b7;
  --muted: #8a8894;
  --grid: #24232d;
  --axis: #45434f;
  --amber: #fbbf24;
  --orange: #f97316;
  --grad: linear-gradient(90deg, #f97316, #fbbf24);
  --glow: rgba(251, 191, 36, .18);
  --good: #0ca30c;
  --good-text: #3fcf3f;
  --warning: #fab219;
  --critical: #d03b3b;
  --critical-text: #ff6f6f;
  --violet: #9085e9;
  --pink: #d55181;
  --l1: #d08000;
  --l2: #9085e9;
  --l3: #d55181;
  --radius: .9rem;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(144, 133, 233, .08), transparent 70%),
    radial-gradient(50rem 30rem at 95% 0%, rgba(249, 115, 22, .07), transparent 70%),
    var(--page);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono, code, .num { font-family: var(--mono); font-feature-settings: "tnum"; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 600; color: var(--text-2); }
[hidden] { display: none !important; }

/* --- barre supérieure ------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
  background: rgba(8, 7, 12, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; white-space: nowrap; }
.brand .logo {
  width: 32px; height: 32px; border-radius: .6rem; display: grid; place-items: center;
  background: var(--grad); color: #1a1206; box-shadow: 0 0 24px var(--glow);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.nav a {
  padding: 7px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 13px;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .04); }
.nav a.active { background: linear-gradient(90deg, #f973164d, #fbbf2438); color: var(--text); box-shadow: inset 0 0 0 1px #fbbf2459; }
.top-status { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--text-2);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* --- pilules d'état ---------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.pill.ok .dot, .dot.ok { background: var(--good-text); box-shadow: 0 0 0 0 rgba(63, 207, 63, .6); animation: pulse 2s infinite; }
.pill.warn .dot, .dot.warn { background: var(--warning); }
.pill.bad .dot, .dot.bad { background: var(--critical-text); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 207, 63, .5); }
  70% { box-shadow: 0 0 0 7px rgba(63, 207, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 207, 63, 0); }
}

/* --- mise en page ------------------------------------------------------------------------ */
main { max-width: 1440px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.cols-main { grid-template-columns: minmax(0, 1fr) 360px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.card {
  background: linear-gradient(180deg, color-mix(in srgb, #f97316 4%, var(--card)) 0%, var(--card) 22%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card.flat { background: var(--card); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* --- héros connecteur --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(30rem 16rem at 12% 20%, rgba(251, 191, 36, .14), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, #f97316 7%, var(--card)) 0%, var(--card) 45%);
}
.hero-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
.gauge { position: relative; width: 240px; height: 240px; }
.gauge svg { width: 100%; height: 100%; }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .value { font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.gauge .unit { color: var(--muted); font-size: 13px; margin-top: 6px; font-weight: 600; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); background: var(--card-2);
}
.st-Available { color: var(--good-text); border-color: rgba(63, 207, 63, .35); background: rgba(12, 163, 12, .1); }
.st-Charging { color: var(--amber); border-color: #fbbf2480; background: #fbbf241f; }
.st-Preparing, .st-Finishing, .st-Reserved { color: var(--violet); border-color: rgba(144, 133, 233, .4); background: rgba(144, 133, 233, .1); }
.st-SuspendedEV, .st-SuspendedEVSE { color: var(--warning); border-color: rgba(250, 178, 25, .4); background: rgba(250, 178, 25, .1); }
.st-Faulted { color: var(--critical-text); border-color: #ff3b3b59; background: rgba(208, 59, 59, .12); }
.st-Unavailable, .st-Unknown { color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.metric { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: .7rem; padding: 12px 14px; min-width: 0; }
.metric .label { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.metric .v { font-family: var(--mono); font-size: 20px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .v small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }

.soc-bar { height: 8px; border-radius: 999px; background: var(--card-3); overflow: hidden; margin-top: 8px; }
.soc-bar > div { height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s; }

/* --- tuiles KPI --------------------------------------------------------------------------- */
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi .v { font-family: var(--mono); font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.kpi .v small { font-size: 13px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.kpi .foot { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* --- listes clé/valeur -------------------------------------------------------------------- */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- boutons & formulaires ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: .6rem; border: 1px solid var(--line-2);
  background: var(--card-2); color: var(--text); font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: box-shadow .2s, background .2s, border-color .2s, transform .1s; white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, .25); background: var(--card-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #1a1206; border-color: transparent; box-shadow: 0 0 20px rgba(249, 115, 22, .25); }
.btn.primary:hover { box-shadow: 0 0 28px rgba(251, 191, 36, .35); }
.btn.danger { color: var(--critical-text); border-color: #ff3b3b59; background: rgba(208, 59, 59, .08); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 12px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); min-width: 0; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 11.5px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--page); border: 1px solid var(--line-2);
  border-radius: .55rem; padding: 9px 11px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: #fbbf2480; box-shadow: 0 0 0 3px #fbbf2414; }
input.mono { font-family: var(--mono); font-size: 13px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--orange); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }

.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.segmented button {
  text-align: left; padding: 12px; border-radius: .7rem; border: 1px solid var(--line-2); background: var(--page);
  color: var(--text-2); cursor: pointer; font: inherit; transition: border-color .2s, background .2s;
}
.segmented button b { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
.segmented button span { font-size: 11.5px; color: var(--muted); }
.segmented button.active { border-color: #fbbf2480; background: linear-gradient(180deg, #fbbf2414, transparent); box-shadow: 0 0 0 1px #fbbf2459 inset; }
.segmented button.active b { color: var(--amber); }

.url-preview {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: .7rem;
  background: var(--page); border: 1px dashed var(--line-2); font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: nowrap;
}
.url-preview .lock { color: var(--good-text); }
.url-preview .lock.off { color: var(--warning); }

.result { margin-top: 12px; padding: 11px 14px; border-radius: .6rem; font-size: 13px; border: 1px solid var(--line); background: var(--card-2); }
.result.ok { border-color: rgba(63, 207, 63, .35); color: var(--good-text); }
.result.bad { border-color: #ff3b3b59; color: var(--critical-text); }

/* --- interrupteur ------------------------------------------------------------------------ */
.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--card-3); border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.switch .slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .slider { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(249, 115, 22, .3); }
.switch input:checked + .slider::after { transform: translateX(18px); background: #1a1206; }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px #fbbf2440; }
.switch input:disabled + .slider { opacity: .5; }

/* --- simulateur : autorisation en attente ---------------------------------------------- */
input.locked { border-color: #fbbf2480; color: var(--amber); background: #fbbf2410; box-shadow: 0 0 0 3px #fbbf2414; }
.sim-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: .6rem; font-size: 13px; color: var(--text-2);
  background: linear-gradient(90deg, rgba(249, 115, 22, .12), rgba(251, 191, 36, .03) 60%, transparent); border: 1px solid #fbbf242e; }
.sim-hint b { color: var(--amber); }

/* --- tableaux ----------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: right; font-family: var(--mono); }
.empty { color: var(--muted); text-align: center; padding: 28px; }

/* --- journal OCPP ------------------------------------------------------------------------- */
.log { font-family: var(--mono); font-size: 12px; }
.log-row { display: grid; grid-template-columns: 76px 28px 70px 200px minmax(0, 1fr); gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: baseline; }
.log-row:hover { background: rgba(255, 255, 255, .025); }
.log-row .t { color: var(--muted); }
.log-row .dir { font-weight: 700; }
.log-row .dir.out { color: var(--amber); }
.log-row .dir.in { color: var(--violet); }
.log-row .type { font-size: 11px; }
.log-row .type.t4 { color: var(--critical-text); }
.log-row .action { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.log-row .payload { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row.open .payload { white-space: pre-wrap; word-break: break-all; }
.feed { max-height: 330px; overflow-y: auto; }
.feed .log-row { grid-template-columns: 64px 22px minmax(0, 1fr); }

/* --- graphiques --------------------------------------------------------------------------- */
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 130px;
  background: #13121af5; border: 1px solid var(--line-2); border-radius: .6rem; padding: 9px 11px;
  font-size: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transform: translate(-50%, -100%);
}
.tooltip .tt-title { color: var(--muted); font-size: 11px; margin-bottom: 5px; font-family: var(--mono); }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; }
.tooltip .tt-row b { font-family: var(--mono); color: var(--text); }
.tooltip .tt-row span { color: var(--muted); }
.tooltip .key { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* --- divers ------------------------------------------------------------------------------- */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(249, 115, 22, .12), rgba(251, 191, 36, .03) 60%, transparent);
  border: 1px solid #fbbf242e; color: var(--text-2);
}
.banner b { color: var(--amber); }
.toasts { position: fixed; right: 20px; top: 76px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast {
  background: var(--card-2); border: 1px solid var(--line-2); border-left: 3px solid var(--amber);
  padding: 11px 14px; border-radius: .6rem; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  max-width: 380px; animation: slide .25s ease-out;
}
.toast.warn { border-left-color: var(--warning); }
.toast.bad { border-left-color: var(--critical-text); }
.toast.ok { border-left-color: var(--good-text); }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--card-3); color: var(--text-2); border: 1px solid var(--line); font-family: var(--mono); }
.tag.amber { color: var(--amber); border-color: #fbbf2459; background: #fbbf2414; }
.tag.green { color: var(--good-text); border-color: rgba(63, 207, 63, .3); }
.tag.red { color: var(--critical-text); border-color: #ff3b3b59; }
.muted { color: var(--muted); }
.section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.conn-tabs { display: flex; gap: 6px; }
.monitor { height: 260px; overflow-y: auto; background: var(--page); border: 1px solid var(--line); border-radius: .6rem; padding: 8px; font-family: var(--mono); font-size: 12px; }
.monitor .rx { color: var(--violet); }
.monitor .tx { color: var(--amber); }

/* --- gestion des accès ------------------------------------------------------------------ */
.subtabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.subtabs button { padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.subtabs button:hover { color: var(--text); }
.subtabs button.active { background: linear-gradient(90deg, #f973164d, #fbbf2438); color: var(--text); box-shadow: inset 0 0 0 1px #fbbf2459; }
.mini-bar { height: 6px; width: 90px; border-radius: 999px; background: var(--card-3); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.mini-bar > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.mini-bar > i.full { background: var(--critical-text); }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 41; display: flex; flex-direction: column;
  background: var(--card); border-left: 1px solid var(--line-2); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); animation: drawer-in .2s ease-out; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head, .drawer-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.slot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line); border-radius: .6rem; background: var(--page); }
.days { display: flex; gap: 4px; }
.days button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.days button.on { background: #fbbf241f; color: var(--amber); border-color: #fbbf2480; }
.slot input[type=time] { width: 110px; }
.badge-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: .6rem; background: var(--page); }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.modal-card { width: 100%; max-width: 420px; }
.qr-box { display: grid; place-items: center; padding: 14px; background: #fff; border-radius: .8rem; }
.qr-box img { width: 100%; max-width: 280px; image-rendering: pixelated; }

/* --- connexion ---------------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card .brand { justify-content: center; margin-bottom: 26px; font-size: 20px; }
.login-card .brand .logo { width: 44px; height: 44px; border-radius: .8rem; }

@media (max-width: 1100px) {
  .cols-main { grid-template-columns: minmax(0, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  main { padding: 16px; }
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .top-status .pill span.lbl { display: none; }
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-row { grid-template-columns: 64px 24px minmax(0, 1fr); }
  .log-row .type, .log-row .payload { display: none; }
  .log-row.open .payload { display: block; grid-column: 1 / -1; }
}
