:root {
  --bg: #dfe6ef;
  --panel: rgba(255, 255, 255, 0.42);
  --ink: #111216;
  --muted: #5a6070;
  --line: rgba(255, 255, 255, 0.44);
  --line-strong: rgba(255, 255, 255, 0.72);
  --brand: #0a4e8b;
  --brand-strong: #073760;
  --brand-soft: #dce9f6;
  --accent: #cc1013;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 58px rgba(10, 18, 34, 0.22);
  --glass-blur: 18px;
  --max: 1180px;
  --font-body: "Avenir Next", "Avenir", "Avenir LT Std", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Avenir Next", "Avenir", "Avenir LT Std", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --weight-medium: 500;
  --weight-black: 900;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -12%, rgba(10, 78, 139, 0.3), transparent 40%),
    radial-gradient(circle at 102% -6%, rgba(204, 16, 19, 0.22), transparent 34%),
    radial-gradient(circle at 50% 115%, rgba(118, 136, 162, 0.2), transparent 44%),
    linear-gradient(180deg, rgba(244, 248, 255, 0.72), rgba(228, 235, 246, 0.84)),
    var(--bg);
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(230, 238, 249, 0.5);
  box-shadow: 0 8px 24px rgba(9, 18, 31, 0.12);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
}

.site-header-inner {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(140deg, #0a4e8b, #cc1013);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-title {
  font-weight: var(--weight-black);
  font-size: 1.04rem;
}

.brand-sub {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: var(--weight-medium);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.site-nav a.active {
  background: rgba(17, 18, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.main-stack {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem 0 2.4rem;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
}

.section-pad {
  padding: clamp(1.1rem, 2vw, 2rem);
}

.kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bec9d8;
  font-weight: var(--weight-medium);
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: var(--weight-medium);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  line-height: 1.02;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.14rem, 1.7vw, 1.5rem);
}

.lead {
  margin: 0;
  color: #d6e4f1;
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.body-copy {
  margin: 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-size: 0.86rem;
  font-weight: var(--weight-medium);
  border: 1px solid var(--line-strong);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 16, 30, 0.12);
}

.button-primary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.68);
  color: #fff;
}

