/* Glacier light — shared styles from desing-template references */

:root {
  --primary: #0a4c6e;
  --primary-light: #7dd3fc;
  --primary-container: #7dd3fc;
  --on-primary-container: #001f2e;
  --gold: #b08d57;
  --gold-2: #9a7a4b;
  --bg: #f0f7ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #cbd5e1;
  --danger: #ef4444;
  --ok: #2e7d5a;
  --navy: var(--primary);
  --navy-2: #e0efff;
  --sidebar-w: 280px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.app-body {
  background: radial-gradient(circle at 10% 20%, rgba(125, 211, 252, 0.18) 0%, transparent 42%),
              radial-gradient(circle at 90% 80%, rgba(200, 160, 240, 0.1) 0%, transparent 40%),
              linear-gradient(180deg, #f0f7ff 0%, #e8f4fc 100%);
  background-attachment: fixed;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Reference: glass / aurora ─────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(125, 211, 252, 0.2) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(200, 160, 240, 0.15) 0%, transparent 40%),
              linear-gradient(180deg, #f0f7ff 0%, #e0efff 100%);
}
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 8px 32px rgba(125, 211, 252, 0.1);
}
.glass-card-sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(10, 76, 110, 0.1);
  box-shadow: 4px 0 24px rgba(10, 76, 110, 0.06);
}
.frozen-overlay {
  background: linear-gradient(180deg, rgba(10, 76, 110, 0.03) 0%, transparent 100%);
  pointer-events: none;
}
.ice-gradient-text {
  background: linear-gradient(135deg, #0a4c6e 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glacier-input {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.glacier-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 15px rgba(125, 211, 252, 0.15);
  outline: none;
}
.glass-bg {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(148, 163, 184, 0.1);
}

/* Sign up — lumina_sign_up_glacier_light_2 */
.auth-animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 10% 10%, rgba(125, 211, 252, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(200, 160, 240, 0.1) 0%, transparent 40%),
              linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
body.auth-register-page[data-layout="auth"],
body.auth-login-page[data-layout="auth"] {
  min-height: 100dvh;
}
body.auth-register-page #auth-shell,
body.auth-login-page #auth-shell {
  flex-direction: column;
  padding: 1rem 1rem 1.5rem;
}
body.auth-register-page .auth-view {
  max-width: 32rem;
}
body.auth-login-page .auth-view {
  max-width: 26rem;
}
.auth-register-card.glacier-card,
.auth-register-card.glass-bg {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 12px 40px rgba(10, 76, 110, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  padding: 1.25rem 1.25rem 1.35rem;
}
@media (min-width: 640px) {
  .auth-register-card.glacier-card,
  .auth-register-card.glass-bg {
    padding: 1.5rem 1.75rem 1.6rem;
  }
}
.auth-register-glow {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.auth-register-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.auth-register-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.auth-register-kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 76, 110, 0.65);
  line-height: 1.2;
}
.auth-register-logo {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary, #0a4c6e);
}
.auth-register-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.2;
  margin: 0 0 0.25rem;
}
.auth-register-sub {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin: 0 0 0.65rem;
}
.auth-register-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-register-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(10, 76, 110, 0.85);
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.28);
}
.auth-register-pills .material-symbols-outlined {
  font-size: 0.875rem;
  opacity: 0.85;
}
.auth-register-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.auth-register-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 520px) {
  .auth-register-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.auth-register-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.auth-register-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 76, 110, 0.7);
  padding-left: 0.15rem;
}
.auth-register-input-wrap {
  position: relative;
}
.auth-register-input {
  width: 100%;
  min-height: 2.625rem;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}
.auth-register-wa-composite {
  display: flex;
  align-items: stretch;
  min-height: 2.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(113, 133, 148, 0.22);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-register-wa-composite:focus-within {
  border-color: rgba(0, 102, 139, 0.45);
  box-shadow: 0 0 12px rgba(0, 102, 139, 0.1);
}
.auth-register-wa-prefix {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.7rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary, #0a4c6e);
  background: rgba(125, 211, 252, 0.16);
  border-right: 1px solid rgba(113, 133, 148, 0.22);
}
.auth-register-input-wrap--wa {
  flex: 1;
  min-width: 0;
}
.auth-register-input-wrap--wa .auth-register-input--wa {
  min-height: 2.625rem;
  height: 100%;
  padding: 0.5rem 2.25rem 0.5rem 0.65rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-register-input-wrap--wa .auth-register-input--wa:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}
.auth-register-input-icon {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: rgba(100, 116, 139, 0.45);
  pointer-events: none;
}
.auth-register-input-icon--wa {
  color: rgba(37, 211, 102, 0.75);
}
.auth-register-wa-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(10, 76, 110, 0.75);
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.18);
}
.auth-register-wa-hint .material-symbols-outlined {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: rgba(10, 76, 110, 0.55);
}
.auth-register-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
}
.auth-register-submit .material-symbols-outlined {
  font-size: 1.125rem;
}
.auth-register-footer {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}
.auth-register-link {
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--primary, #0a4c6e);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.auth-login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.auth-login-forgot {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary, #0a4c6e);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.auth-login-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.auth-login-page .auth-register-wa-composite {
  min-height: 2.625rem;
}
.auth-decor-icons--compact {
  margin-top: 1.25rem;
  gap: 1.25rem;
  opacity: 0.35;
}
body.auth-register-page .glacier-input,
body.auth-login-page .glacier-input {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(113, 133, 148, 0.22);
}
body.auth-register-page .glacier-input:focus,
body.auth-login-page .glacier-input:focus {
  border-color: rgba(0, 102, 139, 0.45);
  box-shadow: 0 0 12px rgba(0, 102, 139, 0.1);
}
.glacier-button-primary {
  background: #b08d57;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(176, 141, 87, 0.3);
  font-family: inherit;
}
.glacier-button-primary:hover {
  background: #9a7a4b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
}
.glacier-button-primary:active { transform: scale(0.98); }
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 77, 110, 0.1);
}
.glass-panel-elevated {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(14, 77, 110, 0.12);
}
.bg-mesh {
  background: radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(200, 160, 240, 0.1) 0%, transparent 50%);
}
.glacier-bg-page {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100%;
}
.thumb-active-ref {
  border: 2px solid #c9a96e !important;
}
.brand-accent-btn {
  background: #c2a370;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(194, 163, 112, 0.3);
}
.brand-accent-btn:hover { filter: brightness(1.05); }

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo--sm { width: 2rem; height: 2rem; }
.brand-logo--lg { width: 3rem; height: 3rem; }
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary, #0284c7);
}
.brand-logo-placeholder--lg { width: 3rem; height: 3rem; }
.brand-logo-placeholder--sm { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.brand-logo-placeholder .material-symbols-outlined { font-size: 1.5rem; line-height: 1; }
.brand-logo-placeholder--sm .material-symbols-outlined { font-size: 1.125rem; }
#sidebar-brand-logo,
#topbar-brand-logo {
  object-fit: cover;
  border-radius: 0.75rem;
}
#topbar-brand-logo { border-radius: 0.5rem; }
.brand-lockup { text-decoration: none; color: inherit; }

#unit-modal-backdrop {
  z-index: 850;
}
#unit-modal-backdrop .modal-panel {
  max-height: min(90vh, 28rem);
  overflow: auto;
}

/* Product modal — lumina_add_product_glacier_light_1 */
#product-modal-backdrop {
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
}
#product-modal {
  max-width: 100% !important;
  width: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fbff !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  min-height: 0 !important;
  position: relative !important;
}
#product-modal .pm-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 640px) {
  #product-modal .pm-scroll { padding-bottom: 7rem; }
}
#product-modal .pm-footer {
  flex-shrink: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(203, 213, 225, 0.6);
  padding: 0.875rem 1rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(14, 77, 110, 0.1);
  z-index: 40;
}
#product-modal .pm-footer-inner {
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
@media (max-width: 639px) {
  #product-modal .pm-footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "cancel draft"
      "primary primary";
    gap: 0.625rem 0.75rem;
    align-items: stretch;
  }
  #product-modal .pm-btn-cancel {
    grid-area: cancel;
    justify-self: start;
    align-self: center;
    padding: 0.625rem 0.25rem;
  }
  #product-modal .pm-btn-draft {
    grid-area: draft;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    text-align: center;
  }
  #product-modal .pm-btn-primary {
    grid-area: primary;
    width: 100%;
    padding: 0.875rem 1rem;
    text-align: center;
  }
}
#product-modal .pm-footer button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.25;
  min-height: 2.75rem;
}
#product-modal .pm-btn-cancel {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.625rem 1rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
#product-modal .pm-btn-cancel:hover { background: #f1f5f9 !important; }
#product-modal .pm-btn-cancel:active { transform: scale(0.95); }
#product-modal .pm-btn-draft {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
#product-modal .pm-btn-draft:hover { background: #f8fafc !important; }
#product-modal .pm-btn-draft:active { transform: scale(0.95); }
#product-modal .pm-btn-primary {
  border: none !important;
  background: #c2a370 !important;
  background-color: #c2a370 !important;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 25px rgba(194, 163, 112, 0.35);
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
#product-modal .pm-btn-primary:hover { opacity: 0.92; }
#product-modal .pm-btn-primary:active { transform: scale(0.95); }
#product-modal .pm-btn-primary:disabled,
#product-modal .pm-btn-draft:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* IDs — Tailwind CDN Preflight injects after linked CSS; these beat `button { background: transparent }` */
#product-modal button#pf-modal-cancel {
  border: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #64748b !important;
  box-shadow: none !important;
}
#product-modal button#pf-save-draft {
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}
#product-modal button#pf-save-draft:hover {
  background-color: #f8fafc !important;
}
#product-modal button#pf-save-active {
  border: none !important;
  background-color: #c2a370 !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(194, 163, 112, 0.35) !important;
}
#product-modal button#pf-save-active:hover {
  filter: brightness(1.03);
}

#product-modal .pm-nav {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#product-modal .pm-extract-btn {
  width: 100%;
  justify-content: center;
}
@media (min-width: 480px) {
  #product-modal .pm-extract-btn { width: auto; }
}
#product-modal .glass-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 77, 110, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
#product-modal .glass-input:focus {
  background: #fff;
  border-color: #0e4d6e;
  box-shadow: 0 0 15px rgba(14, 77, 110, 0.1);
}
#product-modal .price-field-wrap {
  position: relative;
}
.unit-combobox {
  position: relative;
}
.unit-combobox-field {
  position: relative;
}
.unit-combobox-field .glass-input {
  padding-right: 2.75rem;
}
.unit-combobox-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 1.125rem;
}
.unit-combobox-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(14, 77, 110, 0.18);
  border-radius: 0.625rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.unit-combobox-group-label {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.unit-combobox-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.unit-combobox-option:hover,
.unit-combobox-option:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}
.unit-combobox-code {
  min-width: 2.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #0e4d6e;
}
.unit-combobox-name {
  font-size: 0.875rem;
  color: #475569;
}
.unit-combobox-empty {
  padding: 0.875rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}
