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

/* assets/css/admin-orders.css - NEO Compact Admin Orders Styling (Shop NEO Palette) */

:root {
  --neo-ink: #17213a;
  --neo-surface: #ffffff;
  --neo-sky: #e0f2fe;
  --neo-sky-light: #f0f9ff;
  --neo-lavender: #ede9fe;
  --neo-yellow: #fef08a;
  --neo-green: #dcfce7;
  --neo-red: #fee2e2;
  --neo-shadow: 3px 3px 0 #17213a;
  --neo-shadow-sm: 2px 2px 0 #17213a;
  --neo-border: 2px solid #17213a;
}

.admin-order-summary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  background: var(--neo-surface);
  color: var(--neo-ink);
  border: var(--neo-border);
  border-radius: 8px;
  box-shadow: var(--neo-shadow);
  margin-bottom: 1rem;
  transition: transform 0.1s ease;
}

.admin-order-summary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #17213a;
}

.admin-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-summary-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neo-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.admin-summary-title .order-number {
  background: var(--neo-lavender);
  color: var(--neo-ink);
  border: 1.5px solid var(--neo-ink);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.825rem;
  font-weight: 700;
}

.admin-summary-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-summary-badges .status-badge,
.admin-summary-badges .payment-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  border: 1.5px solid var(--neo-ink);
  color: var(--neo-ink);
  background: var(--neo-sky);
}

.admin-summary-badges .payment-badge[data-payment="paid"] {
  background: var(--neo-green);
}

.admin-summary-badges .payment-badge[data-payment="pending"] {
  background: var(--neo-yellow);
}

.admin-summary-badges .payment-badge[data-payment="refunded"] {
  background: var(--neo-red);
}

.admin-summary-customer,
.admin-summary-items,
.admin-summary-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--neo-ink);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-summary-customer strong,
.admin-summary-items strong,
.admin-summary-meta strong {
  font-weight: 700;
}

.admin-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
  padding-top: 0.65rem;
  border-top: 1.5px solid var(--neo-ink);
}

.admin-process-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: var(--neo-yellow);
  color: var(--neo-ink);
  border: 2px solid var(--neo-ink);
  box-shadow: var(--neo-shadow-sm);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-process-link:hover {
  background: #fde047;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #17213a;
}

.admin-detail-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--neo-sky-light);
  border: var(--neo-border);
  border-radius: 8px;
  box-shadow: var(--neo-shadow-sm);
  margin-bottom: 1rem;
  color: var(--neo-ink);
  word-break: break-word;
}

.admin-detail-banner .back-link {
  font-size: 0.9rem;
  color: var(--neo-ink);
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-detail-banner .back-link:hover {
  text-decoration: underline;
}

.admin-detail-notice {
  padding: 0.75rem 1rem;
  background: var(--neo-sky);
  border: var(--neo-border);
  border-radius: 8px;
  box-shadow: var(--neo-shadow-sm);
  font-size: 0.875rem;
  color: var(--neo-ink);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.admin-detail-notice strong {
  font-weight: 800;
}

.order-recipient-badge {
  display: block;
  margin: 0.25rem 0 0.5rem 0;
  padding: 0.35rem 0.65rem;
  background: var(--neo-lavender);
  border: 1.5px solid var(--neo-ink);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neo-ink);
  word-break: break-word;
}

/* Hide redundant lead actions in admin-orders view */
.page-lead-actions {
  display: none !important;
}

@media (max-width: 640px) {
  .admin-summary-header,
  .admin-summary-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-process-link {
    width: 100%;
    justify-content: center;
  }

  .ui-admin-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    scrollbar-width: thin;
    grid-template-columns: none !important;
  }

  .ui-admin-nav a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-width: auto !important;
  }

  .ui-admin-nav a:focus-visible {
    outline: 2px solid var(--neo-ink);
    outline-offset: 2px;
  }

  .page-lead {
    padding: 12px !important;
    margin-bottom: 16px !important;
  }

  .order-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .order-filters label {
    min-width: 0 !important;
  }

  .order-filters button[type="submit"] {
    grid-column: 1 / -1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-order-summary,
  .admin-order-summary:hover,
  .admin-process-link,
  .admin-process-link:hover {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   Neobrutalist Admin Order Form & Delivery Controls
   ========================================================================== */
.order-card details {
  margin-top: 18px;
  border: 2px solid var(--neo-ink);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--neo-surface);
  box-shadow: var(--neo-shadow-sm);
}

.order-card details > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--neo-yellow);
  color: var(--neo-ink);
  border: 2px solid var(--neo-ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--neo-ink);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}