.button-dark {
  background: rgba(17, 18, 22, 0.78);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.button-outline {
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.active {
  background: rgba(17, 18, 22, 0.78);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hero-video {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 68vh, 760px);
  display: grid;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
}

.hero-overlay {
  grid-area: 1 / 1;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(6, 12, 18, 0.16), rgba(7, 10, 14, 0.86) 72%),
    linear-gradient(120deg, rgba(7, 52, 92, 0.45), rgba(204, 16, 19, 0.1));
}

.hero-content {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(1.5rem, 3vw, 2.8rem);
  display: grid;
  gap: 1rem;
  color: #fff;
}

.growth-strip {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.5rem;
}

.growth-strip h2 {
  max-width: 16ch;
}

.capability-section {
  display: grid;
  gap: 0.85rem;
}

.capability-section .section-kicker {
  text-align: center;
}

.capability-section h2 {
  text-align: center;
}

.capability-intro {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 0.2rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.capability-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 0.72rem;
  min-height: 320px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.capability-card h3 {
  text-align: center;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

.capability-card .button {
  margin-top: auto;
  text-align: center;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.stats-stack {
  display: grid;
  gap: 0.6rem;
}

.stat-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.88rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0.3rem 0 0;
  font-weight: var(--weight-medium);
  font-size: 1.08rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  gap: 1rem;
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  min-height: 360px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-block {
  display: grid;
  gap: 0.75rem;
}

.contact-lines {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-form {
  display: grid;
  gap: 0.55rem;
}

.site-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.66rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px) saturate(145%);
  -webkit-backdrop-filter: blur(8px) saturate(145%);
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  outline: none;
  border-color: rgba(10, 78, 139, 0.45);
  box-shadow:
    0 0 0 2px rgba(10, 78, 139, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-form textarea {
  min-height: 128px;
  resize: vertical;
}

.site-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
}

.plan-card.plan-card-featured {
  border-color: rgba(10, 78, 139, 0.38);
  background: linear-gradient(150deg, rgba(10, 78, 139, 0.12), rgba(255, 255, 255, 0.56));
  box-shadow:
    0 16px 30px rgba(10, 78, 139, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.plan-badge {
  width: max-content;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
}

.plan-card h2 {
  font-size: 1.5rem;
}

.plan-price {
  margin: 0;
  color: #0f253f;
  font-size: 2rem;
  line-height: 1;
  font-weight: var(--weight-black);
}

.plan-price span {
  font-size: 0.83rem;
  color: var(--muted);
}

.plan-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.plan-feature-list {
  display: grid;
  gap: 0.38rem;
  margin: 0.2rem 0 0;
  padding-left: 1.05rem;
}

.plan-feature-list li {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.84rem;
  color: #334155;
  list-style: disc;
  background: transparent;
}

.plan-card .button-row {
  margin-top: auto;
}

.onboarding-chat {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  padding: 0.72rem;
  display: grid;
  gap: 0.46rem;
  min-height: 170px;
  max-height: 390px;
  overflow: auto;
}

.onboarding-account-status {
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  padding: 0.65rem 0.72rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.onboarding-account-status-neutral {
  background: rgba(10, 78, 139, 0.08);
  color: #163253;
}

.onboarding-account-status-success {
  background: rgba(0, 135, 84, 0.12);
  color: #0f4530;
  border-color: rgba(0, 135, 84, 0.35);
}

.onboarding-account-status-warning {
  background: rgba(181, 64, 0, 0.12);
  color: #6f2900;
  border-color: rgba(181, 64, 0, 0.32);
}

.onboarding-message {
  display: flex;
  width: 100%;
}

.onboarding-message-ai,
.onboarding-message-user {
  margin: 0;
}

.onboarding-message-ai {
  justify-content: flex-start;
}

.onboarding-message-user {
  justify-content: flex-end;
}

.onboarding-bubble {
  margin: 0;
  max-width: 82%;
  width: fit-content;
  border-radius: 16px;
  padding: 0.55rem 0.68rem;
  font-size: 0.84rem;
  line-height: 1.35;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.onboarding-message-ai .onboarding-bubble {
  background: rgba(255, 255, 255, 0.82);
  color: #1f2d46;
}

.onboarding-message-user .onboarding-bubble {
  background: rgba(10, 78, 139, 0.14);
  color: #12243a;
}

.onboarding-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  padding-top: 0.36rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.2rem) clamp(1.1rem, 2.8vw, 2rem);
  display: grid;
  gap: 0.85rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(10, 78, 139, 0.2), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(204, 16, 19, 0.17), transparent 30%),
    rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.about-hero {
  place-items: center;
  text-align: center;
}

.about-hero h1 {
  max-width: 20ch;
}

.about-hero p {
  margin-left: auto;
  margin-right: auto;
}

.service-grid,
.product-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-grid {
  align-items: stretch;
}

.service-card,
.product-card,
.value-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.95rem;
  display: grid;
  gap: 0.52rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.product-card {
  text-align: center;
  justify-items: center;
}

.product-card h3 {
  text-align: center;
}

.service-card p,
.product-card p,
.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.product-card p {
  text-align: center;
  max-width: 32ch;
}

.value-card {
  align-content: start;
}

.service-badge,
.product-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.27rem 0.56rem;
}

.product-card .product-badge {
  margin-inline: auto;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.build-section {
  display: grid;
  gap: 0.8rem;
  text-align: center;
  justify-items: center;
}

.build-section h2 {
  max-width: 24ch;
}

.build-intro {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.build-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  width: 100%;
}

.build-pill-grid span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.62rem 0.84rem;
  text-align: center;
  font-size: 0.88rem;
  color: #2f3d53;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.build-actions {
  margin-top: 0.2rem;
  width: 100%;
  justify-content: center;
}

.about-highlights {
  text-align: center;
}

.about-highlights .value-card {
  text-align: center;
  justify-items: center;
}

.about-highlights .value-card p {
  margin-left: auto;
  margin-right: auto;
  max-width: 29ch;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.roadmap-step {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.48);
  display: grid;
  gap: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.roadmap-step h3 {
  font-size: 1.08rem;
}

.roadmap-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-note {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(140deg, rgba(10, 78, 139, 0.14), rgba(204, 16, 19, 0.05)),
    rgba(255, 255, 255, 0.4);
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.admin-note h3 {
  font-size: 1.08rem;
}

.admin-note p {
  margin: 0;
  color: #2d3d52;
  font-size: 0.9rem;
}

.shop-hero p {
  max-width: 72ch;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.shop-grid.shop-grid-flow-only {
  grid-template-columns: minmax(0, 1fr);
}

.shop-column {
  display: grid;
  gap: 0.8rem;
}

#shopSelectionColumn {
  width: min(100%, 1040px);
}

.shop-step {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  padding: 0.85rem;
  display: grid;
  gap: 0.52rem;
}

.shop-step.shop-step-muted {
  opacity: 0.74;
}

.shop-step[hidden],
#shopConfigColumn[hidden],
#checkoutPanelSection[hidden] {
  display: none !important;
}

.shop-flow-meta {
  margin: -0.1rem 0 0;
  color: #4a5e79;
  font-size: 0.82rem;
}

.compact-selection-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  display: grid;
  gap: 0.45rem;
}

.compact-selection-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.compact-selection-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: var(--weight-black);
  color: #1d2738;
}

.compact-selection-meta {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.compact-selection-detail {
  margin: 0;
  color: #334257;
  font-size: 0.82rem;
}

.compact-selection-change {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  color: #1c2a3b;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.68rem;
}

.category-cards.compact {
  grid-template-columns: 1fr;
}

.category-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.78rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.5), transparent 35%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.66), rgba(233, 240, 251, 0.56));
  cursor: pointer;
  text-align: center;
  aspect-ratio: 1 / 1;
  min-height: 170px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.32rem;
  box-shadow:
    0 10px 20px rgba(10, 78, 139, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(10, 78, 139, 0.45);
  box-shadow:
    0 14px 28px rgba(10, 78, 139, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.category-card:focus-visible {
  outline: none;
  border-color: rgba(10, 78, 139, 0.62);
  box-shadow:
    0 0 0 3px rgba(10, 78, 139, 0.2),
    0 14px 26px rgba(10, 78, 139, 0.14);
}

.category-card.active {
  border-color: rgba(10, 78, 139, 0.56);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.54), transparent 35%),
    linear-gradient(140deg, rgba(222, 236, 254, 0.86), rgba(212, 228, 248, 0.68));
  box-shadow:
    0 16px 32px rgba(10, 78, 139, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.category-card.has-image {
  align-content: start;
  padding-top: 0.64rem;
}

.category-card-media {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.82);
  aspect-ratio: 1.65 / 1;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card-title {
  margin: 0.1rem 0 0;
  font-size: 1.08rem;
  font-weight: var(--weight-black);
  color: #1d2738;
  line-height: 1.15;
}

.category-card-meta {
  margin: 0.16rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.subcategory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.subcategory-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.subcategory-cards.compact {
  grid-template-columns: 1fr;
}

.subcategory-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.66rem;
  background: rgba(255, 255, 255, 0.57);
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 0.24rem;
  min-height: 76px;
}

.subcategory-card.active {
  border-color: rgba(10, 78, 139, 0.52);
  background: rgba(10, 78, 139, 0.1);
}

.subcategory-card-title {
  margin: 0;
  color: #1d2738;
  font-size: 0.9rem;
  font-weight: var(--weight-black);
}

.subcategory-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.subcategory-pills.compact {
  display: grid;
}

.subcategory-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  background: rgba(255, 255, 255, 0.58);
  color: #334155;
  font-size: 0.8rem;
  cursor: pointer;
}

.subcategory-pill.active {
  background: rgba(17, 18, 22, 0.85);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.quantity-option-list {
  display: grid;
  gap: 0.42rem;
}

.quantity-option {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #1f2a3a;
  padding: 0.52rem 0.68rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}

.quantity-option:hover {
  border-color: rgba(10, 78, 139, 0.42);
}

.quantity-option.active {
  border-color: rgba(10, 78, 139, 0.52);
  background: rgba(10, 78, 139, 0.1);
}

.quantity-option-main {
  margin: 0;
  font-size: 0.9rem;
  font-weight: var(--weight-black);
  color: #1d2738;
}

.quantity-option-price {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.shop-toolbar {
  display: grid;
  gap: 0.35rem;
}

.shop-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.66rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px) saturate(145%);
  -webkit-backdrop-filter: blur(8px) saturate(145%);
}

.shop-input:focus {
  outline: none;
  border-color: rgba(10, 78, 139, 0.45);
  box-shadow:
    0 0 0 2px rgba(10, 78, 139, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.shop-products.compact {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.shop-product-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.72rem;
  display: grid;
  gap: 0.42rem;
  min-height: 132px;
}

.shop-item-card {
  min-height: 152px;
}

.shop-item-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.shop-product-media {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  min-height: 140px;
  max-height: 200px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.shop-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: #405169;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    linear-gradient(130deg, rgba(10, 78, 139, 0.1), rgba(204, 16, 19, 0.06)),
    rgba(255, 255, 255, 0.74);
}

.shop-product-card.selected {
  border-color: rgba(10, 78, 139, 0.5);
  box-shadow:
    0 12px 24px rgba(10, 78, 139, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.shop-product-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.shop-select {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  padding: 0.52rem 0.82rem;
  cursor: pointer;
  justify-self: start;
  min-height: 44px;
}

.shop-config-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.92rem;
  display: grid;
  gap: 0.65rem;
}

#orderNotesLabel {
  width: min(100%, 860px);
  justify-self: center;
  text-align: center;
}

#orderNotesInput {
  width: min(100%, 860px);
  justify-self: center;
  min-height: 132px;
}

.design-studio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.design-center-shell {
  display: grid;
  grid-template-columns: 76px minmax(210px, 270px) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.design-tool-rail {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 0.5rem 0.38rem;
  display: grid;
  gap: 0.34rem;
  position: sticky;
  top: calc(78px + 0.35rem);
  z-index: 14;
}

.design-tool-button {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #233049;
  font: inherit;
  font-size: 0.73rem;
  line-height: 1.1;
  min-height: 52px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.design-tool-button:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 78, 139, 0.35);
}

.design-tool-button.active {
  background: rgba(17, 18, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.design-tool-panel-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  padding: 0.66rem;
  min-height: 360px;
  position: sticky;
  top: calc(78px + 0.35rem);
  z-index: 13;
}

.design-tool-panel {
  display: grid;
  gap: 0.52rem;
}

.design-tool-panel h4 {
  margin: 0;
}

.design-tool-divider {
  border-top: 1px solid var(--line-strong);
  margin: 0.18rem 0 0.1rem;
}

.design-workspace {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  padding: 0.62rem;
  display: grid;
  gap: 0.55rem;
}

.design-workspace-top {
  position: sticky;
  top: calc(78px + 0.35rem);
  z-index: 18;
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.22rem;
  background: linear-gradient(180deg, rgba(226, 236, 248, 0.96), rgba(226, 236, 248, 0.88) 76%, rgba(226, 236, 248, 0));
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
}

.design-workspace-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.design-workspace-meta .form-note {
  margin: 0;
  flex: 1 1 360px;
}

.design-surface-tabs-inline {
  justify-content: flex-end;
  margin-left: auto;
}

.design-surface-tabs-inline[hidden] {
  display: none !important;
}

.design-surface-tabs-inline .surface-tab {
  border-radius: 14px;
  min-height: 56px;
  min-width: 122px;
}

.design-toolbar {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  padding: 0.5rem;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.design-toolbar-secondary {
  margin-top: 0;
}

.design-toolbar-group {
  display: grid;
  gap: 0.24rem;
  min-width: 118px;
}

.design-toolbar-group .shop-input {
  min-height: 40px;
}

.design-toolbar-actions {
  display: flex;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.design-toolbar-actions .button {
  min-height: 38px;
  padding: 0.36rem 0.58rem;
  font-size: 0.78rem;
}

.design-toolbar-actions .button.active {
  background: rgba(17, 18, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.design-menu {
  position: relative;
}

.design-menu > summary {
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2a3a;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 38px;
  padding: 0.36rem 0.66rem;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  cursor: pointer;
  user-select: none;
}

.design-menu > summary::-webkit-details-marker {
  display: none;
}

.design-menu > summary::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.72;
}

.design-menu[open] > summary {
  background: rgba(17, 18, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.design-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.42rem);
  min-width: 280px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(244, 248, 254, 0.95);
  box-shadow: 0 16px 28px rgba(12, 24, 44, 0.18);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  padding: 0.5rem;
  z-index: 20;
}

.design-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem;
}

.design-menu-actions .button {
  min-height: 34px;
  font-size: 0.74rem;
  padding: 0.28rem 0.5rem;
}

.design-surface-rail {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  padding: 0.56rem;
  display: grid;
  gap: 0.45rem;
  min-height: 360px;
}

.surface-tabs-rail {
  display: grid;
  gap: 0.4rem;
}

.surface-tabs-rail .surface-tab {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 72px;
  border-radius: 14px;
}

.design-shape-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.44rem;
}

.design-shape-button {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #233049;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.48rem 0.56rem;
  cursor: pointer;
}

.design-image-library-list {
  display: grid;
  gap: 0.38rem;
}

.design-image-library-row {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.48rem;
  align-items: center;
  padding: 0.42rem;
}

.design-image-library-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  object-fit: cover;
}

.design-image-library-meta {
  display: grid;
  gap: 0.25rem;
}

.design-image-library-meta p {
  margin: 0;
  font-size: 0.78rem;
  color: #3a4960;
}

.design-image-library-meta .button {
  justify-self: start;
}

.design-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.design-swatch {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}

.design-swatch[data-swatch="#ffffff"] {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.design-layers-list {
  display: grid;
  gap: 0.35rem;
}

.design-layer-row {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.46rem;
}

.design-layer-row.active {
  border-color: rgba(10, 78, 139, 0.55);
  background: rgba(226, 236, 248, 0.86);
}

.design-layer-row p {
  margin: 0;
  font-size: 0.77rem;
  color: #2f3f56;
}

.design-layer-actions {
  display: flex;
  gap: 0.22rem;
}

.design-layer-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #233049;
  font: inherit;
  font-size: 0.68rem;
  min-height: 28px;
  padding: 0.18rem 0.45rem;
  cursor: pointer;
}

.design-preset-gallery {
  display: grid;
  gap: 0.36rem;
}

.design-preset-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.5rem;
  display: grid;
  gap: 0.24rem;
}

.design-preset-card h5 {
  margin: 0;
  font-size: 0.84rem;
}

.design-preset-card p {
  margin: 0;
  font-size: 0.74rem;
  color: #3b4b62;
}

.design-preset-meta {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.design-preset-tag {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  padding: 0.15rem 0.4rem;
  color: #3a4960;
}

#designAiPromptStatus[data-level="pass"] {
  color: #0f7a5c;
}

#designAiPromptStatus[data-level="warn"] {
  color: #9a6400;
}

#designAiPromptStatus[data-level="error"] {
  color: #b91d22;
}

.design-history-timeline {
  display: grid;
  gap: 0.3rem;
  max-height: 360px;
  overflow: auto;
}

.design-history-row {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 0.18rem;
  padding: 0.34rem 0.42rem;
}

.design-history-row.active {
  border-color: rgba(10, 78, 139, 0.45);
  background: rgba(226, 236, 248, 0.82);
}

.design-history-row p {
  margin: 0;
  font-size: 0.72rem;
  color: #2f3f56;
}

.design-history-row button {
  justify-self: start;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #213049;
  font: inherit;
  font-size: 0.68rem;
  min-height: 24px;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
}

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.shop-span-2 {
  grid-column: span 2;
}

#productInputsFields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

#productInputsFields .shop-span-2 {
  grid-column: span 2;
}

.shop-actions-row {
  align-items: center;
}

.mode-toggle {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mode-option {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #1f2a3a;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.48rem 0.84rem;
  cursor: pointer;
}

.mode-option.active {
  background: rgba(17, 18, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

#designStartModeMeta,
#designTemplateStatus,
#designDraftStatus {
  margin-top: 0.2rem;
}

#designTemplateStatus[data-level="warn"] {
  color: #9a6400;
}

#designTemplateStatus[data-level="error"] {
  color: #b91d22;
}

#designTemplateStatus[data-level="pass"] {
  color: #0f7a5c;
}

