:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5; font-size: 16px; color: #152d32; background: #f4f5ef;
  --ink: #152d32; --quiet: #526568; --dark: #123f3b; --border: #ccd6ce;
  --paper: #fffefa; --accent: #156657;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a35d0e; outline-offset: 4px; }
.skip { position: fixed; top: -8rem; left: 1rem; z-index: 2; padding: .7rem; background: white; }
.skip:focus { top: .5rem; }
.top { background: var(--paper); border-bottom: 1px solid var(--border); }
.top-inner, main { width: min(62rem, calc(100% - 3rem)); margin: 0 auto; }
.top-inner { min-height: 4.35rem; display: flex; gap: 3rem; align-items: center; }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); font-size: 1.35rem; font-weight: 720; letter-spacing: -.055em; text-decoration: none; }
.mark { width: 1.9rem; height: 1.9rem; border-radius: .56rem; background: var(--dark); color: white; display: inline-grid; place-content: center; font: italic bold 1.53rem/1 Georgia, serif; padding-right: .15rem; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a, .signout button { font-size: .93rem; color: var(--quiet); text-decoration: none; padding: .6rem 0; }
.top nav a[aria-current] { color: var(--dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .55rem; text-decoration-thickness: 2px; }
.signout { margin-left: auto; }
.signout button { border: 0; background: transparent; }
.signout button:hover, .top nav a:hover { color: var(--accent); }
main { padding: 4.6rem 0 5rem; }
h1, h2, p, dl { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.13; }
h1 { margin: .4rem 0 0; font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 640; }
h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.eyebrow { display: block; color: var(--accent); font-size: .76rem; font-weight: 740; letter-spacing: .087em; text-transform: uppercase; margin-bottom: .6rem; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; margin-bottom: 2.3rem; }
.cash-box { border-left: 2px solid #a6beb0; padding-left: 1.1rem; min-width: 11rem; }
.cash-box span, .meta, .footnote, .metrics dt { color: var(--quiet); }
.cash-box span { display: block; font-size: .83rem; }
.cash-box strong { display: block; font-size: 1.55rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.filters a { display: inline-flex; gap: .46rem; align-items: baseline; border: 1px solid transparent; border-radius: 2rem; padding: .38rem .75rem; font-size: .87rem; font-weight: 600; color: var(--quiet); text-decoration: none; }
.filters a:hover { border-color: var(--border); }
.filters a[aria-current] { color: white; background: var(--dark); }
.filters span { opacity: .83; font-size: .77rem; font-variant-numeric: tabular-nums; }
.case-list, .timeline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 1.1rem; overflow: hidden; background: var(--paper); }
.case-list li + li, .timeline li + li { border-top: 1px solid var(--border); }
.case-row { padding: 1.45rem 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; }
.case-row:hover { background: #f8faf4; }
.case-row:focus-visible { outline-offset: -4px; }
.symbol { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: .8rem; font-size: .73rem; font-weight: 780; letter-spacing: .055em; }
.real { color: #205e6e; background: #deeff0; }
.synthetic { color: #775428; background: #f5ead5; }
.case-copy h2 { margin: .18rem 0 .18rem; font-size: 1.22rem; }
.case-copy p, .case-copy .meta { color: var(--quiet); }
.case-copy p { font-size: .9rem; margin: 0; }
.meta { font-size: .77rem; font-weight: 540; }
.badge { display: inline-flex; align-items: center; justify-self: start; gap: .43rem; font-size: .76rem; font-weight: 700; line-height: 1; border-radius: 2rem; white-space: nowrap; padding: .56rem .7rem; color: #4c5c58; background: #e9eee7; }
.badge i { width: .46rem; height: .46rem; border-radius: 50%; background: currentColor; }
.badge.watching { color: #315976; background: #e4eef4; }
.badge.ready, .badge.filled { color: #1d5f43; background: #e1f1e3; }
.badge.expired { color: #744e22; background: #f6eddb; }
.chevron { font-size: 1.55rem; color: #627a72; }
.footnote { margin: 1rem .1rem; font-size: .81rem; }
.back { display: inline-block; font-size: .9rem; font-weight: 650; text-decoration: none; margin-bottom: 2.25rem; }
.detail { max-width: 49rem; }
.title-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.title-line h1 { margin: 0; }
.intro { color: var(--quiet); margin: .85rem 0 1.8rem; font-size: 1.04rem; }
.panel, .empty, .login-box { background: var(--paper); border: 1px solid var(--border); border-radius: 1rem; padding: 1.45rem 1.6rem; margin-bottom: 1rem; }
.panel p, .evidence p, .empty p, .timeline p { color: var(--quiet); }
.panel p:last-child, .evidence p:last-child, .empty p:last-child { margin-bottom: 0; }
.reasons { padding-left: 1.15rem; margin: .65rem 0 1rem; }
.reasons li + li { margin-top: .5rem; }
.reasons li::marker { color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.1rem, 1fr)); gap: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; margin: 1.25rem 0 .85rem; }
.metrics dt { font-size: .8rem; }
.metrics dd { font-size: 1.18rem; margin: .22rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel > .metrics:last-child { margin-bottom: 0; }
.evidence { margin: .75rem 0; border: 1px solid var(--border); border-radius: .85rem; background: var(--paper); }
.evidence summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 640; cursor: pointer; padding: .94rem 1.3rem; list-style: none; }
.evidence summary::-webkit-details-marker { display: none; }
.evidence summary > span { color: var(--accent); font-size: 1.25rem; line-height: 1; }
.evidence[open] summary > span { transform: rotate(45deg); }
.evidence[open] summary { border-bottom: 1px solid var(--border); }
.evidence > div { padding: 1rem 1.3rem 1.25rem; }
.sources { list-style: none; padding: 0; margin: 0 0 1rem; }
.sources li + li { margin-top: 1rem; }
.sources span:not([aria-hidden]) { display: block; color: var(--quiet); font-size: .93rem; }
.sources a, .timeline a, .empty a { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.primary, .secondary { border-radius: .6rem; padding: .62rem 1rem; font-size: .92rem; font-weight: 650; border: 1px solid var(--dark); line-height: 1.45; }
.primary { color: white; background: var(--dark); }
.primary:hover { background: #1a5752; }
.secondary { color: var(--dark); background: transparent; border-color: #93aca1; }
.secondary:hover { background: #edf3ea; }
label { color: var(--ink); font-size: .9rem; font-weight: 600; }
input[type=password], select { border-radius: .5rem; border: 1px solid #95a69c; padding: .55rem .65rem; background: white; color: var(--ink); }
.evidence select { margin: 0 .75rem; }
.timeline li { padding: 1.15rem 1.4rem; display: flex; gap: 1.5rem; justify-content: space-between; align-items: start; }
.timeline p { margin: .25rem 0 0; font-size: .9rem; }
.timeline time { color: var(--quiet); font-size: .82rem; white-space: nowrap; }
.login-box { max-width: 27rem; margin: 3.5rem auto; padding: 2rem; }
.login-box h1, .message h1 { font-size: 2.15rem; }
.login-box form { display: grid; gap: .55rem; }
.login-box .primary { margin-top: .45rem; display: flex; justify-content: space-between; }
.error { color: #873823; background: #faeae3; border-radius: .45rem; padding: .55rem .75rem; }
.message { max-width: 35rem; }
.message p { margin: 1rem 0; }
@media (max-width: 670px) {
  .top-inner, main { width: min(100% - 2rem, 41rem); }
  .top-inner { min-height: 3.8rem; gap: 1.3rem; }
  .top nav { gap: .9rem; }
  main { padding: 2.6rem 0 3rem; }
  .heading { align-items: start; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
  .cash-box { display: flex; gap: .6rem; align-items: baseline; padding: 0; border: 0; }
  .cash-box strong { font-size: 1.05rem; }
  .filters { gap: .15rem; }
  .filters a { padding: .34rem .53rem; }
  .case-row { grid-template-columns: 2.55rem minmax(0,1fr) auto; gap: .32rem .7rem; padding: 1.1rem .85rem; }
  .symbol { width: 2.55rem; height: 2.55rem; font-size: .64rem; align-self: start; grid-row: span 2; }
  .case-copy { grid-column: 2 / 4; }
  .case-copy p { font-size: .86rem; }
  .case-row .badge { grid-column: 2; }
  .chevron { grid-column: 3; grid-row: 2; font-size: 1.1rem; }
  .back { margin-bottom: 1.5rem; }
  .panel, .empty, .login-box { padding: 1.15rem; }
  .title-line { gap: .65rem; align-items: baseline; }
  .timeline li { flex-direction: column; gap: .4rem; }
  .login-box { margin-top: 1rem; }
}
@media (max-width: 370px) {
  .top-inner { gap: .8rem; }
  .brand { font-size: 1.2rem; }
  .filters a { font-size: .82rem; }
  .evidence select { margin: 0 .3rem; }
}
