:root {
  --bg: #fff3ed;
  --paper: #fffdf9;
  --ink: #2f2117;
  --muted: #736d70;
  --line: #eadbd4;
  --red: #b65018;
  --red-deep: #a82d22;
  --cyan: #e8a13a;
  --yellow: #ffd765;
  --shadow: 0 18px 46px rgba(93, 49, 37, 0.11);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #28242a;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
  cursor: pointer;
}

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

.copy-topic-app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(98px + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(240, 79, 56, 0.035) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--bg);
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background: rgba(255, 243, 237, 0.94);
  border-bottom: 1px solid rgba(223, 204, 196, 0.84);
  backdrop-filter: blur(18px);
}

.back-link,
.sample-counter {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.back-link {
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.sample-counter {
  padding: 4px 9px;
}

.sample-counter strong,
.sample-counter small {
  display: block;
  line-height: 1.05;
}

.sample-counter strong {
  font-size: 15px;
}

.sample-counter small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 4px 13px 4px 13px;
  box-shadow: 4px 4px 0 var(--yellow);
  font: 900 17px/1 "Microsoft YaHei", sans-serif;
  transform: rotate(-2deg);
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lockup strong {
  font-size: 16px;
  letter-spacing: -0.4px;
}

.brand-lockup small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.minute-board {
  position: relative;
  margin: 12px 12px 0;
  padding: 20px 18px 18px;
  overflow: hidden;
  color: white;
  background: var(--red);
  border-radius: 28px 28px 10px 28px;
  box-shadow: 0 24px 54px rgba(217, 65, 45, 0.25);
}

.minute-board::after {
  position: absolute;
  top: -28px;
  right: -7px;
  color: rgba(255, 255, 255, 0.12);
  content: "“";
  font: 900 170px/1 Georgia, serif;
  pointer-events: none;
}

.board-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.35px;
}

.board-kicker span {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(67, 203, 197, 0.2);
}

.minute-board h1 {
  position: relative;
  z-index: 1;
  max-width: 350px;
  margin: 20px 0 12px;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.01;
  letter-spacing: -2.7px;
}

.minute-board p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.minute-tape {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 23px;
  padding-top: 17px;
}

.minute-tape::before,
.minute-tape::after {
  position: absolute;
  top: 5px;
  left: 0;
  height: 4px;
  content: "";
  border-radius: 999px;
}

.minute-tape::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.26);
}

.minute-tape::after {
  width: 74%;
  background: var(--yellow);
}

.minute-tape span {
  position: relative;
  color: rgba(255, 255, 255, 0.62);
  font: 850 10px/1 "Arial Narrow", "Segoe UI", sans-serif;
}

.minute-tape span::before {
  position: absolute;
  top: -15px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: white;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.minute-tape span:last-child {
  color: white;
  text-align: right;
}

.minute-tape span:last-child::before {
  right: 0;
  left: auto;
  background: var(--cyan);
}

.rights-note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 12px 12px 0;
  padding: 13px 14px;
  background: #fff8d8;
  border: 1px solid #ead58c;
  border-radius: 18px;
}

.rights-note-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #754b00;
  background: var(--yellow);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 950;
}

.rights-note p {
  margin: 0;
  color: #6f5940;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
}

.rights-note strong {
  color: #3d3022;
  font-size: 12px;
}

.search-panel {
  display: grid;
  gap: 10px;
  padding: 16px 12px 2px;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 9px 26px rgba(73, 46, 40, 0.06);
}

.search-box > span {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.search-box > span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  content: "";
  background: var(--ink);
  border-radius: 99px;
  transform: rotate(45deg);
}

.search-box input {
  min-width: 0;
  min-height: 50px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-weight: 650;
}

.search-box input::placeholder {
  color: #999093;
}

.search-box button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--red-deep);
  background: #ffe5de;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}

.filter-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.filter-rail::-webkit-scrollbar {
  display: none;
}

.filter-rail button,
.sort-button {
  min-height: 38px;
  padding: 0 13px;
  flex: 0 0 auto;
  color: #655c60;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  scroll-snap-align: start;
}

.filter-rail button.is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.featured-section,
.catalog-section {
  padding: 19px 12px 0;
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 11px;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-size: 21px;
  letter-spacing: -0.7px;
}

.eyebrow {
  color: var(--red);
  font: 900 9px/1 "Arial Narrow", "Segoe UI", sans-serif;
  letter-spacing: 1.1px;
}

