.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.screen-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.screen-body::-webkit-scrollbar {
  display: none;
}

.product-pricing {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  min-height: var(--price-panel-height);
  padding: var(--price-panel-padding) 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
}

.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: var(--price-size);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.price-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--price-caption-gap);
  text-align: center;
}

.price-caption {
  color: var(--color-ink-soft);
  font-size: var(--price-caption-size);
  font-weight: 400;
}

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

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--wordmark-width) minmax(0, 1fr);
  flex-shrink: 0;
  align-items: center;
  height: calc(var(--header-height) + var(--safe-top));
  min-height: calc(var(--tap-target) + 1px + var(--safe-top));
  padding: var(--safe-top) 0 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}

.header-tools {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-tools-end {
  justify-content: flex-end;
}

.icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--tap-target);
  height: var(--tap-target);
  padding: 11px;
  border: 0;
  background: transparent;
}

.site-header .icon-button {
  position: relative;
  isolation: isolate;
  padding: 0;
  background: transparent;
}

.site-header .icon-button::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: var(--header-icon-circle);
  height: var(--header-icon-circle);
  border-radius: 50%;
  background: var(--color-icon-surface);
  transform: translate(-50%, -50%);
}

.site-header .icon-button:focus-visible {
  outline-offset: -2px;
}

/* Safari can show the focus frame after a tap; the header icons show it for keyboard use only. */
:root:not(.is-keyboard) .site-header .icon-button:focus-visible {
  outline: none;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
}

.wordmark {
  display: block;
  width: var(--wordmark-width);
  height: calc(var(--header-height) - 1px);
  min-height: var(--tap-target);
  padding: 0;
  border: 0;
  background: var(--color-brand);
}

.wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark:focus-visible {
  outline: 2px solid var(--color-paper);
  outline-offset: -4px;
}

.site-header .icon-button svg {
  width: var(--header-icon-glyph);
  height: var(--header-icon-glyph);
}

.site-header .language-button svg {
  width: var(--header-globe-glyph);
  height: var(--header-globe-glyph);
}

.bag-button {
  position: relative;
}

.bag-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--color-paper);
  background: var(--color-ink);
  font: 10px var(--font-mono);
}

.material-story {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: calc(var(--stage-min-height) + var(--usage-row-height) + var(--timeline-panel-height));
  background: var(--color-surface);
}

.story-stage {
  position: relative;
  flex: 1;
  min-height: var(--stage-min-height);
  overflow: hidden;
  isolation: isolate;
}

.story-art {
  position: absolute;
  top: var(--photo-art-top);
  right: 0;
  left: 0;
  height: var(--photo-art-height);
  transform: translateY(var(--photo-art-anchor));
  filter: brightness(var(--photo-matte-brightness));
}

.story-art svg {
  width: 100%;
  height: 100%;
  max-width: none;
}

.backpack-art {
  filter: none;
}

