@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --ink: #17213a;
  --page: #f4f7ff;
  --surface: #ffffff;
  --primary: #356bc4;
  --sky-soft: #9ac8ff;
  --ice: #d5e7ff;
  --lavender: #c5b3f5;
  --muted: #56678c;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background-color: var(--page);
  background-image: url("../images/polka-dots.svg");
  background-size: 24px 24px;
  color: var(--ink);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-synthesis: none;
  font-variant-emoji: text;
  line-height: 1.5;
}
button,
input,
select,
a,
span,
h1, h2, h3, h4, h5, h6 {
  font-variant-emoji: text;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
button,
.btn {
  border: var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 20px;
  font-weight: 800;
  box-shadow: 3px 4px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
button:hover:not(:disabled),
.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 var(--ink);
}
button:active:not(:disabled),
.btn:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.container {
  max-width: 1320px;
  margin: auto;
  padding: 0 30px;
}
.header {
  border-bottom: var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav {
  min-height: 91px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1.4px;
  white-space: nowrap;
  display: flex;
  gap: 9px;
  align-items: center;
}
.star {
  color: var(--sky-soft);
  font-size: 47px;
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
}
.links {
  display: flex;
  gap: 24px;
  margin: auto;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
}
.links a[aria-current="page"] {
  background: var(--sky-soft);
  padding: 10px 15px;
  border: var(--line);
  border-radius: 8px;
  box-shadow: 2px 3px 0 var(--ink);
}
.links a, .actions button { white-space: nowrap; }
.actions {
  display: flex;
  gap: 12px;
}
.icon-btn {
  padding: 9px 13px;
}
.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--ink);
}
.soft {
  background: var(--sky-soft);
}
.hero {
  background-color: var(--page);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 35px;
  align-items: center;
  padding: 48px 0 43px;
}
.pill {
  display: inline-block;
  background: var(--ice);
  border: var(--line);
  border-radius: 5px;
  transform: rotate(-2deg);
  padding: 6px 17px;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 13px;
  box-shadow: 2px 3px 0 var(--ink);
}
h1 {
  font-size: clamp(37px, 4.3vw, 64px);
  line-height: 1.16;
  letter-spacing: -2.8px;
  font-weight: 900;
  margin: 23px 0 19px;
}
mark {
  background: var(--sky-soft);
  color: inherit;
  border-bottom: 4px solid var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 8px 5px;
  border-radius: 10px;
}
.intro {
  font-size: 18px;
  max-width: 530px;
  margin-bottom: 25px;
}
.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
}
.hero-art {
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background-color: var(--lavender);
  background-image: radial-gradient(circle, rgba(108, 82, 163, 0.4) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  overflow: hidden;
  aspect-ratio: 1.45;
  display: flex;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 10px 0 23px;
}
h2 {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 900;
}
.filters {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.filters button {
  font-size: 13px;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 2px 3px 0 var(--ink);
}
.filters [aria-pressed="true"] {
  background: var(--sky-soft);
}
.search-row {
  display: flex;
  gap: 15px;
  margin-bottom: 23px;
}
.search-wrap {
  flex: 1;
  position: relative;
}
.search-wrap span {
  position: absolute;
  left: 15px;
  top: 11px;
  font-size: 20px;
}
input,
select {
  border: var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 13px 15px;
  min-width: 0;
}
#search {
  width: 100%;
  padding-left: 45px;
}
.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.custom-select select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
}
.select-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 2px solid var(--ink) !important;
  border-radius: 8px;
  background: var(--surface) !important;
  padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--ink) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}
.select-trigger:hover {
  background: #fffdf5 !important;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink) !important;
}
.select-trigger:active,
.select-trigger[aria-expanded="true"] {
  transform: translate(1px, 1px) !important;
  box-shadow: 1.5px 1.5px 0 var(--ink) !important;
  background: var(--yellow, #ffe56b) !important;
}
.select-trigger::after {
  content: "▾";
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.select-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 999;
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  max-height: 280px;
  overflow-y: auto;
}
.select-option {
  padding: 9px 12px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease;
}
.select-option:hover,
.select-option:focus {
  background: #f0f7ff;
  outline: none;
}
.select-option[aria-selected="true"] {
  background: var(--yellow, #ffe56b);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 900;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.load-more-row { display: flex; justify-content: center; margin-top: 28px; }
.card {
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.product-art {
  height: 170px;
  border-bottom: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(23, 33, 58, 0.22) 1.25px, transparent 1.25px);
  background-size: 16px 16px;
}
.product-art:before {
  content: "✦";
  position: absolute;
  left: 20px;
  top: 10px;
  font-size: 40px;
  transform: rotate(-15deg);
}
.product-art:after {
  content: "✧";
  position: absolute;
  right: 19px;
  bottom: 15px;
  font-size: 46px;
}
.app-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 97px;
  height: 97px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-12deg);
  font-size: 58px;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
}
.app-icon:has(.product-logo) {
  background: var(--surface);
  padding: 12px;
}
.product-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.duration {
  white-space: normal;
  background: var(--tint);
  border: 2px solid var(--ink);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}
.card p {
  font-size: 14px;
  line-height: 1.55;
  min-height: 44px;
}
.card :is(button,.product-link) {
  background: var(--accent);
  color: var(--btn-text, #fff);
  width: 100%;
  margin-top: auto;
  padding: 10px;
  border-radius: 12px;
  font-size: 15px;
}
.price-note {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  grid-column: 1/-1;
  padding: 50px;
  text-align: center;
  border: 2px dashed var(--ink);
  border-radius: 8px;
}
.how {
  margin-top: 65px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.step {
  box-shadow: 4px 4px 0 var(--ink);
  border: var(--line);
  padding: 23px;
  border-radius: 10px;
  background: var(--surface);
}
.step:nth-child(2) { background: var(--sky-soft); }
.step:nth-child(3) { background: var(--lavender); }
.hero-art { transform: rotate(1deg); }
.hero-art svg { color: var(--ink); }
.filters [aria-pressed="true"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.select-options { max-height: 280px; overflow-y: auto; }
.step b {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}
.step span {
  display: inline-grid;
  place-items: center;
  background: var(--sky-soft);
  border: var(--line);
  border-radius: 50%;
  width: 31px;
  height: 31px;
  margin-right: 8px;
}
.faq {
  margin: 48px 0;
}
.faq h2 {
  margin-bottom: 20px;
}
details {
  box-shadow: 4px 4px 0 var(--ink);
  border: var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin: 12px 0;
  padding: 15px 20px;
}
summary {
  cursor: pointer;
  font-weight: 800;
}
details p {
  margin-top: 12px;
  color: var(--muted);
}
footer {
  background: var(--sky-soft);
  border-top: var(--line);
  padding: 25px 0;
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky-soft);
  border: 1px solid var(--ink);
  font-size: 12px;
  margin-left: 4px;
}
dialog {
  border: var(--line);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 25px;
  width: min(520px, calc(100% - 30px));
  max-height: 85vh;
  background: var(--page);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(32, 54, 103, 0.4);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 26px;
}
.close {
  padding: 2px 10px;
  font-size: 23px;
  box-shadow: none;
  border-width: 2px;
  border-radius: 9px;
}
.dialog-copy {
  margin: 15px 0;
  color: var(--muted);
}
.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-weight: 700;
}
.wide {
  width: 100%;
  margin-top: 15px;
}
.cart-row {
  padding: 17px 0;
  border-bottom: 1px solid #d3def2;
}
.cart-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-row small {
  display: block;
  margin-top: 5px;
}
.qty {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.qty button {
  padding: 0 9px;
  box-shadow: none;
  border-radius: 7px;
  border-width: 2px;
}
.qty .remove {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 8px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ice);
  border: var(--line);
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 32px);
}
[hidden] {
  display: none !important;
}
.cart-note {
  margin: 18px 0 0;
  font-size: 13px;
}
.result-count {
  font-size: 13px;
  margin-bottom: 17px;
  color: var(--muted);
}
@media (min-width: 1450px) {
  h1 {
    font-size: 64px;
  }
}
@media (max-width: 1100px) {
  .links {
    gap: 12px;
  }
  .nav {
    gap: 18px;
  }
  .brand {
    font-size: 25px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero {
    gap: 25px;
  }
  h1 {
    font-size: 46px;
  }
  .actions button {
    font-size: 13px;
  }
  .product-art {
    height: 195px;
  }
}
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; padding-top: 12px; padding-bottom: 14px; }
  .actions { margin-left: auto; }
  .links { order: 3; width: 100%; justify-content: center; margin: 0; }
}
@media (max-width: 700px) {
  .container {
    padding: 0 18px;
  }
  .nav {
    min-height: 76px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 12px;
  }
  .brand {
    font-size: 24px;
  }
  .star {
    font-size: 34px;
  }
  .links {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 12px;
    gap: 22px;
  }
  .links a[aria-current="page"] {
    padding: 4px 12px;
  }
  .actions {
    margin-left: auto;
    gap: 8px;
  }

  .icon-btn {
    padding: 6px 10px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 0;
  }
  .hero-art {
    margin-top: 9px;
    aspect-ratio: 1.5;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .intro {
    font-size: 16px;
  }
  .hero-buttons .btn {
    font-size: 14px;
    padding: 12px 16px;
    gap: 12px;
  }
  .section-top h2 {
    font-size: 28px;
  }
  .filters {
    gap: 8px;
  }
  .filters button {
    font-size: 12px;
    padding: 8px 11px;
  }
  .grid {
    gap: 14px;
  }
  .card-body {
    padding: 12px;
  }
  .card-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 12px;
  }
  .card :is(button,.product-link) {
    font-size: 13px;
    padding: 9px 4px;
  }
  .product-art {
    height: 140px;
  }
  .app-icon {
    width: 74px;
    height: 74px;
    font-size: 44px;
    border-radius: 10px;
  }
  .product-art:before {
    font-size: 28px;
    left: 10px;
  }
  .product-art:after {
    font-size: 30px;
    right: 9px;
  }
  .search-row {
    flex-direction: column;
    gap: 10px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .how {
    margin-top: 45px;
  }
  h2 {
    font-size: 28px;
  }

  .hero-art svg text {
    font-family: Arial, sans-serif;
  }
  .footer-row {
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .brand { font-size: 20px; letter-spacing: -1px; gap: 5px; }
  .star { font-size: 28px; }
  .actions { gap: 6px; }
  .icon-btn { padding: 6px 8px; }
  .nav { gap: 8px; }
  .links { gap: 16px; }
  h1 { font-size: 37px; letter-spacing: -1.8px; }
  .hero-buttons { gap: 12px; }
  .hero-buttons .btn { font-size: 13px; padding: 10px 12px; gap: 10px; }
  .duration { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.shop-socials{display:flex;flex-wrap:wrap;gap:14px;padding-top:24px;padding-bottom:18px}.shop-socials[hidden]{display:none}.social-link{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;background:white;border:var(--line);border-radius:7px;box-shadow:4px 4px 0 var(--ink);font-size:14px;font-weight:800;transition:translate .12s,box-shadow .12s,background-color .12s}.social-link:hover{background:#ffe56b;translate:0 -2px;box-shadow:4px 6px 0 var(--ink)}.social-link:active{translate:2px 2px;box-shadow:2px 2px 0 var(--ink)}.social-icon{display:grid;place-items:center;min-width:30px;height:30px;background:var(--ice);border:2px solid var(--ink);border-radius:5px;font-size:20px}.social-tiktok .social-icon{background:var(--lavender)}.social-zalo .social-icon{background:var(--sky-soft)}@media(prefers-reduced-motion:reduce){.social-link{transition:none}}

.text-link{color:#1a56db;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;font-weight:700;word-break:break-all;transition:color .12s,background-color .12s;border-radius:2px}.text-link:hover{color:#1e3a8a;background-color:#e0e7ff}.text-link:focus-visible{outline:2px solid var(--primary,#3b5bdb);outline-offset:2px}

.text-link{color:#1a56db;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;font-weight:700;word-break:break-all;transition:color .12s,background-color .12s;border-radius:2px}.text-link:hover{color:#1e3a8a;background-color:#e0e7ff}.text-link:focus-visible{outline:2px solid var(--primary,#3b5bdb);outline-offset:2px}

/* Preserve the line breaks entered by the shop/customer across purchase views. */
#plan-summary,
#selected-plan-terms p,
#product-details p,
.plan-comparison-table td,
.checkout-line details p,
.order-item details p,
.order-item .order-recipient-info,
.order-card > p,
.order-card .meta-value,
.notice-body,
.review-card p,
.policies p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Motion is split from the visual theme so reduced motion keeps the same layout. */
.hero-copy {
  min-width: 0;
  container-type: inline-size;
}
.hero-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18em;
  font-size: clamp(28px, 10.2cqi, 64px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  margin: 26px 0 24px;
}
.hero-line {
  display: block;
  max-width: 100%;
  animation: banner-enter 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.hero-line-accent {
  animation-delay: 0.1s;
}
.hero-line mark {
  position: relative;
  display: inline-block;
  max-width: 100%;
  isolation: isolate;
  background: transparent;
  border: 0;
  padding: 0.08em 0.14em 0.14em;
  line-height: 1.15;
}
.hero-line mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffe56b;
  border: 3px solid var(--ink);
  border-radius: 5px;
  transform-origin: left;
  animation: highlight-swipe 0.25s 0.2s ease-out both;
}
.hero .intro {
  animation: banner-enter 0.3s 0.18s both;
}
.hero-buttons {
  animation: banner-enter 0.3s 0.26s both;
}
.hero-copy .hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  gap: 14px;
}
.hero-copy .hero-buttons .btn {
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: clamp(12px, 2.8cqi, 16px);
  white-space: nowrap;
}
.logo-sticker image {
  pointer-events: none;
}
#robot-character {
  cursor: pointer;
  outline: none;
}
#robot-character:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 5px;
}
#robot-head,
#robot-antenna,
#robot-eyes {
  transition: transform 0.08s ease-out;
}
#robot-character {
  transform-box: view-box;
  transform-origin: 309px 273px;
  animation: robot-idle 4.5s ease-in-out infinite;
}
.scene-paused #robot-character,
.page-away #robot-character {
  animation-play-state: paused;
}
@keyframes robot-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-3px) rotate(0.5deg);
  }
}
#robot-arm {
  transform-box: view-box;
  transform-origin: 250px 250px;
}
.floating-logo {
  animation: logo-drift 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
[transform^="translate(455"] .floating-logo {
  animation-delay: -1.3s;
  animation-duration: 6s;
}
[transform^="translate(55 "] .floating-logo {
  animation-delay: -2.8s;
}
[transform^="translate(464"] .floating-logo {
  animation-delay: -3.5s;
  animation-duration: 5.6s;
}
.logo-sticker {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.14s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.floating-logo:hover .logo-sticker {
  transform: translateY(-8px) rotate(7deg) scale(1.12);
}
.card-shell {
  min-width: 0;
  perspective: 1000px;
}
.card-shell > .card {
  height: 100%;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: var(--shadow-x, 6px) var(--shadow-y, 6px) 0 var(--ink);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s steps(1, end);
}
.card[data-tilted] {
  transition-duration: 0.07s;
}
.product-preview {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 24px;
  font-size: 42px;
  font-weight: 900;
}
.product-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.motion-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.cart-flyer {
  position: absolute;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px;
  font-size: 30px;
  font-weight: 900;
}
.cart-flyer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}
.cart-spark {
  position: absolute;
  font-size: 23px;
  line-height: 1;
  color: #ffe56b;
  -webkit-text-stroke: 1px var(--ink);
}
@keyframes banner-enter {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-1deg) scale(0.96);
  }
  75% {
    opacity: 1;
    transform: translateY(-3px) rotate(0) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes highlight-swipe {
  from {
    transform: scaleX(0) rotate(-1deg);
  }
  to {
    transform: scaleX(1) rotate(-1deg);
  }
}
@keyframes logo-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #robot-character {
    animation: none;
  }
  .hero-line,
  .hero .intro,
  .hero-buttons,
  .hero-line mark::before,
  .floating-logo {
    animation: none;
  }
  .hero-line mark::before {
    transform: rotate(-1deg);
  }
  .logo-sticker,
  .card-shell > .card {
    transition: none;
  }
  .floating-logo:hover .logo-sticker {
    transform: none;
  }
}

