@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Figtree:wght@500;600;700;800;900&display=swap");

:root {
  --paper: #fffde8;
  --panel: rgba(255, 253, 232, 0.9);
  --ink: #191a17;
  --muted: #74766d;
  --line: #dfddc5;
  --green: #00594d;
  --mint: #d9f3e8;
  --yellow: #fee79a;
  --coral: #f7b6a6;
  --blue: #d6e8ff;
  --lavender: #edcffd;
  --orange: #ffa43b;
  --shadow: 0 10px 0 rgba(25, 26, 23, 0.05);
  --serif: "EB Garamond", Georgia, "Times New Roman", Times, serif;
  --sans: "Figtree", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--green);
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(237, 207, 253, 0.34), transparent 18rem),
    radial-gradient(circle at 86% 2%, rgba(255, 164, 59, 0.16), transparent 18rem),
    var(--paper);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

body::before,
body::after {
  color: rgba(25, 26, 23, 0.045);
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 17rem);
  line-height: 0.8;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  content: "Signal";
  left: -5vw;
  top: 20vh;
  transform: rotate(-11deg);
}

body::after {
  bottom: 3vh;
  content: "Fifteen";
  right: -7vw;
  transform: rotate(7deg);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

.dashboard-shell {
  margin: 0 auto;
  max-width: 1500px;
  padding: clamp(18px, 3vw, 34px);
}

.dashboard-header {
  display: grid;
  gap: 28px;
  margin-bottom: 26px;
}

.dashboard-topbar {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  margin-bottom: 0;
}

.brand-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-lockup-img {
  display: block;
  height: 38px;
  object-fit: contain;
  object-position: left center;
  width: 250px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.4vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 30px;
  max-width: 1120px;
}

.dashboard-hero {
  background: transparent;
  border: 0;
  padding: clamp(10px, 3vw, 26px) 0 8px;
}

.dashboard-hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 850;
  line-height: 1.32;
  margin-bottom: 0;
  max-width: 900px;
}

.header-actions {
  border-left: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
  padding-left: 28px;
}

.header-actions button,
.control-panel button,
.empty-state a,
.empty-state button {
  align-items: center;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--ink);
  color: var(--paper);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.header-actions button:nth-child(2),
.empty-state a {
  background: var(--lavender);
  color: var(--ink);
}

.account-chip {
  align-items: center;
  background: var(--mint);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 950;
  min-height: 44px;
  max-width: 260px;
  overflow: hidden;
  padding: 10px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 42px;
}

.meta-grid article {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 122px;
  padding: 20px;
}

.podcast-stat {
  position: relative;
}

.meta-grid span,
dt {
  color: var(--muted);
  display: block;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-grid strong {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin-top: 10px;
}

.idea-period-button {
  align-items: center;
  appearance: none;
  background: rgba(255, 253, 232, 0.78);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 7px;
  line-height: 1;
  margin-top: 12px;
  min-height: 36px;
  outline: 0;
  padding: 7px 13px;
}

.idea-period-button::after {
  content: "▾";
  font-size: 0.7rem;
  line-height: 1;
}

.idea-period-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 89, 77, 0.16);
}

.idea-quality-stats {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 12px 0 0;
  max-width: 360px;
}

.live-status {
  align-items: center;
  background: var(--mint);
  border: 2px solid rgba(0, 89, 77, 0.18);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 900;
  gap: 8px;
  margin: 0;
  min-height: 34px;
  padding: 7px 12px;
}

.live-status i {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(13, 91, 76, 0.1);
  display: block;
  height: 9px;
  position: relative;
  width: 9px;
}

.live-status i::after {
  animation: livePulse 1.4s ease-out infinite;
  border: 2px solid var(--green);
  border-radius: 999px;
  content: "";
  inset: -6px;
  opacity: 0;
  position: absolute;
}

.header-updated {
  color: #0d2f2f;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 600;
  margin: 0;
}