.order-card details > summary:hover {
  background: #fff9db;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--neo-ink);
}

.order-card details[open] > summary {
  margin-bottom: 16px;
}

.order-card form label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--neo-ink);
  margin-top: 12px;
  margin-bottom: 4px;
}

.order-card form input:not([type="checkbox"]):not([type="radio"]),
.order-card form textarea,
.order-card form select {
  width: 100%;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--neo-ink);
  border: 2px solid var(--neo-ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--neo-ink);
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.order-card form input:focus,
.order-card form textarea:focus,
.order-card form select:focus {
  outline: 3px solid var(--neo-yellow);
  outline-offset: 1px;
}

.order-card fieldset,
.commerce-wrap fieldset {
  border: 2px solid var(--neo-ink) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 18px 16px 16px !important;
  margin: 18px 0 !important;
  box-shadow: 3px 3px 0 var(--neo-ink) !important;
  position: relative;
}

.order-card legend,
.commerce-wrap legend {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  background: var(--neo-yellow) !important;
  color: var(--neo-ink) !important;
  border: 2px solid var(--neo-ink) !important;
  border-radius: 999px !important;
  box-shadow: 2px 2px 0 var(--neo-ink) !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  letter-spacing: -0.01em !important;
}

.order-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.order-dates label {
  font-size: 12.5px;
  font-weight: 800;
}

.order-dates input[type="datetime-local"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 2px solid var(--neo-ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--neo-ink);
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .order-dates {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.commerce-check,
label.commerce-check {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--neo-sky-light);
  border: 2px solid var(--neo-ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--neo-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--neo-ink);
}

.commerce-check:hover,
label.commerce-check:hover {
  background: var(--neo-sky);
}

.commerce-check input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  accent-color: var(--neo-ink);
  cursor: pointer;
  border: 2px solid var(--neo-ink);
  border-radius: 4px;
}

.admin-form-status {
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
  line-height: 1.5;
}

.admin-form-status[data-error="true"] {
  display: block;
  padding: 10px 14px;
  background: #fee2e2;
  border: 2px solid var(--neo-ink);
  border-radius: 8px;
  color: #991b1b;
  box-shadow: 2px 2px 0 var(--neo-ink);
}

.admin-form-status[data-conflict="true"] {
  background: #fef08a;
  color: #854d0e;
}

.admin-form-status .accent-link {
  color: #1e40af;
  text-decoration: underline;
  font-weight: 800;
}

