/* 経費精算デモ。藍（インク）と紙、判子の朱だけ。装飾は増やさない。 */
:root {
  --bg: #eef0f3;
  --surface: #ffffff;
  --ink: #1b2230;
  --ink-2: #3f4858;
  --muted: #6c7484;
  --line: #d8dce4;
  --line-soft: #e9ecf1;
  --indigo: #27467a;        /* 藍：ボタン・リンク・AI の欄 */
  --indigo-ink: #1c355f;
  --indigo-soft: #e4ebf7;
  --indigo-faint: #f2f5fb;
  --shu: #c8381f;           /* 朱：判子だけに使う */
  --shu-soft: #fbe9e5;
  --ok: #1f7a4d; --ok-soft: #e3f3ea;
  --warn: #9a5a12; --warn-soft: #fbf1e2;
  --err: #b42318; --err-soft: #fbe9e7;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; font-feature-settings: "palt"; }
a { color: var(--indigo-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--indigo) 40%, transparent); }
a:hover { text-decoration-color: var(--indigo); }
h1, h2, h3 { margin: 0; line-height: 1.35; }
h2 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.neg { color: var(--err); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.pc { display: inline; }
.sp { display: none; }

/* ---- 上の帯 ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 88%, white); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; }
.seal-mini { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--shu); border-radius: 50%; color: var(--shu); font-family: var(--mincho); font-weight: 800; font-size: 14px; line-height: 1; }
.top-right { display: flex; align-items: center; gap: 12px; }
.ai-state { font-size: 12px; color: var(--muted); padding-left: 14px; position: relative; }
.ai-state::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--line); }
.ai-state.on::before { background: var(--ok); }
.ai-state.off::before { background: var(--warn); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

/* ---- 見出し ---- */
.hero { padding: 44px 0 28px; max-width: 760px; }
.hero h1 { font-family: var(--mincho); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.4; letter-spacing: .02em; color: var(--ink); }
.lead { margin-top: 16px; color: var(--ink-2); max-width: 44em; }
.flow { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 22px 0 0; padding: 0; }
.flow li { position: relative; display: flex; flex-direction: column; padding: 8px 22px 8px 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; line-height: 1.45; min-width: 150px; flex: 1 1 150px; }
.flow li + li { margin-left: -1px; }
.flow li b { font-weight: 700; }
.flow li span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.flow li::before { content: "人"; position: absolute; right: 6px; top: 6px; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 3px; background: var(--line-soft); color: var(--ink-2); }
.flow li.ai::before { content: "AI"; background: var(--indigo-soft); color: var(--indigo-ink); }
.flow li.rule::before { content: "規則"; background: var(--indigo-soft); color: var(--indigo-ink); }
.flow li.ai, .flow li.rule { background: var(--indigo-faint); }

/* ---- 作業面：左に紙、右に内容 ---- */
.work { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; scroll-margin-top: 64px; }
.paper { position: relative; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(27, 34, 48, .35); padding: 18px 18px 22px; }
.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(45deg, transparent 33.33%, var(--surface) 33.33%, var(--surface) 66.67%, transparent 66.67%), linear-gradient(-45deg, transparent 33.33%, var(--surface) 33.33%, var(--surface) 66.67%, transparent 66.67%);
  background-size: 16px 24px; background-position: 0 -12px; filter: drop-shadow(0 1px 0 var(--line)); }
.paper.over { outline: 2px dashed var(--indigo); outline-offset: -8px; }
.paper .view { position: relative; min-height: 220px; }
.rimg { display: block; width: 100%; }
.rimg svg { display: block; width: 100%; height: auto; }
.rpdf { width: 100%; height: 440px; border: 0; }
.no-receipt { display: grid; place-items: center; gap: 4px; min-height: 220px; text-align: center; border: 1px dashed var(--line); }
.pfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.pfoot .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.paper.empty .drop { display: grid; gap: 10px; place-items: center; text-align: center; padding: 34px 10px 28px; border: 1.5px dashed var(--line); }
.drop-title { font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.samples { margin-top: 16px; display: grid; gap: 6px; }
.sample { display: grid; gap: 1px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); }
.sample:hover { border-color: var(--indigo); background: var(--indigo-faint); }
.sample b { font-weight: 700; }
.sample span { color: var(--muted); font-size: 12px; }

/* 読み取り中の走査線 */
.scan { position: relative; overflow: hidden; }
.scan .beam { position: absolute; left: 0; right: 0; top: 0; height: 36%; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--indigo) 18%, transparent) 70%, var(--indigo)); animation: beam 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes beam { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }

