:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #69736f;
  --paper: #f4f2eb;
  --panel: #fffdf7;
  --line: #d8d5ca;
  --green: #0f766e;
  --green-soft: #dff2ed;
  --gold: #b7791f;
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.hero { display: flex; justify-content: space-between; gap: 32px; padding: 48px max(24px, calc((100vw - 1240px) / 2)); background: #152823; color: #fffdf7; }
.eyebrow { margin: 0 0 8px; color: #73d2bd; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 700px; margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(32px, 5vw, 64px); line-height: 1.08; }
.subtitle { margin: 16px 0 0; color: #bed0ca; }
.sync { display: flex; align-items: center; align-self: flex-end; gap: 8px; color: #bed0ca; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee0b7; box-shadow: 0 0 0 5px #5ee0b722; }
main { width: min(1240px, calc(100% - 32px)); margin: -20px auto 56px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary-card, .panel { border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 35px #283d3410; }
.summary-card { padding: 22px; border-radius: 16px; }
.summary-card p { margin: 0; color: var(--muted); font-size: 13px; }
.summary-card strong { display: block; margin-top: 10px; font-family: Georgia, serif; font-size: 32px; }
.summary-card span { display: block; margin-top: 8px; color: var(--green); font-size: 12px; }
.panel { margin-top: 18px; padding: 24px; border-radius: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: 24px; }
select, button { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
select { padding: 9px 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 10px; border-top: 1px solid #e7e4da; text-align: right; }
th:first-child, td:first-child { width: 52%; text-align: left; }
th { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
a { color: var(--ink); text-decoration-color: #8abbb0; text-underline-offset: 3px; }
.meter { display: block; width: 100%; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e8ebe7; }
.meter i { display: block; height: 100%; background: var(--green); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.buyer { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #e7e4da; }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }
.buyer-copy p, .buyer-copy small { display: block; margin: 4px 0 0; color: var(--muted); }
.buyer-copy small { line-height: 1.5; }
.profile-note { margin-top: 8px !important; color: var(--ink) !important; }
.buyer-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tag, .pill { padding: 5px 8px; border-radius: 99px; background: #eceae2; color: #605f58; font-size: 11px; }
.tag.accent, .pill { background: #fff0ce; color: #8a5a0a; }
.guardrail, .empty { color: var(--muted); font-size: 13px; line-height: 1.65; }
.rankings .panel { margin-top: 18px; }
.ranking-list { margin: 18px 0 0; padding-left: 24px; }
.ranking-list li { padding: 11px 0; border-top: 1px solid #e7e4da; }
.ranking-list li::marker { color: var(--gold); font-weight: 800; }
.ranking-list span, .ranking-list strong { display: block; }
.ranking-list strong { margin-top: 4px; color: var(--green); font-size: 13px; }
.message-card { padding: 15px 0; border-top: 1px solid #e7e4da; }
.message-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.message-meta span { color: var(--muted); }
.message-card p { line-height: 1.7; }
.message-actions { display: flex; justify-content: flex-end; gap: 8px; }
button { padding: 8px 11px; background: var(--green); color: white; cursor: pointer; }
button.ghost { background: transparent; color: var(--muted); }
@media (max-width: 800px) {
  .hero { display: block; padding-bottom: 56px; }
  .sync { margin-top: 24px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .summary-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .buyer { grid-template-columns: 38px 1fr; }
  .buyer-tags { grid-column: 2; justify-content: flex-start; }
}
