:root {
  --background: #f5f1ea;
  --foreground: #292d29;
  --muted-foreground: #777a70;
  --card: #fffdf9;
  --secondary: #ece9e1;
  --border: #dddcd1;
  --primary: #364c3e;
  --primary-foreground: #fff;
  --accent: #b55c45;
  --accent-foreground: #fff;
  --success: #3f6b52;
  --destructive: #ad5145;
  --radius: 20px;
  --font-sans: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-mono: "SFMono-Regular", monospace;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
}
a {
  color: inherit;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 20px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font:
    700 35px Georgia,
    serif;
  letter-spacing: -2px;
  text-decoration: none;
}
.wordmark span {
  color: var(--accent);
}
.profile {
  background: var(--secondary);
  border-radius: 30px;
  font-size: 12px;
  padding: 10px 14px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.intro {
  padding: 28px 0 22px;
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--muted-foreground);
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.1;
}
h1 {
  font-size: clamp(36px, 6vw, 52px);
  margin: 0 0 10px;
}
h2 {
  font-size: 34px;
  margin: 0 0 14px;
}
.intro > p:last-child {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
}
.nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--secondary);
  border-radius: 14px;
  max-width: 580px;
  margin: auto;
}
.nav button {
  flex: 1;
  white-space: nowrap;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  padding: 12px 8px;
  color: var(--muted-foreground);
}
.nav button.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 2px 8px #00000008;
}
.nav span {
  display: inline-block;
  font-size: 10px;
  line-height: 18px;
  min-width: 18px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--secondary);
}
main {
  padding-top: 18px;
}
#discover {
  max-width: 640px;
  margin: auto;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted-foreground);
  padding: 0 2px 8px;
}
.textbtn {
  padding: 6px 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 12px;
}
.progress {
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin-bottom: 16px;
}
.progress > div {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.2s;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
select,
input,
textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 10px;
  border-radius: 8px;
  font-weight: 400;
}
.checkbox {
  flex-direction: row;
  align-items: center;
  align-self: end;
  padding-bottom: 8px;
}
.checkbox input {
  width: auto;
  accent-color: var(--primary);
}
.chair-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px #243b2d08;
  touch-action: pan-y;
  will-change: transform;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
  pointer-events: none;
}
.id {
  font: 11px var(--font-mono);
  color: #5e655e;
  background: #ffffffd9;
  padding: 5px 9px;
  border: 1px solid #e7e7de;
  border-radius: 7px;
}
.discount {
  font-size: 11px;
  letter-spacing: 0.3px;
  background: #ebefe6;
  color: #3f583f;
  padding: 5px 10px;
  border-radius: 7px;
}
.photo-button {
  display: block;
  width: 100%;
  padding: 18px 0 0;
  background: #f5f5f3;
  cursor: zoom-in;
  position: relative;
}
.photo-button img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
}
.zoom-hint {
  position: absolute;
  bottom: 9px;
  right: 14px;
  border-radius: 7px;
  background: #fff9;
  padding: 4px 8px;
  font-size: 10px;
  color: #677067;
}
.card-body {
  padding: 19px 23px;
}
.brand {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--muted-foreground);
  margin: 0 0 5px;
}
.card-title-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.card-title {
  font:
    400 32px Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.1;
}
.price {
  text-align: right;
  white-space: nowrap;
}
.price strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.price small {
  display: block;
  color: var(--muted-foreground);
  font-size: 10px;
}
.color {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 7px 0 14px;
  min-height: 18px;
}
.card-foot {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.card-foot a {
  font-size: 11px;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.pack-warning {
  display: block;
  font-size: 10px;
  color: var(--accent);
  margin-top: 3px;
}
.swipe-label {
  position: absolute;
  z-index: 4;
  top: 25%;
  padding: 8px 15px;
  border: 3px solid currentColor;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0;
  pointer-events: none;
}
.swipe-label.like {
  left: 20px;
  color: #426d4f;
  transform: rotate(-12deg);
}
.swipe-label.pass {
  right: 20px;
  color: #ad5145;
  transform: rotate(12deg);
}
.actions {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 20px;
  padding: 20px 0 0;
  min-height: 96px;
}
.round {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 32px;
  font-family: var(--font-sans);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.round:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px #0001;
}
.round small {
  position: absolute;
  top: 62px;
  white-space: nowrap;
  font: 10px var(--font-sans);
  color: var(--muted-foreground);
}
.round.undo {
  width: 40px;
  height: 40px;
  margin-top: 8px;
  font-size: 24px;
  color: var(--muted-foreground);
}
.round.no {
  color: var(--destructive);
}
.round.maybe {
  color: #9d823e;
  font-size: 23px;
}
.round.yes {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 35px;
}
.gesture-hint {
  margin: 12px 0 8px;
  text-align: center;
  font-size: 10px;
  color: var(--muted-foreground);
}
.overview {
  display: block;
  margin: 12px auto 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.primary,
.secondary {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.secondary {
  background: var(--secondary);
  color: var(--foreground);
}
.muted {
  color: var(--muted-foreground);
  font-size: 13px;
}
.export-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.mini-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.mini-photo {
  display: block;
  background: #f5f5f3;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}
.mini-photo img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.mini-body {
  padding: 12px;
}
.mini-body h3 {
  font:
    22px Georgia,
    serif;
  margin: 3px 0 8px;
}
.mini-body .brand {
  font-size: 9px;
}
.mini-body .color {
  font-size: 11px;
  margin: 6px 0;
  min-height: 34px;
}
.mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
  color: var(--muted-foreground);
}
.mini-actions {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.mini-actions button {
  padding: 7px 10px;
  border-radius: 7px;
  flex: 1;
  background: var(--secondary);
}
.mini-actions button.selected {
  background: var(--primary);
  color: var(--primary-foreground);
}
.empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  grid-column: 1/-1;
}
.empty .symbol {
  font: 48px Georgia;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.empty h2 {
  font-size: 30px;
}
.empty p {
  font-size: 13px;
  color: var(--muted-foreground);
}
.compare-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0 18px;
}
.compare-inputs label {
  position: relative;
  display: block;
}
.compare-inputs button {
  position: absolute;
  right: 0;
  top: -5px;
  font-size: 10px;
}
.compare-inputs textarea {
  display: block;
  margin-top: 12px;
  height: 190px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.6;
}
.maybe-section {
  margin: 30px 0;
}
.maybe-section summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted-foreground);
}
footer {
  border-top: 1px solid var(--border);
  margin: 28px auto 0;
  max-width: 640px;
  padding: 17px 0 0;
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.8;
}
footer p:first-child {
  color: var(--foreground);
  font-size: 11px;
}
footer summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer details p:first-child {
  font-size: 10px;
}
.danger {
  color: var(--destructive);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  color: var(--foreground);
  padding: 30px;
  width: calc(100% - 32px);
  max-width: 550px;
  max-height: 720px;
  overflow: auto;
}
dialog::backdrop {
  background: #19231acc;
  backdrop-filter: blur(5px);
}
dialog p {
  font-size: 13px;
  color: var(--muted-foreground);
}
dialog .primary {
  margin-top: 18px;
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  font-size: 27px;
  line-height: 30px;
}
.detail-img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  background: #f5f5f3;
  border-radius: 12px;
  display: block;
}
.detail-head {
  margin-top: 18px;
}
.detail-price {
  font-size: 22px;
}
.detail-facts {
  font-size: 12px;
  line-height: 1.8;
  margin: 15px 0;
  color: var(--muted-foreground);
}
dialog textarea {
  resize: vertical;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  padding: 11px 18px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 30px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 20;
  max-width: 90%;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.notice {
  font-size: 12px;
  background: var(--secondary);
  padding: 12px;
  border-radius: 10px;
  margin: 14px 0;
}
.leave-right {
  animation: right 0.2s ease-in forwards;
}
.leave-left {
  animation: left 0.2s ease-in forwards;
}
.leave-maybe {
  animation: fade 0.15s ease-in forwards;
}
@keyframes right {
  to {
    transform: translateX(100px) rotate(12deg);
    opacity: 0;
  }
}
@keyframes left {
  to {
    transform: translateX(-100px) rotate(-12deg);
    opacity: 0;
  }
}
@keyframes fade {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}
@media (min-width: 760px) {
  .app {
    padding-left: 16px;
    padding-right: 16px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  header {
    padding-top: 14px;
  }
  .wordmark {
    font-size: 30px;
  }
  .intro {
    padding: 20px 0;
  }
  .intro .eyebrow {
    font-size: 9px;
  }
  .nav button {
    font-size: 11px;
    padding: 10px 3px;
  }
  .nav span {
    margin-left: 3px;
  }
  main {
    padding-top: 14px;
  }
  .photo-button img {
    height: 290px;
  }
  .card-body {
    padding: 16px;
  }
  .card-title {
    font-size: 29px;
  }
  .price strong {
    font-size: 22px;
  }
  .color {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .card-top {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .actions {
    gap: 18px;
    padding-top: 16px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  h2 {
    font-size: 30px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mini-photo img {
    height: 170px;
  }
  .mini-body {
    padding: 10px;
  }
  .mini-body h3 {
    font-size: 20px;
  }
  .compare-inputs {
    grid-template-columns: 1fr;
  }
  .compare-inputs textarea {
    height: 130px;
  }
  .filters {
    gap: 10px;
  }
  .card-foot {
    font-size: 10px;
  }
  .card-foot a {
    font-size: 10px;
  }
  .detail-img {
    height: 280px;
  }
  .profile {
    font-size: 11px;
    padding: 8px 10px;
  }
  dialog {
    padding: 24px;
  }
  .gesture-hint {
    font-size: 9px;
  }
  .toast {
    bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-height: 760px) {
  dialog {
    max-height: 560px;
  }
}
@media (max-height: 600px) {
  dialog {
    max-height: 420px;
  }
}
@media (max-width: 600px) {
  .photo-button img {
    height: 250px;
  }
  .intro {
    padding: 16px 0;
  }
}
@media (max-width: 600px) and (max-height: 740px) {
  header {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .intro {
    padding: 12px 0;
  }
  .intro .eyebrow {
    display: none;
  }
  .intro h1 {
    font-size: 30px;
    margin-bottom: 6px;
  }
  .photo-button img {
    height: 180px;
  }
  .card-body {
    padding: 14px;
  }
  .actions {
    padding-top: 12px;
  }
  .gesture-hint {
    margin-top: 8px;
  }
}

/* Preserve the chair site's layout and gestures, with room for the art itself. */
body {
  background: var(--background);
}
.app {
  padding-inline: clamp(12px, 4vw, 24px);
}
.photo-button {
  padding: 0;
  background: #eae6de;
}
.photo-button img {
  height: clamp(204px, 48vw, 390px);
  mix-blend-mode: normal;
}
.zoom-hint {
  background: #fffffff2;
}
.card-body {
  min-height: 63px;
}
.card-body .brand {
  margin-top: 7px;
  margin-bottom: 0;
}
.card-title {
  font-size: clamp(21px, 4vw, 30px);
}
.mini-photo {
  background: #eae6de;
}
.mini-photo img {
  height: auto;
  aspect-ratio: 4 / 3;
  mix-blend-mode: normal;
}
.mini-body h3 {
  font-size: 17px;
  margin: 6px 0 0;
}
.mini-actions button {
  min-width: 0;
  padding-inline: 6px;
}
.mini-meta {
  color: var(--foreground);
}
.gallery-more {
  display: block;
  margin: 18px auto;
}
.compare-inputs {
  position: relative;
}
.compare-inputs .use-mine {
  right: auto;
  left: min(34%, 290px);
}
.detail-img {
  height: auto;
  max-height: 57vh;
  background: #eae6de;
}
#detailDialog {
  max-width: 1020px;
  max-height: 92dvh;
  padding: 42px 18px 18px;
}
#detailDialog .primary {
  display: inline-block;
  margin-top: 4px;
  text-decoration: none;
}
#commonGrid {
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .intro h1 {
    font-size: clamp(29px, 7vw, 37px);
  }
  .intro > p:last-child {
    font-size: 12px;
  }
  .compare-inputs .use-mine {
    left: auto;
    right: 0;
  }
}