.product-name {
  position: absolute;
  z-index: 1;
  right: var(--control-gutter);
  bottom: var(--product-name-bottom);
  left: var(--control-gutter);
  color: var(--color-ink);
  font-size: var(--product-name-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.product-name.is-past {
  visibility: hidden;
  opacity: 0;
}

.usage-panel {
  flex-shrink: 0;
  min-height: var(--usage-row-height);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.usage-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: calc(var(--usage-row-height) - 2px);
  padding: var(--usage-strip-padding) var(--control-gutter);
}

.control-heading {
  display: flex;
  align-items: center;
  gap: var(--control-marker-gap);
  font-size: var(--control-label-size);
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.control-heading::before {
  content: '';
  flex-shrink: 0;
  width: var(--control-marker-size);
  height: var(--control-marker-size);
  background: var(--color-ink);
}

.usage-description {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: var(--usage-description-size);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: right;
  overflow-wrap: normal;
}

/* One transformed surface keeps the arc, labels and touch boundary together. */
.usage-wheel {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  width: var(--wheel-expanded-width);
  height: var(--wheel-height);
  isolation: isolate;
  font-size: var(--wheel-compact-size);
  transform-origin: left center;
  transform: translateX(calc((var(--wheel-expanded-width) - var(--wheel-compact-width)) * (1 - var(--wheel-reveal, 0)))) translateY(-50%) scale(calc(var(--wheel-rest-scale) + (1 - var(--wheel-rest-scale)) * var(--wheel-reveal, 0)));
  pointer-events: none;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.usage-wheel.is-moving {
  will-change: transform;
}

.usage-wheel::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  width: var(--wheel-arc-size);
  height: var(--wheel-arc-size);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: transparent;
  opacity: var(--wheel-arc-opacity);
  transform: translateY(-50%);
  pointer-events: none;
}

.usage-wheel::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(-1 * var(--wheel-tick-width));
  width: var(--wheel-tick-width);
  height: 1px;
  background: var(--color-ink);
  pointer-events: none;
}

.usage-wheel.is-keyboard #usage-intensity:focus-visible + .wheel-window .wheel-option.is-selected .wheel-label {
  text-decoration-line: underline;
  text-decoration-thickness: var(--wheel-focus-thickness);
  text-underline-offset: var(--space-1);
}

.wheel-window {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  clip-path: circle(calc(var(--wheel-arc-size) / 2) at calc(var(--wheel-arc-size) / 2) 50%);
  cursor: ns-resize;
  pointer-events: none;
}

.wheel-options {
  position: absolute;
  inset: 0;
}

@property --wheel-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.wheel-option {
  --wheel-angle: calc((var(--wheel-offset, 0) + var(--wheel-preview-offset, 0)) * var(--wheel-angle-step));
  --wheel-orbit-radius: calc(var(--wheel-arc-size) / 2 - var(--wheel-label-inset));
  position: absolute;
  display: grid;
  place-items: center;
  top: 50%;
  left: calc(var(--wheel-arc-size) / 2);
  width: max-content;
  height: var(--wheel-row-height);
  min-height: var(--tap-target);
  padding: 0;
  border: 0;
  color: var(--wheel-option-ink);
  background: transparent;
  font-size: var(--wheel-option-size);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: clamp(0, calc((var(--wheel-reveal, 0) - var(--wheel-reveal-delay, 0)) * 1.6), 1);
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(calc(var(--wheel-angle) * -1)) translateX(calc(-1 * var(--wheel-orbit-radius))) rotate(var(--wheel-angle));
}

.wheel-option.is-selected {
  color: var(--color-ink);
  font-size: var(--wheel-selected-size);
  opacity: 1;
}

.wheel-label {
  display: inline-block;
  transform-origin: left center;
  transform: translateX(calc(var(--wheel-label-travel) * (1 - var(--wheel-reveal, 0)))) scale(calc(.96 + .04 * var(--wheel-reveal, 0)));
}

.wheel-option.is-selected .wheel-label {
  transform: scale(calc(var(--wheel-rest-type-scale, .9) + (1 - var(--wheel-rest-type-scale, .9)) * var(--wheel-reveal, 0)));
}

@supports (left: calc(1px * cos(0deg))) and ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* Clip the filtered row itself so its backdrop can still include the photo. */
  .wheel-window {
    clip-path: none;
  }

  /* The blurred box hugs the word: full 44px rows overlapped their neighbours and blurred their letters. */
  .wheel-option {
    height: var(--wheel-label-blur-height);
    min-height: 0;
    -webkit-backdrop-filter: blur(var(--wheel-label-blur));
    backdrop-filter: blur(var(--wheel-label-blur));
    clip-path: circle(calc(var(--wheel-arc-size) / 2) at calc(var(--wheel-orbit-radius) * cos(var(--wheel-angle))) calc(50% - var(--wheel-orbit-radius) * sin(var(--wheel-angle))));
  }
}

input[type='range'] {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

input[type='range']::-webkit-slider-runnable-track {
  border: 0;
  background: transparent;
}

input[type='range']::-moz-range-track {
  border: 0;
  background: transparent;
}

#usage-intensity {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  clip-path: circle(calc(var(--wheel-arc-size) / 2) at calc(var(--wheel-arc-size) / 2) 50%);
  cursor: ns-resize;
  pointer-events: auto;
  touch-action: pan-x;
}

