@import url("/static/fonts.css");
:root {
  --ink: #17243f;
  --muted: #59677f;
  --brand: #234fbd;
  --brand-soft: #edf2ff;
  --accent: #ffb59f;
  --bg: #f5f7fc;
  --line: #dfe5f0;
  --white: #fff;
  --orange: #a5662f;
  --red: #ac4438;
  --positive: #2452be;
  --shadow: 0 8px 30px #1d305608;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: var(--brand);
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a,
button,
input,
select,
summary {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #234fbd;
}
input,
select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  max-width: 100%;
}
input::placeholder {
  color: #59677f;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 550;
  letter-spacing: -1.6px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.55px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
.sidebar {
  width: 222px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  font-size: 38px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: white;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: bold;
  font-size: 34px;
  position: relative;
  margin-right: 2px;
}
.brand-mark span {
  font-size: 22px;
  color: var(--accent);
  position: absolute;
  right: 4px;
  bottom: 0;
}
.brand-dot {
  color: #ef866e;
  margin-left: -10px;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 1.6px;
  margin-top: 19px;
  color: var(--muted);
  white-space: nowrap;
}
nav {
  margin-top: 45px;
  display: grid;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 12px;
  border-radius: 7px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.nav-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -22px;
  width: 3px;
  height: 23px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.nav-count {
  margin-left: auto;
  border-radius: 4px;
  background: var(--brand);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.avatar {
  background: #dfe7ff;
  padding: 8px;
  border-radius: 50%;
  font-size: 11px;
}
.online-dot {
  width: 6px;
  height: 6px;
  background: #2452be;
  border-radius: 50%;
  margin-left: auto;
}
.workspace {
  margin-left: 222px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #c5cede;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 11px;
}
.date {
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.text-button {
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}
.text-button span {
  margin-left: 7px;
}
main {
  max-width: 1490px;
  margin: auto;
  padding: 36px 40px 20px;
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.subtitle {
  color: var(--muted);
  margin-top: 12px;
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 550;
  background: white;
  min-height: 40px;
}
.button.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.button:hover {
  filter: brightness(0.96);
}
.data-banner {
  border: 1px solid #dfd7f3;
  background: #f1edff;
  color: #6b45b4;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.data-banner.live {
  background: #dfe7ff;
  color: #6b45b4;
  border-color: #dfd7f3;
}
.warning {
  background: #fff5e6;
  border: 1px solid #eedebf;
  padding: 12px 15px;
  border-radius: 7px;
  font-size: 12px;
  color: #80602e;
  margin-bottom: 18px;
}
.warning details summary {
  font-weight: 600;
}
.warning ul {
  padding-left: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  margin-bottom: 28px;
  overflow: hidden;
}
.stat {
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat-value {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0;
  font-weight: 500;
  letter-spacing: -1px;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
}
.stat-value em {
  font-size: 12px;
  letter-spacing: 0;
  font-style: normal;
  color: var(--muted);
  margin-left: 5px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.section-heading select {
  font-size: 11px;
  min-height: 35px;
  padding: 6px 9px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.filters input {
  min-width: 130px;
  flex: 1;
  font-size: 12px;
  min-height: 36px;
}
.filters select {
  font-size: 11px;
  min-height: 36px;
  max-width: 180px;
}
.custom-window {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  background: #eaf0fb;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 14px;
}
.custom-window label {
  font-size: 10px;
  display: grid;
  gap: 5px;
}
.custom-window input {
  font-size: 11px;
}
.signal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 21px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.signal-card.material:before {
  content: "";
  height: 38px;
  width: 3px;
  position: absolute;
  left: -1px;
  top: 23px;
  background: #ef866e;
  border-radius: 0 2px 2px 0;
}
.signal-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10px;
  margin-bottom: 11px;
}
.ticker {
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.4px;
}
.tag {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #edf2ff;
  color: #234fbd;
  white-space: nowrap;
}
.tag.amber {
  background: #faf1e5;
  color: #a37b4a;
}
.timestamp {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.signal-title {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.3px;
  margin: 0 0 9px;
}
.signal-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.signal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eaf0fb;
  margin-top: 16px;
  padding-top: 12px;
  font-size: 10px;
  color: var(--muted);
}
.signal-footer button {
  font-size: 11px;
  color: var(--brand);
  padding: 4px 0;
}
.signal-footer a {
  font-size: 10px;
}
.routine {
  border: 1px dashed #dfe5f0;
  border-radius: 8px;
  background: #edf2ff;
  margin: 18px 0;
}
.routine > summary {
  padding: 15px;
  font-size: 12px;
  color: #234fbd;
}
.routine .signal-card {
  margin: 10px;
  background: #f5f7fc;
}
.routine .signal-title {
  font-size: 14px;
}
.side-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  margin-bottom: 18px;
  overflow: hidden;
}
.side-card-header {
  padding: 17px 18px 13px;
  border-bottom: 1px solid #eaf0fb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-card-header h3 {
  font-size: 13px;
}
.side-card-header span {
  font-size: 9px;
  color: var(--muted);
}
.watch-row {
  display: grid;
  grid-template-columns: 1fr 62px 61px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #eaf0fb;
  gap: 8px;
}
.watch-row strong {
  font-size: 10px;
  display: block;
}
.watch-row small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.sparkline {
  width: 62px;
  height: 26px;
}
.watch-price {
  text-align: right;
  font-size: 11px;
}
.watch-price small {
  font-size: 9px;
}
.positive {
  color: var(--positive) !important;
}
.negative {
  color: var(--red) !important;
}
.side-link {
  display: block;
  padding: 13px 18px;
  font-size: 11px;
  width: 100%;
  text-align: left;
}
.research-promo {
  background: linear-gradient(140deg, #172747, #2e4d97);
  color: #ffffff;
  padding: 22px;
  border-radius: 9px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.research-promo .eyebrow {
  color: #dbe5ff;
  font-size: 8px;
}
.research-promo h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  max-width: 200px;
  margin-bottom: 13px;
}
.research-promo p {
  font-size: 11px;
  line-height: 1.7;
  color: #dbe5ff;
  margin-bottom: 22px;
}
.research-promo button {
  background: var(--accent);
  color: var(--ink);
  border: 0;
  width: 100%;
  font-size: 11px;
}
.tiny-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 3px;
}
.empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 9px;
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  max-width: 440px;
  margin: auto;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
.desk-skeleton {
  display: grid;
  gap: 15px;
}
.skeleton-hero,
.skeleton-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(105deg, var(--white) 0%, var(--brand-soft) 48%, var(--white) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
.skeleton-hero {
  height: 220px;
}
.skeleton-row {
  height: 115px;
}
.skeleton-row.short {
  width: 78%;
}
@keyframes skeleton-pulse {
  to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-hero,
  .skeleton-row { animation: none; }
}
.loading:before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
  font-size: 9px;
  color: #59677f;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  margin-bottom: 20px;
}
.research-form {
  display: flex;
  gap: 10px;
  align-items: end;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.field input {
  width: 100%;
}
.research-form .field:first-child {
  width: 180px;
}
.research-form .field:nth-child(2) {
  flex: 1;
}
.suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
  font-size: 10px;
  color: var(--muted);
}
.chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 10px;
  background: #f5f7fc;
  color: var(--brand);
}
.research-landing {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 35px;
  padding: 40px 28px;
}
.research-landing h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 400;
  margin: 15px 0 20px;
}
.research-landing p {
  color: var(--muted);
  font-size: 13px;
  max-width: 420px;
  line-height: 1.8;
}
.research-list {
  display: grid;
  gap: 0;
  align-content: center;
}
.research-list div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.research-list span {
  font-family: Georgia, serif;
  color: #ef866e;
  font-size: 24px;
}
.research-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 22px;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.research-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  min-width: 0;
}
.research-section h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.research-section .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.claim {
  font-size: 12px;
  color: #59677f;
  border-top: 1px solid #eaf0fb;
  padding-top: 12px;
  margin-top: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.claim button {
  display: block;
  color: var(--brand);
  background: #edf2ff;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  margin-top: 9px;
  text-align: left;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  background: #f5f7fc;
}
th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid #eaf0fb;
}
tbody tr:last-child td {
  border: 0;
}
.comparison {
  margin: 22px 0;
}
.comparison td {
  font-size: 11px;
}
.comparison td button {
  color: var(--brand);
  font-size: 10px;
  text-decoration: underline;
}
.comparison p {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0;
}
.sources {
  margin-top: 20px;
}
.sources summary {
  font-weight: 600;
  font-size: 13px;
}
.source-list {
  padding: 15px 0;
  display: grid;
  gap: 12px;
}
.source-list a,
.source-list span {
  font-size: 11px;
}
.source-list small {
  color: var(--muted);
  margin-left: 10px;
}
.watchlist-view {
  max-width: 980px;
}
.watchlist-view #add-company {
  flex-shrink: 0;
}
.watchlist-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.watchlist-company + .watchlist-company {
  border-top: 1px solid var(--line);
}
.watchlist-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  padding: 9px clamp(10px, 2.5vw, 18px);
  min-height: 62px;
  list-style: none;
}
.watchlist-summary::-webkit-details-marker {
  display: none;
}
.watchlist-summary:focus-visible {
  outline-offset: -3px;
  border-radius: 7px;
}
.watchlist-company[open] > .watchlist-summary,
.watchlist-summary:hover {
  background: var(--brand-soft);
}
.watchlist-company:first-child > .watchlist-summary {
  border-start-start-radius: 13px;
  border-start-end-radius: 13px;
}
.watchlist-company:last-child:not([open]) > .watchlist-summary {
  border-end-start-radius: 13px;
  border-end-end-radius: 13px;
}
.watchlist-identity,
.watchlist-quote {
  display: grid;
  gap: 2px;
  line-height: 1.3;
}
.watchlist-identity {
  overflow-wrap: anywhere;
}
.watchlist-name,
.watchlist-move {
  color: var(--muted);
  font-size: 12px;
}
.watchlist-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watchlist-company[open] .watchlist-name {
  white-space: normal;
}
.watchlist-quote {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.watchlist-chevron {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-soft);
}
.watchlist-chevron::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.watchlist-company[open] .watchlist-chevron::after {
  transform: translateY(2px) rotate(225deg);
}
.watchlist-details {
  padding: 12px clamp(10px, 2.5vw, 18px);
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.watchlist-details .sparkline {
  display: block;
  width: min(144px, 100%);
  height: auto;
  margin-block: 2px;
}
.watchlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 6px;
}
.watchlist-actions button {
  min-height: 44px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .panel {
  margin: 0;
}
.settings-grid h3 {
  margin-bottom: 9px;
}
.settings-grid p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.settings-grid .field {
  margin: 16px 0;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
}
.check input {
  accent-color: var(--brand);
  min-height: auto;
  width: 15px;
  height: 15px;
}
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}
.settings-actions p {
  font-size: 11px;
  color: var(--muted);
}
.alert-row {
  display: flex;
  align-items: start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
  margin-bottom: 12px;
}
.alert-row.read {
  background: var(--bg);
}
.alert-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf2ff;
  color: #234fbd;
  font-size: 16px;
  flex-shrink: 0;
}
.alert-body {
  flex: 1;
}
.alert-body h3 {
  font-size: 14px;
}
.alert-body p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.alert-row button {
  font-size: 10px;
  white-space: nowrap;
  color: var(--brand);
}
.alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.alert-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--white);
}
.alert-actions button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.alert-meta {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 10px;
}
.company-profile-quote {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  margin: 18px 0 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--brand-soft);
}
.company-profile-quote strong {
  font-size: 28px;
  line-height: 1.1;
}
.company-profile-quote small {
  width: 100%;
  color: var(--muted);
}
.company-profile-links {
  display: grid;
  gap: 8px;
  margin: 14px 0 22px;
}
.company-profile-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  text-decoration: none;
}
.company-profile-links a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 25px 100px #0003;
  width: min(740px, calc(100vw - 30px));
  max-height: 88vh;
  padding: 26px;
  color: var(--ink);
  background: var(--bg);
}
dialog::backdrop {
  background: #1d305666;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dialog-header .eyebrow {
  margin: 0;
}
.icon-button {
  font-size: 18px;
  padding: 5px 9px;
}
.dialog-content p,
dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 15px 0;
}
dialog h2 {
  margin-bottom: 15px;
}
dialog h3 {
  margin: 20px 0 9px;
}
.source-quote {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.8;
  background: white;
  border-left: 3px solid #ef866e;
  padding: 20px;
  overflow-wrap: anywhere;
}
.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.glossary dt {
  font-weight: 650;
  font-size: 12px;
  margin-bottom: 5px;
}
.glossary dd {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--brand);
  color: white;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  max-width: calc(100vw - 30px);
  box-shadow: 0 5px 25px #0002;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip {
  position: fixed;
  top: -60px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 25px 18px;
  }
  .workspace {
    margin-left: 190px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 30px 26px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 18px;
  }
  .stat {
    padding: 17px;
  }
  .heading-row {
    gap: 15px;
  }
  h1 {
    font-size: 30px;
  }
  .sidebar-caption {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .nav-item.active:before {
    left: -18px;
  }
  .watch-row {
    padding: 12px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 165px;
    padding: 24px 13px;
  }
  .workspace {
    margin-left: 165px;
  }
  .brand {
    font-size: 32px;
  }
  .sidebar-caption {
    font-size: 7px;
  }
  .nav-item {
    font-size: 12px;
    padding: 10px;
    gap: 8px;
  }
  .nav-item.active:before {
    left: -13px;
  }
  .sidebar-bottom {
    gap: 6px;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .tiny-note {
    display: none;
  }
  .heading-row {
    align-items: start;
  }
  .stats {
    margin-bottom: 24px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-note {
    font-size: 9px;
  }
  .date {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .research-form {
    flex-wrap: wrap;
  }
  .research-form .field:nth-child(2) {
    min-width: 200px;
  }
  .research-form .button {
    width: 100%;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 13px;
  }
  .sidebar {
    width: 100%;
    height: 65px;
    inset: auto 0 0;
    padding: 0;
    background: #fffffff5;
    border-right: 0;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .brand,
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    margin: 0;
    height: 100%;
    gap: 0;
    justify-content: space-around;
  }
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 9px;
    padding: 8px 2px;
    border-radius: 0;
  }
  .nav-item.active {
    background: transparent;
  }
  .nav-item.active:before {
    height: 3px;
    width: 22px;
    left: calc(50% - 11px);
    top: 0;
    border-radius: 0 0 3px 3px;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .nav-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 25px);
    font-size: 8px;
    padding: 0 4px;
  }
  .workspace {
    margin-left: 0;
    margin-bottom: 65px;
  }
  .topbar {
    height: 56px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 8px;
  }
  .text-button {
    font-size: 10px;
  }
  .top-actions {
    gap: 0;
  }
  main {
    padding: 25px 18px 20px;
  }
  .heading-row {
    display: block;
    margin-bottom: 18px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1.1px;
  }
  .subtitle {
    font-size: 12px;
    margin-top: 10px;
  }
  .data-banner {
    font-size: 10px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: block;
  }
  .data-banner > span {
    display: block;
  }
  #refresh-button {
    margin-top: 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 15px 17px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-note {
    font-size: 9px;
  }
  .stat-label {
    font-size: 10px;
  }
  .section-heading {
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .signal-card {
    padding: 17px;
  }
  .signal-title {
    font-size: 16px;
  }
  .signal-description {
    font-size: 11px;
  }
  .signal-top {
    gap: 7px;
  }
  .timestamp {
    font-size: 9px;
  }
  .signal-footer {
    font-size: 9px;
  }
  .signal-footer button {
    font-size: 10px;
  }
  .filters {
    gap: 6px;
  }
  .filters input {
    min-width: 130px;
  }
  .filters select {
    max-width: 145px;
  }
  .right-column {
    display: block;
  }
  .side-card {
    margin-top: 8px;
  }
  .research-promo h3 {
    max-width: none;
  }
  .research-promo p {
    max-width: 300px;
  }
  .watch-row {
    grid-template-columns: 1fr 85px 65px;
    padding: 13px 18px;
  }
  .sparkline {
    width: 85px;
  }
  .panel {
    padding: 18px;
  }
  .research-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
  }
  .research-form .field:first-child,
  .research-form .field:nth-child(2) {
    width: 100%;
    min-width: 0;
  }
  .research-landing {
    display: block;
    padding: 25px 6px;
  }
  .research-landing h2 {
    font-size: 31px;
  }
  .research-list {
    margin-top: 20px;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-section {
    padding: 19px;
  }
  .research-meta {
    gap: 8px;
    font-size: 10px;
  }
  .checklist {
    gap: 13px 8px;
  }
  .settings-actions {
    align-items: start;
    flex-direction: column;
  }
  .settings-actions .button {
    width: 100%;
  }
  .alert-row {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .alert-actions {
    margin-left: 44px;
    justify-content: flex-start;
  }
  .alert-body {
    min-width: 200px;
  }
  .alert-body h3 {
    font-size: 13px;
  }
  .glossary {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .toast {
    bottom: 80px;
  }
  footer {
    font-size: 8px;
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
  }
  .custom-window label {
    width: 100%;
  }
  .custom-window input {
    width: 100%;
  }
  .custom-window .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
}