.snapshot-label {
  padding: 5px 8px;
  color: #6f4f00;
  background: var(--yellow);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  transform: rotate(1deg);
}

.featured-card {
  padding: 18px;
  color: white;
  background: var(--ink);
  border-radius: 10px 28px 28px 28px;
  box-shadow: var(--shadow);
}

.featured-top,
.card-top,
.source-line,
.card-actions,
.card-meta {
  display: flex;
  align-items: center;
}

.featured-top,
.card-top {
  gap: 12px;
  justify-content: space-between;
}

.featured-card h3 {
  max-width: 300px;
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.heat-stamp {
  min-width: 64px;
  padding: 8px 7px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  transform: rotate(2deg);
}

.featured-excerpt {
  margin: 18px 0 10px;
  color: #fff6d4;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.featured-copy-label,
.full-copy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.featured-copy-label {
  margin-top: 16px;
  color: white;
}

.featured-copy-label span,
.full-copy-heading span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.4px;
}

.featured-copy-label small,
.full-copy-heading small {
  font-size: 9px;
  font-weight: 800;
}

.featured-copy-label small {
  color: rgba(255, 255, 255, 0.62);
}

.featured-copy {
  margin-top: 8px;
  padding: 15px 15px 14px;
  color: #312b2f;
  background: #fffdf8;
  border-left: 4px solid var(--cyan);
  border-radius: 2px 14px 14px 2px;
  box-shadow: inset 0 -1px rgba(31, 37, 53, 0.08);
}

.featured-copy p,
.full-copy-text p {
  margin: 0;
}

.featured-copy p + p,
.full-copy-text p + p {
  margin-top: 0.8em;
}

.featured-copy p {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.86;
}

.featured-card > p:not(.featured-excerpt) {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.65;
}

.featured-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.featured-source span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.45;
}

.featured-source a {
  min-height: 38px;
  padding: 0 11px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: white;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
}

.featured-copy-button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  color: var(--ink);
  background: var(--cyan);
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 950;
}

.catalog-heading {
  align-items: center;
}

.sort-button {
  min-height: 36px;
  padding: 0 11px;
}

.result-summary {
  margin: -2px 0 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.copy-list {
  display: grid;
  gap: 12px;
}

.copy-card {
  position: relative;
  padding: 16px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px 22px 9px 22px;
  box-shadow: 0 12px 30px rgba(86, 54, 44, 0.07);
}

.copy-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  content: "";
  background: var(--card-accent, var(--red));
}

.source-line {
  min-width: 0;
  gap: 9px;
}

.source-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--card-accent, var(--red));
  border-radius: 11px;
  font-size: 11px;
  font-weight: 950;
}

.source-line > span:last-child {
  min-width: 0;
}

.source-line strong,
.source-line small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-line strong {
  font-size: 12px;
}

.source-line small {
  max-width: 230px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.favorite-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #8c8183;
  background: #fff7f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 21px;
}

