:root {
  color-scheme: light;
  --ink: #193039;
  --muted: #596c71;
  --line: #d8e1e1;
  --numeric: "Barlow", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #f4f7f7;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
.wrap { max-width: 1248px; width: 100%; margin: 0 auto; padding-inline: clamp(18px, 4vw, 56px); }
.masthead { color: #fafcfb; background: linear-gradient(110deg, #142f38 10%, #12343a 58%, #17464a 100%); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #ffffff2b; }
.brand, .access, .spot-head, .status { display: inline-flex; align-items: center; }
.brand { gap: 10px; font-size: 16px; font-weight: 660; letter-spacing: .055em; }
.brand-mark { width: 29px; height: 28px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 5px 4px; border: 1px solid #91c8bd; border-radius: 5px; }
.brand-mark i { width: 4px; border-radius: 1px; background: #b3e5d7; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }
.access { gap: 8px; padding: 6px 11px; border: 1px solid #ffffff48; border-radius: 6px; color: #f3faf8; text-decoration: none; font-size: 12px; }
.access:hover { background: #ffffff12; }
.access span { font: 17px/1 var(--numeric); }
.masthead-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 34px 0 48px; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(29px, 4vw, 44px); font-weight: 670; line-height: 1.3; letter-spacing: -.035em; }
.feed-meta { display: flex; flex-direction: column; align-items: end; gap: 9px; }
.status { gap: 7px; width: fit-content; padding: 3px 10px; border: 1px solid #f3cf864f; border-radius: 20px; color: #ffe2a3; background: #ffdc8b0d; font-size: 12px; font-weight: 580; line-height: 1.5; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-state="live"] { color: #a0f0cf; border-color: #8be1bb55; background: #9aefcb0e; }
.status[data-state="error"] { color: #ffc3ae; border-color: #f2a68f80; }
.timestamp { color: #c4d8d8; font-size: 12px; }
.timestamp time { margin-left: 7px; font: 13px var(--numeric); color: #f1f6f5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board { padding-bottom: 50px; }
.spot-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -18px; }
.spot { --tint: #f8f0db; --metal: #846323; padding: 19px 22px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 3px 9px #16314008; }
.silver { --tint: #eaedf6; --metal: #546581; }
.platinum { --tint: #e2f0ed; --metal: #3f7068; }
.spot-head { gap: 10px; }
.element { display: grid; place-items: center; width: 37px; height: 39px; border-radius: 6px; background: var(--tint); color: var(--metal); font: 650 21px/1 Georgia, serif; letter-spacing: -.04em; }
.spot h2 { font-size: 17px; line-height: 1.4; }
.unit { color: var(--muted); font-size: 11px; }
.buy { margin: 17px 0 13px; }
.buy span, .sell span { color: var(--muted); font-size: 12px; }
.buy strong { display: block; margin-top: 2px; font: 630 clamp(28px, 3.1vw, 40px)/1.15 var(--numeric); letter-spacing: -.035em; }
.sell { display: flex; justify-content: space-between; align-items: center; gap: 3px; padding-top: 10px; border-top: 1px solid #e4e9e8; }
.sell b { font: 620 16px/1.25 var(--numeric); }
.buy strong, .sell b, td { font-variant-numeric: tabular-nums; }
.market { margin-top: 31px; }
.market-head { display: flex; align-items: baseline; gap: 10px; }
.market-head h2 { font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
#quote-count { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0 14px; }
.filters button { cursor: pointer; padding: 6px 15px; border: 1px solid transparent; border-radius: 6px; color: #4c6268; background: transparent; font-family: inherit; font-size: 13px; font-weight: 580; line-height: 1.5; }
.filters button:hover { background: #e4ebea; }
.filters button[aria-pressed="true"] { color: #fff; background: #225951; }
:focus-visible { outline: 3px solid #4aaca3; outline-offset: 2px; }
.table-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.name-column { width: 28%; }
th, td { text-align: right; padding: 12px clamp(10px, 1.8vw, 23px); }
th:first-child, td:first-child { text-align: left; }
thead { color: #52656c; background: #eaf0f0; }
thead th { font-size: 12px; font-weight: 600; }
tbody th, tbody td { border-top: 1px solid #e6eceb; }
tbody th { font-size: 14px; font-weight: 580; }
tbody td { font: 15px/1.4 var(--numeric); font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #f5f9f8; }
td.no-quote { color: #7a8a8d; }
td.empty { padding: 30px 8px; text-align: center; color: var(--muted); font-family: inherit; font-size: 14px; line-height: 1.5; }
@media (max-width: 680px) {
  .wrap { padding-inline: 15px; }
  .topbar { padding: 13px 0; }
  .masthead-main { align-items: start; flex-direction: column; gap: 12px; padding: 23px 0 32px; }
  .feed-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
  .spot-group { gap: 7px; margin-top: -12px; }
  .spot { padding: 12px 9px 10px; border-radius: 7px; }
  .spot-head { display: flex; gap: 5px; }
  .element { width: 25px; height: 27px; flex-shrink: 0; font-size: 15px; }
  .spot h2 { font-size: 14px; }
  .unit { font-size: 11px; }
  .market-origin { display: none; }
  .buy { margin: 13px 0 9px; }
  .buy strong { font-size: clamp(21px, 5.7vw, 29px); }
  .buy span, .sell span { font-size: 10px; }
  .sell { flex-wrap: wrap; padding-top: 7px; }
  .sell b { font-size: 13px; }
  .market { margin-top: 23px; }
  .market-head h2 { font-size: 20px; }
  .filters { margin: 12px 0; gap: 3px; }
  .filters button { padding: 6px 12px; }
  .name-column { width: 25%; }
  th, td { padding: 11px 6px; }
  th:first-child { padding-left: 9px; }
  th:last-child, td:last-child { padding-right: 9px; }
  tbody th { font-size: 12px; overflow-wrap: anywhere; }
  tbody td { font-size: 13px; }
  thead th { font-size: 11px; }
}
@media (max-width: 420px) {
  .spot-head { align-items: start; }
  .spot-head .unit { display: block; }
  .element { width: 22px; height: 24px; font-size: 14px; }
  .wrap { padding-inline: 10px; }
  .timestamp { font-size: 10px; }
  .timestamp time { font-size: 11px; margin-left: 2px; }
  th, td { padding-inline: 3px; }
}
