/* Flexpa Health Wallet
   Type: Bricolage Grotesque for the few display moments, Instrument Sans for reading,
   IBM Plex Mono for identifiers and numbers (origins, member ids, counts).
   Color: Flexpa's near-white greens and sage, one deep moss for actions, and a single
   lime highlight reserved for the card and the sealed state. */

:root {
  color-scheme: light dark;
  --paper: #f7faf7;
  --paper-2: #eef4ef;
  --surface: #ffffff;
  --surface-2: #f1f6f2;
  --ink: #141a16;
  --ink-2: #4f5e50;
  --ink-3: #7f8d80;
  --rule: #dbe5dc;
  --rule-2: #c3d2c5;
  --moss: #1f5f43;
  --moss-2: #174a34;
  --mint: #d0ddd1;
  --mint-2: #e6eee7;
  --lime: #c1fd8a;
  --lime-ink: #244d15;
  --amber: #8f5f14;
  --amber-wash: #fbf1dc;
  --red: #a63c2f;
  --red-wash: #fbe9e6;
  --card-bg: #1b4a35;
  --card-ink: #f2f8f2;
  --card-dim: #b9d3c1;
  --card-hi: #c1fd8a;
  --focus: #1f5f43;
  --shadow: 0 1px 2px rgba(20, 26, 22, 0.05), 0 8px 24px -12px rgba(20, 26, 22, 0.18);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 7px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1411;
    --paper-2: #131a15;
    --surface: #161d18;
    --surface-2: #1c241e;
    --ink: #ebf1ec;
    --ink-2: #a8b7aa;
    --ink-3: #7b8a7e;
    --rule: #263029;
    --rule-2: #364336;
    --moss: #c1fd8a;
    --moss-2: #aeea78;
    --mint: #26362b;
    --mint-2: #1c2a20;
    --lime: #c1fd8a;
    --lime-ink: #142a0c;
    --amber: #e3b662;
    --amber-wash: #2c2310;
    --red: #f19288;
    --red-wash: #3a1a16;
    --card-bg: #e6eee7;
    --card-ink: #14291d;
    --card-dim: #4f6a55;
    --card-hi: #1f5f43;
    --focus: #c1fd8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --paper: #0f1411; --paper-2: #131a15; --surface: #161d18; --surface-2: #1c241e; --ink: #ebf1ec; --ink-2: #a8b7aa; --ink-3: #7b8a7e;
  --rule: #263029; --rule-2: #364336; --moss: #c1fd8a; --moss-2: #aeea78; --mint: #26362b; --mint-2: #1c2a20; --lime: #c1fd8a; --lime-ink: #142a0c;
  --amber: #e3b662; --amber-wash: #2c2310; --red: #f19288; --red-wash: #3a1a16; --card-bg: #e6eee7; --card-ink: #14291d; --card-dim: #4f6a55; --card-hi: #1f5f43; --focus: #c1fd8a;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--moss-2); }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: 1.85rem; font-weight: 650; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0.35rem 0; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.x-small { font-size: 0.78rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.page { max-width: 31rem; margin: 0 auto; padding: 1rem 1rem 3.5rem; display: flex; flex-direction: column; gap: 1rem; }
.page.wide { max-width: 64rem; }
@media (min-width: 40rem) { .page { padding-top: 1.75rem; } }

/* ---------- brand bar ---------- */
/* Mark, then the name with its tag line, then the controls at the end. The name never wraps:
   when the controls do not fit beside it they take their own row. On narrow screens that row
   sits under the name, indented past the mark, so it reads as part of the identity block. */
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-height: 44px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--moss); color: var(--paper); display: grid; place-items: center; flex: none;
}
:root[data-theme="dark"] .brand .mark, :root:not([data-theme="light"]) .brand .mark { color: var(--lime-ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand .mark { color: #f7faf7; } }
.brand .who { flex: 1 1 auto; }
.brand .name { font-family: var(--display); font-weight: 650; letter-spacing: -0.01em; font-size: 1.02rem; line-height: 1.2; white-space: nowrap; }
.brand .tag { color: var(--ink-3); font-size: 0.8rem; }
.brand .end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem 0.75rem; }
.brand nav { display: flex; gap: 1rem; font-size: 0.875rem; }
.brand nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.brand nav a:hover { color: var(--moss); }
.brand .session { display: inline-flex; align-items: center; gap: 0.6rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 0.82rem; cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule-2); }
.linkish:hover { color: var(--moss); }

/* ---------- signed out ---------- */
.signin { display: grid; gap: 0.5rem; justify-items: start; padding: 1.3rem 1.2rem 1.2rem; }
.signin h2 { font-size: 1.35rem; }
.signin .btn { flex: none; width: 100%; margin-top: 0.4rem; }
.signin .fine { text-align: left; margin-top: 0.2rem; }
@media (max-width: 40rem) {
  .brand nav { display: none; }
  .brand .end:has(.session:not([hidden])) { flex-basis: 100%; margin-left: 0; justify-content: flex-start; padding-left: calc(38px + 0.75rem); }
  .brand .end:has(.session:not([hidden])) .chip.mono { margin-left: auto; }
}

/* ---------- chips and panels ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.01em; border: 1px solid var(--rule-2); color: var(--ink-2); white-space: nowrap; background: var(--surface);
}
.chip.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.chip.ok { color: var(--moss); border-color: transparent; background: var(--mint-2); }
.chip.warn { color: var(--amber); border-color: transparent; background: var(--amber-wash); }
.chip.danger { color: var(--red); border-color: transparent; background: var(--red-wash); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.panel.quiet { background: transparent; box-shadow: none; }

/* ---------- the asker ---------- */
.asker { display: grid; gap: 0.15rem; padding: 1.1rem 1.2rem 1rem; }
.asker .host { font-family: var(--display); font-weight: 650; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.1; word-break: break-word; margin-top: 0.2rem; }
.asker .origin { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); word-break: break-all; }
.asker .auth { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--rule); }
.asker .auth .why { font-size: 0.8rem; color: var(--ink-2); flex: 1 1 14rem; }

