:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --brand: #0071e3;
  --brand-soft: #e8f2ff;
  --blue: #0071e3;
  --blue-soft: #e8f2ff;
  --warn: #bf4800;
  --warn-soft: #fff0e8;
  --danger: #ff3b30;
  --danger-soft: #ffebe9;
  --shadow: 0 4px 20px rgba(0, 0, 0, .055);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #3a3a3c;
  --brand: #0a84ff;
  --brand-soft: #102a43;
  --blue: #0a84ff;
  --blue-soft: #102a43;
  --warn: #ff9f0a;
  --warn-soft: #3b2a0b;
  --danger: #ff453a;
  --danger-soft: #401b18;
  --shadow: 0 8px 28px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 42%, transparent); outline-offset: 2px; }

.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: var(--surface); font-weight: 800; }
.muted { color: var(--muted); }
.card { border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.button { min-height: 38px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 650; }
.button:hover { border-color: var(--brand); }
.button-primary { border-color: var(--brand); border-radius: 999px; background: var(--brand); color: #fff; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; background: var(--surface); cursor: pointer; }
.field { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; background: var(--surface); color: var(--ink); }

.eyebrow { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.section-title { margin: 5px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.section-copy { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.state, .evidence { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.state-new, .state-add, .evidence-regulatory { color: var(--brand); background: var(--brand-soft); }
.state-reduce, .state-exit { color: var(--danger); background: var(--danger-soft); }
.evidence-self_reported { color: var(--blue); background: var(--blue-soft); }
.evidence-planned { color: var(--warn); background: var(--warn-soft); }

.watch-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--surface); cursor: pointer; font-size: 12px; white-space: nowrap; }
.watch-toggle[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.watch-toggle .star { font-size: 16px; line-height: 1; }

.operation-list { display: grid; gap: 10px; }
.operation { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.operation:last-child { border-bottom: 0; }
.operation-date { color: var(--muted); font-size: 11px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.operation-asset { color: var(--brand); font-size: 11px; font-weight: 750; }
.operation-title { margin: 3px 0 5px; font-size: 14px; font-weight: 750; }
.operation-detail { color: var(--muted); font-size: 12px; }
.operation-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.operation-source { color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
.operation-metric { font-size: 12px; font-weight: 750; white-space: nowrap; }

.empty-state { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 5px; }

.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.source-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-decoration: none; }
.source-item:hover { border-color: var(--brand); }
.source-label { font-size: 13px; font-weight: 700; }
.source-meta { margin-top: 2px; color: var(--muted); font-size: 10px; }

@media (max-width: 720px) {
  .source-list { grid-template-columns: 1fr; }
  .operation { grid-template-columns: 1fr; gap: 7px; padding: 15px; }
  .operation-metric { grid-row: 2; }
}
