@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;
}

.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;}}

.operations-wrap{max-width:1480px;margin:auto;padding:20px 28px 48px;color:#1b2540}.ops-heading,.ops-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.ops-heading h1{font-size:clamp(25px,3vw,38px);margin:4px 0}.ops-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:800;color:#45648e}.ops-heading p,.ops-section-heading p{margin:6px 0;color:#576d92}.ops-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:22px 0 18px}.ops-summary button{text-align:left;border:1px solid #bfd0eb;background:#fff;border-radius:14px;padding:14px;box-shadow:0 3px 0 #d8e2f4;min-width:0}.ops-summary strong{display:block;font-size:28px;color:#2459a3}.ops-summary span{font-size:12px;line-height:1.4;display:block}.ops-tabs{display:flex;gap:7px;overflow:auto;padding:2px 0 10px;margin-bottom:8px}.ops-tabs button{white-space:nowrap;font-size:12px;padding:9px 12px;flex-shrink:0}.ops-tabs [aria-pressed=true]{background:#ffe76a}.ops-workspace{background:#fff;border:2px solid #1b2540;border-radius:18px;padding:20px;box-shadow:4px 5px 0 #1b2540}.ops-workspace h2{font-size:22px;margin:0}.ops-filters{display:flex;align-items:flex-end;gap:10px;margin:18px 0}.ops-filters label{font-size:12px;font-weight:750;display:grid;gap:6px}.ops-filters label:first-child{flex:1}.operations-page input,.operations-page select,.operations-page textarea{width:100%;min-width:0;box-sizing:border-box;font-size:16px;border:1.5px solid #51617e;border-radius:9px;padding:10px;background:#fff;color:#1b2540}.operations-page button{cursor:pointer;min-height:40px;border-radius:9px}.operations-page button:disabled{opacity:.5;cursor:default}.ops-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ops-card{border:1px solid #c6d5eb;border-radius:13px;padding:15px;min-width:0;background:#f9fbff}.ops-card h3{font-size:15px;margin:0 0 7px;overflow-wrap:anywhere}.ops-card p{margin:6px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.ops-card .ops-meta{font-size:12px;color:#5b7093}.ops-card.is-alert{border-left:4px solid #c04343}.ops-card.is-paused{border-left:4px solid #bf8900}.ops-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-items:center}.ops-actions a{font-weight:750;font-size:13px}.ops-actions button{padding:7px 11px;font-size:12px}.ops-tag{display:inline-block;background:#e8efff;border-radius:6px;padding:3px 8px;font-size:11px;font-weight:800}.ops-inline-form{display:grid;gap:7px;margin-top:12px}.ops-inline-form label{font-size:12px}.ops-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:22px;font-size:13px}.ops-template-editor{margin-bottom:18px}.ops-template-editor form{display:grid;gap:12px;padding:14px 0}.ops-template-editor label{display:grid;gap:5px;font-size:13px;font-weight:700}.ops-template-editor p{font-size:12px}.ops-empty{padding:24px;text-align:center;color:#587096;grid-column:1/-1}.ticket-thread{display:grid;gap:8px;margin:12px 0;max-height:360px;overflow:auto}.ticket-message{padding:10px;border-radius:9px;background:#edf2ff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.ticket-message[data-role=shop]{background:#fff4bd}.ticket-message small{display:block;color:#576d92;font-size:11px}.delivery-template-picker{margin:10px 0 16px;padding:12px;background:#f0f5ff;border:1px solid #c6d5eb;border-radius:10px}.delivery-template-picker label{display:grid;gap:6px;font-size:13px;margin:8px 0}.delivery-template-picker .ops-actions{margin:8px 0}.delivery-template-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:10px;background:white;border:1px solid #c6d5eb;border-radius:8px;font-size:13px}.delivery-email-status{margin:14px 0;padding:14px;border:1px solid #c6d5eb;border-radius:12px;background:#f8fbff}.delivery-email-status h3{font-size:16px;margin:0 0 8px}.delivery-email-status p{font-size:12px;overflow-wrap:anywhere}.plan-pause-control{margin:8px 0;font-size:12px}.plan-pause-control button{font-size:12px;min-height:36px}.plan-pause-control[data-paused=true]{color:#8a5600}.library-expiry-hint{padding:9px 12px;border-radius:9px;background:#fff1ae;color:#755414;font-weight:750;font-size:13px}
@media(max-width:1000px){.ops-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.operations-wrap{padding:12px 12px 30px}.ops-heading{align-items:flex-start}.ops-heading h1{font-size:25px}.ops-heading p{font-size:12px}.ops-heading>button{font-size:11px;flex-shrink:0;padding:6px}.ops-summary{gap:7px;margin:16px 0}.ops-summary button{padding:10px;min-height:80px}.ops-summary strong{font-size:24px}.ops-summary span{font-size:10px}.ops-workspace{padding:13px;border-radius:13px;box-shadow:3px 4px 0 #1b2540}.ops-filters{flex-wrap:wrap;gap:8px}.ops-filters label:first-child{flex-basis:100%}.ops-filters label:nth-child(2){flex:1}.ops-list{grid-template-columns:1fr}.ops-card{padding:12px}.ops-section-heading p{font-size:12px}.ops-tabs button{font-size:11px;padding:8px 10px}.ops-pager{gap:10px}}
@media(max-width:620px){.operations-page .ui-admin-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:4px 0 8px;margin:10px 0}.operations-page .ui-admin-nav a{flex:0 0 auto;min-height:36px;padding:8px 10px;font-size:11px}.ops-summary{grid-template-columns:repeat(6,minmax(92px,1fr));overflow-x:auto;padding-bottom:5px;margin:12px 0}.ops-summary button{min-height:72px}.ops-heading{gap:8px}.ops-heading h1{font-size:23px}.ops-eyebrow{display:none}.ops-heading>div>p:last-child{font-size:11px}.operations-page #ops-status{background:transparent;border:0;box-shadow:none;padding:0;font-size:11px;line-height:1.5;margin:10px 0}.ops-tabs{margin-bottom:4px}.operations-page .commerce-header{padding-bottom:10px;margin-bottom:0}.operations-page .commerce-header .commerce-brand{font-size:19px}}

.ops-card .ops-history-profit{padding:8px 10px;border:1px solid #c9d8f0;border-radius:8px;background:#eff4ff;color:#365786;font-size:12px;font-weight:700}.ops-card .ops-history-profit.is-same-profit{background:#effaf1;border-color:#c7e3cd;color:#28673f}.ops-card .ops-history-profit.is-loss{background:#fff0ee;border-color:#ecc4bf;color:#9a3930}

.account-welcome {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--ice);
  border: var(--line);
  padding: 25px;
  box-shadow: var(--shadow);
  margin: 12px 0 26px;
  min-width: 0;
}
.account-welcome > div:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-welcome h2 {
  font-size: 28px;
  margin: 7px 0;
}
.account-welcome p {
  font-size: 13px;
  line-height: 1.7;
}
.account-welcome button {
  margin-left: auto;
  flex-shrink: 0;
}
.account-eyebrow {
  font-size: 11px !important;
  letter-spacing: 1px;
  font-weight: 800;
}
#profile-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  font-size: 30px;
  font-weight: 900;
  background: #ffe56b;
  border: var(--line);
  box-shadow: 4px 4px var(--ink);
  border-radius: 12px;
  rotate: -5deg;
}
.account-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.account-tabs a {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px var(--ink);
  background: white;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.account-tabs a:hover {
  background: #ffe56b;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 16px;
}
.account-stat {
  display: block;
  background: white;
  border: var(--line);
  padding: 16px;
  box-shadow: 4px 4px var(--ink);
  min-width: 0;
}
.account-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.account-stat span {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}
.account-stat:nth-child(2) {
  background: #ffe56b;
}
.account-stat:nth-child(4) {
  background: var(--lavender);
}
.account-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.account-columns h2,
.account-history h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
.account-columns p {
  font-size: 13px;
  line-height: 1.8;
}
.account-aside {
  display: grid;
  align-content: start;
  gap: 24px;
}
.account-aside a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-aside .btn {
  display: inline-flex;
  text-decoration: none;
  font-size: 12px;
  padding: 10px 12px;
}
.profile-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-hint {
  margin-top: 16px;
  color: var(--muted);
}
.account-history {
  margin-top: 28px;
}
.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.account-section-heading > a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}
.recent-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border: 2px solid var(--ink);
  padding: 16px;
  margin-top: 16px;
  background: var(--page);
  overflow-wrap: anywhere;
}
.recent-order h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.recent-order p {
  font-size: 13px;
  margin-top: 6px;
}
.recent-order > a {
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}
.account-page #summary-status {
  font-size: 13px;
  margin: 10px 0;
}
.account-page button:disabled {
  cursor: wait;
  opacity: 0.55;
}
@media (max-width: 700px) {
  .account-welcome {
    padding: 18px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .account-welcome h2 {
    font-size: 23px;
  }
  .account-welcome button {
    margin-left: 0;
    width: 100%;
  }
  #profile-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 24px;
  }
  .account-welcome > div:nth-child(2) {
    flex: 1;
  }
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .account-stat {
    padding: 14px;
  }
  .account-stat strong {
    font-size: 25px;
  }
  .account-columns {
    grid-template-columns: 1fr;
  }
  .profile-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-tabs {
    gap: 10px;
  }
  .account-tabs a {
    font-size: 12px;
  }
  .recent-order {
    padding: 12px;
  }
}
.customers-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.customer-card {
  overflow-wrap: anywhere;
}
.customer-card h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
.customer-card p {
  font-size: 13px;
  line-height: 1.8;
  margin: 5px 0;
}
.customer-card a {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  margin-top: 16px;
  text-decoration: underline;
}
#customers-search {
  display: flex;
  align-items: end;
  gap: 14px;
}
#customers-search label {
  flex: 1;
  min-width: 0;
}
#customers-search button {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .customers-list {
    grid-template-columns: 1fr;
  }
  #customers-search {
    display: block;
  }
  #customers-search button {
    width: 100%;
    margin-top: 12px;
  }
}

