:root {
  --ink: #28231f;
  --muted: #716157;
  --paper: #fffdfa;
  --apricot: #ffc392;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font: 400 16px/1.45 var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
[hidden],
.past {
  display: none !important;
}
html,
body {
  margin: 0;
  min-width: 0;
}
body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 10px clamp(8px, 2vw, 30px);
}
.demo {
  width: min(1100px, 100%);
  min-width: 0;
}
.frame {
  background: var(--apricot);
  padding: 5px;
  border-radius: 16px;
}
.app {
  container-type: size;
  height: min(540px, calc(100dvh - 100px));
  min-height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.embedded body {
  padding: 0;
  min-height: 0;
  display: block;
}
.embedded .demo {
  width: 100%;
}
.embedded .frame {
  padding: 0;
  background: none;
}
.embedded .app {
  height: 100dvh;
  min-height: 0;
  border-radius: 0;
}
.embedded .app:not([data-phase="welcome"]) {
  padding-block-end: 46px;
}
.embedded .controls {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.stage {
  --gutter: clamp(14px, 4cqw, 40px);
  --line-gap: clamp(9px, 3.5cqh, 18px);
  --chat-width: min(820px, calc(100% - 2 * var(--gutter)));
  --head: clamp(44px, 14cqh, 72px);
  height: 100%;
}
.identity {
  margin-inline: auto;
  width: var(--chat-width);
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 4cqh, 18px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.scout-mark {
  width: min(2.15em, calc(var(--head) - 8px));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex: none;
}
[data-phase="welcome"] .stage {
  display: grid;
  justify-items: center;
  grid-template-rows: 49% 51%;
  background:
    radial-gradient(ellipse 80% 48% at 50% 107%, #ffead8, transparent),
    var(--paper);
}
[data-phase="welcome"] .identity {
  align-self: end;
  justify-content: center;
  height: auto;
}
.embedded .app[data-at-start] .stage {
  grid-template-rows: 1fr;
  place-items: center;
}
.embedded .app[data-at-start] .identity {
  align-self: center;
}
.embedded .app[data-at-start] .scout-mark {
  width: clamp(90px, 24cqw, 128px);
}
.embedded .app[data-at-start] .welcome {
  display: none;
}
[data-phase="welcome"] .name {
  display: none;
}
[data-phase="welcome"] .scout-mark {
  width: clamp(64px, 22cqh, 112px);
  filter: drop-shadow(0 5px 5px rgb(148 72 26 / 10%));
}
.welcome {
  width: min(88%, 22em);
  text-align: center;
  text-wrap: pretty;
  font-size: clamp(18px, min(4.8cqw, 5.2cqh), 24px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: clamp(14px, 4cqh, 22px);
}
.thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--chat-width);
  margin-inline: auto;
  height: calc(100% - var(--head) - clamp(10px, 3.8cqh, 20px));
  padding-top: clamp(6px, 2cqh, 10px);
  gap: var(--line-gap);
  overflow: hidden;
  overflow-anchor: none;
  font-size: clamp(15px, 5.4cqh, 16px);
  line-height: 1.4;
  letter-spacing: -0.008em;
}
.message {
  flex: none;
  max-width: 85%;
  text-wrap: pretty;
}
.assistant {
  padding-block: 0.12em;
}
.user {
  align-self: flex-end;
  max-width: 75%;
  background: #f8eee4;
  border-radius: 1.1em 1.1em 0.35em 1.1em;
  padding: 0.52em 0.85em;
}
[data-phase="results"] .message:last-child {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  gap: var(--line-gap);
  padding: 0;
}
[data-phase="results"] .reply {
  display: grid;
  max-width: 68ch;
}
.reply .reserve {
  display: none;
}
[data-phase="results"] .reserve {
  display: block;
  visibility: hidden;
}
.reply > * {
  grid-area: 1 / 1;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
}
#play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  min-height: 36px;
  border: 0;
  border-radius: 22px;
  background: #221e1b;
  color: white;
  font: 600 13px var(--sans);
  cursor: pointer;
}
#play:disabled {
  opacity: 0.5;
}
#playIcon {
  width: 14px;
  height: 14px;
}
.clock {
  font:
    12px ui-monospace,
    monospace;
  color: #504c49;
  white-space: nowrap;
}
#seek {
  appearance: none;
  outline: none;
  border: 0;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  height: 28px;
  margin: 0;
  cursor: pointer;
  background: linear-gradient(
      to right,
      #26211d var(--pct, 0%),
      #dedbd6 var(--pct, 0%)
    )
    center / 100% 3px no-repeat;
}
#seek::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #26211d;
}
#seek::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #26211d;
  border: 0;
}
#error {
  color: #a22d22;
  font-size: 13px;
}
@media (max-width: 600px) {
  .frame {
    padding: 4px;
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

#seek:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #9d461a;
  outline-offset: 3px;
}
#seek:focus-visible::-moz-range-thumb {
  outline: 2px solid #9d461a;
  outline-offset: 3px;
}

