:root {
  --bg: #f7f4ef;
  --ink: #18201d;
  --muted: #6d756f;
  --line: #ded7cd;
  --panel: #ffffff;
  --primary: #0f766e;
  --primary-dark: #0b4f49;
  --accent: #ef604b;
  --aqua: #18c6c2;
  --violet: #8758c8;
  --gold: #b7791f;
  --rose: #c24165;
  --blue: var(--primary);
  --teal: var(--primary);
  --shadow: 0 16px 38px rgba(24, 32, 29, .12);
  --shadow-strong: 0 24px 70px rgba(24, 32, 29, .28);
  --surface: rgba(255, 255, 255, .97);
  --soft: rgba(247, 244, 239, .94);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(24,198,194,.08), transparent 34%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  --bg: #121715;
  --ink: #f2f0ea;
  --muted: #b7b1a6;
  --line: #363f39;
  --panel: #1c2420;
  --shadow: 0 16px 38px rgba(0, 0, 0, .28);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, .46);
  --surface: rgba(28, 36, 32, .97);
  --soft: rgba(18, 23, 21, .92);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
  padding: 0 30px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(24, 32, 29, .05);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--violet), var(--accent));
  opacity: .22;
}

:root[data-theme="dark"] .topbar {
  background: rgba(28,36,32,.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand-logo {
  width: 42px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color .18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.icon-button {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .icon-button {
  margin-left: 0;
}

.text-button, .cart-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 800;
}

.subtle-button {
  color: var(--primary-dark);
  background: #e4f6f0;
  border-color: rgba(15, 118, 110, .18);
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 12px;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: end;
  padding: 48px 6vw 34px;
  color: white;
  background:
    linear-gradient(90deg, rgba(11,28,24,.92), rgba(15,78,72,.68), rgba(239,96,75,.18)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80") center/cover;
  background-attachment: fixed;
  overflow: hidden;
}

.hero > * {
  animation: riseIn .7s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.public-hero {
  min-height: 470px;
}

.hero-logo {
  width: min(430px, 86vw);
  height: auto;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.28));
}

.hero h1 {
  margin: 6px 0;
  font-size: 58px;
  letter-spacing: 0;
}

.hero p { max-width: 680px; color: rgba(255,255,255,.88); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow { color: #a9f4e7; }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.primary-action, .secondary-action, .search-row button, .message-box button, .purchase-box button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
}

.primary-action, .search-row button, .message-box button, .purchase-box button {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
}

.primary-action:hover, .search-row button:hover, .message-box button:hover, .purchase-box button:hover {
  background: var(--primary-dark);
}

.secondary-action {
  color: white;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
}

.panel-secondary {
  color: var(--primary-dark);
  background: #e4f6f0;
  border-color: rgba(15, 118, 110, .2);
  box-shadow: none;
}

.search-panel {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 10px;
  color: var(--muted);
}

.filter-row .active {
  color: white;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 26px 28px 48px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--muted);
}

.side-item.active, .side-item:hover {
  background: #e5f3ee;
  color: var(--primary-dark);
}

:root[data-theme="dark"] .side-item.active,
:root[data-theme="dark"] .side-item:hover {
  background: #243b35;
}

.side-block {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.side-block strong { color: var(--ink); }

.content, .portal-section, .create-flow, .detail-shell, .how-section, .orders-section,
.enterprise-signup-section, .role-section, .publication-config-section,
.dashboard-section, .reports-section, .verification-section, .billing-section {
  padding: 26px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
}

.section-heading span {
  color: var(--muted);
  font-weight: 700;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.listing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(23,32,42,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, .28);
  box-shadow: 0 18px 38px rgba(23,32,42,.11);
}

.card-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.listing-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.price {
  font-size: 18px;
  font-weight: 900;
}

.listing-title {
  min-height: 42px;
  font-weight: 800;
}

.listing-meta {
  color: var(--muted);
  font-size: 13px;
}

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

.badges span, .security-pill {
  border-radius: 999px;
  padding: 6px 8px;
  background: #e4f6f0;
  color: #0b655e;
  font-size: 12px;
  font-weight: 800;
}

.market-band {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(280px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin: 0 6vw 24px;
  padding: 30px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #0f3f3a, #68489e 58%, #ef604b);
}

.market-band h2 {
  margin: 0;
  font-size: 28px;
}

.market-band p {
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.market-band .eyebrow {
  color: #a9f4e7;
}

.detail-shell, .create-flow, .portal-section, .how-section, .orders-section,
.enterprise-signup-section, .role-section, .publication-config-section,
.dashboard-section, .reports-section, .verification-section, .billing-section {
  padding-left: 6vw;
  padding-right: 6vw;
}

.detail-open .hero,
.detail-open .layout,
.detail-open .market-band,
.detail-open .how-section,
.detail-open .orders-section {
  display: none;
}

.portal-toast {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(9, 110, 102, .22);
  border-radius: 8px;
  background: rgba(12, 91, 82, .96);
  color: #fff;
  box-shadow: 0 18px 42px rgba(12, 30, 28, .22);
  font-weight: 700;
}

.detail-open .detail-shell {
  padding-top: 28px;
}

.back-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(300px, .8fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 52px rgba(24, 32, 29, .12);
}

.gallery {
  background:
    radial-gradient(circle at 50% 18%, rgba(24,198,194,.12), transparent 32%),
    linear-gradient(135deg, #151d20, #222832);
  padding: 18px;
}

.gallery img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbs img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid white;
}

.detail-panel {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-panel h2 {
  margin: 0;
  font-size: 30px;
}

.detail-price {
  font-size: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-description {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  line-height: 1.5;
}

.listing-facts {
  display: grid;
  gap: 8px;
}

.listing-facts div {
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(229,243,238,.52));
  line-height: 1.45;
}

.inventory-line {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff6e8;
  color: #84530d;
  font-weight: 800;
}

:root[data-theme="dark"] .inventory-line {
  background: #342a1e;
  color: #f0c883;
}

.seller-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.avatar, .seller-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.seller-logo {
  object-fit: contain;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
}

.message-box {
  display: flex;
  gap: 8px;
}

.message-box input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.purchase-box, .negotiation-box {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.purchase-box label, .negotiation-box label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.negotiation-box textarea, .negotiation-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.negotiation-box textarea {
  min-height: 92px;
  resize: vertical;
}

.negotiation-box button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.commission-preview {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #e4f6f0;
  color: #0b655e;
}

.commission-preview span {
  font-size: 13px;
  color: var(--muted);
}

.quantity-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
}

.quantity-row input, .form-grid input, .cart-item input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.stock-line {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.publication-types, .portal-grid, .dashboard-grid, .operations-grid, .kyc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.publication-types button, .portal-card, .preview-card, .operation-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  padding: 18px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(24, 32, 29, .06);
}

.publication-types button {
  min-height: 154px;
  display: grid;
  gap: 8px;
}

.publication-types span {
  font-size: 34px;
  color: var(--accent);
}

.publication-types small, .portal-card p, .preview-card p {
  color: var(--muted);
  line-height: 1.45;
}

.editor-preview {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 18px;
  margin-top: 18px;
}

.editor {
  display: grid;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.editor label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.editor input, .editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.editor textarea {
  min-height: 110px;
  resize: vertical;
}

.toolbar {
  display: flex;
  gap: 6px;
}

.toolbar button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.preview-card {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 8px;
}

.portal-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.portal-home {
  padding: 36px 6vw 56px;
}

.portal-home h1 {
  margin: 0;
  max-width: 920px;
  font-size: 34px;
  letter-spacing: 0;
}

.seller-hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 380px);
  gap: 34px;
  align-items: center;
  padding: 58px 8vw;
  color: white;
  background:
    linear-gradient(112deg, rgba(6, 31, 28, .96), rgba(14, 86, 78, .72), rgba(135, 88, 200, .36)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80") center/cover;
  overflow: hidden;
}

.seller-copy h1 {
  margin: 0 0 18px;
  max-width: 860px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.seller-copy p {
  max-width: 720px;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
  font-size: 18px;
}

.seller-pricing {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}

.seller-pricing span {
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.seller-pricing strong {
  font-size: 54px;
  line-height: 1;
}

.seller-pricing small,
.seller-pricing div {
  color: var(--muted);
  line-height: 1.4;
}

.seller-section {
  padding: 48px 6vw;
}

.seller-step-grid,
.seller-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.seller-step-grid article,
.seller-benefits article {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(24,32,29,.07);
}

.seller-step-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.seller-step-grid strong,
.seller-benefits strong {
  font-size: 20px;
}

.seller-step-grid p,
.seller-benefits span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.seller-benefit-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(300px, 1.28fr);
  gap: 32px;
  align-items: start;
}

.seller-benefit-layout h2,
.seller-cta h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: 0;
}

.seller-cta {
  margin: 0 6vw 54px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #0f3f3a, #8758c8 58%, #ef604b);
}

.seller-cta .eyebrow {
  color: #a9f4e7;
}

.portal-login {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 440px);
  gap: 34px;
  align-items: center;
  padding: 48px 8vw;
  background:
    radial-gradient(circle at 12% 18%, rgba(24,198,194,.18), transparent 34%),
    linear-gradient(115deg, rgba(8,35,32,.96) 0%, rgba(14,67,61,.88) 42%, rgba(194,65,101,.56) 100%),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}

.login-copy h1 {
  margin: 0 0 14px;
  max-width: 780px;
  font-size: 46px;
  letter-spacing: 0;
  line-height: 1.06;
  text-shadow: 0 12px 36px rgba(0,0,0,.22);
}

.login-copy p {
  max-width: 640px;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  font-size: 17px;
}

.login-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(24,198,194,.13), transparent 34%),
    rgba(255,255,255,.94);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.portal-auth-card {
  min-height: 470px;
  align-content: center;
}

.login-step {
  display: grid;
  gap: 14px;
  animation: fadeUp .22s ease both;
}

.login-step[hidden] {
  display: none;
}

.login-step p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.45;
}

.login-step-count {
  justify-self: start;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 999px;
  background: #e4f6f0;
  color: var(--primary-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.login-card label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.login-card input {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(251,250,247,.94);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}

.portal-mfa-setup {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(15,118,110,.14);
  border-radius: 8px;
  background: #e4f6f0;
  padding: 16px;
}

.portal-mfa-setup img {
  width: 122px;
  height: 122px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(15,118,110,.18);
  padding: 6px;
  object-fit: contain;
}

.portal-mfa-setup p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.login-message {
  margin: 0;
  border: 1px solid rgba(196, 67, 67, .25);
  border-radius: 8px;
  background: rgba(255, 237, 237, .9);
  color: #842029;
  padding: 10px 12px;
  font-weight: 800;
}

.login-message[data-type="ok"] {
  border-color: rgba(15, 118, 110, .22);
  background: rgba(228, 246, 240, .86);
  color: var(--primary-dark);
}

.demo-access {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 8px;
  background: rgba(228,246,240,.74);
  padding: 10px 12px;
  color: var(--primary-dark);
}

.demo-access span,
.demo-access small {
  color: var(--muted);
}

.link-action {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 900;
  padding: 4px;
  text-align: center;
}

.signup-shell {
  min-height: calc(100vh - 70px);
  padding: 42px 6vw 64px;
  background:
    radial-gradient(circle at top right, rgba(194,65,101,.08), transparent 30%),
    var(--bg);
}

.signup-heading {
  max-width: 980px;
  margin-bottom: 22px;
}

.signup-heading h1 {
  margin: 4px 0 10px;
  font-size: 40px;
  letter-spacing: 0;
}

.signup-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.review-status,
.review-banner {
  display: inline-grid;
  gap: 4px;
  border-radius: 8px;
  border: 1px solid rgba(15,118,110,.16);
  background: #e4f6f0;
  color: var(--primary-dark);
  padding: 10px 12px;
  font-weight: 800;
}

.review-banner {
  display: grid;
  max-width: 860px;
  margin-bottom: 16px;
}

.review-banner p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

.company-signup-form {
  align-items: start;
}

.company-signup-form > .primary-action,
.review-form > .primary-action {
  justify-self: start;
}

.rich-text-shell {
  gap: 10px;
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.rich-text-toolbar button {
  min-width: 38px;
  min-height: 36px;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 8px;
  background: #eef8f4;
  color: var(--primary-dark);
  font-weight: 900;
}

:root[data-theme="dark"] .rich-text-toolbar button {
  background: rgba(15,118,110,.22);
  color: var(--ink);
}

.rich-text-editor {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  padding: 14px;
  line-height: 1.5;
  outline: none;
}

.rich-text-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,118,110,.12);
}

.rich-text-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.form-status {
  align-self: center;
  margin: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 800;
}

.form-status[data-type="ok"] {
  background: #e4f6f0;
  color: var(--primary-dark);
}

.form-status[data-type="error"] {
  background: #fde8e8;
  color: #8a1c2a;
}

.form-status[data-type="info"] {
  background: #edf5ff;
  color: #244765;
}

:root[data-theme="dark"] .form-status[data-type="info"],
:root[data-theme="dark"] .form-status[data-type="ok"] {
  color: var(--ink);
}

.notification-channel {
  align-self: end;
}

.whatsapp-action {
  align-self: end;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(15,118,110,.2);
  border-radius: 10px;
  background: #e4f6f0;
  color: var(--primary-dark);
  font-weight: 900;
  padding: 10px 16px;
}

.notification-history {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 18px;
}

:root[data-theme="dark"] .notification-history {
  background: rgba(28,36,32,.78);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.notification-item strong,
.notification-item span,
.notification-item small,
.notification-item p {
  display: block;
}

.notification-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.notification-meta {
  min-width: 180px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.notification-meta a {
  color: var(--primary-dark);
  font-weight: 900;
}

.notification-meta button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 10px;
  text-align: left;
}

.notification-meta button:disabled {
  cursor: wait;
  opacity: 0.65;
}

:root[data-theme="dark"] .notification-meta a {
  color: var(--aqua);
}

.location-field span {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.location-field .icon-button {
  margin-left: 0;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: var(--primary-dark);
}

.portal-app {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 70px);
  background:
    radial-gradient(circle at top right, rgba(194,65,101,.08), transparent 30%),
    var(--bg);
}

.portal-menu {
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 70px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #10221f, #162c28);
}

.portal-menu button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.68);
  padding: 12px;
  text-align: left;
  font-weight: 800;
}

.portal-menu button.active,
.portal-menu button:hover {
  background: rgba(24,198,194,.14);
  color: #d7fffa;
}

.portal-workspace {
  padding: 32px 5vw 54px;
}

.portal-panel {
  display: none;
}

.portal-panel.active {
  display: block;
}

.portal-panel h1 {
  margin: 0 0 20px;
  max-width: 920px;
  font-size: 34px;
}

.compact-form {
  max-width: 1180px;
}

.portal-card ul, .operation-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.operations-grid {
  margin-top: 16px;
}

.operation-panel {
  min-height: 170px;
}

.operation-panel span, .portal-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.operation-panel p, .transaction-list p {
  color: var(--muted);
  line-height: 1.45;
}

.period-select, .reports-toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.searchable-select {
  position: relative;
  display: grid;
  width: 100%;
}

.searchable-select input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  padding: 12px 44px 12px 14px;
  font: inherit;
  font-weight: 700;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.searchable-select input:focus {
  outline: 0;
  border-color: rgba(15,118,110,.72);
  box-shadow: 0 0 0 4px rgba(24,198,194,.14);
  background: white;
}

.searchable-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.searchable-toggle:hover {
  background: rgba(24,198,194,.12);
}

.searchable-options {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 10px;
  background: #151a1d;
  box-shadow: 0 18px 38px rgba(15, 23, 20, .22);
}

.searchable-options[hidden] {
  display: none;
}

.searchable-options::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: #151a1d;
  transform: rotate(45deg);
}

.searchable-option {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: #f7fffc;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.searchable-option:hover,
.searchable-option:focus {
  outline: 0;
  background: rgba(24,198,194,.18);
}

.searchable-empty {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px 12px;
  color: rgba(247,255,252,.72);
}

.native-search-select {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.reports-toolbar button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

#topProducts {
  margin: 0;
  padding-left: 22px;
}

#topProducts li {
  padding: 6px 0;
  color: var(--ink);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 23, 21, .68);
  backdrop-filter: blur(8px);
}

.terms-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(24,198,194,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,250,247,.98));
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 30px 88px rgba(0,0,0,.34);
  padding: 34px;
}

