:root {
  --bg: #0c0d0f;
  --panel: #111214;
  --panel2: #15171a;
  --text: #e5e5e5;
  --dim: #9aa3b2;
  --muted: #6b7280;
  --border: #2a2a2a;
  --line: #1e1e1e;
  --accent: #c7d2fe;
  --accent2: #e0e7ff;
  --shadow: rgba(0, 0, 0, 0.35);
  --good: #34d399;
  --bad: #fb7185;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent2);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 54px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transform: translateY(-140%);
  transition: transform 0.15s ease;
  z-index: 20000;
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 3.2rem;
}

.view-tabs {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#viewTabs.view-tabs {
  margin-top: 8px;
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.view-tab {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--dim);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.view-tab:hover {
  border-color: rgba(199, 210, 254, 0.35);
  color: var(--text);
}
.view-tab[data-active="1"] {
  border-color: rgba(199, 210, 254, 0.45);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(199, 210, 254, 0.18) inset;
}
.view-tab:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.5);
  outline-offset: 2px;
}

#viewTabs .view-tab {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
  padding: 8px 11px;
  font-size: 12.5px;
  background: transparent;
}

#viewTabs .view-tab:last-child {
  border-right: 0;
}

#viewTabs .view-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

#viewTabs .view-tab[data-active="1"] {
  background: rgba(199, 210, 254, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(199, 210, 254, 0.2);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.96), rgba(12, 13, 15, 0.9));
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ecosystem-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ecosystem-nav a,
.ecosystem-nav .active {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
}

.ecosystem-nav a {
  color: var(--dim);
}

.ecosystem-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.ecosystem-nav .active {
  color: #9ae6b4;
  background: rgba(72, 187, 120, 0.16);
  border: 1px solid rgba(72, 187, 120, 0.35);
}

.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}
.brand:hover {
  color: var(--accent2);
}

.btn {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}
.btn:hover {
  border-color: rgba(199, 210, 254, 0.35);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.5);
  outline-offset: 2px;
}

main {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--panel);
  padding: 1rem 1.25rem;
  align-items: stretch;
}

.quote-card {
  box-shadow: none;
}

.content {
  display: block;
  min-width: 0;
}

.card > .vote {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.card > .body {
  grid-column: 2;
  grid-row: 1;
}

.vote {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  padding-right: 8px;
  padding-top: 2px;
  align-self: start;
}

.vote button {
  width: 20px !important;
  height: 20px !important;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.vote button:hover {
  border-color: rgba(199, 210, 254, 0.35);
  color: var(--text);
}
.vote button:active {
  transform: translateY(1px);
}
.vote button:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.5);
  outline-offset: 2px;
}
.vote button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.vote button[data-active="1"][data-dir="up"] {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--good);
}
.vote button[data-active="1"][data-dir="down"] {
  border-color: rgba(251, 113, 133, 0.45);
  color: var(--bad);
}

.vote .score {
  font-family: var(--mono);
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  opacity: 0.92;
  width: 20px !important;
  height: 20px !important;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  flex: 0 0 20px !important;
}

.body {
  display: block;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: baseline;
  color: #9ca3af;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.k {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.9;
}

.quote-copy .title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #e5e5e5;
  letter-spacing: 0;
  line-height: 1.65;
}

.quote-media-wrap {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  width: 180px;
  min-width: 180px;
  align-self: flex-start;
}

.quote-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

.quote-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quote-main.has-image {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
}

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

.blurb {
  margin: 0.35rem 0 0;
  color: var(--dim);
  font-size: 0.96rem;
  line-height: 1.5;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-quote-btn,
.source-link-btn {
  min-height: 30px;
  height: 30px;
  min-width: 92px;
  width: 92px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.source-link-btn {
  text-decoration: none;
}

.btn.glass-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn.glass-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  color: #e5e5e5;
}

#list {
  display: grid;
  gap: 12px;
}

.empty-card {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 12px;
  color: var(--dim);
  text-align: center;
}

.fineprint {
  margin: 18px auto 0;
  max-width: 1100px;
  border-top: 1px solid var(--line);
  padding: 14px 18px 0;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  position: relative;
}

.footer-controls {
  position: absolute;
  right: 18px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-picker {
  position: relative;
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  min-width: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.8);
  outline-offset: 2px;
}

