:root {
  --navy: #000e47;
  --ink: #191c1e;
  --muted: #5c636d;
  --soft: #98a0aa;
  --faint: #b3b9c2;
  --accent: #124af0;
  --surface: #f7f9fb;
  --card: #ffffff;
  --line: #e7eaf0;
  --line-soft: #eef1f5;
  --line-faint: #f1f4f8;
  --success: #0f7a52;
  --success-bright: #0f9d58;
  --warn: #c26a12;
  --error: #e0563f;
  --shadow-card: 0 1px 2px rgba(10, 18, 48, 0.04);
  --shadow-popover: 0 18px 40px -12px rgba(10, 18, 48, 0.28);
  --shadow-drawer: -20px 0 60px -20px rgba(10, 18, 48, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.material-symbols-outlined {
  direction: ltr;
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-feature-settings: "liga";
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: normal;
}

.icon-filled {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.app-shell {
  min-height: 100vh;
  background: var(--surface);
}

.topbar {
  align-items: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  height: 60px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: flex;
  flex: none;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  align-items: center;
  background: var(--navy);
  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.brand-name {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.vendor-pill {
  background: #eef2fe;
  border-radius: 999px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  max-width: 140px;
  overflow: hidden;
  padding: 3px 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-wrap {
  margin-left: 8px;
  position: relative;
  width: min(360px, 38vw);
}

.search-wrap .material-symbols-outlined {
  color: #a2a9b3;
  font-size: 19px;
  left: 11px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.search-input {
  background: var(--surface);
  border: 1px solid #e2e6ec;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  padding: 9px 12px 9px 37px;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  width: 100%;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 74, 240, 0.12);
}

.workspace {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-left: auto;
}

.workspace-copy {
  line-height: 1.15;
  text-align: right;
}

.workspace-name {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-label {
  color: var(--soft);
  font-size: 10.5px;
  margin-top: 2px;
}

.workspace-avatar {
  align-items: center;
  background: var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  height: 33px;
  justify-content: center;
  width: 33px;
}

.page {
  margin: 0 auto;
  max-width: 1360px;
  padding: 24px 26px 48px;
}

.page-head {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-title {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.page-subtitle {
  color: #8a9099;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 3px;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sort-select-wrap {
  align-items: center;
  display: inline-flex;
  flex: none;
  position: relative;
}

.sort-select {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  min-width: 162px;
  padding: 8px 34px 8px 12px;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.sort-select:hover {
  background: #fbfcfe;
  border-color: #d5dbe5;
}

.sort-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 74, 240, 0.14);
  outline: 0;
}

.sort-select-icon {
  color: #8a9099;
  font-size: 18px;
  pointer-events: none;
  position: absolute;
  right: 10px;
}

.secondary-button,
.primary-button,
.icon-button {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  transition: background 0.12s ease, border-color 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.secondary-button {
  background: #ffffff;
  border: 1px solid #e2e6ec;
  color: #44474c;
  padding: 8px 14px;
}

.secondary-button:hover,
.icon-button:hover {
  background: var(--line-soft);
}

.primary-button {
  background: var(--accent);
  border: 0;
  box-shadow: 0 6px 14px -6px rgba(18, 74, 240, 0.6);
  color: #ffffff;
  padding: 9px 14px;
}

.primary-button:hover {
  filter: brightness(1.07);
}

.tabs {
  align-items: center;
  border-bottom: 1px solid #e2e6ec;
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #7a828c;
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  margin-right: 12px;
  padding: 10px 4px;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.tab-button:hover {
  color: var(--navy);
}

.tab-button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.tab-count {
  background: var(--line-soft);
  border-radius: 999px;
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
}

.tab-button[aria-selected="true"] .tab-count {
  background: #e9edfd;
  color: #1d4ed8;
}

.filter-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.filter-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e6ec;
  border-radius: 10px;
  color: #44474c;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 700;
  gap: 6px;
  padding: 8px 12px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.filter-chip:hover {
  background: var(--line-soft);
}

.filter-chip.is-active {
  background: #eef2fe;
  border-color: var(--accent);
  color: var(--accent);
}

.reset-button {
  background: transparent;
  border: 0;
  color: #8a9099;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 4px;
}

.reset-button:hover {
  color: var(--navy);
}

.result-label {
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.popover {
  animation: pop 0.12s ease-out;
  background: #ffffff;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  box-shadow: var(--shadow-popover);
  display: none;
  padding: 8px;
  position: absolute;
  top: 44px;
  width: 220px;
  z-index: 40;
}

.popover.is-open {
  display: block;
}

.popover[data-popover="province"] {
  left: 0;
  max-height: min(620px, calc(100vh - 220px));
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  width: 296px;
}

.popover[data-popover="fit"] {
  left: 132px;
}

.popover-title {
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 8px;
}

.filter-option {
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 12.5px;
  font-weight: 600;
  gap: 9px;
  padding: 7px 8px;
  transition: background 0.12s ease;
}

.filter-group-title {
  color: #7a818c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 9px 8px 4px;
  text-transform: uppercase;
}

.location-option-name {
  flex: 1;
  min-width: 0;
}

.location-option-code {
  color: #7a818c;
  font-size: 11px;
  font-weight: 700;
}

.location-option .option-count {
  margin-left: 3px;
}

.filter-option input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.filter-option:hover {
  background: #f4f7fb;
}

.checkbox-proxy {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #c7ccd6;
  border-radius: 5px;
  display: inline-flex;
  height: 17px;
  justify-content: center;
  width: 17px;
}

.filter-option input:checked + .checkbox-proxy {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.option-count {
  color: #a2a9b3;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
}

.tier-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.table-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  overflow-y: hidden;
}

.table-header,
.signal-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.45fr 54px 2.95fr 108px 108px 70px 22px;
  min-width: 900px;
}

.table-header {
  background: #fafbfc;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 18px;
}

.header-label,
.header-sort {
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-sort {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  gap: 3px;
  padding: 0;
  text-align: left;
}

.header-sort:hover {
  color: var(--muted);
}

.header-label.center,
.header-sort.center {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.signal-row {
  background: #ffffff;
  border-bottom: 1px solid var(--line-faint);
  cursor: pointer;
  padding: 13px 18px;
  transition: background 0.1s ease;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row:hover,
.signal-row:focus-visible {
  background: #f4f7fb;
  outline: none;
}

.signal-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(18, 74, 240, 0.35);
}

.account-cell {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.avatar {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: none;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.account-copy {
  min-width: 0;
}

.account-name-row {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.account-name {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-name.is-new {
  font-weight: 800;
}

.new-pill {
  background: #e6f4ec;
  border-radius: 999px;
  color: var(--success);
  flex: none;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
}

.sector {
  color: var(--soft);
  display: -webkit-box;
  font-size: 11px;
  font-weight: 500;
  max-width: 210px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.province-pill {
  background: var(--line-soft);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 800;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
}

.province-cell {
  justify-self: center;
}

.signal-cell {
  min-width: 0;
}

.signal-title {
  color: #22262b;
  display: -webkit-box;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.signal-context {
  color: #8a9099;
  display: -webkit-box;
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fit-ring {
  height: 40px;
  justify-self: center;
  position: relative;
  width: 40px;
}

.fit-ring svg {
  transform: rotate(-90deg);
}

.fit-score {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 11.5px;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.contact-stack {
  align-items: center;
  display: flex;
  padding-left: 7px;
}

.contacts-cell {
  justify-self: center;
}

.contact-avatar,
.contact-more {
  align-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-flex;
  font-size: 9.5px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  margin-left: -7px;
  width: 26px;
}

.contact-more {
  background: var(--line-soft);
  color: var(--muted);
}

.discovery-label {
  color: var(--faint);
  font-size: 10.5px;
  font-style: italic;
  font-weight: 600;
}

.found-label {
  color: #a2a9b3;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.row-affordance {
  align-items: center;
  color: #b9c0cb;
  display: inline-flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.signal-row:hover .row-affordance,
.signal-row:focus-visible .row-affordance {
  opacity: 1;
  transform: translateX(0);
}

.row-affordance .material-symbols-outlined {
  font-size: 18px;
}

.table-state {
  color: var(--soft);
  min-width: 900px;
  padding: 48px 20px;
  text-align: center;
}

.table-state .material-symbols-outlined {
  color: #c7ccd6;
  font-size: 36px;
}

.state-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.state-copy {
  color: var(--soft);
  font-size: 12px;
  margin-top: 3px;
}

.skeleton-wrap {
  min-width: 860px;
  padding: 8px 18px;
}

.skeleton-row {
  animation: shimmer 1.2s ease-in-out infinite;
  background: var(--line-faint);
  border-radius: 9px;
  height: 56px;
  margin: 9px 0;
}

.source-footer {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  margin-top: 18px;
  text-align: center;
}

.drawer-overlay {
  background: rgba(10, 18, 48, 0.28);
  backdrop-filter: blur(3px);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 80;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  background: #ffffff;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 92vw;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  width: 580px;
  z-index: 90;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 24px 16px;
}

.drawer-header-main {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.drawer-title-wrap {
  min-width: 0;
}

.drawer-eyebrow-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fit-chip {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  padding: 2px 9px;
}

.drawer-account {
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.drawer-signal {
  color: #44474c;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 4px;
}

.drawer-meta {
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  gap: 8px 12px;
  margin-top: 9px;
}

.drawer-nav {
  align-items: center;
  display: flex;
  flex: none;
  gap: 5px;
}

.drawer-position {
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 700;
  margin-right: 3px;
  white-space: nowrap;
}

.icon-button {
  background: #ffffff;
  border: 1px solid #e2e6ec;
  color: #6b727c;
  height: 30px;
  padding: 0;
  width: 30px;
}

.icon-button.close {
  background: #f4f7fb;
  border: 0;
  margin-left: 2px;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.crm-helper {
  align-items: center;
  color: var(--soft);
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  margin-top: 11px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.drawer-section {
  margin-bottom: 26px;
}

.drawer-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 11px;
}

.section-heading h3 {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.why-card {
  background: #f2f5ff;
  border: 1px solid #e1e8fd;
  border-radius: 12px;
  color: #26324f;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  padding: 16px;
}

.badge {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
}

.badge.success {
  background: #e6f4ec;
  color: var(--success);
}

.badge.muted {
  background: var(--line-soft);
  color: var(--soft);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-card {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 13px 14px;
}

.drawer-contact-avatar {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.contact-content {
  flex: 1;
  min-width: 0;
}

.contact-name {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.contact-title {
  color: #7a828c;
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 9px;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.channel-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  color: #44474c;
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 600;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
}

.channel-chip:hover {
  background: var(--line-soft);
}

.channel-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-expand-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  color: var(--navy);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 12px;
  width: 100%;
}

.contact-expand-button:hover {
  background: #f4f7fb;
}

.contact-expand-button .material-symbols-outlined {
  color: var(--accent);
  font-size: 18px;
}

.contact-list-note {
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.empty-contacts {
  border: 1px dashed #d5dae4;
  border-radius: 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  padding: 18px;
  text-align: center;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.evidence-card,
.competition-card {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}

.evidence-quote {
  color: #44474c;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.55;
  white-space: pre-line;
}

.evidence-meta {
  align-items: start;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 6px 20px;
  grid-template-columns: 1.5fr 1fr;
  margin-top: 13px;
  padding-top: 13px;
}

.meta-label {
  color: #a2a9b3;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-value {
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2px;
  min-width: 0;
}

.source-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.03em;
  margin-top: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.source-link:hover {
  text-decoration: underline;
}

.competition-grid {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.competition-value {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 3px;
}





.toast {
  align-items: center;
  background: #0a1230;
  border-radius: 11px;
  bottom: 24px;
  box-shadow: 0 16px 36px -12px rgba(10, 18, 48, 0.6);
  color: #ffffff;
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  gap: 9px;
  left: 50%;
  padding: 12px 20px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 120;
}

.toast.is-open {
  animation: toast-in 0.2s ease-out;
  display: flex;
}


[hidden] {
  display: none !important;
}

@keyframes shimmer {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    gap: 9px;
    height: auto;
    padding: 10px 14px;
  }

  .search-wrap {
    margin-left: 0;
    order: 5;
    width: 100%;
  }

  .workspace-copy {
    display: none;
  }

  .page {
    padding: 16px 12px 44px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .filter-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .result-label {
    margin-left: 0;
    width: 100%;
  }

  .popover {
    left: 0 !important;
    max-width: calc(100vw - 24px);
    width: 220px;
  }

  .evidence-meta {
    grid-template-columns: 1fr;
  }

  .drawer-header-main {
    gap: 16px;
  }
}
