/* PayLink: one stylesheet, light and dark, no external fonts (self-hosted product). */
:root {
  --bg: #F4F6F7; --surface: #FFFFFF; --sunk: #EBEFF1; --ink: #13212B; --muted: #56666F; --line: #D6DEE2;
  --accent: #0E7C6B; --accent-ink: #FFFFFF; --accent-soft: #DCF0EB;
  --warn: #A65F00; --warn-soft: #FFF0D9; --good: #1D7F45; --good-soft: #DFF3E6; --bad: #B93A26; --bad-soft: #FBE3DE;
  --info: #2A62A6; --info-soft: #E0EBF8;
  --shadow: 0 1px 2px rgba(19,33,43,.06), 0 6px 20px rgba(19,33,43,.06);
  --f-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1317; --surface: #141D23; --sunk: #0A0F12; --ink: #E3EBEE; --muted: #93A3AC; --line: #25323A;
    --accent: #3DC1A8; --accent-ink: #05211B; --accent-soft: #11302A;
    --warn: #F0A53A; --warn-soft: #35270F; --good: #52C482; --good-soft: #123222; --bad: #F07A63; --bad-soft: #3A1913;
    --info: #73A9EE; --info-soft: #13263D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; } h4 { font-size: .95rem; }
p { margin: 0; }
a { color: var(--accent); }
code, .mono { font-family: var(--f-mono); font-size: .86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .84rem; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; }
.top .where { color: var(--muted); font-size: .9rem; }
.top .spacer { flex: 1; }
.top .who { font-size: .86rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); }
.narrow { max-width: 760px; margin: 0 auto; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { display: grid; gap: 2px; position: sticky; top: 16px; }
.side .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 10px 4px; font-weight: 600; }
.side a { color: var(--muted); text-decoration: none; padding: 7px 10px; border-radius: 7px; font-size: .92rem; display: flex; justify-content: space-between; gap: 8px; }
.side a:hover { background: var(--sunk); color: var(--ink); }
.side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.count { font-size: .72rem; font-family: var(--f-mono); background: var(--bad-soft); color: var(--bad); padding: 0 6px; border-radius: 999px; }
.main { display: grid; gap: 18px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.head p { color: var(--muted); margin-top: 4px; max-width: 70ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.card.flush { padding: 0; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }

.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; background: var(--sunk); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 500; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

[hidden] { display: none !important; }
.field { display: grid; gap: 5px; align-content: start; }
.field > label, .label { font-size: .82rem; font-weight: 600; color: var(--muted); }
input:not([type]), input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date], select, textarea {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 9px 11px; font: inherit; font-size: .92rem; width: 100%; min-width: 0;
}
input.mono, textarea.mono { font-family: var(--f-mono); font-size: .84rem; }
.prefix { display: flex; min-width: 0; }
.prefix span { border: 1px solid var(--line); border-right: 0; background: var(--sunk); padding: 9px 10px; border-radius: 8px 0 0 8px; font-family: var(--f-mono); font-size: .84rem; color: var(--muted); white-space: nowrap; }
.prefix input { border-radius: 0 8px 8px 0; }

.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt b { font-weight: 600; }
.opt > div > span { display: block; font-size: .86rem; color: var(--muted); }
.opt .chip { font-size: .72rem; vertical-align: middle; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt.disabled { opacity: .55; cursor: not-allowed; }
.reveal { display: none; }
.opt:has(input:checked) + .reveal, .reveal.open { display: grid; }
details > summary { cursor: pointer; color: var(--accent); font-size: .9rem; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--info); background: var(--info-soft); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.notice.good { border-left-color: var(--good); background: var(--good-soft); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-soft); }
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.secret { font-family: var(--f-mono); font-size: .9rem; background: var(--sunk); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; user-select: all; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; counter-reset: s; }
.step { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.step::before { counter-increment: s; content: counter(s); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--sunk); font-family: var(--f-mono); }
.step.done::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.step.now { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.step.now::before { background: var(--accent); color: var(--accent-ink); }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.checks { display: grid; gap: 6px; }
.activity { display: grid; gap: 8px; }
.activity div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; font-size: .88rem; }
.activity span { min-width: 0; overflow-wrap: anywhere; }
.activity time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; }
.check .ok { color: var(--good); font-weight: 700; } .check .no { color: var(--bad); font-weight: 700; } .check .w { color: var(--warn); font-weight: 700; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.caps label { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.caps label span { display: block; color: var(--muted); font-size: .8rem; }
.caps input { accent-color: var(--accent); margin-top: 3px; }
.empty { text-align: center; padding: 26px; color: var(--muted); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .side .grp { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid2, .grid3, .caps { grid-template-columns: minmax(0, 1fr); }
  .top .where { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* A prefilled, read-only value with an edit button (_LockedInput). */
.locked { display: flex; gap: 8px; align-items: center; }
.locked input { flex: 1; min-width: 0; }
.locked input[readonly] { background: var(--sunk); color: var(--muted); }

/* Console: Test/Live switch and the amber test-mode bar. */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--sunk); border-radius: 8px; padding: 3px; margin: 0 0 6px; }
.side .modes a { justify-content: center; padding: 4px 8px; font-size: .84rem; }
.side .modes a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.modebar { background: var(--warn-soft); color: var(--warn); border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: .9rem; }

/* Payment journey timeline. */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey li { display: grid; grid-template-columns: 9.5em 14px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.journey li::before { content: ""; position: absolute; left: calc(9.5em + 16px); top: 14px; bottom: 0; width: 2px; background: var(--line); }
.journey li:last-child::before { display: none; }
.journey time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.journey .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin-top: 5px; position: relative; z-index: 1; }
.journey .dot.good { background: var(--good); } .journey .dot.bad { background: var(--bad); } .journey .dot.warn { background: var(--warn); } .journey .dot.info { background: var(--info); }
.journey b { font-weight: 600; font-size: .92rem; }
.journey .meta { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.amount { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar input { flex: 1 1 220px; width: auto; }
.searchbar select { width: auto; }
.proof { max-width: 100%; max-height: 420px; border: 1px solid var(--line); border-radius: 8px; }

/* Hosted checkout and payment links: the merchant and the payment, nothing else. */
.paybody { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -120px, var(--accent-soft), transparent 70%), var(--bg); }
.paywrap { max-width: 480px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 40px max(14px, env(safe-area-inset-left)); }
.pay { display: grid; gap: 14px; }
.pay .card { box-shadow: var(--shadow); border-radius: 16px; padding: 20px 22px; }
.pay .summary { border-top: 4px solid var(--accent); gap: 10px; }
.pay .summary .amount { font-size: 2.3rem; letter-spacing: -.01em; }
.pay .summary-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; border-top: 1px dashed var(--line); padding-top: 10px; }
.pay .merchant { display: flex; gap: 12px; align-items: center; }
.pay .logo { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.pay .methods { display: grid; gap: 10px; }
.pay .method { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pay .method:hover, .pay .method:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pay .method:active { transform: scale(.99); }
.pay .mtext { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pay .mtext span { color: var(--muted); font-size: .84rem; }
.pay .go { color: var(--accent); font-size: 1.2rem; }
.micon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.micon svg { width: 22px; height: 22px; }
.pay .btn { min-height: 44px; }
.pay .btn.pri { font-size: 1rem; }
.payfoot { display: grid; gap: 8px; justify-items: center; text-align: center; margin-top: 20px; color: var(--muted); font-size: .78rem; }
.payfoot .badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.payfoot .mark { width: 18px; height: 18px; font-size: .62rem; border-radius: 5px; }
@media (max-width: 520px) {
  .paywrap { padding-top: 12px; }
  .pay .card { border-radius: 14px; padding: 16px; }
  .pay .summary .amount { font-size: 2rem; }
  .pay .actions .btn { flex: 1 1 100%; justify-content: center; }
}
.qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.qr svg { width: 220px; height: 220px; }
.testbar { background: var(--warn); color: #fff; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: 4px; border-radius: 6px; }
.result { text-align: center; display: grid; gap: 8px; justify-items: center; }
.result .big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.result .big.good { background: var(--good-soft); color: var(--good); } .result .big.bad { background: var(--bad-soft); color: var(--bad); } .result .big.warn { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 600px) { .journey li { grid-template-columns: 14px minmax(0, 1fr); } .journey li time { grid-column: 2; order: 2; } .journey li::before { left: 6px; } }

/* Reports: one-series daily bars (accent), 2px gaps, 4px rounded tops anchored to the baseline. */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); }
.bar { flex: 1 1 0; min-width: 2px; height: max(var(--h), 1px); background: var(--accent); border-radius: 4px 4px 0 0; }
.bar:hover { opacity: .8; }
.bars-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.substeps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.substeps a, .substeps span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); text-decoration: none; }
.substeps a.now { background: var(--accent); color: #fff; border-color: var(--accent); }
.substeps a.done { color: var(--good); border-color: var(--good); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Front page. */
.topnav { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; }
.topnav a:not(.btn):hover { color: var(--ink); }
.home { display: grid; gap: 56px; }
.eyebrow { display: inline-block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 12px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.hero .lead { font-size: 1.08rem; color: var(--muted); margin: 14px 0 20px; max-width: 60ch; }
.hero-card { background: radial-gradient(500px 260px at 60% 0, var(--accent-soft), transparent 70%); border-radius: 20px; padding: 22px; }
.hero-card .card { box-shadow: var(--shadow); }
.hero-card .method { cursor: default; margin-bottom: 8px; }
.btn.lg { padding: 11px 18px; font-size: 1rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 8px; }
.band { display: grid; gap: 18px; }
.band-head { max-width: 760px; display: grid; gap: 6px; }
.band-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.steps4 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps4 li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.steps4 li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.steps4 span { color: var(--muted); font-size: .92rem; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.features .card h3 { font-size: 1rem; }
.dev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 28px; }
.code { white-space: pre-wrap; user-select: text; margin: 0; }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .hero, .dev, .split { grid-template-columns: minmax(0, 1fr); }
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav a:not(.btn) { display: none; }
}
@media (max-width: 520px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }
.filters { gap: 10px; }
.rangebar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rangebar .custom { display: inline-flex; gap: 6px; align-items: center; }
.rangebar input[type=date] { width: auto; }
.pager { align-items: center; }
.pager .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.flowsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flowsteps li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); background: var(--surface); }
.flowsteps li.now { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flowsteps li.done { color: var(--good); border-color: var(--good); }

/* Risk rule builder */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.preset { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.preset .row { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.preset input.sm { width: 9em; padding: 4px 8px; }
.sentence { font-size: 1.05em; line-height: 2.6; }
.sentence select, .sentence input { display: inline-block; width: auto; min-width: 10em; max-width: 100%; margin: 0 4px; }
@media (max-width: 600px) { .sentence select, .sentence input { display: block; width: 100%; margin: 6px 0; } }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* Payment methods: cards first, settings below */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mcard.feature { border-color: var(--good, #1F8A5B); box-shadow: 0 0 0 1px var(--good, #1F8A5B) inset; }
.mcard .mtop { display: flex; gap: 10px; align-items: center; }
.mcard .mtop .chip { margin-left: 6px; }
.mcard .mstate { display: flex; gap: 6px; flex-wrap: wrap; }
.mcard .actions { margin-top: auto; }
details.card > summary { cursor: pointer; list-style: none; display: block; }
details.card:not([open]) { padding-top: 14px; padding-bottom: 14px; gap: 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "▸ "; color: var(--muted); }
details.card[open] > summary::before { content: "▾ "; }
@media (max-width: 600px) { .caps { grid-template-columns: minmax(0, 1fr); } }
.toplink { color: var(--muted); text-decoration: none; font-size: .9rem; margin-right: 14px; }
.toplink:hover { color: var(--ink); }