.live-controls #play {
  padding-inline: 16px;
}
.live-controls {
  flex-wrap: wrap;
  font-size: 13px;
}
.live-controls #live-state {
  color: var(--muted);
}
.live-controls a {
  margin-left: auto;
  color: var(--ink);
}

.stage {
  --footer: 0px;
  --bottom: clamp(6px, 2cqh, 10px);
  --caption-lines: 5;
  position: relative;
}
.stage:has(.source-bar:not([hidden])) {
  --footer: clamp(40px, 10cqh, 52px);
}
.thread {
  height: calc(100% - var(--head) - var(--footer) - var(--bottom));
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #a3491b;
  outline-offset: -2px;
}
.message:has(.activity:not([hidden])) {
  width: 100%;
  max-width: 100%;
}
.activity {
  --query-height: clamp(31px, 7.7cqh, 40px);
  --spare: var(--spare-4, 0);
  margin-bottom: calc(var(--query-height) * var(--spare));
  width: min(100%, 650px);
  background: #fff;
  border: 1px solid #e9dfd6;
  border-radius: 13px;
  padding-inline: clamp(10px, 2cqw, 16px);
  font-size: clamp(13px, 2.2cqw, 15px);
  letter-spacing: -0.008em;
}
.content:not([hidden]) + .activity {
  margin-top: 0.7em;
}
.activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(36px, 9cqh, 46px);
  gap: 8px;
}
.search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.search-label::before {
  content: "";
  width: 1.12em;
  height: 1.12em;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23954a21' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
}
#history-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: stretch;
  color: #784326;
  background: transparent;
  font: inherit;
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  border: none;
  padding: 0 2px 0 10px;
}
#history-button::after {
  content: "";
  width: 0.34em;
  height: 0.34em;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}