#product-modal .price-field-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  z-index: 2;
  min-width: 1.25rem;
  text-align: center;
}
#product-modal #pf-price.glass-input--icon-left,
#product-modal #pf-price {
  padding-left: 3.25rem;
  padding-right: 2.5rem;
}
#product-modal .upload-zone-ref {
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#product-modal .upload-zone-ref:hover,
#product-modal .upload-zone-ref.drag-over {
  border-color: rgba(14, 77, 110, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(14, 77, 110, 0.08);
}
#product-modal .img-thumb.primary {
  border-color: #c9a96e;
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.3);
}
#product-modal .img-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.75rem;
}
#product-modal .img-thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#product-modal .img-thumb-rembg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 76, 110, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  cursor: pointer;
}
#product-modal .img-thumb-rembg:hover {
  background: rgba(125, 211, 252, 0.25);
}
.rembg-checker {
  background-color: #e2e8f0;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

/* Remove-background modal: loading overlay + indeterminate bar */
.rembg-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  pointer-events: auto;
}
.rembg-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 16rem;
  text-align: center;
  color: #f8fafc;
}
.rembg-loading-icon {
  font-size: 2.25rem;
  line-height: 1;
  opacity: 0.95;
  animation: rembg-magic-pulse 1.4s ease-in-out infinite;
}
@keyframes rembg-magic-pulse {
  0%, 100% { transform: scale(1) rotate(-6deg); opacity: 0.85; }
  50% { transform: scale(1.08) rotate(6deg); opacity: 1; }
}
.rembg-loading-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rembg-loading-hint {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.72);
}
.rembg-progress-track {
  width: 100%;
  min-width: 11rem;
  max-width: 14rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.rembg-progress-indeterminate {
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(253, 224, 71, 0.95),
    rgba(255, 255, 255, 0.05)
  );
  animation: rembg-progress-slide 1.15s ease-in-out infinite;
}
@keyframes rembg-progress-slide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .rembg-loading-icon,
  .rembg-progress-indeterminate {
    animation: none;
  }
  .rembg-loading-icon { opacity: 1; transform: none; }
}
#product-modal .img-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
}
#product-modal .img-thumb img { width: 100%; height: 100%; object-fit: cover; }
#product-modal .pf-spec-list { min-height: 0.25rem; }
#product-modal .pf-spec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
#product-modal .pf-spec-row .glass-input { flex: 1 1 7rem; min-width: 0; }
#product-modal .pf-spec-row-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#product-modal .pf-spec-row-remove:hover { background: rgba(239, 68, 68, 0.15); }
#product-modal .pf-spec-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(255, 255, 255, 0.7);
  color: #0a4c6e;
  cursor: pointer;
}
#product-modal .pf-spec-chip:hover { background: rgba(125, 211, 252, 0.2); }
#product-modal .pf-spec-empty {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 0.35rem 0;
}

#product-modal .img-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  color: white;
  font-size: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gold-button, .btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(180, 134, 11, 0.25);
}
.gold-button:hover, .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.gold-button:active, .btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary.w-full { width: 100%; }
/* Empty states & CTAs: bare .btn-primary had no padding (looked cramped on mobile) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  min-height: 3rem;
  font-size: 0.9375rem;
  line-height: 1.25;
}
.btn-primary.btn-primary--compact {
  padding: 0.375rem 0.75rem;
  min-height: auto;
  font-size: 0.75rem;
  line-height: 1.2;
}

.gradient-button {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  color: #0a4c6e;
  box-shadow: 0 4px 14px rgba(125, 211, 252, 0.35);
}

.active-nav-item,
#sidebar .nav-item.active,
#sidebar a.nav-item.active {
  background: linear-gradient(90deg, rgba(10, 76, 110, 0.1) 0%, transparent 100%);
  box-shadow: inset 3px 0 0 #0a4c6e;
  color: #0a4c6e !important;
  font-weight: 600;
}
#sidebar .nav-item.active .nav-item-label,
#sidebar a.nav-item.active .nav-item-label {
  font-weight: 600;
}
#sidebar .nav-item.active .material-symbols-outlined,
#sidebar a.nav-item.active .material-symbols-outlined,
#sidebar .nav-item.active .nav-item-icon,
#sidebar a.nav-item.active .nav-item-icon {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
#sidebar .sidebar-nav {
  position: relative;
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 0.375rem 0;
}
#sidebar a.nav-item {
  display: flex !important;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 0.875rem;
  padding: 0.6875rem 1.5rem;
  color: rgba(15, 23, 42, 0.62);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
#sidebar a.nav-item:hover {
  color: var(--primary, #0a4c6e);
  background: rgba(0, 0, 0, 0.04);
}
#sidebar .nav-item-icon {
  font-size: 1.375rem !important;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sidebar .nav-item-label {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
#sidebar .nav-item--badge {
  justify-content: space-between;
  gap: 0.5rem;
}
#sidebar .nav-item-main {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}
#sidebar .sidebar-footer {
  position: relative;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
  width: 100%;
}
#sidebar .sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(239, 68, 68, 0.85);
  transition: color 0.15s ease;
}
#sidebar .sidebar-logout:hover { color: #ef4444; }
#sidebar .nav-badge {
  display: none;
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: var(--primary, #0a4c6e);
  color: #fff;
  line-height: 1.2;
  min-width: 1.125rem;
  text-align: center;
}
#sidebar .nav-badge.visible { display: inline-flex; align-items: center; justify-content: center; }
.active-pill {
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.4);
}
.active-tab-glow {
  box-shadow: 0 4px 12px rgba(176, 141, 87, 0.15);
}

.glacier-blur {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 76, 110, 0.08);
}
.glacier-glow {
  box-shadow: 0 0 30px rgba(125, 211, 252, 0.08);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(10, 76, 110, 0.15); border-radius: 10px; }

/* ── Auth shell (lumina_sign_in_glacier_light_2) ───────── */
body[data-layout="auth"] {
  overflow-x: hidden;
  min-height: max(884px, 100dvh);
}
#auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}
body[data-layout="auth"] .auth-view {
  display: block;
  width: 100%;
  max-width: 28rem;
}
body[data-layout="auth"] .auth-view.hidden {
  display: none !important;
}
.floating-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
  animation: auth-orb-float 25s infinite ease-in-out alternate;
}
@keyframes auth-orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.05); }
}
.glass-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 199, 206, 0.6);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text, #0f172a);
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.04);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.glass-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary, #0a4c6e);
  box-shadow: 0 0 0 1px rgba(10, 76, 110, 0.15);
}
.glass-input--compact {
  padding: 0.5rem 0.75rem;
  min-height: 2.25rem;
  font-size: 0.8125rem;
}
.auth-card-topline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
}
.auth-decor-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0.4;
  filter: grayscale(50%);
  pointer-events: none;
  user-select: none;
}
.auth-decor-icons > div {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-page="orders"] {
  background: radial-gradient(circle at top right, rgba(125, 211, 252, 0.3), transparent 50%),
              radial-gradient(circle at bottom left, rgba(200, 160, 240, 0.2), transparent 50%),
              #f1f5f9 !important;
}
body[data-page="price-access"] {
  background: radial-gradient(circle at top right, rgba(125, 211, 252, 0.3), transparent 50%),
              radial-gradient(circle at bottom left, rgba(200, 160, 240, 0.2), transparent 50%),
              #f1f5f9 !important;
}

/* ── App shell (MPA dashboard pages) ───────────────────── */
#app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(2px);
  z-index: 38;
}
#sidebar-overlay.open { display: block; }

#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  flex-shrink: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: inherit;
}

@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    max-width: 320px;
    width: 80%;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  #sidebar.open { transform: translateX(0); }
}

#main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

#view-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
}
@media (min-width: 768px) {
  #view-area { padding: 1.25rem 1.5rem 2rem; }
}

/* MPA: dashboard page content is always visible */
body[data-layout="dashboard"] [data-view="app"] {
  display: block;
}

/* ── Legacy buttons / forms (modals) ───────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.btn-icon:hover { background: rgba(125, 211, 252, 0.15); color: var(--primary); }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input, .field select, .field textarea {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.5rem;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  width: 100%;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 15px rgba(125, 211, 252, 0.15);
}

.otp-boxes { display: flex; gap: 8px; justify-content: center; }
.otp-box {
  width: 48px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
}
.otp-box:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

/* ── Modals / drawer ───────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 76, 110, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  padding: 1rem;
}
.modal-backdrop.hidden { display: none; }
/* Dashboard plan overlays — global vendor gate */
#free-choice-backdrop.hidden,
#voice-cap-modal-backdrop.hidden,
#plan-checkout-backdrop.hidden,
#tally-sync-backdrop.hidden,
#voice-recording-backdrop.hidden { display: none !important; }
.plan-overlay-backdrop--checkout { z-index: 9100; }
.plan-overlay-backdrop--tally { z-index: 9200; }
.plan-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.plan-overlay-backdrop--voice { z-index: 8000; background: rgba(15, 23, 42, 0.65); }

/* Bulk progress dialog — shared with bulk-upload + voice search */
.progress-bar-track {
  background: #e2e8f0;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary, #0a4c6e), var(--primary-light, #7dd3fc));
  height: 8px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}