/* Customer operations: readable cards and private staff audit. */
#library-list .order-item,
#inbox-list .order-item {
  display: grid;
  gap: 12px;
  min-width: 0;
}
#library-list .order-item > *,
#inbox-list .order-item > * {
  margin: 0;
  overflow-wrap: anywhere;
}
#library-list .btn {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}
#inbox-list [data-read="false"] {
  background: var(--ice);
  border-left-width: 6px;
}
#inbox-list button {
  justify-self: start;
}
#audit-list pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
  max-width: 100%;
}
#library-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 16px 0;
}
#library-filter label {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
#library-filter .custom-select {
  width: 100%;
}
#library-filter button[type="submit"] {
  min-height: 44px;
}
#dashboard-stats {
  margin: 24px 0;
}

/* 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;}
}

/* ==========================================================================
   GRAPERU SHOP - Page Experience Enhancement Styles
   NEO Brutalism System: Sky Blue, Lavender, Cream, Yellow, Ink Borders & Hard Shadows
   Scoped: .page-lead, .page-journey, .page-help, .error-card
   ========================================================================== */

:root {
  --pe-ink: #161616;
  --pe-bg-cream: #fefce8;
  --pe-bg-yellow: #fef08a;
  --pe-bg-blue: #bae6fd;
  --pe-bg-blue-light: #f0f9ff;
  --pe-bg-lavender: #e9d5ff;
  --pe-bg-white: #ffffff;
  --pe-text-primary: #0f172a;
  --pe-text-secondary: #334155;
  --pe-text-muted: #64748b;
  --pe-border-width: 2px;
  --pe-shadow-hard: 3px 3px 0 var(--pe-ink);
  --pe-shadow-lg: 4px 4px 0 var(--pe-ink);
  --pe-shadow-sm: 2px 2px 0 var(--pe-ink);
  --pe-radius-md: 10px;
  --pe-radius-sm: 6px;
}

