:root {
  --band: #1c1410; --band-2: #2a1d16; --band-ink: #f6ece1; --band-muted: #b59c86; --band-line: rgba(246, 236, 225, .12);
  --bg: #f5efe7; --card: #fffcf8; --text: #221913; --muted: #8b7766; --line: #ebe1d5; --hover: #faf5ee;
  --accent: #a95a2a; --accent-2: #cf8a4f; --accent-ink: #fffaf4; --accent-soft: #f5e6d8; --gold: #d9a86c;
  --warn: #9a5b06; --warn-bg: #fbeccb; --bad: #a3261b; --bad-bg: #f9dcd6;
  --new: #6d4c9c; --new-bg: #ece3f6; --ok: #4d6b3a; --ok-bg: #e5eedb;
  --shadow-sm: 0 1px 2px rgba(60, 35, 18, .06);
  --shadow: 0 1px 2px rgba(60, 35, 18, .05), 0 10px 30px -12px rgba(60, 35, 18, .18);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15100d; --card: #1f1814; --text: #f3e9df; --muted: #a89280; --line: #2f241d; --hover: #261d18;
    --accent: #e0925c; --accent-2: #eaa870; --accent-ink: #26140a; --accent-soft: #3a2519;
    --warn: #f0bf62; --warn-bg: #3a2a0c; --bad: #f19482; --bad-bg: #3e1a14;
    --new: #c7aef0; --new-bg: #2c2340; --ok: #b3cf9b; --ok-bg: #243020;
    --shadow-sm: none; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

:root { color-scheme: light dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; margin: 0; }
h2 { font-size: 1.35rem; margin: 0; }
h3 { font-size: .72rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.eyebrow { margin: 0 0 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.err { color: var(--bad); min-height: 1.2em; margin: 6px 0 0; font-size: .9rem; }

button, .upload {
  font: inherit; font-size: .92rem; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
button:active { transform: scale(.97); }
button:hover, .upload:hover { border-color: var(--accent-2); }
button.primary, .upload { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.primary:hover, .upload:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.danger { color: var(--bad); }
.link-btn { border: 0; background: none; padding: 4px 2px; color: var(--muted); font-size: .85rem; }
.link-btn:hover { color: var(--accent); }
input, select, textarea {
  font: inherit; width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Kluis / login ---------- */
.lock {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 70% at 50% 0%, #4a2c1c 0%, var(--band) 60%); color: var(--band-ink);
}
.lock-card { width: 100%; max-width: 360px; text-align: center; }
.lock-card h1 { font-size: 2.2rem; }
.lock-msg { color: var(--band-muted); margin: 10px 0 22px; font-size: .95rem; }
.lock-card form { display: grid; gap: 10px; }
.lock-card input[type=password] { background: rgba(255, 255, 255, .06); border-color: var(--band-line); color: var(--band-ink); padding: 14px 16px; }
.lock-card input::placeholder { color: var(--band-muted); }
.lock-card input:focus { box-shadow: 0 0 0 4px rgba(217, 168, 108, .18); border-color: var(--gold); }
.lock-card button.primary { padding: 13px; background: linear-gradient(135deg, var(--gold), #c07a45); border: 0; color: #24140a; font-size: 1rem; }
.lock-card .err { color: #f3a08f; }
.check { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .88rem; color: var(--band-muted); }
.check input { width: auto; accent-color: var(--gold); }
.lock-foot { margin-top: 26px; font-size: .78rem; color: var(--band-muted); letter-spacing: .04em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--gold), #b5683a); color: #24140a; }
.brand-mark svg { width: 20px; height: 20px; stroke-width: 2; }
.brand-mark.lg { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 12px 40px -10px rgba(217, 168, 108, .5); }
.brand-mark.lg svg { width: 34px; height: 34px; }

/* ---------- Kop ---------- */
.band {
  position: sticky; top: 0; z-index: 20; padding: env(safe-area-inset-top) 16px 0;
  background: color-mix(in srgb, var(--card) 86%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.band-inner, .content { max-width: 880px; margin: 0 auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.bar-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: var(--card); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.add-btn { display: flex; align-items: center; gap: 6px; background: var(--text); color: var(--card); border: 0; font-weight: 600; padding: 9px 16px 9px 12px; }
.add-btn:hover { background: var(--accent); }
.add-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.tabs-row { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.tab { border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 6px 14px; white-space: nowrap; font-weight: 600; font-size: .86rem; }
.tab:hover { color: var(--text); border: 0; }
.tab.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(60, 35, 18, .12), 0 0 0 1px var(--line); }
.tab.add { color: var(--accent); padding: 6px 11px; }
.tab-tools { display: flex; gap: 6px; }
.tab-tools:empty { display: none; }
.tab-tools button { padding: 5px 12px; font-size: .78rem; background: transparent; color: var(--muted); }
.tab-tools button.danger { color: var(--bad); }

/* Samenvatting */
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px; display: grid; gap: 22px; }
.content { container-type: inline-size; }
.summary-card { min-width: 0; }
@container (min-width: 700px) { .summary-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 26px 28px; } }
.hero-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.hero-amount { white-space: nowrap; font-family: var(--serif); font-size: clamp(2.1rem, 10cqi, 3.3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.hero-amount .cents { font-size: .5em; color: var(--muted); vertical-align: .75em; margin-left: 2px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-meta .alert b { color: var(--warn); }
.breakdown { display: grid; gap: 10px; min-width: 0; }
@container (min-width: 700px) { .breakdown { border-left: 1px solid var(--line); padding-left: 26px; } }
.bd-row { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(24px, 1fr) auto; align-items: center; gap: 12px; font-size: .86rem; }
.bd-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bd-name > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bd-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.bd-ico svg { width: 13px; height: 13px; stroke-width: 2; }
.bd-bar { height: 6px; border-radius: 9px; background: var(--bg); overflow: hidden; }
.bd-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bd-amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 420px) { .bd-row { gap: 10px; } }

/* ---------- Inhoud ---------- */
.content { padding: 22px 16px calc(40px + env(safe-area-inset-bottom)); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: .9rem; }

.upcoming { margin-bottom: 26px; }
.up-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.up-list::-webkit-scrollbar { display: none; }
.up { flex: 0 0 auto; width: 230px; scroll-snap-align: start; display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); cursor: pointer; }
.up:hover { border-color: var(--accent-2); }
.up-date { width: 46px; height: 50px; border-radius: 12px; display: grid; place-content: center; text-align: center; line-height: 1.05; flex-shrink: 0; }
.up-date b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.up-date small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.up-date.warn { background: var(--warn-bg); color: var(--warn); }
.up-date.bad { background: var(--bad-bg); color: var(--bad); }
.up-date.new { background: var(--new-bg); color: var(--new); }
.up-text { min-width: 0; }
.up-text b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-text span { font-size: .8rem; color: var(--muted); }

.search-wrap { position: relative; margin-bottom: 22px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-wrap input { padding-left: 42px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-sm); }

.cat { margin-bottom: 26px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; }
.cat-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.cat-ico svg { width: 17px; height: 17px; stroke-width: 2; }
.cat-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; flex: 1; }
.cat-sum { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; padding: 14px 16px; cursor: pointer; transition: background .12s; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; border-top: 1px solid var(--line); }
.row:hover { background: var(--hover); }
.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: .9rem; letter-spacing: .03em; flex-shrink: 0; color: var(--accent); background: var(--accent-soft); overflow: hidden; }
.avatar.logo { background: #fff; border: 1px solid var(--line); }
.avatar.logo img { width: 62%; height: 62%; object-fit: contain; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub .grp { color: var(--accent); }
.row-right { text-align: right; white-space: nowrap; }
.row-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-per { color: var(--muted); font-size: .78rem; }
.chev { color: var(--line); width: 16px; height: 16px; margin-left: -4px; }
.row:hover .chev { color: var(--muted); }
.flags { display: flex; gap: 5px; flex-basis: 100%; padding-left: 56px; margin-top: 8px; min-width: 0; }
.flag { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flag:last-child:not(:first-child) { flex-shrink: 0; }
.flag.warn { background: var(--warn-bg); color: var(--warn); }
.flag.bad { background: var(--bad-bg); color: var(--bad); }
.flag.new { background: var(--new-bg); color: var(--new); }

.empty { text-align: center; padding: 48px 20px; }
.empty .brand-mark { margin-bottom: 14px; }
.empty h2 { margin-bottom: 6px; }

.foot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 36px; color: var(--line); }

/* ---------- Detailvenster (sheet) ---------- */
dialog {
  border: 0; border-radius: 24px; background: var(--card); color: var(--text); padding: 0;
  width: min(640px, calc(100vw - 24px)); max-height: 92vh; box-shadow: 0 30px 80px -20px rgba(28, 14, 6, .5);
}
dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
dialog::backdrop { background: rgba(28, 16, 8, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog form { padding: 22px; }
@media (max-width: 600px) {
  dialog { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog[open] { animation: sheet .28s cubic-bezier(.2, .8, .2, 1); }
  dialog form { padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
  dialog form::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
}
@keyframes sheet { from { transform: translateY(100%); } }
.dlg-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.dlg-head .avatar { width: 52px; height: 52px; border-radius: 15px; font-size: 1.1rem; }
.dlg-head h2 { line-height: 1.15; }
.dlg-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid label, .upload-row label:not(.upload) { display: grid; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.att-box { margin-bottom: 20px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 0 0 12px; }
.timeline li { display: grid; gap: 8px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.timeline li.current { border-color: var(--accent-2); box-shadow: inset 3px 0 0 var(--accent-2); }
.timeline li.old { opacity: .7; }
.att-main { display: flex; gap: 8px; align-items: center; min-width: 0; }
.att-main .pill { flex-shrink: 0; }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.att-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.att-meta label { display: flex; gap: 6px; align-items: center; white-space: nowrap; margin-right: auto; }
.att-meta input { width: auto; padding: 4px 8px; font-size: .82rem; }
.att-meta button { padding: 4px 12px; font-size: .82rem; }
.pill { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill.current { background: var(--ok-bg); color: var(--ok); }
.pill.future { background: var(--new-bg); color: var(--new); }
.pill.old { background: var(--line); color: var(--muted); }
.upload-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upload { display: inline-block; }
.upload.ghost { background: var(--card); color: var(--accent); border-color: var(--line); font-weight: 600; }
.upload.ghost:hover { background: var(--accent-soft); color: var(--accent); }
.next-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.next-card { border: 1px dashed var(--new); background: var(--new-bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 4px; }
.next-actions { display: flex; gap: 8px; margin-top: 6px; }
.next-actions button { padding: 5px 12px; font-size: .82rem; }
.next-form { border: 1px solid var(--accent-2); border-radius: 16px; padding: 14px; margin: 14px 0 0; background: var(--card); }
.next-form legend { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: 0 6px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 18px; }
.spacer { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--band); color: var(--band-ink); padding: 11px 18px; border-radius: 999px; max-width: calc(100vw - 32px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4); font-size: .92rem;
}

/* ---------- Selectie, lay-out ---------- */
.row.sel { background: var(--accent-soft); }
.layout { max-width: 1200px; margin: 0 auto; }
.pane { display: none; }
@media (min-width: 1000px) {
  .band-inner { max-width: 1200px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; padding: 0 24px; align-items: start; }
  .layout .content { padding: 26px 0 40px; max-width: none; margin: 0; }
  .pane { display: block; position: sticky; margin-top: 26px; overflow: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
  .pane .detail { padding: 22px; }
  .pane .d-close { display: none; }
  .band { padding-left: 24px; padding-right: 24px; }
  .pane { top: calc(var(--hdr, 120px) + 16px); max-height: calc(100vh - var(--hdr, 120px) - 32px); }
}
.pane-empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 80px 30px; color: var(--muted); }

/* ---------- Detail ---------- */
.sheet { border: 0; padding: 0; background: var(--card); color: var(--text); width: 100vw; max-width: 100vw; height: 94vh; max-height: 94vh;
  margin: auto 0 0; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -20px rgba(28, 14, 6, .4); }
.sheet[open] { animation: sheet .3s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(28, 16, 8, .45); }
.sheet .detail { padding: 10px 18px calc(28px + env(safe-area-inset-bottom)); }
.sheet .detail::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
.d-head { display: flex; gap: 14px; align-items: center; }
.d-head .avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 1.1rem; }
.d-title { flex: 1; min-width: 0; }
.d-title h2 { font-size: 1.45rem; line-height: 1.15; }
.d-title p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }
.d-close { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: var(--bg); border: 0; color: var(--muted); align-self: flex-start; }
.d-close svg { width: 18px; height: 18px; }
.d-amount { margin: 22px 0 18px; }
.d-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.d-money { font-family: var(--serif); font-size: 2.6rem; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-money .cents { font-size: .5em; color: var(--muted); vertical-align: .75em; margin-left: 2px; }
.acts { display: flex; gap: 8px; margin-bottom: 18px; }
.acts > * { flex: 1 1 0; min-width: 0; }
.act { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .76rem; font-weight: 600; text-align: center; }
.act:hover { border-color: var(--accent-2); background: var(--accent-soft); }
.act span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--accent); }
.act svg { width: 19px; height: 19px; }
.d-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; background: var(--card); }
.term-status { font-size: .95rem; }
.term-status .bad { color: var(--bad); }
.term-bar { position: relative; height: 6px; border-radius: 9px; background: var(--bg); margin: 14px 0 6px; }
.term-fill { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.term-mark { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--warn); border-radius: 2px; transform: translateX(-1px); }
.term-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.term-note { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.term-note.warn { color: var(--warn); background: var(--warn-bg); padding: 6px 10px; border-radius: 10px; }
.detail .att-box { margin: 0 0 14px; border-radius: 18px; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.kv div:first-child { border-top: 0; padding-top: 2px; }
.kv dt { color: var(--muted); }
.kv dt { flex-shrink: 0; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.kv .copy { flex-shrink: 0; }
.copy { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; background: var(--bg); color: var(--muted); border-radius: 8px; }
.copy svg { width: 15px; height: 15px; }
.notes { margin: 0; white-space: pre-wrap; font-size: .92rem; }
.d-foot { text-align: center; margin: 18px 0 0; }
