:root {
  color-scheme: light;
  --ink: #000;
  --muted: #000;
  --line: #d9d9d9;
  --paper: #fff;
  --warm: #fff;
  --accent: #3361b1;
  --accent-dark: #274e8c;
  --accent-tint: #e8eef8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
}
.shell { width: min(760px, 100%); margin: 0 auto; padding: 24px 20px 40px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 2px 0 34px; font-size: 14px; font-weight: 650; }
.mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--accent); color: white; font: 18px Georgia, serif; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.12; }
h2 { margin-top: 18px; font-size: 28px; }
h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: .02em; }
.panel, .transaction-card { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 4px 16px #332d1b0a; }
.panel { max-width: 510px; margin: 0 auto; padding: clamp(22px, 6vw, 38px); }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.intro { margin: 12px 0 24px; color: var(--muted); }
label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 650; }
input { width: 100%; min-height: 48px; border: 1px solid #c9c6bc; border-radius: 10px; padding: 10px 12px; color: var(--ink); background: white; font: inherit; }
input:focus { outline: 3px solid #3361b14d; border-color: var(--accent); }
button { min-height: 48px; width: 100%; margin-top: 14px; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--accent); color: white; font: 650 15px "Segoe UI", Arial, sans-serif; cursor: pointer; }
button:hover { background: var(--accent-dark); }
.message { min-height: 24px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.quiet-button { width: auto; min-height: 42px; margin: 0; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 13px; }
.quiet-button:hover { background: #f2f2f2; }
.transactions { display: grid; gap: 16px; }
.transaction-card { padding: clamp(20px, 5vw, 30px); }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.type-pill { border-radius: 999px; padding: 4px 10px; background: var(--accent-tint); color: var(--ink); font-size: 12px; font-weight: 700; }
.updated { color: var(--muted); font-size: 12px; }
.facts { margin: 6px 0 0; font-size: 14px; }
.status { margin: 8px 0 0; font-weight: 700; }
.progress { margin: 5px 0 0; color: var(--muted); }
.detail-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.date-list, .timeline { margin: 0; padding: 0; list-style: none; }
.date-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.date-list time, .timeline time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(78px, 100px) 1fr; gap: 4px 12px; padding: 0 0 20px; }
.timeline-item::before { position: absolute; top: 24px; bottom: 0; left: 4px; width: 1px; background: var(--line); content: ""; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item time { grid-column: 1; grid-row: 1 / span 2; padding-left: 18px; }
.timeline-item time::before { position: absolute; top: 6px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); content: ""; }
.timeline-item strong { grid-column: 2; font-size: 14px; }
.timeline-item p { grid-column: 2; margin: 0; color: var(--muted); font-size: 14px; }
.next-date { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.next-date time { font-weight: 700; white-space: nowrap; }
details.more { margin-top: 10px; }
details.more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 20px; line-height: 1; }
details.more[open] > summary::after { content: "\2212"; }
details.more > summary:focus-visible { outline: 3px solid #3361b14d; outline-offset: 2px; border-radius: 6px; }
.more-body { padding-top: 6px; }
footer { margin: 28px auto 0; color: var(--muted); text-align: center; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .shell { padding: 18px 14px 30px; }
  .brand { margin-bottom: 24px; }
  .welcome { align-items: flex-end; }
  .quiet-button { padding: 8px 11px; }
  .date-list li { align-items: flex-start; }
  .timeline-item { grid-template-columns: 82px 1fr; gap: 4px 8px; }
}