/* --------------------------------------------------------------------------
   1. Page Lead Component (.page-lead)
   For Account and Admin workflow pages
   -------------------------------------------------------------------------- */
.page-lead {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px 0;
  padding: 16px 20px;
  background: var(--pe-bg-cream);
  border: var(--pe-border-width) solid var(--pe-ink);
  border-radius: var(--pe-radius-md);
  box-shadow: var(--pe-shadow-lg);
  color: var(--pe-text-primary);
}

.page-lead-admin {
  background: #f5f3ff;
  border-color: var(--pe-ink);
}

.page-lead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pe-bg-yellow);
  color: var(--pe-ink);
  border: 1.5px solid var(--pe-ink);
  border-radius: var(--pe-radius-sm);
  padding: 3px 9px;
  box-shadow: 1.5px 1.5px 0 var(--pe-ink);
  margin-bottom: 8px;
}

.page-lead-eyebrow-accent {
  background: var(--pe-bg-lavender);
}

.page-lead h1,
.page-lead .page-lead-heading {
  margin: 4px 0 8px 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--pe-ink);
  letter-spacing: -0.01em;
}

.page-lead-deck {
  margin: 0 0 14px 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--pe-text-secondary);
  max-width: 72ch;
}

.page-lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.page-lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 13px;
  background: var(--pe-bg-white);
  color: var(--pe-ink);
  border: 1.5px solid var(--pe-ink);
  border-radius: var(--pe-radius-sm);
  text-decoration: none;
  box-shadow: var(--pe-shadow-sm);
  cursor: pointer;
  white-space: nowrap;
}