.bulk-progress-dialog {
  width: 100%;
  max-width: 22rem;
  padding: 1.25rem 1.35rem 1.15rem;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(10, 76, 110, 0.12);
}
.bulk-progress-dialog.bulk-progress-card--active {
  box-shadow: 0 24px 80px rgba(10, 76, 110, 0.16), 0 0 0 1px rgba(125, 211, 252, 0.2);
}
.bulk-progress-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bulk-progress-ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 5.25rem;
  height: 5.25rem;
}
.bulk-progress-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.bulk-progress-ring-bg {
  fill: none;
  stroke: rgba(125, 211, 252, 0.25);
  stroke-width: 7;
}
.bulk-progress-ring-fg {
  fill: none;
  stroke: var(--primary, #0a4c6e);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.bulk-progress-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}
.bulk-progress-icon {
  font-size: 1.35rem;
  color: var(--primary, #0a4c6e);
  margin-bottom: 0.15rem;
}
.bulk-progress-icon.spin {
  animation: bulk-progress-spin 1.1s linear infinite;
}
@keyframes bulk-progress-spin {
  to { transform: rotate(360deg); }
}
#voice-recording-timer {
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary, #0a4c6e);
}
.bulk-progress-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.bulk-progress-mode-pill {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
  background: rgba(125, 211, 252, 0.2);
  color: var(--primary, #0a4c6e);
  border: 1px solid rgba(125, 211, 252, 0.35);
}
#voice-recording-title,
#voice-processing-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.25;
  margin: 0 0 0.25rem;
}
#voice-recording-sub,
#voice-processing-sub {
  font-size: 0.8125rem;
  color: var(--text-muted, #475569);
  line-height: 1.35;
  margin: 0;
}
.bulk-progress-bar-mini {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
}
.voice-recording-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
.voice-recording-actions .btn-ghost {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.voice-recording-ring-svg--spin {
  animation: bulk-progress-spin 1.4s linear infinite;
}
.voice-recording-ring-fg--live {
  stroke-dasharray: 72 254.73;
  stroke-dashoffset: 0;
}
.voice-recording-ring-fg--busy {
  stroke-dasharray: 90 236.73;
  stroke-dashoffset: 200;
  animation: voice-recording-ring-busy 1.1s ease-in-out infinite;
}
@keyframes voice-recording-ring-busy {
  0%, 100% { stroke-dashoffset: 200; }
  50% { stroke-dashoffset: 60; }
}
.voice-recording-bar-track .voice-recording-bar-fill {
  width: 38%;
  animation: voice-recording-bar-slide 1.15s ease-in-out infinite;
}
@keyframes voice-recording-bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
#voice-recording-listening.hidden,
#voice-recording-processing.hidden { display: none; }
@media (max-width: 380px) {
  .bulk-progress-hero { flex-direction: column; text-align: center; }
  .bulk-progress-copy { text-align: center; }
  .voice-recording-actions { justify-content: center; }
}
.plan-overlay-panel {
  background: #fff;
  border-radius: 1.25rem;
  max-width: 30rem;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.plan-overlay-panel--compact {
  border-radius: 1rem;
  max-width: 22rem;
  padding: 1.5rem;
  text-align: center;
}
.plan-overlay-header--choice {
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #0a4c6e 0%, #38bdf8 100%);
  color: #fff;
}
.plan-overlay-header--choice .plan-overlay-title,
.plan-overlay-header--choice .plan-overlay-sub,
.plan-overlay-header--choice .plan-overlay-icon {
  color: #fff;
}
.plan-overlay-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; color: inherit; }
.plan-overlay-icon--warn { font-size: 2rem; color: #ef4444; }
.plan-overlay-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.25rem; }
.plan-overlay-title--sm { font-size: 1rem; color: #1e293b; }
.plan-overlay-sub { font-size: 0.8125rem; opacity: 0.9; margin: 0 0 1.25rem; }
.plan-overlay-sub--center { color: #475569; opacity: 1; line-height: 1.5; }
.plan-overlay-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.plan-choice-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-radius: 0.875rem; border: 2px solid #e2e8f0;
  background: #f8fafc; cursor: pointer; text-align: left; transition: all 0.15s;
  position: relative; overflow: hidden;
}
.plan-choice-btn--yearly {
  border-color: rgba(10, 76, 110, 0.28);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(240, 249, 255, 0.98));
}
.plan-choice-btn-title { font-size: 0.9375rem; font-weight: 700; color: #1e293b; }
.plan-choice-btn-sub { font-size: 0.8125rem; color: #64748b; margin-top: 0.15rem; }
.plan-choice-btn-price { font-size: 1.125rem; font-weight: 800; flex-shrink: 0; margin-left: 0.75rem; }
.plan-choice-btn-price--trial { color: #0284c7; }
.plan-choice-btn-price--yearly { color: #0a4c6e; }
.plan-choice-badge {
  position: absolute; top: 0.4rem; right: 0.75rem;
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: #0a4c6e; color: #fff; padding: 0.15rem 0.5rem; border-radius: 999px;
}
.plan-overlay-foot { font-size: 0.6875rem; color: #94a3b8; text-align: center; margin: 0.25rem 0 0; }
.plan-overlay-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-overlay-action {
  padding: 0.625rem 1rem; border-radius: 999px; border: none; cursor: pointer;
  font-size: 0.8125rem; font-weight: 700;
}
.plan-overlay-action--trial { background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 100%); color: #fff; }
.plan-overlay-action--yearly { background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 100%); color: #fff; }
.plan-overlay-action--ghost {
  padding: 0.5rem 1rem; font-size: 0.75rem; color: #64748b;
  background: transparent; border: 1px solid #e2e8f0;
}
.plan-overlay-action--primary {
  background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 76, 110, 0.22);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.plan-overlay-action--primary:hover { filter: brightness(1.06); }
.plan-checkout-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.875rem 1rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(240, 249, 255, 0.98));
  border: 1px solid rgba(10, 76, 110, 0.12);
}
.plan-checkout-price-label {
  font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em;
}
.plan-checkout-price {
  font-size: 1.375rem; font-weight: 800; color: #0a4c6e;
}
.plan-checkout-details { font-size: 0.8125rem; color: #475569; }
.plan-checkout-feature-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem;
}
.plan-checkout-feature-list li {
  display: flex; align-items: center; gap: 0.5rem; line-height: 1.4;
  color: #334155;
}
.plan-checkout-feature-list .material-symbols-outlined {
  font-size: 1.125rem; color: #0a4c6e; flex-shrink: 0;
}
.plan-checkout-note {
  margin: 0.75rem 0 0; padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  background: rgba(240, 249, 255, 0.9); border: 1px solid rgba(125, 211, 252, 0.45);
  font-size: 0.75rem; color: #475569; line-height: 1.45;
}
.tally-sync-panel { max-width: 22rem; border: 1px solid rgba(125, 211, 252, 0.35); }
.tally-sync-hero {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1rem 0.875rem;
  background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 55%, #38bdf8 100%);
  color: #fff; position: relative;
}
.tally-sync-hero-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tally-sync-hero-icon .material-symbols-outlined { font-size: 1.375rem; }
.tally-sync-hero-text { flex: 1; min-width: 0; }
.tally-sync-hero-kicker {
  margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.88;
}
.tally-sync-hero-amount {
  margin: 0.1rem 0 0; font-size: 1.5rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
}
.tally-sync-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 1.75rem; height: 1.75rem; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.tally-sync-close .material-symbols-outlined { font-size: 1rem; }
.tally-sync-close:hover { background: rgba(255, 255, 255, 0.28); }
.tally-sync-body {
  padding: 0.875rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.625rem;
}
.tally-sync-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.tally-sync-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.tally-sync-field-label {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.625rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tally-sync-saved-tag {
  font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: #0a4c6e;
  background: rgba(224, 242, 254, 0.95); border-radius: 999px; padding: 0.1rem 0.35rem;
}
.tally-sync-field-input {
  width: 100%; font-size: 0.8125rem; padding: 0.45rem 0.6rem;
}
.tally-sync-field-input--date { padding: 0.4rem 0.45rem; }
.tally-sync-quick {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}
.tally-sync-quick-label {
  font-size: 0.625rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.15rem;
}
.tally-sync-chip {
  border: 1px solid rgba(10, 76, 110, 0.18); background: rgba(240, 249, 255, 0.95);
  color: #0a4c6e; font-size: 0.6875rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 999px; cursor: pointer;
}
.tally-sync-chip:hover { background: #e0f2fe; border-color: rgba(10, 76, 110, 0.3); }
.tally-sync-error {
  margin: 0; font-size: 0.75rem; color: #dc2626; line-height: 1.35;
  padding: 0.4rem 0.55rem; border-radius: 0.5rem;
  background: rgba(254, 242, 242, 0.9); border: 1px solid rgba(248, 113, 113, 0.25);
}
.tally-sync-error.hidden { display: none; }
.tally-sync-actions { display: flex; gap: 0.5rem; margin-top: 0.15rem; }
.tally-sync-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.55rem 0.75rem; border-radius: 999px; border: none; cursor: pointer;
  font-size: 0.8125rem; font-weight: 700;
}
.tally-sync-btn .material-symbols-outlined { font-size: 1.05rem; }
.tally-sync-btn--primary {
  background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(10, 76, 110, 0.22);
}
.tally-sync-btn--primary:hover { filter: brightness(1.06); }
.tally-sync-btn--ghost {
  flex: 0 0 auto; background: transparent; color: #64748b;
  border: 1px solid #e2e8f0; padding-left: 0.9rem; padding-right: 0.9rem;
}
/* Lock vendor shell while free trial is expired — overlay + logout stay usable */
body[data-plan-gate="free-expired"] #main-content,
body[data-plan-gate="free-expired"] #sidebar,
body[data-plan-gate="free-expired"] #topbar {
  pointer-events: none;
  user-select: none;
  filter: blur(4px);
}
body[data-plan-gate="free-expired"] .sidebar-logout {
  pointer-events: auto;
  filter: none;
}
.modal-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(10, 76, 110, 0.12);
}
.modal-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.modal-body { overflow-y: auto; padding: 1.5rem; flex: 1; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
/* Glacier modals — save/edit catalog, add-to-catalog */
.glacier-modal-panel {
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
}
.glacier-modal-panel.glow-subtle {
  box-shadow: 0 10px 40px rgba(10, 76, 110, 0.12);
}
.glacier-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(193, 199, 206, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.glacier-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.glacier-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.glacier-modal-body.space-y-sections > * + * {
  margin-top: 2rem;
}
.glacier-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(193, 199, 206, 0.5);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.45);
}
.glacier-modal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary, #4c626b);
  margin-bottom: 0.5rem;
}
.glacier-modal .glass-input {
  /* inherits global .glass-input */
}
.glacier-modal .glass-input:focus {
  /* inherits global .glass-input:focus */
}
.glacier-modal-btn-cancel {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(193, 199, 206, 0.8);
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.glacier-modal-btn-cancel:hover {
  background: rgba(241, 245, 249, 0.9);
  color: var(--text);
}
.glacier-modal-btn-primary {
  padding: 0.625rem 2rem;
  border-radius: 9999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(10, 76, 110, 0.2);
  transition: opacity 0.15s, transform 0.1s;
}
.glacier-modal-btn-primary:hover { opacity: 0.92; }
.glacier-modal-btn-primary:active { transform: scale(0.98); }
.glacier-modal-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.drawer-panel {
  background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fc 100%);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 520px;
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(10, 76, 110, 0.12);
  border-left: 1px solid rgba(125, 211, 252, 0.25);
}
.order-drawer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Order detail drawer (compact) ─────────────────────── */
.od-content {
  padding: 0.875rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.od-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.25);
}
.od-header-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.od-order-id {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  font-family: ui-monospace, monospace;
}
.od-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-surface, #0f172a);
  line-height: 1.25;
  margin: 0;
}
.od-sub {
  font-size: 0.6875rem;
  color: var(--on-surface-variant, #64748b);
  margin: 0.2rem 0 0;
  line-height: 1.35;
}
.od-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--on-surface-variant, #64748b);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.od-close:hover { background: rgba(125, 211, 252, 0.25); color: var(--primary); }
.od-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, rgba(10, 76, 110, 0.08), rgba(125, 211, 252, 0.2));
  border: 1px solid rgba(125, 211, 252, 0.35);
}
.od-hero-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant, #64748b);
}
.od-hero-amount {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.od-hero-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}
.od-actions {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.od-btn--full { width: 100%; }
.od-actions-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}
.od-actions-docs .od-btn { width: 100%; }
.od-actions-docs .od-btn:only-child { grid-column: 1 / -1; }
.od-btn--invoice {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(46, 125, 90, 0.35);
  color: #166534;
}
.od-btn--invoice:hover { background: rgba(46, 125, 90, 0.08); }
.od-btn .material-symbols-outlined { font-size: 1.125rem; }
.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.od-btn:active { transform: scale(0.98); }
.od-btn--wa {
  background: #25d366;
  color: #fff;
}
.od-btn--wa:hover { background: #128c7e; }
.od-btn--pdf {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1px solid rgba(125, 211, 252, 0.45);
}
.od-btn--pdf:hover { background: rgba(125, 211, 252, 0.2); }
.od-btn--tally {
  border: 1px solid rgba(10, 76, 110, 0.18);
  background: rgba(240, 249, 255, 0.95);
  color: #0a4c6e;
}
.od-btn--tally:hover { background: rgba(224, 242, 254, 0.98); }
.od-btn--tally-done {
  border-color: rgba(46, 125, 90, 0.22);
  background: rgba(236, 253, 245, 0.95);
  color: #166534;
  cursor: default;
  opacity: 1;
}
.od-btn--tally-done:disabled { opacity: 1; }
.od-btn--busy { opacity: 0.7; cursor: wait; }
.od-btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.od-status-bar {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.2);
}
.od-status-label {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant, #64748b);
}
.od-note-wrap { margin-top: 0.125rem; }
.od-status-bar select {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 1.35rem 0.2rem 0.5rem;
  min-height: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.06);
  color: var(--on-surface, #0f172a);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
}
.od-status-bar select:focus {
  outline: none;
  border-color: var(--primary, #0a4c6e);
  box-shadow: 0 0 0 2px rgba(10, 76, 110, 0.12);
}
.od-status-save {
  flex-shrink: 0;
  padding: 0.2rem 0.625rem;
  min-height: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  border: none;
  background: var(--primary, #0a4c6e);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}
.od-status-save:hover { opacity: 0.92; }
.od-items-wrap {
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(255, 255, 255, 0.75);
}
.od-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.625rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant, #64748b);
  background: rgba(10, 76, 110, 0.05);
  border-bottom: 1px solid rgba(125, 211, 252, 0.15);
}
.od-items-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--primary);
  background: rgba(125, 211, 252, 0.2);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}