.timeline-panel {
  flex-shrink: 0;
  min-height: var(--timeline-panel-height);
  padding: var(--timeline-top-gap) var(--control-gutter) 0;
}

.timeline-track {
  position: relative;
  height: var(--tap-target);
}

.timeline-ruler {
  position: absolute;
  inset: 0 var(--timeline-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.timeline-ruler span {
  width: 1px;
  height: var(--timeline-tick-height);
  background: var(--color-tick);
}

.timeline-ruler span:nth-child(1),
.timeline-ruler span:nth-child(5),
.timeline-ruler span:nth-child(9),
.timeline-ruler span:nth-child(15) {
  height: var(--timeline-major-height);
}

/* Hide visual hints while preserving snapping and accessible range values. */
.timeline-stages {
  display: none;
  position: absolute;
  inset: 0 var(--timeline-inset);
  pointer-events: none;
}

.timeline-stage {
  position: absolute;
  top: 50%;
  left: calc(var(--stage-progress) * 100%);
  width: var(--timeline-stage-width);
  height: var(--timeline-stage-height);
  background: var(--color-ink-soft);
  transform: translate(-50%, -50%);
}

.timeline-stage.is-current {
  height: var(--timeline-major-height);
  background: var(--color-ink);
}

.timeline-cursor {
  position: absolute;
  top: 4px;
  left: calc(var(--timeline-inset) + (100% - 2 * var(--timeline-inset)) * var(--progress-number));
  width: 1px;
  height: var(--timeline-cursor-height);
  background: var(--color-ink);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.timeline-cursor::before {
  width: var(--timeline-cursor-box);
  height: var(--timeline-cursor-box);
  background: var(--color-brand);
}

.timeline-track.is-keyboard #life-timeline:focus-visible ~ .timeline-cursor::before {
  outline: var(--wheel-focus-thickness) solid var(--color-ink);
  outline-offset: 3px;
}

.timeline-year {
  display: none;
  position: absolute;
  top: calc(-1 * var(--timeline-year-offset));
  left: clamp(var(--timeline-year-edge), calc(var(--timeline-inset) + (100% - 2 * var(--timeline-inset)) * var(--progress-number)), calc(100% - var(--timeline-year-edge)));
  color: var(--color-ink);
  font: var(--text-tiny)/1.4 var(--font-mono);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

/* The touch area also covers the empty gap above the ruler; the ticks and cursor do not move.
   The native slider is invisible (Safari otherwise draws its white handle and a focus frame);
   keyboard focus is shown on the black cursor instead. */
#life-timeline {
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
  inset: calc(-1 * var(--timeline-top-gap)) 0 0;
  width: 100%;
  height: calc(var(--tap-target) + var(--timeline-top-gap));
  cursor: ew-resize;
  touch-action: pan-y;
}

#life-timeline::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 8px;
  height: var(--tap-target);
  border: 0;
  background: transparent;
}

#life-timeline::-moz-range-thumb {
  width: 8px;
  height: var(--tap-target);
  border: 0;
  background: transparent;
}

.timeline-labels {
  position: relative;
  height: var(--tap-target);
}

.text-button {
  position: absolute;
  top: 0;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  padding: 0;
  border: 0;
  color: var(--color-ink-soft);
  background: transparent;
  font-size: var(--timeline-label-size);
  font-weight: 400;
  white-space: nowrap;
}

/* Invisible extra touch area into the gaps between the labels. */
.text-button::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--timeline-label-hit-extend));
}

.text-button.is-current {
  color: var(--color-ink);
}

.text-button:disabled {
  color: var(--color-ink-soft);
  cursor: default;
}

.timeline-labels [data-action='go-before'] {
  left: 0;
  text-align: left;
}

.timeline-labels [data-action='go-now'] {
  left: calc(var(--timeline-inset) + (100% - 2 * var(--timeline-inset)) * var(--timeline-now));
  transform: translateX(-50%);
}

.timeline-labels [data-action='go-early-future'] {
  left: calc(var(--timeline-inset) + (100% - 2 * var(--timeline-inset)) * var(--timeline-early));
  transform: translateX(-50%);
}

.timeline-labels [data-action='go-future'] {
  right: 0;
  text-align: right;
}