.ask { padding: 0.4rem 0.2rem 0; }
.ask h1 { font-size: 1.75rem; }
.ask .purpose { font-size: 1.02rem; color: var(--ink-2); margin-top: 0.4rem; }
.ask .retention { color: var(--ink-3); font-size: 0.82rem; }

.items-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0.4rem 0.2rem 0; }
.items-head .count { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); }

/* ---------- items ---------- */
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.item { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.item.off { box-shadow: none; }
.item.off .item-head label { color: var(--ink-2); }
.item.unsupported, .item.unavailable { background: var(--surface-2); box-shadow: none; }
.item-head { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.95rem 1.05rem; }
.item-head label { flex: 1; min-width: 0; cursor: pointer; display: grid; gap: 0.15rem; }
.item-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; line-height: 1.25; }
.item-title .tag { font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 999px; padding: 0.05rem 0.45rem; }
.item-summary { color: var(--ink-2); font-size: 0.9rem; }
.item-status { font-family: var(--mono); font-size: 0.74rem; color: var(--moss); margin-top: 0.3rem; }
.item.off .item-status, .item.unsupported .item-status, .item.unavailable .item-status { color: var(--ink-3); }

.item-body-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.25s ease; }
.item.off .item-body-wrap { grid-template-rows: 0fr; }
.item-body { overflow: hidden; }
.item-body-inner { border-top: 1px solid var(--rule); padding: 0.7rem 1.05rem 0.95rem; display: flex; flex-direction: column; gap: 0.55rem; }

/* custom tick */
.tick {
  appearance: none; -webkit-appearance: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--rule-2); border-radius: 6px; background: var(--surface); display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease;
}
.tick::after { content: ""; width: 0.7rem; height: 0.7rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 4.9 8.8 9.6 3.6' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); opacity: 0; transform: scale(0.6); transition: opacity 0.12s ease, transform 0.12s ease; }
.tick:checked { background: var(--moss); border-color: var(--moss); }
.tick:checked::after { opacity: 1; transform: scale(1); }
.tick.sm { width: 1.05rem; height: 1.05rem; border-radius: 5px; }
.tick.sm::after { width: 0.6rem; height: 0.6rem; }
.tick:disabled { opacity: 0.4; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tick::after { filter: invert(1) brightness(0.3); } }
:root[data-theme="dark"] .tick::after { filter: invert(1) brightness(0.3); }

/* records inside an item */
.record { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.15rem 0; }
.record label { flex: 1; min-width: 0; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 0 0.6rem; align-items: baseline; }
.record .rtitle { font-size: 0.95rem; }
.record .rtype { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: right; white-space: nowrap; }
.record .rsub { grid-column: 1 / -1; font-size: 0.8rem; color: var(--ink-3); }
.record.off .rtitle { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule-2); }