.terms-panel h2 {
  margin: 0 0 16px;
  font-size: 34px;
  letter-spacing: 0;
}

.terms-scroll {
  max-height: 34vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 18px;
  line-height: 1.55;
}

.terms-scroll p {
  margin: 0 0 12px;
  color: var(--muted);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 12px;
}

.signature-grid label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.signature-grid input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: white;
  font: inherit;
}

.signature-pad {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.signature-pad canvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.signature-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.auth-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(24,198,194,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,250,247,.98));
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  padding: 34px;
}

.auth-view {
  display: grid;
  gap: 16px;
}

.auth-panel h2, .cart-head h2 {
  margin: 0;
}

.auth-panel h2 {
  font-size: 34px;
  letter-spacing: 0;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.45;
}

.form-grid, .login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.login-grid {
  grid-template-columns: 1fr;
  margin: 0;
}

.form-grid label, .login-grid label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.login-grid label,
.form-grid label {
  color: #22302c;
}

.auth-panel input,
.enterprise-form input, .enterprise-form select,
.enterprise-form textarea,
.invite-form input, .invite-form select,
.quantity-row input, .form-grid input, .cart-item input,
.message-box input, .negotiation-box input, .negotiation-box textarea,
.editor input, .editor textarea, .search-row input,
.period-select, .reports-toolbar select {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-panel input,
.payment-form input,
.payment-breakdown input[type="file"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(30, 42, 37, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.auth-panel input:focus,
.payment-form input:focus,
.enterprise-form input:focus, .enterprise-form select:focus,
.enterprise-form textarea:focus,
.invite-form input:focus, .invite-form select:focus,
.quantity-row input:focus, .form-grid input:focus, .cart-item input:focus,
.message-box input:focus, .negotiation-box input:focus, .negotiation-box textarea:focus,
.editor input:focus, .editor textarea:focus, .search-row input:focus,
.period-select:focus, .reports-toolbar select:focus {
  outline: 0;
  border-color: rgba(15,118,110,.72);
  box-shadow: 0 0 0 4px rgba(24,198,194,.14);
  background: white;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 900;
  padding: 0;
}

.verification-card,
.mfa-setup {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 8px;
  background: #e4f6f0;
  color: var(--primary-dark);
  padding: 14px;
}

.verification-card span,
.mfa-setup span {
  color: var(--muted);
  line-height: 1.45;
}

.mfa-setup {
  grid-template-columns: 96px 1fr;
  align-items: center;
}

.qr-box {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(15,118,110,.16);
  padding: 5px;
  object-fit: contain;
}

.capture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.capture-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f5f1ea);
}

.capture-card.missing {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239,96,75,.12);
}