.page-lead-btn:hover,
.page-lead-btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: var(--pe-shadow-hard);
  color: var(--pe-ink);
  outline: none;
}

.page-lead-btn.primary {
  background: var(--pe-bg-blue);
}

.page-lead-btn.lavender {
  background: var(--pe-bg-lavender);
}

.page-lead-btn.yellow {
  background: var(--pe-bg-yellow);
}

/* --------------------------------------------------------------------------
   2. Page Journey Component (.page-journey)
   Compact, collapsible details/summary for Checkout & Ordering
   -------------------------------------------------------------------------- */
details.page-journey {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 20px 0;
  padding: 14px 16px;
  background-color: #f4f7ff;
  background-image: radial-gradient(var(--pe-ink) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  border: 2px solid var(--pe-ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--pe-ink);
  color: var(--pe-text-primary);
}

summary.page-journey-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pe-ink);
  user-select: none;
}

summary.page-journey-summary::-webkit-details-marker {
  display: none;
}

summary.page-journey-summary::after {
  content: "▾";
  font-size: 1.1rem;
  margin-left: auto;
  transition: transform 0.15s ease;
}

details[open].page-journey summary.page-journey-summary::after {
  transform: rotate(180deg);
}

.page-journey-summary-text {
  font-size: 0.92rem;
  color: var(--pe-ink);
}

.page-journey-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pe-bg-yellow);
  color: var(--pe-ink);
  border: 1.5px solid var(--pe-ink);
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: 1.5px 1.5px 0 var(--pe-ink);
}

.page-journey-content {
  margin-top: 14px;
  border-top: 2px dashed var(--pe-ink);
  padding-top: 14px;
}

.page-journey-header {
  margin-bottom: 12px;
}

.page-journey-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--pe-text-secondary);
}

.page-journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0 14px 0;
}

.page-journey-step {
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid var(--pe-ink);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 3px 3px 0 var(--pe-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.page-journey-step:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--pe-ink);
}

.page-journey-step-num {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pe-ink);
  background: var(--pe-bg-yellow);
  border: 1.5px solid var(--pe-ink);
  border-radius: 999px;
  box-shadow: 1.5px 1.5px 0 var(--pe-ink);
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
}

.page-journey-step-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--pe-ink);
  margin: 0;
}

.page-journey-step-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
  margin: 0;
}

.page-journey-expectations {
  border-top: 2px dashed var(--pe-ink);
  padding-top: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--pe-ink);
}

.page-journey-expectations strong {
  color: var(--pe-ink);
}

.page-journey-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.page-journey-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ffffff;
  color: var(--pe-ink);
  border: 1.5px solid var(--pe-ink);
  border-radius: 999px;
  box-shadow: 1.5px 1.5px 0 var(--pe-ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  line-height: 1.3;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}

.page-journey-link:hover {
  background: var(--pe-bg-yellow);
  color: var(--pe-ink);
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--pe-ink);
  text-decoration: none;
}