/* 判子（大）：承認したときに紙へ押す */
.seal { position: absolute; right: 8%; bottom: 10%; width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--shu); color: var(--shu); display: grid; place-items: center; align-content: center; gap: 0; transform: rotate(-9deg); mix-blend-mode: multiply; opacity: .92; background: radial-gradient(circle at 40% 35%, rgba(200, 56, 31, .06), transparent 70%); font-family: var(--mincho); }
.seal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--shu); opacity: .55; }
.seal .k { font-size: 40px; font-weight: 800; line-height: 1; }
.seal .n { font-size: 12px; font-weight: 600; letter-spacing: .2em; margin-top: 2px; }
.seal .d { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .8; }
.seal.just { animation: stamp .42s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { 0% { transform: rotate(-9deg) scale(1.9); opacity: 0; } 55% { transform: rotate(-9deg) scale(.96); opacity: .95; } 100% { transform: rotate(-9deg) scale(1); opacity: .92; } }

/* 判子（小）：状態 */
.hanko { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.6px solid currentColor; border-radius: 4px; font-family: var(--mincho); font-weight: 800; font-size: 16px; line-height: 1; color: var(--muted); transform: rotate(-4deg); }
.hanko.sm { width: 24px; height: 24px; font-size: 13px; }
.hanko.draft { color: var(--muted); border-style: dashed; }
.hanko.submitted { color: var(--ink-2); }
.hanko.approved, .hanko.paid { color: var(--shu); }
.hanko.paid { background: var(--shu-soft); }
.hanko.returned { color: var(--shu); border-style: double; border-width: 3px; }

/* ---- 右の内容 ---- */
.sheet { display: grid; gap: 14px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.card.tight { padding: 10px 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ghost-sheet .ghost-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.ghost-sheet .ghost-list li { padding: 8px 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; border-radius: 4px; }
.ghost-sheet .ghost-list li.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { background: var(--indigo-faint); border-color: var(--indigo-soft); } }

.status { display: flex; align-items: center; gap: 14px; padding: 4px 2px; }
.st-text { display: grid; line-height: 1.4; }
.st-text b { font-size: 15px; }
.big-yen { margin-left: auto; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.notice { padding: 10px 14px; border-radius: var(--r); font-size: 14px; }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.ai-box { display: inline-flex; align-items: center; gap: 8px; }
.conf { display: inline-block; width: 90px; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.conf i { display: block; height: 100%; background: var(--indigo); }
.ai-note { margin: -2px 0 10px; padding: 8px 12px; background: var(--indigo-faint); border-left: 3px solid var(--indigo); font-size: 13px; color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; }
.f { display: grid; gap: 4px; min-width: 0; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.fl { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.fl .hint { font-size: 11px; color: var(--muted); opacity: .8; }
.f input, .f select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); min-height: 38px; }
.f input:read-only, .f select:disabled { background: var(--line-soft); color: var(--ink-2); }
.f input:focus, .f select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.f.ai input, .f.ai select { background: var(--indigo-faint); border-color: color-mix(in srgb, var(--indigo) 35%, var(--line)); }
.f.ai .fl::after { content: "AI"; font-size: 10px; padding: 1px 5px; border-radius: 3px; background: var(--indigo-soft); color: var(--indigo-ink); font-weight: 700; }
.f input.num { text-align: right; font-variant-numeric: tabular-nums; }

.actions-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.wh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.warns li { position: relative; padding: 4px 8px 4px 20px; border-radius: 4px; }
.warns li::before { content: ""; position: absolute; left: 7px; top: 11px; width: 7px; height: 7px; border-radius: 50%; }
.warns li.error { background: var(--err-soft); color: var(--err); } .warns li.error::before { background: var(--err); }
.warns li.warn { background: var(--warn-soft); color: var(--warn); } .warns li.warn::before { background: var(--warn); }
.warns li.info { background: var(--line-soft); color: var(--ink-2); } .warns li.info::before { background: var(--muted); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hint-act { font-size: 13px; color: var(--muted); }

.kv { display: grid; gap: 6px; font-size: 14px; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.kv .k { color: var(--muted); font-size: 13px; }
.cands { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cand { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); flex-wrap: wrap; }
.cand-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; flex-wrap: wrap; }
.cand-text { display: grid; line-height: 1.45; min-width: 0; }
.score { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; background: conic-gradient(var(--indigo) var(--p), var(--line-soft) 0); }
.score i { position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score b { position: relative; z-index: 1; font-size: 12px; }
.act { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; display: grid; gap: 2px; }
.act li { display: flex; gap: 10px; }
.act .t { color: var(--muted); font-variant-numeric: tabular-nums; width: 40px; flex: none; }
.act .a { color: var(--ink-2); width: 70px; flex: none; }
.raw { margin: 8px 0 0; font-size: 12px; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }
details summary { cursor: pointer; font-weight: 700; font-size: 14px; }

/* ---- ボタン・タグ ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; min-height: 38px; border: 1px solid var(--indigo); border-radius: var(--r); background: var(--surface); color: var(--indigo-ink); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--indigo-faint); }
.btn.primary { background: var(--indigo); color: #fff; }
.btn.primary:hover { background: var(--indigo-ink); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); font-weight: 400; }
.btn.ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn.ghost.danger:hover { border-color: var(--err); color: var(--err); }
.btn.sm { padding: 5px 12px; min-height: 30px; font-size: 13px; }
.btn.lg { padding: 11px 24px; font-size: 16px; }
.btn.link { border: 0; background: none; padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.tag.ai { background: var(--indigo-soft); color: var(--indigo-ink); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

/* ---- 一覧・明細 ---- */
.ledger, .cards { margin-top: 40px; }
.about { margin-top: 36px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head p { font-size: 13px; max-width: 60em; }
.role { display: flex; align-items: center; gap: 10px; margin-left: 8px; margin-right: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { display: grid; text-align: left; padding: 4px 12px; border: 0; background: none; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.seg button small { font-weight: 400; font-size: 11px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--indigo); color: #fff; }
.seg button.on small { color: rgba(255, 255, 255, .8); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.stat { display: grid; padding: 10px 16px; background: var(--surface); }
.stat .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .l { font-size: 12px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-top: 0; font-size: 14px; }
.ledger .tbl { border-radius: 0 0 var(--r) var(--r); }
.cards .tbl { border-top: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.ledger .tbl tbody tr { cursor: pointer; }
.ledger .tbl tbody tr:hover td { background: var(--indigo-faint); }
.tbl tbody tr.on td { background: var(--indigo-faint); box-shadow: inset 3px 0 0 var(--indigo); }
.tbl tr.detail td { background: var(--indigo-faint); padding: 8px 16px 14px; }
.wmark { display: inline-flex; gap: 3px; }
.wmark i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wmark i.error { background: var(--err); } .wmark i.warn { background: var(--warn); } .wmark i.info { background: var(--muted); opacity: .6; }

.about ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 14px; }
.about li + li { margin-top: 4px; }
.foot { border-top: 1px solid var(--line); padding: 24px 20px 40px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---- ダイアログ・トースト ---- */
dialog { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px -20px rgba(27, 34, 48, .45); }
dialog::backdrop { background: rgba(27, 34, 48, .35); }
dialog h3 { font-size: 17px; }
dialog p { margin: 6px 0 12px; font-size: 14px; }
dialog input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 14px; }
dialog input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.shake { animation: shake .3s; border-color: var(--err) !important; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 20; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; transition: .2s; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--err); }
.toast.warn { background: var(--warn); }

@media (prefers-reduced-motion: reduce) { .seal.just, .scan .beam, .ghost-list li.pulse, .shake { animation: none; } .toast { transition: none; } }

/* ---- スマホ ---- */
@media (max-width: 1000px) {
  .flow li { flex-basis: 30%; }
}
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; gap: 28px; }
  .paper { margin-bottom: 8px; }
  .pc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  main { padding: 0 16px 40px; }
  .top { padding: 8px 16px; }
  .ai-state { display: none; }
  .top { flex-wrap: wrap; }
  .role { order: 3; width: 100%; margin: 0; }
  .role .muted { display: none; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .hero { padding: 28px 0 20px; }
  .hero h1 { font-size: 25px; }
  .sp { display: inline; }
  .flow li { flex: 1 1 46%; min-width: 0; }
  .card { padding: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c2, .c3, .c4, .c6 { grid-column: span 2; }
  .actions-row { grid-template-columns: 1fr; }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1; }
  .big-yen { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kv > div { grid-template-columns: 1fr; gap: 0; }
  .ghost-sheet .ghost-list { grid-template-columns: 1fr; }
  .sec-head { align-items: flex-start; }
  /* 表はカードに */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; }
  .tbl td { padding: 0; border: 0; }
  .tbl tbody tr.on td { box-shadow: none; }
  .tbl tbody tr.on { background: var(--indigo-faint); box-shadow: inset 3px 0 0 var(--indigo); }
  .ledger .tbl td:nth-child(1) { grid-row: 1 / span 2; }
  .ledger .tbl td:nth-child(2) { font-size: 12px; color: var(--muted); }
  .ledger .tbl td:nth-child(3) { font-size: 12px; color: var(--muted); grid-column: 2; }
  .ledger .tbl td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .ledger .tbl td:nth-child(5) { grid-column: 2; font-size: 12px; color: var(--muted); }
  .ledger .tbl td:nth-child(6) { grid-column: 3; grid-row: 1; font-weight: 700; }
  .ledger .tbl td:nth-child(7), .ledger .tbl td:nth-child(8) { grid-column: 3; justify-self: end; }
  .ledger .tbl td:nth-child(2) { grid-column: 2; grid-row: 2; }
  .cards .tbl tr { grid-template-columns: 1fr auto; }
  .cards .tbl td:nth-child(1) { font-size: 12px; color: var(--muted); grid-column: 1; }
  .cards .tbl td:nth-child(2) { grid-column: 1; }
  .cards .tbl td:nth-child(3) { grid-column: 2; grid-row: 1; font-weight: 700; }
  .cards .tbl td:nth-child(4) { grid-column: 1; }
  .cards .tbl td:nth-child(5) { grid-column: 2; grid-row: 2; justify-self: end; }
  .cards .tbl td:nth-child(6) { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
  .cards .tbl tr.detail { display: block; }
  .cand { flex-direction: column; align-items: stretch; }
  .cand .btn { width: 100%; }
}
