:root {
  --blue: #2678df;
  --blue-deep: #165fbf;
  --blue-soft: #edf4ff;
  --ink: #263344;
  --muted: #8490a1;
  --line: #e7ebf1;
  --bg: #f6f8fb;
  --shadow: 0 3px 5px -3px #2339540a, 0 10px 26px -18px #23395424;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    13px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    color 0.16s,
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #89baf3;
  outline-offset: 3px;
}
button:disabled,
select:disabled {
  opacity: 0.43;
  cursor: not-allowed;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar {
  height: 66px;
  background: #303843;
  color: white;
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0 29px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 #ffffff0c inset;
}
.brand {
  font-size: 25px;
  font-weight: 740;
  letter-spacing: 1.1px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.brand svg {
  width: 33px;
  fill: none;
  stroke: white;
  stroke-width: 2;
}
.lab-badge {
  font-size: 12px;
  color: #c1c8d2;
  letter-spacing: 0.1px;
  padding-left: 22px;
  border-left: 1px solid #58606a;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar nav a {
  font-size: 12px;
  color: #c5ccd6;
}
.topbar nav a:last-child {
  border: 1px solid #67717d;
  padding: 7px 13px;
  border-radius: 7px;
  color: #ecf0f5;
}
.topbar nav a:hover {
  color: white;
  border-color: #9ca7b5;
}
.workspace {
  display: flex;
  min-height: calc(100vh - 66px);
}
.sidebar {
  width: 224px;
  flex: none;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 30px 15px 21px;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.side-title,
.side-heading {
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #98a1af;
  padding: 0 13px 14px;
  font-weight: 650;
}
#feedNav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-button {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  color: #6c788a;
  gap: 11px;
  line-height: 1.4;
  position: relative;
  font-size: 12px;
}
.side-button .icon {
  width: 17px;
  height: 17px;
  color: #98a3b2;
}
.side-button:hover {
  background: #f5f7fa;
  color: #3b526c;
}
.side-button.active {
  background: var(--blue-soft);
  border-color: #e1edff;
  color: #236aca;
  font-weight: 600;
}
.side-button.active .icon {
  color: #307de0;
}
.side-button.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}
.side-button span {
  margin-left: auto;
  background: #f0f3f7;
  color: #8a97a8;
  border-radius: 5px;
  min-width: 20px;
  text-align: center;
  font-size: 10px;
  padding: 1px 5px;
}
#moreFeeds {
  margin-top: 9px;
}
.side-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 12px 18px;
}
.side-heading {
  margin-top: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
}
.side-heading button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: none;
  width: 22px;
  height: 22px;
  color: #98a5b5;
}
.side-heading button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.side-heading .icon {
  width: 14px;
  height: 14px;
}
.local-note {
  font-size: 10px;
  line-height: 1.65;
  color: #a2abba;
  margin: 16px 13px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-bottom .side-button {
  font-size: 11px;
}
main {
  padding: 23px 32px 30px;
  min-width: 0;
  flex: 1;
  max-width: 2100px;
}
.snapshot {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #65758a;
  padding: 0 1px;
  min-height: 22px;
}
.snapshot .icon {
  width: 13px;
  height: 13px;
  color: #65758a;
}
.snapshot strong {
  font-weight: 500;
  color: #65758a;
}
.snapshot button {
  margin-left: auto;
  color: #65758a;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 0;
  font-size: 11px;
}
.snapshot button:hover {
  color: var(--blue);
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 25px;
  gap: 18px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #65758a;
  font-weight: 500;
  letter-spacing: 0.15px;
}
.eyebrow .icon {
  width: 13px;
  height: 13px;
}
h1 {
  font-size: 30px;
  font-weight: 670;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin: 7px 0 9px;
  color: #25364a;
}
h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 630;
  letter-spacing: -0.6px;
}
.heading p,
.dialog-header p {
  color: #65758a;
  margin: 6px 0 0;
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: white;
  color: #53677f;
  white-space: nowrap;
  font-weight: 550;
  box-shadow: 0 1px 2px #1d365009;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button:hover {
  background: #f9fbfe;
  border-color: #bacde4;
  box-shadow: 0 2px 4px #1d36500b;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow:
    0 3px 6px #2478df20,
    0 1px 0 #ffffff20 inset;
}
.primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
#saveFeed {
  color: #2e75cb;
  border-color: #cddff4;
}
.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px 0;
  box-shadow: var(--shadow);
}
.search-row {
  display: flex;
  gap: 9px;
  align-items: center;
}
.search-input {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #f9fafc;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-input:focus-within {
  border-color: #92bced;
  box-shadow: 0 0 0 3px #edf5ff;
  background: white;
}
.search-input .icon {
  width: 18px;
  color: #9aa8ba;
}
.search-input input {
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  padding: 12px 0;
  color: #3c4d63;
  min-width: 0;
  font-size: 12px;
}
.search-input input::placeholder {
  color: #a0aaba;
}
.search-row > select {
  max-width: 126px;
}
select {
  border: 1px solid #e2e7ee;
  background-color: #fff;
  padding: 9px 24px 9px 10px;
  border-radius: 7px;
  color: #5b6d84;
  max-width: 220px;
  font-size: 12px;
}
#allSearch {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  color: #65758a;
  font-weight: 450;
  font-size: 11px;
  padding-left: 7px;
  padding-right: 4px;
}
#allSearch:hover {
  color: var(--blue);
}
.control-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f6;
  flex-wrap: wrap;
}
.control-row > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #65758a;
}
.control-row select {
  padding: 7px 22px 7px 9px;
  font-size: 11px;
  max-width: 180px;
  background-color: #fff;
}
.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #e1e7ee;
  border-radius: 7px;
  background: white;
  color: #63758b;
  font-size: 11px;
}
.control-button .icon {
  width: 14px;
  height: 14px;
  color: #8798ad;
}
.control-button:hover {
  border-color: #b8cde8;
  color: var(--blue);
}
#filtersButton {
  margin-left: auto;
}
.text-button {
  border: 0;
  background: none;
  color: #65758a;
  font-size: 11px;
  padding: 6px 2px 6px 7px;
}
.text-button:hover {
  color: var(--blue);
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0 13px;
  min-height: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  color: #65758a;
  background: #f1f6ff;
  border: 1px solid #e0ebfa;
  padding: 3px 7px 3px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.chip b {
  margin-left: 8px;
  font-size: 14px;
  line-height: 12px;
  font-weight: 400;
  color: #95adca;
}
.chip:hover {
  background: #e7f0fd;
  border-color: #c8ddf8;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 27px 0 18px;
  gap: 14px;
}
.results-bar strong {
  font-size: 13px;
  font-weight: 620;
  color: #5b6c81;
}
#resultNote {
  display: block;
  font-size: 10px;
  color: #a0aabb;
  margin-top: 2px;
}
.result-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}
.result-controls label {
  color: #65758a;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.result-controls select {
  background: white;
  border-color: #e5eaf1;
  font-size: 11px;
  max-width: 186px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.variety {
  white-space: nowrap;
}
.variety input {
  accent-color: var(--blue);
  width: 13px;
  height: 13px;
  margin: 0;
}
.density {
  display: grid;
  place-items: center;
  border: 1px solid #dfe6ee;
  color: #8296af;
  background: #fff;
  border-radius: 7px;
  width: 33px;
  height: 32px;
}
.density .icon {
  width: 15px;
  height: 15px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.grid.roomy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.card {
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.card:hover {
  border-color: #cedbeb;
  box-shadow:
    0 6px 24px -10px #23497822,
    0 2px 5px #23497809;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  padding: 16px 15px 9px;
  gap: 10px;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #f1f5fb;
  border: 1px solid #e7eef7;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #7091b7;
  font-size: 10px;
  font-weight: 600;
  flex: none;
  letter-spacing: -0.2px;
}
.advertiser {
  font-size: 12px;
  font-weight: 610;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #394b61;
}
.card-meta {
  font-size: 10px;
  color: #a4adbb;
  margin-top: 1px;
}
.card-person {
  min-width: 0;
  flex: 1;
}
.save-ad {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: #a2b1c2;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  padding: 0;
  flex: none;
}
.save-ad .icon {
  width: 17px;
  height: 17px;
}
.save-ad:hover {
  background: #f2f6fd;
  color: var(--blue);
}
.save-ad.saved {
  color: var(--blue);
  background: #f1f6ff;
}
.save-ad.saved .icon {
  fill: #d8e9ff;
}
.card-copy {
  margin: 0 15px 10px;
  font-size: 12px;
  line-height: 1.65;
  color: #65758a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.card-labels {
  margin: 0 15px 13px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 17px;
}
.tag {
  font-size: 9px;
  border: 1px solid #e9edf3;
  border-radius: 4px;
  color: #65758a;
  padding: 1px 6px;
  background: #fafbfd;
}
.tag:first-child {
  color: #65758a;
  background: #f5f8fd;
  border-color: #e6edf7;
}
.inference {
  font-size: 9px;
  color: #b0b9c6;
  margin-left: auto;
}
.media-wrap {
  background: #f0f3f7;
  position: relative;
  width: calc(100% - 16px);
  margin: 0 8px;
  aspect-ratio: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
}
.media-wrap img,
.media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-unavailable {
  font-size: 11px;
  color: #a1adbd;
  text-align: center;
  padding: 40px 20px;
}
.media-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background: #25374cad;
  backdrop-filter: blur(8px);
  padding: 3px 7px;
  border: 1px solid #ffffff21;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.6px;
  pointer-events: none;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.media-kind .icon {
  width: 10px;
  height: 10px;
}
.dates {
  padding: 12px 15px 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: #65758a;
}
.dates b {
  color: #65758a;
  font-weight: 450;
  margin-left: 2px;
}
.metrics {
  padding: 0 15px 13px;
  display: flex;
  gap: 28px;
}
.metric b {
  display: block;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.3px;
  color: #5a6d85;
}
.metric span {
  font-size: 9px;
  color: #65758a;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  font-size: 10px;
  color: #99a7b7;
  gap: 7px;
  border-top: 1px solid #edf1f6;
  background: #fcfdff;
}
.why-button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #4e88d2;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.why-button .icon {
  width: 12px;
  height: 12px;
}
.rate {
  font-size: 9px;
  color: #65758a;
}
.more-row {
  text-align: center;
  margin: 31px 0;
}
footer {
  text-align: center;
  color: #a8b1bf;
  font-size: 10px;
  margin: 25px 0 10px;
}
.empty {
  padding: 76px 24px;
  text-align: center;
  color: #93a1b3;
  grid-column: 1/-1;
  border: 1px dashed #d9e2ee;
  border-radius: 13px;
  background: #fafcfe;
}
.empty h3 {
  color: #607b9c;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.empty p {
  margin: 8px 0 23px;
}
.skeleton {
  height: 470px;
  border-radius: 13px;
  background: #e9edf4;
  animation: pulse 1.5s ease-in-out infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.45;
  }
}
dialog {
  border: 1px solid #e3e9f1;
  border-radius: 17px;
  box-shadow: 0 28px 100px #18335230;
  padding: 0;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #24374c55;
  backdrop-filter: blur(5px);
}
.dialog-header {
  padding: 27px 29px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 23px;
  line-height: 24px;
  border: 1px solid #e8edf4;
  border-radius: 7px;
  background: #fafbfd;
  color: #98a6b8;
  padding: 0;
}
.close:hover {
  color: #476386;
  background: #f0f5fc;
}
.filters-dialog {
  width: min(850px, 95vw);
}
.filter-fields {
  padding: 25px 29px;
  max-height: 62vh;
  overflow: auto;
  background: #fafbfd;
}
.filter-group {
  border: 1px solid #e7ecf3;
  border-radius: 10px;
  background: #fff;
  margin: 0 0 19px;
  padding: 18px;
}
.filter-group legend {
  float: left;
  width: 100%;
  font-size: 10px;
  font-weight: 650;
  color: #6983a4;
  letter-spacing: 0.65px;
  margin-bottom: 16px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  clear: both;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #65758a;
  font-size: 11px;
}
.filter-field select,
.filter-field input {
  width: 100%;
  max-width: none;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  padding: 9px;
  background: #fff;
  color: #5a718e;
  font-size: 12px;
}
.filter-field select[multiple] {
  height: 118px;
  padding: 6px;
}
.filter-field select[multiple] option {
  padding: 3px 5px;
}
.filter-hint {
  font-size: 10px;
  line-height: 1.65;
  color: #65758a;
  margin: 12px 0 0;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 19px 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
}
.dialog-footer span {
  font-size: 10px;
  color: #65758a;
}
.detail-dialog {
  width: min(1020px, 96vw);
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
}
.detail-media {
  background: #f3f6fa;
  padding: 24px;
  display: flex;
  align-items: flex-start;
}
.detail-media img,
.detail-media video {
  max-width: 100%;
  max-height: 65vh;
  margin: auto;
  object-fit: contain;
  border-radius: 9px;
}
.detail-content {
  padding: 27px;
  max-height: 74vh;
  overflow: auto;
}
.detail-content h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 610;
  letter-spacing: -0.6px;
}
.detail-copy {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
  color: #65758a;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 25px;
}
.detail-section h4 {
  font-size: 10px;
  letter-spacing: 0.7px;
  margin: 0 0 12px;
  color: #8a9db5;
}
.evidence-list {
  padding-left: 17px;
  color: #65758a;
  font-size: 12px;
  line-height: 1.7;
}
.evidence-list li {
  margin: 8px 0;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  font-size: 12px;
  color: #607b9d;
}
.detail-facts span {
  display: block;
  color: #65758a;
  font-size: 10px;
  margin-bottom: 3px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}