.form-error {
  margin: -4px 0 10px;
  border: 1px solid rgba(239,96,75,.28);
  border-radius: 8px;
  background: rgba(239,96,75,.1);
  color: #9f321f;
  padding: 10px 12px;
  font-weight: 800;
}

.capture-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.capture-card button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.capture-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}

.capture-card input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  color: var(--muted);
}

.capture-card input[type="file"]::file-selector-button {
  margin-right: 8px;
  border: 0;
  border-radius: 8px;
  background: #e4f6f0;
  color: var(--primary-dark);
  padding: 8px 10px;
  font-weight: 800;
}

.capture-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  background: #f7fbfa center/cover no-repeat;
  overflow: hidden;
}

.capture-preview span {
  position: relative;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font-weight: 800;
}

.capture-preview::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 999px rgba(15, 118, 110, .09);
}

.selfie-guide::after {
  border-radius: 50%;
  inset: 16% 24%;
}

.document-guide::after {
  inset: 24% 8%;
  border-radius: 6px;
}

.capture-preview.has-photo::after {
  border-color: white;
  box-shadow: 0 0 0 999px rgba(0,0,0,.18);
}

.camera-panel {
  position: relative;
  width: min(720px, 100%);
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}

.camera-panel .close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.camera-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #111817;
}