.od-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
}
.od-item:last-child { border-bottom: none; }
.od-item--alt { background: rgba(240, 249, 255, 0.55); }
.od-item-thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.od-item-thumb .material-symbols-outlined { font-size: 1.25rem; color: rgba(10, 76, 110, 0.25); }
.od-item-body { flex: 1; min-width: 0; }
.od-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.od-item-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--on-surface, #0f172a);
  line-height: 1.25;
  min-width: 0;
}
.od-item-qty { font-size: 0.625rem; color: var(--on-surface-variant, #64748b); margin-top: 0.125rem; }
.od-item-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
/* Unified compact inputs — order drawer */
.od-field {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.45rem 0.1rem 0.5rem;
  min-height: 1.625rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.07);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.od-field:focus-within {
  border-color: var(--primary, #0a4c6e);
  box-shadow: 0 0 0 2px rgba(10, 76, 110, 0.14);
}
.od-field > span {
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary, #0a4c6e);
  flex-shrink: 0;
}
.od-field-input {
  width: 2.25rem;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.2;
  color: var(--on-surface, #0f172a);
  font-variant-numeric: tabular-nums;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}
.od-field-input::-webkit-outer-spin-button,
.od-field-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.od-field-input.od-edit-qty { width: 3.25rem; }
.od-field--price .od-field-input { width: 6.25rem; text-align: left; padding-left: 0.125rem; }
.od-field--price { padding-right: 0.625rem; }
.od-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  margin-left: auto;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 9999px;
  background: rgba(254, 242, 242, 0.95);
  color: #dc2626;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.od-item-remove:hover { background: rgba(254, 226, 226, 1); }
.od-item-remove:active { transform: scale(0.96); }
.od-item-remove .material-symbols-outlined { font-size: 0.9375rem; }
.od-items-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem 0.625rem;
  border-top: 1px solid rgba(2, 132, 199, 0.08);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.5), rgba(255, 255, 255, 0.8));
}
.od-items-save-hint {
  flex: 1;
  min-width: 8rem;
  font-size: 0.625rem;
  color: var(--on-surface-variant, #64748b);
  margin: 0;
  line-height: 1.35;
}
.od-items-save-btn { padding: 0.3rem 0.75rem; font-size: 0.6875rem; border-radius: 0.25rem; }
.od-item-price {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}
.od-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.35);
  font-size: 0.6875rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.05);
}
.od-note-label {
  flex-shrink: 0;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  padding-top: 0.05rem;
}
.od-note-text {
  color: var(--on-surface-variant, #64748b);
  min-width: 0;
  word-break: break-word;
}

#confirm-dialog {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

/* ── Toasts ────────────────────────────────────────────── */
#toasts {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 340px;
}
.toast {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(10, 76, 110, 0.12);
}
.toast-info { background: var(--primary); color: #fff; }
.toast-success { background: var(--ok); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }

/* ── Skeleton ──────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8f4fc 25%, #d5e8f5 50%, #e8f4fc 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

/* ── Product grid (lumina_glacier_light_edition) ───────── */
.products-grid {
  display: grid;
  /* Two columns on phones; wider breakpoints use auto-fill below */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 480px) {
  .products-grid {
    gap: 14px;
  }
}
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Voice / grouped search — stack sections vertically, products scroll horizontally */
.products-grid.products-grid--voice-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.voice-group-section {
  width: 100%;
  min-width: 0;
}
.voice-group-section + .voice-group-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(10, 76, 110, 0.08);
}
.voice-group-products {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.voice-group-products .product-card-ref {
  flex: 0 0 10.75rem;
  min-width: 10.75rem;
  scroll-snap-align: start;
}
.voice-group-products .card-img {
  height: 7.5rem;
}
.voice-group-products .product-card-category {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  -webkit-line-clamp: 1;
}
.voice-group-products .product-card-ref h3 {
  font-size: 12px;
}
.voice-group-products .product-card-ref .text-lg {
  font-size: 0.9375rem;
}
@media (min-width: 640px) {
  .voice-group-products .product-card-ref {
    flex-basis: 12rem;
    min-width: 12rem;
  }
  .voice-group-products .card-img {
    height: 8.5rem;
  }
}

/* Narrow 2-col: shorter image; "Add product" spans full row */
@media (max-width: 639.98px) {
  .products-grid .product-add-card {
    grid-column: 1 / -1;
  }
  .product-card-ref .card-img {
    height: 9rem;
  }
}
.product-add-card {
  border: 2px dashed rgba(10, 76, 110, 0.3);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  min-height: 280px;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s;
}
.product-add-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
}
.products-filter-row {
  margin-bottom: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.products-filter-row select {
  appearance: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.products-filter-row select:focus {
  outline: none;
  border-color: rgba(10, 76, 110, 0.35);
}
.products-filter-row select.filter-pill-active {
  background: #7dd3fc;
  color: #001f2e;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.4);
}
.products-filter-row .products-filter-select--status {
  min-width: 7.25rem;
  flex-shrink: 0;
}
.products-filter-row .products-filter-select--grow {
  min-width: 9.5rem;
  flex-shrink: 0;
}
.products-filter-row .products-filter-select--sort {
  min-width: 8.75rem;
  flex-shrink: 0;
}
.product-card-ref {
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card-ref:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(125, 211, 252, 0.15);
}
.product-card-ref .card-img {
  position: relative;
  height: 12rem;
  background: #f1f5f9;
  overflow: hidden;
}
.product-card-ref .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.product-card-ref:hover .card-img img { transform: scale(1.08); }
.badge-new-ref {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0a4c6e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-draft-ref {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(100, 116, 139, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.badge-oos-ref {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.buyer-catalog .badge-oos-catalog {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
body.buyer-catalog .product-card--oos .aspect-square::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
body.buyer-catalog .cart-btn-oos {
  margin-top: auto;
  width: 100%;
  cursor: not-allowed;
  opacity: 0.85;
}
.select-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.select-overlay.checked {
  background: var(--primary-light);
  border-color: var(--primary);
}

.card-actions-ref {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--muted);
}
@media (max-width: 639.98px) {
  .card-actions-ref {
    gap: 0.25rem;
    justify-content: space-around;
  }
  .card-actions-ref button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.375rem;
    border-radius: 0.5rem;
  }
}

/* ── My Catalogs (compact glacier list) ─ */
.glacier-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 139, 0.1);
  box-shadow: 0 10px 40px rgba(0, 102, 139, 0.05);
}
.catalog-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.catalog-list-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface, #0f172a);
  line-height: 1.2;
}
.catalog-list-sub {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--on-surface-variant, #64748b);
}
.catalog-list-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.catalog-list-new-btn .material-symbols-outlined {
  font-size: 1.125rem;
}
.catalog-list-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}
.catalog-list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.catalogs-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08) 0%, rgba(10, 76, 110, 0.06) 100%);
  border: 1px solid rgba(125, 211, 252, 0.25);
}
.catalogs-summary-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  color: var(--on-surface-variant, #64748b);
}
.catalogs-summary-stat strong {
  color: var(--primary, #0a4c6e);
  font-weight: 800;
}
.catalogs-summary-stat .material-symbols-outlined {
  font-size: 1rem;
  color: var(--primary, #0a4c6e);
}
.catalog-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.catalog-card:hover {
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 8px 28px rgba(10, 76, 110, 0.1);
  transform: translateY(-1px);
}
.catalog-card__accent {
  height: 3px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0.15));
}
.catalog-card__accent--live {
  background: linear-gradient(90deg, #10b981 0%, #0ea5e9 55%, #b08d57 100%);
}
.catalog-card__body {
  padding: 0.75rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.catalog-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.catalog-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.catalog-badge--live {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.catalog-badge__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: catalog-live-pulse 2s ease-in-out infinite;
}
@keyframes catalog-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.catalog-badge--archived {
  color: #64748b;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.catalog-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.catalog-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary, #0a4c6e);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
.catalog-stat-chip .material-symbols-outlined {
  font-size: 0.875rem;
  opacity: 0.85;
}
.catalog-stat-chip--currency {
  color: #92400e;
  background: rgba(176, 141, 87, 0.1);
  border-color: rgba(176, 141, 87, 0.22);
}
.catalog-share-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(113, 133, 148, 0.15);
  transition: border-color 0.15s;
}
.catalog-share-row:focus-within {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.08);
}
.catalog-share-row__icon {
  font-size: 1rem;
  color: var(--primary, #0a4c6e);
  opacity: 0.55;
  flex-shrink: 0;
}
.catalog-share-row__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--on-surface, #334155);
  padding: 0;
  outline: none;
}
.catalog-share-row__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--primary, #0a4c6e);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.catalog-share-row__btn .material-symbols-outlined {
  font-size: 1.05rem;
}
.catalog-share-row__btn:hover {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}
.catalog-card__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.15rem;
}
.catalog-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary, #475569);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.catalog-action-btn .material-symbols-outlined {
  font-size: 1rem;
}
.catalog-action-btn:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--primary, #0a4c6e);
}
.catalog-action-btn--primary {
  color: #92400e;
  background: rgba(176, 141, 87, 0.12);
  border-color: rgba(176, 141, 87, 0.25);
}
.catalog-action-btn--primary:hover {
  background: rgba(176, 141, 87, 0.2);
  border-color: rgba(176, 141, 87, 0.35);
  color: #78350f;
}
.catalog-action-btn--danger {
  margin-left: auto;
  padding: 0.35rem 0.45rem;
  border-color: transparent;
  color: rgba(220, 38, 38, 0.45);
}
.catalog-action-btn--danger:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}
#catalog-list-panel .glacier-input {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(113, 133, 148, 0.15);
}
#catalog-list-panel .glacier-input:focus-within {
  border-color: rgba(10, 76, 110, 0.3);
}
.catalogs-insights-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 76, 110, 0.05) 0%, rgba(176, 141, 87, 0.08) 100%);
}
.catalogs-fab {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 35;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0a4c6e 0%, #0284c7 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.catalogs-fab .material-symbols-outlined {
  font-size: 1.625rem;
}
.catalogs-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.45);
}
.catalogs-fab:active { transform: scale(0.95); }
@media (min-width: 768px) {
  .catalogs-fab { bottom: 2rem; right: 2rem; }
  .catalog-list-title { font-size: 1.5rem; }
}

