@font-face {
  font-family: Manrope;
  src: url("./fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --sidebar: 224px;
  --brand: #006d83;
  --tint: #eaf4f5;
  --canvas: #fbfbf9;
  --surface: #fff;
  --ink: #111827;
  --muted: #546176;
  --line: #e1e4e8;
  --dock-height: 88px;
  --player: var(--dock-height);
}
body {
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
  vertical-align: middle;
}
.turn-up {
  transform: rotate(-90deg);
}
.turn-down {
  transform: rotate(90deg);
}
.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
}
.icon-only img {
  width: 22px;
  height: 22px;
}
.app-header {
  height: 56px;
  min-height: 56px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.3px;
}
.header-brand img {
  width: 32px;
  height: 32px;
  filter: invert(29%) sepia(87%) saturate(992%) hue-rotate(152deg)
    brightness(88%);
}
.app-header #search-form {
  max-width: 640px;
  height: 40px;
  flex: 1;
  margin-left: 30px;
  border-color: var(--line);
  box-shadow: none;
}
.app-header #search-form > img {
  width: 21px;
  height: 21px;
}
.app-header #clear-search img {
  width: 16px;
  height: 16px;
}
.app-header #search {
  font-size: 13px;
}
.app-header .header-help {
  margin-left: auto;
}
.app-header #menu,
.app-header #search-toggle {
  display: none;
}
#sidebar {
  top: 56px;
  bottom: var(--dock-height);
  width: 224px;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 14px;
  overflow-y: auto;
  background: var(--canvas);
  z-index: 35;
}
#sidebar nav {
  flex: none;
  min-height: 0;
  overflow: visible;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#sidebar nav > a {
  gap: 14px;
  margin: 0;
  height: auto;
  min-height: 43px;
  padding: 9px 12px;
  border-radius: 7px;
  color: #23314d;
  font-size: 13px;
  font-weight: 550;
}
#sidebar nav > a .ui-icon {
  width: 20px;
  height: 20px;
}
#sidebar nav > a[aria-current] {
  background: #eff0ef;
  color: #111827;
  font-weight: 750;
}
#sidebar .sidebar-foot {
  position: static;
  display: grid;
  gap: 5px;
  margin-top: auto;
  flex-shrink: 0;
}
#sidebar .sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  padding: 8px 12px;
}
#sidebar .sidebar-foot img {
  width: 20px;
  height: 20px;
}
#close-menu {
  display: none;
}
#sidebar-topics {
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  margin-top: 4px;
}
#sidebar-topics > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 13px;
  list-style: none;
}
#sidebar-topics > summary::-webkit-details-marker {
  display: none;
}
#sidebar-topics > summary img {
  width: 18px;
  height: 18px;
}
#sidebar-topics[open] > summary img {
  transform: rotate(90deg);
}
.topics-panel {
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.topics-panel > label {
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}
.topics-panel > input {
  width: 100%;
  min-width: 0;
  border: 1px solid #aab1bb;
  border-radius: 5px;
  padding: 8px;
  font-size: 12px;
}
.sidebar-topic-list {
  max-height: min(260px, calc(100dvh - 610px));
  min-height: 80px;
  overflow-y: auto;
  margin: 8px 0;
}
.sidebar-topic-list a {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 3px;
  min-height: 40px;
  font-size: 11px;
  align-items: center;
}
.sidebar-topic-list a > span {
  overflow-wrap: anywhere;
}
.sidebar-topic-list small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.all-topics-link {
  font-size: 11px;
  color: var(--brand);
}
#shell {
  margin-left: 224px;
  padding-top: 56px;
  padding-bottom: calc(var(--dock-height) + 24px);
}
main {
  max-width: 1440px;
  padding: 22px 24px;
  min-width: 0;
}
footer {
  margin: 10px 24px 0;
  padding: 15px 0;
  font-size: 11px;
}
.topic-home-heading h1 {
  font-size: 32px;
  letter-spacing: -1.3px;
  line-height: 1.25;
  margin: 0 0 2px;
  font-weight: 800;
}
.topic-home-heading > p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 14px;
}
.topic-controls {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.entity-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.entity-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 110px;
  padding: 7px 20px;
  font-size: 13px;
}
.entity-tabs .active {
  background: var(--brand);
  color: white;
  border-radius: 24px;
}
.topic-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.topic-scope select {
  min-width: 120px;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 12px;
  font-size: 12px;
}
.home-filters {
  margin-left: auto;
  font-size: 12px;
}
.home-filters > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.home-filters > summary::-webkit-details-marker {
  display: none;
}
.home-filters[open] {
  position: relative;
}
.home-filters > div {
  position: absolute;
  z-index: 25;
  right: 0;
  width: min(600px, 75vw);
  padding: 16px;
  box-shadow: 0 12px 30px #17203420;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.home-filters .mode-tabs {
  display: none;
}
.topic-section {
  padding: 0 0 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.topic-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.topic-section-heading h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0;
}
.topic-subtopics {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--brand);
  flex: 1;
}
.browse-topic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--brand);
  margin-left: auto;
  white-space: nowrap;
}
.browse-topic .ui-icon {
  width: 17px;
  height: 17px;
}
.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.topic-conversation {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 3px;
  border-radius: 5px;
  outline: 1px solid transparent;
  outline-offset: 3px;
}
.topic-conversation.is-selected {
  outline-color: #00778a;
  background: transparent;
}
.conversation-cover {
  position: relative;
  width: 120px;
  height: 120px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0ec;
}
.conversation-cover > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    30px Georgia,
    serif;
  color: var(--muted);
}
.conversation-cover img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.conversation-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.conversation-show {
  color: #415771;
  font-size: 12px;
  margin: 0 0 1px;
}
.conversation-copy h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.45px;
  overflow-wrap: anywhere;
}
.conversation-byline {
  font-size: 12px;
  color: #415771;
  margin: 0 0 3px;
  line-height: 1.35;
}
.conversation-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0 0 4px;
}
.conversation-signal {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: none !important;
  padding: 0;
  min-height: 24px;
  color: #bd3b20;
  font-size: 12px;
  line-height: 1.35;
  align-self: flex-start;
}
.conversation-listen-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: auto;
  flex-wrap: wrap;
}
.conversation-play {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
  background: transparent !important;
  border: 0;
  min-height: 44px;
  color: #06475b;
  font-size: 12px;
}
.conversation-play > .ui-icon {
  width: 30px;
  height: 30px;
  background-color: var(--brand);
  border-radius: 50%;
  padding: 8px;
  mask-size: 17px;
  -webkit-mask-size: 17px;
  position: relative;
}
.conversation-play {
  position: relative;
}
.conversation-play > .ui-icon {
  border-radius: 0;
  background: var(--brand);
}
.conversation-duration {
  font-size: 12px;
  color: #304b68;
  white-space: nowrap;
}
.conversation-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 12px;
  min-height: 44px;
}
.conversation-external .ui-icon {
  width: 18px;
  height: 18px;
}
.conversation-view {
  font-size: 12px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.conversation-save {
  border: 0;
  background: transparent !important;
  margin-left: auto;
  padding: 6px;
  min-width: 36px;
  min-height: 44px;
  color: var(--muted);
}
.conversation-save[aria-pressed="true"] {
  color: var(--brand);
}
.conversation-save .ui-icon {
  width: 17px;
  height: 17px;
}
.card-playback-state {
  font-size: 10px;
  color: var(--brand);
  min-height: 0;
}
.card-playback-state:empty {
  display: none;
}
.topic-home-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.8;
}
.topic-home-note a {
  color: var(--brand);
}
.home-pending {
  padding: 25px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.home-index-warning {
  color: #a43119;
  font-size: 12px;
}
.topic-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.topic-directory a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}
.topic-directory a > strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.topic-directory a > span {
  font-size: 11px;
  color: var(--muted);
}
#player,
body.player-idle #player {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.1fr) auto;
  gap: 18px;
  align-items: center;
  height: auto;
  min-height: 88px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