.page-journey-link:active {
  transform: translate(1px, 1px);
  box-shadow: 0.5px 0.5px 0 var(--pe-ink);
}

/* --------------------------------------------------------------------------
   3. Page Help Component (.page-help)
   For Login, Register, Reset Password, and Callback
   -------------------------------------------------------------------------- */
.page-help {
  box-sizing: border-box;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  background-color: #fffdf5;
  background-image: radial-gradient(var(--pe-ink) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  border: 2px solid var(--pe-ink);
  border-radius: 10px;
  box-shadow: 3.5px 3.5px 0 var(--pe-ink);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pe-ink);
}

.page-help-privacy {
  background-color: #fffdf5;
}

.page-help-callback {
  background-color: #f4f7ff;
}

.page-help-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--pe-ink);
  margin-bottom: 8px;
}

.page-help-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--pe-bg-yellow);
  border: 1.5px solid var(--pe-ink);
  border-radius: 6px;
  box-shadow: 1.5px 1.5px 0 var(--pe-ink);
  font-size: 13px;
  flex-shrink: 0;
}

.page-help-body {
  margin: 0 0 10px 0;
  color: var(--pe-ink);
  font-size: 0.83rem;
  line-height: 1.5;
  background: #ffffff;
  padding: 10px 12px;
  border: 1.5px solid var(--pe-ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--pe-ink);
}

.page-help-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.page-help-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ffffff;
  color: var(--pe-ink);
  border: 1.5px solid var(--pe-ink);
  border-radius: 999px;
  box-shadow: 1.5px 1.5px 0 var(--pe-ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  line-height: 1.3;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}

.page-help-link:hover {
  background: var(--pe-bg-yellow);
  color: var(--pe-ink);
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--pe-ink);
  text-decoration: none;
}

.page-help-link:active {
  transform: translate(1px, 1px);
  box-shadow: 0.5px 0.5px 0 var(--pe-ink);
}

/* --------------------------------------------------------------------------
   4. 404 Error Experience (.error-hero, .error-card)
   -------------------------------------------------------------------------- */
.error-page-wrap {
  box-sizing: border-box;
  max-width: 760px;
  margin: 40px auto;
  padding: 0 16px;
}

.error-card {
  box-sizing: border-box;
  background: var(--pe-bg-cream);
  border: var(--pe-border-width) solid var(--pe-ink);
  border-radius: var(--pe-radius-md);
  box-shadow: var(--pe-shadow-lg);
  padding: 32px 24px;
  text-align: center;
}

.error-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pe-bg-yellow);
  border: 1.5px solid var(--pe-ink);
  border-radius: var(--pe-radius-sm);
  padding: 3px 10px;
  box-shadow: var(--pe-shadow-sm);
  margin-bottom: 12px;
}

.error-code {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--pe-ink);
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
}

.error-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--pe-ink);
}

.error-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pe-text-secondary);
  max-width: 54ch;
  margin: 0 auto 24px auto;
}

.error-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   5. Responsive (down to 320px) and Reduced Motion
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-journey-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-lead {
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .page-lead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-lead-btn {
    width: 100%;
    box-sizing: border-box;
  }

  details.page-journey {
    padding: 10px 12px;
  }

  .error-card {
    padding: 24px 16px;
  }
}