.palette-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.palette-icon span {
  display: block;
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.palette-icon span:nth-child(1) {
  left: 0;
  top: 2px;
  background: #7db5ff;
}

.palette-icon span:nth-child(2) {
  right: 0;
  top: 0;
  background: #d28cff;
}

.palette-icon span:nth-child(3) {
  left: 1px;
  bottom: 0;
  background: #ff8aa3;
}

.palette-icon span:nth-child(4) {
  right: 1px;
  bottom: 2px;
  background: #89d9b8;
}

.theme-popover {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  right: 0;
  top: auto;
  display: none;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 190px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--panel);
  z-index: 30;
}

.theme-popover.open {
  display: flex;
}

.theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.theme-swatch.active {
  border-color: var(--accent);
}

.sw-dark {
  background: #0c0d0f;
}

.sw-navy {
  background: #081423;
}

.sw-plum {
  background: #1a1022;
}

.sw-dawn {
  background: #f6efe8;
}

.scroll-top-btn {
  display: none;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.scroll-top-btn.show {
  display: grid;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 20010;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: none;
  place-items: center;
  cursor: pointer;
}

.back-to-top.show {
  display: grid;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 5.4rem;
  }
  .topbar-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
  .ecosystem-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.1rem;
    flex-wrap: nowrap;
  }
  .ecosystem-nav a,
  .ecosystem-nav .active {
    white-space: nowrap;
  }
  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-controls {
    position: static;
    margin: 10px auto 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .theme-popover {
    right: 0;
    left: auto;
    width: min(220px, 92vw);
  }
  .quote-main.has-image {
    grid-template-columns: 1fr;
  }
  .quote-media-wrap {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
  .quote-media {
    max-height: 220px;
  }
  .back-to-top {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}


/* BEGIN ART VISUAL BASELINE OVERRIDE */
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 12px;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}

.body {
  display: block;
}

.meta {
  color: var(--dim);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.k {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.9;
}

.quote-copy .title,
.title {
  margin: 0 0 2px;
  font-size: 20px;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: var(--text);
  font-weight: 400;
}

.blurb {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}

.btn.glass-btn,
.copy-quote-btn,
.source-link-btn {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border-radius: 12px;
  box-shadow: none;
}

.btn.glass-btn:hover,
.copy-quote-btn:hover,
.source-link-btn:hover {
  border-color: rgba(199, 210, 254, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: var(--text);
}

.quote-media-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
}

.quote-media {
  object-fit: cover;
}

.fineprint {
  color: var(--dim);
  font-size: 12px;
}
/* END ART VISUAL BASELINE OVERRIDE */


/* BEGIN QUOTE FEATURED TOP CARD OVERRIDE */
.quote-featured-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .quote-featured-card {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
  }
}

.quote-featured-card .featured-media-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.quote-featured-media-wrap {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
  overflow: hidden;
}

.quote-featured-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-featured-fallback {
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 13px;
}

.quote-featured-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.quote-featured-card .featured-media-kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-featured-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.quote-featured-author {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
}

.quote-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
/* END QUOTE FEATURED TOP CARD OVERRIDE */

/* BEGIN NATIVE PALETTE OVERRIDE (COLOR TOOLS PARITY) */
:root {
  --text-strong: #ffffff;
  --card: var(--panel);
}

:root[data-quote-theme="black"],
:root:not([data-quote-theme]) {
  --bg: #0c0d0f;
  --text: #e5e5e5;
  --card: #111214;
  --panel: #111214;
  --panel2: #111214;
  --border: #2a2a2a;
  --line: #2a2a2a;
}

:root[data-quote-theme="atlas"] {
  --bg: #1e2430;
  --text: #e5e5e5;
  --card: #272c38;
  --panel: #272c38;
  --panel2: #272c38;
  --border: #6e6e6e;
  --line: #6e6e6e;
}


:root[data-quote-theme="forest"] {
  --bg: #1f3a2d;
  --text: #e5e5e5;
  --card: #284236;
  --panel: #284236;
  --panel2: #284236;
  --border: #6e6e6e;
  --line: #6e6e6e;
}

:root,
body,
.wrap,
.container,
main,
.card {
  border-color: var(--line);
}

html,
body,
.wrap,
.container,
main {
  background-color: var(--bg);
  color: var(--text);
}

.card,
.quote-card,
.theme-popover,
.theme-toggle,
.back-to-top,
.empty-card {
  background: var(--card);
}

h2.title,
.title,
.quote-copy .title {
  border-color: var(--line);
  color: var(--text);
}

button.view-tab,
.view-tab {
  color: var(--text-strong);
}

div.topbar.fcc-econav-scroll-target {
  color: var(--text-strong);
}

.view-tab:hover,
.view-tab[data-active="1"] {
  color: var(--text-strong);
}

*:focus-visible {
  outline-color: var(--line);
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, #ffffff 0 20%, #9aa3b2 45%, #2a2a2a 100%);
}

.sw-black {
  background: #0c0d0f;
}

.sw-atlas {
  background: #1e2430;
}
/* END NATIVE PALETTE OVERRIDE (COLOR TOOLS PARITY) */


.sw-forest {
  background: #1f3a2d;
}

@media (min-width: 900px) {
  html.fcc-v2-active .fcc-v2-quote-theme {
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(12, 13, 15, 0.84);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.35rem 0.46rem;
    display: grid;
    gap: 0.35rem;
  }

  html.fcc-v2-active .fcc-v2-quote-theme-title {
    font-size: 0.72rem;
    line-height: 1.2;
    color: #c0c7d4;
    text-align: center;
  }

  html.fcc-v2-active .fcc-v2-quote-theme-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
  }

  html.fcc-v2-active .fcc-v2-quote-theme .theme-swatch {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
  }

  html.fcc-v2-active .fcc-v2-quote-theme .theme-swatch.active {
    box-shadow: 0 0 0 2px rgba(199, 210, 254, 0.5);
    border-color: rgba(199, 210, 254, 0.8);
  }
}