.camera-stage video, .camera-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-guide {
  position: absolute;
  pointer-events: none;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 999px rgba(0,0,0,.36);
}

.camera-guide.face {
  inset: 14% 26%;
  border-radius: 50%;
}

.camera-guide.document {
  inset: 22% 7%;
  border-radius: 8px;
}

.camera-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.camera-actions button:not(.primary-action) {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
}

.map-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.54);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  padding: 22px;
}

.map-panel .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.map-panel h2 {
  margin: 0 0 16px;
}

.map-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.map-search input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.map-panel iframe {
  width: 100%;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.how-section, .orders-section {
  margin-top: 10px;
}

.itinerary-rail, .orders-list, .order-companies {
  display: grid;
  gap: 14px;
}

.itinerary-rail {
  position: relative;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  align-items: stretch;
  padding: 22px 0 8px;
}

.itinerary-rail::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 42px;
  height: 2px;
  background: linear-gradient(90deg, rgba(24,198,194,.32), rgba(135,88,200,.42), rgba(239,96,75,.28));
}

.itinerary-step {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 178px;
  border: 1px solid rgba(15,118,110,.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    var(--panel);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  box-shadow: 0 14px 34px rgba(24,32,29,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.itinerary-step:nth-child(even) {
  margin-top: 28px;
}

.itinerary-step:hover,
.itinerary-step.active {
  transform: translateY(-5px);
  border-color: rgba(24,198,194,.52);
  box-shadow: 0 22px 48px rgba(15,118,110,.16);
}

.itinerary-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15,118,110,.22);
}

.itinerary-step strong {
  font-size: 17px;
}

.itinerary-step small {
  color: var(--muted);
  line-height: 1.35;
}

.order-card, .empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.45;
}

.guide-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, .9fr);
  gap: 26px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 12%, rgba(24,198,194,.16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,244,239,.96));
  box-shadow: 0 32px 90px rgba(0,0,0,.32);
  padding: 34px;
}

.guide-panel .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.guide-screen {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.2), rgba(135,88,200,.16)),
    #10221f;
  padding: 26px;
  overflow: hidden;
}

.guide-copy {
  align-self: center;
  padding-right: 24px;
}

.guide-copy h2 {
  margin: 0 0 12px;
  font-size: 38px;
  letter-spacing: 0;
}

.guide-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.guide-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.guide-actions button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.guide-actions .secondary-action {
  color: var(--primary-dark);
  background: #e4f6f0;
  border: 1px solid rgba(15,118,110,.18);
}