@keyframes livePulse {
  0% {
    opacity: 0.65;
    transform: scale(0.55);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.podcast-count-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.podcast-logo-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.podcast-logo {
  align-items: center;
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 58px;
}

.podcast-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.podcast-logo[data-source="YC"] {
  background: #ff5a1f;
}

.podcast-logo[data-source="YC"] img {
  transform: scale(0.84);
}

.podcast-logo[data-source="a16z"] {
  background: #5a0015;
}

.podcast-logo[data-source="20VC"] {
  background: #050505;
}

.podcast-logo[data-source="20VC"] img,
.podcast-logo[data-source="a16z"] img {
  transform: scale(0.82);
}

.podcast-dropdown {
  margin-top: 12px;
}

.podcast-dropdown summary {
  align-items: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  list-style: none;
  min-height: 36px;
  padding: 7px 13px;
}

.podcast-dropdown summary::-webkit-details-marker {
  display: none;
}

.podcast-dropdown summary::after {
  content: "▾";
  font-size: 0.7rem;
  line-height: 1;
}

.podcast-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.podcast-dropdown ul {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 10px;
}

.podcast-dropdown li {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: space-between;
  line-height: 1.2;
}

.podcast-dropdown b {
  background: var(--mint);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  padding: 4px 7px;
}

.control-panel {
  align-items: center;
  display: block;
  margin: 0 0 22px;
  padding: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.filter-row button {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 950;
  gap: 7px;
  min-height: 42px;
  padding: 8px 16px;
  white-space: nowrap;
}

.filter-row button.active {
  background: var(--green);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-row button[data-filter="Tinder mode"] {
  background: linear-gradient(135deg, #ff8a5b 0%, #f6c85f 46%, #16b8a4 100%);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
}

.filter-row button[data-filter="Tinder mode"].active {
  color: var(--ink);
}

.tinder-icon {
  font-size: 1rem;
  line-height: 1;
}

.category-filter-control {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px 0 16px;
}

.category-filter-control.active {
  background: var(--mint);
  border-color: var(--ink);
}

.category-filter-control span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-filter-control select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 11px center / 7px 7px no-repeat,
    transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 950;
  min-height: 38px;
  min-width: 230px;
  padding: 7px 32px 7px 0;
}

.category-filter-control select:focus {
  outline: none;
}

.idea-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.idea-grid.tinder-grid {
  display: block;
}

.tinder-mode,
.tinder-empty {
  margin: 0 auto;
  max-width: 980px;
}

.tinder-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

.tinder-intro {
  margin-bottom: 22px;
  text-align: center;
}

.tinder-intro p {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.36;
  margin: 0;
}

.tinder-category-control {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin-top: 16px;
}

.tinder-category-control span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tinder-category-control select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--green) 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--mint), var(--paper));
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  min-height: 42px;
  min-width: 210px;
  padding: 8px 38px 8px 16px;
}

.tinder-progress {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
}

.tinder-card-column {
  margin: 0 auto;
  max-width: 620px;
  min-width: 0;
  width: 100%;
}

.tinder-card,
.tinder-empty {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 10px 0 rgba(25, 26, 23, 0.08);
  padding: clamp(22px, 4vw, 36px);
}

.tinder-card {
  cursor: grab;
  min-height: 520px;
  touch-action: pan-y;
  transition: transform 180ms ease;
  user-select: none;
}

.tinder-card:active {
  cursor: grabbing;
}

.tinder-stage {
  align-items: center;
  display: block;
  margin: 0 auto;
  max-width: 620px;
  position: relative;
}

.tinder-card h2,
.tinder-empty h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 18px;
}

.tinder-summary,
.tinder-empty p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 600;
  line-height: 1.38;
  margin: 0 0 18px;
}

.tinder-details {
  border-top: 2px solid var(--line);
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-top: 18px;
}

.tinder-details div {
  display: grid;
  gap: 5px;
}