/* BEGIN QUOTE V1 APPRECIATION OVERRIDE */
.quote-card .vote {
  align-items: stretch;
  gap: 6px;
  padding-top: 0;
  padding-right: 10px;
  min-width: 132px;
}

.quote-card .quote-action-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 30px;
  border-radius: 9px;
  font-size: 12px !important;
  padding: 6px 8px;
  justify-content: center;
  text-align: center;
}

.quote-card .quote-action-btn[data-active="1"][data-action="appreciate"] {
  border-color: rgba(52, 211, 153, 0.55);
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.16);
}

.quote-card .quote-action-btn.quote-action-soft {
  opacity: 0.9;
  color: color-mix(in srgb, var(--text) 84%, var(--dim) 16%);
}

.quote-card .quote-action-btn[data-active="1"][data-action="not-for-me"] {
  border-color: rgba(156, 163, 175, 0.55);
  color: #d1d5db;
  background: rgba(107, 114, 128, 0.18);
}

.appreciated-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  text-align: center;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.03);
}

.appreciated-pill.appreciated-pill-empty {
  color: var(--dim);
  opacity: 0.8;
}

.appreciated-pill.appreciated-pill-flash {
  border-color: rgba(52, 211, 153, 0.5);
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.16);
}

.quote-placeholder {
  display: grid;
  place-items: center;
}

.quote-placeholder-inner {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.quote-title-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

.quote-title-clamp[data-expanded="1"] {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.quote-inline-toggle {
  display: inline;
  margin-left: 0.4rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent2);
  font: inherit;
  font-size: 0.92em;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.quote-inline-toggle:hover {
  color: color-mix(in srgb, var(--accent2) 88%, white 12%);
}

.quote-inline-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent2) 65%, white 35%);
  outline-offset: 2px;
  border-radius: 4px;
}

.source-unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--dim);
  font-size: 12px;
}

@media (max-width: 640px) {
  .quote-card .vote {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 10px;
    margin-bottom: 4px;
  }
}
/* END QUOTE V1 APPRECIATION OVERRIDE */

/* BEGIN QUOTE V1 HOTFIX: overlap + placeholder stability */
.quote-card {
  grid-template-columns: minmax(128px, 140px) minmax(0, 1fr);
  align-items: start;
}

.quote-card > .vote {
  grid-column: 1;
  grid-row: 1;
}

.quote-card > .content {
  grid-column: 2;
  min-width: 0;
}

.quote-main.has-image {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.quote-main.has-image .quote-media-wrap {
  width: 100%;
  max-width: 320px;
  min-width: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--panel2) 88%, #000 12%);
}

.quote-main.has-image .quote-media {
  width: 100%;
  height: auto !important;
  max-height: 340px;
  object-fit: contain !important;
}

.quote-placeholder {
  width: 168px;
  min-width: 168px;
  min-height: 168px;
}

.quote-placeholder-inner {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

@media (max-width: 960px) {
  .quote-media-wrap,
  .quote-placeholder {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .quote-card {
    grid-template-columns: 1fr;
  }

  .quote-card > .vote,
  .quote-card > .content {
    grid-column: 1;
  }

  .quote-card > .vote {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 10px;
    margin-bottom: 4px;
    min-width: 0;
  }
}
/* END QUOTE V1 HOTFIX */