/* ── Orders glass table ────────────────────────────────── */
.orders-glass-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.2);
}
.orders-table-panel {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: min(76vh, calc(100dvh - 14rem));
}
.orders-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.orders-table-scroll .orders-table-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.orders-table-body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* ── Orders list ───────────────────────────────────────── */
.orders-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.orders-stat-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
}
.orders-stat-card {
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 2px 10px rgba(10, 76, 110, 0.04);
  min-width: 0;
  overflow: hidden;
}
.orders-stat-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.1rem;
  line-height: 1.2;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.orders-stat-value--money {
  font-size: clamp(0.75rem, 3.2vw, 1rem);
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (min-width: 768px) {
  .orders-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .orders-stat-metrics { display: contents; }
  .orders-stat-card { padding: 0.75rem 1rem; border-radius: 0.875rem; }
  .orders-stat-label { font-size: 0.6875rem; }
  .orders-stat-value { font-size: 1.375rem; }
  .orders-stat-value--money {
    font-size: 1.375rem;
    overflow-wrap: normal;
    word-break: normal;
  }
}
.orders-filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  align-items: stretch;
}
.orders-filters-full { grid-column: 1 / -1; }
.orders-filters .orders-filter-date {
  grid-column: span 1;
}
.orders-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2rem;
  padding: 0 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: white;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.orders-filter-clear-label { display: none; }
.orders-status-tabs {
  display: flex;
  width: 100%;
  padding: 0.15rem;
  border-radius: 0.5rem;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.2);
  gap: 0.1rem;
}
.orders-status-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.3rem 0.25rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--on-surface-variant, #64748b);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  white-space: nowrap;
}
@media (min-width: 480px) {
  .orders-filter-clear-label { display: inline; }
  .orders-status-tab { font-size: 0.75rem; padding: 0.35rem 0.5rem; }
}
@media (min-width: 768px) {
  .orders-filters {
    grid-template-columns: auto 1fr minmax(7rem, 10rem) 7rem 7rem auto;
    gap: 0.5rem 0.625rem;
    padding: 0.75rem 1rem;
    align-items: center;
  }
  .orders-filters-full { grid-column: auto; }
  .orders-status-tabs { width: auto; flex: none; }
  .orders-status-tab { flex: none; min-width: 3.25rem; }
}
.orders-status-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(10, 76, 110, 0.08);
}
.orders-table-head {
  display: none;
}
@media (min-width: 768px) {
  .orders-table-head {
    display: grid;
    grid-template-columns:
      5.75rem minmax(10rem, 1.2fr) minmax(8rem, 0.95fr) 3.5rem
      minmax(5rem, 6rem) minmax(5rem, 6.5rem) 3.25rem;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: rgba(10, 76, 110, 0.06);
    border-bottom: 1px solid rgba(125, 211, 252, 0.2);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--on-surface-variant, #64748b);
    min-width: 52rem;
  }
  .orders-table-head .text-right { text-align: right; }
  .orders-table-head .text-center { text-align: center; }
}
.orders-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.3rem 0.45rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
  margin: 0;
  font-size: 0.75rem;
}
.orders-table-body .orders-row:last-child {
  border-bottom: none;
  border-radius: 0 0 0.75rem 0.75rem;
}
#orders-tbody .orders-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.96);
}
#orders-tbody .orders-row:nth-child(even) {
  background: rgba(240, 249, 255, 0.85);
}
#orders-tbody .orders-row:hover {
  background: rgba(125, 211, 252, 0.16) !important;
}
.orders-row--new { border-left: 3px solid var(--primary-light, #7dd3fc); }
@media (min-width: 768px) {
  .orders-row {
    grid-template-columns:
      5.75rem minmax(10rem, 1.2fr) minmax(8rem, 0.95fr) 3.5rem
      minmax(5rem, 6rem) minmax(5rem, 6.5rem) 3.25rem;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    align-items: center;
    min-width: 52rem;
  }
  .orders-row--new { border-left: none; box-shadow: inset 3px 0 0 var(--primary-light, #7dd3fc); }
}
.orders-cell--pdf {
  display: flex;
  justify-content: center;
  align-items: center;
}
.orders-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: var(--primary);
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.3);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.orders-pdf-link:hover {
  background: rgba(125, 211, 252, 0.35);
  transform: scale(1.05);
}
.orders-pdf-link .material-symbols-outlined { font-size: 1.125rem; line-height: 1; }
.orders-pdf-link--inline {
  width: auto;
  height: auto;
  padding: 0.35rem 0.65rem;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.orders-cell { min-width: 0; }
.orders-cell--date { font-size: 0.75rem; }
.orders-cell--date .orders-date-main { font-weight: 600; color: var(--on-surface, #0f172a); }
.orders-cell--date .orders-date-sub { font-size: 0.6875rem; color: var(--on-surface-variant, #64748b); margin-top: 1px; }
.orders-cell--buyer .orders-buyer-name {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--on-surface, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-cell--buyer .orders-buyer-phone {
  font-size: 0.6875rem;
  color: var(--on-surface-variant, #64748b);
  font-family: ui-monospace, monospace;
}
.orders-cell--buyer .orders-order-id {
  font-size: 0.625rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}
.orders-cell--catalog .orders-catalog-pill {
  display: inline-block;
  max-width: 100%;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(125, 211, 252, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-cell--items { text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--on-surface, #0f172a); }
.orders-cell--items .orders-items-sub { font-size: 0.625rem; color: var(--on-surface-variant, #64748b); font-weight: 500; }
.orders-cell--amount { text-align: right; font-size: 0.875rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.orders-cell--status { text-align: right; }
.orders-mobile-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  font-size: 0.625rem;
  color: var(--on-surface-variant, #64748b);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .orders-mobile-meta { display: none; }
  .hide-sm { display: block !important; }
}
@media (max-width: 767px) {
  .hide-sm { display: none !important; }
  .orders-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto;
  }
  .orders-cell--buyer { grid-column: 1; grid-row: 1; min-width: 0; }
  .orders-cell--status { grid-column: 2; grid-row: 1; }
  .orders-cell--pdf { grid-column: 3; grid-row: 1; }
  .orders-cell--amount {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: right;
    align-self: start;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .orders-mobile-meta { grid-row: 3; }
}
.orders-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.orders-page-info { font-size: 0.75rem; color: var(--on-surface-variant, #64748b); }
.orders-page-btns { display: flex; gap: 0.375rem; width: 100%; }
@media (min-width: 480px) {
  .orders-page-btns { width: auto; }
}
.orders-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: white;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s;
}
@media (min-width: 480px) {
  .orders-page-btn { flex: none; font-size: 0.8125rem; padding: 0.45rem 0.85rem; }
}
.orders-page-btn--icon { gap: 0.35rem; }
.orders-page-btn:hover:not(:disabled) { background: rgba(125, 211, 252, 0.15); }
.orders-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }


/* ── Empty / load more ─────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}
.load-more-bar { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ── Status pills ──────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pill.new { background: rgba(125, 211, 252, 0.25); color: var(--primary); }
.status-pill.pending { background: rgba(125, 211, 252, 0.25); color: var(--primary); }
.status-pill.seen { background: rgba(10, 76, 110, 0.08); color: var(--primary); }
.status-pill.accepted { background: rgba(46, 125, 90, 0.15); color: var(--ok); }
.status-pill.closed { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.status-pill.approved { background: rgba(46, 125, 90, 0.15); color: var(--ok); }
.status-pill.rejected { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.status-pill.active { background: rgba(176, 141, 87, 0.15); color: var(--gold-dark); }
.status-pill.archived { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ── Product detail (vendor + buyer, shared glacier theme) ─ */
.pd-panel {
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}
.pd-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
}

/* Image hero */
.pd-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(240, 249, 255, 0.98) 0%, #fff 60%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 8px 28px rgba(10, 76, 110, 0.08);
}
.pd-hero--vendor {
  aspect-ratio: 1;
  max-height: min(52vh, 26rem);
  cursor: zoom-in;
}
.pd-hero--vendor .pd-hero-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-hero--vendor .pd-hero-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 0.75rem;
}
.pd-hero--sheet {
  aspect-ratio: 4 / 3;
  max-height: 42vh;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
}
.pd-hero-track {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pd-hero-track::-webkit-scrollbar { display: none; }
.pd-hero-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.pd-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-hero-empty {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 76, 110, 0.25);
}
.pd-hero-empty .material-symbols-outlined { font-size: 3rem; }
.pd-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}
.pd-hero-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(10, 76, 110, 0.15);
  transition: transform 0.2s, background 0.2s;
}
.pd-hero-dot.is-active {
  background: var(--primary, #0a4c6e);
  transform: scale(1.2);
}
.pd-zoom-hint {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(10, 76, 110, 0.78);
  color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.pd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(10, 76, 110, 0.15);
  color: var(--primary, #0a4c6e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.pd-nav-btn--prev { left: 0.5rem; }
.pd-nav-btn--next { right: 0.5rem; }
.pd-nav-btn.hidden { display: none; }
.pd-nav-btn .material-symbols-outlined { font-size: 1.35rem; }
.pd-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0 0.15rem 0.1rem;
  overflow-x: auto;
  justify-content: flex-start;
  scrollbar-width: thin;
}
.pd-thumb {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  background: #fff;
  padding: 0;
  transition: opacity 0.2s, border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.pd-thumb.is-active {
  opacity: 1;
  border-color: var(--primary-light, #7dd3fc);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.5);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-img-counter {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
}

/* Info block */
.pd-body,
.pd-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 6px 24px rgba(10, 76, 110, 0.05);
}
.pd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.pd-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.16);
  color: var(--primary, #0a4c6e);
}
.pd-badge--new {
  background: rgba(176, 141, 87, 0.12);
  border-color: rgba(176, 141, 87, 0.32);
  color: var(--gold-dark, #8b6914);
}
.pd-badge--oos {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger, #dc2626);
}
.pd-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #0f172a);
  letter-spacing: -0.02em;
  margin: 0;
}
@media (min-width: 768px) {
  .pd-title { font-size: 1.4rem; }
}
.pd-price-strip {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.25);
}
.pd-price-strip--muted {
  background: rgba(240, 249, 255, 0.8);
  padding: 0.5rem 0.65rem;
}
.pd-price-strip--missing {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}
.pd-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary, #0a4c6e);
  line-height: 1;
}
.pd-price-currency {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
}
.pd-price-missing {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger, #dc2626);
}
.pd-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted, #475569);
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
}
.pd-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  border: 0;
}
.pd-spec {
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(240, 249, 255, 0.75);
  border: 1px solid rgba(125, 211, 252, 0.2);
}
.pd-spec-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #0a4c6e);
  opacity: 0.85;
}
.pd-spec-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.3;
  margin-top: 0.15rem;
}
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.pd-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(10, 76, 110, 0.06);
  color: var(--primary, #0a4c6e);
  border: 1px solid rgba(10, 76, 110, 0.1);
}
.pd-skeleton .sk-block:first-child {
  aspect-ratio: 1;
  max-height: 18rem;
  border-radius: 1rem;
}

/* Vendor product detail (dashboard /product) */
#view-product-detail .pd-vendor {
  max-width: 56rem;
  margin: 0 auto;
}
#view-product-detail .pd-vendor-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
#view-product-detail .pd-vendor-media {
  width: 100%;
  max-width: 11rem;
  margin: 0;
}
#view-product-detail .pd-vendor-main {
  width: 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  #view-product-detail .pd-vendor-media {
    max-width: 13rem;
  }
  #view-product-detail .pd-vendor-grid {
    gap: 1.35rem;
  }
}
#view-product-detail .pd-vendor-media .pd-hero--vendor {
  aspect-ratio: auto;
  max-height: none;
  height: auto;
  width: 100%;
  line-height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0.375rem;
}
#view-product-detail .pd-vendor-media .pd-hero--vendor .pd-hero-frame {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}
#view-product-detail .pd-vendor-media .pd-hero--vendor .pd-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12rem;
  margin: 0;
  padding: 0;
  object-fit: contain;
  vertical-align: top;
}
#view-product-detail .pd-vendor-media .pd-thumbs {
  margin-top: 0.4rem;
  justify-content: flex-start;
}
#view-product-detail .pd-vendor-media .pd-thumb {
  width: 1.5rem;
  height: 1.5rem;
}
#view-product-detail .pd-vendor-media .pd-nav-btn {
  width: 1.75rem;
  height: 1.75rem;
}
#view-product-detail .pd-vendor-media .pd-nav-btn .material-symbols-outlined {
  font-size: 1rem;
}
#view-product-detail .pd-vendor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 5rem;
  aspect-ratio: auto;
  color: rgba(10, 76, 110, 0.35);
  font-size: 0.6875rem;
  font-weight: 600;
}
#view-product-detail .pd-vendor-placeholder .material-symbols-outlined {
  font-size: 1.75rem;
}
#view-product-detail .pd-vendor-title {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text, #0f172a);
}
@media (min-width: 768px) {
  #view-product-detail .pd-vendor-title { font-size: 1.625rem; }
}
#view-product-detail .pd-vendor-price {
  margin: 0.65rem 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