.favorite-button.is-active {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.copy-card h3 {
  margin: 15px 0 9px;
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.6px;
}

.full-copy-panel {
  position: relative;
  margin-top: 12px;
  padding: 13px 14px 14px 17px;
  overflow: hidden;
  color: #322d31;
  background:
    linear-gradient(90deg, transparent 0 33px, rgba(53, 104, 200, 0.09) 33px 34px, transparent 34px),
    #fffdf9;
  border: 1px solid #eadfd8;
  border-radius: 15px;
  box-shadow: inset 4px 0 var(--card-accent, var(--red));
}

.full-copy-heading {
  padding-bottom: 9px;
  border-bottom: 1px dashed #dfd3cd;
}

.full-copy-heading span {
  color: var(--card-accent, var(--red));
}

.full-copy-heading small {
  color: #887d7f;
}

.full-copy-text {
  padding-top: 10px;
}

.full-copy-text p {
  font-size: 15px;
  font-weight: 620;
  line-height: 1.9;
  text-align: left;
}

.copy-missing {
  color: #9a4e44;
}

.copy-excerpt {
  margin: 0 0 11px;
  padding: 12px 13px;
  color: #432f2c;
  background: #fff0e7;
  border-left: 3px solid var(--card-accent, var(--red));
  border-radius: 0 12px 12px 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.copy-excerpt span {
  display: block;
  margin-bottom: 4px;
  color: var(--card-accent, var(--red));
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-weight: 950;
}

.copy-summary {
  margin: 0 0 12px;
  color: #625b5d;
  font-size: 12px;
  line-height: 1.68;
}

.card-meta {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-meta span {
  padding: 5px 8px;
  color: #6f6668;
  background: #f6f1ee;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.card-meta .likes-meta {
  color: #9c291e;
  background: #ffe0d8;
}

.copy-detail {
  margin-top: 12px;
  border-top: 1px dashed #decfc9;
}

.copy-detail summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.copy-detail summary::-webkit-details-marker {
  display: none;
}

.copy-detail summary::after {
  content: "+";
  color: var(--red);
  font-size: 19px;
}

.copy-detail[open] summary::after {
  content: "−";
}

.beat-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beat-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: #615a5c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.beat-list li::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--card-accent, var(--red));
  border-radius: 2px;
  transform: rotate(45deg);
}

.why-box {
  margin: 12px 0 0;
  padding: 11px 12px;
  color: #62564a;
  background: #fff8d8;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.65;
}

.date-note {
  margin: 9px 0 0;
  color: #9b6358;
  font-size: 9px;
  line-height: 1.5;
}

.card-actions {
  gap: 8px;
  margin-top: 13px;
}

.card-actions button,
.card-actions a {
  min-height: 42px;
  padding: 0 12px;
  display: grid;
  flex: 1 1 0;
  place-items: center;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.copy-button {
  color: var(--ink);
  background: #fff0e7;
  border: 1px solid #f1c8b7;
}

.source-link {
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.empty-state,
.topic-footer {
  margin-top: 14px;
  padding: 18px;
  color: #665e60;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}

.empty-state strong,
.topic-footer strong {
  color: var(--ink);
  font-size: 15px;
}

.empty-state p,
.topic-footer p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.65;
}

.empty-state button,
.topic-footer a {
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--red);
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 900;
}

.topic-footer {
  margin: 24px 12px 0;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: 0;
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(4, 1fr);
  padding: 9px 10px max(9px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid rgba(219, 203, 196, 0.9);
  box-shadow: 0 -12px 36px rgba(53, 36, 31, 0.09);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  min-height: 54px;
  padding: 5px;
  color: #8a7f81;
  background: transparent;
  border: 0;
  border-radius: 13px;
}

.bottom-nav span,
.bottom-nav small {
  display: block;
}

.bottom-nav span {
  font: 900 15px/1 "Arial Narrow", "Segoe UI", sans-serif;
}

.bottom-nav small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 850;
}

.bottom-nav button.is-active {
  color: white;
  background: var(--ink);
}

.toast {
  position: fixed;
  z-index: 60;
  right: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  max-width: min(82vw, 340px);
  padding: 10px 14px;
  color: white;
  background: rgba(23, 27, 42, 0.94);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transform: translateX(50%);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .copy-card,
  .featured-card,
  .card-actions a,
  .card-actions button {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .copy-card:hover,
  .featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(86, 54, 44, 0.12);
  }
}

@media (max-width: 350px) {
  .app-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .brand-mark {
    display: none;
  }

  .minute-board {
    padding-inline: 15px;
  }

  .minute-board h1 {
    font-size: 34px;
  }

  .featured-source {
    grid-template-columns: 1fr;
  }

  .featured-source a {
    width: 100%;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .copy-card {
    padding: 14px 12px 15px 14px;
  }

  .full-copy-panel {
    padding: 12px 11px 13px 14px;
  }

  .full-copy-text p,
  .featured-copy p {
    font-size: 14px;
    line-height: 1.85;
  }

  .source-line small {
    max-width: 170px;
  }
}

/* v188 · GPT Image 2.0 选稿「Paw & Pixel Cards」手机小卡片版 */
:root {
  --hot-bg: #fefaf5;
  --hot-paper: #fffefa;
  --hot-ink: #2f2117;
  --hot-muted: #8a8989;
  --hot-line: #eee5de;
  --hot-red: #b65018;
}

html {
  background: #242126;
}

body {
  background: var(--hot-bg);
}

.copy-topic-app {
  width: min(100%, 430px);
  min-height: 100vh;
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
  background: var(--hot-bg);
}

.app-header {
  min-height: 62px;
  grid-template-columns: 36px minmax(0, 1fr) 42px;
  gap: 9px;
  padding: max(9px, env(safe-area-inset-top)) 14px 9px;
  background: rgba(254, 250, 245, 0.97);
  border-bottom: 1px solid #f1e5dd;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.back-link {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.back-link img {
  width: 21px;
  height: 21px;
  transform: rotate(180deg);
}

.brand-lockup {
  gap: 9px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 17px;
  transform: none;
}

.brand-lockup strong {
  color: var(--hot-ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-lockup small {
  display: none;
}

.sample-counter {
  display: flex;
  min-width: 42px;
  min-height: 26px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fffdfa;
  border: 1px solid #eadfd7;
  border-radius: 999px;
  box-shadow: none;
}

.sample-counter strong,
.sample-counter small {
  display: inline;
  margin: 0;
  color: #424047;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.catalog-view .minute-board,
.catalog-view .rights-note,
.catalog-view .search-box,
.catalog-view .featured-section,
.catalog-view .section-heading {
  display: none !important;
}

.search-panel {
  position: sticky;
  z-index: 18;
  top: max(62px, calc(43px + env(safe-area-inset-top)));
  margin: 0;
  padding: 0 14px;
  background: rgba(254, 250, 245, 0.98);
  border: 0;
  border-bottom: 1px solid #f1e5dd;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.filter-rail {
  display: grid;
  height: 45px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  overflow: visible;
}

.filter-rail button,
.filter-rail button:first-child,
.filter-rail button:not(:first-child) {
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 0 3px;
  color: #7d7a7b;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-rail button.is-active {
  color: var(--hot-red);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.filter-rail button.is-active::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 24px;
  height: 3px;
  content: "";
  background: var(--hot-red);
  border-radius: 999px;
  transform: translateX(50%);
}

.catalog-section {
  margin: 0;
  padding: 0 14px 18px;
}

.result-summary {
  display: flex;
  min-height: 35px;
  margin: 0;
  padding: 0 0 0 22px;
  align-items: center;
  color: #625d60;
  background: url("./assets/pet-mobile-ui-fire-v1.svg") no-repeat 0 50% / 16px 16px;
  border: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

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

.copy-card {
  position: relative;
  min-width: 0;
  height: 118px;
  padding: 0;
  overflow: hidden;
  background: var(--hot-paper);
  border: 1px solid var(--hot-line);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(66, 39, 23, 0.065);
}

.copy-card::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 4px;
  content: "";
  background: var(--card-accent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.copy-card .card-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: inherit;
}

.copy-card .favorite-button {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 4px;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.copy-card .card-heart-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: #e65d68;
  -webkit-mask: url("./assets/pet-mobile-works-icon-heart-v117.svg") center / contain no-repeat;
  mask: url("./assets/pet-mobile-works-icon-heart-v117.svg") center / contain no-repeat;
}

.copy-card .favorite-button.is-active {
  background: transparent;
  box-shadow: none;
}

.copy-card .favorite-button.is-active .card-heart-icon {
  background: #ff6470;
  -webkit-mask-image: url("./assets/pet-mobile-works-icon-heart-active-v117.svg");
  mask-image: url("./assets/pet-mobile-works-icon-heart-active-v117.svg");
}

.card-thumbnail {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 47px;
  height: 47px;
  object-fit: cover;
  object-position: 50% 38%;
  background: #f5eee8;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(37, 26, 22, 0.12);
}

.card-category {
  position: absolute;
  top: 34px;
  left: 10px;
  max-width: calc(100% - 76px);
  padding: 3px 7px;
  overflow: hidden;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, #fff 88%);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-card h3,
.copy-card .card-open h3 {
  position: absolute;
  top: 56px;
  right: 9px;
  left: 9px;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--hot-ink);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.3px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-duration {
  position: absolute;
  bottom: 8px;
  left: 9px;
  color: var(--hot-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.card-chevron {
  position: absolute;
  right: 8px;
  bottom: 5px;
  width: 17px;
  height: 17px;
}

.copy-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--card-accent) 26%, transparent);
  outline-offset: 1px;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  border-radius: 14px;
}

.topic-footer {
  margin: 16px 14px 8px;
  padding: 14px;
  color: #6e6662;
  background: #fff9f3;
  border: 1px solid #efe3da;
  border-radius: 14px;
  box-shadow: none;
}

.topic-footer strong {
  color: var(--hot-ink);
  font-size: 13px;
}

.topic-footer p,
.topic-footer a {
  font-size: 11px;
  line-height: 1.65;
}

.bottom-nav {
  right: 50%;
  bottom: 0;
  left: auto;
  width: min(100%, 430px);
  min-height: calc(60px + env(safe-area-inset-bottom));
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: rgba(255, 254, 251, 0.97);
  border: 0;
  border-top: 1px solid #eee3dc;
  border-radius: 0;
  box-shadow: 0 -8px 24px rgba(57, 38, 29, 0.07);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  padding: 5px 7px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #6f625a;
  background: transparent;
  border: 0;
  border-radius: 14px;
}

.bottom-nav button img,
.bottom-nav .nav-60s {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.bottom-nav .nav-60s {
  display: grid;
  place-items: center;
  color: inherit;
  font-size: 11px;
  font-weight: 950;
}

.bottom-nav .nav-source-icon {
  transform: rotate(-45deg);
}

.bottom-nav button small {
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.bottom-nav button.is-active {
  color: #8b4a1c;
  background: #fff0dc;
  box-shadow: inset 0 0 0 1px #efcfaa;
}

.bottom-nav button.is-active img {
  filter: none;
}

@media (hover: hover) and (pointer: fine) {
  .copy-card:hover {
    border-color: color-mix(in srgb, var(--card-accent) 36%, var(--hot-line));
    box-shadow: 0 7px 18px rgba(66, 39, 23, 0.11);
    transform: translateY(-1px);
  }

  .copy-card .favorite-button:hover,
  .filter-rail button:hover,
  .bottom-nav button:hover {
    transform: none;
  }
}

@media (max-width: 350px) {
  .app-header {
    grid-template-columns: 32px minmax(0, 1fr) 40px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-lockup strong {
    font-size: 15px;
  }

  .search-panel,
  .catalog-section {
    padding-right: 10px;
    padding-left: 10px;
  }

  .copy-list {
    gap: 6px;
  }

  .copy-card {
    height: 124px;
  }

  .card-thumbnail {
    width: 48px;
    height: 48px;
  }

  .copy-card h3,
  .copy-card .card-open h3 {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* v4: title-card index and focused one-minute reading view */
.featured-card {
  padding: 0;
  overflow: hidden;
}

.featured-open,
.card-open {
  width: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.featured-open {
  display: block;
  padding: 18px;
  border-radius: inherit;
}

.featured-index {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.6px;
}

.featured-summary {
  display: -webkit-box;
  margin: 11px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-source-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.featured-source-line > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.45;
}

.featured-source-line strong {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
}

.card-open {
  display: block;
  margin-top: 7px;
  padding: 0;
  border-radius: 13px;
}

.card-open h3 {
  margin-top: 12px;
}

.card-teaser {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #70676a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-enter {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff0e7;
  border: 1px solid #f1c8b7;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 950;
}

.card-enter strong {
  color: var(--card-accent, var(--red));
  font-size: 19px;
}

.detail-view {
  padding: 12px 12px calc(28px + env(safe-area-inset-bottom));
}

.detail-back {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  padding: 0 13px 0 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 11px;
  font-weight: 900;
}

.detail-back span {
  font: 30px/0.8 Georgia, serif;
}

.detail-article {
  margin-top: 10px;
}

.detail-hero {
  position: relative;
  padding: 20px 18px 17px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  border-radius: 10px 27px 27px 27px;
  box-shadow: var(--shadow);
}

.detail-hero::after {
  position: absolute;
  right: -11px;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.055);
  content: "60";
  font: 950 126px/1 "Arial Narrow", "Segoe UI", sans-serif;
  pointer-events: none;
}

.detail-kicker,
.detail-meta,
.detail-timeline,
.detail-actions {
  display: flex;
  align-items: center;
}

.detail-kicker {
  position: relative;
  z-index: 1;
  justify-content: space-between;
}

.detail-kicker > span {
  color: var(--cyan);
  font: 900 9px/1 "Arial Narrow", "Segoe UI", sans-serif;
  letter-spacing: 1.15px;
}

.detail-favorite {
  min-height: 34px;
  padding: 0 10px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.detail-favorite.is-active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.detail-hero h1 {
  position: relative;
  z-index: 1;
  margin: 22px 0 10px;
  font-size: clamp(28px, 8.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -1.7px;
}

.detail-hero > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.detail-meta {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.detail-meta span {
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.detail-timeline {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 4px solid rgba(255, 255, 255, 0.14);
}

.detail-timeline::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 72%;
  height: 4px;
  content: "";
  background: var(--yellow);
  border-radius: 999px;
}

.detail-timeline span {
  color: rgba(255, 255, 255, 0.58);
  font: 850 9px/1 "Arial Narrow", "Segoe UI", sans-serif;
}

.detail-timeline span:last-child {
  color: var(--yellow);
}

.detail-copy-panel,
.detail-analysis,
.detail-source-note {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(86, 54, 44, 0.07);
}

.detail-copy-panel {
  position: relative;
  padding: 17px 16px 18px 19px;
  overflow: hidden;
  box-shadow: inset 5px 0 var(--card-accent, var(--red)), 0 12px 30px rgba(86, 54, 44, 0.07);
}

.detail-copy-panel .full-copy-heading {
  padding-bottom: 11px;
  border-bottom: 1px dashed #dfd3cd;
}

.detail-copy-panel .full-copy-heading span {
  color: var(--card-accent, var(--red));
}

.detail-copy-panel .full-copy-text {
  padding-top: 13px;
}

.detail-copy-panel .full-copy-text p {
  font-size: 15px;
  font-weight: 620;
  line-height: 1.92;
}

.detail-analysis {
  padding: 17px;
}

.detail-section-title {
  margin-bottom: 13px;
}

.detail-section-title span {
  color: var(--card-accent, var(--red));
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.8px;
}

.detail-section-title h2 {
  margin: 3px 0 0;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.detail-source-note {
  padding: 14px 15px;
  color: #655d5f;
}

.detail-source-note strong {
  color: var(--ink);
  font-size: 11px;
}

.detail-source-note p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.65;
}

.detail-actions {
  position: sticky;
  z-index: 15;
  bottom: max(8px, env(safe-area-inset-bottom));
  gap: 8px;
  margin-top: 13px;
  padding: 8px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(222, 205, 197, 0.92);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(53, 36, 31, 0.14);
  backdrop-filter: blur(16px);
}

.detail-actions > * {
  min-height: 46px;
  display: grid;
  flex: 1 1 0;
  place-items: center;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.is-detail-view .copy-topic-app {
  padding-bottom: 0;
}

.is-detail-view .sample-counter {
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .featured-open:hover,
  .card-open:hover .card-enter {
    filter: brightness(1.03);
  }
}

@media (max-width: 350px) {
  .featured-source-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-view {
    padding-inline: 10px;
  }

  .detail-hero {
    padding-inline: 15px;
  }

  .detail-copy-panel .full-copy-text p {
    font-size: 14px;
    line-height: 1.88;
  }
}

/* v188 final touch-target hardening for the compact card system. */
.app-header {
  grid-template-columns: 44px minmax(0, 1fr) 42px;
}

.back-link {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
}

.copy-card .favorite-button {
  top: 2px;
  left: 2px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 11px;
}

.detail-favorite {
  min-height: 44px;
}

@media (max-width: 350px) {
  .app-header {
    grid-template-columns: 44px minmax(0, 1fr) 42px;
  }
}

/* v190 · warm brand unification. The compact information architecture stays
   intact; only product-family color, elevation and selected states change. */
:root {
  --hot-bg: #fff9f2;
  --hot-paper: #fffdf9;
  --hot-ink: #2f2117;
  --hot-muted: #826f61;
  --hot-line: #ead8c8;
  --hot-red: #b65018;
  --bg: #fff9f2;
  --paper: #fffdf9;
  --ink: #2f2117;
  --muted: #826f61;
  --line: #ead8c8;
  --red: #b65018;
  --red-deep: #974819;
  --cyan: #e8a13a;
  --yellow: #ffd47a;
}

html {
  background: #f2e7dc;
}

.copy-topic-app,
.app-header,
.search-panel {
  background-color: var(--hot-bg);
}

.brand-mark {
  background: linear-gradient(145deg, #f28a2b, #dd5c1d);
  border-radius: 12px;
  box-shadow: none;
}

.copy-card {
  border-color: #ead7c5;
  box-shadow: 0 4px 12px rgba(82, 50, 25, 0.07);
}

.copy-card::before {
  height: 3px;
}

.card-category {
  color: #8b4a1c;
  background: #fff0dc;
}

.bottom-nav button.is-active {
  color: #8b4a1c;
  background: #fff0dc;
  box-shadow: inset 0 0 0 1px #efcfaa;
}

.bottom-nav button.is-active img {
  filter: none;
}

.detail-article,
.featured-card {
  --card-accent: #d5722e !important;
}

/* v193 · selected GPT Image 2.0 option #9 fidelity on the warm app shell. */
:root {
  --hot-red: #ed4839;
}

.copy-card {
  border-color: var(--hot-line);
}

.copy-card::before {
  height: 4px;
}

.card-category {
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, #fff 88%);
}

.bottom-nav button.is-active {
  color: #fff;
  background: #151b2b;
  box-shadow: none;
}

.bottom-nav button.is-active img {
  filter: brightness(0) invert(1);
}

/* v193 · selected GPT Image 2.0 option #9 fidelity */