.tinder-details dd {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.tinder-stage > button,
.tinder-email-form button {
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  min-height: 50px;
  padding: 12px 18px;
}

.tinder-stage > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.tinder-decline {
  right: calc(100% + 34px);
}

.tinder-accept {
  left: calc(100% + 34px);
}

.tinder-decline {
  background: #fff5f0;
}

.tinder-accept {
  background: linear-gradient(135deg, var(--yellow), var(--mint));
}

.tinder-empty {
  text-align: center;
}

.tinder-email-form {
  display: grid;
  gap: 12px;
  margin: 26px auto 0;
  max-width: 520px;
}

.tinder-email-form label {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tinder-email-form div {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tinder-email-form input {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  min-height: 50px;
  min-width: 0;
  padding: 12px 18px;
}

.tinder-email-form button {
  background: var(--lavender);
}

.idea-card,
.empty-state {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.idea-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  position: relative;
}

.favorite-toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(25, 26, 23, 0.48);
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: clamp(16px, 2vw, 26px);
  top: clamp(14px, 2vw, 22px);
  transition: color 120ms ease, transform 120ms ease;
  width: 48px;
  z-index: 2;
}

.favorite-toggle svg {
  display: block;
  fill: transparent;
  height: clamp(30px, 3vw, 38px);
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: clamp(30px, 3vw, 38px);
}

.favorite-toggle:hover {
  color: rgba(25, 26, 23, 0.62);
  transform: translateY(-1px);
}

.favorite-toggle.saved {
  color: #f5c84b;
}

.favorite-toggle.saved svg {
  fill: currentColor;
  stroke: #1a1a17;
  stroke-width: 1.4;
}

.favorite-toggle:focus-visible {
  border-radius: 999px;
  outline: 3px solid rgba(0, 89, 77, 0.18);
  outline-offset: 2px;
}

.favorite-toggle + h2 {
  padding-right: clamp(42px, 5vw, 72px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  inset: 0;
  position: fixed;
  z-index: 100;
}

.auth-modal-backdrop {
  background: rgba(25, 26, 23, 0.38);
  inset: 0;
  position: absolute;
}

.auth-dialog {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 12px 0 rgba(25, 26, 23, 0.18);
  left: 50%;
  max-height: calc(100vh - 34px);
  max-width: 520px;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 28px), 520px);
}

.auth-close {
  align-items: center;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
}

.auth-kicker,
.auth-form span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-dialog h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 6px 42px 12px 0;
}

.auth-copy {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 18px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tabs button {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font: inherit;
  font-weight: 950;
  min-height: 42px;
  padding: 8px 16px;
}

.auth-tabs button.active {
  background: var(--green);
  border-color: var(--ink);
  color: var(--paper);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label[hidden] {
  display: none;
}

.auth-form input {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  min-height: 50px;
  padding: 12px 14px;
}

.auth-error {
  background: #fff5f0;
  border: 2px solid var(--coral);
  border-radius: 12px;
  color: #8f2d1d;
  font-weight: 850;
  margin: 0;
  padding: 10px 12px;
}

.auth-submit,
.google-auth-button {
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
  display: inline-flex;
  font: inherit;
  font-weight: 950;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  width: 100%;
}

.auth-submit {
  background: var(--yellow);
  margin-top: 4px;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 950;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  letter-spacing: 0.12em;
  margin: 18px 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  height: 2px;
}

.google-auth-button {
  background: var(--panel);
}

.google-auth-button span {
  align-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.toast-message {
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 5px 0 var(--ink);
  color: var(--paper);
  font-weight: 950;
  left: 50%;
  margin: 0;
  max-width: min(540px, calc(100vw - 28px));
  padding: 12px 18px;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  z-index: 120;
}

.toast-message[hidden] {
  display: none;
}

.freshness-label {
  align-self: flex-start;
  background: rgba(0, 82, 69, 0.1);
  border: 2px solid rgba(0, 82, 69, 0.2);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 8px 11px;
  text-transform: uppercase;
}

.merged-signal-label {
  align-self: flex-start;
  background: var(--yellow);
  border: 2px solid rgba(25, 26, 23, 0.26);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: -8px 0 0;
  padding: 8px 11px;
  text-transform: uppercase;
}

.tag-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idea-card h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 0;
}

.summary,
.idea-details dd,
.evidence-card p,
.empty-state p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.summary {
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  margin-bottom: 0;
}

.tag-row > span {
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  padding: 7px 12px;
}

.tag-row > span:nth-child(4n + 1) { background: var(--blue); }
.tag-row > span:nth-child(4n + 2) { background: var(--yellow); }
.tag-row > span:nth-child(4n + 3) { background: var(--mint); }
.tag-row > span:nth-child(4n + 4) { background: var(--coral); }

.source-toggle {
  align-self: flex-start;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: -8px;
  padding: 0;
}

.source-toggle:focus-visible {
  border-radius: 999px;
  outline: 3px solid rgba(0, 89, 77, 0.18);
  outline-offset: 2px;
}

.card-view-toggle {
  display: inline-flex;
  gap: 8px;
}

.card-view-toggle button {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--line);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  padding: 8px 13px;
}

.card-view-toggle button.active {
  background: var(--green);
  border-color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  color: var(--paper);
}

.idea-details {
  display: grid;
  gap: 0;
  margin-left: 6px;
  margin-top: 18px;
  position: relative;
}

.idea-details div {
  display: grid;
  gap: 7px;
  padding: 0 0 26px 36px;
  position: relative;
}

.idea-details div::before {
  background: var(--panel);
  border: 3px solid rgba(0, 89, 77, 0.22);
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 0;
  position: absolute;
  top: 2px;
  width: 13px;
  z-index: 1;
}

.idea-details div::after {
  background: rgba(0, 89, 77, 0.18);
  content: "";
  height: 100%;
  left: 7.5px;
  position: absolute;
  top: 20px;
  width: 2px;
}

.idea-details div:last-child {
  padding-bottom: 0;
}

.idea-details div:last-child::after {
  display: none;
}

.idea-details .detail-more-control {
  display: block;
  padding-bottom: 0;
  padding-top: 0;
}

.idea-details .detail-more-control::before,
.idea-details .detail-more-control::after {
  display: none;
}

.detail-more-control button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 6px;
  line-height: 1;
  padding: 0;
}