#view-product-detail .pd-vendor-price-amount {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary, #0a4c6e);
}
#view-product-detail .pd-vendor-price-currency {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
}
#view-product-detail .pd-vendor-price--missing {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger, #dc2626);
}
#view-product-detail .pd-vendor-desc {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted, #475569);
  white-space: pre-wrap;
}
#view-product-detail .pd-vendor-specs {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}
#view-product-detail .pd-vendor-specs-title {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary, #0a4c6e);
  opacity: 0.85;
}
#view-product-detail .pd-vendor-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
#view-product-detail .pd-vendor-spec-table tr {
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
}
#view-product-detail .pd-vendor-spec-table tr:last-child {
  border-bottom: 0;
}
#view-product-detail .pd-vendor-spec-table th {
  width: 36%;
  padding: 0.45rem 0.75rem 0.45rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted, #64748b);
  vertical-align: top;
}
#view-product-detail .pd-vendor-spec-table td {
  padding: 0.45rem 0;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.35;
  vertical-align: top;
}
#view-product-detail .pd-vendor-main .pd-tags {
  margin-top: 0.85rem;
}

/* Buyer detail sheet */
body.buyer-catalog .pd-sheet .detail-sheet-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
}
body.buyer-catalog .pd-sheet-body {
  display: flex;
  flex-direction: column;
}
body.buyer-catalog .pd-sheet-body .pd-body {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 1rem 1.1rem 0.5rem;
}
body.buyer-catalog .pd-sheet-actions {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 -4px 20px rgba(10, 76, 110, 0.06);
}
.pd-cta-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pd-cta-btn:active { transform: scale(0.98); }
.pd-cta-btn--primary {
  background: var(--primary, #0a4c6e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 76, 110, 0.25);
}
.pd-cta-btn--primary:hover { filter: brightness(1.05); }
.pd-cta-btn--added {
  background: rgba(125, 211, 252, 0.2);
  color: var(--primary, #0a4c6e);
  border: 1px solid rgba(125, 211, 252, 0.45);
}
.pd-cta-btn--ghost {
  background: rgba(125, 211, 252, 0.1);
  color: var(--primary, #0a4c6e);
  border: 1px solid rgba(125, 211, 252, 0.3);
}
.pd-cta-btn--disabled {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted, #64748b);
  cursor: not-allowed;
}
body.buyer-catalog .price-on-request--detail {
  margin: 0;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  align-items: flex-start;
}

/* ── Upload / thumbs (modal) ───────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(10, 76, 110, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
}
.upload-zone:hover { border-color: var(--primary-light); background: rgba(125, 211, 252, 0.08); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

#catalog-selection-bar {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 1rem;
  border-radius: 12px;
}
#catalog-selection-bar.visible {
  display: flex;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.12);
}

#pd-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#pd-zoom-backdrop.hidden { display: none; }

.filter-toggle.on {
  border-color: rgba(125, 211, 252, 0.6) !important;
  color: var(--primary) !important;
  background: rgba(125, 211, 252, 0.2) !important;
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.25);
}

#menu-btn { display: none; }
@media (max-width: 768px) {
  #menu-btn { display: flex; }
}

/* ── Buyer catalog (lumina_buyer_view_glacier_light) ───── */
body.buyer-catalog {
  background-color: #f8fafc;
  min-height: 100dvh;
}
body.buyer-catalog .glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
body.buyer-catalog .filter-pill-active {
  border-color: #7dd3fc !important;
  background: rgba(125, 211, 252, 0.2) !important;
  color: #0e4d6e !important;
}
body.buyer-catalog .scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
body.buyer-catalog .scroll-thin::-webkit-scrollbar { width: 4px; height: 4px; }
body.buyer-catalog .scroll-thin::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}
body.buyer-catalog .drawer-closed { transform: translateY(100%); }
body.buyer-catalog .drawer-open { transform: translateY(0); }
body.buyer-catalog .backdrop-hidden { opacity: 0; pointer-events: none; }
body.buyer-catalog .backdrop-visible { opacity: 1; pointer-events: auto; }
body.buyer-catalog .product-card { cursor: pointer; }
body.buyer-catalog .dot { transition: transform 0.2s, background 0.2s; }
body.buyer-catalog .dot.active {
  background: #0a4c6e;
  transform: scale(1.2);
}
body.buyer-catalog .img-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}
body.buyer-catalog .pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
body.buyer-catalog .scroll-hide::-webkit-scrollbar { display: none; }
body.buyer-catalog .scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body.buyer-catalog .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buyer catalog — compact filters & cards */
body.buyer-catalog .catalog-filter-ctl {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.2;
}
body.buyer-catalog .catalog-filters select.catalog-filter-ctl {
  padding-right: 1.5rem;
  max-height: 2rem;
}
body.buyer-catalog .catalog-price-range.hidden {
  display: none !important;
}

/* Buyer catalog — command deck (filters + browse header) */
body.buyer-catalog .catalog-deck {
  position: relative;
  z-index: 30;
}
body.buyer-catalog .catalog-deck__surface {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1rem 1rem 0.85rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 249, 255, 0.92) 55%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(10, 76, 110, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
body.buyer-catalog .catalog-deck__surface::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(125, 211, 252, 0.28), transparent 68%);
  pointer-events: none;
}
body.buyer-catalog .catalog-deck__surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.55), rgba(10, 76, 110, 0.08) 45%, rgba(125, 211, 252, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
body.buyer-catalog .catalog-deck__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
body.buyer-catalog .catalog-deck__eyebrow {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0a4c6e, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.2rem;
}
body.buyer-catalog .catalog-deck__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a4c6e;
  line-height: 1.15;
}
body.buyer-catalog .catalog-deck__hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}
body.buyer-catalog .catalog-deck__count {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0a4c6e;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.06);
}
body.buyer-catalog .catalog-deck__count.hidden {
  display: none !important;
}

body.buyer-catalog .catalog-deck__controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
body.buyer-catalog .catalog-deck__controls.hidden {
  display: none !important;
}

body.buyer-catalog .catalog-deck__category {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}
body.buyer-catalog .catalog-deck__category-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(10, 76, 110, 0.06);
}
body.buyer-catalog .catalog-deck__category-main:hover {
  border-color: rgba(10, 76, 110, 0.22);
  box-shadow: 0 6px 18px rgba(10, 76, 110, 0.1);
}
body.buyer-catalog .catalog-deck__category-main:active {
  transform: scale(0.99);
}
body.buyer-catalog .catalog-deck__category.is-active .catalog-deck__category-main {
  border-color: transparent;
  background: linear-gradient(135deg, #0a4c6e 0%, #1a6b8f 52%, #0e7490 100%);
  box-shadow: 0 8px 24px rgba(10, 76, 110, 0.28);
}
body.buyer-catalog .catalog-deck__cat-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.35), rgba(10, 76, 110, 0.12));
  color: #0a4c6e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
body.buyer-catalog .catalog-deck__cat-badge .material-symbols-outlined {
  font-size: 1.25rem;
}
body.buyer-catalog .catalog-deck__category.is-active .catalog-deck__cat-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
body.buyer-catalog .catalog-deck__cat-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
body.buyer-catalog .catalog-deck__cat-kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
body.buyer-catalog .catalog-deck__category.is-active .catalog-deck__cat-kicker {
  color: rgba(255, 255, 255, 0.72);
}
body.buyer-catalog .catalog-deck__cat-value {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
body.buyer-catalog .catalog-deck__category.is-active .catalog-deck__cat-value {
  color: #fff;
}
body.buyer-catalog .catalog-deck__cat-chevron {
  font-size: 1.35rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
body.buyer-catalog .catalog-deck__category.is-active .catalog-deck__cat-chevron {
  color: rgba(255, 255, 255, 0.85);
}
body.buyer-catalog .catalog-deck__cat-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: #0a4c6e;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
body.buyer-catalog .catalog-deck__cat-clear:hover {
  background: #fff;
  border-color: rgba(10, 76, 110, 0.25);
}
body.buyer-catalog .catalog-deck__cat-clear.hidden {
  display: none !important;
}

body.buyer-catalog .catalog-deck__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
body.buyer-catalog .catalog-deck__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.05);
}
body.buyer-catalog .catalog-deck__action:hover {
  border-color: rgba(10, 76, 110, 0.2);
  background: #fff;
}
body.buyer-catalog .catalog-deck__action.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0a4c6e, #1a6b8f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 76, 110, 0.24);
}
body.buyer-catalog .catalog-deck__action-icon {
  font-size: 1rem;
  opacity: 0.9;
}
body.buyer-catalog .catalog-deck__action.is-active .catalog-deck__action-icon {
  opacity: 1;
}

body.buyer-catalog .catalog-deck__sort {
  display: inline-flex;
  flex-shrink: 0;
}
body.buyer-catalog .catalog-deck__sort-select {
  appearance: none;
  min-height: 2.5rem;
  padding: 0.45rem 2rem 0.45rem 2.1rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(125, 211, 252, 0.4) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.05);
}

body.buyer-catalog .catalog-deck__price {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.55rem 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.05);
}
body.buyer-catalog .catalog-deck__price.hidden {
  display: none !important;
}
body.buyer-catalog .catalog-deck__price-currency {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0a4c6e;
  padding-right: 0.1rem;
}
body.buyer-catalog .catalog-deck__price-input {
  width: 3.5rem;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}