@media (max-width: 320px) {
  .page-lead,
  details.page-journey,
  .page-help {
    padding: 10px 10px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-lead,
  .page-lead-btn,
  details.page-journey,
  .page-journey-step,
  .page-help,
  .error-card {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .page-lead-btn:hover,
  .page-lead-btn:focus-visible {
    transform: none !important;
  }
}

/* Account workspace: compact hierarchy, one task at a time. */
.account-page .page-lead { padding: 14px 18px; margin-bottom: 14px; box-shadow: 3px 3px 0 var(--ink); }
.account-page .page-lead h1 { font-size: clamp(22px, 4vw, 28px); margin: 0; }
.account-page .page-lead-eyebrow { margin-bottom: 6px; font-size: 10px; }
.account-page .page-lead-deck { font-size: 13px; margin: 6px 0 0; }
.account-page .page-lead-actions { display: none; }
.account-page .account-welcome { padding: 14px 16px; gap: 14px; margin: 0 0 14px; box-shadow: 3px 3px 0 var(--ink); }
.account-page #profile-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 23px; box-shadow: 2px 2px 0 var(--ink); }
.account-page .account-welcome h2 { font-size: 20px; margin: 2px 0; line-height: 1.3; }
.account-page .account-welcome p { margin: 0; font-size: 12px; line-height: 1.5; }
.account-page .account-eyebrow { font-size: 10px !important; letter-spacing: .05em; }
.account-page #profile-joined { color: var(--muted); font-size: 11px; }
.account-page #sign-out { width: auto; min-height: 40px; padding: 8px 12px; font-size: 12px; margin-left: auto; }
.account-page .account-stats { margin: 14px 0; gap: 10px; }
.account-page .account-stat { padding: 10px 12px; box-shadow: 2px 2px 0 var(--ink); }
.account-page .account-stat strong { font-size: 23px; }
.account-page .account-stat span { margin-top: 3px; font-size: 11px; }
.account-page .account-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 16px 0; }
.account-page .account-tabs a { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 9px 10px; text-align: center; text-decoration: none; font-size: 13px; line-height: 1.35; border-radius: 8px; transition: transform .12s, box-shadow .12s; }
.account-page .account-tabs a[aria-current] { background: var(--yellow, #ffe56b); box-shadow: 1px 1px 0 var(--ink); transform: translate(1px,1px); }
.account-page .account-tabs a:focus-visible { outline: 3px solid #3567c9; outline-offset: 3px; }
.account-page .account-columns { margin-top: 0; gap: 16px; grid-template-columns: minmax(0,1.7fr) minmax(230px,1fr); }
.account-page .commerce-panel { padding: 18px; box-shadow: 3px 3px 0 var(--ink); }
.account-page .account-columns h2, .account-page .account-history h2 { font-size: 19px; margin-bottom: 8px; }
.account-page .account-columns p { line-height: 1.6; }
.account-page #profile-form { display: grid; gap: 12px; }
.account-page #profile-form label { margin: 0; min-width: 0; }
.account-page #profile-form input { min-width: 0; }
.account-page .profile-hint { font-size: 12px; margin-top: 0; }
.account-page .account-aside { gap: 12px; }
.account-page .account-secondary summary { cursor: pointer; font-size: 14px; font-weight: 800; line-height: 1.5; }
.account-page .account-secondary[open] summary { margin-bottom: 12px; }
.account-page .account-aside #account-admin { margin: 0; text-align: center; }
.account-page .account-history { margin-top: 0; }
.account-page .account-columns[hidden], .account-page .account-history[hidden], .account-page #account-admin[hidden] { display: none !important; }
.account-page #auth-status:empty, .account-page #summary-status:empty, .account-page #profile-status:empty { display: none; }
.account-page .account-section-heading { gap: 10px; }
.account-page .recent-order { margin-top: 10px; padding: 12px; gap: 12px; }
@media (min-width: 701px) {
  .account-page #profile-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-page #profile-form > label:first-of-type { grid-column: 1; grid-row: 1; }
  .account-page #profile-form > label:last-of-type { grid-column: 2; grid-row: 1; }
  .account-page #profile-form > .profile-pair { grid-column: 1 / -1; grid-row: 2; }
  .account-page #profile-form > :is(.profile-hint,.order-actions,.commerce-status) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .account-page .commerce-header { gap: 10px; padding-bottom: 12px; margin-bottom: 12px; }
  .account-page .commerce-nav { gap: 6px; }
  .account-page .commerce-nav a { font-size: 12px; padding: 8px 10px; min-height: 40px; }
  .account-page .page-lead { padding: 12px 14px; }
  .account-page .page-lead-deck { display: none; }
  .account-page .account-welcome { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .account-page .account-welcome > div:nth-child(2) { flex: 1; min-width: 150px; }
  .account-page #sign-out { margin-left: 58px; min-height: 36px; padding: 6px 10px; }
  .account-page .account-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .account-page .account-stat { padding: 9px 10px; }
  .account-page .account-stat strong { font-size: 20px; line-height: 1.2; }
  .account-page .account-stat span { margin: 3px 0 0; }
  .account-page .account-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 14px 0; }
  .account-page .account-tabs a { font-size: 12px; padding: 8px; }
  .account-page .account-columns { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .account-page .commerce-panel { padding: 14px; }
  .account-page .order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .account-page .order-actions button { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) { .account-page .account-tabs a { transition: none; } }

/* Notification stickers: shape + title + explicit read state, never color alone. */
#recent-orders, #library-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 12px; }
#recent-orders .recent-order, #library-list .order-item { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 14px; min-width: 0; border: 2px solid #17213a; border-radius: 10px; box-shadow: 2px 2px 0 #17213a; background: #fff; }
#recent-orders .recent-order h3, #library-list .order-item h3 { font-size: 15px; margin: 0 0 6px; overflow-wrap: anywhere; }
#recent-orders .recent-order p, #library-list .order-item p { font-size: 13px; line-height: 1.5; margin: 4px 0; }
#recent-orders .recent-order > a { align-self: flex-start; margin-top: auto; font-size: 13px; padding-block: 8px; }
#library-filter { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: end; gap: 10px; margin: 12px 0; }
#library-filter label { flex: 0 1 280px; margin: 0; }
#library-filter button { margin: 0; min-height: 44px; font-size: 13px; padding: 8px 14px; }
#library-filter select { min-height: 44px; font-size: 14px; }
.library-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; background: #f1f5ff; border-radius: 8px; }
.library-dates div { font-size: 12px; overflow-wrap: anywhere; }
.library-dates span { display: block; color: #64748b; font-size: 11px; margin-bottom: 3px; }
#library-list .order-item > a { font-size: 13px; min-height: 36px; padding-block: 6px; }
#library-list .order-item > .btn { font-size: 12px; min-height: 40px; margin-top: auto; padding: 8px 10px; }
@media(max-width:800px) { #recent-orders, #library-list { grid-template-columns: minmax(0,1fr); } }
@media(max-width:480px) { #library-filter label { flex: 1; min-width: 0; } }
#inbox-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#inbox-list .notice-card {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--ink,#17213a);
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink,#17213a);
}
#inbox-list .notice-card[data-read="false"] { background: #fffdf2; border-left-width: 2px; }
#inbox-list .notice-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  background: #d8eaff;
  color: #17213a;
  border: 2px solid #17213a;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #17213a;
  rotate: -4deg;
}
#inbox-list [data-kind="payment"] .notice-icon { background: #cbf5d9; }
#inbox-list [data-kind="delivery"] .notice-icon { background: #ffe56b; }
#inbox-list [data-kind="support"] .notice-icon { background: #e6dff9; }
#inbox-list :is([data-kind="refund"],[data-kind="cancelled"]) .notice-icon { background: #ffd4d4; }
#inbox-list .notice-content { min-width: 0; }
#inbox-list .notice-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
#inbox-list .notice-heading h3 { margin: 0; font-size: 15px; line-height: 1.5; }
#inbox-list .notice-read-state { flex-shrink: 0; font-size: 10px; font-weight: 800; color: #596477; }
#inbox-list [data-read="false"] .notice-read-state { border: 1.5px solid #17213a; background: #ffe56b; color: #17213a; padding: 2px 6px; border-radius: 4px; }
#inbox-list .notice-body { margin: 4px 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
#inbox-list .notice-date { display: block; font-size: 11px; color: #596477; margin-top: 5px; }
#inbox-list .notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
#inbox-list .notice-actions a { color: #17213a; font-size: 12px; font-weight: 800; text-underline-offset: 3px; }
#inbox-list .notice-actions button { min-height: 34px; padding: 5px 9px; font-size: 11px; }
@media (max-width:480px) {
  #inbox-list .notice-card { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 12px; }
  #inbox-list .notice-icon { width: 34px; height: 36px; border-radius: 6px; }
  #inbox-list .notice-icon svg { width: 22px; height: 22px; }
  #inbox-list .notice-heading h3 { font-size: 14px; }
}
@media(max-width:800px) { #inbox-list { grid-template-columns: minmax(0,1fr); } }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #inbox-list .notice-icon { transition: rotate .18s, translate .18s; }
  #inbox-list .notice-card:hover .notice-icon { rotate: 2deg; translate: 0 -2px; }
}

.commerce-wrap.account-page { width: calc(100% - 40px); max-width: 1680px; padding: 22px 0 50px; }
.account-page .commerce-header { position: relative; padding: 16px 20px; margin: 0 0 20px; gap: 18px; background: #fff; border: 2px solid #17213a; border-radius: 14px; box-shadow: 3px 3px 0 #17213a; }
.account-page .commerce-brand { text-decoration: none; gap: 12px; white-space: nowrap; }
.account-page .commerce-brand img { width: 42px; height: 42px; }
.account-page .brand-wordmark { display: inline-flex; align-items: center; gap: 6px; font-size: 23px; }
.account-page .commerce-nav { gap: 6px; }
.account-page .commerce-nav > a { min-height: 42px; padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; box-shadow: none; background: transparent; font-size: 12px; }
.account-page .commerce-nav > a:hover { background: #eef4ff; border-color: #c4cde3; transform: none; box-shadow: none; }
.account-page .commerce-nav > a[aria-current="page"] { background: #d8eaff; color: #17213a; border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; }
.account-page .commerce-nav > .customer-notice-bell { flex: 0 0 42px; width: 42px; padding: 0; border: 2px solid #17213a; background: #fff; }
.account-page .customer-notice-bell svg { width: 21px !important; height: 21px !important; flex: 0 0 21px; fill: currentColor; }
.account-page .page-lead { background: #fff7c9; border: 2px solid #17213a; border-radius: 10px; box-shadow: 3px 3px 0 #17213a; padding: 18px 20px; }
.account-page .page-lead-eyebrow { background: transparent; border: 0; box-shadow: none; padding: 0; letter-spacing: .08em; color: #526180; }
.account-page .page-lead-deck { max-width: none; }
.account-page .account-welcome { background: #d8eaff; border: 2px solid #17213a; border-radius: 10px; box-shadow: 3px 3px 0 #17213a; }
.account-page .account-stat { border: 2px solid #17213a; border-radius: 8px; box-shadow: 2px 2px 0 #17213a; background: #fff; }
.account-page .account-stat:nth-child(2) { background: #fff7c9; }
.account-page .account-stat:last-child { background: #eee6ff; }
.account-page .account-tabs { padding: 7px; background: #e6dff9; border: 2px solid #17213a; border-radius: 10px; gap: 8px; }
.account-page .account-tabs a { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; background: #fff; color: #17213a; }
.account-page .account-tabs a[aria-current] { color: #17213a; background: #ffe56b; box-shadow: 1px 1px 0 #17213a; transform: translate(1px,1px); }
@media(min-width:1101px) {
  .commerce-wrap.account-page { width: calc(100% - 64px); }
  .account-page #account-dashboard:not([hidden]) { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.6fr); gap: 16px; align-items: stretch; }
  .account-page .account-welcome { margin: 0; padding: 18px; }
  .account-page .account-stats { margin: 0; gap: 10px; }
  .account-page .account-stat { display: flex; flex-direction: column; justify-content: center; }
  .account-page #summary-status, .account-page .account-tabs, .account-page .account-columns, .account-page .account-history { grid-column: 1 / -1; margin: 0; }
}
@media(max-width:700px) {
  .commerce-wrap.account-page { width: calc(100% - 24px); padding-top: 12px; }
  .account-page .commerce-header { padding: 12px; gap: 12px; margin-bottom: 14px; }
  .account-page .commerce-brand img { width: 34px; height: 34px; }
  .account-page .brand-wordmark { font-size: 16px; gap: 4px; }
  .account-page .commerce-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; gap: 4px; }
  .account-page .commerce-nav > a { padding: 7px 3px; font-size: 10px; min-height: 40px; white-space: normal; text-align: center; }
  .account-page .commerce-nav > .customer-notice-bell { position: absolute; top: 9px; right: 12px; width: 36px; height: 36px; min-height: 36px; min-width: 36px; }
  .account-page .page-lead { padding: 14px; }
}

/* 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; }

/* 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}
}