.mini-browser {
  width: min(520px, 100%);
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #18201d;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.browser-dots span:nth-child(2) { background: var(--gold); }
.browser-dots span:nth-child(3) { background: var(--aqua); }

.mini-form,
.mini-search,
.mini-side,
.mini-cart-group,
.mini-order {
  display: grid;
  gap: 10px;
  border: 1px solid #e1d8ce;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.mini-form div,
.mini-search div,
.mini-card-fields div {
  height: 34px;
  border-radius: 8px;
  background: #e9e3da;
}

.mini-captures,
.mini-products,
.mini-tabs,
.mini-card-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-captures span,
.mini-tabs span {
  border-radius: 8px;
  background: #e4f6f0;
  color: var(--primary-dark);
  padding: 10px;
  font-weight: 800;
  text-align: center;
}

.mini-products span,
.mini-photo {
  min-height: 118px;
  border-radius: 8px;
  background: linear-gradient(135deg, #18c6c2, #8758c8);
}

.mini-browser button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  padding: 10px;
  font-weight: 800;
}

.mini-detail {
  grid-template-columns: 1.25fr .85fr;
}

.mini-detail .browser-dots {
  grid-column: 1 / -1;
}

.mini-side span {
  color: var(--gold);
  font-weight: 900;
}

.mini-track {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-head div {
  display: grid;
  gap: 4px;
}

.order-head span, .order-companies span {
  color: var(--muted);
  font-size: 13px;
}

.order-companies {
  margin-top: 12px;
}

.order-companies section {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
}

.order-companies ul, .order-companies ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.rich-order-card,
.fulfillment-card,
.ticket-card {
  box-shadow: 0 16px 34px rgba(24,32,29,.08);
}

.company-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tracking-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.timeline-step {
  position: relative;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.timeline-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  font-weight: 900;
}

.timeline-step.done span {
  background: #16a34a;
  color: white;
}

.timeline-step.current span {
  background: #facc15;
  color: #1f2937;
}

.timeline-step small {
  color: var(--muted);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.status-actions button,
.operation-panel button,
.ticket-reassign button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  padding: 9px 11px;
  font-weight: 800;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.shipping-label {
  display: grid;
  gap: 7px;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  background: #fff;
  color: #18201d;
  padding: 14px;
}

.shipping-label span {
  color: #4b5563;
}

.shipping-label .fragile {
  color: var(--accent);
  font-weight: 900;
}

.ticket-board {
  display: grid;
  gap: 14px;
}

.ticket-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.ticket-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-meta span {
  border-radius: 999px;
  background: #e4f6f0;
  color: var(--primary-dark);
  padding: 7px 9px;
}

.claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.claim-card {
  border-left: 4px solid var(--primary);
}

.tasknote-tree {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tasknote-tree li {
  display: flex;
  gap: 8px;
  align-items: start;
  color: var(--muted);
}

.tasknote-tree li span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: white;
  font-size: 12px;
}

.ticket-reassign {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ticket-reassign input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.enterprise-form, .invite-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(24, 32, 29, .07);
}

.enterprise-form {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.invite-form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px) auto;
  align-items: end;
  margin-bottom: 16px;
}

.enterprise-form label, .invite-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.enterprise-form input, .enterprise-form select,
.enterprise-form textarea,
.invite-form input, .invite-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.enterprise-form textarea {
  min-height: 96px;
  resize: vertical;
}

.enterprise-form .wide-field {
  grid-column: 1 / -1;
  color: var(--muted);
}

.enterprise-form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.product-manager {
  display: grid;
  gap: 14px;
}

.product-controlbar,
.product-main,
.category-promo-card,
.category-promo-drawer,
.product-live-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 34px rgba(24, 32, 29, .07);
}

.product-controlbar {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(240px, 1.4fr) minmax(140px, .7fr) minmax(150px, .7fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
}

.product-controlbar label,
.category-promo-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.product-controlbar input,
.product-controlbar select,
.category-promo-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface);
}

.full-button {
  width: 100%;
  text-align: center;
}

.category-promo-drawer {
  padding: 0;
  overflow: hidden;
}

.category-promo-drawer summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--primary-dark);
  font-weight: 900;
}

.category-promo-card {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, .5fr) minmax(150px, .7fr) minmax(150px, .7fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.category-promo-card button,
.product-row-actions button,
.view-toggle button,
.form-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.category-promo-card button,
.product-row-actions button:first-child,
.form-actions .primary-action {
  border-color: transparent;
  background: var(--primary);
  color: white;
}

.ai-control-shell {
  display: grid;
  gap: 18px;
}

.ai-control-summary,
.ai-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.ai-control-summary article,
.ai-metric-grid article,
.ai-agent-card,
.ai-tool-card,
.ai-pending-card,
.ai-control-side,
.ai-chat-result article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ai-control-summary article,
.ai-metric-grid article {
  padding: 14px;
}

.ai-control-summary span,
.ai-metric-grid span,
.ai-agent-card span,
.ai-tool-card span,
.ai-pending-card span {
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ai-control-summary strong,
.ai-metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.3rem;
}

.ai-control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-control-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 800;
}

.ai-control-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.ai-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px;
  align-items: start;
}

.ai-control-main,
.ai-control-side {
  min-width: 0;
}

.ai-control-side {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.ai-control-side h3 {
  margin: 0 0 8px;
}

.ai-control-side > div {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ai-control-side > div > div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ai-control-side span {
  display: block;
  color: var(--ink-muted);
  font-size: .85rem;
}

.ai-tab-panel {
  display: none;
}

.ai-tab-panel.active {
  display: grid;
  gap: 14px;
}

.ai-agent-grid,
.ai-tool-grid,
.ai-pending-list {
  display: grid;
  gap: 12px;
}

.ai-agent-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ai-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ai-agent-card,
.ai-tool-card,
.ai-pending-card {
  padding: 16px;
}

.ai-agent-card p,
.ai-tool-card p,
.ai-pending-card p,
.ai-metric-grid p {
  color: var(--ink-muted);
}

.ai-agent-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-weight: 800;
}

.ai-agent-personality {
  border-left: 3px solid var(--primary);
  margin: 10px 0 0;
  padding-left: 10px;
}

.ai-agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-agent-meta span,
.ai-tool-card small {
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  padding: 6px 8px;
  font-size: .78rem;
  font-weight: 800;
}

.ai-pending-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ai-pending-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-pending-actions button,
.ai-chat-form button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.ai-pending-actions button:first-child,
.ai-chat-form button {
  border-color: transparent;
  background: var(--primary);
  color: white;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(180px, .7fr) auto;
  gap: 12px;
  align-items: end;
}

.ai-chat-form .wide-field {
  grid-column: 1 / -1;
}

.ai-chat-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.ai-chat-form textarea {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.ai-chat-result article {
  padding: 14px;
}

.ai-chat-result .requires-approval {
  border-color: rgba(164, 107, 0, .35);
  background: rgba(255, 244, 224, .88);
}

.ai-prompt-card,
.ai-conversation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ai-prompt-card summary,
.ai-conversation-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.ai-prompt-card summary {
  cursor: pointer;
}

.ai-prompt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.ai-prompt-meta span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 900;
}

.ai-prompt-card pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 14px;
  white-space: pre-wrap;
  color: var(--ink-muted);
}

.ai-conversation-list,
.ai-chat-thread {
  display: grid;
  gap: 10px;
}