body.buyer-catalog .catalog-deck__price-input::-webkit-outer-spin-button,
body.buyer-catalog .catalog-deck__price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.buyer-catalog .catalog-deck__price-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
body.buyer-catalog .catalog-deck__price-sep {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 0 0.05rem;
}

body.buyer-catalog .catalog-deck__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(125, 211, 252, 0.45);
}
body.buyer-catalog .catalog-deck__foot.hidden {
  display: none !important;
}
body.buyer-catalog .catalog-deck__foot-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
body.buyer-catalog .catalog-deck__clear-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(10, 76, 110, 0.08);
  color: #0a4c6e;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
body.buyer-catalog .catalog-deck__clear-all:hover {
  background: rgba(10, 76, 110, 0.14);
}
body.buyer-catalog .catalog-deck__clear-all .material-symbols-outlined {
  font-size: 1rem;
}

@media (min-width: 640px) {
  body.buyer-catalog .catalog-deck__surface {
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 1.35rem;
  }
  body.buyer-catalog .catalog-deck__title {
    font-size: 1.5rem;
  }
  body.buyer-catalog .catalog-deck__hint {
    font-size: 0.8125rem;
  }
  body.buyer-catalog .catalog-deck__controls {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
  }
  body.buyer-catalog .catalog-deck__category {
    flex: 1.4;
    min-width: 0;
  }
  body.buyer-catalog .catalog-deck__quick {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  body.buyer-catalog .catalog-deck__price-input {
    width: 4rem;
  }
}
body.buyer-catalog .catalog-deck__quick--solo {
  width: 100%;
  justify-content: flex-start;
}

/* Compact unified deck (title + filters + category rail in one card) */
body.buyer-catalog .catalog-deck--compact .catalog-deck__surface {
  padding: 0.55rem 0.65rem 0.45rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(10, 76, 110, 0.08);
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__surface::before {
  top: -70%;
  right: -20%;
  width: 45%;
  opacity: 0.5;
}
body.buyer-catalog .catalog-deck__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}
body.buyer-catalog .catalog-deck__bar-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 8rem;
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__count {
  flex-shrink: 0;
  padding: 0.12rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  box-shadow: none;
}
body.buyer-catalog .catalog-deck__filters {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body.buyer-catalog .catalog-deck__filters::-webkit-scrollbar {
  display: none;
}
body.buyer-catalog .catalog-deck__search-row {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
}
body.buyer-catalog .catalog-deck__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.125rem;
  padding: 0.2rem 0.65rem 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.05);
}
body.buyer-catalog .catalog-deck__search .material-symbols-outlined {
  font-size: 1.125rem;
  color: #64748b;
  flex-shrink: 0;
}
body.buyer-catalog .catalog-deck__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.35rem 0.25rem !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  color: #0f172a;
}
body.buyer-catalog .catalog-deck__search-input::placeholder {
  color: #94a3b8;
}
body.buyer-catalog .catalog-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
body.buyer-catalog .catalog-fav-btn .material-symbols-outlined {
  font-size: 1.125rem;
}
body.buyer-catalog .catalog-fav-btn.is-on {
  color: #d97706;
}
body.buyer-catalog .catalog-fav-btn.is-on .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
body.buyer-catalog .catalog-fav-btn--card {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
body.buyer-catalog .catalog-fav-btn--card:active {
  transform: scale(0.94);
}
body.buyer-catalog .catalog-fav-btn--detail {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__action {
  min-height: 1.875rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  gap: 0.25rem;
  border-radius: 9999px;
  box-shadow: none;
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__action-icon {
  font-size: 0.8125rem;
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__price {
  min-height: 1.875rem;
  padding: 0.1rem 0.35rem 0.1rem 0.45rem;
  gap: 0.15rem;
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__price-input {
  width: 2.5rem;
  font-size: 0.6875rem;
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__sort-select {
  min-height: 1.875rem !important;
  padding: 0.25rem 1.65rem 0.25rem 1.55rem !important;
  font-size: 0.6875rem !important;
}
body.buyer-catalog .catalog-deck--compact .catalog-sort-icon {
  left: 0.5rem;
  font-size: 0.875rem;
}
body.buyer-catalog .catalog-deck__rail {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(125, 211, 252, 0.25);
}
body.buyer-catalog .catalog-deck__rail.hidden {
  display: none !important;
}
body.buyer-catalog .catalog-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.35rem;
  padding: 0.15rem 0 0.2rem;
}
body.buyer-catalog .catalog-deck--compact .catalog-cat-grid {
  gap: 0.45rem 0.3rem;
}
body.buyer-catalog .catalog-cat-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.15rem 0.1rem;
  -webkit-tap-highlight-color: transparent;
}
body.buyer-catalog .catalog-cat-rail__avatar {
  width: min(100%, 3.25rem);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(125, 211, 252, 0.45);
  background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
body.buyer-catalog .catalog-cat-rail__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.buyer-catalog .catalog-cat-rail__avatar--initials span {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #0a4c6e;
  letter-spacing: 0.03em;
}
body.buyer-catalog .catalog-cat-rail__avatar--all {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  color: #0a4c6e;
}
body.buyer-catalog .catalog-cat-rail__avatar--all .material-symbols-outlined {
  font-size: 1.2rem;
}
body.buyer-catalog .catalog-cat-rail__label {
  width: 100%;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
body.buyer-catalog .catalog-cat-rail__item.is-active .catalog-cat-rail__avatar {
  border-color: #0a4c6e;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.45), 0 4px 12px rgba(10, 76, 110, 0.14);
  transform: scale(1.03);
}
body.buyer-catalog .catalog-cat-rail__item.is-active .catalog-cat-rail__label {
  color: #0a4c6e;
  font-weight: 700;
}
body.buyer-catalog .catalog-cat-rail__item:active .catalog-cat-rail__avatar {
  transform: scale(0.97);
}
body.buyer-catalog .catalog-deck--compact .catalog-deck__foot {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top-style: dashed;
}
@media (min-width: 640px) {
  body.buyer-catalog .catalog-deck--compact .catalog-deck__surface {
    padding: 0.65rem 0.85rem 0.55rem;
  }
  body.buyer-catalog .catalog-deck--compact .catalog-deck__title {
    font-size: 1.0625rem;
  }
  body.buyer-catalog .catalog-cat-grid {
    gap: 0.55rem 0.45rem;
  }
  body.buyer-catalog .catalog-cat-rail__avatar {
    width: min(100%, 3.5rem);
  }
  body.buyer-catalog .catalog-cat-rail__label {
    font-size: 0.625rem;
  }
}
@media (min-width: 1024px) {
  body.buyer-catalog .catalog-cat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem 0.55rem;
  }
  body.buyer-catalog .catalog-cat-rail__avatar {
    width: min(100%, 3.75rem);
  }
  body.buyer-catalog .catalog-cat-rail__label {
    font-size: 0.6875rem;
  }
}

/* Buyer catalog — sort toolbar */
body.buyer-catalog .catalog-sort-wrap {
  display: inline-flex;
  align-items: center;
}
body.buyer-catalog .catalog-sort-icon {
  position: absolute;
  left: 0.65rem;
  font-size: 1rem;
  color: #0a4c6e;
  opacity: 0.55;
  pointer-events: none;
}
body.buyer-catalog .catalog-sort-select {
  padding-left: 1.85rem !important;
  appearance: none;
  cursor: pointer;
}

body.buyer-catalog #price-access-banner {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (min-width: 640px) {
  body.buyer-catalog .catalog-filter-ctl {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* Hidden-price UX (buyer catalog) */
body.buyer-catalog .price-on-request {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-align: left;
  border-radius: 0.5rem;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.28);
}
body.buyer-catalog .price-on-request--interactive {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
body.buyer-catalog .price-on-request--interactive:hover {
  background: rgba(125, 211, 252, 0.2);
  border-color: rgba(10, 76, 110, 0.25);
}
body.buyer-catalog .price-on-request--interactive:active {
  transform: scale(0.98);
}
body.buyer-catalog .price-on-request--pending {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}
/* Card: single-line chip */
body.buyer-catalog .price-on-request--card {
  margin: 0.25rem 0 0.375rem;
  padding: 0.3125rem 0.4375rem;
  min-height: 1.625rem;
}
body.buyer-catalog .price-on-request--card .price-on-request__icon {
  font-size: 0.9375rem;
  color: #0a4c6e;
  flex-shrink: 0;
}
body.buyer-catalog .price-on-request--card.price-on-request--pending .price-on-request__icon {
  color: #b45309;
}
body.buyer-catalog .price-on-request--card .price-on-request__line {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0a4c6e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
body.buyer-catalog .price-on-request--card.price-on-request--pending .price-on-request__line {
  color: #92400e;
}
body.buyer-catalog .price-on-request--card .price-on-request__chevron {
  font-size: 1rem;
  color: #0a4c6e;
  flex-shrink: 0;
  opacity: 0.7;
}
body.buyer-catalog .product-card-body {
  gap: 0.125rem;
}
body.buyer-catalog .buyer-catalog-grid {
  align-items: stretch;
}
@media (min-width: 768px) {
  body.buyer-catalog .price-on-request--card {
    margin-top: 0.125rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.375rem;
  }
  body.buyer-catalog .price-on-request--card .price-on-request__line {
    font-size: 0.6875rem;
  }
}
body.buyer-catalog .price-on-request--cart {
  padding: 0;
  background: transparent;
  border: none;
}
body.buyer-catalog .price-on-request__icon {
  font-size: 1rem;
  line-height: 1;
  color: #0a4c6e;
  flex-shrink: 0;
}
body.buyer-catalog .price-on-request--pending .price-on-request__icon {
  color: #b45309;
}
body.buyer-catalog .price-on-request__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a4c6e;
  line-height: 1.25;
}
body.buyer-catalog .price-on-request--pending .price-on-request__title {
  color: #92400e;
}
body.buyer-catalog .price-on-request__hint {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
  margin-top: 0.0625rem;
}

/* Product detail loading */
.pd-skeleton .sk-block {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 0.75rem;
}

.ai-dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(125, 211, 252, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.ai-dot.hidden { display: none !important; }

/* ── Categories page ───────────────────────────────────── */
.cat-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-list-empty {
  padding: 2rem 1rem;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.08) 0%, rgba(255, 255, 255, 0.4) 100%);
}
.cat-row-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.35), rgba(14, 116, 144, 0.12));
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--primary);
}
.cat-row-icon .material-symbols-outlined { font-size: 1.1rem; }
.cat-row-body {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.cat-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-row-path {
  font-size: 0.6875rem;
  color: var(--on-surface-variant, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cat-row-count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(14, 116, 144, 0.08);
  color: var(--primary);
  border: 1px solid rgba(125, 211, 252, 0.35);
  min-width: 1.75rem;
  text-align: center;
}
.cat-row-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
.cat-row:hover .cat-row-actions { opacity: 1; }
.cat-row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-row-btn--edit { color: var(--primary); }
.cat-row-btn--edit:hover { background: rgba(125, 211, 252, 0.25); }
.cat-row-btn--delete { color: #dc2626; }
.cat-row-btn--delete:hover { background: rgba(220, 38, 38, 0.1); }
.cat-row-btn .material-symbols-outlined { font-size: 1.05rem; }

/* ── Price access list (same grid/cells as orders) ───────── */
#pa-tbody .orders-row {
  cursor: default;
}
#pa-tbody .orders-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.96);
}
#pa-tbody .orders-row:nth-child(even) {
  background: rgba(240, 249, 255, 0.85);
}
#pa-tbody .orders-row:hover {
  background: rgba(125, 211, 252, 0.16) !important;
}
#pa-tbody .orders-row--last {
  border-bottom: none;
  border-radius: 0 0 0.75rem 0.75rem;
}
#pa-list .orders-cell--pdf .pa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}
@media (min-width: 768px) {
  #pa-list .orders-table-head,
  #pa-tbody .orders-row {
    grid-template-columns: 5.5rem 1.4fr 4rem 2rem 4.75rem minmax(7rem, auto);
  }
}
.pa-wa-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.pa-wa-link:hover { text-decoration: underline; }
@media (max-width: 767px) {
  #pa-list .orders-cell--amount { display: none; }
  #pa-list .orders-cell--pdf .pa-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Vendor home dashboard ───────────────────────────────── */
body[data-page="dashboard"] {
  --dash-font-scale: 1.2;
  background: radial-gradient(circle at top right, rgba(125, 211, 252, 0.3), transparent 50%),
              radial-gradient(circle at bottom left, rgba(200, 160, 240, 0.2), transparent 50%),
              #f1f5f9 !important;
}

body[data-page="dashboard"] #view-area {
  padding: 0.75rem;
}
@media (min-width: 768px) {
  body[data-page="dashboard"] #view-area { padding: 1rem 1.25rem; }
}