.suggestion-banner {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  min-height: var(--suggestion-height);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}

.suggestion-banner.is-leaving {
  pointer-events: none;
}

.product-suggestion {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) var(--suggestion-thumb-width);
  align-items: stretch;
  min-width: 0;
  min-height: var(--suggestion-height);
  padding: 0;
  border: 0;
  background: var(--color-paper);
  text-align: left;
}

.suggestion-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2) var(--control-gutter);
  font-size: var(--control-label-size);
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
}

.suggestion-thumb {
  width: var(--suggestion-thumb-width);
  height: var(--suggestion-height);
  padding: var(--space-1);
  border-left: 1px solid var(--color-line);
  object-fit: contain;
}

.suggestion-dismiss {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--tap-target);
  min-height: var(--suggestion-height);
  border: 0;
  border-left: 1px solid var(--color-line);
  background: var(--color-paper);
  font-size: var(--text-large);
}

.suggestion-dismiss svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.product-suggestion:focus-visible,
.suggestion-dismiss:focus-visible {
  outline-offset: -3px;
}

.screen-footer {
  flex-shrink: 0;
  padding-bottom: var(--safe-bottom);
  background: var(--color-paper);
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--cart-height);
  padding: var(--space-3) var(--control-gutter);
  border: 0;
  border-radius: 0;
  color: var(--color-paper);
  background: var(--color-brand);
  font-weight: 400;
}

.cart-label {
  font-size: var(--cart-label-size);
  line-height: 1.2;
  white-space: nowrap;
}

.cart-price {
  font-size: var(--cart-price-size);
  line-height: 1.2;
  white-space: nowrap;
}

.price-footnote {
  display: grid;
  place-items: center;
  min-height: var(--footer-space);
  padding: var(--space-1) var(--control-gutter);
  color: var(--color-ink-soft);
  font-size: var(--footnote-size);
  line-height: 1.4;
  text-align: center;
}

.add-button:active, .button-primary:active {
  background: var(--color-ink-soft);
}

.cart-confirmation {
  position: absolute;
  z-index: 10;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100cqh - var(--header-height) - var(--safe-top) - var(--space-2));
  border: 1px solid var(--color-line);
  border-radius: var(--cart-panel-radius) var(--cart-panel-radius) 0 0;
  background: var(--color-cart-surface);
  transform: translateY(calc(var(--cart-panel-offset, 1) * 100%));
  pointer-events: auto;
}

.cart-confirmation.is-moving {
  will-change: transform;
}

.cart-confirmation-handle {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 100%;
  height: var(--tap-target);
  padding: 0;
  border: 0;
  border-radius: var(--cart-panel-radius) var(--cart-panel-radius) 0 0;
  background: transparent;
  touch-action: none;
  cursor: grab;
}

.cart-confirmation-handle::before {
  content: '';
  width: var(--cart-panel-handle-width);
  height: var(--cart-panel-handle-height);
  border-radius: var(--cart-panel-handle-height);
  background: var(--color-line);
}

.cart-confirmation.is-dragging .cart-confirmation-handle {
  cursor: grabbing;
}

.cart-confirmation-handle:focus-visible,
.cart-confirmation-button:focus-visible {
  outline-offset: -4px;
}

.cart-confirmation-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--cart-panel-gutter) calc(var(--cart-panel-bottom-space) + var(--safe-bottom));
  touch-action: pan-y;
}

.cart-confirmation-title {
  padding-bottom: var(--cart-panel-title-space);
  border-bottom: 1px solid var(--color-line);
  font-size: var(--cart-panel-heading-size);
  font-weight: 400;
}

.cart-confirmation-item {
  display: grid;
  grid-template-columns: var(--cart-panel-thumbnail-width) minmax(0, 1fr);
  align-items: center;
  gap: var(--cart-panel-row-gap);
  padding: var(--cart-panel-row-space) 0;
  border-bottom: 1px solid var(--color-line);
}

.cart-confirmation-image {
  width: var(--cart-panel-thumbnail-width);
  height: var(--cart-panel-thumbnail-height);
  object-fit: contain;
}