.ai-chat-thread {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.ai-chat-line {
  max-width: 86%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.ai-chat-line span {
  display: block;
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-chat-line.from-user {
  margin-left: auto;
  background: var(--primary);
  color: white;
}

.ai-chat-line.from-user span {
  color: white;
}

.ai-chat-line.from-agent {
  background: var(--soft);
}

.ai-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ai-chat-launch {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(15, 118, 110, .98), rgba(24, 198, 194, .92));
  color: white;
  box-shadow: 0 18px 46px rgba(15, 118, 110, .45), 0 0 0 6px rgba(255, 255, 255, .16);
  font-weight: 1000;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ai-chat-launch:hover,
.ai-chat-launch:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 58px rgba(15, 118, 110, .54), 0 0 0 7px rgba(24, 198, 194, .18);
  filter: saturate(1.08);
}

.ai-chat-launch svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.ai-chat-panel {
  width: min(380px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  padding: 14px;
  backdrop-filter: blur(12px);
}

.ai-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-chat-panel header span,
.ai-conversation-card span,
.ai-prompt-card summary span {
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ai-chat-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 900;
}

.ai-chat-panel label,
.ai-chat-panel form {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.ai-chat-panel select,
.ai-chat-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px;
}

.ai-widget-messages {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  margin: 12px 0;
}

.ai-widget-messages article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
  color: var(--ink);
}

.ai-widget-messages .from-user {
  margin-left: 28px;
  background: var(--primary);
  color: white;
}

.ai-widget-messages .from-agent {
  margin-right: 28px;
}

.ai-widget-messages .requires-approval {
  border-color: rgba(164, 107, 0, .35);
  background: rgba(255, 244, 224, .92);
}

.ai-chat-panel form button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  padding: 11px 14px;
  font-weight: 1000;
}

.responsive-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.responsive-table th {
  background: var(--soft);
  color: var(--primary-dark);
  font-size: .82rem;
  text-transform: uppercase;
}

.product-main {
  padding: 14px;
}

.product-row-title,
.editor-head,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-controlbar strong {
  display: block;
  font-size: 24px;
}

.view-toggle {
  display: inline-flex;
  gap: 6px;
}

.view-toggle button.active {
  background: var(--ink);
  color: white;
}

.product-publications {
  display: grid;
  gap: 12px;
}

.product-publications.grid-view {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.product-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.product-row:hover {
  border-color: rgba(20,151,135,.42);
  box-shadow: 0 10px 24px rgba(24, 32, 29, .08);
}

.product-row.muted-product {
  opacity: .72;
}

.product-publications.grid-view .product-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.product-thumb {
  width: 86px;
  min-height: 86px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24,198,194,.2), rgba(114,80,190,.22));
  display: grid;
  place-items: center;
  font-weight: 900;
}

.product-publications.grid-view .product-thumb {
  width: 100%;
  min-height: 150px;
}

.product-thumb img,
.product-thumb video,
.preview-media img,
.preview-media video,
.product-media-strip img,
.product-media-strip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-row-main {
  min-width: 0;
}

.product-row-title strong {
  font-size: 18px;
  line-height: 1.15;
}

.product-row-title span {
  white-space: nowrap;
  font-weight: 900;
}

.product-row p,
.product-row small {
  color: var(--muted);
  line-height: 1.4;
}

.product-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  margin-right: 6px;
  background: rgba(20,151,135,.12);
  color: var(--primary-dark);
  font-weight: 900;
}

.product-promo,
.old-price {
  color: #9a5a00;
}

.old-price {
  display: inline-block;
  margin-left: 8px;
  text-decoration: line-through;
}

.product-editor {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-form {
  max-height: min(76vh, 760px);
  overflow: auto;
  align-content: start;
  padding-right: 8px;
}

.product-form label {
  min-width: 0;
}

.product-form input,
.product-form select,
.product-form textarea,
.product-form .searchable-select input,
.product-form .rich-editor {
  border-radius: 14px;
}

.promo-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.promo-date-grid label {
  display: grid;
  gap: 8px;
}

.media-uploader span {
  color: var(--muted);
  font-weight: 500;
}

.product-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.product-media-strip figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(13, 32, 28, .08);
}

.product-media-strip img,
.product-media-strip video {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.product-media-strip figcaption {
  padding: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-media-strip figure button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(12, 22, 20, .78);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

.rich-product-field {
  display: grid;
  gap: 10px;
}

.rich-product-field > span {
  font-weight: 900;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.rich-toolbar button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.rich-toolbar button:hover {
  border-color: rgba(24, 132, 122, .38);
  background: rgba(24, 132, 122, .1);
}

.rich-editor {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  outline: none;
  line-height: 1.55;
  overflow: auto;
}

.rich-editor:focus {
  border-color: rgba(24, 132, 122, .5);
  box-shadow: 0 0 0 4px rgba(24, 132, 122, .12);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-weight: 700;
}

.product-live-preview {
  padding: 14px;
}

.preview-market-card {
  display: grid;
  grid-template-columns: minmax(140px, 44%) 1fr;
  gap: 14px;
  align-items: stretch;
}

.preview-media {
  min-height: 260px;
  border-radius: 8px;
  overflow: hidden;
  background: #16211f;
}

.preview-market-card span {
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.preview-market-card h3 {
  margin: 6px 0;
  font-size: 24px;
}

.preview-market-card strong {
  font-size: 22px;
}

.preview-market-card p,
.preview-market-card li {
  color: var(--muted);
  line-height: 1.4;
}

.product-modal[hidden] {
  display: none;
}

.product-modal-panel,
.product-preview-modal {
  position: relative;
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(9, 18, 16, .28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.product-modal-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, .75fr);
  gap: 16px;
  padding: 22px;
}

.product-preview-modal {
  padding: 18px;
}

.seller-preview-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
}

.seller-preview-gallery {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  background: #18211f;
  padding: 12px;
}

.seller-preview-main {
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #0e1715;
}

.seller-preview-main img,
.seller-preview-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seller-preview-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.seller-preview-thumbs span {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
}

.seller-preview-thumbs img,
.seller-preview-thumbs video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-preview-detail {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface);
}

.seller-preview-detail h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.seller-preview-detail > strong {
  font-size: 28px;
}

.badge-row,
.seller-card-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(20,151,135,.13);
  color: var(--primary-dark);
  font-weight: 900;
}

.stock-note {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 231, 180, .45);
  color: #815005;
  font-weight: 900;
}