#designStudioToolStatus[data-level="pass"] {
  color: #0f7a5c;
}

#designStudioToolStatus[data-level="warn"] {
  color: #9a6400;
}

#designStudioToolStatus[data-level="error"] {
  color: #b91d22;
}

.surface-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.surface-tab {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #1f2a3a;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.46rem 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.12rem;
}

.surface-tab.active {
  background: rgba(17, 18, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.surface-tab small {
  font-size: 0.66rem;
  opacity: 0.76;
}

.upload-button {
  cursor: pointer;
}

#imageUploadInput {
  display: none;
}

.artwork-upload-panel {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 0.55rem;
}

#artworkUploadInput {
  display: none;
}

.artwork-file-list {
  display: grid;
  gap: 0.42rem;
}

#artworkPreflightStatus[data-level="pass"] {
  color: #0f7a5c;
}

#artworkPreflightStatus[data-level="warn"] {
  color: #9a6400;
}

#artworkPreflightStatus[data-level="error"] {
  color: #b91d22;
}

.artwork-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  color: #324056;
}

.artwork-file-row button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.74rem;
  color: #233049;
  padding: 0.25rem 0.56rem;
  cursor: pointer;
}

.canvas-shell {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.6rem;
  min-height: clamp(420px, 62vh, 860px);
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: grid;
  align-content: start;
  position: relative;
  z-index: 1;
}

