.screen-reader {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.workspace-active {
  --rail-width: 224px;
  --workspace-bar-height: 64px;
  --rail-surface: #f0f0f4;
  --page: #f7f7f9;
  --surface: #fff;
  --subtle: #f2f2f6;
  --ink: #20202d;
  --muted: #727285;
  --line: #e1e1e9;
  --accent: #6245d5;
  --accent-soft: #ece7fc;
  -webkit-font-smoothing: antialiased;
}

:root:has(meta[name="color-scheme"][content="dark"]) .workspace-active {
  --rail-surface: #15161f;
  --page: #11121a;
  --surface: #191b27;
  --subtle: #1d1f2c;
  --ink: #ededf5;
  --muted: #9699b0;
  --line: #303242;
  --accent: #b5a2ff;
  --accent-soft: #302748;
}

.workspace-rail {
  position: fixed;
  z-index: 4;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  overflow: auto;
  background: var(--rail-surface);
  border-inline-end: 1px solid var(--line);
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px 18px;
  border-block-end: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.workspace-brand img { object-fit: contain; flex: none; }
.workspace-brand > span { display: grid; gap: 3px; }
.workspace-brand strong { font-size: 16px; line-height: 1.35; font-weight: 600; }
.workspace-brand small { color: var(--muted); font-size: 13px; letter-spacing: .035em; white-space: nowrap; }

.rail-navigation { display: grid; gap: 4px; padding: 16px 12px 18px; }
.rail-navigation a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
}
.rail-navigation a:hover { background: var(--surface); color: var(--ink); }
.rail-navigation a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.rail-navigation .icon { width: 19px; height: 19px; }
.workspace-rail a:focus-visible, #workspace select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.workspace-brand:focus-visible { outline-offset: -3px !important; }

.rail-projects { padding: 18px 12px; border-block-start: 1px solid var(--line); }
.rail-projects h2 { margin: 0 10px 12px; font-size: 14px; font-weight: 650; }
.rail-projects input {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}
.rail-projects p { margin: 14px 10px 0; color: var(--muted); font-size: 13px; }

.workspace-active .topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-inline-start: var(--rail-width);
  min-height: var(--workspace-bar-height);
  gap: 16px;
  padding: 0 32px;
  background: var(--page);
}
.workspace-location { display: flex; flex: 1 1 0; min-inline-size: 0; align-items: center; margin-inline-end: auto; color: var(--muted); font-size: 14px; }
.workspace-breadcrumb { display: flex; gap: 13px; align-items: center; min-inline-size: 0; }
.workspace-location strong { font-weight: 500; }
.workspace-active .wallet-button { gap: 9px; padding: 0; }
.workspace-active .wallet-icon { width: 20px; height: 20px; }
.workspace-active .wallet-copy { gap: 1px; font-size: 13px; line-height: 20px; }
.workspace-active .wallet-copy strong { font-size: 16px; }
.workspace-active .theme-switch { border-radius: 8px; padding: 3px; }
.workspace-active .theme-switch button { gap: 5px; min-width: 66px; height: 40px; padding: 0 8px; border-radius: 6px; font-size: 14px; }
.workspace-active .theme-switch .icon { width: 15px; height: 15px; }
.workspace-active .bill-shortcut { width: 39px; height: 40px; border-color: var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); }
.workspace-active .bill-shortcut .icon { width: 18px; height: 18px; }
.workspace-active .account-menu summary { gap: 9px; min-height: 48px; }
.workspace-active .avatar { width: 33px; height: 33px; border-radius: 10px; font-size: 15px; }
.workspace-active .account-copy { min-width: 70px; gap: 0; }
.workspace-active .account-copy strong { font-size: 15px; line-height: 20px; }
.workspace-active .chevron-icon { width: 14px; height: 14px; }

.workspace-active #workspace {
  margin-inline-start: var(--rail-width);
  min-height: calc(100vh - var(--workspace-bar-height));
  padding: 0 32px 44px;
}