.cart-confirmation[data-product='tote'] .cart-confirmation-image {
  filter: brightness(var(--photo-matte-brightness));
  /* Lets the photo's white background take on the grey panel. */
  mix-blend-mode: multiply;
}

.cart-confirmation-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-2);
  min-width: 0;
  font-size: var(--cart-panel-item-size);
  line-height: 1.35;
}

.cart-confirmation-name {
  min-width: 0;
  font-weight: 400;
}

.cart-confirmation-price {
  white-space: nowrap;
}

.cart-confirmation-tax {
  grid-column: 1 / -1;
  color: var(--color-ink-soft);
  font-size: var(--cart-panel-tax-size);
  text-align: right;
}

.cart-confirmation-lifetime {
  padding: var(--cart-panel-lifetime-space) 0;
  font-size: var(--cart-panel-lifetime-size);
  line-height: 1.4;
  text-align: center;
}

.cart-confirmation-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--cart-panel-button-height);
  padding: var(--space-2);
  border: 0;
  border-radius: var(--cart-panel-button-radius);
  color: var(--color-paper);
  background: var(--color-brand);
  font-size: var(--cart-panel-button-size);
  font-weight: 400;
  line-height: 1.2;
}

.cart-confirmation-button:active {
  background: var(--color-ink-soft);
}

.cart-confirmation-button:focus-visible {
  outline-color: var(--color-paper);
}

/* Product list (main page) */
.list-screen {
  position: relative;
  background: var(--color-paper);
}

.breadcrumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.1em;
  height: calc(var(--list-breadcrumb-height) + var(--safe-top));
  margin: 0 var(--list-frame-inset);
  padding: var(--safe-top) var(--list-breadcrumb-pad) 0;
  border-inline: 1px solid var(--color-line);
  font: var(--list-breadcrumb-size) / 1 var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.list-screen .site-header {
  height: var(--header-height);
  padding-top: 0;
  border-top: 1px solid var(--color-line);
}

.list-filters {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--list-pill-gap);
  height: var(--list-filter-height);
  margin: 0 var(--list-frame-inset);
  padding: 0 var(--list-filter-pad);
  border-inline: 1px solid var(--color-line);
}

.filter-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.6em;
  height: var(--list-pill-height);
  padding: 0 1.45em;
  border-radius: var(--list-pill-height);
  background: var(--color-icon-surface);
  font-size: var(--list-pill-size);
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.filter-pill-active {
  margin-right: auto;
  color: var(--color-paper);
  background: var(--color-brand);
}

.filter-pill-icon {
  width: var(--list-pill-height);
  padding: 0;
}

.filter-pill-icon svg {
  width: 45%;
  height: 45%;
  fill: var(--color-icon-surface);
  stroke: var(--color-ink);
  stroke-width: 1.4;
}

.list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--list-frame-inset);
  border-top: 1px solid var(--color-line);
  scrollbar-width: none;
}

.list-body::-webkit-scrollbar {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--color-line);
  list-style: none;
}

.product-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.product-card-text {
  position: absolute;
  z-index: 1;
  top: var(--list-card-pad);
  left: var(--list-card-pad);
  display: block;
  font: var(--list-card-text-size) / 1.05 var(--font-mono);
  letter-spacing: 0.02em;
  text-align: left;
  white-space: nowrap;
}

/* The photos are cut from the shop screenshots, 22% below the card's top edge. */
.product-card img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--list-card-photo-height);
  object-fit: cover;
}