.canvas-shell canvas {
  display: block;
  width: 100%;
  height: auto;
  min-width: 640px;
}

.design-inline-text-editor {
  position: absolute;
  z-index: 80;
  border: 1px solid rgba(10, 78, 139, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #111216;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 0.38rem 0.46rem;
  resize: none;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(10, 36, 70, 0.18);
}

.design-inline-text-editor:focus {
  outline: 2px solid rgba(10, 78, 139, 0.3);
  outline-offset: 0;
}

.design-zoom-bar {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  padding: 0.42rem 0.52rem;
}

.design-zoom-bar .button-row {
  align-items: center;
  gap: 0.36rem;
}

#designZoomOutButton,
#designZoomFitButton,
#designZoomInButton {
  min-height: 34px;
  min-width: 44px;
  padding: 0.3rem 0.6rem;
}

#designZoomValue {
  margin: 0;
  min-width: 54px;
  text-align: center;
  font-weight: var(--weight-black);
  color: #1f2e44;
}

#designStudioPanel:fullscreen,
#designStudioPanel:-webkit-full-screen {
  background:
    radial-gradient(circle at 8% -12%, rgba(10, 78, 139, 0.22), transparent 38%),
    radial-gradient(circle at 104% -8%, rgba(204, 16, 19, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(235, 242, 252, 0.9), rgba(223, 232, 246, 0.92));
  padding: 1rem;
  overflow: auto;
}

