/* Theme tracker: scoped to the Themes page; shared site tokens remain authoritative. */
#themesView{--up:var(--success);--down:var(--danger);font-variant-numeric:tabular-nums}
#themesView .titleline{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
#themesView .date{font-size:12px;color:var(--text-3);display:flex;align-items:center;gap:8px}
#themesView .dot{height:5px;width:5px;background:var(--up);border-radius:50%}
#themesView .date.is-stale .dot{background:var(--warning)}
#themesView .toolbar{display:flex;align-items:center;gap:8px}
#themesView .toolbar>button,#themesView .disclosure>button{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius-full);padding:6px 12px;color:var(--text-2);font-weight:600;font-size:12px;height:32px}
#themesView .toolbar>.quiet{border-color:transparent;background:transparent;color:var(--text-3);margin-left:auto}
#themesView .toolbar>button.themes-about-btn{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:0;border-radius:var(--radius-full);background:transparent;color:var(--text-3);font-weight:500;font-size:12px;box-shadow:none}
#themesView .themes-about-btn .lucide{width:14px;height:14px}
#themesView .toolbar>button.themes-about-btn:hover,#themesView .toolbar>button.themes-about-btn[aria-expanded="true"]{color:var(--text);background:var(--surface-2)}
#themesView .windows,#themesView .scope{display:flex;gap:2px;border:1px solid var(--border);background:var(--surface-2);border-radius:var(--radius-full);padding:3px}
#themesView .windows button,#themesView .scope button{padding:4px 10px;border:0;border-radius:20px;background:transparent;color:var(--text-3);font-size:12px;font-weight:600}
#themesView .themes-search-field{flex:0 0 19.5rem;width:19.5rem;max-width:19.5rem;height:36px;padding:0 11px;gap:7px}
#themesView .themes-search-field input{align-self:stretch;width:100%;min-width:0;height:auto;border:0;padding:0;background:transparent;box-shadow:none;color:var(--text);font-size:15px;line-height:22px;caret-color:var(--text)}
#themesView .themes-search-field input:focus{outline:none;box-shadow:none}
#themesView .themes-search-field input.is-clearing{animation:themes-search-out 180ms var(--ease-out-expo) forwards}
@keyframes themes-search-out{to{opacity:0;filter:blur(5px);transform:translateX(8px)}}
@media(prefers-reduced-motion:reduce){#themesView .themes-search-field input.is-clearing{animation:none}}
#themesView #themes-filtersBlock.is-open,#themesView #themes-aboutBlock.is-open{margin-top:12px}
#themesView .disclosure-wrap{height:0;overflow:hidden;transition:height var(--dur-slow) var(--ease-out-expo),filter var(--dur-slow) var(--ease-out-expo),opacity var(--dur-slow) var(--ease-out-expo)}
#themesView .collapsible:not(.is-open) .disclosure-wrap{filter:blur(5px);opacity:0}
#themesView .collapsible.is-open .disclosure-wrap{filter:blur(0);opacity:1}
#themesView #themes-filterBadge{font-size:10px;margin-left:5px;background:var(--surface-2);border-radius:5px;padding:1px 4px}
#themesView #themes-filterBadge:empty{display:none;margin:0;padding:0}
#themesView .context{display:flex;justify-content:space-between;gap:12px;margin:17px 0 10px;color:var(--text-3);font-size:11px}
#themesView .graydot{display:inline-block;width:6px;height:6px;background:#93939d;border-radius:50%;margin-right:5px}
#themesView .disclosure{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:12px 14px;margin:0;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 14px;font-size:12px}
#themesView .disclosure[hidden]{display:none}
#themesView .disclosure label{display:flex;align-items:center;gap:6px;white-space:nowrap}
#themesView .disclosure input[type=number]{width:60px;padding:4px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text)}
#themesView .disclosure>span{font-size:10px;color:var(--text-3)}
#themesView .filter-kicker{font-size:11px;font-weight:500;color:var(--text-3);letter-spacing:.01em}
#themesView .ma-field{min-width:0}
#themesView #themes-filters{width:100%}
#themesView #themes-reset{margin-left:auto}
#themesView .ma-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#themesView .ma-filters label{position:relative;display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface-2);color:var(--text-2);font-size:12px;font-weight:500;cursor:pointer;transition:background-color var(--dur-base),border-color var(--dur-base),color var(--dur-base)}
#themesView .ma-filters input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
#themesView .ma-filters label:hover{background:var(--surface);border-color:var(--border-2);color:var(--text)}
#themesView .ma-filters label:has(input:checked){background:var(--primary);border-color:var(--primary-border);color:var(--primary-contrast);box-shadow:var(--inset-hi)}
#themesView .ma-filters label:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}
#themesView .about{display:block;width:100%;max-width:none;color:var(--text-3);line-height:1.5}
#themesView .about dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 28px;margin:0}
#themesView .about dt{margin:0 0 3px;color:var(--text);font-weight:600}
#themesView .about dd{margin:0}
#themesView .about-note{margin:12px 0 0;font-size:11px}
#themesView .return{text-align:right;font-weight:600;white-space:nowrap}
#themesView .up{color:var(--up)}
#themesView .down{color:var(--down)}
#themesView .empty{padding:35px;color:var(--text-3);text-align:center}
@media(max-width:760px){#themesView .about dl{grid-template-columns:1fr}#themesView .toolbar{flex-wrap:wrap}
#themesView .themes-search-field{flex:1 1 auto;width:auto;max-width:none}
#themesView .toolbar>.quiet{margin-left:0}
#themesView .context{flex-direction:column;gap:5px}
#themesView .disclosure{flex-wrap:wrap}}
@media(max-width:430px){#themesView .toolbar{gap:6px}
#themesView .windows button,#themesView .scope button{padding:4px 8px}}
#themesView .windows,#themesView .scope{position:relative;isolation:isolate}
#themesView .windows .seg-pill,#themesView .scope .seg-pill{position:absolute;left:0;top:3px;bottom:3px;border-radius:var(--radius-full);background:var(--primary);border:1px solid var(--primary-border);box-shadow:var(--inset-hi);pointer-events:none;opacity:0;will-change:transform}
#themesView .windows button,#themesView .scope button{position:relative;z-index:1;transition:color var(--dur-base) var(--ease-out-expo)}
#themesView .windows.is-ready .is-active,#themesView .scope.is-ready .is-active{color:var(--primary-contrast)}
@media(prefers-reduced-motion:reduce){#themesView .windows button,#themesView .scope button{transition:none}}
#themesView .filter-field{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#themesView .filter-field>label{font-size:11px;font-weight:500;color:var(--text-3);letter-spacing:.01em}
#themesView .number-control{position:relative;display:flex;align-items:center;height:32px;padding:0 28px 0 8px;gap:3px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}
#themesView .disclosure .number-control input[type=number]{width:3.25ch;flex:none;min-width:0;border:0;padding:0;background:transparent;outline:none;box-shadow:none;appearance:textfield;-moz-appearance:textfield;text-align:right;font-size:13px;font-weight:400;line-height:1}
#themesView .number-control:has(#themes-dv) input[type=number]{width:3.75ch}
#themesView .number-control input::-webkit-inner-spin-button,#themesView .number-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#themesView .number-control:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
#themesView .unit{color:var(--text-3);font-size:10px;font-weight:500;line-height:1}
#themesView .number-control .prefix{display:grid;place-items:center;width:16px;height:16px;margin-right:1px;border:1px solid color-mix(in srgb,var(--primary) 30%,var(--border));border-radius:50%;color:var(--primary);background:color-mix(in srgb,var(--primary) 7%,var(--surface));font-size:9px;font-weight:600;line-height:1}
#themesView .number-steps{position:absolute;right:3px;top:4px;bottom:4px;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);width:18px;margin:0;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);overflow:hidden}
#themesView .disclosure .number-steps button{display:grid;place-items:center;min-height:0;min-width:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--text-3);font-size:.62rem;font-weight:500;line-height:1;transition:background-color var(--dur-fast),color var(--dur-fast)}
#themesView .disclosure .number-steps button+button{border-top:1px solid var(--border)}
#themesView .disclosure .number-steps button:hover{background:var(--surface);color:var(--text)}
#themesView .disclosure .number-steps button:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
#themesView .tracker{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);overflow:hidden}
#themesView .tracker-heading{display:flex;align-items:center;gap:9px;padding:13px 17px;border-bottom:1px solid var(--border);min-height:48px}
#themesView .tracker-heading h2{font-size:13px;letter-spacing:-.15px;margin:0;font-weight:600}
#themesView .tracker-count{color:var(--text-3);font-size:11px}
#themesView .tracker-period{margin-left:auto;font-size:11px;color:var(--text-3)}
#themesView .tracker-axis,#themesView .tracker-row{display:grid;grid-template-columns:195px minmax(0,1fr) 73px;gap:16px;align-items:center;padding:0 17px}
#themesView .tracker-axis{height:34px;font-size:9px;letter-spacing:.45px;color:var(--text-3)}
#themesView .tracker-axis>span:last-child{text-align:right}
#themesView .axis-name{justify-self:start;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-align:left}
#themesView .axis-name:hover,#themesView .axis-name[aria-pressed="true"]{color:var(--text)}
#themesView .tracker-rows{padding-bottom:9px;max-height:calc(100vh - 365px);min-height:180px;overflow:auto;scrollbar-width:thin}
#themesView .tracker-row{border:0;background:transparent;width:100%;height:31px;min-height:31px;color:var(--text);text-align:left;font-size:12px;cursor:pointer}
#themesView .tracker-row:hover{background:var(--row-hover)}
#themesView .tracker-label{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#themesView .tracker-row .return{font-size:11px}
#themesView .track{position:relative;display:block;height:9px;background:var(--surface-2);border-radius:2px}
#themesView .track-zero{position:absolute;left:50%;top:-5px;bottom:-5px;border-left:1px solid var(--border-2)}
#themesView .track-fill{position:absolute;top:0;bottom:0;border-radius:2px;transform:scaleX(0);animation:themes-track-in 300ms var(--ease-out-expo) both}
#themesView .track-fill.up{background:var(--up)}
#themesView .track-fill.down{background:var(--down)}
#themesView .track-fill.is-static{animation:none;transform:none;opacity:.75}
@keyframes themes-track-in{from{transform:scaleX(0);opacity:.25}to{transform:scaleX(1);opacity:.75}}
@media(prefers-reduced-motion:reduce){#themesView .track-fill{animation:none;transform:none;opacity:.75}}
#themesView .tracker-row.below .tracker-label{color:#898993}
#themesView .tracker-stock{display:flex;flex-direction:column}
#themesView .tracker-stock>summary{list-style:none;flex:0 0 31px;height:31px;max-height:31px;overflow:hidden}
#themesView .tracker-stock summary::-webkit-details-marker{display:none}
#themesView .tracker-stock[open]{background:var(--surface-2)}
#themesView .tracker-stock-detail{padding:8px 17px 15px;display:flex;gap:8px 18px;flex-wrap:wrap;align-items:center;font-size:11px;color:var(--text-3);border-bottom:1px solid var(--border)}
#themesView .tracker-stock-detail strong{color:var(--text-2);font-weight:600}
#themesView .tracker-stock-detail p{width:100%;margin:0;max-width:800px;line-height:1.6}
#themesView .does-copy{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0 0 0 4px;padding:0;vertical-align:-3px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-3);cursor:pointer;line-height:0;transition:background-color var(--dur-base),color var(--dur-base)}
#themesView .does-copy .lucide{width:14px;height:14px}
#themesView .does-copy:hover,#themesView .does-copy:focus-visible{color:var(--text);background:var(--surface-3)}
#themesView .does-copy:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
#themesView .tracker-stock-detail a{color:var(--primary)}
#themesView .tracker-back{border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text-3);width:24px;height:24px;padding:0;font-size:13px}
#themesView .tracker-copy{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface);color:var(--text-3);font-size:11px;font-weight:600;padding:4px 10px;margin-left:2px;cursor:pointer}
#themesView .tracker-copy:hover{color:var(--text);background:var(--surface-2)}
#themesView .tracker-copy:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
@media(max-width:760px){#themesView .tracker-axis,#themesView .tracker-row{grid-template-columns:135px minmax(0,1fr) 61px;gap:10px;padding-left:12px;padding-right:12px}
#themesView .tracker-label{font-size:11px}
#themesView .tracker-rows{max-height:60vh}
#themesView .tracker-heading{padding:12px}
#themesView .tracker-count{font-size:10px}}
@media(max-width:430px){#themesView .tracker-axis,#themesView .tracker-row{grid-template-columns:115px minmax(0,1fr) 58px;gap:8px}
#themesView .tracker-heading{gap:6px}
#themesView .tracker-heading h2{font-size:12px}
#themesView .tracker-period{font-size:10px}}
#themesView .tracker-stock-detail{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#themesView .tracker-company-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
#themesView .tracker-company-heading a,#themesView .size-trade{white-space:nowrap}
#themesView .size-trade{border:0;background:none;padding:0;color:var(--primary);font:inherit;cursor:pointer}
#themesView .size-trade:hover{text-decoration:underline}
#themesView .stock-metrics{display:flex;flex-wrap:wrap;gap:5px 14px}
#themesView .stock-metric{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--text-3)}
#themesView .stock-metric i{display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--text-3);flex:none}
#themesView .stock-metric .lucide{width:11px;height:11px;flex:none}
#themesView .metric-adr i{background:var(--primary)}
#themesView .metric-volume i{background:var(--warning)}
#themesView .metric-above .lucide{color:var(--up)}
#themesView .metric-below .lucide{color:var(--down)}
#themesView .search-feedback{margin:0 0 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);padding:12px 14px;font-size:12px}
#themesView .feedback-heading{color:var(--text-3);font-size:11px;margin-bottom:8px}
#themesView .hidden-match{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px 0}
#themesView .hidden-match strong{font-weight:600;margin-right:9px}
#themesView .hidden-match span{color:var(--text-3)}
#themesView .hidden-match small{display:block;color:var(--text-3);margin-top:3px}
#themesView .hidden-match button{flex:none;border:1px solid var(--border);border-radius:var(--radius-full);padding:6px 10px;color:var(--primary);font-size:11px;background:var(--surface)}
#themesView .metric-52h i{background:var(--text-3)}
@media(max-width:480px){#themesView .hidden-match{align-items:flex-start;flex-direction:column;gap:8px}}
#themesView .titleline{align-items:flex-start}
#themesView .titleline .view-head{margin:0}
#themesView .titleline .date{padding-top:4px;white-space:nowrap;margin-left:16px}
#themesView .search-company-does{max-width:620px;margin:6px 0 0;color:var(--text-3);font-size:11px;line-height:1.6}
#themesView .windows button,#themesView .scope button{border:0;cursor:pointer}#themesView .windows.is-ready .is-active,#themesView .scope.is-ready .is-active{color:var(--primary-contrast)}
#themesView .context{flex:none}#themesView .tracker-rows{max-height:65vh}#themesView .tracker-stock-detail{font-size:12px}#themesView .tracker-label{font-size:12px}

#themesView .axis-scale{display:flex;justify-content:space-between;font-size:10px;letter-spacing:0}