/* ---------- the card ---------- */
.hcard {
  position: relative; background: var(--card-bg); color: var(--card-ink); border-radius: 14px; padding: 0.95rem 1.05rem 0.85rem; aspect-ratio: 1.586;
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.4rem; overflow: hidden; max-width: 24rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 28px -14px rgba(0,0,0,0.45);
}
.hcard::before { content: ""; position: absolute; inset: auto -30% -55% auto; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--card-hi) 28%, transparent), transparent 72%); pointer-events: none; }
.hcard.compact { aspect-ratio: auto; }
.hcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.hcard-payer { font-family: var(--display); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.hcard-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--card-hi); white-space: nowrap; }
.hcard-holder { font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hcard-numbers { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; }
.hcard-numbers > div { display: flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; }
.hcard-numbers dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--card-dim); }
.hcard-numbers dd { margin: 0; font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.04em; }
.hcard-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; font-size: 0.8rem; }
.hcard-foot > span:first-child { flex: 1 1 auto; }
.hcard-foot .hcard-meta { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--card-dim); text-align: right; flex: 0 1 auto; }
.record.cardrow { align-items: center; }
.record.cardrow label { grid-template-columns: 1fr; }
.record.cardrow .hcard { width: 100%; }
.record.cardrow.off .hcard { opacity: 0.45; }

/* ---------- questionnaire ---------- */
fieldset { border: 0; border-left: 2px solid var(--mint); padding: 0.1rem 0 0.1rem 0.9rem; margin: 0.2rem 0; display: grid; gap: 0.7rem; }
legend { float: left; width: 100%; color: var(--ink-2); font-size: 0.9rem; padding: 0; margin-bottom: 0.3rem; }
.q { display: grid; gap: 0.4rem; }
.q .qt { font-size: 0.95rem; font-weight: 500; }
.q .qt .req { color: var(--red); }
.q .opts { display: grid; gap: 0.2rem; }
.q .opts label { display: flex; gap: 0.6rem; align-items: center; font-size: 0.92rem; padding: 0.4rem 0.55rem; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; }
.q .opts label:hover { background: var(--surface-2); }
.q .opts label:has(input:checked) { background: var(--mint-2); border-color: var(--mint); }
.q .opts input { accent-color: var(--moss); width: 1rem; height: 1rem; margin: 0; }
.q input[type="text"], .q input[type="number"], .q input[type="date"], .q input[type="datetime-local"], .q input[type="time"], .q input[type="url"], .q textarea,
.field input, .field textarea, .field select {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
.q .score { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); }

/* ---------- decide ---------- */
.decide { display: grid; gap: 0.6rem; padding-top: 0.4rem; }
.actions { display: flex; gap: 0.6rem; }
.btn {
  flex: 1; padding: 0.8rem 1rem; border-radius: var(--r-md); border: 1px solid var(--rule-2); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 0.97rem; transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:hover:not(:disabled) { border-color: var(--ink-3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--moss); border-color: var(--moss); color: var(--paper); flex: 1.6; }
.btn.primary:hover:not(:disabled) { background: var(--moss-2); border-color: var(--moss-2); }
.btn.sm { flex: none; padding: 0.5rem 0.85rem; font-size: 0.875rem; font-weight: 500; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: var(--lime-ink); } }
:root[data-theme="dark"] .btn.primary { color: var(--lime-ink); }
.note { color: var(--ink-2); font-size: 0.875rem; text-align: center; }
.fine { color: var(--ink-3); font-size: 0.78rem; text-align: center; }
.error { color: var(--red); font-size: 0.92rem; padding: 0.8rem 1rem; background: var(--red-wash); border-radius: var(--r-md); }

