:root {
  --bg: #0b0d10;
  --panel: #14181d;
  --panel-2: #1c2128;
  --line: #262c34;
  --text: #e8ecf1;
  --muted: #8b95a3;
  --accent: #3ea6ff;
  --live: #2fd27a;
  --warn: #f5b942;
  --dead: #ef5b5b;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  flex: none;
}
.brand { font-weight: 650; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.logo { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(47,210,122,.18); }
.summary { color: var(--muted); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions { display: flex; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 10px; cursor: pointer; min-height: 36px;
}
.icon-btn:hover { border-color: #39424e; }
.icon-btn span { font-size: 13px; }

.btn {
  background: var(--accent); color: #04121f; border: 0; border-radius: 10px;
  padding: 9px 18px; font-weight: 600; cursor: pointer;
}

/* ---------- grid ---------- */
.grid {
  flex: 1; overflow-y: auto;
  display: grid; gap: 3px; padding: 3px;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  align-content: start;
  padding-bottom: calc(3px + var(--safe-bottom));
}
/* When everything fits on one screen, stretch rows to fill it */
.grid.fit { align-content: stretch; grid-auto-rows: 1fr; }
.grid.fit .tile { aspect-ratio: auto; min-height: 0; }

.tile {
  position: relative; background: #000; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; cursor: pointer;
  outline: 1px solid var(--line);
}
.tile video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: var(--fit, contain); background: #000;
}
.tile .label {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 550;
  max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.state-live .dot { background: var(--live); }
.state-connecting .dot, .state-stalled .dot { background: var(--warn); animation: pulse 1s infinite alternate; }
.state-dead .dot { background: var(--dead); }
@keyframes pulse { to { opacity: .3; } }

.tile .overlay {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 12px; pointer-events: none;
}
.tile.state-live .overlay { display: none; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #2c333c; border-top-color: var(--accent);
  animation: spin .8s linear infinite; margin: 0 auto 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-dead .spinner { display: none; }

/* ---------- single view ---------- */
.single {
  position: fixed; inset: 0; z-index: 20; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.single video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.single-top, .single-bottom {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; transition: opacity .25s;
}
.single-top { top: 0; padding-top: calc(10px + var(--safe-top)); background: linear-gradient(rgba(0,0,0,.7), transparent); }
.single-bottom { bottom: 0; justify-content: center; padding-bottom: calc(14px + var(--safe-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.single-title { font-weight: 600; font-size: 16px; flex: 1; }
.stats { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.single .icon-btn { background: rgba(28,33,40,.8); }
.single.idle .single-top, .single.idle .single-bottom, .single.idle .nav { opacity: 0; }
.single-status {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--muted); text-align: center; pointer-events: none;
}
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(28,33,40,.6); border: 0; border-radius: 50%;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  transition: opacity .25s;
}
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.seg { display: inline-flex; background: rgba(28,33,40,.8); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--accent); color: #04121f; }

/* ---------- message / toast ---------- */
.message { position: fixed; inset: 60px 20px auto; text-align: center; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(80px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: var(--panel-2); border: 1px solid var(--line); padding: 9px 14px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- settings ---------- */
dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 0; width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
}
dialog::backdrop { background: rgba(0,0,0,.6); }
.settings-form { padding: 18px; }
.settings-form h2 { margin: 0; font-size: 18px; }
.settings-form h3 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.hint { color: var(--muted); margin: 4px 0 0; font-size: 12px; }
.cam-settings { display: grid; gap: 6px; }
.cam-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.cam-row .ch { color: var(--muted); font-size: 12px; width: 32px; }
input[type=text], input[type=password], select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font: inherit; width: 100%;
}
.row { display: grid; gap: 6px; margin-bottom: 10px; }
.row.check { display: flex; align-items: center; gap: 8px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ================= v2: sections ================= */
.tabs { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.tabs button { background: none; border: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs button.on { background: var(--panel-2); color: var(--text); }
.page { flex: 1; overflow-y: auto; padding: 12px 12px calc(24px + var(--safe-bottom)); }
.hint { color: var(--muted); font-size: 12px; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn:disabled { opacity: .45; cursor: default; }
label.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .bar { flex-wrap: wrap; row-gap: 8px; }
  .brand-name { display: none; }
  .tabs { order: 3; width: 100%; }
  .tabs button { flex: 1; }
  .summary { order: 1; }
  .actions { order: 2; }
}

/* ---------- playback ---------- */
.pb-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pb-toolbar input[type=date] { width: auto; min-height: 36px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.t1 { background: #3e7bd6; } .t2 { background: #f5b942; } .t4 { background: #ef5b5b; } .t8 { background: #2fd27a; }
.pb-hint { margin: 10px 0 6px; }
.pb-scale, .pb-row { display: grid; grid-template-columns: var(--pbname, 120px) 1fr; gap: 10px; align-items: center; }
.pb-scale .ticks { position: relative; height: 16px; }
.pb-scale .ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-scale .ticks span:first-child { transform: none; }
.pb-rows { display: grid; gap: 6px; margin-top: 4px; }
.pb-name { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-line {
  position: relative; height: 34px; border-radius: 6px; cursor: pointer; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--panel-2) 0 calc(100% / 8 - 1px), var(--line) calc(100% / 8 - 1px) calc(100% / 8));
  border: 1px solid var(--line);
}
.pb-line.empty::after { content: 'No recordings'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.pb-line .seg { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; pointer-events: none; }
.pb-line .seg.t2, .pb-line .seg.t4, .pb-line .seg.t8 { top: 0; bottom: 0; min-width: 2px; }
.pb-status { color: var(--muted); font-size: 13px; margin-top: 12px; }
@media (max-width: 640px) { .page { --pbname: 76px; } .legend { margin-left: 0; width: 100%; } }

/* ---------- recording player ---------- */
.pb-clock { color: var(--muted); font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; margin-left: 8px; }
.pb-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
.pb-player .pb-line { height: 28px; background-color: rgba(28,33,40,.85); }
.pb-player .cursor { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); z-index: 2; pointer-events: none; }
.pb-controls { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pb-controls .icon-btn { min-width: 52px; justify-content: center; font-weight: 600; font-size: 13px; }
.pb-controls .play { background: var(--accent); color: #04121f; border-color: var(--accent); }
.pb-player.idle .pb-bottom, .pb-player.idle .single-top { opacity: 0; }

/* ---------- NVR settings ---------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.subtabs button, .chips button {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.subtabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
.chips button { white-space: nowrap; font-weight: 500; }
.chips button.on { border-color: var(--accent); color: var(--text); background: rgba(62,166,255,.15); }
.nvr-body { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card h3 { margin: 0; font-size: 15px; }
.card-state { color: var(--muted); font-size: 12px; text-align: right; }
.card .hint { margin: 6px 0 0; }
.fields { display: grid; gap: 10px; margin-top: 12px; }
.field { display: grid; grid-template-columns: 1fr minmax(0, 1.2fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.field select, .field input[type=text] { grid-column: 2 / 4; }
.field input[type=range] { width: 100%; accent-color: var(--accent); }
.field output { width: 22px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 13px; }
dl.info dt { color: var(--muted); } dl.info dd { margin: 0; word-break: break-all; }
.brushes { margin-top: 12px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.presets .btn { padding: 6px 10px; font-size: 12px; }
.sched-wrap { overflow-x: auto; margin-top: 10px; }
.sched { display: grid; grid-template-columns: 34px repeat(24, minmax(11px, 1fr)); gap: 2px; min-width: 330px; touch-action: none; user-select: none; }
.sched .sh { font-size: 10px; color: var(--muted); text-align: left; }
.sched .sd { font-size: 11px; color: var(--muted); align-self: center; }
.sched .sc { height: 22px; border-radius: 3px; background: var(--panel-2); cursor: pointer; }
.sched .sc.c { background: #3e7bd6; }
.sched .sc.m { background: #f5b942; }
.sched .sc.c.m { background: linear-gradient(135deg, #3e7bd6 50%, #f5b942 50%); }
.nvr-body .card:has(.sched) { grid-column: 1 / -1; max-width: 900px; }

/* recording on/off */
.rec-list { display: grid; gap: 2px; margin-top: 10px; }
.rec-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.rec-row:last-child { border-bottom: 0; }
.rec-state { color: var(--live); font-size: 12px; }
.rec-row.off .rec-state { color: var(--dead); }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); transition: .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + i { background: rgba(47,210,122,.25); border-color: var(--live); }
.switch input:checked + i::after { left: 20px; background: var(--live); }
.switch input:disabled + i { opacity: .5; }
.rec-card .card-actions { justify-content: flex-end; }
.dialog-actions.spread { justify-content: space-between; }

/* ================= Blink ================= */
.bl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.bl-head h3, .bl-h { margin: 14px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.bl-systems { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.bl-sys { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.bl-sys .dot { background: var(--live); }
.bl-sys.offline .dot { background: var(--dead); }
.bl-sys-name { font-weight: 600; font-size: 14px; }
.bl-sys-state { color: var(--muted); font-size: 12px; }
.bl-devices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bl-dev { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bl-dev.offline { opacity: .6; }
.bl-pic { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; display: grid; place-items: center; }
.bl-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.bl-pic.has img { opacity: 1; }
.bl-pic.has .bl-pic-msg { display: none; }
.bl-pic-msg { color: var(--muted); font-size: 12px; }
.bl-dev-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.bl-dev-title { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.bl-sub { color: var(--muted); font-size: 12px; }
.bl-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.bl-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.bl-badge.bad { color: var(--dead); border-color: rgba(239,91,91,.5); }
.bl-badge.good { color: var(--live); }
.bl-dev-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bl-dev-actions .btn { padding: 7px 12px; font-size: 13px; }
.bl-filters { display: flex; gap: 6px; }
.bl-filters select { width: auto; }
.bl-clips { display: grid; gap: 4px; }
.bl-day { margin: 12px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bl-clip { display: grid; grid-template-columns: 76px 1fr auto 20px; gap: 10px; align-items: center; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.bl-clip:hover { border-color: #39424e; }
.bl-clip-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.bl-clip-cam { font-weight: 550; font-size: 14px; }
.bl-src { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.bl-src.usb { color: #f5b942; } .bl-src.cloud { color: var(--accent); }
.bl-more { margin-top: 8px; justify-self: center; }
.bl-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.bl-player .single-bottom a { text-decoration: none; color: inherit; }
.bl-player .single-status { z-index: 3; }
.bl-player { flex-direction: column; align-items: stretch; }
.bl-player .single-top, .bl-player .single-bottom { position: static; background: none; flex: none; }
.bl-player video { flex: 1; min-height: 0; height: auto; }
.bl-player .single-status { top: 50%; }
.bl-player .single-top { order: -1; padding-top: calc(10px + var(--safe-top)); }
.bl-sys.offline .switch { opacity: .35; }

/* phone alerts */
.nt-steps { margin: 4px 0 8px; padding-left: 20px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.nt-steps b { color: var(--text); }
.nt-topic { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.nt-topic code { flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 14px; user-select: all; overflow-wrap: anywhere; }
.nt-topic .btn { padding: 8px 12px; }
.nt-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }

/* Blink live view */
.bl-btns { display: flex; gap: 6px; }
.bl-live { padding: 7px 14px; font-size: 13px; }
.bl-player.live #blPrev, .bl-player.live #blNext, .bl-player.live #blDownload { display: none; }
.bl-player.live video { pointer-events: none; }
.bl-live-badge { color: var(--dead); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.bl-live-badge:empty { display: none; }

/* Tuya camera settings */
.ty-form { min-width: min(420px, 92vw); }
.ty-group { margin-top: 14px; }
.ty-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.ty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ty-row:last-child { border-bottom: 0; }
.ty-row select { min-width: 130px; }
.ty-info { background: var(--panel-2); border-radius: 10px; padding: 8px 12px; margin-top: 6px; }
.ty-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.ty-info-row span { color: var(--muted); }

/* people who aren't the owner (public address): watching only */
body.viewer .tabs button[data-view=nvr], body.viewer #alertsSection, body.viewer #btnCamSettings,
body.viewer .bl-sys .switch, body.viewer .bl-dev-actions label.check, body.viewer .bl-snap { display: none !important; }
body.viewer.personal #alertsSection { display: block !important; }
body.viewer .eu-set { display: none !important; }
/* eufy */
.eu-sys { grid-template-columns: auto 1fr auto; cursor: default; }
.eu-sys select { width: auto; min-width: 120px; }
.eu-clip { grid-template-columns: 64px 70px 1fr auto 20px; }
.eu-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; background: #000; }
.bl-player.live .eu-clip-only { display: none; }
.eu-ctl { display: flex; align-items: center; gap: 8px; }
.eu-ctl input[type=range] { width: 140px; }
.eu-val { min-width: 2ch; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }   /* their own alerts */
#alertsSection label[hidden] { display: none !important; }
.users-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.badge-count { background: var(--dead); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.sign-outs { display: flex; gap: 8px; flex-wrap: wrap; }

/* a tile that already has a picture: keep it visible, show a small badge in the corner */
.tile.has-pic .overlay { place-items: start end; padding: 8px; }
.tile.has-pic .overlay > div { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #e8ecf1; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11.5px; }
.tile.has-pic .spinner { width: 10px; height: 10px; margin: 0; border-width: 2px; }

/* collapsible settings section */
details.fold { border-bottom: 1px solid var(--line, #2a2f3a); margin: 4px 0 8px; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { margin: 0; display: inline; }
details.fold > summary::after { content: '▸'; margin-left: auto; opacity: .7; transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(90deg); }
details.fold .fold-hint { font-size: .8rem; opacity: .6; }