.seller-config-copy {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.5;
}

.seller-card-mini img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.seller-card-mini p {
  display: grid;
  margin: 0;
}

.role-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.role-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.role-card-head span {
  color: var(--muted);
}

.permission-table {
  min-width: 720px;
  display: grid;
  gap: 6px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(4, 92px);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg);
}

.permission-head {
  background: var(--ink);
  color: var(--panel);
  font-weight: 800;
}

.permission-row label {
  display: grid;
  place-items: center;
}

.close-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.auth-panel .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 55;
  width: min(520px, 100vw);
  height: 100vh;
  overflow: auto;
  padding: 20px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 36px rgba(0,0,0,.16);
}

.cart-head {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin: -20px -20px 16px;
  padding: 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-company {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg);
}

.cart-company-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cart-company small {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 76px auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.cart-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.cart-item button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.checkout-panel {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-options label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.payment-breakdown {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.payment-breakdown div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.payment-breakdown label {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

.payment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.payment-form label:first-child,
.payment-form label:nth-child(2) {
  grid-column: 1 / -1;
}

.payment-form .save-card-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-form .save-card-row input {
  width: auto;
  min-height: auto;
  box-shadow: none;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.account-summary div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.74);
}

.account-summary span {
  color: var(--muted);
  font-size: 13px;
}

.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-captures {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-product-link {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-breakdown strong {
  color: var(--ink);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(24,198,194,.1), transparent 34%),
    linear-gradient(180deg, #0f1412 0%, var(--bg) 42%);
}

:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .text-button,
:root[data-theme="dark"] .cart-button,
:root[data-theme="dark"] .close-button,
:root[data-theme="dark"] .cart-item button {
  background: #1f2925;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .auth-panel,
:root[data-theme="dark"] .guide-panel,
:root[data-theme="dark"] .enterprise-form,
:root[data-theme="dark"] .invite-form,
:root[data-theme="dark"] .role-card,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .search-panel,
:root[data-theme="dark"] .cart-drawer,
:root[data-theme="dark"] .map-panel,
:root[data-theme="dark"] .camera-panel,
:root[data-theme="dark"] .product-controlbar,
:root[data-theme="dark"] .product-main,
:root[data-theme="dark"] .category-promo-card,
:root[data-theme="dark"] .category-promo-drawer,
:root[data-theme="dark"] .product-modal-panel,
:root[data-theme="dark"] .product-preview-modal,
:root[data-theme="dark"] .seller-preview-detail,
:root[data-theme="dark"] .product-live-preview {
  background:
    radial-gradient(circle at top right, rgba(24,198,194,.08), transparent 34%),
    #1c2420;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .login-card input,
:root[data-theme="dark"] .auth-panel input,
:root[data-theme="dark"] .payment-form input,
:root[data-theme="dark"] .enterprise-form input,
:root[data-theme="dark"] .enterprise-form select,
:root[data-theme="dark"] .enterprise-form textarea,
:root[data-theme="dark"] .invite-form input,
:root[data-theme="dark"] .invite-form select,
:root[data-theme="dark"] .search-row input,
:root[data-theme="dark"] .period-select,
:root[data-theme="dark"] .reports-toolbar select,
:root[data-theme="dark"] .searchable-select input,
:root[data-theme="dark"] .searchable-toggle,
:root[data-theme="dark"] .map-search input {
  background: #111815;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .product-controlbar input,
:root[data-theme="dark"] .product-controlbar select,
:root[data-theme="dark"] .category-promo-card input,
:root[data-theme="dark"] .product-row-actions button,
:root[data-theme="dark"] .view-toggle button,
:root[data-theme="dark"] .form-actions button,
:root[data-theme="dark"] .modal-close,
:root[data-theme="dark"] .rich-toolbar,
:root[data-theme="dark"] .rich-toolbar button,
:root[data-theme="dark"] .rich-editor {
  background: #111815;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .login-card input:focus,
:root[data-theme="dark"] .auth-panel input:focus,
:root[data-theme="dark"] .enterprise-form input:focus,
:root[data-theme="dark"] .enterprise-form select:focus,
:root[data-theme="dark"] .enterprise-form textarea:focus,
:root[data-theme="dark"] .search-row input:focus {
  background: #151d19;
}

:root[data-theme="dark"] .login-card label,
:root[data-theme="dark"] .login-grid label,
:root[data-theme="dark"] .form-grid label,
:root[data-theme="dark"] .enterprise-form label,
:root[data-theme="dark"] .invite-form label,
:root[data-theme="dark"] .payment-breakdown label {
  color: var(--ink);
}

:root[data-theme="dark"] .link-action,
:root[data-theme="dark"] .auth-switch button,
:root[data-theme="dark"] .order-product-link {
  color: #9df5e9;
}

:root[data-theme="dark"] .subtle-button,
:root[data-theme="dark"] .verification-card,
:root[data-theme="dark"] .mfa-setup,
:root[data-theme="dark"] .panel-secondary,
:root[data-theme="dark"] .review-status,
:root[data-theme="dark"] .review-banner,
:root[data-theme="dark"] .portal-mfa-setup,
:root[data-theme="dark"] .login-step-count {
  background: rgba(24,198,194,.12);
  color: #bffaf2;
  border-color: rgba(24,198,194,.22);
}

:root[data-theme="dark"] .itinerary-step,
:root[data-theme="dark"] .operation-panel,
:root[data-theme="dark"] .portal-card,
:root[data-theme="dark"] .cart-company,
:root[data-theme="dark"] .account-summary div,
:root[data-theme="dark"] .order-companies section,
:root[data-theme="dark"] .payment-breakdown div,
:root[data-theme="dark"] .payment-form,
:root[data-theme="dark"] .timeline-step,
:root[data-theme="dark"] .ticket-card,
:root[data-theme="dark"] .demo-access,
:root[data-theme="dark"] .product-row,
:root[data-theme="dark"] .product-media-strip figure {
  background: #17201c;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .product-row-actions button:first-child,
:root[data-theme="dark"] .category-promo-card button,
:root[data-theme="dark"] .form-actions .primary-action {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

:root[data-theme="dark"] .mini-browser {
  background: #1c2420;
  color: var(--ink);
}

:root[data-theme="dark"] .mini-form,
:root[data-theme="dark"] .mini-search,
:root[data-theme="dark"] .mini-side,
:root[data-theme="dark"] .mini-cart-group,
:root[data-theme="dark"] .mini-order {
  background: #121715;
  border-color: var(--line);
}

:root[data-theme="dark"] .mini-form div,
:root[data-theme="dark"] .mini-search div,
:root[data-theme="dark"] .mini-card-fields div {
  background: #2b3530;
}

@media (max-width: 900px) {
  .topbar { padding: 0 14px; }
  .nav { display: none; }
  .topbar-actions { margin-left: auto; }
  .text-button { display: none; }
  .hero, .layout, .detail-grid, .editor-preview, .portal-login, .portal-app,
  .seller-hero, .seller-benefit-layout,
  .guide-panel {
    grid-template-columns: 1fr;
  }
  .hero { background-attachment: scroll; }
  .itinerary-rail {
    grid-template-columns: 1fr;
  }
  .itinerary-rail::before {
    left: 38px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
  }
  .itinerary-step:nth-child(even) {
    margin-top: 0;
  }
  .guide-screen {
    min-height: 300px;
  }
  .portal-menu {
    position: static;
    height: auto;
    grid-auto-flow: column;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .portal-menu button {
    white-space: nowrap;
  }
  .login-copy h1 { font-size: 38px; }
  .hero h1, .seller-copy h1 { font-size: 42px; }
  .sidebar { position: static; }
  .layout { padding: 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .message-box { flex-direction: column; }
  .form-grid, .market-band, .quantity-row, .cart-item, .capture-grid,
  .payment-form, .mfa-setup,
  .portal-mfa-setup,
  .enterprise-form, .invite-form, .map-search, .location-field span,
  .print-grid, .ticket-reassign,
  .product-manager,
  .product-controlbar,
  .category-promo-card,
  .product-modal-panel,
  .seller-preview-shell,
  .preview-market-card,
  .notification-item,
  .ai-control-grid,
  .ai-chat-form {
    grid-template-columns: 1fr;
  }
  .ai-control-side {
    position: static;
  }
  .ai-pending-card {
    display: grid;
  }
  .ai-pending-actions {
    justify-content: stretch;
  }
  .ai-pending-actions button {
    flex: 1;
  }
  .product-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .product-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .product-thumb {
    width: 72px;
    min-height: 72px;
  }
  .product-form {
    max-height: none;
    padding-right: 0;
  }
  .promo-date-grid {
    grid-template-columns: 1fr;
  }
  .product-modal-panel,
  .product-preview-modal {
    width: 100%;
    max-height: none;
    padding: 16px;
  }
  .seller-preview-main {
    min-height: 320px;
  }
  .order-head, .camera-actions {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand span {
    font-size: 18px;
  }

  .product-row,
  .product-publications.grid-view {
    grid-template-columns: 1fr;
  }

  .product-list-head,
  .product-row-title,
  .editor-head,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-thumb,
  .preview-media {
    min-height: 220px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .text-button,
  .cart-button {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    padding: 9px 8px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 28px 18px;
  }

  .seller-hero {
    min-height: auto;
    padding: 28px 18px;
  }

  .hero h1,
  .seller-copy h1,
  .login-copy h1,
  .guide-copy h2 {
    font-size: clamp(32px, 11vw, 46px);
    overflow-wrap: anywhere;
  }

  .modal-backdrop {
    place-items: start center;
    padding: 10px;
    overflow: auto;
  }

  .seller-section {
    padding: 34px 18px;
  }

  .seller-cta {
    margin: 0 18px 34px;
  }

  .auth-panel,
  .guide-panel,
  .camera-panel,
  .map-panel,
  .terms-panel {
    width: 100%;
    max-height: none;
    min-height: auto;
    padding: 18px;
  }

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

  .signature-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guide-panel {
    gap: 18px;
  }

  .guide-screen {
    min-height: 240px;
    padding: 12px;
  }

  .mini-browser {
    width: 100%;
    min-height: 260px;
    padding: 12px;
  }

  .mini-products span,
  .mini-photo {
    min-height: 76px;
  }

  .guide-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, var(--panel) 35%);
    padding-top: 14px;
  }

  .camera-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .camera-actions button {
    width: 100%;
  }

  .portal-workspace,
  .signup-shell {
    padding: 22px 14px 34px;
  }

  .portal-login {
    min-height: calc(100dvh - 64px);
    padding: 24px 14px;
  }

  .cart-drawer {
    width: 100vw;
    height: 100dvh;
  }
}

@media print {
  .topbar,
  .portal-menu,
  .status-actions,
  .panel-secondary {
    display: none !important;
  }

  .portal-app,
  .portal-workspace,
  .portal-panel.active {
    display: block;
  }

  .shipping-label {
    break-inside: avoid;
    border-color: #222;
  }
}

.document-review-list {
  display: grid;
  gap: 12px;
}

.document-review-item {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(15, 35, 28, .06);
}

.document-review-item.empty {
  grid-template-columns: 1fr;
}

.document-review-main {
  display: grid;
  gap: 7px;
}

.document-review-main strong {
  color: var(--ink);
}

.document-review-main span {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
}

.document-review-main a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.document-review-main a:hover {
  text-decoration: underline;
}

.document-review-notes {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.document-review-notes textarea {
  min-height: 76px;
  resize: vertical;
}

.document-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.document-review-actions button {
  min-height: 44px;
  padding: 0 14px;
}

.role-config-panel,
.account-form-grid {
  margin-top: 18px;
}

.account-form-grid {
  align-items: end;
}

.loading-line {
  color: var(--muted);
  font-weight: 800;
}

.role-card input[disabled] {
  cursor: not-allowed;
  opacity: .75;
}

@media (max-width: 900px) {
  .document-review-item {
    grid-template-columns: 1fr;
  }

  .document-review-actions {
    justify-content: flex-start;
  }
}