#history-button:hover {
  text-decoration: underline;
}
.query {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: var(--query-height);
  border-top: 1px solid #f1ebe5;
  color: #3c352e;
  text-wrap: nowrap;
}
.query:last-child {
  margin-bottom: 2px;
}
.query-terms {
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.query-scope {
  order: 1;
  color: var(--muted);
  background: #f7f3ee;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: max(12px, 0.87em);
  flex: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Keep the latest batch legible. All queries remain in the history. */
.query:nth-last-child(n + 5) {
  display: none;
}
@container (max-width: 480px) {
  .query-scope {
    font-size: 0;
  }
  .query-scope::before {
    content: attr(data-domain);
    font-size: 11px;
  }
}
@container (max-height: 280px) {
  .activity {
    --spare: var(--spare-2, 0);
  }
  .query:nth-last-child(n + 3) {
    display: none;
  }
}

[data-phase="results"] .assistant :is(.reply, .content) {
  min-height: 0;
  max-height: calc(1.4em * var(--caption-lines));
  line-height: 1.4;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-wrap: wrap;
  flex-shrink: 0;
}
[data-phase="results"]
  .assistant:not(:has(#results:not([hidden])))
  :is(.reply, .content) {
  max-height: 100%;
}
#results {
  flex: 1;
  min-height: 0;
  display: flex;
}
.cards {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
}
.product {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 0 48%;
  min-width: 0;
  border-radius: 14px;
  background: white;
  border: 1px solid #e8e1db;
  overflow: hidden;
}
.product.no-photo {
  grid-template-columns: 1fr;
}
.product-image {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 6px;
}
.product-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.product-info {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 0.23em;
  padding: 0 clamp(9px, 2cqw, 20px);
  font-size: clamp(13px, 3.4cqh, 16px);
  line-height: 1.25;
}
.product-info:hover .product-name {
  text-decoration: underline;
}
.product-name {
  font-weight: 600;
  font-size: 1.2em;
  letter-spacing: -0.02em;
}
.product-name,
.product-extra {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-extra {
  color: var(--muted);
}
.product-price {
  margin-top: 0.5em;
}

.source-bar {
  height: var(--footer);
  width: var(--chat-width);
  margin-inline: auto;
  display: flex;
  align-items: end;
}
#sources-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 11px 5px 7px;
  background: transparent;
  border: 1px solid #ded8d1;
  border-radius: 99px;
  font: 550 13px var(--sans);
  color: var(--ink);
  cursor: pointer;
}
#sources-button:hover {
  background: #f7f1eb;
}
#publishers {
  display: flex;
}
.publisher {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font: 650 11px var(--sans);
  border: 2px solid var(--paper);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: #52535b;
}
.publisher[data-tone="1"] {
  background: #9d5029;
}
.publisher[data-tone="2"] {
  background: #506670;
}
.publisher + .publisher {
  margin-left: -5px;
}

#details-panel {
  width: min(440px, calc(100% - 24px));
  max-height: min(90dvh, 480px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #e6dfd7;
  border-radius: 16px;
  box-shadow: 0 16px 64px rgb(49 35 23 / 16%);
}
#details-panel[open] {
  display: flex;
  flex-direction: column;
}
#details-panel::backdrop {
  background: rgb(32 23 17 / 24%);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 4px 16px;
  flex: none;
}
#panel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
#close-panel {
  background: none;
  color: var(--muted);
  width: 40px;
  height: 40px;
  border: none;
  font: 22px var(--sans);
  cursor: pointer;
}
.panel-body {
  overflow: auto;
  padding: 0 8px 8px;
  overscroll-behavior: contain;
}
.source-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.source-card:hover {
  background: #f6f0e9;
}
.source-card::after {
  content: "↗";
  color: var(--muted);
  flex: none;
  font-size: 14px;
  margin-left: auto;
}
.source-copy {
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}
.source-site {
  font-size: 12px;
  color: var(--muted);
}
.source-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
#search-history {
  padding: 0 8px;
  font-size: 13px;
}
#history-label {
  cursor: pointer;
  color: var(--muted);
  padding: 10px 0;
}
[data-mode="history"] #history-label {
  display: none;
}
.search-call + .search-call {
  margin-top: 14px;
}
.batch-label {
  font-size: 12px;
  font-weight: 600;
  color: #81502f;
  margin: 4px 0 2px;
}
.query-batch {
  padding: 0;
  margin: 0;
  list-style: none;
}
.query-batch li {
  padding: 8px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.query-batch li + li {
  border-top: 1px solid #ede5db;
}

@container (max-width:540px) {
  .message {
    max-width: 96%;
  }
  .user {
    max-width: 90%;
  }
  .thread {
    font-size: clamp(14px, 4.1cqw, 16px);
  }
  .product-name {
    font-size: 1.08em;
  }
  .product {
    flex-basis: 90%;
    border-radius: 10px;
  }
  .product-info {
    padding-left: 4px;
  }
}
@container (max-height:350px) {
  .stage {
    --caption-lines: 3;
    --line-gap: 7px;
    --head: 38px;
    --gutter: 12px;
  }
  .thread {
    padding-top: 0;
    font-size: 14px;
  }
  .user {
    padding-block: 0.36em;
  }
  .message:has(.activity:not([hidden])) .content {
    display: none;
  }
  .message:has(.activity:not([hidden])) .activity {
    margin-top: 0;
  }
  .query {
    line-height: 1.25;
  }

  .product-price {
    margin-top: 0.1em;
  }
  .product-image {
    padding: 2px;
  }
}
@container (max-height:280px) {
  .stage {
    --caption-lines: 2;
  }
  .product {
    grid-template-columns: 38% minmax(0, 1fr);
  }
}

.cards.comparison {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e1db;
}
.comparison-row {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 3px clamp(9px, 2.4cqw, 20px);
  gap: clamp(6px, 2cqw, 16px);
  color: var(--ink);
  text-decoration: none;
}
.comparison-row + .comparison-row {
  border-top: 1px solid #eee6dd;
}
.comparison-row:hover strong {
  text-decoration: underline;
}
.comparison-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}
.comparison-copy strong,
.comparison-price {
  font-size: clamp(14px, 4cqh, 19px);
  font-weight: 550;
  letter-spacing: -0.02em;
}
.comparison-copy span {
  color: var(--muted);
  font-size: clamp(12px, 3cqh, 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comparison-image {
  width: 20%;
  max-width: 110px;
  height: 100%;
  object-fit: contain;
}
@container (max-height: 280px) {
  .comparison-copy span {
    display: none;
  }
}

/* Product cards adapt to the room left after the spoken reply and sources. */
#results:has(.board) {
  container: shortlist / size;
}
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}
.item-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e7dfd7;
  border-radius: 13px;
  overflow: hidden;
}
.item-card:hover {
  border-color: #bc8c67;
}
.item-media {
  min-width: 0;
  min-height: 0;
  padding: 10px 10px 2px;
}
.item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.item-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  text-wrap: wrap;
  grid-template-areas: "name name" "detail price" "features price";
  gap: 3px 8px;
  padding: 9px 14px 12px;
  line-height: 1.25;
  min-width: 0;
}
.item-name {
  grid-area: name;
  font-size: clamp(15px, 2.3cqw, 17px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.item-price {
  grid-area: price;
  align-self: end;
  font-size: 1em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.item-detail {
  grid-area: detail;
  color: var(--muted);
  font-size: 13px;
}
.item-features {
  grid-area: features;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  margin-top: 5px;
  color: #6c4a34;
}
.item-features span {
  background: #fbf4ed;
  padding: 3px 6px;
  border-radius: 4px;
}
.text-only .item-media {
  display: none;
}
@container shortlist (max-width: 620px) and (min-width: 501px) {
  .item-info {
    padding-inline: 10px;
  }
  .item-features span + span {
    display: none;
  }
}
@container shortlist (min-width: 501px) and (max-height: 178px) {
  .item-card {
    grid-template: minmax(0, 1fr) / 34% minmax(0, 1fr);
  }
  .item-media {
    padding: 6px;
  }
  .item-info {
    grid-template-areas: "name" "detail" "features" "price";
    grid-template-columns: 1fr;
    align-content: center;
    padding: 5px 8px 5px 3px;
  }
  .item-features span + span {
    display: none;
  }
  .item-price {
    margin-top: 3px;
  }
}
@container shortlist (min-width: 501px) and (max-height: 117px) {
  .item-features {
    display: none;
  }
}
@container shortlist (max-width: 500px) {
  .board {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-auto-rows: minmax(0, 1fr);
    gap: 7px;
  }
  .item-card {
    grid-template: minmax(0, 1fr) / 32% minmax(0, 1fr);
    border-radius: 10px;
  }
  .item-media {
    padding: 6px;
  }
  .item-info {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "detail" "features" "price";
    padding: 4px 8px;
    align-content: center;
  }
  .item-features {
    margin: 0;
  }
  .item-features span {
    padding: 0;
    background: transparent;
  }
  .item-features span + span {
    display: none;
  }
  .item-price {
    margin-top: 3px;
  }
}
@container shortlist (max-width: 500px) and (max-height: 198px) {
  .item-card {
    grid-template-columns: 23% minmax(0, 1fr);
  }
  .item-info {
    gap: 1px;
  }
  .item-features {
    display: none;
  }
}
@container shortlist (max-width: 500px) and (max-height: 150px) {
  .item-media {
    padding: 3px;
  }
  .item-name {
    font-size: 13px;
  }
  .item-price {
    font-size: 13px;
    margin: 0;
  }
  .item-detail {
    display: none;
  }
}

/* Lead with one differentiating spec. Leave room for the product itself. */
.board:not(.text-only) .item-features span + span {
  display: none;
}
@container shortlist (min-width: 501px) and (min-height: 179px) {
  .item-features {
    margin-top: 3px;
  }
  .item-features span {
    background: transparent;
    padding: 0;
    color: var(--muted);
  }
}

.board.paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@container shortlist (max-width: 500px) {
  .board.paired {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .playing .item-card:not([hidden]) {
    animation: card-arrival 180ms ease-out;
  }
  @keyframes card-arrival {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

.price-prefix {
  font-size: 0.72em;
  color: var(--muted);
  font-weight: 400;
}
.board:not(.text-only) .item-stock {
  display: none;
}

/* When search returns no matching photo, give the listing a warm title
   panel and keep pricing in a fixed row across the comparison. */
.text-only .item-card {
  --card-pad: clamp(14px, 2.4cqw, 20px);
  --card-ink: #33251e;
  --card-secondary: #654b3b;
  --card-edge: #e5c6aa;
  --card-tint: #ffdfbf;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  color: var(--card-ink);
  background: #fff7ef;
  border-color: var(--card-edge);
}
.text-only .item-info {
  isolation: isolate;
  position: relative;
  padding: 0;
  min-height: 0;
  grid-template-areas: "name name" "detail detail" "features features" "price stock";
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0;
  align-items: start;
}
.text-only .item-info::before {
  content: "";
  z-index: -1;
  position: absolute;
  grid-area: 1 / 1 / 4 / -1;
  inset: 0;
  background:
    linear-gradient(100deg, #fff0df 8%, var(--card-tint) 69%, transparent 100%),
    repeating-radial-gradient(
      circle at 106% 0%,
      transparent 0 10px,
      #ad572527 11px,
      #fff5df75 12px,
      transparent 13px
    ),
    var(--card-tint);
  border-bottom: 1px solid #bb6b3830;
}
.text-only .item-name {
  padding: var(--card-pad) var(--card-pad) 0;
  font-size: clamp(18px, 2.8cqw, 22px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.text-only .item-detail {
  padding: 4px var(--card-pad) 0;
  color: var(--card-secondary);
  font-size: 14px;
}
.text-only .item-features {
  margin: 0;
  padding: 0 var(--card-pad) 12px;
  align-self: end;
  color: var(--card-secondary);
  font-size: 14px;
}
.text-only .item-features span {
  background: none;
  color: inherit;
  padding: 0;
}
.text-only .item-features span + span {
  display: none;
}
.text-only .item-price {
  margin: 0;
  padding: 12px 0 12px var(--card-pad);
  font-size: clamp(17px, 2.5cqw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.text-only .price-prefix {
  font-size: max(0.7em, 11px);
  letter-spacing: normal;
}
.text-only .item-stock {
  grid-area: stock;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: center;
  margin-right: var(--card-pad);
  gap: 6px;
  color: var(--card-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.text-only .item-stock::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #af5a23;
  border-radius: 50%;
}
.text-only .item-stock[data-available="true"]::before {
  background: #357556;
}
.text-only .item-card:is(:hover, :focus-visible) {
  border-color: #a96a40;
}
.text-only .item-card:focus-visible {
  outline: 2px solid #8d4929;
  outline-offset: -3px;
}
.text-only .item-card:is(:hover, :focus-visible) .item-name {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
@container shortlist (min-width: 501px) {
  .board.text-only {
    max-height: 174px;
  }
}
@container shortlist (min-width: 501px) and (max-height: 146px) {
  .text-only .item-card {
    --card-pad: 14px;
  }
  .text-only .item-name {
    padding-top: 10px;
    font-size: 18px;
  }
  .text-only .item-detail {
    padding-top: 2px;
  }
  .text-only .item-features {
    display: none;
  }
  .text-only .item-price {
    padding-block: 7px;
    font-size: 16px;
  }
}
@container shortlist (min-width: 501px) and (max-height: 95px) {
  .text-only .item-name {
    font-size: 16px;
    padding-top: 5px;
  }
  .text-only .item-detail {
    font-size: 12px;
  }
  .text-only .item-price {
    padding-block: 3px;
  }
}
/* On narrow screens, line up prices and stock to the right of each name. */
@container shortlist (max-width: 500px) {
  .board.text-only {
    max-height: 238px;
  }
  .text-only .item-info {
    grid-template-areas: "name price" "detail stock" "features features";
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 12px;
    background: linear-gradient(110deg, var(--card-tint), #fff5e8 80%);
  }
  .text-only .item-info::before {
    display: none;
  }
  .text-only :is(.item-name, .item-detail, .item-price) {
    padding: 0;
  }
  .text-only .item-name {
    font-size: 17px;
  }
  .text-only .item-price {
    align-self: center;
    justify-self: end;
    font-size: 16px;
  }
  .text-only .item-stock {
    font-size: 12px;
    margin: 0;
  }
  .text-only .item-features {
    font-size: 13px;
    padding: 4px 0 0;
  }
}
@container shortlist (max-width: 500px) and (max-height: 198px) {
  .text-only .item-info {
    grid-template-rows: auto auto;
    grid-template-areas: "name price" "detail stock";
  }
  .text-only .item-features {
    display: none;
  }
}
@container shortlist (max-width: 500px) and (max-height: 150px) {
  .text-only .item-info {
    padding: 2px 8px;
    gap: 1px 4px;
  }
  .text-only .item-detail {
    display: block;
    font-size: 12px;
  }
  .text-only .item-name,
  .text-only .item-price {
    font-size: 14px;
  }
  .text-only .item-stock {
    font-size: 11px;
  }
}

#page-requests {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-block: 7px;
  border-top: 1px solid #f1ebe5;
  font-size: 0.88em;
}
.page-label {
  color: var(--muted);
  margin-inline-end: 2px;
}
.requested-page {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 5px;
  color: #784326;
  background: #fff3e7;
  text-decoration: none;
}
.requested-page:hover {
  text-decoration: underline;
}
@container (max-height: 350px) {
  .activity:has(#page-requests:not([hidden])) {
    --spare: 0;
  }
  .activity:has(#page-requests:not([hidden])) .query:nth-last-child(n + 3) {
    display: none;
  }
}
@container (max-width: 480px) {
  #page-requests {
    flex-wrap: wrap;
  }
  .requested-page {
    max-width: 100%;
  }
}