#designStudioPanel:fullscreen .canvas-shell,
#designStudioPanel:-webkit-full-screen .canvas-shell {
  min-height: calc(100vh - 210px);
}

#designStudioPanel:fullscreen .design-workspace-top,
#designStudioPanel:-webkit-full-screen .design-workspace-top {
  top: 0;
}

#designStudioPanel:fullscreen .design-tool-rail,
#designStudioPanel:fullscreen .design-tool-panel-wrap,
#designStudioPanel:-webkit-full-screen .design-tool-rail,
#designStudioPanel:-webkit-full-screen .design-tool-panel-wrap {
  top: 0;
}

#designStudioPanel:fullscreen .design-center-shell,
#designStudioPanel:-webkit-full-screen .design-center-shell {
  min-height: calc(100vh - 190px);
}

#designStudioPanel:fullscreen .design-tool-panel-wrap,
#designStudioPanel:fullscreen .design-workspace,
#designStudioPanel:-webkit-full-screen .design-tool-panel-wrap,
#designStudioPanel:-webkit-full-screen .design-workspace {
  max-height: calc(100vh - 210px);
  overflow: auto;
}

.shop-status {
  margin: 0;
  color: #39495f;
  font-size: 0.9rem;
}

.shop-sync-strip {
  margin-top: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.shop-sync-strip .button-row {
  margin: 0;
}

.sync-indicator {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: #5c6f8b;
  box-shadow: 0 0 0 0.18rem rgba(96, 115, 143, 0.18);
  vertical-align: middle;
}

.sync-indicator.sync-indicator-pass {
  background: #0f7a5c;
  box-shadow: 0 0 0 0.18rem rgba(15, 122, 92, 0.22);
}

.sync-indicator.sync-indicator-warn {
  background: #9a6400;
  box-shadow: 0 0 0 0.18rem rgba(154, 100, 0, 0.22);
}

.sync-indicator.sync-indicator-error {
  background: #b91d22;
  box-shadow: 0 0 0 0.18rem rgba(185, 29, 34, 0.2);
}

.sync-indicator.sync-indicator-info {
  background: #1f5da8;
  box-shadow: 0 0 0 0.18rem rgba(31, 93, 168, 0.2);
}

#catalogSyncStatus[data-level="pass"] {
  color: #0f7a5c;
}

#catalogSyncStatus[data-level="warn"] {
  color: #9a6400;
}

#catalogSyncStatus[data-level="error"] {
  color: #b91d22;
}

#catalogSyncStatus[data-level="info"] {
  color: #2f496f;
}

.design-ai-chip.active {
  background: rgba(17, 18, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.shop-addon-list {
  display: grid;
  gap: 0.45rem;
}

.shop-addon-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.52rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.shop-addon-item .admin-checkbox-wrap {
  min-height: 0;
}

.shop-addon-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.shop-addon-item-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: var(--weight-black);
  color: #1d2738;
}

.shop-addon-item-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.shop-recommendation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.shop-recommendation-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.58rem 0.62rem;
  display: grid;
  gap: 0.26rem;
  align-content: start;
}

.shop-recommendation-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: var(--weight-black);
  color: #1d2738;
}

.shop-recommendation-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.shop-recommendation-chip {
  margin: 0;
  justify-self: start;
  border: 1px solid rgba(10, 78, 139, 0.34);
  border-radius: 999px;
  background: rgba(10, 78, 139, 0.1);
  color: #0a4e8b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
}

.shop-recommendation-card .button-row {
  margin-top: 0.12rem;
}

#templateRequiredFieldsList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.template-required-field {
  display: grid;
  gap: 0.32rem;
}

.template-required-field .shop-input {
  min-height: 42px;
}

.customer-history-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.68rem;
  display: grid;
  gap: 0.42rem;
  text-align: left;
}

.customer-history-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

.cart-item-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.68rem;
  display: grid;
  gap: 0.42rem;
}

.cart-item-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

.sync-health-row {
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.46rem 0.52rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #304157;
}

.shipping-scenario-matrix-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.shipping-scenario-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 520px;
}

.shipping-scenario-matrix-table th,
.shipping-scenario-matrix-table td {
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid rgba(135, 150, 175, 0.24);
  padding: 0.4rem 0.46rem;
  text-align: center;
  font-size: 0.78rem;
  color: #34465c;
  background: rgba(255, 255, 255, 0.48);
}

.shipping-scenario-matrix-table th {
  font-weight: var(--weight-black);
}

.shipping-scenario-matrix-table tr > *:first-child {
  text-align: left;
}

.shipping-scenario-matrix-table tr > *:last-child {
  border-right: none;
}

.shipping-scenario-cell {
  display: grid;
  gap: 0.1rem;
  justify-items: center;
}

.shipping-scenario-cell strong {
  font-size: 0.8rem;
  color: #1b293d;
}