/* Small motions use independent properties so they don't overwrite 3D tilt. */
:root { --micro-ease: cubic-bezier(.2,.9,.25,1); }
button, .btn, .links a, input, .select-option, summary, .app-icon, .duration, .product-logo, .step, .faq details {
  transition: transform .12s var(--micro-ease), translate .12s var(--micro-ease), scale .12s var(--micro-ease), rotate .12s var(--micro-ease), box-shadow .12s var(--micro-ease), background-color .12s var(--micro-ease), border-color .12s var(--micro-ease), color .12s var(--micro-ease);
}
button:not(:disabled):hover, .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
button:not(:disabled):active, .btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
button, .btn, .app-icon, .avatar-photo { transition-timing-function: var(--micro-ease), var(--micro-ease), var(--micro-ease), var(--micro-ease), steps(1, end), steps(1, end), steps(1, end), steps(1, end); }
.brand { animation: nav-enter .55s .05s both; }
.links { animation: nav-enter .55s .12s both; }
.actions { animation: nav-enter .55s .2s both; }
.brand .star { display: inline-block; transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease); }
.brand:hover .star, .brand:focus-visible .star { rotate: 90deg; scale: 1.12; }
.brand { gap: 14px; }
.brand-wordmark { min-width: 0; }
.brand-avatar {
  position: relative; display: block; flex: 0 0 50px; width: 50px; height: 50px;
  rotate: -6deg; animation: avatar-sticker 7s steps(2, end) infinite;
  transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease);
}
.avatar-photo {
  display: block; width: 100%; height: 100%; border: var(--line); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); overflow: hidden; background: var(--sky-soft);
  isolation: isolate; position: relative; transition: box-shadow .12s var(--micro-ease);
}
.avatar-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.avatar-spark {
  position: absolute; top: -9px; right: -9px; font-size: 20px; line-height: 1;
  color: #ffe56b; -webkit-text-stroke: 1px var(--ink); pointer-events: none;
  transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease);
}
.brand:is(:hover, :focus-visible) .brand-avatar { rotate: 3deg; scale: 1.06; }
.brand:is(:hover, :focus-visible) .avatar-photo { box-shadow: 5px 5px 0 var(--ink); }
.brand:is(:hover, :focus-visible) .avatar-spark { rotate: 90deg; scale: 1.2; }
.brand:active .brand-avatar { translate: 3px 3px; scale: 1; }
.brand:active .avatar-photo { box-shadow: 0 0 0 var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img {
  display: block; flex: 0 0 36px; object-fit: cover; border: 2px solid var(--ink);
  border-radius: 9px; box-shadow: 2px 2px 0 var(--ink); rotate: -5deg;
  transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease);
}
.footer-brand:hover img { rotate: 5deg; scale: 1.08; }
.page-away .brand-avatar, .page-away .avatar-photo img { animation-play-state: paused; }
@keyframes avatar-sticker { 0%, 88%, 100% { transform: translate(0,0) rotate(0); } 92% { transform: translate(-1px,-2px) rotate(-3deg); } 96% { transform: translate(1px,0) rotate(2deg); } }
@media (max-width: 700px) {
  .brand { gap: 10px; }
  .brand-avatar { flex-basis: 42px; width: 42px; height: 42px; }
  .avatar-spark { font-size: 17px; top: -6px; right: -6px; }
}
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand-avatar { flex-basis: 38px; width: 38px; height: 38px; }
  .avatar-photo { border-radius: 9px; }
}
@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 7px; }
  .brand-avatar { flex-basis: 32px; width: 32px; height: 32px; }
  .actions { gap: 4px; }
  .actions .icon-btn { padding: 6px 7px; }
}
.links a { position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  background: var(--ink); scale: 0 1; transform-origin: left; transition: scale .12s var(--micro-ease);
}
.links a:hover::after, .links a:focus-visible::after { scale: 1 1; }
.links a[aria-current="page"]::after { display: none; }
.btn > span { display: inline-block; transition: translate .12s var(--micro-ease); }
.btn:hover > span, .btn:focus-visible > span { translate: 4px 0; }
.search-wrap { transition: translate .12s var(--micro-ease); }
.search-wrap:focus-within { translate: 0 -2px; }
#search:focus { border-color: var(--primary); box-shadow: 4px 4px 0 var(--ink); }
.search-wrap > span { display: inline-block; transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease); }
.search-wrap:focus-within > span { rotate: -15deg; scale: 1.2; }
.filters button[aria-pressed="true"] { animation: filter-tap .18s steps(2, end); }
.select-trigger::after { display: inline-block; transition: rotate .12s var(--micro-ease); }
.select-trigger[aria-expanded="true"]::after { rotate: 180deg; }
.select-option:hover, .select-option:focus-visible { translate: 2px 0; }
.duration { transform-origin: left center; }
.product-art::before, .product-art::after { transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease); }
.product-art {
  contain: layout paint style;
  background-image: radial-gradient(circle, rgba(23, 33, 58, 0.22) 1.25px, transparent 1.25px);
  background-size: 16px 16px;
}
.cover-tag, .cover-category {
  position: absolute; z-index: 2; border: 2px solid var(--ink); border-radius: 3px;
  box-shadow: 2px 2px 0 var(--ink); padding: 3px 6px; font-size: 9px;
  line-height: 1.2; font-weight: 800; letter-spacing: .03em; pointer-events: none;
}
.cover-tag { top: 12px; right: 12px; background: var(--surface); rotate: 4deg; }
.cover-category { bottom: 10px; left: 12px; max-width: calc(100% - 65px); background: #ffe56b; rotate: -3deg; }
.cover-shape {
  position: absolute; top: 44px; right: 14px; width: 14px; height: 14px;
  border: 3px solid var(--ink); background: var(--lavender); rotate: 15deg;
  box-shadow: 2px 2px 0 var(--ink); pointer-events: none;
}
.product-art::before { left:10px;top:10px;font-size:26px; }
.product-art::after { right:10px;bottom:8px;font-size:26px;line-height:1; }
.cover-lines {
  position: absolute; left: 18px; top: 82px; width: 22px; height: 13px;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  rotate: -15deg; pointer-events: none;
}
.cover-running .app-icon { animation: cover-logo 4.8s ease-in-out infinite; }
.cover-running .cover-shape { animation: cover-shape 3.2s ease-in-out infinite; }
.cover-running::before, .cover-running::after { animation: cover-star 4s ease-in-out infinite; }
.product-art .app-icon, .cover-shape, .product-art::before, .product-art::after {
  animation-delay: var(--cover-delay, 0s);
}
.cover-running .app-icon, .cover-running .cover-shape, .cover-running::before, .cover-running::after { animation-play-state: running; }
.page-away .product-art .app-icon, .page-away .cover-shape, .page-away .product-art::before, .page-away .product-art::after { animation-play-state: paused; }
@keyframes cover-logo { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes cover-shape { 0%, 100% { rotate: 15deg; translate: 0 0; } 50% { rotate: -15deg; translate: 0 3px; } }
@keyframes cover-star { 0%, 100% { scale: 1; } 50% { scale: .8; } }
@media (max-width: 700px) {
  .cover-tag, .cover-category { font-size: 7px; padding: 3px 4px; box-shadow: 1px 1px 0 var(--ink); }
  .cover-tag { top: 8px; right: 8px; }
  .cover-category { bottom: 8px; left: 8px; max-width: calc(100% - 40px); }
  .cover-shape { right: 9px; top: 45px; width: 13px; height: 13px; border-width: 2px; }
  .cover-lines { left: 9px; top: 78px; width: 12px; height: 10px; border-width: 2px; }
}
.step span { transition: rotate .12s var(--micro-ease), scale .12s var(--micro-ease); }
.step:hover span, .step:focus-within span { rotate: -12deg; scale: 1.12; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 26px; display: grid; place-items: center; height: 26px;
  border: 2px solid var(--ink); background: var(--sky-soft); font-size: 20px;
  line-height: 1; transition: rotate .12s var(--micro-ease), background-color .12s var(--micro-ease);
}
.faq details[open]:not([data-expanding="false"]) summary::after { rotate: 45deg; background: var(--lavender); }
.faq details[data-expanding="false"] summary::after { rotate: 0deg; }
.faq summary:hover { color: var(--primary); }
.close:hover { rotate: 90deg; }
.count { transform-origin: center; }
.footer-settings { margin-top: 18px; }
.sound-preference { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sound-preference input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.toast { bottom: 25px; }

dialog::backdrop { animation: backdrop-enter .12s var(--micro-ease) both; }
.cart-row { animation: row-enter .24s ease both; }
.cart-row:nth-child(2) { animation-delay: 35ms; }
.cart-row:nth-child(3) { animation-delay: 70ms; }
.product-preview img { animation: preview-enter .12s var(--micro-ease) both; }
.footer-row strong { transition: translate .12s var(--micro-ease); }
.footer-row strong:hover { translate: 3px -2px; }
.page-away .floating-logo { animation-play-state: paused; }
.header { transition: box-shadow .12s var(--micro-ease); }
.header.is-scrolled { box-shadow: 0 4px 0 var(--ink); }
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--primary); scale: var(--scroll-progress, 0) 1; transform-origin: left;
  pointer-events: none;
}
#robot-eyes ellipse { transform-box: fill-box; transform-origin: center; animation: robot-blink 5.5s infinite; }
.scene-paused .floating-logo, .scene-paused #robot-eyes ellipse, .page-away #robot-eyes ellipse { animation-play-state: paused; }
.product-preview:hover img { scale: 1.08; rotate: -4deg; transition: scale .12s var(--micro-ease), rotate .12s var(--micro-ease); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .cover-tag { rotate: -3deg; translate: -2px -2px; }
  .card:hover .cover-category { rotate: 0deg; }
  .cover-tag, .cover-category { transition: rotate .12s var(--micro-ease), translate .12s var(--micro-ease); }
  .icon-btn:hover { rotate: -5deg; }
  .filters button:hover { rotate: -2deg; }
  .card:hover .app-icon, .card:focus-within .app-icon { transform: rotate(-5deg) translateY(-5px); box-shadow: 8px 8px 0 var(--ink); }
  .card:hover .product-logo, .card:focus-within .product-logo { scale: 1.06; }
  .card:hover .duration, .card:focus-within .duration { translate: 2px 0; rotate: -1deg; }
  .card:hover .product-art::before { rotate: 25deg; scale: 1.12; }
  .card:hover .product-art::after { rotate: -20deg; scale: 1.1; }
  .step:hover { translate: -2px -3px; box-shadow: 7px 7px 0 var(--ink); }
  .faq details:hover { box-shadow: 6px 6px 0 var(--ink); }
}
@keyframes nav-enter { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes filter-tap { from { scale: .94; } 65% { scale: 1.06; } to { scale: 1; } }
@keyframes backdrop-enter { from { background-color: #20366700; } to { background-color: #20366766; } }
@keyframes row-enter { from { opacity: 0; translate: 8px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes preview-enter { from { scale: .85; rotate: -8deg; } to { scale: 1; rotate: 0deg; } }
@keyframes robot-blink { 0%, 92%, 96%, 100% { scale: 1 1; } 94% { scale: 1 .1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand .star, .btn > span, .search-wrap, .search-wrap > span, .step span, .close,
  .card .app-icon, .card .product-logo, .card .duration, .product-art::before, .product-art::after,
  .icon-btn, .filters button, .select-option, .step, .footer-row strong, .product-preview img {
    translate: none !important; scale: none !important; rotate: none !important;
  }
  .card:hover .app-icon, .card:focus-within .app-icon { transform: rotate(-12deg); }
  .brand-avatar, .avatar-spark, .footer-brand img { translate: none !important; scale: none !important; }
  .brand:is(:hover, :focus-visible) .brand-avatar { rotate: -6deg; }
  .brand:is(:hover, :focus-visible) .avatar-spark { rotate: 0deg; }
  .footer-brand:hover img { rotate: -5deg; }
}

/* A bounded catalog: eight products per page and an optional compact layout. */
html { scroll-padding-top: calc(var(--header-height, 105px) + 12px); }
.catalog-tools {
  position: sticky; top: var(--header-height, 105px); z-index: 4;
  background: var(--page); border-bottom: 2px solid var(--ink); padding: 10px 0;
  display: grid; gap: 12px;
}
.catalog-tools .filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 3px 6px; scrollbar-width: thin; scrollbar-color: var(--ink) var(--sky-soft); }
.catalog-tools .filters button { flex: 0 0 auto; white-space: nowrap; }
.catalog-tools .search-row { margin: 0; }
.catalog-mode { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-mode .result-count { margin: 0; font-size: 12px; }
#compact-view { flex: 0 0 auto; padding: 5px 10px; font-size: 12px; border-radius: 5px; }
#compact-view[aria-pressed="true"] { background: var(--sky-soft); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 20px 0; }
.pagination:empty { display: none; }
.pagination button { min-width: 36px; padding: 6px; font-size: 13px; border-radius: 5px; }
.pagination [aria-current="page"] { background: #ffe56b; transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.page-gap { min-width: 16px; text-align: center; }
.card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card :is(button,a)[data-product] { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid.is-list { grid-template-columns: minmax(0,1fr); gap: 16px; }
.grid.is-list .card { display: grid; grid-template-columns: 100px minmax(0,1fr); }
.grid.is-list .product-art { height: 100%; min-height: 112px; border-bottom: 0; border-right: var(--line); }
.grid.is-list .app-icon { width: 66px; height: 66px; font-size: 35px; }
.grid.is-list .app-icon:has(.product-logo) { padding: 7px; }
.grid.is-list .cover-tag, .grid.is-list .cover-category, .grid.is-list .cover-shape, .grid.is-list .cover-lines, .grid.is-list .product-art::before, .grid.is-list .product-art::after { display: none; }
.grid.is-list .card-body { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 18px; padding: 14px; }
.grid.is-list .card-title { grid-column: 1; grid-row: 1; align-self: end; }
.grid.is-list h3 { font-size: 19px; }
.grid.is-list .card p { grid-column: 1; grid-row: 2; min-height: 0; -webkit-line-clamp: 2; font-size: 13px; }
.grid.is-list .card :is(button,.product-link) { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; min-width: 140px; }
.product-details { margin: 22px 0; display: grid; gap: 16px; }
.product-details section { border-left: 3px solid var(--ink); padding-left: 12px; }
.product-details h3 { font-size: 15px; margin-bottom: 7px; letter-spacing: 0; }
.product-details p, .product-details li { font-size: 14px; color: var(--muted); }
.product-details ul { padding-left: 19px; margin: 0; }
.product-details li + li { margin-top: 5px; }
.product-source { width: fit-content; color: var(--primary); text-decoration: underline; font-size: 13px; font-weight: 700; }
#product-dialog .dialog-head { position: sticky; top: -25px; background: var(--page); z-index: 3; padding: 8px 0 12px; border-bottom: 2px solid var(--ink); }
@media (max-width: 700px) {
  .catalog-tools { gap: 9px; padding: 8px 0; }
  .catalog-tools .search-row { display: grid; grid-template-columns: minmax(0,1fr) 140px; gap: 8px; }
  .catalog-tools .custom-select { min-width: 0; }
  .catalog-tools input, .catalog-tools .select-trigger { padding: 10px 9px; font-size: 12px; }
  .catalog-tools #search { padding-left: 30px; }
  .catalog-tools .search-wrap > span { left: 9px; top: 8px; }
  .catalog-tools .select-trigger { gap: 5px; }
  .pagination { gap: 4px; margin: 16px 0; }
  .pagination button { min-width: 28px; padding: 4px; font-size: 11px; }
  .page-gap { min-width: 12px; }
  .grid.is-list .card { grid-template-columns: 72px minmax(0,1fr); }
  .grid.is-list .product-art { min-height: 94px; }
  .grid.is-list .app-icon { width: 48px; height: 48px; border-radius: 8px; font-size: 28px; }
  .grid.is-list .app-icon:has(.product-logo) { padding: 5px; }
  .grid.is-list .card-body { padding: 10px; gap: 5px 8px; }
  .grid.is-list h3 { font-size: 15px; }
  .grid.is-list .duration { display: none; }
  .grid.is-list .card p { font-size: 11px; }
  .grid.is-list .card :is(button,.product-link) { min-width: 30px; padding: 6px; font-size: 16px; }
  .grid.is-list .card-action-label { display: none; }
}

#plan-picker{border:var(--line);padding:14px;margin:20px 0;background:var(--ice);min-width:0}#plan-picker legend{font-weight:800;padding:0 6px}#plan-options{display:grid;gap:10px}.plan-option{display:flex;align-items:center;gap:12px;background:white;border:2px solid var(--ink);padding:12px;box-shadow:3px 3px var(--ink);cursor:pointer;transition:background-color .12s}.plan-option:has(input:checked){background:#ffe56b}.plan-option:focus-within{outline:3px solid var(--primary);outline-offset:3px}.plan-option input{width:19px;height:19px;flex-shrink:0;accent-color:var(--ink)}.plan-option span{min-width:0;overflow-wrap:anywhere}.plan-option strong,.plan-option small{display:block}.plan-option small{font-size:12px;margin-top:4px}#plan-summary{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}#add-to-cart:disabled{opacity:.55;cursor:not-allowed;transform:none}.cart-row-top{flex-wrap:wrap}.cart-row-top span{overflow-wrap:anywhere}.cart-row>p{font-size:12px}

.product-link{border:var(--line);border-radius:6px;box-shadow:3px 3px 0 var(--ink);text-align:center}.product-link:focus-visible{outline:3px solid var(--primary);outline-offset:4px}

/* Auth layout and visual polish */
body[data-auth-page] {
  min-height: 100vh;
  margin: 0;
  background-color: #f2f5fd;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(197, 179, 245, 0.45) 0%, transparent 40%),
    radial-gradient(ellipse at 88% 82%, rgba(255, 229, 107, 0.45) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(154, 200, 255, 0.3) 0%, transparent 60%),
    url("../images/polka-dots.svg");
  background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
  position: relative;
  overflow-x: hidden;
}

/* Floating Corner Accents in Viewport */
body[data-auth-page]::before {
  content: "✦";
  position: fixed;
  top: 36px;
  left: 4%;
  font-size: 64px;
  line-height: 1;
  color: #ffe56b;
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(4px 4px 0 var(--ink));
  transform: rotate(18deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body[data-auth-page]::after {
  content: "✳";
  position: fixed;
  bottom: 32px;
  right: 4%;
  font-size: 58px;
  line-height: 1;
  color: var(--lavender, #c5b3f5);
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(4px 4px 0 var(--ink));
  transform: rotate(-14deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Decorative floating badges around the auth container */
.auth-wrap::before {
  content: "GRAPERU ✦ OFFICIAL";
  position: absolute;
  top: 18px;
  right: 28px;
  background: #ffe56b;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  transform: rotate(4deg);
  pointer-events: none;
  user-select: none;
}

.auth-wrap::after {
  content: "BẢO HÀNH CHU ĐÁO ✓";
  position: absolute;
  bottom: 22px;
  left: 28px;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  transform: rotate(-3deg);
  pointer-events: none;
  user-select: none;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
  margin-bottom: 24px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  min-height: 42px;
  box-sizing: border-box;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.3, 1),
              box-shadow 0.14s ease,
              background-color 0.14s ease,
              color 0.14s ease;
}

.auth-back:hover {
  background-color: #ffe56b;
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
}

.auth-back:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.auth-back:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.auth-back .back-arrow,
.auth-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--lavender, #d6dbff);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
              background-color 0.15s ease;
}

.auth-back:hover .back-arrow,
.auth-back:hover .auth-back-arrow {
  transform: translateX(-3px);
  background-color: #ffffff;
}

.auth-sub-back {
  margin-top: 16px;
  margin-bottom: 0;
  background-color: var(--ice, #eef2ff);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.auth-brand {
  position: relative;
  background: var(--lavender);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
}

.auth-brand img {
  width: 90px;
  height: 90px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px var(--ink);
  transform: rotate(-6deg);
}

.auth-brand h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 1.25;
  margin: 20px 0 14px;
  letter-spacing: -0.5px;
  overflow-wrap: break-word;
}

.auth-brand mark {
  background: #ffe56b;
  border: var(--line);
  border-radius: 0;
  line-height: 1.5;
  padding: 0 6px;
}

.auth-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}

.auth-panel {
  background: white;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  min-width: 0;
}

.auth-panel h1 {
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}

.auth-panel p {
  font-size: 14px;
}

.auth-panel label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 7px;
}

.auth-panel input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--page);
}

.password-wrap {
  display: flex;
  gap: 6px;
}

.password-wrap button {
  font-size: 12px;
  padding: 8px;
}

.auth-panel .wide {
  margin-top: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 20px 0;
  font-size: 12px;
}

.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 2px;
  flex: 1;
  background: var(--ink);
}

.google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: white;
  padding: 12px;
  border: var(--line);
  box-shadow: 3px 3px var(--ink);
  border-radius: 6px;
  font-weight: 700;
}

.google-login svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-switch a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.auth-label-row label {
  margin-top: 0 !important;
}

.auth-panel button.auth-forgot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 3px 10px;
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  min-height: auto;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}
.auth-panel button.auth-forgot:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  text-decoration: none;
}
.auth-panel button.auth-forgot:active {
  transform: translate(1px, 1px);
  box-shadow: 0.5px 0.5px 0 var(--ink);
}

#auth-status {
  min-height: 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--primary);
}

#auth-status[data-error="true"] {
  color: #9d2828;
}

.auth-panel button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-account {
  overflow-wrap: anywhere;
}

.account-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.auth-panel [hidden] {
  display: none;
}

.auth-account-link {
  font-size: 13px;
  padding: 9px 12px;
  background: var(--ice);
  border: var(--line);
  border-radius: 6px;
  box-shadow: 3px 3px var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 700px) {
  body[data-auth-page]::before {
    font-size: 34px;
    top: 12px;
    left: 8px;
    -webkit-text-stroke: 2px var(--ink);
    filter: drop-shadow(2px 2px 0 var(--ink));
    opacity: 0.4;
  }
  body[data-auth-page]::after {
    font-size: 32px;
    bottom: 12px;
    right: 8px;
    -webkit-text-stroke: 2px var(--ink);
    filter: drop-shadow(2px 2px 0 var(--ink));
    opacity: 0.4;
  }
  .auth-wrap::before,
  .auth-wrap::after {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .auth-panel {
    padding: 20px;
  }
  .auth-panel h1 {
    font-size: 22px;
  }
  .auth-wrap {
    padding: 16px 14px 40px;
  }
  .auth-account-link {
    padding: 7px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-auth-page]::before,
  body[data-auth-page]::after,
  .auth-wrap::before,
  .auth-wrap::after,
  .auth-brand img {
    transition: none !important;
    transform: none !important;
  }
}
#shop-intro{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:24px;border:0;border-radius:0;box-shadow:none;background-color:var(--ice);background-image:url("../images/polka-dots.svg");color:var(--ink);overflow:auto;z-index:100}
#shop-intro[open]{display:grid;place-items:center}
#shop-intro::backdrop{background:var(--ice)}
.intro-stage{position:relative;width:min(100%,560px);text-align:center;padding:62px 24px 32px}
#intro-skip{position:absolute;top:0;right:0;padding:8px 14px;background:white;border:var(--line);box-shadow:3px 3px var(--ink);border-radius:5px;font-size:13px;font-weight:700}
.intro-sticker{position:relative;width:112px;margin:0 auto 24px;animation:intro-stamp .35s steps(4,end) both}
.intro-sticker img{display:block;width:112px;height:112px;border:var(--line);border-radius:18px;box-shadow:7px 7px var(--ink);rotate:-7deg}
.intro-sticker>span{position:absolute;right:-22px;top:-24px;font-size:46px;color:#ffe56b;-webkit-text-stroke:2px var(--ink);animation:intro-star .45s .3s steps(4,end) both}
.intro-tag{display:inline-block;font-weight:800;font-size:11px;letter-spacing:1px;border:2px solid var(--ink);padding:5px 10px;background:white;rotate:-2deg;animation:intro-stamp .25s .15s steps(3,end) both}
#intro-title{font-size:clamp(44px,9vw,78px);line-height:1.05;letter-spacing:-2px;margin:20px 0;font-weight:900}
#intro-title>span{display:block;animation:intro-title .3s .25s steps(4,end) both}
#intro-title>span+span{width:fit-content;margin:8px auto 0;padding:0 14px 5px;background:#ffe56b;border:var(--line);box-shadow:5px 5px var(--ink);rotate:-2deg;animation-delay:.4s}
.intro-star{font-size:.65em;margin-left:12px;display:inline-block}
#intro-copy{font-size:14px;animation:intro-title .25s .55s steps(3,end) both}
.intro-track{height:12px;width:150px;margin:26px auto 0;border:2px solid var(--ink);background:white;box-shadow:3px 3px var(--ink);overflow:hidden}
.intro-track>span{display:block;height:100%;background:var(--primary);transform-origin:left;animation:intro-progress 1.5s steps(8,end) both}
#shop-intro.intro-out .intro-stage{animation:intro-exit .18s steps(3,end) both}
@keyframes intro-stamp{from{opacity:0;transform:scale(.65) rotate(-12deg)}70%{opacity:1;transform:scale(1.06) rotate(3deg)}to{opacity:1;transform:none}}
@keyframes intro-title{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes intro-star{from{transform:scale(0) rotate(-45deg)}to{transform:scale(1) rotate(0)}}
@keyframes intro-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes intro-exit{to{opacity:0;transform:translateY(-18px) scale(.96)}}
@media(max-height:650px){.intro-stage{padding-top:44px}.intro-sticker,.intro-sticker img{width:76px;height:76px}.intro-sticker{margin-bottom:12px}#intro-title{font-size:46px;margin:12px 0}.intro-track{margin-top:16px}}
@media(prefers-reduced-motion:reduce){#shop-intro *,#shop-intro.intro-out .intro-stage{animation:none!important}}

.commerce-wrap {
  max-width: 1120px;
  margin: auto;
  padding: 24px 20px 60px;
}
.commerce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.commerce-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
}
.commerce-brand img {
  border: var(--line);
  border-radius: 9px;
  box-shadow: 3px 3px var(--ink);
}
.commerce-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.commerce-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  min-height: 36px;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.commerce-nav a:hover {
  background: var(--ice);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
}
.commerce-nav a:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.commerce-nav a[aria-current="page"],
.commerce-nav a.active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.commerce-nav a[aria-current="page"]:hover,
.commerce-nav a.active:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.commerce-wrap h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -1px;
  margin: 20px 0;
}
.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.commerce-panel,
.order-card {
  background: white;
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}
.commerce-wrap label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
}
.commerce-wrap input:not([type="checkbox"]),
.commerce-wrap textarea,
.commerce-wrap select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  margin-top: 7px;
  min-width: 0;
  box-sizing: border-box;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.commerce-wrap input:not([type="checkbox"]):focus,
.commerce-wrap textarea:focus,
.commerce-wrap select:focus {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
  box-shadow: 3px 3px 0 var(--ink);
}
.commerce-wrap textarea {
  resize: vertical;
}
.checkout-line {
  border-bottom: 2px solid var(--ink);
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.checkout-line p {
  font-size: 13px;
  margin: 5px 0;
}
.checkout-total {
  font-weight: 900;
  font-size: 20px;
  margin-top: 20px;
}
.commerce-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 18px 8px 10px;
  background: var(--ice);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.14s ease, background-color 0.14s ease;
  width: fit-content;
}
.commerce-back-link:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
}
.commerce-back-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.commerce-back-link .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), background-color 0.15s ease;
}
.commerce-back-link:hover .back-arrow {
  transform: translateX(-3px);
  background: var(--lavender);
}
.commerce-status {
  font-weight: 700;
  padding: 12px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.commerce-status[data-error="true"] {
  color: #9d2828;
}
.commerce-notice {
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--ice);
  font-size: 14px;
  margin: 16px 0;
}
.commerce-check {
  display: flex !important;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--ice);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  transition: background-color 0.12s ease;
}
.commerce-check:hover {
  background: #e2edff;
}
.commerce-check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.commerce-wrap button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.commerce-wrap [hidden] {
  display: none !important;
}
.order-card {
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.order-heading h2 {
  font-size: 20px;
  margin: 0;
}
.order-number {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  background: #d5e6ff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .03em;
}
.status-badge {
  display: inline-block;
  background: #ffe56b;
  border: 2px solid var(--ink);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}
.order-item {
  border: 2px solid var(--ink);
  padding: 14px;
  margin-top: 16px;
  background: var(--page);
}
.order-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.order-item p,
.order-card > p {
  font-size: 14px;
  margin: 8px 0;
}
.delivery-content {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  background: white;
  padding: 12px;
  border: 2px dashed var(--ink);
  overflow-wrap: anywhere;
}
.expiry-notice {
  background: #ffe56b;
  border: 2px solid var(--ink);
  padding: 9px;
  font-weight: 700;
  font-size: 13px;
}
.order-actions,
.order-pager {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.order-filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.order-filters button {
  padding: 11px 16px;
}
.commerce-wrap fieldset,
.order-card fieldset {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffffff;
  padding: 18px 20px 20px;
  margin: 20px 0;
  box-shadow: 3px 3px 0 var(--ink);
  min-width: 0;
}
.commerce-wrap legend,
.order-card legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
}
.order-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.order-dates label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.order-dates input[type="date"] {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 700;
  font-family: inherit;
  padding: 9px 12px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.order-dates input[type="date"]:focus {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
  box-shadow: 3px 3px 0 var(--ink);
}
.order-card details {
  margin-top: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--page);
  box-shadow: 3px 3px 0 var(--ink);
}
.order-card details > summary {
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background-color: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  user-select: none;
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.order-card details > summary:hover {
  background-color: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.order-card details[open] > summary {
  margin-bottom: 16px;
  background-color: var(--yellow);
}
.order-card button.primary.wide,
.commerce-wrap button.primary.wide {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  font-size: 14px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.order-card button.primary.wide:hover:not(:disabled),
.commerce-wrap button.primary.wide:hover:not(:disabled) {
  background: #fff9db;
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--ink);
}
.order-card button.primary.wide:active:not(:disabled),
.commerce-wrap button.primary.wide:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 9px 0;
  font-size: 14px;
}
.btn-copy-chip {
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-copy-chip:hover {
  background: var(--ice);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-copy-chip:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-copy-chip.copied {
  background: #22c55e;
  color: #ffffff;
}
.payment-qr-wrap {
  margin: 18px 0;
  padding: 16px 14px;
  background: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffe56b;
  border: 2px solid var(--ink);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0 var(--ink);
}
.payment-qr-frame {
  display: inline-flex;
  padding: 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  max-width: 100%;
}
.payment-qr {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  border: none;
  margin: 0;
}
.payment-qr-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #333333;
  line-height: 1.45;
  max-width: 380px;
  text-align: center;
}
.payment-qr-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.payment-qr-tabs .tab-btn {
  background: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.payment-qr-tabs .tab-btn.active {
  background: var(--ink);
  color: #ffffff;
}
.payment-manual-note {
  font-size: 13px;
  color: #555555;
  font-style: italic;
  margin-top: 10px;
}
.ticket-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 14px 16px;
  margin-top: 16px;
  background: var(--ice);
}
.ticket-card p {
  white-space: pre-wrap;
  font-size: 14px;
}
.connection-notice {
  padding: 16px;
  border: var(--line);
  background: #ffe56b;
}
.order-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  font-variant-emoji: text;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.order-history-link:hover {
  background: var(--ice);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
}
.order-history-link:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.purchase-fields {
  margin: 18px 0;
  border: 2px solid var(--ink);
  padding: 12px;
}
.purchase-fields summary {
  font-weight: 700;
  cursor: pointer;
}
.policies {
  margin-top: 24px;
}
.policies p {
  white-space: pre-wrap;
  font-size: 14px;
}
.payment-settings {
  margin: 24px 0;
}
.settings-field {
  display: block;
}
.admin-note-label {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .commerce-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .commerce-nav {
    gap: 6px;
  }
  .commerce-nav a {
    padding: 6px 11px;
    font-size: 12px;
  }
  .commerce-grid {
    grid-template-columns: 1fr;
  }
  .commerce-wrap {
    padding: 18px 12px 40px;
  }
  .commerce-panel,
  .order-card {
    padding: 16px;
  }
  .order-filters {
    grid-template-columns: 1fr 1fr;
  }
  .order-filters button {
    grid-column: 1/-1;
  }
  .order-dates {
    grid-template-columns: 1fr;
  }
  .commerce-brand {
    font-size: 17px;
  }
}
/* Evidence stays inside the ticket card at small viewport widths. */
.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.evidence-list img {
  object-fit: cover;
  border: 3px solid #19243e;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #19243e;
}
.review-card {
  border: 3px solid #19243e;
  padding: 16px;
  margin: 16px 0;
  background: #fff;
  box-shadow: 4px 4px 0 #19243e;
  overflow-wrap: anywhere;
}
#product-reviews.customer-reviews {display:block;padding:20px;}
#product-reviews .review-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0;}
#product-reviews .review-card {margin:0;border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;}
#product-reviews .review-heading {display:flex;gap:12px;align-items:center;}
#product-reviews .review-avatar {display:grid;place-items:center;width:44px;height:44px;border:2px solid #19243e;border-radius:12px;background:#ffe66b;box-shadow:3px 3px 0 #19243e;font-weight:900;flex-shrink:0;}
#product-reviews .review-heading small {display:block;color:#23714f;font-size:12px;margin-top:4px;}
#product-reviews .review-stars {font-weight:800;color:#19243e;background:#fff2ac;padding:4px 9px;border:2px solid #19243e;border-radius:7px;}
#product-reviews time {font-size:12px;color:#52688d;}
#product-reviews .review-plan {font-size:13px;margin:0;padding:8px 10px;background:#eaf1ff;border-radius:7px;}
#product-reviews .review-body {margin:0;white-space:pre-wrap;line-height:1.65;flex:1;}
#product-reviews .review-helpful {width:auto;min-height:40px;margin:4px 0 0;padding:8px 12px;font-size:13px;}
#product-reviews .review-helpful[aria-pressed=true] {background:#ffe66b;}
#product-reviews .review-pager {display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px 0;}
#product-reviews .review-pager button {width:auto;min-height:42px;margin:0;padding:8px 16px;}
#product-reviews .review-status {margin:0;font-size:13px;}
#product-reviews > a.btn {width:auto;display:inline-flex;min-height:44px;}
@media(max-width:640px){#product-reviews.customer-reviews{padding:14px;}#product-reviews .review-grid{grid-template-columns:1fr;}#product-reviews .review-card{padding:14px;}#product-reviews .review-pager{gap:8px;}#product-reviews .review-pager button{padding:8px 12px;}}
.payment-info .payment-countdown {
  display: block;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1.5px solid #b7c9ec;
  border-radius: 10px;
  background: #eaf1ff;
  color: #254eaa;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.payment-info .payment-countdown[data-expired] {
  background: #fff0eb;
  color: #a23d30;
  border-color: #e8b7aa;
}

.order-dates { grid-template-columns:repeat(2,minmax(0,1fr)); }
.order-card .order-dates label {min-width:0;}
.order-card .order-dates input {min-width:0;width:100%;box-sizing:border-box;}
.order-dates small {display:block;font-weight:400;margin-top:6px;}
@media(max-width:600px){.order-dates{grid-template-columns:1fr;}}

.shop-footer{padding:38px 0 20px;background:var(--ice);border-top:3px solid var(--ink);font-size:13px}.footer-invite{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 38px;padding:22px 26px;background:#ffe56b;border:var(--line);border-radius:7px;box-shadow:5px 5px var(--ink)}.footer-invite-copy{display:flex;align-items:center;gap:20px;min-width:0}.footer-spark{font-size:54px;line-height:1;transition:rotate .14s steps(2,end)}.footer-invite:hover .footer-spark{rotate:20deg}.footer-invite h2{font-size:25px;line-height:1.3;margin:0 0 6px;letter-spacing:-.6px}.footer-invite p{font-size:13px}.footer-invite .btn{flex-shrink:0;gap:24px;background:white;font-size:14px;white-space:nowrap}.shop-footer .footer-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.3fr);gap:30px;padding-bottom:32px}.shop-footer .footer-brand{align-items:center;gap:15px;width:fit-content}.shop-footer .footer-brand img{width:60px;height:60px;flex:0 0 60px;border:3px solid var(--ink);border-radius:12px;box-shadow:4px 4px var(--ink)}.footer-brand>span{min-width:0}.footer-brand strong{display:block;font-size:21px;font-weight:900;letter-spacing:-.7px;line-height:1.2}.footer-brand small{display:block;font-size:11px;margin-top:7px;line-height:1.5}.shop-footer .footer-row strong:hover{translate:none}.footer-about>p{font-size:13px;line-height:1.8;margin:20px 0 16px;max-width:290px}.footer-order-link{display:inline-block;font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:4px}.footer-links,.footer-connect{min-width:0}.footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.footer-links h2,.footer-connect h2{font-size:15px;letter-spacing:0;margin:0 0 8px;font-weight:900}.footer-links>a,.footer-contact-link,.footer-admin{font-size:12px;line-height:1.65;transition:translate .12s,background-color .12s}.footer-links>a:hover,.footer-contact-link:hover,.footer-admin:hover{background:#ffe56b;translate:2px 0;text-decoration:underline;text-underline-offset:4px}.shop-footer .shop-socials{gap:9px;padding:0;margin:0 0 14px}.shop-footer .shop-socials[hidden]{display:none}.shop-footer .social-link{padding:7px 9px;gap:7px;font-size:12px;border-width:2px;box-shadow:3px 3px var(--ink);border-radius:5px}.shop-footer .social-icon{min-width:24px;height:24px;font-size:16px;border-width:1.5px}.footer-contact-link{display:inline-block;text-decoration:underline;text-underline-offset:4px}.footer-bottom{border-top:2px solid var(--ink);padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-bottom>p{font-size:12px;font-weight:800;line-height:1.7}.footer-bottom>p>span{display:block;font-weight:400;font-size:11px;margin-top:4px}.shop-footer .footer-settings{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0}.shop-footer .sound-preference{font-size:11px;white-space:nowrap}.footer-admin{display:none !important}.footer-top{display:grid;place-items:center;width:34px;height:34px;border:2px solid var(--ink);background:white;box-shadow:3px 3px var(--ink);border-radius:5px;font-size:20px;font-weight:900;transition:translate .12s}.footer-top:hover{translate:0 -3px}.shop-footer a:focus-visible{outline:3px solid var(--primary);outline-offset:4px}@media(max-width:1100px){.shop-footer .footer-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:30px 38px}.footer-bottom{align-items:flex-start}}@media(max-width:700px){.shop-footer{padding-top:24px}.footer-invite{padding:18px;gap:18px;flex-direction:column;align-items:stretch;margin-bottom:30px}.footer-invite-copy{gap:14px}.footer-spark{font-size:40px}.footer-invite h2{font-size:21px}.footer-invite p{font-size:12px;line-height:1.7}.footer-invite .btn{justify-content:space-between;padding:10px 14px}.shop-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;padding-bottom:26px}.footer-about,.footer-connect{grid-column:1/-1}.footer-about>p{max-width:400px;margin:16px 0 12px}.footer-brand strong{font-size:23px}.footer-bottom{flex-direction:column;gap:18px}.shop-footer .footer-settings{width:100%;gap:18px}.footer-top{margin-left:auto}.footer-links>a{font-size:12px}.footer-links h2{font-size:14px}.footer-brand small{font-size:12px}}@media(prefers-reduced-motion:reduce){.footer-spark,.footer-links>a,.footer-contact-link,.footer-admin,.footer-top{transition:none}.footer-invite:hover .footer-spark{rotate:none}}

/* Drafted with agy gemini-3.8-flash-high; reviewed for the existing motion and design system. */
/* neo-ui.css - Visual Polish Layer for GRAPERU SHOP */
:root {
  --yellow: #ffe56b;
  --paper: #ffffff;
}

[hidden] {
  display: none !important;
}

/* Opaque panel surfaces to keep polka body dots behind content */
.commerce-panel,
.order-card,
.auth-panel,
.admin-panel,
.guide-panel,
.step,
.card,
details {
  background-color: var(--surface);
}

/* Layout and container constraints */

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.intro {
  max-width: 50ch;
  line-height: 1.6;
}

/* Touch targets, focus states, and visible disabled controls */
button,
.btn,
input:not([type="checkbox"]):not([type="radio"]),
select,
.select-trigger {
  min-height: 44px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

button:disabled,
.btn:disabled,
input:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #e5e9f2;
  border-color: var(--ink);
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

/* Forms, inputs, and feedback across commerce, auth, and admin */
.commerce-wrap input:not([type="checkbox"]):not([type="radio"]),
.commerce-wrap textarea,
.commerce-wrap select,
.auth-panel input {
  background-color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
}

.commerce-status[data-error="true"],
#auth-status[data-error="true"] {
  background: #ffe2e2;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 8px 12px;
}

/* Button hierarchy */
.card :is(button, .product-link) {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  font-variant-emoji: text;
}

.card-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--ink);
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.card:hover .card-action-arrow,
.card .product-link:hover .card-action-arrow {
  background: var(--ink);
  color: #ffffff;
  transform: translate(1px, -1px);
}

.grid.is-list .card :is(button, .product-link) {
  justify-content: center;
}

/* Product covers and cards */
.card {
  border-radius: 12px;
}

.card-body {
  padding: 18px;
}

.card-title h3 {
  font-weight: 900;
  letter-spacing: -0.5px;
}

.card p {
  color: var(--muted);
}

.card-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

/* Compact list view grid: separate description vs price rows and span link */
.grid.is-list .card-body p:not(.card-price) {
  grid-row: 2;
  margin: 0;
}

.grid.is-list .card-body .card-price {
  grid-row: 3;
  margin: 0;
}

/* Auth brand framed poster */
.auth-brand {
  position: relative;
  background: var(--lavender);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
}

/* Product card and preview polka dots texture */
.product-art,
.product-preview,
.detail-visual .product-preview {
  background-image: radial-gradient(circle, rgba(23, 33, 58, 0.22) 1.25px, transparent 1.25px) !important;
  background-size: 16px 16px;
}

/* Category toolbar polish */
.catalog-tools {
  background: var(--page);
}

.filters button {
  border-radius: 8px;
  font-weight: 800;
}

/* Responsive breakpoints from 320px to 1440px */
@media (max-width: 768px) {
  .commerce-grid,
  .auth-layout,
  .home-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .commerce-wrap,
  .auth-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Respect reduced motion without interfering with micro/motion JS */
@media (prefers-reduced-motion: reduce) {
  .studio-strip-track {
    animation: none;
  }
  .neo-back-link,
  .auth-back,
  .commerce-back-link,
  .admin-back-link,
  .detail-back,
  .back-arrow,
  .forward-arrow {
    transition: none !important;
    transform: none !important;
  }
}

/* Unified Neobrutalism Back Buttons & Navigation Badges */
.neo-back-link,
.auth-back,
.commerce-back-link,
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 18px 8px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  min-height: 42px;
  box-sizing: border-box;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.3, 1),
              box-shadow 0.14s ease,
              background-color 0.14s ease,
              color 0.14s ease;
}

.neo-back-link:hover,
.auth-back:hover,
.commerce-back-link:hover,
.admin-back-link:hover {
  background-color: var(--yellow);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
}

.neo-back-link:active,
.auth-back:active,
.commerce-back-link:active,
.admin-back-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.neo-back-link:focus-visible,
.auth-back:focus-visible,
.commerce-back-link:focus-visible,
.admin-back-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Arrow Chips */
.neo-back-link .back-arrow,
.auth-back .back-arrow,
.commerce-back-link .back-arrow,
.admin-back-link .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--lavender);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
              background-color 0.15s ease;
}

.neo-back-link:hover .back-arrow,
.auth-back:hover .back-arrow,
.commerce-back-link:hover .back-arrow,
.admin-back-link:hover .back-arrow {
  transform: translateX(-3px);
  background-color: #ffffff;
}

.admin-back-link {
  margin-bottom: 14px;
  margin-right: 8px;
  font-size: 12px;
  min-height: 38px;
  padding: 6px 14px 6px 8px;
}

.admin-back-link .forward-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: var(--ice);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
              background-color 0.15s ease;
}