.detail-actions .button {
  font-size: 11px;
}
.utility-dialog {
  width: min(630px, 94vw);
}
.utility-body {
  padding: 27px 29px;
  max-height: 72vh;
  overflow: auto;
}
.utility-body p {
  color: #65758a;
  line-height: 1.75;
}
.utility-body dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 11px;
  font-size: 12px;
}
.utility-body dt {
  color: #9eafc3;
}
.utility-body dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #7891af;
}
.utility-body h3 {
  font-size: 14px;
  font-weight: 550;
  color: #6f88a7;
  margin-top: 25px;
}
.library-item {
  display: block;
  width: 100%;
  background: white;
  text-align: left;
  padding: 16px;
  border: 1px solid #e2eaf3;
  border-radius: 9px;
  margin: 9px 0;
  color: #5f7fa5;
}
.library-item:hover {
  background: #f7faff;
  border-color: #c2d8f3;
}
.library-item strong {
  font-weight: 550;
}
.library-item span {
  display: block;
  font-size: 11px;
  color: #98abc2;
  margin-top: 5px;
}
.save-form label {
  display: block;
  color: #8198b4;
  font-size: 11px;
}
.save-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dae5f2;
  border-radius: 8px;
  margin: 7px 0 15px;
  color: #5a789d;
}
.notice {
  padding: 14px 16px;
  background: #f3f7fd;
  border: 1px solid #e8eff9;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #65758a;
}
.delete-feed {
  float: right;
  border: 0;
  background: none;
  color: #9aacbf;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  background: #35485f;
  color: #e7eff8;
  padding: 12px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #283e6125;
  z-index: 30;
  font-size: 12px;
}
#status:not(:empty) {
  margin: 13px 0;
  color: #9c916f;
  font-size: 12px;
}
@media (min-width: 1680px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid.roomy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  main {
    padding: 22px 24px;
  }
  .sidebar {
    width: 207px;
  }
  .grid {
    gap: 15px;
  }
  .control-row > label {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .control-row {
    align-items: flex-end;
  }
  .result-controls {
    gap: 9px;
  }
  .result-controls select {
    max-width: 160px;
  }
  .metrics {
    gap: 22px;
  }
  .card-bottom {
    flex-wrap: wrap;
  }
  .heading p {
    max-width: 500px;
  }
}
@media (max-width: 1050px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .search-row {
    flex-wrap: wrap;
  }
  .search-input {
    min-width: 240px;
  }
  #allSearch {
    display: inline-flex;
  }
  .control-row {
    gap: 8px;
  }
  .control-row select {
    max-width: 147px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 18px;
    height: 59px;
    gap: 15px;
  }
  .brand {
    font-size: 22px;
  }
  .brand svg {
    width: 29px;
  }
  .lab-badge {
    font-size: 10px;
    padding-left: 14px;
  }
  .topbar nav {
    gap: 12px;
  }
  .topbar nav a {
    font-size: 10px;
  }
  .topbar nav a:first-child {
    display: none;
  }
  .topbar nav a:last-child {
    padding: 5px 9px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 13px 12px 9px;
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .side-title,
  .side-heading,
  .local-note,
  .side-divider,
  .sidebar-bottom {
    display: none;
  }
  #feedNav {
    flex-direction: row;
    gap: 5px;
    overflow: auto;
  }
  .side-button {
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
    display: inline-flex;
    border-radius: 7px;
    gap: 7px;
  }
  .side-button .icon {
    width: 14px;
    height: 14px;
  }
  .side-button.active::before {
    display: none;
  }
  #moreFeeds,
  #savedAds,
  #following {
    margin-top: 6px;
  }
  #savedFeedNav {
    display: flex;
    overflow: auto;
  }
  main {
    padding: 17px;
  }
  .heading {
    margin: 20px 0;
  }
  h1 {
    font-size: 27px;
  }
  .heading p {
    max-width: 300px;
    font-size: 11px;
  }
  .heading .button {
    padding: 8px 11px;
    font-size: 11px;
  }
  .snapshot {
    font-size: 10px;
    align-items: flex-start;
    line-height: 1.5;
  }
  .snapshot button {
    font-size: 10px;
  }
  .search-panel {
    padding: 13px 13px 0;
    border-radius: 11px;
  }
  .search-row {
    gap: 7px;
  }
  .search-input {
    flex-basis: 100%;
    min-width: 0;
  }
  .search-row select {
    flex: 1;
    max-width: none;
  }
  .search-row .button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .control-row {
    gap: 8px;
  }
  .control-row select {
    max-width: 137px;
  }
  #filtersButton {
    margin-left: 0;
  }
  .result-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .grid,
  .grid.roomy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .card-top {
    padding: 12px 11px 7px;
    gap: 7px;
  }
  .avatar {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 8px;
  }
  .advertiser {
    font-size: 11px;
  }
  .card-meta {
    font-size: 8px;
  }
  .card-copy {
    margin: 0 11px 8px;
    font-size: 11px;
    min-height: 36px;
  }
  .card-labels {
    margin: 0 11px 10px;
  }
  .inference {
    display: none;
  }
  .dates {
    padding: 9px 11px;
    font-size: 8px;
    display: block;
  }
  .dates span {
    display: block;
    margin-top: 2px;
  }
  .metrics {
    padding: 0 11px 11px;
    gap: 17px;
  }
  .metric b {
    font-size: 13px;
  }
  .metric span {
    font-size: 8px;
  }
  .card-bottom {
    padding: 10px 11px;
    gap: 6px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-media {
    max-height: 42vh;
  }
  .detail-media img,
  .detail-media video {
    max-height: 36vh;
  }
  .detail-content {
    max-height: none;
  }
  .detail-dialog {
    overflow: auto;
  }
  .dialog-header {
    padding: 20px;
  }
  .filter-fields,
  .utility-body {
    padding: 18px;
  }
  .filter-group {
    padding: 14px;
  }
  .dialog-footer {
    padding: 17px;
  }
  .detail-dialog .dialog-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
  }
}
@media (max-width: 430px) {
  .grid,
  .grid.roomy {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .lab-badge {
    display: none;
  }
  .heading p {
    max-width: 220px;
  }
  .snapshot span {
    max-width: 245px;
  }
  .metrics {
    gap: 34px;
  }
  .dates {
    display: flex;
  }
  .avatar {
    width: 33px;
    height: 33px;
  }
  .advertiser {
    font-size: 12px;
  }
  .card-meta {
    font-size: 10px;
  }
  .card-copy {
    font-size: 12px;
  }
  .inference {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover {
    transform: none;
  }
}
.personalize-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin: 0 0 19px;
  background: #eef5ff;
  border: 1px solid #deebfc;
  border-radius: 11px;
}
.personalize-banner strong {
  display: block;
  color: #5b83b5;
  font-size: 12px;
  font-weight: 550;
}
.personalize-banner span {
  display: block;
  color: #819cbd;
  font-size: 11px;
  margin-top: 4px;
}
.personalize-banner .button {
  font-size: 11px;
  border-color: #cfdef2;
  color: #5a88be;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .sidebar-bottom {
    display: flex;
    padding-top: 6px;
    margin: 0;
    gap: 5px;
  }
  .sidebar-bottom .side-button {
    font-size: 10px;
  }
  .personalize-banner {
    padding: 13px;
    gap: 12px;
  }
  .personalize-banner span {
    font-size: 10px;
  }
  .personalize-banner .button {
    font-size: 10px;
    padding: 7px 10px;
  }
}

