/* TruScan 2.0 watchlist and compare (docs/design/truscan-2.0/screens/Watchlist.html and
   Watchlist-Compare.html, which also draws the empty state). Colours come from tokens.css. */

.wl { font-family: var(--font-sans); color: var(--text); }
.wl-page { max-width: 1200px; margin: 0 auto; padding: 56px 24px 0; display: flex; flex-direction: column; gap: 24px; }
.wl [hidden] { display: none !important; }
.wl svg { flex-shrink: 0; }
:where(.wl) button { font: inherit; }

.wl-eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }

/* Header */
.wl-head { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; }
.wl-head-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wl-title { margin: 0; font-size: clamp(44px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; }
#view-watch :is(.wl-title, .wl-cmp-title):focus { outline: none; }
.wl-lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.wl-stats { flex: 0 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wl-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,0.04); }
.wl-stat.is-changed { background: rgba(255,193,90,0.09); }
.wl-stat.is-baseline { background: rgba(124,203,255,0.08); }
.wl-stat-num { font-size: 32px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.wl-stat.is-changed .wl-stat-num { color: var(--amber); }
.wl-stat.is-baseline .wl-stat-num { color: var(--sky); }
.wl-stat-of { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.wl-stat-label { font-size: 13px; color: var(--text-2); }

/* Toolbar */
.wl-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); animation-delay: .08s; }
.wl-toolbar-main, .wl-toolbar-tools { display: flex; flex-wrap: wrap; align-items: center; }
.wl-toolbar-main { gap: 8px 14px; }
.wl-toolbar-tools { gap: 8px; }
.wl-toolbar-note { font-size: 14px; color: var(--muted); }
.wl-btn-p { display: flex; gap: 8px; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); border: 0; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.wl-btn-p[aria-disabled="true"] { cursor: progress; opacity: .8; }
.wl-btn-s { display: flex; gap: 8px; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.wl-btn-s:disabled { opacity: .5; cursor: not-allowed; }
.wl-btn-lg { height: 52px; font-size: 16px; }
.wl-btn-p.wl-btn-lg { padding: 0 28px; }
.wl-btn-s.wl-btn-lg { padding: 0 22px; }
.wl-sort-label { font-size: 14px; color: var(--text-2); padding-left: 8px; }
.wl-select { position: relative; display: flex; align-items: center; color: var(--text-2); }
.wl-select svg { position: absolute; right: 16px; pointer-events: none; }
.wl-sort { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 42px 0 18px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.wl-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.10); margin: 0 4px; }
.wl-import-status { margin: -8px 0 0; padding: 0 8px; font-size: 14px; color: var(--text-2); }
.wl-import-status:empty { display: none; }