body.player-idle #player {
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
body.player-idle .player-controls {
  display: none;
}
.player-identity .art {
  width: 48px;
  height: 48px;
  border-radius: 5px;
}
.player-identity strong {
  font-size: 12px;
  font-weight: 750;
}
.player-identity small {
  font-size: 11px;
}
.player-identity #player-status {
  font-size: 10px;
  max-width: 330px;
}
.player-controls {
  min-width: 0;
}
.transport {
  gap: 10px;
}
.transport button {
  min-width: 34px;
  min-height: 36px;
  padding: 5px;
  position: relative;
}
.transport .main-play {
  background: var(--brand) !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  color: white;
}
.transport .ui-icon {
  width: 18px;
  height: 18px;
}
.jump-seconds {
  position: absolute;
  font-size: 8px;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  line-height: 1;
}
.timeline {
  margin-top: 3px;
  gap: 9px;
}
.timeline span {
  white-space: nowrap;
  font-size: 10px;
  min-width: 35px;
}
.timeline input {
  accent-color: var(--brand);
  height: 18px;
}
.player-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dock-speed select {
  max-width: 68px;
  padding: 6px;
  font-size: 11px;
}
.dock-volume {
  display: flex;
  align-items: center;
  gap: 3px;
}
.dock-volume button,
.dock-sources {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}
.dock-volume input {
  width: 65px;
  accent-color: var(--brand);
}
.dock-volume .ui-icon {
  width: 18px;
  height: 18px;
}
.dock-queue {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  min-height: 44px;
  white-space: nowrap;
}
.dock-queue small {
  font-size: 9px;
}
.dock-queue .ui-icon,
.dock-sources .ui-icon {
  width: 19px;
  height: 19px;
}
.dock-expand {
  display: none;
}
.idle-art {
  background: var(--tint);
  color: var(--brand);
}
#sources-backdrop[hidden],
#sources-drawer[hidden] {
  display: none !important;
}
#sources-drawer {
  position: fixed;
  right: 0;
  top: 56px;
  bottom: var(--dock-height);
  width: 380px;
  max-width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 65;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px #11182715;
  overflow: hidden;
}
body.sources-open {
  overflow: auto;
}
.sources-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sources-heading > div {
  flex: 1;
  min-width: 0;
}
.sources-heading h2 {
  font-size: 21px;
  margin-bottom: 7px;
}
.sources-heading p {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sources-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.sources-tabs button {
  font-size: 11px;
  min-height: 40px;
}
.sources-tabs button[aria-pressed="true"] {
  background: var(--tint);
  color: var(--brand);
  border-color: var(--brand);
}
.sources-content {
  min-height: 0;
  overflow-y: auto;
  font-size: 12px;
  flex: 1;
  padding-bottom: 16px;
}
.sources-content .source-comment {
  padding: 12px;
  background: var(--canvas);
  margin: 10px 0;
  border-left-width: 2px;
}
.sources-content blockquote {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
}
.sources-content a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 11px;
}
.source-author {
  font-size: 11px;
  margin: 7px 0;
}
.sources-scope-note {
  font-size: 11px;
  color: var(--muted);
}
html {
  scroll-padding-top: 76px;
  scroll-padding-bottom: calc(var(--dock-height) + 24px);
}
#notice {
  bottom: calc(var(--dock-height) + 12px);
}
.sources-content .ui-icon {
  width: 14px;
  height: 14px;
}
.ui-icon {
  border-radius: 0 !important;
}
body.player-idle #shell {
  padding-bottom: calc(var(--dock-height) + 24px);
}
@media (max-width: 1240px) and (min-width: 1100px) {
  .topic-cards {
    gap: 18px;
  }
  .topic-conversation {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }
  .conversation-cover {
    width: 104px;
    height: 104px;
  }
  .player-extra {
    gap: 5px;
  }
  .dock-volume input {
    width: 40px;
  }
  .dock-sources span:not(.ui-icon),
  .dock-queue span:not(.ui-icon) {
    display: none;
  }
  #player {
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.2fr) auto;
  }
}
@media (max-height: 760px) and (min-width: 1100px) {
  #sidebar {
    display: flex;
  }
  #sidebar nav {
    flex: none;
    overflow: visible;
  }
  #sidebar-topics[open] .topics-panel {
    position: fixed;
    left: 224px;
    top: 72px;
    bottom: calc(var(--dock-height) + 16px);
    width: 280px;
    z-index: 55;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px #11182720;
  }
  .sidebar-topic-list {
    min-height: 0;
    max-height: none;
    flex: 1;
  }
}
@media (max-width: 1099px) {
  :root {
    --sidebar: 0px;
  }
  .mobile {
    display: inline-flex;
  }
  .app-header {
    padding: 5px 12px;
    gap: 10px;
  }
  .app-header #menu {
    display: inline-flex;
  }
  .header-brand {
    min-width: 0;
    font-size: 21px;
  }
  .header-brand img {
    width: 29px;
    height: 29px;
  }
  .app-header #search-form {
    margin-left: 8px;
    max-width: none;
  }
  .app-header .header-help {
    margin-left: 0;
  }
  #sidebar {
    transform: translateX(-100%);
    top: 0;
    bottom: 0;
    width: 272px;
    padding: 14px;
    z-index: 95;
  }
  .drawer-open #sidebar {
    transform: translateX(0);
  }
  #close-menu {
    display: inline-flex;
    align-self: flex-end;
    flex-shrink: 0;
  }
  #sidebar nav > a {
    min-height: 44px;
    font-size: 14px;
  }
  #shade {
    z-index: 90;
  }
  #shell {
    margin-left: 0;
  }
  main {
    padding: 20px 24px;
  }
  .sidebar-topic-list {
    max-height: 220px;
    min-height: 70px;
  }
  .topic-conversation {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
  .conversation-cover {
    width: 112px;
    height: 112px;
  }
  .topic-cards {
    gap: 20px;
  }
  #player {
    grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.2fr) auto;
    gap: 12px;
  }
  .dock-volume input {
    width: 45px;
  }
  .dock-sources span:not(.ui-icon),
  .dock-queue span:not(.ui-icon) {
    display: none;
  }
  .app-header #search-toggle {
    display: none;
  }
  .dock-expand {
    display: none;
  }
}
@media (max-width: 767px) {
  .app-header {
    height: 56px;
    min-height: 56px;
    gap: 5px;
    padding: 5px 10px;
  }
  .header-brand {
    font-size: 21px;
    flex: 1;
    letter-spacing: -1px;
  }
  .header-brand img {
    width: 29px;
    height: 29px;
  }
  .app-header .header-help {
    display: none;
  }
  .app-header #search-toggle {
    display: inline-flex;
  }
  .app-header #search-form {
    display: none;
    position: absolute;
    top: 56px;
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    height: 44px;
    padding: 0 12px;
    background: var(--surface);
    box-shadow: 0 8px 16px #11182715;
  }
  .search-open .app-header #search-form {
    display: flex;
  }
  .search-open #shell {
    padding-top: 108px;
  }
  .topic-home-heading h1 {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -1.1px;
    margin-bottom: 5px;
  }
  .topic-home-heading > p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
    max-width: 34ch;
  }
  main {
    padding: 16px;
  }
  .topic-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .entity-tabs {
    grid-column: 1/-1;
    display: flex;
    width: 100%;
  }
  .entity-tabs a {
    min-width: 0;
    flex: 1;
    min-height: 40px;
  }
  .topic-scope {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
  }
  .topic-scope select {
    max-width: 215px;
    min-width: 0;
    flex: 1;
    min-height: 40px;
    padding: 8px;
  }
  .home-filters {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .home-filters > summary {
    padding: 8px;
    min-height: 42px;
    width: 44px;
  }
  .home-filters > summary > span:not(.ui-icon) {
    display: none;
  }
  .home-filters > div {
    position: absolute;
    right: 0;
    width: calc(100vw - 32px);
    max-height: 65vh;
    overflow-y: auto;
  }
  .topic-section {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  .topic-section-heading {
    gap: 5px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
  }
  .topic-section-heading h2 {
    font-size: 23px;
    letter-spacing: -0.8px;
  }
  .topic-subtopics {
    grid-row: 2;
    grid-column: 1/-1;
    gap: 6px 14px;
    font-size: 11px;
  }
  .browse-topic {
    font-size: 10px;
    grid-column: 2;
    grid-row: 1;
    gap: 3px;
  }
  .browse-topic .ui-icon {
    width: 14px;
    height: 14px;
  }
  .topic-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .topic-conversation {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 2px;
    min-width: 0;
  }
  .conversation-cover {
    width: 112px;
    height: 112px;
  }
  .conversation-copy h3 {
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin-bottom: 3px;
  }
  .conversation-show {
    font-size: 11px;
  }
  .conversation-byline {
    font-size: 11px;
    line-height: 1.35;
  }
  .conversation-description {
    font-size: 12px;
    line-height: 1.3;
  }
  .conversation-signal {
    font-size: 11px;
    min-height: 24px;
  }
  .conversation-play,
  .conversation-duration,
  .conversation-external {
    font-size: 11px;
  }
  .conversation-listen-row {
    gap: 4px;
    min-height: 44px;
  }
  .conversation-play > .ui-icon {
    width: 25px;
    height: 25px;
    mask-size: 17px;
    -webkit-mask-size: 17px;
  }
  .conversation-save {
    padding: 4px;
    min-width: 25px;
  }
  .conversation-save .ui-icon {
    width: 15px;
    height: 15px;
  }
  .topic-directory {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    margin: 8px 16px 0;
  }
  #player,
  body.player-idle #player {
    min-height: 80px;
    height: auto;
    grid-template-columns: minmax(0, 1fr) 40px 36px 36px 28px;
    gap: 0 2px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    align-items: center;
  }
  .player-identity {
    grid-row: 1;
    grid-column: 1;
    gap: 8px;
    min-width: 0;
  }
  .player-identity .art {
    width: 38px;
    height: 38px;
  }
  .player-identity strong {
    font-size: 11px;
    line-height: 1.35;
  }
  .player-identity small {
    display: block;
    font-size: 9px;
  }
  .player-identity #player-status {
    font-size: 9px;
    line-height: 1.25;
  }
  .player-controls {
    display: contents;
  }
  .transport {
    display: contents;
  }
  .transport > .main-play {
    grid-row: 1;
    grid-column: 2;
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .transport > button:not(.main-play) {
    display: none;
  }
  .timeline {
    display: none;
  }
  .player-extra {
    display: contents;
  }
  .dock-sources {
    grid-row: 1;
    grid-column: 3;
    justify-content: center;
    min-width: 36px;
    padding: 5px;
  }
  .dock-queue {
    grid-row: 1;
    grid-column: 4;
    justify-content: center;
    min-width: 36px;
  }
  .dock-queue small {
    display: none;
  }
  .dock-sources > span:not(.ui-icon),
  .dock-queue > span:not(.ui-icon) {
    display: none;
  }
  .dock-expand {
    display: inline-flex;
    grid-column: 5;
    grid-row: 1;
    border: 0;
    background: transparent;
    min-width: 28px;
    min-height: 44px;
    padding: 3px;
  }
  .dock-expand .ui-icon {
    width: 17px;
    height: 17px;
  }
  .dock-speed,
  .dock-volume {
    display: none;
  }
  body.player-idle #player {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 36px 36px;
  }
  body.player-idle .dock-sources {
    grid-column: 2;
  }
  body.player-idle .dock-queue {
    grid-column: 3;
  }
  body.player-idle .dock-expand {
    display: none;
  }
  body.player-idle .player-identity {
    grid-column: 1;
  }
  body.player-idle .player-identity #player-status {
    font-size: 9px;
  }
  body.player-idle #shell {
    padding-bottom: calc(var(--dock-height) + 24px);
  }
  body.player-expanded #player {
    row-gap: 8px;
    min-height: 220px;
  }
  body.player-expanded .player-identity {
    grid-column: 1/3;
  }
  body.player-expanded .transport {
    display: flex;
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: center;
    gap: 15px;
  }
  body.player-expanded .transport > button:not(.main-play) {
    display: inline-flex;
    min-height: 44px;
    min-width: 36px;
  }
  body.player-expanded .timeline {
    display: flex;
    grid-row: 3;
    grid-column: 1/-1;
    margin: 0;
  }
  body.player-expanded .dock-speed {
    display: flex;
    grid-row: 4;
    grid-column: 1/3;
    justify-content: center;
  }
  body.player-expanded .dock-volume {
    display: flex;
    grid-row: 4;
    grid-column: 3/-1;
  }
  body.player-expanded .dock-volume input {
    width: 70px;
  }
  body.player-expanded .dock-expand {
    grid-row: 1;
    grid-column: 5;
  }
  #sources-drawer {
    top: auto;
    bottom: var(--dock-height);
    width: 100%;
    height: min(70dvh, calc(100dvh - var(--dock-height) - 56px));
    max-height: calc(100dvh - var(--dock-height) - 56px);
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--line);
    padding: 16px;
  }
  .sources-heading h2 {
    font-size: 19px;
  }
  html {
    scroll-padding-top: 76px;
    scroll-padding-bottom: calc(var(--dock-height) + 24px);
  }
  #notice {
    bottom: calc(var(--dock-height) + 12px);
  }
}
@media (max-width: 350px) {
  .header-brand {
    font-size: 19px;
    gap: 6px;
  }
  .app-header .icon-only {
    min-width: 36px;
    padding: 6px;
  }
  .topic-conversation {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }
  .conversation-cover {
    width: 96px;
    height: 96px;
  }
  .conversation-copy h3 {
    font-size: 14px;
  }
  .conversation-save {
    margin-left: 0;
  }
  .conversation-listen-row {
    flex-wrap: wrap;
  }
  .topic-section-heading h2 {
    font-size: 21px;
  }
  .topic-subtopics {
    gap: 6px 10px;
  }
  .player-identity .art {
    display: none;
  }
}
[data-theme="dark"] {
  --canvas: #191d22;
  --surface: #222830;
  --ink: #f5f7fa;
  --muted: #b8c3cf;
  --line: #3c4653;
  --brand: #76cad8;
  --tint: #233e46;
  color-scheme: dark;
}
[data-theme="dark"] .topic-conversation.is-selected {
  outline-color: #76cad8;
}
[data-theme="dark"] #sidebar nav > a,
[data-theme="dark"] .conversation-byline,
[data-theme="dark"] .conversation-duration,
[data-theme="dark"] .conversation-show {
  color: var(--muted);
}
[data-theme="dark"] #sidebar nav > a[aria-current] {
  background: #2b3641;
  color: var(--ink);
}
[data-theme="dark"] .conversation-signal {
  color: #ff9d7e;
}
[data-theme="dark"] .icon-only > img,
[data-theme="dark"] .app-header #search-form > img,
[data-theme="dark"] #clear-search img,
[data-theme="dark"] #sidebar img {
  filter: invert(1);
}
[data-theme="dark"] .topic-conversation {
  background: transparent;
}
.conversation-play::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
}
.conversation-play > .ui-icon {
  background: white;
  mask-size: 15px;
  -webkit-mask-size: 15px;
  width: 30px;
  height: 30px;
  z-index: 1;
}
.card-playback-state {
  display: block;
  min-height: 14px;
}
.card-playback-state:empty {
  display: block;
  visibility: hidden;
}
@media (max-width: 767px) {
  .conversation-play::before {
    width: 26px;
    height: 26px;
  }
  .conversation-play > .ui-icon {
    width: 26px;
    height: 26px;
    mask-size: 13px;
    -webkit-mask-size: 13px;
  }
}
#sidebar nav > a > span:not(.ui-icon) {
  font-size: 13px;
  width: auto;
  min-width: 0;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  font-weight: inherit;
}
.mobile-dock-time {
  display: none;
}
@media (max-width: 767px) {
  .mobile-dock-time {
    display: block;
    font-size: 9px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .player-identity:has(.mobile-dock-time) #player-status {
    font-size: 8px;
  }
  .conversation-show {
    overflow-wrap: anywhere;
  }
}
/* Override the original nav-span icon rule only for the text label. */
#sidebar nav > a {
  min-height: 44px;
  height: 44px;
  flex-shrink: 0;
}
#sidebar nav > a > span:not(.ui-icon) {
  flex: 1;
  min-width: 0;
  width: auto;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: left;
}
#sidebar nav > a > .ui-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.entity-row.is-selected,
.episode-row.is-selected {
  outline: 1px solid #00778a;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Approved desktop artwork scale; narrow layouts retain their existing sizes. */
@media (min-width: 1100px) {
  .topic-conversation {
    grid-template-columns: 144px minmax(0, 1fr);
  }
  .conversation-cover {
    width: 144px;
    height: 144px;
  }
}