.detail-more-control button span {
  font-size: 0.92em;
  font-weight: 850;
  line-height: 1;
}

.detail-more-control button:focus-visible {
  border-radius: 999px;
  outline: 3px solid rgba(0, 89, 77, 0.18);
  outline-offset: 4px;
}

dt {
  margin-bottom: 5px;
}

dd {
  margin-left: 0;
  margin-bottom: 0;
}

.evidence-panel {
  border-top: 2px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.evidence-panel[hidden] {
  display: none;
}

.evidence-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.evidence-card h3 {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.quote {
  border-left: 4px solid var(--green);
  color: var(--ink);
  font-weight: 750;
  margin-bottom: 10px;
  padding-left: 12px;
}

.grounding-explanation {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.grounding-explanation div {
  display: grid;
  gap: 2px;
}

.grounding-explanation dt {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grounding-explanation dd {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.supports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.supports span {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 7px;
}

.empty-state {
  padding: clamp(22px, 4vw, 38px);
}

.empty-state h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.empty-state div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

code {
  background: rgba(23, 24, 23, 0.08);
  border-radius: 6px;
  padding: 2px 5px;
}

@media (max-width: 980px) {
  .dashboard-topbar,
  .idea-grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    border-left: 0;
    justify-content: start;
    padding-left: 0;
  }

  .header-actions,
  .filter-row {
    justify-content: start;
  }

  .category-filter-control {
    width: 100%;
  }

  .category-filter-control select {
    min-width: 0;
    width: 100%;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tinder-stage > button {
    margin-top: 14px;
    position: static;
    transform: none;
    width: calc(50% - 8px);
  }

  .tinder-decline {
    margin-right: 12px;
  }
}

@media (max-width: 620px) {
  .dashboard-shell {
    padding: 14px;
  }

  .dashboard-topbar,
  .idea-card,
  .meta-grid article {
    border-radius: 18px;
  }

  .brand-lockup-img {
    height: 34px;
    width: 220px;
  }

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

  .header-actions button,
  .account-chip {
    width: 100%;
  }

  .tinder-email-form div {
    grid-template-columns: 1fr;
  }

  .tinder-category-control {
    align-items: stretch;
    display: grid;
    justify-items: center;
    width: 100%;
  }

  .tinder-category-control select {
    min-width: 0;
    width: 100%;
  }
}