/* Rows */
.wl-list { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; animation-delay: .16s; }
.wl-rows { list-style: none; margin: 0; padding: 0; }
.wl-row { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background .2s; }
.wl-row:last-child { border-bottom: 0; }
.wl-row.is-changed { background: rgba(255,193,90,0.05); }
.wl-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.wl-id { flex: 1 1 300px; min-width: 0; display: flex; gap: 16px; align-items: center; }
.wl-face { position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface-3, #262D30); background: #262D30; color: var(--text-2); font-size: 18px; font-weight: 600; }
.wl-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-id-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wl-name-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.wl-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.wl-name:hover { color: var(--accent); }
.wl-symbol { font-size: 15px; color: var(--text-3); }
.wl-tag { font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,0.06); padding: 3px 9px; border-radius: 999px; }
.wl-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.wl-market { flex: 0 1 180px; display: flex; flex-direction: column; gap: 2px; }
.wl-market-label { font-size: 12px; color: var(--muted); }
.wl-market-line { display: flex; gap: 10px; align-items: baseline; }
.wl-cap { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.wl-change { font-size: 14px; font-weight: 600; color: var(--text-2); }
.wl-change.is-up { color: var(--accent); }
.wl-change.is-down { color: var(--rose); }
.wl-actions { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.wl-act { display: flex; gap: 8px; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.wl-act.is-changed { background: rgba(255,193,90,0.10); border-color: rgba(255,193,90,0.30); color: var(--amber); font-weight: 600; }
.wl-act.is-baseline { background: rgba(124,203,255,0.10); border-color: rgba(124,203,255,0.30); color: var(--sky); font-weight: 600; }
.wl-act.is-off { background: transparent; border: 1px dashed rgba(255,255,255,0.12); color: var(--muted); cursor: not-allowed; }
.wl-act[aria-disabled="true"]:not(.is-off) { cursor: progress; }
.wl-remove { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text-2); cursor: pointer; }
.wl-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 16px; border-radius: 16px; background: rgba(10,12,13,0.55); }
.wl-row.is-fresh .wl-strip { background: rgba(124,203,255,0.06); }
.wl-strip-lead { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; color: var(--text-2); }
.wl-row.is-changed .wl-strip-lead { font-weight: 600; color: var(--amber); }
.wl-row.is-fresh .wl-strip-lead { font-weight: 600; color: var(--sky); }
.wl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.wl-strip-text { flex: 1 1 240px; font-size: 14px; color: var(--muted); }
.wl-row.is-changed .wl-strip-text { color: var(--text-soft); }
.wl-row.is-fresh .wl-strip-text { color: var(--text-2); }
.wl-strip-when { font-size: 13px; color: var(--muted); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wl-chip { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.wl-chip.is-pass { background: rgba(168,245,213,0.10); color: var(--accent); }
.wl-chip.is-attention { background: rgba(255,193,90,0.12); color: var(--amber); }
.wl-chip.is-unchecked { background: rgba(255,255,255,0.06); color: var(--text-2); }
.wl-chip.is-graduated { background: rgba(124,203,255,0.12); color: var(--sky); }
.wl-source { margin: 0; padding: 0 8px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.wl-source svg { margin-top: 2px; }

.wl .ts-btn-p { transition: background .2s, box-shadow .2s; }
.wl .ts-btn-p:hover { background: var(--mint-hover); box-shadow: 0 0 0 6px var(--mint-ring); color: var(--mint-ink); }
.wl .ts-btn-s { transition: background .2s, border-color .2s; }
.wl .ts-btn-s:not(:disabled):hover { background: var(--btn-2-hover-bg); border-color: var(--btn-2-hover-border); }
.wl .wl-act.is-changed:hover { background: rgba(255,193,90,0.16); border-color: rgba(255,193,90,0.45); }
.wl .wl-act.is-baseline:hover { background: rgba(124,203,255,0.16); border-color: rgba(124,203,255,0.45); }
.wl .ts-flink { color: var(--text-2); text-decoration: none; }
.wl .ts-flink:hover { color: var(--text); }

/* Empty state */
.wl-empty { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 72px 24px; border-radius: 32px; background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(168,245,213,0.08), rgba(168,245,213,0) 70%), var(--panel); border: 1px dashed rgba(255,255,255,0.14); }
.wl-empty-art { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.wl-empty-art > svg { position: absolute; inset: 0; }
.wl-empty-dot { fill: var(--accent); }
.wl-empty-badge { width: 104px; height: 104px; box-sizing: border-box; border-radius: 30px; background: radial-gradient(circle at 30% 25%, rgba(168,245,213,0.18), rgba(168,245,213,0) 60%), var(--raised); border: 1px solid rgba(168,245,213,0.25); color: var(--accent); display: grid; place-items: center; }
.wl-empty-title { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.wl-empty-text { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.wl-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wl-empty-note { font-size: 14px; color: var(--muted); }

/* How the watchlist works */
.wl-how { padding-top: 96px; }
.wl-how-head { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.wl-how-copy { display: flex; flex-direction: column; gap: 14px; }
.wl-how-title { margin: 0; font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; }
.wl-how-title br { display: block; }
.wl-how-link { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0; color: var(--accent); }
.wl-how-link:hover { color: var(--mint-hover); }
.wl-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.wl-how-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.wl-how-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--accent); }
.wl-how-card-title { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.wl-how-card-text { font-size: 15px; line-height: 1.5; color: var(--text-3); }

/* Compare */
.wl-cmp { display: flex; flex-direction: column; gap: 24px; margin-top: -24px; }
.wl-back { align-self: flex-start; display: flex; gap: 8px; align-items: center; height: 44px; font-size: 15px; font-weight: 500; }
.wl-cmp-head { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-end; }
.wl-cmp-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wl-cmp-title-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; min-width: 0; }
.wl-cmp-face { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #262D30; color: var(--text-2); font-size: 24px; font-weight: 600; }
.wl-cmp-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-cmp-title { margin: 0; font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; overflow-wrap: anywhere; min-width: 0; }
.wl-cmp-title:focus { outline: none; }
.wl-cmp-symbol { font-size: 20px; color: var(--text-3); }
.wl-cmp-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.wl-cmp-mint { display: flex; gap: 10px; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--text-soft); font-family: var(--font-mono); font-size: 13px; cursor: pointer; }
.wl-cmp-note { font-size: 15px; color: var(--text-3); }
.wl-cmp-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.wl-cmp-actions .wl-btn-s { height: 48px; padding: 0 20px; font-weight: 600; }
.wl-cmp-wait { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 32px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.wl-cmp-wait-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(124,203,255,0.12); color: var(--sky); }
.wl-cmp-wait-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.wl-cmp-wait-text { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.5; color: var(--text-3); }

.wl-obs-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; animation-delay: .08s; }
.wl-obs { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; padding: 24px 26px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.wl-obs.is-latest { border-color: rgba(168,245,213,0.22); }
.wl-obs-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); }
.wl-obs.is-latest .wl-obs-label { color: var(--accent); }
.wl-obs-time { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.wl-obs-arrow { flex: 0 0 auto; display: grid; place-items: center; padding: 0 4px; color: var(--muted); }

.wl-sum { display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 28px 32px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); animation-delay: .16s; }
.wl-sum.is-changed { background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(255,193,90,0.08), rgba(255,193,90,0) 60%), var(--panel); border-color: rgba(255,193,90,0.28); }
.wl-sum-lead { flex: 0 1 260px; display: flex; gap: 16px; align-items: flex-start; }
.wl-sum-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: var(--text-2); }
.wl-sum.is-changed .wl-sum-icon { background: rgba(255,193,90,0.16); color: var(--amber); }
.wl-sum-lead-text { display: flex; flex-direction: column; gap: 6px; }
.wl-sum-title { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.wl-sum-sub { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.wl-sum-list { flex: 1 1 480px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wl-sum-item { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,0.04); }
.wl-sum-item.tone-graduated { background: rgba(124,203,255,0.06); }
.wl-sum-item.tone-pass { background: rgba(168,245,213,0.06); }
.wl-sum-item.tone-attention { background: rgba(255,193,90,0.06); }
.wl-sum-label { font-size: 17px; font-weight: 600; }
.wl-sum-move { font-family: var(--font-mono); font-size: 15px; color: var(--text-soft); }
.wl-to.is-pass { color: var(--accent); }
.wl-to.is-attention { color: var(--amber); }
.wl-to.is-graduated { color: var(--sky); }
.wl-to.is-unchecked { color: var(--text-2); }
.wl-sum-note { font-size: 14px; color: var(--text-3); }
.wl-sum-ref { display: flex; gap: 10px; align-items: flex-start; padding: 4px 4px 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.wl-sum-ref svg { margin-top: 2px; }

.wl-findings { display: flex; flex-direction: column; gap: 12px; animation-delay: .24s; }
.wl-findings-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 0 8px; }
.wl-findings-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.wl-toggle { display: flex; gap: 10px; align-items: center; height: 44px; font-size: 15px; color: var(--text-soft); cursor: pointer; }
.wl-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.wl-table-frame { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.wl-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.wl-table col.is-c1 { width: 28%; }
.wl-table col.is-c2 { width: 36%; }
.wl-th { text-align: left; padding: 18px 24px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-3); }
.wl-th.is-latest { color: var(--accent); }
.wl-table thead tr { border-bottom: 1px solid var(--line); }
.wl-group th { text-align: left; padding: 14px 24px 10px; background: var(--inset); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-3); }
.wl-table tbody tr + .wl-group th { border-top: 1px solid rgba(255,255,255,0.06); }
.wl-tr { border-top: 1px solid rgba(255,255,255,0.06); }
.wl-tr.is-changed { background: rgba(255,255,255,0.03); box-shadow: inset 3px 0 0 var(--text-2); }
.wl-tr.tone-graduated { background: rgba(124,203,255,0.04); box-shadow: inset 3px 0 0 var(--sky); }
.wl-tr.tone-pass { background: rgba(168,245,213,0.04); box-shadow: inset 3px 0 0 var(--accent); }
.wl-tr.tone-attention { background: rgba(255,193,90,0.04); box-shadow: inset 3px 0 0 var(--amber); }
.wl-row-label { text-align: left; vertical-align: top; padding: 18px 24px; font-size: 17px; font-weight: 600; }
.wl-tr.is-changed .wl-row-label, .wl-tr.is-reference .wl-row-label, .wl-tr.is-unread .wl-row-label { padding: 20px 24px; }
.wl-row-stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wl-row-name { font-size: 17px; }
.wl-row-sub { font-size: 13px; font-weight: 400; color: var(--text-3); }
.wl-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--text-2); background: rgba(255,255,255,0.06); }
.wl-badge.is-graduated { color: var(--sky); background: rgba(124,203,255,0.12); }
.wl-badge.is-pass { color: var(--accent); background: rgba(168,245,213,0.10); }
.wl-badge.is-attention { color: var(--amber); background: rgba(255,193,90,0.12); }
.wl-cell { vertical-align: top; padding: 18px 24px; }
.wl-tr.is-changed .wl-cell, .wl-tr.is-reference .wl-cell, .wl-tr.is-unread .wl-cell { padding: 20px 24px; }
.wl-state { display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.wl-state.is-pass { background: rgba(168,245,213,0.10); color: var(--accent); }
.wl-state.is-attention { background: rgba(255,193,90,0.12); color: var(--amber); }
.wl-state.is-unchecked { background: rgba(255,255,255,0.06); color: var(--text-2); }
.wl-state.is-graduated { background: rgba(124,203,255,0.12); color: var(--sky); }
.wl-cell-note { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.wl-tr.is-changed .wl-cell.is-latest .wl-cell-note { color: var(--text-soft); }
.wl-tr.is-changed .wl-cell:not(.is-latest) .wl-cell-note, .wl-tr.is-reference .wl-cell-note { color: var(--text-2); }
.wl-figure { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.wl-tr.is-reference .wl-cell-note { margin-top: 6px; }
.wl-findings-note { margin: 0; padding: 4px 8px 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Light theme: panels turn white, translucent whites turn ink. */
[data-theme="light"] .wl-stat { background: rgba(11,18,16,0.04); }
[data-theme="light"] .wl-stat.is-changed { background: var(--amber-soft); }
[data-theme="light"] .wl-stat.is-baseline { background: var(--sky-soft); }
[data-theme="light"] .wl-toolbar,
[data-theme="light"] .wl-list,
[data-theme="light"] .wl-obs,
[data-theme="light"] .wl-how-card,
[data-theme="light"] .wl-sum,
[data-theme="light"] .wl-table-frame,
[data-theme="light"] .wl-cmp-wait { box-shadow: 0 1px 2px rgba(11,18,16,0.04); }
[data-theme="light"] .wl-btn-p { border: 1px solid rgba(11,18,16,0.10); }
[data-theme="light"] .wl-btn-s,
[data-theme="light"] .wl-sort,
[data-theme="light"] .wl-act { background: #FFFFFF; border-color: rgba(11,18,16,0.12); }
[data-theme="light"] .wl-remove,
[data-theme="light"] .wl-cmp-mint { background: rgba(11,18,16,0.03); border-color: rgba(11,18,16,0.10); }
[data-theme="light"] .wl-divider { background: rgba(11,18,16,0.10); }
[data-theme="light"] .wl-act.is-changed { background: var(--amber-soft); border-color: rgba(166,101,0,0.30); }
[data-theme="light"] .wl-act.is-baseline { background: var(--sky-soft); border-color: rgba(18,110,170,0.30); }
[data-theme="light"] .wl-act.is-off { background: transparent; border-color: rgba(11,18,16,0.14); }
[data-theme="light"] .wl-row { border-bottom-color: rgba(11,18,16,0.06); }
[data-theme="light"] .wl-row.is-changed { background: rgba(255,193,90,0.08); }
[data-theme="light"] .wl-face,
[data-theme="light"] .wl-cmp-face { background: #E7EEEB; }
[data-theme="light"] .wl-tag,
[data-theme="light"] .wl-chip.is-unchecked,
[data-theme="light"] .wl-state.is-unchecked,
[data-theme="light"] .wl-badge { background: rgba(11,18,16,0.06); }
[data-theme="light"] .wl-strip { background: rgba(11,18,16,0.035); }
[data-theme="light"] .wl-row.is-fresh .wl-strip { background: var(--sky-soft); }
[data-theme="light"] .wl-chip.is-pass,
[data-theme="light"] .wl-state.is-pass,
[data-theme="light"] .wl-badge.is-pass { background: var(--mint-soft); }
[data-theme="light"] .wl-chip.is-attention,
[data-theme="light"] .wl-state.is-attention,
[data-theme="light"] .wl-badge.is-attention { background: var(--amber-soft); }
[data-theme="light"] .wl-chip.is-graduated,
[data-theme="light"] .wl-state.is-graduated,
[data-theme="light"] .wl-badge.is-graduated { background: var(--sky-soft); }
[data-theme="light"] .wl-empty { border-color: rgba(11,18,16,0.16); background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(168,245,213,0.30), rgba(168,245,213,0) 70%), var(--panel); }
[data-theme="light"] .wl-empty-art > svg circle:first-child { stroke: rgba(11,122,82,0.30); }
[data-theme="light"] .wl-empty-badge { border-color: rgba(11,122,82,0.25); background: radial-gradient(circle at 30% 25%, rgba(168,245,213,0.45), rgba(168,245,213,0) 60%), #FFFFFF; }
[data-theme="light"] .wl-obs.is-latest { border-color: rgba(11,122,82,0.28); }
[data-theme="light"] .wl-sum.is-changed { border-color: rgba(166,101,0,0.28); background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(255,193,90,0.16), rgba(255,193,90,0) 60%), var(--panel); }
[data-theme="light"] .wl-sum-icon { background: rgba(11,18,16,0.06); }
[data-theme="light"] .wl-sum.is-changed .wl-sum-icon { background: var(--amber-soft); }
[data-theme="light"] .wl-sum-item { background: rgba(11,18,16,0.04); }
[data-theme="light"] .wl-sum-item.tone-graduated { background: var(--sky-soft); }
[data-theme="light"] .wl-sum-item.tone-pass { background: var(--mint-soft); }
[data-theme="light"] .wl-sum-item.tone-attention { background: var(--amber-soft); }
[data-theme="light"] .wl-tr,
[data-theme="light"] .wl-table tbody tr + .wl-group th { border-top-color: rgba(11,18,16,0.06); }
[data-theme="light"] .wl .ts-btn-s:not(:disabled):hover { background: rgba(11,18,16,0.05); border-color: rgba(11,18,16,0.20); }

/* Phones: one column, 16px gutters, actions under the name. */
@media (max-width: 639px) {
  .wl-page { padding: 32px 16px 0; gap: 20px; }
  .wl-stats { flex-basis: 100%; }
  .wl-stat { padding: 14px; }
  .wl-stat-num { font-size: 28px; }
  .wl-toolbar { border-radius: 24px; padding: 12px; }
  .wl-toolbar-main, .wl-toolbar-tools { width: 100%; }
  .wl-toolbar-main .wl-btn-p { flex: 1 1 100%; justify-content: center; }
  .wl-toolbar-note { padding: 0 4px; }
  .wl-divider { display: none; }
  .wl-toolbar-tools .wl-btn-s { flex: 1 1 0; justify-content: center; }
  .wl-row { padding: 20px 16px; }
  .wl-row-main { gap: 16px; }
  .wl-market { flex: 1 1 auto; }
  .wl-actions { width: 100%; }
  .wl-act { flex: 1 1 0; justify-content: center; padding: 0 12px; }
  .wl-strip { padding: 12px 14px; gap: 8px 16px; }
  .wl-empty { padding: 56px 20px; }
  .wl-cmp { margin-top: -12px; }
  .wl-cmp-actions { width: 100%; }
  .wl-cmp-actions > * { flex: 1 1 auto; justify-content: center; }
  .wl-obs-arrow { display: none; }
  .wl-sum { padding: 24px 20px; }
  .wl-table-frame { overflow-x: auto; }
  .wl-table { min-width: 560px; }
  .wl-th, .wl-group th, .wl-row-label, .wl-cell { padding-left: 16px !important; padding-right: 16px !important; }
}