.discover { padding-top: clamp(52px, 8.2vh, 88px); }
.discover-panel, .discover-guide { width: min(100%, 1080px); margin-inline: auto; }
.discover-panel { padding: 31px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.entry-switch {
  display: flex;
  width: 244px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle);
}
.entry-switch button { flex: 1; min-height: 38px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 14px; white-space: nowrap; }
.entry-switch button:hover { color: var(--ink); }
.entry-switch button[aria-pressed="true"] { color: var(--accent); background: var(--surface); box-shadow: 0 1px 4px #29213b16; font-weight: 550; }
.discover-intro { margin: 35px 0 34px; }
.discover-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.discover-intro .discover-kicker { color: var(--accent); font-size: 14px; }
.discover-intro h1 { margin: 11px 0 10px; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -.035em; }
.keyword-row { display: flex; align-items: center; gap: 9px; }
.keyword-row input, .date-row input, .threshold-controls input, .threshold-controls select, .category-filter select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: var(--subtle);
  color: var(--ink);
  font: inherit;
}
.keyword-row input { flex: 1; padding-inline: 15px; font-size: 16px; background: var(--page); }
.keyword-row button { min-width: 88px; height: 40px; border-radius: 8px; padding: 0 12px; background: #7556e8; font-size: 14px; font-weight: 600; }
.keyword-row button:hover { background: #6546d8; }
.link-entry label { display: block; color: var(--ink); font-size: 1rem; font-weight: 500; }
#video-link-hint { margin: 8px 0 14px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.link-entry .keyword-row input { height: 48px; }
.link-entry .keyword-row button { min-height: 48px; padding-inline: 20px; }
#video-link-status { margin: 12px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
#video-link-status:empty { margin: 0; }
#video-link-status[data-error="true"] { color: var(--danger, #c63549); }
#video-link-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#video-link-input:user-invalid, #video-link-input[aria-invalid="true"] { border-color: var(--danger, #c63549); }
#workspace input::placeholder, .rail-projects input::placeholder { color: var(--muted); opacity: .92; }
#workspace input:user-invalid { border-color: var(--error); }
.search-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  margin-top: 18px;
  border-block-start: 1px solid var(--line);
  font-size: 14px;
}
.search-categories, .search-refinement { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.category-filter { display: flex; align-items: center; gap: 6px; }
.category-filter select { width: 94px; font-size: 14px; cursor: pointer; }
#search-material-type { width: 138px; }
.filter-choices, .date-presets { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-choices label { position: relative; display: inline-flex; }
.filter-choices input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.filter-choices label span, .date-presets button {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}
.filter-choices label span:hover, .date-presets button:hover { background: var(--subtle); color: var(--ink); }
.filter-choices input:checked + span, .date-presets button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.filter-choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.date-picker { position: relative; flex: none; }
.date-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}
.date-picker > summary::-webkit-details-marker { display: none; }
.date-picker > summary .icon { width: 14px; height: 14px; }
.date-picker[open] > summary .icon { transform: rotate(180deg); }
.date-options { position: absolute; z-index: 5; inset-block-start: calc(100% + 8px); inset-inline-start: 0; width: 320px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.date-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; align-items: center; }
.date-row label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.date-row input { width: 100%; background: var(--surface); }
.metric-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-caption { color: var(--muted); white-space: nowrap; padding-inline-end: 3px; }
.sort-choices label span { padding-inline: 8px; background: var(--subtle); }
.threshold-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.threshold-controls select, .threshold-controls input { padding-inline: 10px; font-size: 14px; }
.threshold-controls select { width: 118px; }
.threshold-controls input { width: 118px; }
.threshold-controls input::-webkit-inner-spin-button { appearance: none; }
.link-entry { color: var(--muted); }

.discover-guide {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 35px;
  list-style: none;
  margin-block: 39px 0;
  padding: 0 56px;
}
.discover-guide li { display: flex; align-items: start; gap: 16px; position: relative; }
.discover-guide li:not(:last-child)::after { content: "→"; position: absolute; inset: 13px -38px auto auto; color: var(--muted); opacity: .55; }
.discover-guide li > span, .discover-guide strong { color: var(--muted); font-size: 13px; }
.discover-guide strong { color: var(--ink); font-weight: 550; }
.discover-guide p { margin: 8px 0 0; color: var(--muted); font-size: 16px; white-space: nowrap; }

.discover.has-query { padding-top: 28px; }
.has-query .discover-panel { position: relative; width: 100%; padding: 20px; }
.has-query .discover-intro, .has-query .discover-guide { display: none; }
.has-query .entry-switch { position: absolute; inset: 20px auto auto 20px; width: 244px; }
.has-query .keyword-row { min-height: 48px; margin-inline-start: 262px; }
.has-query .keyword-row button { height: 40px; }
.has-query .search-filters { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; margin-top: 18px; }
.has-query .search-categories { gap: 8px; }
.has-query .search-refinement { gap: 10px; }
.has-query .filter-caption { padding: 0; }
.has-query .filter-choices label span { padding-inline: 10px; }
.has-query .sort-choices label span { padding-inline: 10px; border-color: var(--line); }
.has-query .sort-choices input:checked + span { border-color: transparent; }

.search-results { margin-top: 12px; }
.result-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.selection-info, .result-actions { display: flex; align-items: center; gap: 10px; }
.selection-info { font-size: 14px; }
.selection-info > strong { font-weight: 600; }
.selection-info > span { color: var(--muted); }
#search-heat { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); font-size: 14px; }
#search-heat[aria-pressed="true"] { border-color: #b5a2ff; background: var(--accent-soft); color: var(--accent); }
#search-heat:disabled { opacity: 1; cursor: default; }
.result-actions button { height: 40px; padding-inline: 12px; font-size: 14px; }
#analyze-selected { background: #7556e8; }
#analyze-selected:disabled { opacity: .5; cursor: not-allowed; }
#download-selected:disabled { opacity: .5; cursor: not-allowed; }
.result-status { margin: 20px 0; text-align: center; color: var(--muted); font-size: 15px; }
.result-status[data-error="true"] { color: var(--error); }
.result-status:empty { display: none; }
.result-status[data-loading="true"] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 180px; margin: 24px 0; }
.search-loading-copy { display: grid; gap: 7px; }
.search-loading-title { color: var(--ink); font-size: 15px; line-height: 1.5; }
.search-loading-hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
progress.search-loading-spinner:indeterminate {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  appearance: none;
  background: conic-gradient(from 0deg, transparent, var(--accent)) var(--accent-soft);
  animation: search-loading-spin 1s linear infinite;
}
progress.search-loading-spinner:indeterminate::-webkit-progress-bar { display: none; background: none; }
progress.search-loading-spinner:indeterminate::-webkit-progress-value { display: none; background: none; }
progress.search-loading-spinner:indeterminate::-moz-progress-bar { display: none; background: none; }
progress.search-loading-spinner:indeterminate::slider-fill { display: none; background: none; }
@supports (background-clip: border-area) {
  progress.search-loading-spinner:indeterminate { border: 3px solid transparent; background-clip: border-area; background-origin: border-box; }
}
@supports not (background-clip: border-area) {
  progress.search-loading-spinner:indeterminate { border: 0; mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0); }
}
@keyframes search-loading-spin {
  to { transform: rotate(1turn); }
}
@media (prefers-reduced-motion: reduce) {
  progress.search-loading-spinner:indeterminate { animation-duration: 6s; }
}
@media (forced-colors: active) {
  progress.search-loading-spinner:indeterminate { forced-color-adjust: none; background: conic-gradient(CanvasText 270deg, transparent 0) Canvas; }
}
.result-warning { padding: 9px 12px; color: var(--muted); background: var(--subtle); border-radius: 7px; font-size: 14px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 18px; }
.result-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: clip; background: var(--surface); }
.result-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.result-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.result-media { position: relative; aspect-ratio: 9 / 16; background: #242434; color: #fff; }
.result-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: #eeedf8; }
.result-cover:disabled { cursor: default; }
.result-cover:focus-visible { outline-offset: -4px; }
.result-cover img, .result-media video { display: block; width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.result-media video { position: absolute; inset: 0; object-fit: contain; }
.result-media:has(video) .result-badges, .result-media:has(video) .result-metrics { display: none; }
.result-media:has(video) .card-controls { inset-block-start: 50px; }
.card-controls { display: flex; gap: 6px; position: absolute; z-index: 1; inset: 8px 8px auto auto; }
.card-controls label, .card-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  color: #fff;
  background: #11121ac2;
  cursor: pointer;
}
.card-controls label:hover, .card-controls button:hover { background: #382b59; }
.card-controls .icon { width: 17px; height: 17px; }
.stop-video {
  position: absolute;
  z-index: 1;
  inset: 9px 9px auto auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ffffff52;
  border-radius: 7px;
  color: #fff;
  background: #1c192bd6;
}
.stop-video .icon { width: 16px; height: 16px; }
.card-controls input { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); }
.card-controls label > span { width: 16px; height: 16px; border: 2px solid #ffffffd9; border-radius: 4px; }
.card-controls input:checked + span { border-color: #b5a2ff; background: #b5a2ff; box-shadow: inset 0 0 0 3px #302748; }
.card-controls label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.result-badges { position: absolute; inset: 10px 104px auto 10px; pointer-events: none; }
.result-brand { display: block; width: fit-content; max-width: 100%; overflow: clip; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border: 1px solid #ffffff99; border-radius: 6px; color: #fff; background: #7556e8; box-shadow: 0 2px 8px #0004; font-size: 16px; line-height: 1.4; font-weight: 600; }
.result-source { display: none; }
.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(to bottom, #080a1100, #080a11e0 10%, #080a11f5);
  text-shadow: 0 1px 2px #0007;
  pointer-events: none;
}
.result-metrics > div { min-width: 0; }
.result-metrics dt { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: #e2e8f0; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.result-metrics dd { margin: 1px 0 0; overflow: clip; text-overflow: ellipsis; color: #fff; font-size: 14px; line-height: 1.4; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-metrics > div:nth-child(-n+2) dd { font-size: 16px; font-weight: 700; }
.result-metrics > div:nth-child(2) dd { color: #c9b9ff; }
.total-heat {
  --heat-grade-color: #fff;
  position: absolute;
  inset: auto 0 0;
  padding: 20px 12px 12px;
  color: #fff;
  background: linear-gradient(to bottom, #080a1100, #080a11e0 20%, #080a11f5);
}
.total-heat[data-grade="gold"] { --heat-grade-color: #ffc62e; }
.total-heat[data-grade="purple"] { --heat-grade-color: #b879ff; }
.total-heat[data-grade="blue"] { --heat-grade-color: #8fc8ff; }
.total-heat[data-grade="green"] { --heat-grade-color: #a7e8c0; }
.total-heat[data-grade="gray"] { --heat-grade-color: #b9c0cd; }
.total-heat-summary { display: flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer; }
.total-heat-summary::-webkit-details-marker { display: none; }
.total-heat-emblem { position: relative; display: grid; place-items: center; flex: 0 0 28px; height: 30px; color: var(--heat-grade-color); }
.total-heat-emblem > .icon { width: 22px; height: 26px; color: var(--heat-grade-color); fill: currentColor; stroke: none; }
.total-heat-tier { position: absolute; inset: auto -1px -2px auto; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 2px; border: 1px solid currentColor; border-radius: 3px; background: #12141c; font-size: 11px; line-height: 1; font-weight: 800; }
.total-heat-copy { display: grid; gap: 3px; }
.total-heat-label { color: #e2e8f0; font-size: 14px; white-space: nowrap; }
.total-heat-value { margin-inline-start: auto; color: var(--heat-grade-color); font-size: 27px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; }
.total-heat[data-grade="gold"] .total-heat-value { text-shadow: 0 0 12px #ffc62e38; }
.total-heat-state { color: #d6cfec; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.total-heat-summary > .icon:last-child { width: 16px; height: 16px; color: #d6cfec; flex: none; }
.total-heat[open] .total-heat-summary > .icon:last-child { transform: rotate(180deg); }
.total-heat-summary:hover { color: #e5dbff; }
.total-heat-summary:focus-visible { outline: 2px solid #c9b9ff; outline-offset: 3px; border-radius: 4px; }
.total-heat .result-metrics { position: static; padding: 10px 0; border-top: 1px solid #ffffff30; background: none; pointer-events: auto; }
.result-media:has(video) .total-heat { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .total-heat-summary > .icon:last-child { transition: transform .16s ease; }
}
@media (forced-colors: active) {
  .total-heat { background: Canvas; color: CanvasText; border-top: 1px solid CanvasText; }
  .total-heat-summary > .icon, .total-heat-emblem, .total-heat-emblem > .icon, .total-heat-label, .total-heat-value, .total-heat-state { color: CanvasText; }
  .total-heat-tier { background: Canvas; border-color: CanvasText; }
}
.trend-trigger { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 1px solid #8c919a; border-radius: 4px; background: #242831; color: #f8fafc; vertical-align: middle; pointer-events: auto; }
.trend-trigger:hover, .trend-trigger:focus-visible { background: #393e48; color: #fff; border-color: #e2e8f0; outline: 2px solid #b9afff; outline-offset: 1px; }
.trend-trigger .icon { width: 12px; height: 12px; }
.card-footer { display: grid; gap: 8px; padding: 10px 12px; background: var(--subtle); border-top: 1px solid var(--line); }
:root:has(meta[name="color-scheme"][content="light"]) .card-footer { background: #e9e6f1; }
.card-title { display: -webkit-box; margin: 0; min-height: 42px; max-height: 42px; overflow: clip; overflow-wrap: anywhere; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 21px; font-weight: 600; }
.card-analyze { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; color: #fff; background: #7556e8; font-size: 14px; line-height: 21px; font-weight: 600; text-decoration: none; }
.card-existing-project { background: #287a61; }
.card-existing-project:hover { background: #2d8167; }
.card-existing-project:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-analyze:disabled { opacity: 1; cursor: not-allowed; }
@media (forced-colors: active) {
  .card-existing-project { color: LinkText; background: Canvas; border: 1px solid LinkText; }
}

.trend-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 8px 8px;
  display: grid;
  gap: 8px;
  min-height: 210px;
  padding: 12px;
  border: 1px solid #5b6170;
  border-radius: 10px;
  background: #1a1e28;
  color: #f8fafc;
  box-shadow: 0 10px 24px #00000047;
  text-shadow: none;
}
.trend-overlay[hidden] { display: none; }
.trend-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trend-header strong { color: #f8fafc; font-size: 14px; line-height: 1.4; font-weight: 600; }
.trend-ranges { display: flex; gap: 6px; }
.trend-overlay button { width: auto; min-width: 0; height: 28px; padding: 2px 8px; border: 1px solid #626976; border-radius: 6px; background: #242831; color: #e2e8f0; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.trend-overlay button:hover { background: #393e48; color: #fff; }
.trend-overlay button:focus-visible { outline: 2px solid #b9afff; outline-offset: 1px; }
.trend-ranges button[aria-pressed="true"] { border-color: #c4b5fd; background: #6750ce; color: #fff; }
.trend-overlay .trend-close { display: grid; place-items: center; width: 28px; flex: 0 0 28px; padding: 0; }
.trend-close .icon { width: 15px; height: 15px; }
.trend-chart { width: 100%; height: 104px; display: block; overflow: visible; color: #b7a6ff; }
.trend-chart path { stroke: #414854; stroke-width: .8; fill: none; }
.trend-chart polyline { stroke: currentColor; stroke-width: 2.5; fill: none; }
.trend-chart circle { fill: #c4b5fd; stroke: #1a1e28; stroke-width: 2; cursor: crosshair; }
.trend-chart circle:hover, .trend-chart circle:focus-visible { fill: #fff; stroke: #a78bfa; outline: none; }
.trend-readout { display: block; margin-top: 4px; color: #f8fafc; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.trend-message { display: grid; align-content: center; min-height: 110px; margin: 0; color: #e2e8f0; font-size: 13px; line-height: 1.5; }
.workspace-empty { margin-top: 32px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.workspace-empty h1 { margin: 0 0 14px; font-size: 24px; }
.workspace-empty p { color: var(--muted); }

@media (forced-colors: active) {
  .rail-navigation a[aria-current="page"], .filter-choices input:checked + span, .date-presets button[aria-pressed="true"] {
    border: 1px solid Highlight;
  }
}