/* ---------- done ---------- */
.done { display: grid; gap: 0.3rem; justify-items: center; text-align: center; padding: 2rem 1.2rem; }
.done .seal {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); margin-bottom: 0.7rem;
  animation: seal-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.done .seal.none { background: var(--surface-2); color: var(--ink-3); }
.done h2 { font-size: 1.4rem; }
.done p { color: var(--ink-2); max-width: 26rem; }
@keyframes seal-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- developer detail ---------- */
details.dev { border: 1px dashed var(--rule-2); border-radius: var(--r-md); padding: 0.5rem 1rem; }
details.dev summary { cursor: pointer; color: var(--ink-3); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
details.dev .kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 0.9rem; font-size: 0.8rem; margin: 0.7rem 0; }
details.dev .kv b { color: var(--ink-2); font-weight: 500; }
details.dev .kv span { word-break: break-all; }
details.dev pre { background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.7rem; overflow: auto; max-height: 20rem; font-family: var(--mono); font-size: 0.72rem; line-height: 1.55; margin: 0.4rem 0; white-space: pre-wrap; word-break: break-all; }
details.dev h4 { margin: 0.8rem 0 0.2rem; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-2); }

/* ---------- home ---------- */
.hero { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: center; padding: 0.6rem 0 0.2rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; } }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 650; letter-spacing: -0.025em; max-width: 18ch; }
.hero .lede { font-size: 1.05rem; color: var(--ink-2); max-width: 40ch; margin-top: 0.7rem; }
.hero .facts { display: flex; gap: 1.4rem; margin-top: 1.1rem; flex-wrap: wrap; }
.hero .fact { display: grid; gap: 0.1rem; }
.hero .fact b { font-family: var(--display); font-weight: 650; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.hero .fact span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hero .hcard { justify-self: center; width: 100%; max-width: 24rem; transform: rotate(-1.2deg); }
@media (min-width: 52rem) { .hero .hcard { justify-self: end; } }

.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 52rem) { .grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.panel h2 { margin-bottom: 0.2rem; }
.panel .lead { color: var(--ink-2); font-size: 0.92rem; margin: 0.2rem 0 0.9rem; }
.field { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--ink-2); }
.field > span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; }
.row .grow { flex: 1 1 14rem; }
.stack { display: grid; gap: 0.6rem; }
.file { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--ink-2); }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file .btn { flex: none; }
.file .fname { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file:focus-within .btn { outline: 2px solid var(--focus); outline-offset: 2px; }
.url { font-family: var(--mono); font-size: 0.74rem; line-height: 1.5; word-break: break-all; background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.6rem 0.75rem; color: var(--ink-2); max-height: 7.5rem; overflow: auto; }
.url a { color: var(--moss); }
ol.steps { padding-left: 1.2rem; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; color: var(--ink-2); font-size: 0.9rem; }
ol.steps b { color: var(--ink); font-weight: 600; }
details.more { margin-top: 0.6rem; }
details.more summary { cursor: pointer; color: var(--ink-2); font-size: 0.875rem; }
details.more p { font-size: 0.875rem; color: var(--ink-2); }

#records { margin-top: 0.4rem; }
@media (min-width: 52rem) { #records { columns: 2; column-gap: 2.5rem; } }
#records .group { break-inside: avoid; border-top: 0; padding-top: 0; margin: 0 0 1.1rem; }
.group { border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 0.75rem; }
.group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0.4rem; }
.group h3 { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 0.35rem; }
.group h3 .count { font-family: var(--mono); font-weight: 500; color: var(--ink-3); font-size: 0.72rem; }
.reclist { list-style: none; margin: 0; padding: 0; display: grid; }
.reclist li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.92rem; padding: 0.35rem 0; border-top: 1px dashed var(--rule); }
.reclist li:first-child { border-top: 0; }
.reclist li .grow { flex: 1; min-width: 0; }
.reclist li .sub { color: var(--ink-3); font-size: 0.78rem; }
.reclist button { background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: 0.78rem; padding: 0; font-family: var(--mono); }
.reclist button:hover { color: var(--red); }
.cards-row { display: grid; gap: 0.7rem; margin: 0.3rem 0 0.4rem; }
.status-line { font-size: 0.875rem; color: var(--ink-2); min-height: 1.3em; margin-top: 0.6rem; }
.status-line.error { background: none; padding: 0; }

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