/* Chosen presets and the complete catalog are separate from saved searches. */
.chosen-feed-row {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.chosen-feed-row .side-button {
  flex: 1;
  min-width: 0;
}
.chosen-feed-row .side-button .feed-label {
  margin: 0;
  padding: 0;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  color: inherit;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
}
.feed-add-button {
  flex: none;
  border: 1px solid #dbe6f4;
  border-radius: 6px;
  background: white;
  color: #236aca;
  padding: 5px 7px;
  font-size: 11px;
}
.feed-add-button:hover {
  background: var(--blue-soft);
}
.temporary-feed {
  border: 1px dashed #dbe6f4;
  border-radius: 8px;
  padding-right: 5px;
}
.catalog-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e8edf4;
  padding: 16px 0;
}
.catalog-feed-item strong {
  color: #35485f;
  font-size: 13px;
}
.catalog-feed-item p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #758398;
}
.catalog-feed-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.always-feed {
  color: #8593a5;
  font-size: 10px;
  max-width: 60px;
}
@media (max-width: 600px) {
  .catalog-feed-item {
    align-items: flex-start;
    gap: 10px;
  }
  .catalog-feed-actions {
    flex-direction: column;
  }
  .catalog-feed-actions .button {
    min-width: 65px;
  }
}

@media (max-width: 760px) {
  #feedNav .chosen-feed-row {
    flex: 0 0 auto;
  }
  #feedNav .chosen-feed-row .feed-label {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* Everyday filter shortcuts and progressively disclosed research controls. */