.admin-back-link:hover .forward-arrow {
  transform: translate(2px, -2px);
  background-color: #ffffff;
}

/* Neo-brutalist Commerce, Auth & Admin Finishing Polish */
.commerce-wrap {
  position: relative;
  width: 100%;
}

.commerce-panel,
.order-card,
.auth-panel,
.admin-panel {
  border: 3px solid var(--ink, #17213a);
  box-shadow: 4px 4px 0 var(--ink, #17213a);
  border-radius: 12px;
}

.auth-brand {
  border: 3px solid var(--ink, #17213a);
  box-shadow: 5px 5px 0 var(--ink, #17213a);
}

.commerce-wrap :is(h1, h2, h3),
.auth-panel :is(h1, h2),
.admin-panel :is(h1, h2),
.auth-brand :is(h1, h2) {
  font-family: inherit;
  font-weight: 900;
  color: var(--ink, #17213a);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

:is(.commerce-panel, .auth-panel) form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

:is(.commerce-panel, .auth-panel) label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink, #17213a);
  margin-bottom: 6px;
}

.commerce-header {
  margin-bottom: 24px;
}

.commerce-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.commerce-nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink, #17213a);
  background-color: var(--cream, #fffdf5);
  border: 2px solid var(--ink, #17213a);
  border-bottom-width: 3px;
  border-radius: 8px 8px 2px 2px;
  box-shadow: 2px 2px 0 var(--ink, #17213a);
  text-decoration: none;
  cursor: pointer;
}

.commerce-nav :is(a, button):hover,
.commerce-nav :is(a, button).is-active {
  background-color: var(--yellow, #ffe56b);
  box-shadow: 3px 3px 0 var(--ink, #17213a);
}

.neo-back-link {
  background-color: var(--cream, #fffdf5);
  border: 2px solid var(--ink, #17213a);
  box-shadow: 3px 3px 0 var(--ink, #17213a);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--ink, #17213a);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink, #17213a);
  color: var(--ink, #17213a);
  background-color: var(--yellow, #ffe56b);
}

.status-badge[data-tone="blue"],
.status-badge.is-blue {
  background-color: var(--blue, #2b59ff);
  color: #ffffff;
}

.order-number {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--ink, #17213a);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink, #17213a);
  color: var(--ink, #17213a);
  background-color: var(--lavender, #e3dcff);
}

:is(.commerce-panel, .order-card, .admin-panel) details summary {
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid var(--ink, #17213a);
  border-radius: 6px;
  background-color: var(--cream, #fffdf5);
  box-shadow: 2px 2px 0 var(--ink, #17213a);
}

:is(.commerce-panel, .order-card, .auth-panel, .admin-panel) :is(button, .btn):not(:disabled) {
  border: 2px solid var(--ink, #17213a);
  box-shadow: 3px 3px 0 var(--ink, #17213a);
  transition: box-shadow 0.12s ease, filter 0.12s ease, transform 0.12s ease;
}

:is(.commerce-panel, .order-card, .auth-panel, .admin-panel) :is(button, .btn):not(:disabled):hover {
  filter: brightness(1.04);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink, #17213a);
}

:is(.commerce-panel, .order-card, .auth-panel, .admin-panel) :is(button, .btn):not(:disabled):active {
  filter: brightness(0.96);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink, #17213a);
}

@media (max-width: 640px) {
  :is(.commerce-panel, .order-card, .auth-panel, .admin-panel, .auth-brand) {
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink, #17213a);
  }
  .commerce-nav {
    gap: 6px;
  }
  .commerce-nav :is(a, button) {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.commerce-panel, .auth-panel, .admin-panel) :is(button, .btn),
  .commerce-nav :is(a, button) {
    transition: none;
  }
}

/* Cart Dialog Neobrutalist Refinement */
.cart-row {
  border-bottom: 2px solid var(--ink);
  padding: 16px 0;
}
.qty button {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}
.qty button:hover {
  background: var(--ice);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.qty button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.qty .remove {
  background: #fff0f0;
  color: #c01b1b;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
}
.qty .remove:hover {
  background: #ffe3e3;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Component finishing layer. The dot pattern belongs to the page only. */
textarea {
  font: inherit;
  max-width: 100%;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
[hidden] {
  display: none !important;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 25px;
  font-size: 12px;
  font-weight: 700;
}
.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-notes span::before {
  content: "✦";
  font-size: 19px;
  color: var(--primary);
}
.studio-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow);
  margin: 12px 0 64px;
  border-radius: 10px;
  overflow: hidden;
}
.studio-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px}
.studio-strip-intro{min-width:0}
.studio-strip-intro p{margin:0 0 8px;font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--primary)}
.studio-strip-intro h2{margin:0;font-size:clamp(19px,2.5vw,27px);line-height:1.3;letter-spacing:-.8px}
.studio-strip-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.studio-strip-actions a{display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:800;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}
.studio-strip-viewport {
  overflow: hidden;
  min-width: 0;
  border-top:2px solid var(--ink);
  background-color:#ffe56b;
  background-image:radial-gradient(rgb(23 33 58 / .16) 1px,transparent 1px);
  background-size:10px 10px;
}
.studio-strip-track {
  display: flex;
  width: max-content;
  min-width:200%;
  animation: studio-ticker 38s linear infinite;
}
.studio-strip-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  flex:1 0 auto;
  justify-content:space-around;
}
.studio-strip-group > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  padding:8px 14px 8px 8px;
  background:#fff;
  border:2px solid var(--ink);
  border-radius:6px;
  box-shadow:2px 2px 0 var(--ink);
}
.studio-strip-group > span:nth-child(2n){background:#e8e2ff}
.studio-strip-group > span:nth-child(3n){background:#e3f4d6}
.studio-strip-group i{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;font-size:18px;font-style:normal;color:var(--ink)}
.studio-strip-group i .neo-glyph{background:none;box-shadow:none;color:inherit}
.studio-strip button {
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;flex:0 0 44px;
  border:2px solid var(--ink);border-radius:6px;
  box-shadow:2px 2px 0 var(--ink);
  background:#d6e7ff;padding:10px;font-size:18px;min-width:0;
}
.studio-strip button[aria-pressed=true]{background:#ffe56b;box-shadow:1px 1px 0 var(--ink)}
.studio-strip.strip-paused .studio-strip-track {
  animation-play-state: paused;
}
@keyframes studio-ticker {
  to {
    transform: translateX(-50%);
  }
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 10px;
}
.catalog-intro-text {
  font-size: 14px;
  max-width: 600px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.8;
}
.ui-empty-card {
  background: var(--surface);
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 36px 24px;
  text-align: center;
  max-width: 680px;
  margin: 32px auto;
  overflow-wrap: anywhere;
}
.ui-empty-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.8px;
  margin: 20px 0 12px;
}
.ui-empty-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
  margin: 0 auto 24px;
}
.ui-empty-card .btn {
  font-size: 13px;
  white-space: normal;
}
.ui-state-art {
  position: relative;
  width: 110px;
  height: 100px;
  margin: 0 auto;
}
.ui-state-sheet {
  display: grid;
  align-content: center;
  gap: 10px;
  width: 76px;
  height: 90px;
  border: var(--line);
  border-radius: 7px;
  background: var(--ice);
  box-shadow: 5px 5px var(--ink);
  rotate: -8deg;
  position: absolute;
  left: 14px;
  top: 4px;
  padding: 16px;
}
.ui-state-sheet i {
  height: 3px;
  background: var(--ink);
}
.ui-state-sheet i:last-child {
  width: 60%;
}
.ui-state-star {
  position: absolute;
  right: 0;
  top: -5px;
  font-size: 37px;
  color: var(--ink);
  text-shadow: 2px 2px #ffe375;
}
.ui-empty-card:hover .ui-state-sheet {
  rotate: 0deg;
  transition: rotate 0.18s ease;
}
.ui-empty-cart {
  margin: 16px 0;
  border: 0;
  box-shadow: none;
  padding: 20px 0;
}
.ui-empty-dialog {
  margin: 16px 0 20px;
  border: 0;
  box-shadow: none;
  padding: 14px 0;
}
.ui-empty-dialog h2 {
  font-size: 24px;
}
.ui-empty-dialog p {
  font-size: 13px;
}
.ui-cart-is-empty #cart-items > .dialog-copy,
.ui-cart-is-empty .cart-note,
.ui-cart-is-empty #continue {
  display: none;
}
.help-hero {
  position: relative;
  isolation: isolate;
}
.ui-help-sticker {
  display: none;
}
@media (min-width: 1100px) {
  .help-hero {
    padding-right: 310px;
  }
  .ui-help-sticker {
    position: absolute;
    display: grid;
    place-items: center;
    right: 76px;
    top: 50%;
    translate: 0 -50%;
    width: 150px;
    height: 150px;
    rotate: 8deg;
    background: white;
    border: var(--line);
    box-shadow: 8px 8px var(--ink);
    border-radius: 16px;
  }
  .ui-help-sticker img {
    width: 112px;
    height: 112px;
    border: var(--line);
    border-radius: 10px;
  }
  .ui-help-sticker span {
    position: absolute;
    right: -22px;
    top: -38px;
    font-size: 60px;
    color: var(--ink);
    text-shadow: 3px 3px #ffe375;
  }
  .help-hero:hover .ui-help-sticker {
    rotate: -3deg;
    transition: rotate 0.18s;
  }
}
.ui-utility-footer {
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
  align-items: center;
  background: transparent;
  border-top: var(--line);
  padding: 24px 0 0;
  margin-top: 60px;
  font-size: 12px;
}
.ui-utility-footer strong {
  font-size: 14px;
  font-weight: 900;
}
.ui-utility-footer > span {
  color: var(--muted);
}
.ui-utility-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
  font-weight: 700;
}
.ui-utility-footer nav a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Compact rows need three separate lines: title, description, price. */
.grid.is-list .card-body > p:not(.card-price) {
  grid-row: 2;
  grid-column: 1;
}
.grid.is-list .card-body > .card-price {
  grid-row: 3;
  grid-column: 1;
  margin: 0;
  min-height: 0;
  color: var(--ink);
  font-size: 12px;
}
.grid.is-list .card-body > .product-link {
  grid-row: 1 / span 3;
}
.card .card-price {
  font-size: 13px;
  color: var(--ink);
  min-height: 0;
  line-height: 1.6;
  margin: 12px 0 18px;
}
.auth-wrap .auth-brand {
  background: var(--ice);
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  position: relative;
  min-width: 0;
}
.auth-brand::before {
  content: "MAKE EVERY DAY COUNT";
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 900;
  margin-bottom: 32px;
}
.auth-brand::after {
  content: "✦";
  position: absolute;
  right: 22px;
  top: 14px;
  font-size: 32px;
  color: var(--primary);
}
.auth-brand h2 {
  line-height: 1.55;
  letter-spacing: -1px;
}
.auth-brand mark {
  padding: 2px 6px;
  background: #ffe375;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.auth-brand p {
  font-size: 14px;
  line-height: 1.8;
}
.auth-panel {
  border-radius: 4px;
}
.auth-panel h1 {
  line-height: 1.35;
}
.auth-panel label,
.commerce-wrap label {
  line-height: 1.6;
}
.auth-panel input:focus,
.commerce-wrap input:focus,
.commerce-wrap textarea:focus,
.commerce-wrap select:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  background: #fff;
}
.auth-panel #auth-status:not(:empty) {
  background: var(--ice);
  padding: 12px;
  border-left: 4px solid var(--ink);
  font-size: 12px;
  line-height: 1.8;
}
.auth-panel #auth-status[data-error="true"] {
  background: #ffe4df;
}
.commerce-status:not(:empty) {
  padding: 14px 18px;
  background: var(--ice);
  border: 2px solid var(--ink);
  font-size: 13px;
  line-height: 1.8;
}
.commerce-status[data-error="true"]:not(:empty) {
  background: #fff1d0;
  color: var(--ink);
}
.commerce-wrap #auth-status:empty,
.commerce-status:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.commerce-notice {
  line-height: 1.8;
}
.commerce-panel h2,
.order-card h2 {
  line-height: 1.4;
  font-size: clamp(22px, 2.4vw, 27px);
  letter-spacing: -0.6px;
}
.commerce-nav a {
  text-decoration: none;
}
.commerce-nav a:hover {
  text-decoration: none;
}
.commerce-header {
  padding-bottom: 20px;
  border-bottom: var(--line);
}
.commerce-header .commerce-brand {
  letter-spacing: -0.7px;
}
.commerce-wrap > h1 {
  line-height: 1.35;
  margin: 32px 0 22px;
}
.detail-panel {
  border-radius: 4px;
}
.auth-panel .auth-forgot {
  min-height: auto;
}
.auth-panel .auth-switch {
  margin: 20px 0 0;
  line-height: 1.8;
}
.how .step {
  position: relative;
  overflow: hidden;
  padding: 26px;
}
.how .step:nth-child(1) {
  background: #fff8dc;
}
.how .step b {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1.5;
}
.how .step b span {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  box-shadow: 3px 3px var(--ink);
  background: white;
  rotate: -5deg;
  margin: 0;
}
.how .step p {
  font-size: 14px;
  line-height: 1.8;
  margin: 18px 0 0;
}
.how .step:hover b span {
  rotate: 4deg;
  transition: rotate 0.16s;
}
.how h2,
.faq h2 {
  line-height: 1.4;
}
.product-details p,
.product-details li {
  line-height: 1.8;
}
.ui-utility-footer a:focus-visible,
.studio-strip button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .hero-notes {
    margin-top: 20px;
    font-size: 11px;
    gap: 8px 14px;
  }
  .studio-strip {
    margin: 8px 0 40px;
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-strip-heading{padding:16px;gap:12px}
  .studio-strip-intro p{font-size:8px;letter-spacing:1px}
  .studio-strip-actions{gap:0}
  .studio-strip-actions a{display:none}
  .studio-strip-group {
    padding:12px 7px;
    gap:14px;
  }
  .studio-strip-group > span {
    font-size: 12px;
  }
  .section-eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .catalog-intro-text {
    font-size: 13px;
  }
  .auth-wrap .auth-brand {
    padding: 20px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px 18px;
    align-items: center;
  }
  .auth-brand::before {
    grid-column: 1/-1;
    margin-bottom: 8px;
    font-size: 9px;
  }
  .auth-brand::after {
    right: 16px;
    top: 12px;
    font-size: 23px;
  }
  .auth-brand h2 {
    font-size: 21px;
    line-height: 1.55;
    margin: 0;
  }
  .auth-brand img {
    width: 54px;
    height: 54px;
  }
  .auth-brand p {
    display: none;
  }
  .ui-utility-footer {
    margin-top: 40px;
    gap: 12px;
  }
  .ui-utility-footer > span {
    flex-basis: 100%;
  }
  .ui-utility-footer nav {
    margin-left: 0;
  }
  .ui-empty-card {
    padding: 28px 18px;
    margin: 24px auto;
  }
  .commerce-header {
    gap: 18px;
    padding-bottom: 18px;
  }
  .commerce-header .commerce-brand {
    font-size: 18px;
  }
  .commerce-nav {
    font-size: 12px;
    gap: 8px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-strip-track {
    animation: none;
  }
  .ui-empty-card:hover .ui-state-sheet {
    transition: none;
    rotate: -8deg;
  }
  .how .step:hover b span,
  .help-hero:hover .ui-help-sticker {
    transition: none;
  }
}
@media (max-width: 480px) {
  .header .nav {
    gap: 12px 6px;
  }
  .header .brand {
    font-size: 18px;
    gap: 7px;
    letter-spacing: -0.8px;
  }
  .header .brand-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .header .actions {
    gap: 6px;
  }
  .header .actions .icon-btn,
  .header .actions .auth-account-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    min-height: 38px;
    padding: 0;
    box-shadow: 3px 3px var(--ink);
    border-radius: 6px;
  }
  .header .actions .icon-btn {
    font-size: 16px;
  }
  .header .actions .auth-account-link {
    font-size: 0;
  }
  .header .actions .auth-account-link[data-signed-in="true"] {
    display: block;
    width: auto;
    max-width: 88px;
    padding: 9px 7px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header .actions .auth-account-link[data-signed-in="true"]::before,
  .header .actions .auth-account-link[data-signed-in="true"]::after {
    content: none;
  }
  .header .actions .auth-account-link::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 11px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--ink);
    border-radius: 50%;
  }
  .header .actions .auth-account-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 7px;
    width: 16px;
    height: 9px;
    border: 2px solid var(--ink);
    border-radius: 9px 9px 2px 2px;
  }
  .header #cart-count {
    position: absolute;
    top: -9px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    margin: 0;
    background: #ffe375;
    border: 2px solid var(--ink);
  }
  .header .links {
    gap: 15px;
  }
  .header .links a {
    font-size: 11px;
  }
  .header .links a[aria-current="page"] {
    padding: 5px 10px;
  }
}
@media (max-width: 360px) {
  .header .brand {
    font-size: 15px;
    gap: 6px;
  }
  .header .brand-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .hero-copy .hero-buttons .btn {
    font-size: 11px;
    padding: 10px;
    gap: 6px;
  }
  .auth-brand h2 {
    font-size: 18px;
  }
  .header .links {
    gap: 12px;
  }
}

/* GRAPERU wordmark: outlined type and a stamped SHOP sticker. */
.neo-brand,
.footer-brand strong.neo-brand,
.ui-utility-footer > strong.neo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  line-height: 1.2;
  white-space: nowrap;
  isolation: isolate;
  padding: 3px 5px 6px 0;
}
.neo-brand .neo-brand-main {
  display: inline-block;
  color: #92baff;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--ink);
  font-weight: 900;
  letter-spacing: -0.055em;
  transition:
    translate 0.16s steps(2, end),
    text-shadow 0.16s;
  animation: neo-brand-enter 0.45s steps(4, end) both;
}
.neo-brand .neo-brand-label {
  position: relative;
  display: inline-block;
  padding: 0.16em 0.32em 0.2em;
  background: #ffe56b;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 3px var(--ink);
  font-size: 0.72em;
  font-weight: 900;
  letter-spacing: -0.035em;
  rotate: -5deg;
  transition:
    translate 0.16s steps(2, end),
    rotate 0.16s steps(2, end),
    box-shadow 0.16s;
  animation: neo-brand-enter 0.45s 0.08s steps(4, end) both;
}
.neo-brand-label:after {
  content: "✦";
  position: absolute;
  right: -0.7em;
  top: -0.65em;
  font-size: 0.8em;
  line-height: 1;
  color: #92baff;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  animation: neo-brand-spark 6s steps(3, end) infinite;
  pointer-events: none;
}
.neo-brand:hover .neo-brand-main,
a:focus-visible .neo-brand-main {
  translate: 0 -2px;
  text-shadow: 3px 4px 0 var(--ink);
}
.neo-brand:hover .neo-brand-label,
a:focus-visible .neo-brand-label {
  translate: 0 -3px;
  rotate: 3deg;
  box-shadow: 4px 6px var(--ink);
}
.brand:active .neo-brand-main,
.footer-brand:active .neo-brand-main {
  translate: 2px 2px;
  text-shadow: 0 0 var(--ink);
}
.brand:active .neo-brand-label,
.footer-brand:active .neo-brand-label {
  translate: 3px 3px;
  rotate: 0deg;
  box-shadow: 0 0 var(--ink);
}
@keyframes neo-brand-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes neo-brand-spark {
  0%,
  82%,
  100% {
    rotate: 0deg;
    scale: 1;
  }
  88% {
    rotate: 35deg;
    scale: 1.2;
  }
  94% {
    rotate: -15deg;
    scale: 1;
  }
}
.ui-motion-paused.brand-avatar,
.ui-motion-paused .neo-brand-label:after,
.ui-motion-paused .poster-logo,
.ui-motion-paused .poster-spark,
.ui-page-hidden .brand-avatar,
.ui-page-hidden .neo-brand-label:after,
.ui-page-hidden .poster-logo,
.ui-page-hidden .poster-spark {
  animation-play-state: paused;
}
@media (max-width: 480px) {
  .neo-brand {
    gap: 0.28em;
  }
  .neo-brand .neo-brand-main {
    -webkit-text-stroke: 0.8px var(--ink);
    text-shadow: 1.5px 1.5px var(--ink);
  }
  .neo-brand .neo-brand-label {
    border-width: 1.5px;
    box-shadow: 2px 2px var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  .neo-brand .neo-brand-main,
  .neo-brand .neo-brand-label,
  .neo-brand-label:after {
    animation: none;
    transition: none;
  }
  .neo-brand:hover .neo-brand-main,
  a:focus-visible .neo-brand-main,
  .neo-brand:hover .neo-brand-label,
  a:focus-visible .neo-brand-label {
    translate: none;
  }
}
.auth-account-link[data-signed-in="true"] {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* One control vocabulary across the shop, account and administration. */
:root {
  --ui-radius: 6px;
  --ui-control-shadow: 3px 3px 0 var(--ink);
  --ui-danger: #a02b33;
}
.ui-admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 3px 6px 0;
  margin: 10px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--ice);
}
.ui-admin-nav a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 10px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 1px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ui-admin-nav a[aria-current="page"] {
  background: #ffe375;
}
.ui-admin-nav a:hover {
  background: var(--ice);
}
.ui-admin-nav a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.ui-admin-page .admin-header {
  padding-bottom: 16px;
  border-bottom: var(--line);
}
.ui-admin-page main > h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.4;
  margin: 14px 0;
}
.ui-admin-page :is(.commerce-panel, .admin-panel) h2 {
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}
.ui-admin-page .admin-panel h3 {
  line-height: 1.5;
}
.ui-admin-page .admin-notice {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 22px;
}
.ui-admin-page
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ui-admin-page textarea,
.ui-admin-page select {
  font: inherit;
  border: 2px solid var(--ink);
  border-radius: var(--ui-radius);
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.ui-admin-page select {
  padding: 11px;
  width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  padding: 0;
  margin: 0;
  border: 2px solid var(--ink);
  background-color: white;
  accent-color: var(--primary);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"] {
  border-radius: 3px;
  box-shadow: 1px 1px var(--ink);
}
input[type="checkbox"]:checked {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E");
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:checked {
  background: var(--primary);
  box-shadow: inset 0 0 0 3px white;
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2317213a' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  background-position: right 12px center !important;
  padding-right: 38px !important;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  background-color: var(--ice);
  border-radius: 3px;
  padding: 3px;
}
.ui-admin-empty {
  max-width: none;
  margin: 24px 0;
  padding: 26px 18px;
  box-shadow: 3px 3px var(--ink);
}
.ui-admin-empty h2 {
  font-size: 22px !important;
}
.ui-admin-empty .ui-state-art {
  scale: 0.8;
  height: 82px;
}
#plan-count {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--ice);
  font-size: 13px;
  line-height: 1.8;
}
.admin-plan[data-active="false"] {
  background: #eef1f7;
  border-style: dashed;
}
.admin-panel:has(#cancel-edit:not([hidden])) {
  background: #fffbed;
}
@media (forced-colors: active) {
  input[type="checkbox"],
  input[type="radio"],
  select {
    appearance: auto;
    background-image: none !important;
    box-shadow: none;
  }
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 8px 0;
}
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  min-height: 38px;
  padding: 7px 10px;
  margin: 0 10px 6px 0;
  border: 2px solid var(--ink);
  border-radius: var(--ui-radius);
  box-shadow: 2px 2px var(--ink);
  background: var(--ice);
  color: var(--ink);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: #ffe375;
}
.import-button {
  max-width: 100%;
  min-width: 0;
}
.import-button input[type="file"] {
  display: block;
  width: 100%;
  max-width: 235px;
  min-width: 0;
}
button.ui-danger,
#confirm-delete {
  background: var(--ui-danger);
  color: white;
  border-color: var(--ink);
}
button.ui-danger:hover,
#confirm-delete:hover {
  background: #80232a;
  color: white;
}
#delete-confirm {
  border: var(--line);
  border-left-width: 7px;
  background: #fff0e8;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 22px 0 0;
}
#delete-confirm p {
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
}
#delete-confirm button {
  margin: 0 10px 10px 0;
}
.ui-field-error {
  display: block;
  margin: 8px 0 16px !important;
  padding: 8px 12px;
  border: 2px solid var(--ui-danger);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  background: #fff0ed;
  color: #80232a !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--ui-danger) !important;
  background: #fff5f2 !important;
}
.ui-feedback:not(:empty) {
  display: block;
  padding: 12px 15px;
  margin: 16px 0;
  border: 2px solid var(--ink);
  border-radius: var(--ui-radius);
  background: var(--ice);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ui-feedback:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
}
.ui-feedback-error:not(:empty) {
  background: #fff0e8;
  color: #80232a;
}
.ui-control-busy {
  cursor: progress !important;
  border-style: dashed !important;
  outline: 2px solid var(--sky-soft);
  outline-offset: 3px;
}
summary {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}
.auth-panel label:focus-within,
.commerce-wrap label:focus-within,
.admin-wrap label:focus-within {
  color: var(--primary);
}
.ui-utility-footer .sound-preference {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  min-height: 38px;
  cursor: pointer;
}
.ui-utility-footer .sound-preference input {
  width: 17px;
  height: 17px;
}
@media (max-width: 700px) {
  .ui-admin-nav {
    margin: 14px 0 22px;
    gap: 8px;
  }
  .ui-admin-nav a {
    font-size: 12px;
    padding: 9px 12px;
  }
  .ui-feedback:not(:empty) {
    font-size: 12px;
    padding: 11px 12px;
  }
  .ui-admin-page .admin-header img {
    width: 48px;
    height: 48px;
  }
  .ui-admin-page .admin-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Shared touch layout; desktop keeps its existing composition. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: calc(var(--header-height, 120px) + 16px);
  }
  body {
    -webkit-text-size-adjust: 100%;
  }
  button, a, label, summary {
    touch-action: manipulation;
  }
  button, .btn, .product-link, .detail-back, .google-login,
  .import-button, .breadcrumb-trail a, summary {
    min-height: 44px;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea, select {
    font-size: 16px !important;
    min-height: 48px;
    max-width: 100%;
  }
  textarea {
    min-height: 112px;
  }
  input[type="file"] {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .container {
    padding-inline: 16px;
  }
  .header .nav {
    gap: 8px;
    padding-block: 10px;
  }
  .header .brand {
    min-width: 0;
    min-height: 44px;
    font-size: clamp(14px, 4vw, 22px);
    gap: 6px;
  }
  .header .brand-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .header .actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .header .actions .icon-btn,
  .header .actions .auth-account-link {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    position: relative;
  }
  .header .actions .auth-account-link {
    width: auto;
    max-width: 88px;
    font-size: 12px;
    padding: 9px 8px;
    line-height: 22px;
  }
  .header #cart-count {
    position: absolute;
    top: -7px;
    right: -6px;
    margin: 0;
  }
  .header .actions .auth-account-link[data-signed-in="true"] {
    display: block;
    width: auto;
    max-width: 72px;
    padding: 9px 6px;
    font-size: 12px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header .actions .auth-account-link:not([data-signed-in="true"])::before {
    left: calc(50% - 5px);
    top: 8px;
  }
  .header .actions .auth-account-link:not([data-signed-in="true"])::after {
    left: calc(50% - 9px);
    bottom: 8px;
  }
  .header .links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
    order: 3;
  }
  .header .links a,
  .header .links a[aria-current="page"] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 7px 3px;
    font-size: 12px;
  }
  .hero {
    gap: 22px;
    padding-block: 28px;
  }
  .hero-copy h1 {
    font-size: clamp(30px, 8.7vw, 48px);
    line-height: 1.3;
    letter-spacing: -1.3px;
  }
  .hero-copy .intro {
    font-size: 15px;
    line-height: 1.75;
  }
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero-copy .hero-buttons .btn {
    min-width: 0;
    min-height: 48px;
    font-size: 12px;
    padding: 12px 10px;
    gap: 8px;
    justify-content: space-between;
  }
  .hero-art {
    margin-top: 0;
    aspect-ratio: 1.55;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px 5px 10px;
    gap: 8px;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  .filters button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .card-body {
    padding: 12px 10px;
    gap: 10px;
  }
  .card h3 {
    font-size: 16px;
    line-height: 1.45;
  }
  .card p {
    font-size: 13px;
    line-height: 1.6;
    min-height: 0;
  }
  .card .product-link {
    font-size: 12px;
    padding: 10px 8px;
  }
  .pagination button, .qty button, .close {
    min-width: 44px;
    min-height: 44px;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 32px);
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    overflow-y: auto;
  }
  .qty {
    flex-wrap: wrap;
    gap: 10px;
  }
  .detail-panel, .commerce-panel, .order-card, .admin-panel, .auth-panel {
    padding: 18px 16px;
  }
  .detail-page .breadcrumb-trail a,
  .breadcrumb-trail [aria-current="page"] {
    min-height: 44px;
    font-size: 11px;
  }
  .plan-option {
    min-height: 64px;
    padding: 14px;
    line-height: 1.6;
  }
  .commerce-nav, .account-nav {
    gap: 6px 12px;
  }
  .commerce-nav a, .account-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
  }
  .order-filters, .form-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-actions > *, .order-actions > * {
    flex: 1 1 130px;
    min-width: 0;
    white-space: normal;
  }
  .ui-admin-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 8px 0 14px;
    overflow: visible;
    padding: 4px 4px 8px 0;
  }
  .ui-admin-nav a {
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    line-height: 1.5;
    font-size: 11px;
    padding: 7px 5px;
    justify-content: center;
  }
  .admin-products {
    max-height: 264px;
    overscroll-behavior: contain;
  }
  .admin-products button {
    min-height: 48px;
    line-height: 1.5;
  }
  .shop-footer a, .ui-utility-footer nav a {
    min-height: 44px;
    align-content: center;
  }
  .sound-preference {
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .header .actions .auth-account-link:not([data-signed-in="true"]) {
    width: 44px;
    padding: 0;
    font-size: 0;
  }
}
@media (max-width: 360px) {
  .container {
    padding-inline: 12px;
  }
  .header .nav, .header .actions {
    gap: 4px;
  }
  .header .brand {
    font-size: 13px;
    gap: 5px;
  }
  .header .brand-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .header .actions .auth-account-link[data-signed-in="true"] {
    max-width: 48px;
  }
  .header .links a, .header .links a[aria-current="page"] {
    font-size: 11px;
  }
  .grid {
    gap: 12px;
  }
  .product-art {
    height: 118px;
  }
  .card-body {
    padding: 12px 8px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .card:hover, .card.ui-tilt {
    transform: none;
  }
}
/* Keep content visible on phones; controls remain large enough to tap. */
@media(max-width:700px){
 .grid {gap:12px;}
 .grid:not(.is-list) .product-art {height:112px;}
 .grid:not(.is-list) .app-icon {width:54px;height:54px;font-size:30px;}
 .grid:not(.is-list) .card-body {padding:10px;gap:8px;}
 .grid:not(.is-list) .card h3 {font-size:15px;line-height:1.4;}
 .grid:not(.is-list) .card p {-webkit-line-clamp:2;font-size:12px;line-height:1.55;}
 .grid:not(.is-list) .card .product-link {min-height:44px;padding:8px;font-size:11px;}
 .ui-admin-page .page-lead {padding:12px;margin-block:10px 14px;}
 .ui-admin-page .page-lead h1 {font-size:25px;line-height:1.3;margin:5px 0;}
 .ui-admin-page .page-lead-deck {font-size:12px;line-height:1.6;}
 .ui-admin-page .ui-admin-nav {gap:6px;margin:8px 0 12px;padding-bottom:6px;}
 .ui-admin-page .ui-admin-nav a {min-height:44px;padding:8px 6px;}
 .commerce-header {gap:8px;padding-bottom:12px;margin-bottom:14px;}
 .commerce-brand {font-size:17px;}
 .commerce-brand img {width:32px;height:32px;}
 .commerce-nav {gap:6px;}
 .commerce-nav a {min-height:44px;font-size:12px;padding:6px 8px;}
 body[data-auth-page] .auth-wrap {padding:12px 12px 22px;}
 body[data-auth-page] .auth-back {margin-bottom:12px;}
 body[data-auth-page] .auth-panel {padding:18px 16px;}
 body[data-auth-page] .auth-panel h1 {font-size:24px;}
 #cart-dialog .dialog-head {margin-bottom:12px;}
 #cart-dialog .cart-note {font-size:11px;line-height:1.6;}
}

/* Homepage art direction. Existing SVG robot and motion handlers remain shared. */
.hero-studio{position:relative;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;margin:30px 0 24px;padding:34px;background:#edf3ff;border:3px solid var(--ink);border-radius:14px;box-shadow:7px 7px 0 var(--ink);isolation:isolate}
.hero-studio .hero-edition{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hero-studio .hero-edition>span:last-child{font-size:9px;font-weight:800;letter-spacing:1.1px;color:#526180}
.hero-studio .pill{padding:7px 11px;background:#d6e7ff;font-size:10px;letter-spacing:1.1px;transform:rotate(-2deg);border-width:2px;box-shadow:2px 3px 0 var(--ink)}
.hero-studio .hero-copy h1{font-size:clamp(29px,9.4cqi,56px);line-height:1.2;gap:.17em;margin:26px 0 24px;letter-spacing:-.05em}
.hero-studio .hero-line mark{padding:.09em .17em .15em}
.hero-studio .hero-line mark::before{box-shadow:3px 3px 0 var(--ink);border-radius:3px}
.hero-studio .intro{max-width:46ch;font-size:15px;line-height:1.85;color:#43516e;margin-bottom:24px}
.hero-studio .hero-copy .hero-buttons{gap:12px;max-width:490px}
.hero-studio .hero-copy .hero-buttons .btn{min-height:50px;font-size:clamp(11px,2.7cqi,14px);padding:12px 14px;border-radius:7px;box-shadow:3px 4px 0 var(--ink)}
.hero-studio .hero-copy .hero-buttons .primary{background:var(--ink);color:#fff}
.hero-studio .hero-copy .hero-buttons .primary:hover{background:#315fae}
.hero-studio .hero-notes{font-size:11px;gap:10px 18px;margin-top:20px;color:#43516e}
.hero-journey{display:flex;gap:20px;list-style:none;padding:20px 0 0;margin:24px 0 0;border-top:1px solid #b5c3dd}
.hero-journey li{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:700;line-height:1.5}
.hero-journey b{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;font-size:10px;background:#fff;border:1.5px solid var(--ink);border-radius:4px}
.hero-journey li:last-child b{background:#ffe56b}
.hero-studio .hero-art{display:flex;flex-direction:column;min-width:0;aspect-ratio:auto;transform:rotate(1deg);border:2px solid var(--ink);border-radius:10px;box-shadow:5px 6px 0 var(--ink);background:#c5b3f5;align-self:center}
.hero-studio .hero-art>svg{display:block;width:100%;height:auto;aspect-ratio:600/415;flex:none}
.hero-scene-toolbar{display:flex;align-items:center;gap:10px;padding:12px;background:#fff;border-bottom:2px solid var(--ink);font-size:8px;font-weight:900;letter-spacing:.7px;white-space:nowrap}
.hero-window-dots{display:flex;gap:4px;margin-right:auto}
.hero-window-dots i{display:block;width:7px;height:7px;border:1.5px solid var(--ink);border-radius:50%;background:#d6e7ff}
.hero-window-dots i:nth-child(2){background:#ffe56b}.hero-window-dots i:nth-child(3){background:#c5b3f5}
.hero-scene-label{font-size:7px;padding:3px 5px;background:#dff2d2;border:1px solid var(--ink);border-radius:3px;margin-left:auto}
.hero-scene-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;background:#fff;border-top:2px solid var(--ink);font-size:9px;font-weight:600}
.hero-scene-footer>span{display:inline-flex;align-items:center;gap:6px}.hero-scene-footer i{display:inline-flex;font-size:14px;font-style:normal;color:var(--primary)}
.hero-scene-footer strong{font-size:8px;letter-spacing:.7px}
.hero-studio+.studio-strip{margin-top:0;margin-bottom:56px;box-shadow:5px 5px 0 var(--ink)}
@media(max-width:1000px) and (min-width:761px){.hero-studio{padding:24px;gap:24px}.hero-studio .hero-edition>span:last-child{display:none}.hero-journey{gap:10px}.hero-journey li{font-size:10px}.hero-scene-label{display:none}.hero-studio .intro{font-size:14px}}
@media(max-width:760px){.hero-studio{grid-template-columns:minmax(0,1fr);gap:26px;margin:20px 0;padding:22px;box-shadow:5px 5px 0 var(--ink)}.hero-studio .hero-copy h1{font-size:clamp(30px,9.1cqi,48px);margin:24px 0 20px}.hero-studio .intro{font-size:14px;line-height:1.8}.hero-studio .hero-copy .hero-buttons .btn{font-size:12px;padding:12px 10px}.hero-studio .hero-notes{font-size:10px;gap:10px}.hero-journey{gap:14px;margin-top:20px;padding-top:16px;justify-content:space-between}.hero-journey li{gap:6px;font-size:10px}.hero-journey b{width:22px;height:22px;font-size:9px}.hero-studio .hero-art{width:100%;transform:rotate(.5deg)}.hero-studio+.studio-strip{margin-bottom:44px}}
@media(max-width:380px){.hero-studio{padding:16px}.hero-studio .hero-edition{gap:10px}.hero-studio .hero-edition>span:last-child{font-size:7px;letter-spacing:.5px}.hero-studio .hero-copy .hero-buttons{grid-template-columns:minmax(0,1fr)}.hero-studio .hero-copy .hero-buttons .btn{font-size:12px}.hero-journey{gap:8px}.hero-journey li{font-size:9px}.hero-journey b{width:19px;height:19px}.hero-scene-label{display:none}.hero-scene-footer strong{font-size:6px}.hero-scene-footer{font-size:8px;padding:10px}.hero-scene-toolbar{font-size:7px;padding:10px}}
@media(prefers-reduced-motion:reduce){.hero-studio .hero-art{transform:none}}

/* Compact catalog controls with a readable search field. */
#catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 20px;
  padding: 12px 0;
  border-bottom: 1px solid #c7d2e5;
}
#catalog-tools .filters {
  grid-column: 1 / -1;
  gap: 7px;
  padding: 1px 2px 4px;
}
#catalog-tools .filters button {
  min-height: 44px;
  padding: 7px 12px;
  border-width: 2px;
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  line-height: 1.3;
}
#catalog-tools .filters [aria-pressed="true"] {
  background: #ffe56b;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: none;
}
#catalog-tools .search-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}
#catalog-tools .search-wrap { min-width: 0; }
#catalog-tools #search,
#catalog-tools .select-trigger,
#catalog-tools #sort {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  line-height: 1.4;
}
#catalog-tools #search { padding-left: 36px; }
#catalog-tools .search-wrap > span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  pointer-events: none;
}
#catalog-tools .search-wrap > span span { position: static; }
#catalog-tools .custom-select { width: 100%; min-width: 0; }
#catalog-tools .catalog-mode { gap: 12px; }
#catalog-tools .result-count { white-space: nowrap; font-size: 11px; }
#catalog-tools #compact-view {
  min-height: 44px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
}
@media (max-width: 900px) {
  #catalog-tools { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #catalog-tools .catalog-mode { justify-content: space-between; }
}
@media (max-width: 700px) {
  #catalog-tools { position:relative;top:auto;grid-template-columns:minmax(0,1fr) 44px;gap:7px 8px;padding-block:8px; }
  #catalog-tools .filters {grid-column:1/-1;grid-row:1;gap:6px;padding-bottom:3px;scrollbar-width:none;}
  #catalog-tools .filters::-webkit-scrollbar {display:none;}
  #catalog-tools .filters button { min-height: 44px; padding: 8px 11px; }
  #catalog-tools .search-row { grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr) 94px;gap:7px; }
  #catalog-tools .catalog-mode {display:contents;}
  #catalog-tools .result-count {grid-column:1/-1;grid-row:3;margin:0;line-height:16px;font-size:10px;}
  #catalog-tools #search,
  #catalog-tools .select-trigger,
  #catalog-tools #sort,
  #catalog-tools #compact-view { min-height: 44px; height: 44px; }
  #catalog-tools #search { font-size: 16px; }
  #catalog-tools #compact-view {grid-column:2;grid-row:2;width:44px;padding:0;font-size:0;box-shadow:1px 2px var(--ink);}
  #catalog-tools #compact-view::after {content:"☷";font-size:22px;font-family:Arial,sans-serif;}
  #catalog-tools #compact-view[aria-pressed=true]::after {content:"▦";}
  #catalog-tools #compact-view .neo-glyph {display:none;}
  #pagination-top {display:flex;justify-content:center;gap:7px;margin:12px 0 14px;flex-wrap:wrap;}
  .pagination button {min-width:44px;min-height:44px;}
  #grid {margin-top:12px;}
}

/* A broad storefront canvas with consistent gutters, rather than a narrow island. */
@media(min-width:1101px) {
  body#top .container { width: calc(100% - 64px); max-width: 1800px; padding-inline: 0; }
  body#top .header .nav { gap: 24px; }
  body#top .hero-studio { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(28px,4vw,72px); padding: clamp(28px,3vw,48px); margin-top: 24px; background: #eaf2ff; }
  body#top .hero-studio .hero-copy { align-self: center; }
  body#top .hero-studio .hero-copy h1 { font-size: clamp(44px,3.7vw,66px); margin: 24px 0; }
  body#top .hero-studio .intro { max-width: 54ch; font-size: 16px; line-height: 1.75; }
  body#top .hero-studio .hero-art { width: 100%; max-width: 650px; justify-self: end; }
  body#top .hero-studio .hero-buttons { max-width: 540px; }
  body#top .hero-journey { max-width: 600px; gap: 24px; }
  body#top #products { padding: 24px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); }
  body#top #products .section-top { margin-top: 0; }
  body#top #catalog-tools { background: #f2f5ff; padding: 14px; border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; border-radius: 12px; gap: 10px 24px; }
  body#top #grid:not(.is-list) { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
  body#top #grid .card { min-width: 0; }
  body#top .shop-hours { margin-top: 18px; margin-bottom: 20px; }
  body#top .hero-studio + .studio-strip { margin-bottom: 32px; }
  body#top .how, body#top .support { margin-top: 40px; }
}
@media(min-width:1800px) {
  body#top .container { width: calc(100% - 96px); }
  body#top .hero-studio { padding-block: 38px; }
  body#top .hero-studio .hero-art { max-width: 620px; }
}

/* More tools per screen, with usable text and targets at every breakpoint. */
body#top #grid:not(.is-list) { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
body#top #grid:not(.is-list) .card { border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
body#top #grid:not(.is-list) .product-art { height: 112px; border-bottom-width: 2px; }
body#top #grid:not(.is-list) .app-icon { width: 66px; height: 66px; font-size: 36px; border-width: 2px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
body#top #grid:not(.is-list) .app-icon:has(.product-logo) { padding: 8px; }
body#top #grid:not(.is-list) .card-body { padding: 12px; gap: 8px; }
body#top #grid:not(.is-list) h3 { font-size: 17px; line-height: 1.35; }
body#top #grid:not(.is-list) .card p:not(.card-price) { font-size: 12px; line-height: 1.5; min-height: 36px; -webkit-line-clamp: 2; margin: 0; }
body#top #grid:not(.is-list) .card-price { font-size: 13px; min-height: 0; margin: 3px 0 5px; }
body#top #grid:not(.is-list) .product-link { min-height: 40px; padding: 8px 10px; font-size: 12px; border-width: 2px; border-radius: 8px; }
body#top #grid:not(.is-list) .cover-tag, body#top #grid:not(.is-list) .cover-category { font-size: 7px; padding: 3px 5px; }
@media(min-width:1500px) { body#top #grid:not(.is-list) { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; } }
@media(min-width:1101px) and (max-width:1499px) { body#top #grid:not(.is-list) { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(min-width:701px) and (max-width:1000px) { body#top #grid:not(.is-list) { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) {
  body#top #grid:not(.is-list) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body#top #grid:not(.is-list) .product-art { height: 94px; }
  body#top #grid:not(.is-list) .app-icon { width: 56px; height: 56px; }
  body#top #grid:not(.is-list) .card-body { padding: 10px; gap: 7px; }
  body#top #grid:not(.is-list) h3 { font-size: 15px; }
  body#top #grid:not(.is-list) .card p:not(.card-price) { font-size: 11px; min-height: 33px; }
  body#top #grid:not(.is-list) .product-link { min-height: 44px; padding: 7px; font-size: 11px; }
}

/* Shared GRAPERU visual language. Page layouts own their grids and business state. */
:root { --ui-canvas: 1680px; --ui-radius: 10px; --ui-border: 2px solid #17213a; --ui-shadow: 3px 3px 0 #17213a; --ui-shadow-small: 2px 2px 0 #17213a; }
.auth-panel #auth-status:not(:empty), .ui-feedback:not(:empty) { border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); }
html { scrollbar-gutter: stable; }
.header .links a[aria-current="page"], .header .links a.active { background: #ffe56b; color: #17213a; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #356bc4; outline-offset: 3px; }
.commerce-header { padding: 16px 20px; border: var(--ui-border); border-radius: 14px; background: #fff; box-shadow: var(--ui-shadow); }
.commerce-header .commerce-brand { gap: 10px; text-decoration: none; }
.commerce-header .commerce-brand img { width: 40px; height: 40px; border-width: 2px; border-radius: 9px; box-shadow: 2px 2px 0 #17213a; }
.commerce-header .brand-wordmark { display: inline-flex; align-items: center; gap: 5px; font-size: 22px; }
.commerce-header .commerce-nav { align-items: center; gap: 6px; margin: 0; }
.commerce-header .commerce-nav > a { min-height: 42px; padding: 8px 12px; border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); font-size: 12px; background: #fff; }
.commerce-header .commerce-nav > a:hover { background: #d8eaff; border-color: #17213a; box-shadow: 1px 1px 0 #17213a; transform: translate(1px,1px); }
.commerce-header .commerce-nav > a[aria-current="page"] { background: #ffe56b; color: #17213a; border: var(--ui-border); box-shadow: 2px 2px 0 #17213a; }
.commerce-header .commerce-nav > .customer-notice-bell { width: 42px; min-width: 42px; padding: 0; border: var(--ui-border); background: #fff; flex-shrink: 0; }
.customer-notice-bell svg { width: 21px !important; height: 21px !important; flex-shrink: 0; }
:is(.commerce-panel,.auth-panel,.admin-panel) { border-width: 2px; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
:is(.commerce-wrap,.auth-panel,.admin-wrap) :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]) { border-radius: 8px; }
:is(.commerce-wrap,.auth-panel,.admin-wrap) button { border-width: 2px; border-radius: 8px; }
.ui-admin-nav { gap: 7px; }
.ui-admin-nav a { border-radius: 8px; font-size: 12px; }
nav.order-pager { gap: 10px; }
nav.order-pager button { border-radius: 8px; min-height: 40px; padding: 8px 14px; font-size: 12px; }
.shop-footer .footer-invite { border-width: 2px; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.ui-utility-footer { background: #d8eaff; border: var(--ui-border); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); padding: 20px; margin-top: 32px; }
.ui-utility-footer .social-link { min-height: 44px; font-size: 12px; padding: 9px 12px; border-width: 2px; border-radius: 8px; box-shadow: 2px 2px 0 #17213a; }
/* Structural surfaces use flat color and hard ink edges; dividers remain quiet. */
.shop-hours { border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
.operations-page .ops-summary button, .operations-page .ops-card, .delivery-email-status,
.admin-plan-editor, .supplier-price-card, .supplier-table-panel,
.supplier-settings #supplier-mapping-form, .supplier-settings details,
.admin-plan-comparison > section, .account-page .library-dates {
  border: var(--ui-border); box-shadow: var(--ui-shadow-small); border-radius: 8px;
}
.admin-panel #plans-list .admin-plan { border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
html[data-admin-protected] :is(.supplier-price-card,.supplier-table-panel),
html[data-admin-protected] .supplier-settings #supplier-mapping-form,
html[data-admin-protected] .supplier-settings details { border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
.operations-page .ops-card.is-alert { border-left: 5px solid #b42332; }
.operations-page .ops-card.is-paused { border-left: 5px solid #a86d00; }
body.checkout-page .checkout-line, body.checkout-page #checkout-form > .commerce-check,
body.checkout-page .checkout-note, body.checkout-page .checkout-policies details,
body.checkout-page .checkout-line details, body[data-payment-view] .payment-transfer-details,
body[data-payment-view] .payment-qr-wrap, body[data-payment-view] .payment-progress {
  border: var(--ui-border); box-shadow: var(--ui-shadow-small); border-radius: 8px;
}
body.checkout-page .commerce-wrap :is(input,textarea):not([type="checkbox"]):not([type="radio"]),
.operations-page :is(input,select,textarea) { border: var(--ui-border); box-shadow: 2px 2px 0 #17213a; }
.customer-orders-page .order-item { border: var(--ui-border); }
.customer-orders-page .customer-order-expand > summary { border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .commerce-header .commerce-nav > a:active { transform: translate(2px,2px); box-shadow: none; }
}
@media(min-width:1101px) {
  html:not([data-admin-protected]) .commerce-wrap:not(.account-page) { width: calc(100% - 64px); max-width: var(--ui-canvas); padding-inline: 0; }
  body[data-payment-view] .commerce-wrap, body.checkout-page .commerce-wrap { max-width: 1400px; }
  .header > .container.nav, .shop-footer > .container { width: calc(100% - 64px); max-width: 1800px; padding-inline: 0; }
  .guide-page main.container, main.container.detail-page, html[data-admin-protected="page"] .commerce-wrap { width: calc(100% - 64px); max-width: var(--ui-canvas); padding-inline: 0; }
  :is(.guide-page,.support-page,.product-page) :is(.header > .container.nav,.shop-footer > .container) { max-width: var(--ui-canvas); }
}
@media(max-width:700px) {
  .commerce-header { gap: 12px; padding: 12px; }
  .commerce-header .commerce-brand img { width: 34px; height: 34px; }
  .commerce-header .brand-wordmark { font-size: 16px; }
  .commerce-header .commerce-nav { gap: 5px; }
  .commerce-header .commerce-nav > a { min-height: 40px; padding: 7px 9px; font-size: 11px; }
  nav.order-pager button { min-height: 44px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

/* Checkbox labels own the touch target; focus rings must not cover their text. */
:is(.commerce-wrap,.admin-wrap,.auth-panel) form label:has(> input[type=checkbox]) {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px;
  line-height: 1.6; padding-block: 10px; cursor: pointer; overflow-wrap: anywhere;
}
:is(.commerce-wrap,.admin-wrap,.auth-panel) form label > :is(input[type=checkbox],input[type=radio]) {
  box-sizing: border-box; flex: 0 0 22px; width: 22px; height: 22px;
  min-width: 22px; min-height: 22px; max-height: 22px; margin: 1px 0 0;
  padding: 0; background-position: center; background-size: 16px 16px; background-repeat: no-repeat;
}
:is(.commerce-wrap,.admin-wrap,.auth-panel) form label > :is(input[type=checkbox],input[type=radio]) ~ span { min-width: 0; flex: 1; }
:is(.commerce-wrap,.admin-wrap,.auth-panel) form label > input[type=checkbox]:checked,
.checkout-page .checkout-partner-consent > input[type=checkbox]:checked {
  background-color: #ffe56b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%2317213a' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
}
.ui-admin-page .featured-editor .featured-enabled { margin: 0; padding: 12px 14px; }
.checkout-page .checkout-partner-consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px; margin-block: 14px; background: #eee7ff; border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
.checkout-page .checkout-partner-consent > input[type=checkbox] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; min-width: 22px; margin: 1px 0 0; }
.checkout-page .checkout-partner-consent > span { flex: 1; min-width: 0; }
.checkout-page .checkout-partner-pay { min-height: 46px; margin-top: 12px; padding: 12px 18px; border-radius: 8px; white-space: normal; }
.checkout-page[data-checkout-mode=partner] .checkout-layout { grid-template-columns: minmax(0,1fr); max-width: 1040px; margin-inline: auto; }
.checkout-page[data-checkout-mode=partner] .checkout-summary { position: static; }

/* Customer commerce surfaces follow the same flat, ink-edged NEO vocabulary. */
body.checkout-page :is(.checkout-line,.checkout-note,.checkout-policies details,.page-journey,.shop-hours,.commerce-notice),
body.checkout-page .checkout-line details,
body.checkout-page #checkout-form > .commerce-check {
  border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small);
}
body.checkout-page :is(.checkout-note,.checkout-policies details,.page-journey) { background: #edf3ff; }
body.checkout-page .commerce-wrap :is(input:not([type=checkbox]):not([type=radio]),textarea) { border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); }
body.checkout-page #checkout-form > .commerce-check { background: #eee7ff; gap: 12px; }
body.checkout-page :is(#apply-coupon,#place-order,.commerce-back-link) { border: var(--ui-border); box-shadow: var(--ui-shadow-small); min-height: 44px; }
body.checkout-page :is(.checkout-note,.checkout-line details,.checkout-policies details) summary { min-height: 44px; display: flex; align-items: center; gap: 6px; }
.account-page .commerce-header .commerce-nav > a { border: var(--ui-border); background: #fff; box-shadow: var(--ui-shadow-small); }
.account-page .commerce-header .commerce-nav > a[aria-current=page] { background: #ffe56b; }
body.customer-orders-page :is(.order-card,.customer-order-expand > summary),
body[data-payment-view] :is(.order-card,.payment-transfer-details,.payment-qr-wrap,.payment-progress),
.auth-panel { border: var(--ui-border); border-radius: 10px; box-shadow: var(--ui-shadow); }
body:not(.ui-admin-page) :is(.commerce-wrap,.auth-panel) :is(button.primary,.btn.primary) {
  background: #ffe56b; color: #17213a; border: var(--ui-border); box-shadow: var(--ui-shadow-small);
}
body:not(.ui-admin-page) :is(.commerce-wrap,.auth-panel) :is(button.primary,.btn.primary):disabled { background: #e5e9f2; box-shadow: none; }
:is(.commerce-wrap,.auth-panel) .select-options { border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow); }
@media(max-width:600px) {
  :is(.commerce-wrap,.auth-panel) :is(.btn,button,summary) { min-height: 44px; }
  body.checkout-page :is(.checkout-note,.checkout-line details,.checkout-policies details) summary { flex-wrap: wrap; }
}

/* Order terms, history and purchase policies share the commerce NEO frame. */
body[data-order-mode=customer] :is(.order-sub-details,.payment-order-details,.order-item) {
  border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); background: #fff;
}
body[data-order-mode=customer] :is(.order-sub-details,.payment-order-details) { padding: 0; margin-block: 14px; overflow: visible; }
body[data-order-mode=customer] :is(.order-sub-details,.payment-order-details) > summary {
  padding: 12px 14px; min-height: 46px; background: #eee7ff; color: #17213a;
  font-size: 13px; font-weight: 800; line-height: 1.6; border: 0; border-radius: 6px;
  box-shadow: none; cursor: pointer; overflow-wrap: anywhere;
}
body[data-order-mode=customer] :is(.order-sub-details,.payment-order-details)[open] > summary { margin-bottom: 12px; border-bottom: var(--ui-border); border-radius: 6px 6px 0 0; }
body[data-order-mode=customer] .order-sub-details > p { margin: 12px 14px; color: #425579; line-height: 1.7; overflow-wrap: anywhere; }
body[data-order-mode=customer] .order-sub-details > ol { margin: 14px; padding-left: 24px; font-size: 13px; line-height: 1.8; }
body[data-order-mode=customer] .order-sub-details > ol li { padding-block: 5px; }
body[data-order-mode=customer] .order-sub-details > button { margin: 0 14px 14px; }

.partner-lead { max-width: 760px; margin-bottom: 24px; }
.partner-lead h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.12; margin: 12px 0; }
.partner-eyebrow { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.partner-history-card,.partner-delivery { min-width: 0; padding: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.partner-order-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.partner-order-columns + section { margin-top: 24px; }
.partner-qr { display: block; width: 100%; max-width: 340px; height: auto; margin: 20px auto; background: #fff; }
.partner-bank-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.partner-bank-info dt { font-weight: 800; }
.partner-bank-info dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.partner-delivery { margin: 16px 0; }
.partner-delivery pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 15px; margin-bottom: 0; }
.partner-notice { padding: 16px; border: 2px solid var(--ink); background: var(--butter, #fff3b0); border-radius: 10px; }
.partner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.partner-actions button,.partner-actions a { max-width: 100%; min-height: 44px; }
.partner-page [role="status"] { overflow-wrap: anywhere; }
.partner-page .partner-lead { max-width: none; padding: 20px; border: var(--ui-border); border-radius: 10px; background: #fff4bc; box-shadow: var(--ui-shadow); }
.partner-page .partner-lead h1 { font-size: clamp(26px,3vw,36px); line-height: 1.3; }
.partner-page :is(.commerce-panel,.partner-notice) { border: var(--ui-border); border-radius: 10px; box-shadow: var(--ui-shadow); padding: 20px; min-width: 0; }
.partner-page #partner-order-state { display: inline-block; padding: 7px 12px; border: var(--ui-border); border-radius: 6px; background: #dceaff; font-size: 13px; }
.partner-page #partner-order-code { font-weight: 800; overflow-wrap: anywhere; }
.partner-page #partner-order-tools[data-payment-status=paid] #partner-order-state { background: #dcfce7; }
.partner-page #partner-order-tools[data-payment-status=refunded] #partner-order-state { background: #eee7ff; }
.partner-page #partner-order-tools:is([data-order-status=expired],[data-order-status=cancelled],[data-order-status=needs_review]) #partner-order-state { background: #fff0d6; }
.partner-page #partner-order-error:not(:empty) { padding: 12px; border: 2px solid #9b2634; border-radius: 8px; background: #ffe8eb; color: #9b2634; }
.partner-page .partner-bank-info { margin-block: 18px; padding: 14px; border: var(--ui-border); border-radius: 8px; background: #f1f5ff; }
.partner-page :is(#partner-order-metadata,#partner-contact) { margin-top: 18px; border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); padding: 12px; }
.partner-page :is(#partner-order-metadata,#partner-contact) summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; }
.partner-page .partner-qr { padding: 12px; border: var(--ui-border); border-radius: 10px; box-shadow: var(--ui-shadow-small); }
.partner-page :is(#partner-order-refresh,#partner-order-cancel) { margin: 8px 8px 0 0; min-height: 44px; }
.partner-page .partner-notice button { margin: 8px 8px 0 0; min-height: 44px; }
.partner-page #partner-price-confirm { background: #ffe56b; color: var(--ink); }
.partner-page .partner-delivery h3 { font-size: 16px; margin-top: 0; }
.partner-page #partner-delivered-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 16px; }
.partner-page .partner-delivery { margin: 0; }
#partner-history { padding: 20px; border: var(--ui-border); border-radius: 10px; background: #fff; box-shadow: var(--ui-shadow); }
#partner-history > div:not(.order-pager) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 16px; }
#partner-history .partner-history-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 16px; border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); }
#partner-history .partner-history-card h3 { font-size: 16px; margin: 0; }
#partner-history .partner-history-card p { margin: 0; font-size: 13px; line-height: 1.6; }
#partner-history .partner-history-card .btn { margin-top: auto; min-height: 44px; }
#partner-history .order-pager { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
#partner-history > button { min-height: 44px; margin-block: 8px 16px; }
@media(max-width:700px) {
 .partner-page .commerce-wrap { padding: 14px 12px 36px; }
 .partner-page :is(.partner-lead,.commerce-panel,.partner-notice),#partner-history { padding: 14px; }
 .partner-page .partner-bank-info { grid-template-columns: 1fr; gap: 5px; }
 .partner-page .partner-order-columns[data-payment-visible=true] { grid-template-columns: 1fr; }
 .partner-page .partner-actions { display: grid; grid-template-columns: 1fr; }
 .partner-page .partner-actions :is(a,button) { justify-content: center; text-align: center; }
}
@media(min-width: 601px) {
  .partner-history-card,.partner-delivery { padding: 22px; }
  .partner-order-columns[data-payment-visible="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-bank-info { grid-template-columns: minmax(90px, .7fr) minmax(0, 1fr); gap: 10px; }
  .partner-bank-info dd { margin-bottom: 0; }
}

.studio-strip-group > a.featured-product { display:flex;flex-direction:column;flex:0 0 248px;width:248px;overflow:hidden;background:#fff;border:2px solid #17213a;border-radius:10px;box-shadow:4px 4px 0 #17213a;font-size:14px;font-weight:800;white-space:normal;color:#17213a;text-decoration:none; }
.featured-art { position:relative;display:grid;place-items:center;width:100%;height:115px;border-bottom:2px solid #17213a;background-image:radial-gradient(#17213a30 1px,transparent 1px);background-size:16px 16px; }
.featured-art > small { position:absolute;right:10px;top:10px;background:#fff;border:2px solid #17213a;padding:3px 5px;font-size:8px;transform:rotate(4deg); }
.featured-logo { display:grid;place-items:center;width:70px;height:70px;background:#fff;border:2px solid #17213a;border-radius:10px;box-shadow:3px 3px 0 #17213a;transform:rotate(-12deg);font-size:36px; }
.featured-product img { width:54px;height:54px;object-fit:contain; }
.featured-art.product-art { height:140px;min-height:140px;overflow:hidden; }
.featured-art .featured-logo.app-icon { width:70px;height:70px;padding:7px;color:#17213a;background:#fff; }
.featured-art > small { z-index:2; }
.featured-art .cover-lines { left:12px;top:auto;bottom:32px;width:14px; }
.featured-art .cover-shape { right:16px;top:48px; }
.featured-art .featured-logo img { display:block;width:100%;height:100%;border-radius:5px; }
.featured-body { display:flex;flex-direction:column;gap:9px;padding:13px;width:100%;box-sizing:border-box; }
.featured-body > strong:first-child { font-size:18px; }
.featured-description { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:38px;font-size:12px;font-weight:400;line-height:1.55;color:#536589; }
.featured-price { font-size:14px;margin:3px 0; }
.featured-action { display:block;background:#ffe56b;border:2px solid #17213a;border-radius:7px;padding:9px 10px;box-shadow:2px 2px 0 #17213a;font-size:12px;min-height:40px; }
.studio-strip-group { gap:20px; padding-block:18px; }
.studio-strip:has(.featured-product) .studio-strip-track { animation-duration:55s; }
.studio-strip:has(:focus-visible) .studio-strip-track, .studio-strip.strip-dragging .studio-strip-track { animation-play-state:paused; }
.studio-strip-viewport { touch-action:pan-y pinch-zoom; cursor:grab; }
.studio-strip.strip-dragging .studio-strip-viewport { cursor:grabbing; user-select:none; }
.studio-strip-viewport img { -webkit-user-drag:none; }
.studio-strip.strip-native .studio-strip-viewport{overflow-x:auto;overflow-y:hidden;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain;scrollbar-width:none;cursor:auto;-webkit-overflow-scrolling:touch}
.studio-strip.strip-native .studio-strip-viewport::-webkit-scrollbar{display:none}
.studio-strip.strip-native .studio-strip-track{animation:none!important;transform:none!important;will-change:auto!important}
/* On phones only the carousel moves: avoid dozens of nested animated layers. */
@media(max-width:700px){
  .studio-strip:has(.featured-product):not(.strip-paused) .studio-strip-track{will-change:transform}
  .studio-strip .featured-art .app-icon,
  .studio-strip .featured-art .product-logo,
  .studio-strip .featured-art .cover-shape,
  .studio-strip .featured-art::before,
  .studio-strip .featured-art::after{animation:none!important}
  .studio-strip .featured-product{contain:paint}
}
.featured-editor { margin-top:20px; }
.featured-editor form { display:grid;gap:12px; }
.featured-add { display:flex;gap:10px;align-items:center; }
.featured-add select { flex:1;min-width:0; }
.featured-editor ol { padding:0;list-style:none;display:grid;gap:8px; }
.featured-editor li { display:flex;gap:8px;align-items:center;padding:10px;border:2px solid #17213a;border-radius:8px;background:#edf3ff; }
.featured-editor li strong { flex:1; }
.featured-editor li button { min-height:36px;padding:6px 10px; }
@media(max-width:600px){.studio-strip-group > a.featured-product{width:210px;flex-basis:210px}.featured-art{height:100px}.featured-add{flex-wrap:wrap}.featured-editor li{gap:5px}.featured-editor li button{padding:6px 8px}}

/* Compact NEO workspace: real product shortcuts, no additional motion or API reads. */
body#top .hero-studio{gap:clamp(24px,3vw,48px);padding:clamp(22px,2.6vw,42px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);background-color:#eaf2ff;background-image:radial-gradient(#c4d6f1 .8px,transparent .8px);background-size:18px 18px}
body#top .hero-studio .hero-copy h1{font-size:clamp(36px,3.6vw,64px);margin:22px 0 18px}
body#top .hero-studio .intro{max-width:53ch;margin-bottom:20px;line-height:1.7}
body#top .hero-studio .hero-art{max-width:740px;width:100%;transform:rotate(1deg)}
.hero-picks{margin:0 0 22px;max-width:620px}
.hero-picks-label{display:block;font-size:9px;font-weight:800;letter-spacing:1.3px;color:#526180;margin-bottom:10px}
.hero-picks-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hero-picks-links a{display:flex;align-items:center;gap:7px;padding:10px 8px;border:2px solid var(--ink);border-radius:7px;background:white;box-shadow:2px 3px 0 var(--ink);color:var(--ink);font-size:11px;font-weight:800;text-decoration:none;min-width:0}
.hero-picks-links a:nth-child(2){background:#e9e1ff}.hero-picks-links a:nth-child(3){background:#fff5bb}.hero-picks-links a:nth-child(4){background:#dff1e3}
.hero-picks-links img{object-fit:contain;flex:none;width:24px;height:24px}
.hero-picks-links a>span:last-child{margin-left:auto;font-size:13px}
.hero-picks-links a:hover{translate:0 -2px}.hero-picks-links a:focus-visible{outline:3px solid #3468bc;outline-offset:4px}
body#top .hero-studio .hero-buttons{max-width:620px}
body#top .hero-studio .hero-notes{margin-top:16px}
body#top .hero-journey{max-width:none;gap:10px;margin-top:20px;padding-top:16px}
.hero-studio .hero-journey li{flex:1;padding:10px;background:#fff;border:2px solid var(--ink);border-radius:7px;gap:8px}
.hero-studio .hero-journey li:last-child{background:#fff2a4}
.hero-journey small{display:block;font-size:9px;font-weight:500;color:#526180;margin-top:2px}
@media(min-width:1800px){body#top .hero-studio{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)}body#top .hero-studio .hero-copy h1{font-size:68px}}
@media(max-width:1100px) and (min-width:761px){.hero-picks-links{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-studio .hero-journey li{padding:7px;gap:5px}.hero-journey small{font-size:8px}}
@media(max-width:760px){body#top .hero-studio{grid-template-columns:minmax(0,1fr);gap:24px;padding:22px}body#top .hero-studio .hero-copy h1{font-size:clamp(30px,7.8vw,48px);margin:20px 0 16px}.hero-picks-links{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-picks{margin-bottom:18px}.hero-picks-links a{padding:8px 10px}.hero-studio .hero-journey li{padding:8px 5px;gap:5px}.hero-journey small{font-size:8px}body#top .hero-studio .hero-art{max-width:480px;justify-self:center}.hero-studio .hero-notes{flex-wrap:wrap}}
@media(max-width:760px){.hero-studio .hero-journey li{flex-direction:column;align-items:center;text-align:center;gap:5px;font-size:10px}.hero-journey small{display:none}}
@media(max-width:380px){body#top .hero-studio{padding:16px}.hero-studio .hero-journey li{font-size:9px;padding:8px 4px}.hero-picks-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){body#top .hero-studio .hero-art{transform:none}.hero-picks-links a:hover{translate:none}}

/* Shared customer mobile ergonomics. Desktop and admin layouts remain separate. */
@media (max-width: 700px) {
  body:not(.ui-admin-page) { background-image: none; }
  .help-page .help-hero { padding: 20px; gap: 16px; margin-bottom: 24px; box-shadow: 3px 4px 0 var(--ink); }
  .help-page .help-hero .help-art,
  .help-page .help-hero-notes { display: none; }
  .help-page .help-hero .pill,
  .help-page .help-step { transform: none; rotate: none; }
  .help-page .help-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .help-page .help-hero-actions .btn { width: 100%; min-height: 48px; box-sizing: border-box; justify-content: space-between; }
  body#top .hero-studio { background-image: none; background-color: #edf3ff; }
  body#top .hero-studio .hero-edition > span:last-child,
  body#top .hero-studio .hero-journey,
  body#top .hero-studio .hero-art,
  body#top .hero-studio .hero-notes { display: none; }
  body#top #products .section-top { gap: 10px; margin-bottom: 16px; }
  body#top #products .section-top h2 { font-size: 27px; line-height: 1.4; margin-block: 0; }
  body#top #products-title .neo-glyph { display: none; }
  body#top #products .section-top p { margin-block: 0; font-size: 13px; line-height: 1.7; }
  body#top #grid .product-art,
  body#top .studio-strip .featured-art { background-image: none !important; }
  body#top #grid :is(.cover-lines, .cover-shape, .cover-tag),
  body#top #grid .product-art::before,
  body#top #grid .product-art::after { display: none; }
  body#top #grid .app-icon,
  body#top .studio-strip .featured-logo { transform: none; rotate: none; animation: none; }
  body#top #grid .card { box-shadow: 2px 3px 0 var(--ink); }
  body#top .hero-studio .pill,
  body#top .hero-studio .hero-line mark,
  body#top .hero-studio .hero-line mark::before,
  body#top #grid .cover-category { transform: none; rotate: none; }
  body#top #grid:not(.is-list) .card-title { min-height: 46px; align-content: flex-start; align-items: flex-start; }
  body#top #grid:not(.is-list) .card p:not(.card-price) { height: 39px; min-height: 39px; }
  body#top #grid:not(.is-list) .card-price { min-height: 42px; }
  body#top #grid:not(.is-list) .product-link { margin-top: auto; }
  :is(body#top, .detail-page) .shop-hours { flex-direction: row; align-items: center; gap: 8px; padding: 10px; margin: 12px 0; border-radius: 12px; }
  :is(body#top, .detail-page) .shop-hours details { min-width: 0; flex: 1; border: 0; padding: 0; background: transparent; box-shadow: none; }
  :is(body#top, .detail-page) .shop-hours summary { min-height: 44px; align-content: center; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.6; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  body#top .shop-hours details[open] { align-self: flex-start; }
  body#top .shop-hours-badge { font-size: 10px; padding: 5px 7px; }
  body#top .hero-studio {
    margin: 16px 0 20px;
    padding: 18px;
    gap: 18px;
    border-width: 2px;
    box-shadow: 3px 4px 0 var(--ink);
    border-radius: 16px;
  }
  body#top .hero-studio .hero-copy { display: flex; flex-direction: column; min-width: 0; }
  body#top .hero-studio .hero-edition { order: 0; gap: 10px; }
  body#top .hero-studio .hero-edition > span:last-child { font-size: 8px; letter-spacing: .5px; }
  body#top .hero-studio .hero-copy h1 { order: 1; font-size: clamp(27px, 7.8vw, 43px); margin: 20px 0 16px; line-height: 1.3; }
  body#top .hero-studio .intro { order: 2; font-size: 14px; line-height: 1.75; margin: 0 0 18px; }
  body#top .hero-studio .hero-buttons { order: 3; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 10px; margin-bottom: 22px; }
  body#top .hero-studio .hero-copy .hero-buttons .btn { justify-content: space-between; width: 100%; min-height: 48px; font-size: 14px; padding: 12px 14px; box-sizing: border-box; }
  body#top .hero-studio .hero-copy .hero-buttons .primary { background: #ffe56b; color: var(--ink); }
  body#top .hero-studio .hero-notes { order: 4; margin: 14px 0 18px; font-size: 11px; gap: 8px 12px; }
  body#top .hero-studio .hero-picks { order: 5; margin: 0; }
  body#top .hero-studio .hero-picks-links a { min-height: 48px; padding: 8px 10px; box-sizing: border-box; font-size: 12px; }
  body#top .hero-studio .hero-journey { order: 6; margin-top: 18px; padding-top: 14px; gap: 8px; }
  body#top .hero-studio .hero-art { max-width: 360px; transform: none; box-shadow: 2px 3px 0 var(--ink); }
  body#top .hero-studio + .studio-strip { margin-bottom: 28px; }

  /* Keep the search field usable even on a 320px screen. */
  body#top #catalog-tools { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding-block: 8px; }
  body#top #catalog-tools .filters { grid-row: 1; padding: 2px 3px 7px; }
  body#top #catalog-tools .search-row { display: contents; }
  body#top #catalog-tools .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  body#top #catalog-tools .custom-select { grid-column: 1; grid-row: 3; }
  body#top #catalog-tools #sort { grid-column: 1; grid-row: 3; }
  body#top #catalog-tools #compact-view { grid-column: 2; grid-row: 3; }
  body#top #catalog-tools .result-count { grid-row: 4; font-size: 12px; line-height: 1.5; }
  body#top #catalog-tools .select-trigger { font-size: 13px; }
  body#top #pagination-top { margin-block: 12px; }
  body#top #grid:not(.is-list) { gap: 14px 12px; }
  body#top #grid:not(.is-list) .card { border-radius: 12px; overflow: hidden; }
  body#top #grid:not(.is-list) .product-art { height: 104px; }
  body#top #grid:not(.is-list) .card-body { padding: 12px 10px; gap: 9px; }
  body#top #grid:not(.is-list) h3 { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
  body#top #grid:not(.is-list) .card p:not(.card-price) { font-size: 12px; line-height: 1.6; min-height: 38px; }
  body#top #grid:not(.is-list) .card-price { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  body#top #grid:not(.is-list) .product-link { min-height: 46px; font-size: 12px; }
  body#top #grid.is-list .card { border-radius: 12px; }
  body#top #grid.is-list .card p { font-size: 12px; line-height: 1.65; }
  body#top #grid.is-list .card .product-link { min-width: 44px; min-height: 44px; }
  .detail-page .detail-layout { gap: 16px; }
  .detail-page .detail-visual .product-preview { min-height: 200px; max-height: 250px; margin-bottom: 12px; }
  .detail-page .detail-panel { border-radius: 14px; padding: 18px 16px; }
  .detail-page .detail-panel h1 { font-size: 28px; line-height: 1.35; }
  .detail-page #plan-options { gap: 10px; }
  .detail-page #add-to-cart { width: 100%; min-height: 52px; }
}
@media(max-width:700px){
  html{scroll-padding-top:calc(var(--header-height,104px) + 12px)}
  body{padding-bottom:env(safe-area-inset-bottom,0px)}
  :is(.commerce-wrap,.auth-panel,.detail-page,dialog) :is(input,textarea,select):not([type=checkbox]):not([type=radio]){font-size:16px;scroll-margin-top:calc(var(--header-height,104px) + 16px)}
  :is(.commerce-wrap,.auth-panel,.detail-page,dialog) :is(button,.btn){min-height:44px;touch-action:manipulation}
  .commerce-wrap .btn-copy-chip{min-height:44px;white-space:normal}
  .commerce-header .commerce-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}
  .commerce-header .commerce-nav>a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:8px;font-size:13px;line-height:1.4;white-space:normal}
  .account-page .commerce-header .commerce-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .account-page .commerce-header .commerce-nav>.customer-notice-bell{position:absolute;top:10px;right:12px;width:44px;height:44px;min-height:44px;padding:8px}
  .account-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .account-tabs>a,.account-tabs>button{min-height:44px}
  .customer-orders-page .commerce-header{margin-bottom:8px;padding:10px;gap:8px}
  .auth-panel .auth-forgot,.auth-panel #toggle-password{min-height:44px}
  .auth-panel .auth-switch a{display:inline-flex;align-items:center;min-height:44px;padding-inline:5px}
  #cart-dialog[open]{display:flex;flex-direction:column;width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:16px;overflow:hidden;gap:10px}
  #cart-dialog .dialog-head{flex:none;margin:0;gap:8px}
  #cart-dialog .dialog-head h2{font-size:19px;line-height:1.4;margin:0}
  #cart-dialog .close{min-width:44px;min-height:44px;flex:none}
  #cart-items{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;padding:0 4px 4px 0}
  #cart-dialog .cart-note{display:none}
  #cart-dialog #cart-summary{flex:none;padding:10px;margin:0;max-height:30dvh;overflow-y:auto}
  #cart-summary .cart-summary-top{font-size:13px;gap:8px}
  #cart-summary p{font-size:12px;line-height:1.5;margin:4px 0 0}
  #cart-dialog .cart-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none;padding-bottom:env(safe-area-inset-bottom,0px);background:var(--surface,#fff)}
  #cart-dialog .cart-actions>#checkout-link{grid-column:1/-1}
  #cart-dialog .cart-actions #checkout-link{margin:0;min-height:48px;background:#ffe56b;color:var(--ink);border:2px solid var(--ink);border-radius:7px;font-size:14px}
  #cart-dialog .cart-actions #continue{margin:0;padding:8px;min-height:44px;font-size:13px}
  #cart-dialog .cart-actions .order-history-link{display:flex;align-items:center;justify-content:center;margin:0;padding:8px;min-height:44px;font-size:13px}
  #cart-dialog .cart-actions>*{margin:0;min-height:44px;padding:8px;font-size:13px;white-space:normal;line-height:1.5}
  #cart-dialog .order-history-link{display:flex;align-items:center;justify-content:center;font-size:12px}
  #cart-dialog .cart-item{overflow-wrap:anywhere}
  #cart-dialog .qty button{min-width:44px;min-height:44px}
  #cart-dialog #cart-items .cart-stepper button,#cart-dialog #cart-items .qty .remove{min-width:44px;min-height:44px;width:44px;height:44px}
  #cart-dialog #cart-items .cart-row{border:2px solid var(--ink);border-radius:8px;box-shadow:2px 2px 0 var(--ink)}
  #cart-dialog #cart-summary{border:2px solid var(--ink);border-radius:7px;box-shadow:2px 2px 0 var(--ink)}
  .detail-page #add-to-cart{min-height:48px;font-size:15px}
  .detail-page .plan-option{min-height:64px;scroll-margin-top:calc(var(--header-height,104px) + 12px)}
  :is(.recent-order,.library-card,.notification-card) :is(strong,p,a){overflow-wrap:anywhere}
}
@media(max-width:700px) and (max-height:500px){
  #cart-dialog[open]{max-height:calc(100dvh - 12px);padding:10px;gap:6px}
  #cart-dialog .cart-note{display:none}
  #cart-dialog .cart-actions{grid-template-columns:1fr 1fr 1fr;gap:6px}
  #cart-dialog .cart-actions>#checkout-link{grid-column:auto}
}