.admin-form-status .tiny-btn {
  margin-top: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1.5px solid var(--neo-ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0 var(--neo-ink);
}

.order-card button.primary.wide,
.commerce-wrap button.primary.wide,
form button.primary.wide {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neo-yellow, #ffe56b) !important;
  color: var(--neo-ink, #17213a) !important;
  border: 2px solid var(--neo-ink, #17213a) !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 var(--neo-ink, #17213a) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease !important;
}

.order-card button.primary.wide:hover:not(:disabled),
.commerce-wrap button.primary.wide:hover:not(:disabled),
form button.primary.wide:hover:not(:disabled) {
  background: #fff9db !important;
  transform: translate(-1px, -2px) !important;
  box-shadow: 5px 6px 0 var(--neo-ink, #17213a) !important;
}

.order-card button.primary.wide:active:not(:disabled),
.commerce-wrap button.primary.wide:active:not(:disabled),
form button.primary.wide:active:not(:disabled) {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 var(--neo-ink, #17213a) !important;
}

/* Daily work queues: the list stays compact; delivery has a separate review step. */
.admin-work-queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.admin-work-queues button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;min-width:0;padding:16px;border:2px solid var(--neo-ink);border-radius:9px;background:#fff;box-shadow:3px 3px 0 var(--neo-ink)}
.admin-work-queues button[aria-pressed=true]{background:var(--neo-yellow);transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--neo-ink)}
.admin-work-queues small{font-size:12px;font-weight:500;line-height:1.5}
body[data-order-mode=admin] .page-lead-actions,body[data-order-mode=admin] .page-lead-deck{display:none}
body[data-order-mode=admin]:not(.admin-orders-detail) .admin-back-link{display:none}
body.admin-orders-detail #order-filter,body.admin-orders-detail .order-pager{display:none}
body[data-order-mode=admin] .order-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.admin-order-advanced{grid-column:1/-1;font-size:13px}
.admin-order-advanced summary{cursor:pointer;font-weight:700;padding:8px 0}
.admin-order-advanced label{max-width:400px;margin:10px 0}
.admin-summary-title small{font-size:11px;font-weight:500;overflow-wrap:anywhere}
.admin-summary-meta{font-size:12px!important;line-height:1.7}
.admin-delivery-confirm{width:min(640px,calc(100% - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;padding:24px;border:3px solid var(--neo-ink);border-radius:12px;box-shadow:7px 7px 0 var(--neo-ink);color:var(--neo-ink);background:#fff}
.admin-delivery-confirm::backdrop{background:rgb(23 33 58 / .65)}
.admin-delivery-confirm p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.admin-delivery-confirm h2{font-size:24px;margin:0 0 18px}
.admin-delivery-confirm h3{font-size:16px;margin-top:20px}
.admin-delivery-confirm button{margin:12px 8px 0 0;max-width:100%}
@media(max-width:600px){body[data-order-mode=admin] .order-filters{grid-template-columns:1fr}.admin-work-queues{gap:8px}.admin-work-queues button{padding:10px 8px;font-size:12px}.admin-work-queues small{display:none}.admin-delivery-confirm{padding:16px}.admin-delivery-confirm button{width:100%;margin-right: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;
  }
}

/* Fail closed before the first paint, including when JavaScript is unavailable. */
html[data-admin-protected]:not([data-admin-access="granted"]) body > :not(#admin-access-screen) { display: none !important; }
html[data-admin-access="granted"] #admin-access-screen { display: none !important; }
#admin-access-screen { max-width: 520px; margin: 12vh auto; padding: 28px; border: 2px solid #17213a; border-radius: 16px; background: #fff; box-shadow: 5px 5px 0 #17213a; color: #17213a; }
#admin-access-screen h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.2; margin: 8px 0 14px; }
#admin-access-screen p { line-height: 1.6; }
#admin-access-screen a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid #17213a; border-radius: 8px; background: #ffe56b; color: #17213a; font-weight: 800; text-decoration: none; }
@media(max-width:600px) { #admin-access-screen { margin: 12vh 16px; padding: 22px; } }

/* 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 administration layout: compact surfaces and usable desktop width. */
.supplier-settings { grid-column: 1 / -1; }
.supplier-price-card { display: grid; gap: 6px; padding: 14px 16px; margin: 12px 0 18px; background: #e7f2ff; border: var(--ui-border); border-radius: 10px; overflow-wrap: anywhere; }
.supplier-price-card strong { font-size: 26px; color: #245bb0; }
.supplier-price-card small { color: #526589; line-height: 1.6; }
.supplier-settings #supplier-search-form { display: flex; align-items: end; gap: 12px; margin: 14px 0; }
.supplier-settings #supplier-search-form label { flex: 1; }
.supplier-settings #supplier-search-form input { margin-bottom: 0; }
.supplier-settings #supplier-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; max-height: 280px; overflow: auto; }
.supplier-settings #supplier-products button { text-align: left; overflow-wrap: anywhere; }
.supplier-settings #supplier-mapping-form { margin-top: 20px; padding: 16px; background: #f4f7ff; border: var(--ui-border); border-radius: 10px; }
.supplier-settings :is(.supplier-pages,.supplier-actions) { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.supplier-settings details { border: var(--ui-border); box-shadow: none; padding: 12px; margin-top: 16px; }
.supplier-settings #supplier-mappings { max-height: 400px; overflow: auto; }
.supplier-finance-panel { grid-column: 1 / -1; }
.supplier-report-toolbar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,.6fr) auto; gap: 10px; align-items: start; }
.supplier-report-toolbar :is(input,select,button) { margin: 0; }
.supplier-report-toolbar .ui-select { min-width: 0; }
.supplier-report-tables { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 16px; }
.supplier-table-panel { min-width: 0; border: var(--ui-border); border-radius: 12px; overflow: hidden; background: #fff; }
.ui-admin-page .supplier-table-panel h3 { margin: 0; padding: 12px 14px; font-size: 15px; background: #e9f1ff; }
.supplier-table-scroll { overflow: auto; max-height: 480px; }
.supplier-table-panel table { border-collapse: collapse; width: 100%; min-width: 430px; font-size: 12px; table-layout: fixed; }
.supplier-table-panel caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.supplier-table-panel th { position: sticky; top: 0; z-index: 1; background: #f1f5fc; text-align: left; font-size: 11px; }
.supplier-table-panel th { height: 48px; }
.supplier-table-panel :is(th,td) { border: 0; border-bottom: 1px solid #dce4f2; padding: 10px; overflow-wrap: anywhere; }
.supplier-table-panel td { height: 84px; vertical-align: top; font-variant-numeric: tabular-nums; }
.supplier-table-panel th:first-child { width: 46%; }
.supplier-table-panel td :is(strong,small) { display: block; }
.supplier-table-panel td strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.supplier-table-panel td small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #627394; margin-top: 5px; line-height: 1.5; }
.supplier-table-panel tr:nth-child(even) { background: #f8faff; }
.supplier-table-panel tr.is-loss { color: #a12b37; background: #fff1f2; }
.supplier-report-pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 12px; }
.supplier-info-details { margin-top: 10px; min-width: 0; }
.supplier-info-details dl, .admin-plan-description dl { margin: 12px 0 0; display: grid; gap: 5px; }
.supplier-info-details dt, .admin-plan-description dt { font-weight: 800; font-size: 11px; color: #526589; }
.supplier-info-details dd, .admin-plan-description dd { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 12px; }
@media(max-width:1050px) { .supplier-report-tables { grid-template-columns: 1fr; } }
@media(max-width:600px) { .supplier-report-toolbar { grid-template-columns: minmax(0,1fr); } .supplier-report-pager { justify-content: space-between; gap: 6px; } }
@media(max-width:600px) {
 .supplier-table-panel table { min-width: 0; display: block; }
 .supplier-table-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .supplier-table-panel tbody { display: block; }
 .supplier-table-panel tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; padding: 12px; border-bottom: 1px solid #dce4f2; }
 .supplier-table-panel td { display: block; height: auto; padding: 0; border: 0; }
 .supplier-table-panel td:first-child { grid-column: 1 / -1; }
 .supplier-table-panel td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 10px; color: #627394; margin-bottom: 4px; }
 .supplier-table-scroll { max-height: 360px; }
}
@media(max-width:600px) { .supplier-settings #supplier-products { grid-template-columns: 1fr; } .supplier-settings #supplier-search-form { flex-direction: column; align-items: stretch; } }
.ui-admin-page :is(main.commerce-wrap, main.admin-wrap) { width: 100%; max-width: 1760px; margin-inline: auto; padding: 24px 32px 48px; }
.ui-admin-page .page-lead { padding: 18px 20px; margin-block: 16px; }
.ui-admin-page .page-lead h1, .ui-admin-page main > h1 { font-size: clamp(24px,2.4vw,34px); line-height: 1.3; }
.ui-admin-page .page-lead-deck { font-size: 12px; margin-block: 8px; }
.ui-admin-page :is(.commerce-panel,.admin-panel) { padding: 18px; min-width: 0; }
.ui-admin-page :is(.commerce-panel,.admin-panel) h2 { font-size: 19px; margin-bottom: 14px; }
.ui-admin-page :is(.commerce-panel,.admin-panel) p { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.ui-admin-page :is(button,.btn) { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.ui-admin-page :is(input,select,textarea) { font-size: 13px; }
.ui-admin-page .admin-notice { padding: 12px 16px; margin: 14px 0; line-height: 1.6; font-size: 12px; }
.ui-admin-page :is(.commerce-status,#admin-access,#dashboard-status):empty { display: none; }
.ui-admin-page .order-pager { gap: 8px; margin-top: 16px; }

/* Settings: separate operational controls, contact channels and payment policy. */
body[data-admin-page=admin-settings] #admin-tools:not([hidden]) { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: 18px; align-items: start; }
body[data-admin-page=admin-settings] #admin-tools > .admin-panel { margin: 0; }
body[data-admin-page=admin-settings] .social-settings form { max-width: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
body[data-admin-page=admin-settings] #social-form > :is(button,p) { grid-column: 1 / -1; }
body[data-admin-page=admin-settings] .payment-settings { grid-column: 1 / -1; }
body[data-admin-page=admin-settings] #settings-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 18px; }
body[data-admin-page=admin-settings] #settings-form > :is(p,button,.qr-setting-field) { grid-column: 1 / -1; }
body[data-admin-page=admin-settings] #settings-form > button { justify-self: start; }
body[data-admin-page=admin-settings] #settings-form label { min-width: 0; }
body[data-admin-page=admin-settings] .field-help { margin: 4px 0 12px; font-size: 12px; }

/* Overview and customer directory use the available width. */
.ui-admin-page #dashboard-stats { gap: 12px; margin: 16px 0; }
.ui-admin-page #dashboard-stats .account-stat { padding: 16px; min-height: 92px; }
.ui-admin-page #audit-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .ui-admin-page #audit-list .order-item { padding: 12px; box-shadow: var(--ui-shadow-small); }
.ui-admin-page #audit-list details { border: 0; padding: 0; box-shadow: none; background: none; }
.ui-admin-page #audit-list summary { padding: 6px 8px; font-size: 11px; box-shadow: none; border: var(--ui-border); }
.ui-admin-page #customers-search { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.ui-admin-page #customers-search label { flex: 1; max-width: 620px; }
.ui-admin-page #customers-search input { margin-bottom: 0; }
.ui-admin-page #customers-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.ui-admin-page #customers-list .customer-card { margin: 0; padding: 16px; border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
.ui-admin-page #customers-list h2 { font-size: 16px; margin-bottom: 10px; }
.ui-admin-page #customers-list p { margin: 5px 0; }
.ui-admin-page #customers-list a { display: inline-flex; margin-top: 8px; font-size: 12px; }

/* Coupon editor and saved coupons sit alongside each other. */
body[data-admin-page=admin-coupons] .commerce-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
.ui-admin-page #coupon-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.ui-admin-page #coupon-form label { min-width: 0; font-size: 12px; }
.ui-admin-page #coupon-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.ui-admin-page #coupon-list .order-item { margin: 0; padding: 12px; border: var(--ui-border); border-radius: 10px; box-shadow: var(--ui-shadow-small); }
.ui-admin-page #coupon-list h3 { font-size: 15px; margin: 0 0 6px; }

/* Two order summary columns; the detailed processing form retains full width. */
body[data-admin-page=admin-orders] #orders-list:has(> .admin-order-summary) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.ui-admin-page .admin-order-summary { margin: 0; padding: 14px; min-width: 0; }
.ui-admin-page .admin-summary-items { font-size: 12px; line-height: 1.6; }
body[data-admin-page=admin-orders] .order-dates { gap: 12px; }
body[data-admin-page=admin-orders] fieldset { padding: 14px; margin-bottom: 14px; min-width: 0; }

@media(max-width:1100px) {
  .ui-admin-page #customers-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ui-admin-page #coupon-list { grid-template-columns: 1fr; }
  body[data-admin-page=admin-settings] #settings-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
  body[data-admin-page=admin-settings] #admin-tools:not([hidden]), body[data-admin-page=admin-coupons] .commerce-grid,
  body[data-admin-page=admin-orders] #orders-list:has(> .admin-order-summary) { grid-template-columns: 1fr; }
  .ui-admin-page #audit-list { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .ui-admin-page :is(main.commerce-wrap,main.admin-wrap) { padding: 16px 12px 40px; }
  .ui-admin-page :is(.commerce-panel,.admin-panel) { padding: 14px; }
  .ui-admin-page :is(button,.btn) { min-height: 44px; }
  .ui-admin-page #customers-list, .ui-admin-page #coupon-form,
  body[data-admin-page=admin-settings] #settings-form, body[data-admin-page=admin-settings] .social-settings form { grid-template-columns: 1fr; }
  .ui-admin-page #customers-search { align-items: stretch; flex-direction: column; }
}

/* One visual system for every admin workspace, including asynchronous panels. */
body.ui-admin-page { --ui-border: 2px solid #17213a; --ui-shadow: 4px 4px 0 #17213a; --ui-shadow-small: 2px 2px 0 #17213a; background: #f4f1ff; color: #202c45; }
.ui-admin-page :is(main.commerce-wrap,main.admin-wrap,main.operations-wrap) { width: calc(100% - 48px); max-width: 1680px; margin-inline: auto; padding: 24px 0 48px; }
.ui-admin-page .ui-admin-header { margin: 0; padding: 14px 20px; border: 2px solid #17213a; border-radius: 10px; box-shadow: 4px 4px 0 #17213a; background: #fff; }
.ui-admin-page .ui-admin-header .commerce-brand { font-size: 15px; gap: 12px; letter-spacing: .035em; }
.ui-admin-page .ui-admin-header .commerce-brand img { border-radius: 12px; border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page .ui-admin-nav { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 6px; margin: 14px 0 22px; padding: 7px; background: #dceaff; border: 2px solid #17213a; border-radius: 10px; }
.ui-admin-page .ui-admin-nav a { display: flex; align-items: center; justify-content: center; text-align: center; min-width: 0; min-height: 44px; padding: 8px; border: 2px solid #17213a; border-radius: 8px; box-shadow: 2px 2px 0 #17213a; background: #fff; font-size: 12px; line-height: 1.4; text-decoration: none; }
.ui-admin-page .ui-admin-nav a:hover { background: #f7f9fd; }
.ui-admin-page .ui-admin-nav a[aria-current=page] { background: #ffe56b; color: #17213a; border-color: #17213a; box-shadow: 4px 4px 0 #17213a; }
.ui-admin-page :is(.commerce-panel,.admin-panel,.ops-workspace,#security-tools) { border: 2px solid #17213a; border-radius: 10px; box-shadow: 4px 4px 0 #17213a; background: #fff; }
.ui-admin-page :is(.commerce-panel,.admin-panel,.ops-workspace) h2 { font-size: 18px; line-height: 1.4; }
.ui-admin-page :is(.admin-notice,.commerce-status) { border: 2px solid #17213a; border-radius: 10px; background: #edf3fe; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page :is(button,.btn,.import-button) { border-radius: 9px; box-shadow: 2px 2px 0 #17213a; line-height: 1.4; }
.ui-admin-page :is(button,.btn):not(.primary):not([aria-pressed=true]):not(.active) { border-color: #17213a; }
.ui-admin-page :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,.select-trigger) { border: 2px solid #17213a; border-radius: 8px; background: #fff; min-height: 44px; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page :is(input,select,textarea,button) { max-width: 100%; }
.ui-admin-page label { line-height: 1.5; }
.ui-admin-page :is(.admin-grid,.commerce-grid,.ops-list) { gap: 18px; }
.ui-admin-page .admin-grid > aside { padding: 16px; border: 2px solid #17213a; border-radius: 10px; background: #fff; }
.ui-admin-page .admin-products button { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; border-radius: 9px; }
.ui-admin-page .admin-products button[aria-pressed=true] { background: #ffe56b; border-color: #17213a; }
.ui-admin-page :is(.admin-plan,.ops-card,.admin-order-summary) { border: 2px solid #17213a; border-radius: 12px; box-shadow: 2px 2px 0 #17213a; background: #fbfcff; }
.ui-admin-page .admin-plan-editor { background: #eee8ff; border: 2px solid #17213a; border-radius: 12px; padding: 16px; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page .backup-tools { padding: 12px 14px; margin: 14px 0; border: 2px dashed #17213a; border-radius: 12px; background: #f8faff; align-items: center; }
.ui-admin-page .backup-tools .import-button { background: #fff; font-size: 12px; padding: 8px 12px; }
.ui-admin-page .backup-tools .import-button input { margin-top: 4px; }
.ui-admin-page .admin-data-tools { padding: 0; margin: 14px 0 20px; border: 2px solid #17213a; border-radius: 12px; background: #fff; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page .admin-data-tools > summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-size: 13px; font-weight: 750; }
.ui-admin-page .admin-data-tools[open] { padding: 0 14px 14px; }
.ui-admin-page .admin-data-tools[open] > summary { margin-inline: -14px; border-bottom: 1px solid #e0e7f2; }
.ui-admin-page .admin-data-tools .excel-price-tools { margin-top: 14px; }
.ui-admin-page .excel-price-actions .import-button { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; background: #fff3bc; font-size: 12px; }
.ui-admin-page .import-button input[type=file] { border: 0; background: transparent; box-shadow: none; font-size: 11px; }
.ui-admin-page :is(.excel-price-tools,.backup-tools .import-button) { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page .admin-panel #plans-list .admin-plan { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page #plans-list .admin-plan-actions button { box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page .admin-plan-comparison > section { border-radius: 10px; }
.ui-admin-page .custom-select > .select-trigger { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; }
.ui-admin-page :is(.ops-summary button,.account-stat,.admin-work-queues button) { border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; border-radius: 12px; background: #fff; }
.ui-admin-page :is(.ops-summary button,.admin-work-queues button)[aria-pressed=true] { background: #ffe56b; border-color: #17213a; }
.ui-admin-page .ops-summary { grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); }
.ui-admin-page :is(.ops-tabs,.admin-filter-tabs) { gap: 7px; }
.ui-admin-page .ops-card { display: flex; flex-direction: column; }
.ui-admin-page .ops-card .ops-actions { margin-top: auto; padding-top: 12px; }
.ui-admin-page :is(.order-pager,.ops-pager) { flex-wrap: wrap; }
.ui-admin-page #security-tools { max-width: 720px; padding: 24px; margin-inline: auto; }
.ui-admin-page #security-tools form { display: grid; gap: 14px; }
.ui-admin-page .admin-section-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border: 2px solid #17213a; border-radius: 12px; background: #fff; }
.ui-admin-page .admin-section-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; background: #dceaff; color: #17213a; border: 2px solid #17213a; box-shadow: 2px 2px 0 #17213a; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.ui-admin-page .admin-section-nav a:hover { background: #fff0ad; }
body[data-admin-page=admin-settings] #admin-tools > section { scroll-margin-top: 20px; }
body[data-admin-page=admin-settings] #admin-tools > .binance-settings { grid-column: 1 / -1; margin: 0; }
body[data-admin-page=admin-settings] .binance-settings form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 18px; }
body[data-admin-page=admin-settings] .binance-settings form > :is(label:first-child,button,p) { grid-column: 1 / -1; }
body[data-admin-page=admin-settings] .binance-settings form > button { justify-self: start; }
body[data-admin-page=admin-settings] .binance-settings label { display: block; font-weight: 700; font-size: 12px; }
body[data-admin-page=admin-settings] .binance-settings input[type=checkbox] { margin-inline: 10px; }
@media(max-width:1100px) {
  .ui-admin-page .ui-admin-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body[data-admin-page=admin-settings] .binance-settings form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .ui-admin-page :is(main.commerce-wrap,main.admin-wrap,main.operations-wrap) { width: calc(100% - 24px); padding-top: 12px; }
  .ui-admin-page .ui-admin-header { padding: 12px; gap: 12px; }
  .ui-admin-page .ui-admin-header .commerce-brand { font-size: 12px; gap: 8px; }
  .ui-admin-page .ui-admin-header .commerce-nav { gap: 6px; }
  .ui-admin-page .ui-admin-header .commerce-nav a { font-size: 11px; padding: 8px; }
  .ui-admin-page .ui-admin-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 5px; margin: 10px 0 18px; overflow: visible; }
  .ui-admin-page .ui-admin-nav a { min-height: 44px; padding: 6px 3px; font-size: 10px; white-space: normal; }
  .ui-admin-page :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,.select-trigger) { font-size: 16px; min-height: 44px; }
  .ui-admin-page .ops-summary { grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .ui-admin-page .ops-summary button { min-height: 84px; }
  .ui-admin-page .admin-section-nav { gap: 6px; padding: 10px; }
  .ui-admin-page .admin-section-nav a { min-height: 44px; font-size: 11px; flex: 1 1 120px; }
  body[data-admin-page=admin-settings] .binance-settings form { grid-template-columns: 1fr; }
  .ui-admin-page #security-tools { padding: 16px; }
}

/* Secondary and expanded states share the same NEO edges as the main cards. */
.ui-admin-page :is(.customer-card,#coupon-list .order-item,#audit-list .order-item,.supplier-table-panel,.supplier-price-card,.featured-editor li,.delivery-email-status,.binance-admin-panel,.delivery-template-picker,.ticket-message,.ops-template-editor) { border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); }
.ui-admin-page #customers-list .customer-card,
.ui-admin-page #coupon-list .order-item,
.ui-admin-page #audit-list .order-item { border: var(--ui-border); box-shadow: var(--ui-shadow-small); }
.ui-admin-page :is(fieldset,.checkout-policies details,#security-qr-wrap details) { border: var(--ui-border); border-radius: 8px; background: #f1f5ff; box-shadow: var(--ui-shadow-small); }
.ui-admin-page fieldset legend { padding-inline: 8px; font-weight: 800; font-size: 13px; }
.ui-admin-page summary { cursor: pointer; line-height: 1.5; }
.ui-admin-page :is(.supplier-info-details,.admin-plan-description) > summary { min-height: 44px; }
.ui-admin-page :is(.ops-tag,.order-badge,.admin-status-badge) { border: var(--ui-border); border-radius: 6px; color: #17213a; font-weight: 800; }
.ui-admin-page :is(.supplier-table-panel,.supplier-table-scroll) { scrollbar-gutter: stable; }
.ui-admin-page .supplier-table-panel h3 { border-bottom: var(--ui-border); }
.ui-admin-page .supplier-table-panel th { color: #17213a; background: #e1ecff; border-bottom: var(--ui-border); }
.ui-admin-page .supplier-table-panel tr.is-loss { color: #a12b37; background: #fff1f2; }
.ui-admin-page .select-options { border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow); }
.ui-admin-page .select-option[aria-selected=true] { background: #ffe56b; color: #17213a; font-weight: 800; }
.ui-admin-page .ops-card .ops-history-profit { border: var(--ui-border); border-radius: 8px; box-shadow: var(--ui-shadow-small); }
.ui-admin-page :is(.purchase-fields,.auto-delivery-control) > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.ui-admin-page :is(button,.btn,.import-button,.ui-admin-nav a,.admin-section-nav a) { color: #17213a; font-weight: 800; }
.ui-admin-page :is(button.primary,.btn.primary) { background: #ffe56b; color: #17213a; border: var(--ui-border); }
.ui-admin-page :is(button,.btn):disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.ui-admin-page :is(input,textarea):disabled { background: #e9edf5; color: #526589; }
.ui-admin-page :is(input:not([type=checkbox]):not([type=radio]),textarea):read-only { background-color: #f0f4fc; }
.ui-admin-page :is(input[type=checkbox],input[type=radio]) { accent-color: #356bc4; flex-shrink: 0; }
.ui-admin-page :is(.commerce-status,[role=status])[data-error=true] { color: #9b2634; background: #ffe6e9; border-color: #9b2634; }
.ui-admin-page :is(#coupon-form,#settings-form,.binance-settings form) { align-items: start; }
.ui-admin-page :is(#settings-form,#social-form,#coupon-form,#plan-form,.binance-settings form) label:not(.commerce-check):not(.active-label):not(:has(input[type=checkbox])) { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; align-self: stretch; margin-bottom: 14px; }
.ui-admin-page :is(#settings-form,#social-form,#coupon-form,#plan-form,.binance-settings form) label > :is(input:not([type=checkbox]),select,textarea,.custom-select) { margin: 0; width: 100%; }
.ui-admin-page :is(#settings-form,#social-form,#coupon-form,#plan-form,.binance-settings form) .select-trigger { min-height: 44px; }
.ui-admin-page :is(#settings-form,#social-form,#coupon-form,#plan-form,.binance-settings form) input:not([type=checkbox]):not([type=file]) { min-height: 44px; }
.ui-admin-page #coupon-form > .commerce-check { grid-column: 1 / -1; }
.ui-admin-page .featured-editor { grid-column: 1 / -1; margin: 0; }
body[data-admin-page=admin-settings] #admin-tools > section:has(#checkout-source-form),
body[data-admin-page=admin-settings] #partner-history { grid-column: 1 / -1; }
.ui-admin-page #checkout-source-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ui-admin-page #checkout-source-form > label { min-width: 0; margin: 0; }
.ui-admin-page #checkout-source-form > :is(.checkout-source-details,#checkout-source-review-wrap) { grid-column: 1 / -1; }
.ui-admin-page #checkout-source-form #checkout-source-review-wrap { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: var(--ui-border); border-radius: 8px; background: #eee7ff; }
.ui-admin-page #checkout-source-form #checkout-source-review { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; margin: 1px 0 0; }
.ui-admin-page .featured-editor li { flex-wrap: wrap; }
.ui-admin-page .featured-editor li strong { min-width: 120px; overflow-wrap: anywhere; }
.ui-admin-page .featured-add .custom-select { min-width: 0; flex: 1 1 240px; }
.ui-admin-page #security-tools > h2 { margin-top: 0; }
.ui-admin-page #security-qr-wrap { padding: 16px; margin-block: 16px; border: var(--ui-border); border-radius: 8px; background: #fff; }
.ui-admin-page #security-qr { display: block; margin: 12px auto; }
.ui-admin-page #security-qr-wrap details { padding: 12px; }
.ui-admin-page :is(dialog,.ui-confirm-dialog,.excel-price-preview) { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 2px solid #17213a; border-radius: 12px; background: #fff; color: #17213a; box-shadow: 6px 6px 0 #17213a; }
.ui-admin-page dialog::backdrop { background: #17213a80; }
.ui-admin-page dialog:not(.excel-price-preview) { width: min(600px,calc(100vw - 32px)); padding: 24px; }
.ui-admin-page dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.ui-admin-page dialog > p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.ui-admin-page dialog > button { margin: 12px 8px 0 0; min-height: 44px; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .ui-admin-page :is(button,.btn,.ui-admin-nav a,.admin-section-nav a):not(:disabled):hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #17213a; }
  .ui-admin-page :is(button,.btn,.ui-admin-nav a,.admin-section-nav a):not(:disabled):active { transform: translate(2px,2px); box-shadow: none; }
}
@media(max-width:600px) {
  .ui-admin-page #checkout-source-form { grid-template-columns: 1fr; }
  .ui-admin-page :is(.admin-plan-description,.supplier-info-details) > summary { min-height: 44px; }
  .ui-admin-page .featured-editor li button { min-height: 44px; }
  .ui-admin-page dialog:not(.excel-price-preview) { padding: 16px; }
}
@media(max-width:360px) {
  .ui-admin-page .admin-products { grid-template-columns: 1fr; }
  .ui-admin-page .admin-product-label { word-break: normal; }
}