.control-row {
  flex-wrap: wrap;
  row-gap: 12px;
}
.control-row > label {
  min-width: 105px;
}
.control-row select {
  max-width: 165px;
}
.filter-group legend {
  font-size: 13px;
  letter-spacing: 0;
  color: #334861;
}
.filter-disclosure {
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: #fff;
}
.filter-disclosure summary {
  cursor: pointer;
  color: #53677f;
  font-size: 13px;
  font-weight: 600;
}
.filter-disclosure[open] summary {
  margin-bottom: 18px;
}
.filter-disclosure .filter-group {
  padding: 0;
  border: 0;
}
.filter-field small {
  font-size: 10px;
  line-height: 1.5;
  color: #8794a5;
}
.filter-field select[multiple] {
  height: 145px;
}
.filter-field select:disabled,
.filter-field input:disabled {
  background: #f6f8fb;
  color: #929dab;
}
@media (max-width: 650px) {
  .control-row > label {
    flex: 1 1 40%;
  }
  .control-row select {
    max-width: 100%;
  }
}
.card-price {
  margin: 0 16px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #445b76;
}
.card-price span {
  color: #8795a7;
  margin-right: 4px;
}
.price-evidence {
  margin: 0;
  padding-left: 18px;
}
.price-evidence li {
  margin-bottom: 12px;
}
.price-evidence small {
  display: block;
  margin-top: 4px;
  color: #8190a2;
  font-size: 11px;
}
.filter-choice-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  grid-column: 1 / -1;
}
.filter-choice-group legend {
  font-size: 12px;
  margin-bottom: 10px;
  color: #65758a;
}
.filter-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  clear: both;
  max-height: 210px;
  overflow: auto;
  padding: 2px;
}
.filter-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #526780;
  cursor: pointer;
  background: #fff;
}
.filter-choice:has(input:checked) {
  border-color: #7ba9ee;
  background: #edf4ff;
  color: #245ca5;
}
.filter-choice:has(input:disabled) {
  color: #919aa8;
  background: #f8f9fb;
  cursor: default;
}
.filter-choice input {
  margin: 0;
  accent-color: #3478d5;
}
.filter-choice small {
  font-size: 10px;
  opacity: 0.75;
}

/* Keep a larger search vocabulary readable without making the default page dense. */
.filter-field input[type="date"] { min-width: 0; width: 100%; }
.filter-choice-group:has(.filter-choices:empty) .filter-choices { display: none; }
.coverage-hint { display: block; color: #8794a5; }
.filter-disclosure > summary { line-height: 1.5; }
.control-row select:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 650px) {
  .search-row > select { max-width: 100%; }
}

/* Advertiser images retain initials underneath when the source fails. */
.avatar { position: relative; overflow: hidden; }
.avatar .advertiser-picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.metrics { flex-wrap: wrap; }
