:root {
  color-scheme: light;
  --bg: #f9f8f5;
  --paper: #fff;
  --ink: #282e2a;
  --muted: #767b74;
  --line: #e9e8e1;
  --accent: #dc5935;
  --soft: #fbede5;
  --green: #345b4c;
  --sidebar-width: 168px;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
svg.lucide {
  width: 19px;
  height: 19px;
  flex: none;
  stroke-width: 1.7;
  vertical-align: middle;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 99;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 12px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.brand-mark {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff6e6;
  width: 32px;
  height: 36px;
  border-radius: 13px 4px 13px 4px;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 21px;
  height: 21px;
}
.brand strong {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.3;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-top: 4px;
}
.nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 9px;
  border-radius: 9px;
  color: #687168;
  font-weight: 550;
}
.nav a:hover {
  background: #f7f6f2;
}
.nav a.active {
  background: var(--soft);
  color: var(--accent);
}
.nav a svg:last-child:not(:first-child) {
  margin-left: auto;
  width: 14px;
}
.nav hr {
  height: 1px;
  width: 100%;
  border: 0;
  background: var(--line);
  margin: 14px 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.quota-panel {
  padding: 12px;
  border-radius: 12px;
  background: #f7f6f1;
}
.quota-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.quota-label strong {
  color: var(--accent);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.quota-label strong small {
  font-size: 12px;
  color: #94978e;
  font-weight: 400;
}
.quota-bars {
  display: flex;
  gap: 5px;
  margin: 10px 0 8px;
}
.quota-bars i {
  height: 4px;
  border-radius: 3px;
  background: #e5e4dc;
  flex: 1;
}
.quota-bars i.used {
  background: var(--accent);
}
.quota-panel p {
  font-size: 11px;
  color: var(--muted);
}
.sidebar-note {
  font-size: 11px;
  color: #999d95;
  margin: 18px 12px 0;
}
.workspace {
  margin-left: var(--sidebar-width);
}

.avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #e8eee5;
  color: #47604b;
  display: grid;
  place-items: center;
  font-size: 13px;
}
main {
  padding: 30px 40px 40px;
  min-height: 100vh;
}
.filters {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 10px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 20px;
}
.filter-row {
  display: flex;
  gap: 3px;
  align-items: center;
  min-width: 0;
}
.genre-row {
  grid-column: 1/-1;
}
.filter-label {
  width: 36px;
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
}
.options button {
  padding: 4px 11px;
  min-height: 30px;
  border-radius: 6px;
  font-size: 12px;
  color: #6d746c;
}
.options button:hover {
  background: #f1f3ef;
}
.options button.selected {
  color: var(--accent);
  background: var(--soft);
  font-weight: 600;
}
.filter-reset {
  position: absolute;
  top: 21px;
  right: 20px;
  font-size: 12px;
  color: var(--muted);
  padding: 0;
}
.filter-reset:hover {
  color: var(--accent);
}
.options .filter-more {
  color: var(--accent);
  white-space: nowrap;
}
.listbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 20px;
}
.list-heading {
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.list-heading h1 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.list-heading span {
  color: var(--muted);
  font-size: 12px;
}
.view-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.commerce-visibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--muted);
}
.commerce-visibility input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.commerce-visibility:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
}
.card {
  min-width: 0;
  border: 1px solid #e9e8e2;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: #d5c9bc;
  box-shadow: 0 8px 22px #32241008;
}
.card-info {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: background-color 0.2s;
}
.card-info:hover {
  background: #fcfbf7;
}
.card-detail-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 550;
  color: var(--green);
}
.card-detail-link svg {
  width: 14px;
  height: 14px;
}
.card-detail-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.card-detail-link:hover {
  text-decoration: underline;
}
.card-detail-link:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.card-info a:not(.card-detail-link),
.card-info [data-commerce-id] {
  position: relative;
  z-index: 2;
}
.poster-detail-link {
  pointer-events: auto;
  align-self: flex-start;
}
.poster-detail-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.poster-detail-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}
.video-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #242621;
  overflow: hidden;
  isolation: isolate;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, #0e191ada);
  pointer-events: none;
  z-index: 1;
}
.video-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  gap: 9px;
  z-index: 2;
  pointer-events: none;
  color: #fff8e8;
}
.poster-name {
  font:
    500 clamp(21px, 1.5vw, 30px)/1.35 "Songti SC",
    "STSong",
    serif;
  letter-spacing: 1px;
  text-wrap: balance;
  max-width: 95%;
}
.poster-tags {
  padding-right: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.poster-tags span {
  font-size: 10px;
  background: #18221f80;
  padding: 2px 6px;
  border: 1px solid #ffffff24;
  border-radius: 3px;
}
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff90;
  border-radius: 50%;
  background: #20282044;
  color: white;
  display: grid;
  place-items: center;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.play svg {
  width: 20px;
  margin-left: 2px;
  fill: #ffffff33;
}
.video-frame.playing .play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #14241e9c;
  border: 1px solid #ffffff33;
  width: 32px;
  height: 34px;
  color: white;
  border-radius: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
}
.favorite.active {
  color: #ffbf92;
}
.favorite.active svg {
  fill: #ffbf9255;
}
.duration {
  position: absolute;
  bottom: 12px;
  right: 10px;
  color: #fff;
  background: #0008;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  z-index: 3;
}
.video-hint {
  position: absolute;
  top: 12px;
  left: 10px;
  font-size: 10px;
  color: #fffdf4;
  z-index: 3;
  background: #17201b77;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-body {
  padding: 14px 13px 13px;
  flex: 1;
}
.performance-source {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.performance-source strong {
  font-weight: 500;
  color: var(--ink);
}
.performance-section {
  border-top: 1px solid var(--line);
  margin-top: 7px;
  padding-top: 8px;
}
.performance-section header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 7px;
}
.performance-section h3 {
  font-size: 13px;
  font-weight: 650;
}
.performance-section dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
}
.performance-section dl > div {
  min-width: 0;
}
.performance-section dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.performance-section dd {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.performance-section .performance-date {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.performance-date dt {
  flex-shrink: 0;
}
.performance-card dd {
  font-size: 12px;
}
.performance-detail {
  margin: 7px 0 16px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
}
.performance-detail h3 {
  font-size: 16px;
}
.performance-source-detail,
.performance-detail dt {
  font-size: 12px;
}
.performance-detail dd {
  font-size: 14px;
}
.performance-detail dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}
@media (max-width: 600px) {
  .performance-source {
    font-size: 12px;
  }
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font-size: 10px;
  color: var(--muted);
  margin: 11px 0;
}
.card-body > .metric-row:first-child {
  margin-top: 0;
}
.metric-row strong {
  color: var(--ink);
  font-size: 13px;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.card-reason {
  display: block;
  text-align: left;
  color: #84867e;
  padding: 0;
  width: 100%;
  font-size: 11px;
  line-height: 1.7;
}
.recommendation-status {
  margin-left: 6px;
  font-size: 10px;
  color: #9b7950;
  font-weight: 400;
}
.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 3.4em;
  min-height: 3.4em;
}
.card-bottom {
  border-top: 1px solid #efede5;
  background: #faf9f5;
  padding: 11px 13px 12px;
}
.script-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 11px;
  color: #657064;
  margin-bottom: 8px;
}
.script-count strong {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.script-count svg {
  width: 13px;
  height: 13px;
}
.script-preview {
  display: grid;
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.6;
  color: #575e55;
}
.script-preview li {
  min-width: 0;
}
.script-preview a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 1px 0;
}
.script-preview span {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.script-preview a:hover span {
  color: var(--accent);
}
.script-preview svg {
  width: 11px;
  height: 11px;
  color: #92968b;
  margin: 3px 0 0 auto;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 36px 0 20px;
}
.pagination button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: white;
}
.pagination .selected {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.footnote {
  font-size: 11px;
  color: #9c9e94;
  text-align: center;
  margin-top: 28px;
}
.empty {
  background: white;
  border: 1px dashed #dcded4;
  padding: 80px 24px;
  border-radius: 14px;
  text-align: center;
}
.empty > svg {
  margin: 0 auto 16px;
  width: 34px;
  height: 34px;
  color: #b5b9ac;
}
.empty h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  margin-bottom: 22px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: #c54c2b;
}
.secondary {
  border: 1px solid #dedfd6;
  background: white;
  color: #55604f;
}
.secondary:hover {
  background: #f4f5ef;
}
.text-link {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555e53;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 24px;
  padding: 5px 0;
}
.back:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 32px;
}
.detail-video {
  border-radius: 12px;
}
.detail-copy {
  padding: 6px 0;
  max-width: 820px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 12px;
  background: var(--soft);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.eyebrow svg {
  width: 14px;
  height: 14px;
}
.detail-copy h1 {
  font-size: 28px;
  letter-spacing: 0.4px;
  font-weight: 650;
  margin-bottom: 14px;
  line-height: 1.4;
}
.detail-copy .summary {
  font-size: 14px;
  color: #70776c;
  line-height: 1.9;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  margin: 22px 0 18px;
}
.hero-metrics span {
  font-size: 12px;
  color: var(--muted);
}
.hero-metrics strong {
  display: block;
  font-size: 25px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.5;
}
.hero-metrics .metric-date {
  font-size: 20px;
  line-height: 1.875;
}
.ranking {
  display: flex;
  gap: 6px;
  color: #a67539;
  font-size: 12px;
  margin-bottom: 16px;
}
.ranking svg {
  width: 16px;
  height: 16px;
}
.card-ranking {
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.card-ranking svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .card-ranking {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .card-ranking svg {
    width: 16px;
    height: 16px;
  }
}
.reason-full {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 15px;
  color: #73786d;
  font-size: 13px;
  line-height: 1.9;
}
.reason-full strong {
  color: var(--ink);
  margin-right: 8px;
}
.script-hub {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
}
.switcher-header {
  padding: 23px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.switcher-header h2 {
  font-size: 17px;
}
.switcher-header small {
  font-size: 12px;
  color: var(--muted);
}
.script-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0 28px 20px;
}
.script-choice {
  position: relative;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fcfcfa;
  text-align: left;
}
.script-choice.selected {
  background: #fff7f0;
  border-color: #e6a586;
  box-shadow: inset 0 0 0 1px #e6a586;
}
.script-choice > strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.script-choice > span {
  display: block;
  color: #868a80;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
}
@media (max-width: 1250px) {
  .script-switcher {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1020px) {
  .script-switcher {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .script-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.reader-toolbar {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: block;
}
.script-recommendation {
  margin-top: 16px;
  max-width: 960px;
}
.script-recommendation h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.script-recommendation p {
  color: #737b70;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}
.reader-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.reader-navigation .tabs {
  padding: 0;
  border: 0;
  flex: none;
}
.reader-navigation .reader-actions {
  width: auto;
  flex: none;
}
.reader-navigation .reader-actions > * {
  padding: 8px 14px;
  font-size: 12px;
  min-height: 36px;
}
.reader-navigation .reader-actions svg {
  width: 16px;
  height: 16px;
}
.reader-toolbar h2 {
  font-size: 18px;
  font-weight: 650;
}
.reader-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.access-tag {
  color: var(--green);
  background: #edf3eb;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
}
.reader-actions {
  display: flex;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 30px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 19px 1px 16px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.reading {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 38px 40px 42px;
  position: relative;
  min-height: 300px;
}
.reading h3 {
  font-size: 18px;
  margin-bottom: 25px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 2.05;
  color: #505a4f;
}
.episode + .episode {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 34px;
}
.lock-panel {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 36px;
  text-align: center;
}
.lock-icon {
  margin: 0 auto 12px;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.lock-panel h3 {
  margin-bottom: 8px;
  font-size: 17px;
}
.lock-panel p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.lock-panel small {
  display: block;
  color: #94998e;
  font-size: 11px;
  margin-top: 12px;
}
.reader-watermark {
  position: absolute;
  inset: 20px;
  overflow: hidden;
  pointer-events: none;
  display: grid;
  align-content: space-around;
  justify-items: center;
  z-index: 1;
}
.reader-watermark span {
  opacity: 0.045;
  transform: rotate(-25deg);
  font-size: 22px;
  white-space: nowrap;
}
.library-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f0e9;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  color: #78806f;
  font-size: 13px;
}
.library-summary strong {
  color: var(--accent);
}
.library-list {
  display: grid;
  gap: 16px;
}
.library-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.library-cover {
  width: 76px;
  height: 94px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}
.library-info {
  flex: 1;
  min-width: 0;
}
.library-info h2 {
  font-size: 17px;
  margin-bottom: 6px;
}
.library-info p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.library-actions {
  display: flex;
  gap: 10px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  color: var(--ink);
  background: white;
  box-shadow: 0 20px 90px #0c211433;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #1b251f77;
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 22px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
  gap: 16px;
}
.dialog-header h2 {
  font-size: 19px;
}
.dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5ef;
  flex: none;
}
.dialog-body {
  padding: 5px 24px 24px;
}
.dialog-body p {
  color: #71796b;
  margin: 12px 0;
  line-height: 1.85;
}
.quota-confirm {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.quota-confirm i {
  height: 6px;
  background: #ecece3;
  flex: 1;
  border-radius: 5px;
}
.quota-confirm i.used {
  background: var(--accent);
}
.quota-script {
  padding: 15px;
  background: #f8f7f3;
  border-radius: 8px;
  margin: 14px 0;
  font-weight: 600;
}
.dialog-caption {
  font-size: 12px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.dialog-video {
  object-fit: contain;
  width: 100%;
  max-height: 65dvh;
  display: block;
  background: #141b17;
}
dialog.video-modal {
  width: min(500px, calc(100vw - 32px));
}
.video-caption {
  padding: 14px 24px 20px;
  color: var(--muted);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  padding: 11px 20px;
  border-radius: 8px;
  background: #28372e;
  color: white;
  font-size: 13px;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
#toast.visible {
  opacity: 1;
}
.tooltip {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 70;
  background: #29372f;
  color: white;
  padding: 12px 15px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(60vh, var(--tooltip-available-height, 60vh));
  width: max-content;
  height: max-content;
  overflow: auto;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 8px 28px #182b2322;
  white-space: pre-wrap;
}
@media (max-width: 1250px) {
  .sidebar {
    padding-inline: 10px;
  }
  main {
    padding-inline: 28px;
  }
  .grid {
    gap: 24px 20px;
  }
  .brand strong {
    font-size: 20px;
  }
}
@media (max-width: 1020px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
  .detail-copy h1 {
    font-size: 23px;
  }

  .library-actions {
    flex-wrap: wrap;
    max-width: 160px;
  }
}
@media (max-width: 780px) {
  .sidebar {
    width: 76px;
    padding: 25px 10px 20px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > div:last-child,
  .nav span,
  .nav a svg:last-child:not(:first-child),
  .sidebar-bottom {
    display: none;
  }
  .nav a {
    padding: 14px;
    justify-content: center;
  }
  .workspace {
    margin-left: 76px;
  }
  main {
    padding-inline: 24px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-hero {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }
  .hero-metrics {
    gap: 20px;
  }

  .detail-copy h1 {
    font-size: 22px;
  }
  .library-card {
    flex-wrap: wrap;
  }
  .library-actions {
    max-width: none;
    margin-left: 96px;
  }
  .view-tools > span {
    display: none;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: 100%;
    height: 62px;
    top: auto;
    bottom: 0;
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand {
    display: none;
  }
  .nav {
    display: flex;
    margin: 0;
    height: 100%;
    gap: 0;
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 6px 3px;
    border-radius: 0;
    min-width: 0;
    font-size: 10px;
  }
  .nav a span {
    display: block;
  }
  .nav a.active {
    background: none;
  }
  .nav hr {
    display: none;
  }
  .workspace {
    margin: 0;
  }

  .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  main {
    padding: 20px 16px 92px;
  }
  .listbar {
    margin: 22px 0 16px;
  }
  .list-heading {
    gap: 8px;
    flex-wrap: wrap;
  }
  .list-heading h1 {
    font-size: 19px;
  }
  .list-heading span {
    font-size: 11px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .card {
    border-radius: 13px;
  }
  .video-frame {
    aspect-ratio: 4/4.5;
  }
  .poster-name {
    font-size: 28px;
  }
  .video-shade {
    padding: 18px;
    gap: 12px;
  }
  .poster-tags span {
    font-size: 12px;
  }
  .favorite {
    width: 44px;
    height: 44px;
    right: 12px;
    top: 12px;
  }
  .play {
    width: 50px;
    height: 50px;
  }
  .duration,
  .video-hint {
    font-size: 11px;
  }
  .card-body {
    padding: 16px 16px 14px;
  }
  .metric-row {
    margin: 12px 0;
    font-size: 12px;
    justify-content: space-between;
  }
  .metric-row strong {
    font-size: 17px;
  }
  .card-reason {
    font-size: 13px;
  }
  .card-bottom {
    padding: 13px 16px 15px;
  }
  .script-count {
    font-size: 12px;
  }
  .script-preview {
    font-size: 12px;
  }
  .script-count svg {
    width: 15px;
    height: 15px;
  }
  .footnote {
    font-size: 10px;
  }
  .back {
    min-height: 44px;
    margin-bottom: 16px;
  }
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .detail-video {
    max-width: 100%;
    aspect-ratio: 4/4;
  }
  .detail-copy h1 {
    font-size: 24px;
  }
  .detail-copy .summary {
    font-size: 14px;
  }
  .hero-metrics {
    gap: 40px;
  }
  .hero-metrics strong {
    font-size: 25px;
  }
  .reason-full {
    font-size: 14px;
  }
  .switcher-header {
    padding: 20px 16px 16px;
  }
  .switcher-header h2 {
    font-size: 16px;
  }
  .script-switcher {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 46%);
    overflow-x: auto;
    padding: 5px 16px 20px;
  }
  .script-choice {
    padding: 10px;
  }
  .script-choice > strong {
    font-size: 13px;
  }
  .script-choice > span {
    font-size: 11px;
  }
  .reader-toolbar {
    padding: 20px 16px;
    gap: 16px;
  }
  .reader-toolbar h2 {
    font-size: 18px;
  }
  .reader-actions {
    width: 100%;
  }
  .reader-actions > * {
    flex: 1;
  }
  .tabs {
    padding: 0 16px;
    justify-content: space-between;
    gap: 10px;
  }
  .tabs button {
    font-size: 14px;
  }
  .reading {
    padding: 27px 18px 30px;
  }
  .prose {
    font-size: 15px;
    line-height: 1.95;
  }
  .primary,
  .secondary {
    min-height: 44px;
  }
  .dialog-close {
    width: 44px;
    height: 44px;
  }
  #toast {
    left: 50%;
    bottom: 80px;
  }
  .library-summary {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    font-size: 12px;
  }
  .library-card {
    gap: 14px;
    padding: 15px;
  }
  .library-cover {
    width: 64px;
    height: 88px;
  }
  .library-info h2 {
    font-size: 16px;
  }
  .library-actions {
    width: 100%;
    margin-left: 0;
    gap: 8px;
  }
  .library-actions > * {
    flex: 1;
    padding: 10px;
    font-size: 12px;
  }
  .tooltip {
    font-size: 14px;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.mobile-quota {
  display: none;
}
@media (max-width: 600px) {
  .mobile-quota {
    display: block;
    white-space: nowrap;
    color: var(--accent);
    background: var(--soft);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    min-height: 36px;
  }
}

@media (max-width: 600px) {
}

main {
  padding-top: 80px;
}
.workspace {
  position: relative;
}
.account-tools {
  position: absolute;
  top: 22px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 35;
}
.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #70796d;
}
.icon-button:hover {
  background: #eef0e8;
}
.avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}
.unread-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid white;
}
.account-menu {
  position: absolute;
  top: 49px;
  right: 0;
  width: 272px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 42px #2335261c;
}
.account-menu[hidden],
.unread-dot[hidden] {
  display: none;
}
.account-head {
  padding: 10px 8px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--green);
  background: #edf2e9;
  flex: none;
}
.account-head strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.account-head small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.account-menu hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 5px 0;
}
.account-menu button {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
  align-items: center;
}
.account-menu button:hover {
  background: #f5f6ef;
}
.account-menu button > svg:last-child {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #8c9586;
}
.account-menu button[data-action="logout"] {
  color: #a85b43;
}
.settings-field {
  display: grid;
  gap: 9px;
  margin: 12px 0 22px;
  font-size: 13px;
}
.settings-field input {
  width: 100%;
  border: 1px solid #dfe3d8;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
}
.settings-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  padding-bottom: 6px;
}
.settings-phone strong {
  display: block;
  font-weight: 550;
}
.settings-phone small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.message-list {
  margin-top: 12px;
}
.message-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.message-item > svg {
  margin-top: 2px;
  color: var(--accent);
}
.message-item > svg:last-child {
  width: 14px;
  color: var(--muted);
  margin-left: auto;
}
.message-item strong {
  font-size: 13px;
  font-weight: 600;
}
.message-item p {
  margin: 5px 0 0;
  font-size: 12px;
}
.mobile-wordmark {
  display: none;
}
@media (max-width: 1250px) {
  .account-tools {
    right: 28px;
  }
}
@media (max-width: 850px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filter-row:not(.genre-row) {
    flex-wrap: wrap;
    padding-right: 30px;
    gap: 5px;
  }
  .filter-row:nth-child(3) {
    padding-right: 70px;
  }
}
@media (max-width: 780px) {
  .account-tools {
    right: 24px;
  }
}
@media (max-width: 600px) {
  main {
    padding-top: 78px;
  }
  .account-tools {
    top: 18px;
    right: 16px;
    gap: 8px;
  }
  .icon-button,
  .account-tools .avatar {
    width: 38px;
    height: 38px;
  }
  .mobile-wordmark {
    display: block;
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 1px;
    line-height: 1.3;
  }
  .mobile-wordmark small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2px;
  }
  .filters {
    padding: 12px;
    gap: 8px;
  }
  .filter-label {
    width: 28px;
    font-size: 11px;
  }
  .options {
    gap: 4px;
  }
  .options button {
    padding: 4px 7px;
    min-height: 34px;
  }
  .filter-row:not(.genre-row),
  .filter-row:nth-child(3) {
    padding-right: 0;
  }
  .filter-reset {
    position: static;
    grid-column: 1/-1;
    grid-row: 3;
    justify-self: end;
    font-size: 11px;
    padding: 3px 0;
    min-height: 30px;
  }
  .settings-field input {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .reader-navigation {
    flex-wrap: wrap;
    gap: 0 14px;
    padding: 0 16px;
  }
  .reader-navigation .tabs {
    gap: 18px;
  }
  .reader-navigation .reader-actions {
    padding: 8px 0;
  }
  .reader-navigation .reader-actions > * {
    padding: 8px 10px;
    min-height: 40px;
    font-size: 12px;
  }
}
@media (max-width: 359px) {
  .reader-navigation .tabs {
    gap: 14px;
  }
  .reader-navigation .tabs button {
    font-size: 13px;
  }
  .reader-navigation {
    gap: 0 10px;
  }
}

.account-menu a[role="menuitem"] {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  align-items: center;
  font-size: 13px;
}
.account-menu a[role="menuitem"]:hover {
  background: #f5f6ef;
}
.account-menu a[hidden] {
  display: none;
}
.account-menu a > svg:last-child {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #8c9586;
}
.contact-dialog {
  text-align: center;
}
.contact-dialog > img {
  display: block;
  width: 280px;
  max-width: 100%;
  margin: 12px auto;
  border-radius: 8px;
}

/* Fullscreen playback preserves the complete source frame, including portrait video. */
video:fullscreen {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: #000 !important;
}
video:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: #000 !important;
}
video.video-fullscreen {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.nav-count {
  margin-left: auto;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: #7c8275;
  background: #f0f1ea;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.nav a.active .nav-count {
  color: var(--accent);
  background: #f7e2d7;
}
@media (max-width: 780px) {
  .nav a {
    position: relative;
  }
  .nav .nav-count {
    display: block;
    position: absolute;
    top: 4px;
    right: 1px;
    min-width: 16px;
    padding: 0 3px;
    margin: 0;
    font-size: 10px;
    line-height: 16px;
  }
}
@media (max-width: 600px) {
  .nav .nav-count {
    top: 3px;
    right: calc(50% - 30px);
    padding: 0 4px;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.hero-actions small {
  color: var(--muted);
  font-size: 12px;
}
.reverse-reader-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.reverse-reader-dialog .dialog-header h2 {
  font-size: 19px;
}
.reverse-reader-dialog .dialog-header .dialog-caption {
  font-size: 12px;
  margin-top: 5px;
}
.reverse-reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 24px 15px;
}
.reverse-reader-tools small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.reverse-reader-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px 15px;
  font-size: 12px;
  color: var(--muted);
}
.reverse-reader-note svg {
  width: 15px;
  height: 15px;
}
.reverse-pages {
  margin: 0 24px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.reverse-page {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.reverse-lock {
  padding: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.reverse-lock h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.reverse-lock p,
.reverse-lock small {
  font-size: 12px;
  color: var(--muted);
}
.reverse-lock p {
  margin: 10px 0 18px;
}
.reverse-lock small {
  display: block;
  margin-top: 12px;
}
.reverse-feedback,
.reverse-no-preview {
  padding: 8px 24px 16px;
  color: var(--muted);
  font-size: 13px;
}
.reverse-reader-dialog .dialog-body h3 {
  font-size: 17px;
}
@media (max-width: 600px) {
  .reverse-reader-tools {
    padding: 8px 16px 14px;
  }
  .reverse-reader-tools .secondary {
    padding: 8px 10px;
    font-size: 12px;
  }
  .reverse-reader-note {
    padding-inline: 16px;
  }
  .reverse-pages {
    margin: 0 12px;
  }
  .reverse-reader-dialog .dialog-header {
    padding-inline: 16px;
  }
  .reverse-reader-dialog .dialog-header h2 {
    font-size: 18px;
  }
  .reverse-lock {
    padding: 22px 16px;
  }
}

.script-hub-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 144px;
  padding: 30px 24px;
  border-style: dashed;
  background: #fcfbf8;
}
.script-empty-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #efefe7;
  color: #8a947f;
}
.script-empty-icon svg {
  width: 23px;
  height: 23px;
}
.script-hub-empty h2 {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.6;
  color: #626c5d;
}
.script-hub-empty p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: #92988a;
}
@media (max-width: 600px) {
  .script-hub-empty {
    flex-direction: column;
    gap: 12px;
    padding: 25px 20px;
    text-align: center;
  }
  .script-empty-icon {
    width: 42px;
    height: 42px;
  }
  .script-hub-empty p {
    font-size: 12px;
  }
}

/* Keep the compact list statistics separate from the introduction. */
.list-heading {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}
.view-tools {
  flex-shrink: 0;
}

/* Commerce facets are independent of story area, audience and genre. */
.commerce-filter-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 2px;
}
.commerce-filter-title {
  padding-top: 7px;
}
.commerce-filter-rows {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.filters .commerce-filter-row {
  flex-wrap: nowrap;
  padding-right: 0;
  align-items: flex-start;
  gap: 3px;
}
.commerce-filter-row > .filter-label {
  padding-top: 7px;
  color: #949b90;
}
.commerce-filter-row .options {
  min-width: 0;
}
.commerce-filter-row .options button {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .commerce-filter-group {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .commerce-filter-row > .filter-label {
    width: 30px;
  }
  .commerce-filter-row .options {
    gap: 5px 3px;
  }
  .commerce-filter-row .options button {
    padding-inline: 8px;
  }
}

/* A compact definition with a quiet label and emphasis on the two key ideas. */
.catalog-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: -62px 130px 22px 0;
}
.catalog-intro-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #eadfd2;
  border-radius: 11px;
  color: #a66b42;
  background: #f4eee6;
}
.catalog-intro-symbol svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}
.catalog-intro-copy {
  min-width: 0;
}
.catalog-intro h1 {
  margin: 0;
  color: #777e72;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.catalog-intro h1 strong {
  color: #384f42;
  font-weight: 600;
}
@media (max-width: 600px) {
  .catalog-intro {
    gap: 10px;
    min-height: 0;
    margin: 0 0 20px;
    align-items: flex-start;
  }
  .catalog-intro-symbol {
    margin-top: 3px;
    flex-basis: 32px;
    width: 32px;
    height: 34px;
    border-radius: 10px;
  }
  .catalog-intro h1 {
    font-size: 13px;
    line-height: 1.85;
  }
}

/* One result-level sort control; filtering remains independent. */
.catalog-sort {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.sort-label {
  margin-right: 5px;
  color: var(--muted);
  font-size: 12px;
}
.catalog-sort-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-sort-option:hover {
  background: #f1f3ef;
  color: var(--ink);
}
.catalog-sort-option.selected {
  color: var(--accent);
  background: var(--soft);
  font-weight: 600;
}
.sort-arrows {
  display: flex;
  color: #a1a79d;
}
.sort-arrows .lucide {
  width: 14px;
  height: 14px;
}
.catalog-sort-option.selected .sort-arrows {
  color: var(--accent);
}
@media (max-width: 1020px) {
  .listbar {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .listbar {
    flex-direction: column;
    align-items: stretch;
  }
  .view-tools {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .catalog-sort {
    gap: 2px;
    order: -1;
  }
  .sort-label {
    display: none;
  }
  .catalog-sort-option {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
    gap: 4px;
  }
}