.shipping-scenario-cell span {
  font-size: 0.7rem;
  color: #52637b;
}

.shipping-scenario-cell-none {
  color: #8a96aa;
  font-style: italic;
}

.checkout-preflight-wrap {
  margin-top: 0.52rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  padding: 0.62rem;
  display: grid;
  gap: 0.42rem;
}

.checkout-preflight-item {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  padding: 0.45rem 0.52rem;
  display: grid;
  gap: 0.18rem;
}

.checkout-preflight-item h4 {
  margin: 0;
  font-size: 0.84rem;
}

.checkout-preflight-item.pass {
  border-color: rgba(15, 122, 92, 0.34);
  background: rgba(240, 255, 250, 0.58);
}

.checkout-preflight-item.warn {
  border-color: rgba(154, 100, 0, 0.35);
  background: rgba(255, 249, 238, 0.62);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}

.checkout-summary-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  padding: 0.9rem;
  display: grid;
  gap: 0.62rem;
  position: sticky;
  top: 90px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  color: #3a4960;
  font-size: 0.9rem;
}

.summary-row.total {
  font-size: 1.05rem;
  color: var(--ink);
}

.payment-actions {
  display: grid;
  gap: 0.52rem;
}

.mobile-shop-action-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 28;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(228, 237, 250, 0.86);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: var(--shadow-soft);
  padding: 0.44rem;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.42rem;
}

.mobile-shop-action-bar[hidden] {
  display: none !important;
}

.mobile-shop-action-bar .button {
  min-height: 44px;
}

.account-panel {
  display: grid;
  gap: 0.95rem;
}

.account-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.account-auth-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  padding: 0.9rem;
  display: grid;
  gap: 0.56rem;
}

.account-auth-card h2,
.account-auth-card h3 {
  margin: 0;
}

.account-onboarding-steps {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.34rem;
  color: #344458;
  font-size: 0.88rem;
}

.account-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.86rem;
  color: #344458;
}

.account-reset-panel {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  padding: 0.72rem;
  display: grid;
  gap: 0.46rem;
}

.account-reset-panel h4 {
  margin: 0;
  font-size: 0.96rem;
}

.account-row-single {
  grid-template-columns: 1fr;
}

.account-benefit-list {
  display: grid;
  gap: 0.55rem;
}

.account-benefit-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.62rem;
  display: grid;
  gap: 0.32rem;
}

.account-benefit-item h4 {
  margin: 0;
  font-size: 0.96rem;
}

.account-benefit-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.account-workspace-head {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.account-workspace-head h2 {
  margin: 0;
}

.account-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.account-metric-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  padding: 0.68rem;
  display: grid;
  gap: 0.22rem;
}

.account-metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-metric-value {
  margin: 0;
  color: #121722;
  font-size: 1.25rem;
  font-weight: var(--weight-black);
  line-height: 1.1;
}

.account-favorites-wrap,
.account-subsection {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.85rem;
  display: grid;
  gap: 0.58rem;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.68rem;
  flex-wrap: wrap;
}

.account-section-head h3 {
  margin: 0;
}

.account-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.account-favorite-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.64rem;
  display: grid;
  gap: 0.36rem;
}

.account-favorite-card h4 {
  margin: 0;
  font-size: 0.92rem;
}

.account-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.account-tab {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #1f2a3a;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.46rem 0.88rem;
  cursor: pointer;
}

.account-tab.active {
  background: rgba(17, 18, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.account-tab-panel {
  display: grid;
  gap: 0.72rem;
}

.account-filter-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.55rem;
}

.account-card-stack {
  display: grid;
  gap: 0.62rem;
}

.account-order-card,
.account-design-card,
.account-empty-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.68rem;
  display: grid;
  gap: 0.44rem;
}

.account-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.account-order-head h4 {
  margin: 0;
  font-size: 0.98rem;
}

.account-order-total {
  color: #111216;
  font-size: 0.95rem;
}

.account-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.account-tag {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #3b4b62;
  font-size: 0.76rem;
  padding: 0.24rem 0.52rem;
}

.account-design-card {
  grid-template-columns: minmax(0, 1fr);
}

.account-design-preview {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.72);
}

.account-design-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

.account-design-body {
  display: grid;
  gap: 0.4rem;
}

.account-settings-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.78rem;
  display: grid;
  gap: 0.55rem;
}

.account-settings-card h3 {
  margin: 0;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.account-setting-item {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.52rem 0.58rem;
  display: flex;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.84rem;
  color: #243246;
}

.admin-connect-form {
  max-width: 680px;
}

.admin-secret-fallback {
  margin-top: 0.45rem;
}

.admin-secret-fallback > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-secret-fallback[open] > summary {
  margin-bottom: 0.3rem;
}

.admin-app {
  display: grid;
  gap: 1.1rem;
}

.admin-section-header {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1rem;
  align-items: start;
}

.admin-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin-bottom: 0.85rem;
}

.admin-metric-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  padding: 0.72rem;
  display: grid;
  gap: 0.3rem;
}

.admin-metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metric-value {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.05;
  font-weight: var(--weight-black);
  color: #121722;
}

.admin-dashboard-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.admin-dashboard-links .button {
  justify-content: center;
  text-align: center;
}

.admin-stack {
  display: grid;
  gap: 0.62rem;
}

.admin-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.admin-matrix-grid-core > .admin-card:first-child {
  grid-column: 1 / -1;
}

.admin-matrix-scope {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  padding: 0.55rem;
  margin: 0.55rem 0 0.75rem;
}

.matrix-variant-inline-row {
  display: none;
}

.admin-list-controls {
  margin-bottom: 0.42rem;
}

.admin-products-pagination {
  align-items: end;
  flex-wrap: wrap;
}