#view-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  #view-dashboard { gap: 0.625rem; }
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 4px 20px rgba(10, 76, 110, 0.07);
}
.dash-greeting {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #0a4c6e, #0284c7 55%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-hero-sub {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
}
.dash-band-label {
  margin: 0 0 0.35rem 0.25rem;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

/* Quick actions bar */
.dash-quick-actions-wrap {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
body[data-layout="dashboard"] #view-dashboard .dash-quick-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem !important;
  min-height: 2.25rem !important;
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  border: 1px solid rgba(125, 211, 252, 0.4) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  background-image: none !important;
  color: var(--primary, #0a4c6e) !important;
  box-shadow: 0 1px 3px rgba(10, 76, 110, 0.06) !important;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s !important;
}
body[data-layout="dashboard"] #view-dashboard .dash-quick-btn:hover {
  background: rgba(240, 249, 255, 0.98) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.1) !important;
}
body[data-layout="dashboard"] #view-dashboard .dash-quick-btn .material-symbols-outlined {
  font-size: 1.0625rem !important;
}
body[data-layout="dashboard"] #view-dashboard .dash-quick-btn--primary {
  background: var(--primary, #0a4c6e) !important;
  color: #fff !important;
  border-color: var(--primary, #0a4c6e) !important;
}
body[data-layout="dashboard"] #view-dashboard .dash-quick-btn--primary:hover {
  background: #083d57 !important;
  opacity: 1 !important;
}

/* Week stats — dedicated grid (do not use .orders-stats) */
.dash-week-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.dash-stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.06);
}
.dash-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7dd3fc, #0a4c6e);
  opacity: 0.85;
}
.dash-stat-card--new::before { background: linear-gradient(180deg, #fbbf24, #ea580c); }
.dash-stat-card--seen::before { background: linear-gradient(180deg, #a5b4fc, #4f46e5); }
.dash-stat-card--money {
  background: linear-gradient(135deg, rgba(10, 76, 110, 0.06), rgba(125, 211, 252, 0.12));
}
.dash-stat-card--money::before { width: 4px; background: linear-gradient(180deg, #0a4c6e, #0284c7); }
.dash-stat-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 252, 0.22);
  color: #0a4c6e;
}
.dash-stat-card--new .dash-stat-icon { background: rgba(251, 191, 36, 0.25); color: #c2410c; }
.dash-stat-card--seen .dash-stat-icon { background: rgba(165, 180, 252, 0.3); color: #4338ca; }
.dash-stat-card--money .dash-stat-icon { background: rgba(10, 76, 110, 0.12); }
.dash-stat-icon .material-symbols-outlined { font-size: 1rem; }
.dash-stat-body { flex: 1; min-width: 0; }
.dash-stat-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stat-sublabel {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-top: 0.05rem;
}
.dash-stat-value {
  margin-top: 0.2rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary, #0a4c6e);
  font-variant-numeric: tabular-nums;
}
.dash-stat-card--money .dash-stat-value {
  margin-top: 0.15rem;
}
.dash-stat-value--money {
  font-size: clamp(0.8125rem, 2.8vw, 1.125rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}
@media (max-width: 479px) {
  .dash-stat-card--money { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .dash-week-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .dash-stat-card {
    padding: 0.75rem 1rem;
    min-height: 4.25rem;
  }
  .dash-stat-label { font-size: 0.6875rem; }
  .dash-stat-value { font-size: 1.5rem; }
  .dash-stat-value--money {
    font-size: clamp(0.875rem, 1.1vw, 1.25rem);
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* Panels */
.dash-grid-2 {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .dash-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
}
.dash-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.dash-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 1rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(10, 76, 110, 0.03);
}
.dash-card-title-icon {
  font-size: 1.0625rem !important;
  color: var(--primary, #0a4c6e);
  flex-shrink: 0;
}
.dash-panel-body {
  flex: 1;
  min-height: 0;
  padding: 0.75rem 1rem 1rem;
}

/* Attention */
.dash-attention-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-attention-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(125, 211, 252, 0.22);
  transition: background 0.15s, border-color 0.15s;
}
.dash-attention-item:hover {
  background: rgba(125, 211, 252, 0.14);
  border-color: rgba(125, 211, 252, 0.4);
}
.dash-attention-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 252, 0.22);
  color: var(--primary, #0a4c6e);
}
.dash-attention-icon .material-symbols-outlined { font-size: 1.125rem !important; }
.dash-attention-body { min-width: 0; }
.dash-attention-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.dash-attention-count {
  min-width: 1.375rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.35);
}
.dash-count-tile--warn {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.4), rgba(255, 255, 255, 0.9));
}
.dash-count-tile--warn .dash-count-value { color: #c2410c; }

/* Readiness */
.dash-readiness-bar-wrap { margin-bottom: 0.75rem; }
.dash-readiness-bar {
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(125, 211, 252, 0.18);
  overflow: hidden;
}
.dash-readiness-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0a4c6e, #7dd3fc);
  transition: width 0.3s ease;
}
.dash-readiness-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.35rem;
}
.dash-readiness-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.dash-readiness-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.dash-readiness-item:hover {
  background: rgba(125, 211, 252, 0.1);
}
.dash-readiness-item:hover .dash-readiness-label { color: var(--primary, #0a4c6e); }
.dash-readiness-check {
  font-size: 1.25rem !important;
  line-height: 1;
  color: #cbd5e1;
  flex-shrink: 0;
}
.dash-readiness-item.is-done .dash-readiness-check { color: #16a34a; }
.dash-readiness-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.35;
  min-width: 0;
}
.dash-readiness-arrow {
  font-size: 1.125rem !important;
  color: #cbd5e1;
  flex-shrink: 0;
}
.dash-readiness-item:hover .dash-readiness-arrow { color: var(--primary, #0a4c6e); }

/* Activity */
.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-activity-list--scroll {
  max-height: min(22rem, 50vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.125rem;
}
.dash-activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.625rem 0.25rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.dash-activity-item:first-child { padding-top: 0.125rem; }
.dash-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0.125rem;
}
.dash-activity-item:hover { background: rgba(125, 211, 252, 0.08); }
.dash-activity-item:hover .dash-activity-title { color: var(--primary, #0a4c6e); }
.dash-activity-icon {
  width: 2rem;
  height: 2rem;
  margin-top: 0.05rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 252, 0.18);
  color: var(--primary, #0a4c6e);
  flex-shrink: 0;
}
.dash-activity-icon .material-symbols-outlined { font-size: 1.0625rem !important; }
.dash-activity-body { min-width: 0; }
.dash-activity-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-activity-meta {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* Catalog performance */
.dash-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-catalog-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}
.dash-catalog-row:last-child { border-bottom: none; }
.dash-catalog-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.dash-catalog-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary, #0a4c6e);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Inventory */
.dash-counts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .dash-counts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.dash-count-tile {
  padding: 0.625rem 0.5rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(125, 211, 252, 0.2);
  text-align: center;
  min-width: 0;
}
.dash-count-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary, #0a4c6e);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.dash-count-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.2;
}

.dash-empty {
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
  padding: 1.25rem 0.5rem;
  line-height: 1.45;
  margin: 0;
}
.dash-empty--ok { color: #15803d; font-weight: 500; }
.dash-empty a {
  color: var(--primary, #0a4c6e);
  font-weight: 600;
  text-decoration: none;
}
.dash-empty a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   Dashboard — unified inputs + buttons (catalog modal style)
══════════════════════════════════════════════════════════ */
body[data-layout="dashboard"] .glacier-input,
body[data-layout="dashboard"] .input-field {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 199, 206, 0.6);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text, #0f172a);
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.04);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
body[data-layout="dashboard"] .glacier-input:focus,
body[data-layout="dashboard"] .input-field:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary, #0a4c6e);
  box-shadow: 0 0 0 1px rgba(10, 76, 110, 0.15);
}

body[data-layout="dashboard"] .btn-primary,
body[data-layout="dashboard"] .gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.5rem;
  min-height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: var(--primary, #0a4c6e) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.2);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
body[data-layout="dashboard"] .btn-primary:hover,
body[data-layout="dashboard"] .gold-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  filter: none;
}
body[data-layout="dashboard"] .btn-primary:active,
body[data-layout="dashboard"] .gold-button:active {
  transform: scale(0.98);
}
body[data-layout="dashboard"] .btn-primary:disabled,
body[data-layout="dashboard"] .gold-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body[data-layout="dashboard"] .btn-ghost,
body[data-layout="dashboard"] .btn-secondary,
body[data-layout="dashboard"] .orders-filter-clear,
body[data-layout="dashboard"] .orders-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  min-height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(193, 199, 206, 0.8);
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
body[data-layout="dashboard"] .btn-ghost:hover,
body[data-layout="dashboard"] .btn-secondary:hover,
body[data-layout="dashboard"] .orders-filter-clear:hover,
body[data-layout="dashboard"] .orders-page-btn:hover {
  background: rgba(241, 245, 249, 0.9);
  color: var(--text, #0f172a);
  border-color: rgba(193, 199, 206, 0.9);
}

body[data-layout="dashboard"] .btn-primary.btn-primary--compact,
body[data-layout="dashboard"] .gold-button.text-sm,
body[data-layout="dashboard"] .gold-button.text-xs {
  padding: 0.5rem 1rem;
  min-height: 2.25rem;
  font-size: 0.8125rem;
}

/* Auth pages keep frosted glass inputs */
body[data-layout="auth"] input.glass-input,
body[data-layout="auth"] input.glacier-input {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: none;
}
body[data-layout="auth"] input.glass-input:focus,
body[data-layout="auth"] input.glacier-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 15px rgba(125, 211, 252, 0.15);
}
body[data-layout="auth"] .gold-button {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(180, 134, 11, 0.25);
}