.product-card-link {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.product-card-link:focus-visible {
  outline-offset: -4px;
}

.list-intro {
  padding: var(--list-intro-pad) var(--list-intro-pad) var(--list-intro-pad-bottom);
  border-inline: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.list-intro-title {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: var(--list-intro-gap);
  font: 400 var(--list-intro-title-size) / 1.2 var(--font-mono);
  letter-spacing: 0.04em;
}

.list-intro-title::before {
  content: '';
  flex-shrink: 0;
  width: 0.62em;
  height: 0.62em;
  background: var(--color-ink);
}

.list-intro p {
  font-size: var(--list-intro-text-size);
  line-height: 1.08;
}

.list-float {
  position: absolute;
  z-index: 6;
  right: var(--list-float-right);
  display: grid;
  place-items: center;
  width: var(--list-float-size);
  height: var(--list-float-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
}

.list-float svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.list-top {
  bottom: calc(var(--list-float-bottom) + var(--safe-bottom) + var(--list-float-size) + var(--list-float-gap));
  color: var(--color-ink);
  background: var(--color-icon-surface);
}

.list-chat {
  bottom: calc(var(--list-float-bottom) + var(--safe-bottom));
  color: var(--color-paper);
  background: var(--color-brand);
}

.sheet-layer {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--color-overlay);
}

.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
  padding: 12px 22px calc(var(--safe-bottom) + 24px);
  background: var(--color-paper);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  font: var(--text-micro) var(--font-mono);
  letter-spacing: 0.3px;
}

.sheet h2 {
  max-width: 250px;
  margin: 18px 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
}

.sheet-copy {
  font-size: 13px;
  color: var(--color-ink-soft);
  line-height: 1.7;
  white-space: pre-line;
}

.language-options,
.account-actions {
  margin-top: var(--space-3);
}

.language-options .button,
.account-actions .button {
  width: 100%;
  background: var(--color-paper);
}

.motion-options {
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.motion-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap-target);
  padding: 12px 0;
  font-size: var(--text-small);
  cursor: pointer;
}

.motion-option input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  accent-color: var(--color-ink);
}

.motion-option small {
  display: block;
  margin-top: 4px;
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.4;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap-target);
  padding: 12px 15px;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  font-size: 11px;
}

.button-primary {
  width: 100%;
  margin-top: 28px;
  background: var(--color-ink);
  color: var(--color-paper);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sheet {
    animation: sheet-enter 320ms var(--motion-ease);
  }
  .sheet-backdrop {
    animation: backdrop-enter var(--motion-quick) ease-out;
  }
  .wheel-option {
    transition: --wheel-angle 180ms var(--motion-ease), color var(--motion-quick);
  }
  .usage-wheel.is-dragging .wheel-option {
    transition: none;
  }
  .suggestion-banner {
    animation: suggestion-enter var(--motion-enter) var(--motion-ease-smooth);
  }
  .product-name {
    transition: opacity var(--motion-exit) var(--motion-ease-smooth), visibility var(--motion-exit);
  }
  .suggestion-banner.is-leaving {
    animation: suggestion-exit var(--motion-exit) var(--motion-ease-exit) forwards;
  }
  /* Browsers with view transitions cross-fade the old and new page together. */
  .screen-body {
    view-transition-name: page;
  }
  ::view-transition-group(page) {
    animation-duration: var(--motion-page);
  }
  ::view-transition-old(page) {
    animation: page-leave-forward var(--motion-page) var(--motion-ease-smooth) both;
  }
  ::view-transition-new(page) {
    animation: page-enter-forward var(--motion-page) var(--motion-ease-smooth) both;
  }
  :root.is-going-back::view-transition-old(page) {
    animation-name: page-leave-back;
  }
  :root.is-going-back::view-transition-new(page) {
    animation-name: page-enter-back;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: var(--motion-page);
  }
  /* Older browsers only fade the new page in. */
  .screen-body.is-entering-forward {
    animation: page-enter-forward var(--motion-page) var(--motion-ease-smooth);
  }
  .screen-body.is-entering-back {
    animation: page-enter-back var(--motion-page) var(--motion-ease-smooth);
  }
  @keyframes page-leave-forward {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(calc(-1 * var(--page-travel))); opacity: 0; }
  }
  @keyframes page-leave-back {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(var(--page-travel)); opacity: 0; }
  }
  @keyframes page-enter-forward {
    from { transform: translateX(var(--page-travel)); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes page-enter-back {
    from { transform: translateX(calc(-1 * var(--page-travel))); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes suggestion-exit {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(calc(-1 * var(--popup-travel))); opacity: 0; }
  }
  .add-button, .button-primary {
    transition: background var(--motion-quick);
  }
  @keyframes suggestion-enter {
    from { transform: translateY(calc(-1 * var(--popup-travel))); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes sheet-enter {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