.admin-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-pagination-controls #productPageInput {
  width: 96px;
}

.admin-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.admin-subcard {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.7rem;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem 0.75rem;
  font-size: 0.88rem;
  color: #2d3d52;
}

.admin-compact-details {
  overflow: hidden;
}

.admin-compact-details > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: var(--weight-black);
  color: #1f2d41;
}

.admin-compact-details > summary::-webkit-details-marker {
  display: none;
}

.admin-compact-details[open] > summary {
  margin-bottom: 0.45rem;
}

.admin-product-card-media {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  min-height: 140px;
  max-height: 220px;
}

.admin-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-image-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-product-image-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  grid-template-rows: 180px auto;
}

.admin-product-image-media {
  background: rgba(255, 255, 255, 0.78);
}

.admin-product-image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-image-body {
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.admin-product-image-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 0.45rem;
}

.admin-product-image-edit-grid input {
  width: 100%;
}

.admin-card h4 {
  font-size: 1.06rem;
}

.admin-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-checkbox-wrap {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.admin-inline-select {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.45rem 0.56rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.admin-template-assignment-row {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.62rem;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 370px);
  gap: 0.72rem;
  align-items: start;
}

.admin-template-assignment-row.missing {
  border-color: rgba(185, 29, 34, 0.4);
  background: rgba(255, 244, 245, 0.7);
}

.admin-template-assignment-info {
  display: grid;
  gap: 0.28rem;
}

.admin-template-assignment-title-row {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  flex-wrap: wrap;
}

.admin-template-assignment-info h4 {
  margin: 0;
  font-size: 0.95rem;
}

.admin-assignment-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-assignment-chip.assigned {
  color: #0b633f;
  border-color: rgba(8, 117, 79, 0.28);
  background: rgba(216, 245, 232, 0.72);
}

.admin-assignment-chip.missing {
  color: #8e1f1f;
  border-color: rgba(185, 29, 34, 0.3);
  background: rgba(255, 233, 236, 0.82);
}

.admin-template-assignment-controls {
  display: grid;
  gap: 0.52rem;
}

.admin-template-assignment-controls .shop-input {
  width: 100%;
}

.admin-template-selected-preview {
  margin: 0;
  padding: 0.42rem 0.56rem;
  border: 1px dashed rgba(10, 78, 139, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.orders-table-wrap {
  overflow: auto;
}

.orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 940px;
}

.orders-table th,
.orders-table td {
  border-bottom: 1px solid var(--line-strong);
  padding: 0.65rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.orders-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.orders-table td {
  font-size: 0.87rem;
}

.orders-table td .button {
  padding: 0.42rem 0.68rem;
  font-size: 0.8rem;
}

.table-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-activity-row {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  gap: 0.3rem;
}

.admin-activity-row h4 {
  margin: 0;
  font-size: 0.92rem;
}

.admin-activity-row .admin-meta {
  font-size: 0.8rem;
}

.checkout-event-row.checkout-event-info {
  border-color: rgba(18, 86, 157, 0.28);
  background: rgba(240, 247, 255, 0.65);
}

.checkout-event-row.checkout-event-warn {
  border-color: rgba(154, 100, 0, 0.45);
  background: rgba(255, 249, 238, 0.68);
}

.checkout-event-row.checkout-event-error {
  border-color: rgba(185, 29, 34, 0.45);
  background: rgba(255, 242, 243, 0.72);
}

.qa-row.qa-pass {
  border-color: rgba(15, 122, 92, 0.45);
  background: rgba(241, 255, 250, 0.6);
}

.qa-row.qa-warn {
  border-color: rgba(154, 100, 0, 0.45);
  background: rgba(255, 249, 238, 0.6);
}

.qa-row.qa-fail {
  border-color: rgba(185, 29, 34, 0.45);
  background: rgba(255, 242, 243, 0.62);
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  margin-top: 0.4rem;
  padding: 1.1rem 0 2.2rem;
}

.site-footer-inner {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: inline-flex;
  gap: 0.95rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 1280px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-shell,
  .site-header-inner,
  .hero-content,
  .site-footer-inner {
    width: min(var(--max), calc(100% - 1.4rem));
  }

  .main-stack {
    gap: 0.9rem;
    padding: 0.9rem 0 2rem;
  }

  .section-pad {
    padding: clamp(0.95rem, 3vw, 1.25rem);
  }

  .page-hero {
    padding: clamp(1.4rem, 6vw, 2.2rem) clamp(0.95rem, 4vw, 1.2rem);
  }

  .page-hero p {
    max-width: 100%;
  }

  .capability-grid,
  .service-grid,
  .product-grid,
  .value-grid,
  .roadmap-grid,
  .dual-grid,
  .plan-grid,
  .contact-grid,
  .build-pill-grid,
  .shop-grid,
  .checkout-grid,
  .account-auth-grid,
  .account-metrics-grid,
  .account-favorites-grid,
  .account-settings-grid,
  .account-filter-row,
  .admin-grid,
  .admin-metrics-grid,
  .admin-matrix-grid,
  .shop-form-grid,
  #productInputsFields,
  .admin-product-image-grid {
    grid-template-columns: 1fr;
  }

  .admin-template-assignment-row {
    grid-template-columns: 1fr;
  }

  .shop-recommendation-list {
    grid-template-columns: 1fr;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .subcategory-cards,
  .shop-products {
    grid-template-columns: 1fr;
  }

  #templateRequiredFieldsList {
    grid-template-columns: 1fr;
  }

  .site-form-row {
    grid-template-columns: 1fr;
  }

  .onboarding-chat {
    max-height: 340px;
  }

  .admin-checkbox-grid,
  .admin-product-image-edit-grid,
  .admin-dashboard-links {
    grid-template-columns: 1fr;
  }

  .shop-span-2 {
    grid-column: auto;
  }

  .design-center-shell {
    grid-template-columns: 1fr;
  }

  .design-tool-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0.45rem;
    order: 1;
    top: calc(78px + 0.3rem);
    z-index: 15;
  }

  .design-workspace {
    order: 2;
  }

  .design-tool-button {
    min-height: 42px;
  }

  .design-tool-panel-wrap,
  .design-surface-rail {
    min-height: unset;
  }

  .design-tool-panel-wrap {
    order: 3;
    top: calc(78px + 0.3rem);
  }

  .design-workspace-meta {
    align-items: stretch;
  }

  .design-surface-tabs-inline {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .design-surface-tabs-inline .surface-tab {
    flex: 1 1 160px;
  }

  .shipping-scenario-matrix-wrap {
    overflow: auto;
  }

  .surface-tabs-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-toolbar {
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .canvas-shell {
    min-height: 420px;
  }

  .design-studio-head {
    flex-direction: column;
    align-items: stretch;
  }

  .account-workspace-head,
  .account-order-head {
    flex-direction: column;
    align-items: stretch;
  }

  .map-wrap {
    min-height: 300px;
  }

  .mode-option,
  .shop-select,
  .shop-input,
  .button,
  .quantity-option {
    min-height: 44px;
  }

  .checkout-summary-card {
    position: static;
    top: auto;
  }

  #checkoutButton {
    width: 100%;
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 8;
  }

  .shop-page .main-stack {
    padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }

  .mobile-shop-action-bar {
    display: grid;
  }
}

@media (max-width: 780px) {
  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .site-header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(230, 238, 249, 0.74);
    border-bottom: 1px solid var(--line-strong);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(165%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
    padding: 0.7rem 1.1rem;
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
  }

  .hero-video {
    min-height: 420px;
  }

  .page-hero {
    text-align: center;
  }

  .page-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .button-row .button {
    flex: 1 1 100%;
    text-align: center;
  }

  .account-tab-row .account-tab {
    flex: 1 1 100%;
    text-align: center;
  }

  .admin-note {
    text-align: center;
  }

  .shop-sync-strip {
    justify-content: center;
    text-align: center;
  }

  .canvas-shell {
    padding: 0.45rem;
    min-height: 360px;
  }

  .canvas-shell canvas {
    min-width: 500px;
  }

  .design-tool-rail {
    display: flex;
    overflow-x: auto;
    gap: 0.38rem;
    padding: 0.4rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .design-tool-button {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 40px;
    scroll-snap-align: start;
  }

  .surface-tabs-rail {
    grid-template-columns: 1fr;
  }

  .design-toolbar-group {
    min-width: 0;
    flex: 1 1 120px;
  }

  .design-menu {
    width: 100%;
  }

  .design-menu > summary {
    width: 100%;
    justify-content: center;
  }

  .design-menu-popover {
    position: static;
    min-width: 0;
    margin-top: 0.38rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .category-card {
    min-height: 156px;
    aspect-ratio: 4 / 3;
  }

  .admin-products-pagination {
    align-items: stretch;
  }

  .admin-pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .page-shell,
  .site-header-inner,
  .hero-content,
  .site-footer-inner {
    width: min(var(--max), calc(100% - 1rem));
  }

  .section-pad {
    padding: 0.85rem;
  }

  .category-cards {
    gap: 0.52rem;
  }

  .category-card {
    min-height: 148px;
    border-radius: 12px;
  }

  .category-card-title {
    font-size: 0.98rem;
  }

  .subcategory-card {
    min-height: 68px;
    padding: 0.56rem;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .shop-config-card {
    padding: 0.74rem;
  }

  .onboarding-chat {
    max-height: 270px;
  }

  .canvas-shell canvas {
    min-width: 420px;
  }

  .design-toolbar-actions .button {
    min-height: 36px;
    padding: 0.32rem 0.52rem;
    font-size: 0.74rem;
  }

  .checkout-summary-card {
    padding: 0.72rem;
  }

  .summary-row {
    font-size: 0.84rem;
  }

  .mobile-shop-action-bar {
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.36rem;
    border-radius: 12px;
  }

  .mobile-shop-action-bar .button {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0.34rem 0.5rem;
  }
}

.workspace-panel {
  display: grid;
  gap: 1rem;
}

.workspace-auth-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.workspace-auth-card,
.workspace-admin-card,
.workspace-summary-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.workspace-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.workspace-summary-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #546179;
}

.workspace-summary-value {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #141a26;
}

.workspace-admin-section {
  display: grid;
  gap: 1rem;
}

.workspace-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.workspace-list {
  display: grid;
  gap: 0.7rem;
}

.workspace-list-item {
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: rgba(246, 248, 253, 0.9);
}

.workspace-list-title {
  margin: 0;
  font-weight: 700;
  color: #111826;
}

.workspace-list-meta {
  margin: 0.22rem 0 0;
  color: #47546d;
  font-size: 0.86rem;
}

.workspace-chat-log {
  margin-top: 0.6rem;
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(246, 248, 253, 0.85);
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.workspace-chat-item {
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.workspace-chat-item-assistant {
  border-color: rgba(22, 99, 220, 0.25);
  background: rgba(235, 242, 255, 0.95);
}

.workspace-chat-item-user {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

.workspace-chat-item-system {
  border-style: dashed;
  border-color: rgba(44, 57, 84, 0.25);
  background: rgba(241, 244, 250, 0.85);
}

.workspace-chat-meta {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4e5b74;
}

.workspace-chat-message {
  margin: 0.2rem 0 0;
  color: #1a2436;
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .workspace-head .button-row {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
