:root {
  color-scheme: light;

  /* ── core palette ──────────────────────────────────── */
  --ink:    #07102A;
  --navy:   #0F1C50;
  --body:   #1B223C;
  --muted:  #6C72A0;
  --subtle: #A5ABCA;

  /* ── surfaces ──────────────────────────────────────── */
  --surface:   #FFFFFF;
  --surface-2: #F6F7FC;
  --surface-3: #EEEFFE;

  /* ── borders ───────────────────────────────────────── */
  --border:        rgba(15, 28, 80, 0.10);
  --border-strong: rgba(15, 28, 80, 0.18);

  /* ── accent orange ─────────────────────────────────── */
  --orange:       #E35F1C;
  --orange-deep:  #C9531A;
  --orange-dim:   rgba(227, 95, 28, 0.10);
  --orange-ring:  rgba(227, 95, 28, 0.22);

  /* ── status: success ───────────────────────────────── */
  --green:        #13956A;
  --green-dim:    rgba(19, 149, 106, 0.09);
  --green-border: rgba(19, 149, 106, 0.28);

  /* ── status: pending ───────────────────────────────── */
  --amber:        #A05E00;
  --amber-dim:    rgba(160, 94, 0, 0.09);
  --amber-border: rgba(160, 94, 0, 0.26);

  /* ── status: error ─────────────────────────────────── */
  --red:     #B42318;
  --red-dim: rgba(180, 35, 24, 0.09);

  /* ── typography ────────────────────────────────────── */
  --font:      "Noto Sans SC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "IBM Plex Mono", Consolas, "Liberation Mono", monospace;

  /* ── radius ────────────────────────────────────────── */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-pill: 999px;

  /* ── liquid glass accents ──────────────────────────── */
  --blue:               #2563EB;
  --blue-deep:          #1D4ED8;
  --blue-soft:          #60A5FA;
  --blue-dim:           rgba(59, 130, 246, 0.10);
  --blue-border:        rgba(59, 130, 246, 0.16);
  --blue-border-strong: rgba(59, 130, 246, 0.32);
  --glass-bg:           rgba(255, 255, 255, 0.62);
  --glass-bg-soft:      rgba(255, 255, 255, 0.52);
  --glass-blur:         blur(22px) saturate(1.5);

  /* ── elevation ─────────────────────────────────────── */
  --e1: 0 1px 2px rgba(7, 16, 42, .05), 0 0 0 1px rgba(7, 16, 42, .06);
  --e2: 0 1px 3px rgba(7, 16, 42, .06), 0 2px 8px rgba(7, 16, 42, .04), 0 0 0 1px rgba(7, 16, 42, .06);
  --e3: 0 4px 16px rgba(7, 16, 42, .08), 0 1px 4px rgba(7, 16, 42, .05), 0 0 0 1px rgba(7, 16, 42, .05);
  --e4: 0 8px 32px rgba(7, 16, 42, .12), 0 2px 8px rgba(7, 16, 42, .06), 0 0 0 1px rgba(7, 16, 42, .05);

  /* ── transitions ───────────────────────────────────── */
  --tx-fast: 100ms ease;
  --tx:      160ms ease;
  --tx-slow: 240ms ease;

  /* ── legacy aliases (used inside this file only) ───── */
  --color-ink-blue:      var(--ink);
  --color-ghost-white:   #fff;
  --color-fog-gray:      var(--surface-2);
  --color-steel-gray:    var(--border);
  --color-charcoal-text: var(--body);
  --color-slate-text:    var(--muted);
  --color-deep-plum:     var(--navy);
  --color-action-orange: var(--orange);
  --color-success-moss:  var(--green);
  --shadow-subtle:       var(--e2);
  --radius-default:      var(--r);
  --font-suisseintl:     var(--font);
  --font-sfmono:         var(--font-mono);
}

.button--compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */

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

html {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: manipulation;
  background-color: var(--surface-2);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 28, 80, 0.045) 1px, transparent 0);
  background-size: 26px 26px;
  color: var(--body);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--tx-fast);
}

a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════════════
   APP SHELL — sidebar + topbar + main
═══════════════════════════════════════════════════════ */

.app-shell {
  min-height: 100vh;
}

.app-body--with-sidebar .app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
}

.app-shell__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.side-nav {
  position: relative;
  align-self: stretch;
  min-height: 100vh;
  height: auto;
  padding: 0 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow: visible;
}

.side-nav__sticky {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.side-nav__menu {
  display: grid;
  gap: 3px;
}

.side-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.side-nav__link:hover {
  background: var(--surface-3);
  color: var(--navy);
}

.side-nav__link.is-active {
  background: var(--surface-3);
  color: var(--navy);
  font-weight: 600;
}

.side-nav__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #3B82F6;
}

.side-nav__link:hover .side-nav__icon,
.side-nav__link.is-active .side-nav__icon {
  color: #2563EB;
}

.side-nav__badge {
  margin-left: auto;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

/* Sidebar in-page TOC (anchor links to current page sections, sits below main nav) */
.side-nav__extra {
  display: grid;
  gap: 8px;
}

.side-nav__divider {
  height: 1px;
  margin: 0 6px;
  background: var(--border);
}

.side-nav__group-title {
  margin: 0 0 4px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-toc__menu {
  display: grid;
  gap: 1px;
}

.page-toc__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.page-toc__link > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-toc__link:hover {
  background: var(--surface-3);
  color: var(--navy);
}

.page-toc__link.is-active {
  background: var(--surface-3);
  color: var(--navy);
  font-weight: 600;
}

.page-toc__badge {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #F26A1F;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.page-toc__link.is-active .page-toc__badge,
.page-toc__link:hover .page-toc__badge {
  background: #F26A1F;
  color: #fff;
}

.supplier-detail-page section[id],
.supplier-detail-page aside[id] {
  scroll-margin-top: 132px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--tx-fast);
}

.brand:hover {
  opacity: 0.75;
  color: var(--ink);
}

.brand--side {
  display: flex;
  align-items: center;
  height: 64px;
  margin-inline: -14px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 42px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.15;
  font-size: 14px;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lang-switch {
  position: relative;
}

.lang-switch > summary {
  list-style: none;
}

.lang-switch > summary::-webkit-details-marker {
  display: none;
}

.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 7px;
  border: 1.5px solid #DCE3F4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.lang-switch__trigger:hover,
.lang-switch[open] .lang-switch__trigger {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.08);
}

.lang-switch__trigger:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.12);
}

.lang-switch__flag {
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  display: inline-block;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f3f9;
  box-shadow: inset 0 0 0 1px rgba(15, 28, 80, 0.08);
}

.lang-switch__flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-switch__label {
  white-space: nowrap;
}

.lang-switch__chevron {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  color: var(--muted);
  transition: transform var(--tx-fast);
}

.lang-switch[open] .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: max-content;
  margin: 0;
  padding: 5px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--e4);
}

.lang-switch__option {
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--body);
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  cursor: pointer;
}

.lang-switch__option:hover {
  background: var(--surface-3);
  color: var(--navy);
  opacity: 1;
  filter: none;
}

.lang-switch__option.is-active {
  background: rgba(15, 28, 80, 0.06);
  color: var(--navy);
  opacity: 1;
}

.actions-menu {
  position: relative;
  display: inline-block;
}

.actions-menu > summary {
  list-style: none;
}

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

.actions-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(246, 247, 252, 0.6) 100%);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--e1);
  transition: border-color var(--tx-fast), background-image var(--tx-fast), box-shadow var(--tx-fast);
}

.actions-menu__trigger:hover,
.actions-menu[open] .actions-menu__trigger {
  border-color: var(--navy);
  background-image: none;
}

.actions-menu__trigger:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.12);
}

.actions-menu__trigger--icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.actions-menu__trigger--icon .actions-menu__icon {
  width: 16px;
  height: 16px;
  color: var(--navy);
}

.actions-menu__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.actions-menu__chevron {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  color: var(--muted);
  transition: transform var(--tx-fast);
}

.actions-menu[open] .actions-menu__chevron {
  transform: rotate(180deg);
}

.actions-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: max-content;
  padding: 5px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--e4);
}

.actions-menu__form {
  margin: 0;
}

.actions-menu__item {
  width: 100%;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  background-image: none;
  color: var(--body);
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  cursor: pointer;
}

.actions-menu__item:hover {
  background: var(--surface-3);
  color: var(--navy);
  opacity: 1;
  filter: none;
}

.actions-menu__item--danger {
  color: #B12A1A;
}

.actions-menu__item--warning {
  color: var(--orange-deep);
}

.actions-menu__item--warning:hover {
  background: rgba(238, 90, 24, 0.08);
  color: var(--orange-deep);
}

.actions-menu__item--danger:hover {
  background: rgba(177, 42, 26, 0.08);
  color: #B12A1A;
}

.account-menu {
  position: relative;
}

.account-menu > summary {
  list-style: none;
}

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

.account-menu__trigger {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--e1);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.account-menu__trigger:hover,
.account-menu[open] .account-menu__trigger {
  background: var(--orange);
}

.account-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: max-content;
  min-width: 180px;
  max-width: 260px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--e4);
}

.account-menu__identity {
  padding: 6px 10px 8px;
  display: grid;
  justify-items: end;
  text-align: right;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.account-menu__identity strong {
  color: var(--ink);
  font-size: 13px;
}

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

.account-menu__dropdown > a,
.account-menu__dropdown > form > button {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--body);
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.account-menu__dropdown > a:hover,
.account-menu__dropdown > form > button:hover {
  background: var(--surface-3);
  color: var(--navy);
  filter: none;
}

.account-menu__dropdown > form {
  margin: 0;
}

.account-settings-form {
  max-width: none;
  margin: 0;
  display: grid;
  gap: 18px;
}

.account-settings-form + .account-settings-form {
  margin-top: 0;
}

.account-settings-form h2 {
  margin-bottom: 4px;
}

.account-settings-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.account-settings-form__header .button {
  flex: 0 0 auto;
}

.account-settings-layout {
  display: grid;
  gap: 16px;
}

.account-settings-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.account-settings-form--password .account-settings-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-settings-form__field {
  min-width: 0;
  margin-bottom: 0;
}

.account-settings-form__field label {
  min-height: 32px;
  display: flex;
  align-items: flex-end;
  line-height: 1.15;
}

.account-settings-form__submit {
  width: fit-content;
}

.account-settings-page--buyer .site-main {
  width: min(1280px, calc(100% - 48px));
  margin: clamp(18px, 2.4vw, 32px) auto clamp(28px, 4vw, 64px);
}

.account-settings-page--buyer .page-hero {
  margin-bottom: 16px;
}

.account-settings-page--buyer .page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.account-settings-page--buyer .page-hero .eyebrow,
.account-settings-page--buyer .account-settings-form__header .muted {
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .account-settings-form__header {
    display: grid;
  }

  .account-settings-form__header .button {
    width: fit-content;
  }

  .account-settings-fields,
  .account-settings-form--password .account-settings-fields {
    grid-template-columns: 1fr;
  }

  .account-settings-form__field label {
    min-height: 0;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .account-settings-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-settings-form--password .account-settings-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */

.site-main {
  width: min(1200px, calc(100% - 48px));
  margin: clamp(16px, 2.4vw, 32px) auto clamp(24px, 4vw, 64px);
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
}

p { margin: 8px 0 0; }

.muted { color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   MESSAGES
═══════════════════════════════════════════════════════ */

.messages {
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}

.message {
  padding: 12px 16px;
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  background: var(--green-dim);
  color: var(--body);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   TOOLBAR
═══════════════════════════════════════════════════════ */

.toolbar {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar > div:first-child {
  min-width: min(100%, 320px);
}

.supplier-detail-header {
  position: sticky;
  top: 0;
  z-index: 15;
  margin-inline: -12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 247, 252, 0.92);
  backdrop-filter: blur(18px) saturate(1.3);
  transition: padding 200ms ease;
}

.supplier-detail-header-sentinel {
  height: 1px;
  pointer-events: none;
}

.supplier-detail-header.is-stuck {
  position: fixed;
  top: var(--supplier-detail-sticky-top, 0);
  left: var(--supplier-detail-sticky-left, 0);
  width: var(--supplier-detail-sticky-width, auto);
  z-index: 30;
}

.supplier-detail-header h1 {
  transition: font-size 200ms ease;
}

.supplier-detail-header p {
  transition: font-size 200ms ease, margin 200ms ease;
}

.supplier-detail-header > div:first-child {
  min-width: 0;
  transition: gap 200ms ease;
}

.supplier-detail-header.is-condensed {
  padding-block: 6px;
}

.supplier-detail-header.is-condensed > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.supplier-detail-header.is-condensed h1 {
  font-size: 20px;
}

.supplier-detail-header.is-condensed p {
  margin: 0;
  font-size: 12px;
}

.supplier-detail-header__actions,
.supplier-detail-header__actions > form,
.supplier-publication-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supplier-detail-header__actions > form,
.supplier-publication-state {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.supplier-detail-header__actions small {
  font-size: 11px;
}

.moderation-passed-banner {
  margin-bottom: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--green-border);
  border-radius: var(--r-lg);
  background: var(--green-dim);
  box-shadow: var(--e2);
}

.moderation-passed-banner h2 {
  margin-bottom: 6px;
}

.moderation-passed-banner p {
  margin: 0;
  color: var(--body);
}

/* ═══════════════════════════════════════════════════════
   SURFACES
═══════════════════════════════════════════════════════ */

.panel,
.stat,
table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--e2);
}

.panel { padding: 24px; }

.grid {
  display: grid;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════
   STATS (compact row)
═══════════════════════════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: var(--ink);
}

.stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: 0; }

tr:hover td { background: rgba(15, 28, 80, 0.022); }

.supplier-list-header {
  align-items: flex-start;
  margin-bottom: 22px;
}

.supplier-list-stats {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.supplier-list-stats .stat {
  min-height: 72px;
  padding: 12px;
}

.supplier-list-stats .stat strong {
  font-size: 28px;
}

.supplier-list-stats .stat span {
  font-size: 9.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.supplier-list-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
}

.supplier-list-search input {
  width: 100%;
}

.supplier-list-table {
  width: 100%;
  table-layout: fixed;
}

.supplier-list-table th,
.supplier-list-table td {
  padding-inline: 10px;
  overflow-wrap: anywhere;
}

.supplier-list-table td {
  border-bottom: 0;
  display: table-cell;
  vertical-align: middle;
}

.supplier-list-table tbody tr {
  box-shadow: inset 0 -1px 0 var(--border);
}

.supplier-list-table tbody tr:last-child {
  box-shadow: none;
}

.supplier-list-table th:nth-child(1),
.supplier-list-table td:nth-child(1) {
  width: 17%;
}

.supplier-list-table th:nth-child(2),
.supplier-list-table td:nth-child(2) {
  width: 23%;
}

.supplier-list-table th:nth-child(3),
.supplier-list-table td:nth-child(3) {
  width: 15%;
}

.supplier-list-table th:nth-child(4),
.supplier-list-table td:nth-child(4) {
  width: 17%;
}

.supplier-list-table th:nth-child(5),
.supplier-list-table td:nth-child(5) {
  width: 10%;
}

.supplier-list-table th:nth-child(6),
.supplier-list-table td:nth-child(6) {
  width: 18%;
}

.supplier-list-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.supplier-list-logo {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-size: 21px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.supplier-list-logo.buyer-supplier-card__logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  font-size: 20px;
}

.supplier-list-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.supplier-list-logo__placeholder {
  line-height: 1;
}

.supplier-list-logo__zoom {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 28, 80, 0.16);
  transition: transform var(--tx-fast), background var(--tx-fast), border-color var(--tx-fast);
}

.supplier-list-logo__zoom:hover,
.supplier-list-logo__zoom:focus-visible {
  transform: translateY(-1px);
  border-color: var(--blue-border-strong);
  background: #fff;
}

.supplier-list-logo__zoom svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.supplier-list-identity__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.supplier-list-login {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.supplier-list-login span,
.supplier-list-login small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.supplier-list-login small {
  color: var(--muted);
  font-size: 12px;
}

.supplier-list-status {
  max-width: 100%;
  justify-content: center;
  padding-block: 4px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.supplier-list-actions {
  white-space: normal;
}

.supplier-list-actions__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.supplier-list-actions__inner form {
  margin: 0;
}

.moderator-buyer-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.moderator-buyer-stats .stat {
  min-height: 46px;
  padding: 7px 14px;
  border-radius: 14px;
  gap: 2px;
}

.moderator-buyer-stats .stat strong {
  font-size: 20px;
  line-height: 1;
}

.moderator-buyer-stats .stat span {
  font-size: 9.5px;
  line-height: 1.1;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.status-chip--danger {
  background: rgba(180, 35, 24, 0.10);
  color: var(--red);
}

.moderator-contact-list {
  display: grid;
  gap: 4px;
  color: var(--body);
  font-size: 13px;
}

.moderator-contact-list b {
  color: var(--muted);
  font-weight: 700;
}

.moderator-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moderator-business-note {
  max-width: 360px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.moderator-buyer-table th:nth-child(1),
.moderator-buyer-table td:nth-child(1) {
  width: 14%;
}

.moderator-buyer-table th:nth-child(2),
.moderator-buyer-table td:nth-child(2) {
  width: 15%;
}

.moderator-buyer-table th:nth-child(3),
.moderator-buyer-table td:nth-child(3) {
  width: 24%;
}

.moderator-buyer-table th:nth-child(4),
.moderator-buyer-table td:nth-child(4) {
  width: 22%;
}

.moderator-buyer-table th:nth-child(5),
.moderator-buyer-table td:nth-child(5) {
  width: 7%;
  text-align: center;
}

.moderator-buyer-table th:nth-child(6),
.moderator-buyer-table td:nth-child(6) {
  width: 12%;
  white-space: nowrap;
}

.moderator-buyer-table th:nth-child(7),
.moderator-buyer-table td:nth-child(7) {
  width: 6%;
  text-align: center;
}

.moderator-buyer-table th,
.moderator-buyer-table td {
  padding-block: 11px;
}

.moderator-buyer-table td {
  vertical-align: middle;
}

.moderator-buyer-settings-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-deep);
  box-shadow: var(--e1);
  margin-inline: auto;
}

.moderator-buyer-settings-link:hover {
  border-color: var(--blue-border-strong);
  background: #fff;
  color: var(--orange);
}

.moderator-buyer-settings-link svg {
  width: 17px;
  height: 17px;
}

.moderator-buyer-settings {
  padding: 22px 24px;
}

.moderator-buyer-settings__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.moderator-buyer-settings__head h2 {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
}

.moderator-buyer-settings__grid,
.moderator-buyer-danger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.moderator-buyer-settings__grid h3,
.moderator-buyer-danger-grid h2 {
  margin: 0 0 12px;
  color: var(--ink);
}

.moderator-buyer-settings__facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.moderator-buyer-settings__facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.moderator-buyer-settings__facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.moderator-buyer-settings__facts dd {
  margin: 0;
  color: var(--body);
  overflow-wrap: anywhere;
}

.moderator-buyer-danger-grid {
  margin-top: 16px;
}

.moderator-buyer-delete-card {
  border-color: rgba(180, 35, 24, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

.moderator-buyer-danger-grid button {
  margin-top: 12px;
}

.pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.supplier-list-actions__inner .button,
.supplier-list-actions__inner button {
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */

.button,
button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--orange);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.04) 100%);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(227, 95, 28, 0.35), 0 0 0 1px rgba(227, 95, 28, 0.7) inset;
  transition: background var(--tx-fast), background-image var(--tx-fast), box-shadow var(--tx-fast), opacity var(--tx-fast);
}

.button:hover,
button:hover {
  color: #fff;
  opacity: 0.92;
  filter: none;
}

.button.secondary,
button.secondary {
  background: var(--surface);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(246,247,252,0.6) 100%);
  color: var(--navy);
  border-color: var(--border-strong);
  box-shadow: var(--e1);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--surface-2);
  background-image: none;
  border-color: var(--navy);
  color: var(--navy);
  filter: none;
  opacity: 1;
}

.button.button--compact,
button.button--compact {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
}

.button.button--danger,
button.button--danger {
  background: #b42318;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.05) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(180, 35, 24, 0.28), 0 0 0 1px rgba(180, 35, 24, 0.7) inset;
}

.button.button--ghost-danger,
button.button--ghost-danger {
  border-color: rgba(180, 35, 24, 0.26);
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════════ */

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(15, 28, 80, 0.17);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  background: var(--surface);
  color: var(--body);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

input[type="checkbox"],
input[type="radio"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--navy);
  cursor: pointer;
}

input[type="radio"] { border-radius: 50%; }

select[multiple] { min-height: 140px; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.09);
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 600;
}

.field { margin-bottom: 16px; }

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

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 52px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 28, 80, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--navy);
  box-shadow: none;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.82;
  z-index: 2;
}

.password-field__toggle:hover,
.password-field__toggle:focus-visible {
  background: rgba(15, 28, 80, 0.06);
  color: var(--navy);
  opacity: 1;
}

.password-field__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.10);
}

.password-field__icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.password-field__icon--hide,
.password-field__toggle[aria-pressed="true"] .password-field__icon--show {
  display: none;
}

.password-field__toggle[aria-pressed="true"] .password-field__icon--hide {
  display: block;
}

.file-control {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px;
  border: 1px solid rgba(15, 28, 80, 0.17);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.file-control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.09);
}

.file-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.file-control__button {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.file-control__name {
  min-width: 0;
  color: var(--muted);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.supplier-logo-preview {
  margin-top: 10px;
  padding: 8px;
  display: inline-flex;
  max-width: min(100%, 360px);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.68);
}

.supplier-logo-preview__thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}

.supplier-logo-preview__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.supplier-logo-preview__body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.supplier-logo-preview__body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.supplier-logo-preview__body strong {
  color: var(--ink);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.supplier-logo-preview__body a {
  width: fit-content;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}

.product-photo-section {
  margin-top: 16px;
}

.product-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.product-photo {
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.product-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 5px;
  background: var(--surface);
  object-fit: contain;
}

.product-photo > a {
  display: block;
  color: inherit;
}

.product-photo form,
.product-photo button {
  width: 100%;
}

.supplier-preview-layout {
  margin-top: 16px;
}

.supplier-preview-panel {
  min-height: 100%;
}

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

.supplier-file-card {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  text-decoration: none;
}

.supplier-file-card--inline {
  max-width: 520px;
  grid-template-columns: auto minmax(0, 1fr);
}

.supplier-file-card strong,
.supplier-file-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.supplier-file-card small {
  margin-top: 3px;
  color: var(--muted);
}

.supplier-file-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.supplier-media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.supplier-media-preview {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.supplier-media-preview img,
.supplier-table-thumb img,
.supplier-current-file__image img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  object-fit: cover;
}

.supplier-media-preview img {
  aspect-ratio: 4 / 3;
}

.supplier-media-preview span {
  color: var(--muted);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.supplier-table-thumb {
  width: 72px;
  display: block;
}

.moderator-media-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.moderator-media-file .supplier-table-thumb {
  flex: 0 0 auto;
}

.moderator-file-stack,
.moderator-media-file__body {
  display: grid;
  gap: 8px;
  min-width: 0;
  justify-items: start;
}

.moderator-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

.moderator-media-file__name {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.supplier-product-thumb {
  width: 46px;
  height: 46px;
  display: block;
}

.supplier-table-thumb img {
  aspect-ratio: 4 / 3;
}

.supplier-product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  object-fit: cover;
}

.supplier-current-file {
  margin-bottom: 16px;
}

.supplier-current-file__image {
  max-width: 420px;
  display: block;
}

.supplier-current-file__image img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.product-photo-strip {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-photo-strip a,
.product-photo-strip img {
  width: 42px;
  height: 42px;
  display: block;
}

.product-photo-strip img {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  object-fit: cover;
}

.product-photo-strip span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.product-review-action {
  min-width: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-assistant {
  margin-top: 10px;
  padding-top: 10px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.category-assistant__heading,
.category-assistant__suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-assistant__heading {
  font-size: 12px;
}

.category-assistant__items {
  display: grid;
  gap: 6px;
}

.category-assistant__items form,
.category-assistant__actions form {
  margin: 0;
}

.category-assistant__suggestion {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  background: var(--green-dim);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}

.category-assistant__suggestion strong {
  color: var(--green);
  white-space: nowrap;
}

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

.category-assistant__error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════
   TAG PICKER
═══════════════════════════════════════════════════════ */

.tag-picker__select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.tag-picker {
  position: relative;
  min-height: 46px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid rgba(15, 28, 80, 0.17);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.tag-picker:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.09);
}

.tag-picker__chips { display: contents; }

.tag-picker__chip {
  min-height: 26px;
  padding: 0 9px 0 10px;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--navy);
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: background var(--tx-fast), border-color var(--tx-fast);
}

.tag-picker__chip:hover {
  background: var(--surface-3);
  color: var(--navy);
  filter: none;
}

.tag-picker__chip b {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1;
}

.tag-picker__input {
  width: 180px;
  min-width: 160px;
  flex: 1;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tag-picker__input:focus { outline: 0; }

.tag-picker__suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--e4);
}

.tag-picker__suggestion {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--body);
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.tag-picker__suggestion:hover {
  background: var(--surface-2);
  color: var(--navy);
  filter: none;
}

.tag-picker__empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════
   FORM VARIANTS
═══════════════════════════════════════════════════════ */

.helptext,
.errorlist {
  font-size: 12.5px;
  margin-top: 5px;
}

.errorlist { color: var(--red); }

.wizard-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.wizard-form > .field { margin-bottom: 0; }

.wizard-form > button[type="submit"],
.wizard-form > .errorlist,
.wizard-form > .field:has(textarea),
.wizard-form > .field:has(input[type="file"]),
.wizard-form > .field:has(.tag-picker),
.wizard-form > .moderation-history-inline {
  grid-column: 1 / -1;
}

.moderation-history-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--amber-border);
  border-radius: var(--r);
  background: var(--amber-dim);
}

.moderation-history-inline > .eyebrow {
  margin-bottom: 4px;
}

.moderation-history-inline__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

.moderation-history-inline__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.moderation-history-inline__comment {
  margin: 0;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.5;
}

.field--boolean { align-self: stretch; }

/* Category accordion */
.cat-accordion { }
.cat-accordion__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cat-accordion__summary::-webkit-details-marker { display: none; }
.cat-accordion__summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
details[open] > .cat-accordion__summary::before { transform: rotate(90deg); }
.cat-accordion__summary:hover { background: var(--bg-subtle, #f9f9f9); }
.cat-accordion__name { font-weight: 600; }
.cat-accordion__sub { font-size: 13px; }
.cat-accordion__count {
  margin-left: auto;
  font-size: 12px;
  background: var(--bg-subtle, #f0f0f0);
  border-radius: 10px;
  padding: 1px 8px;
}
.cat-accordion__body { padding: 0 16px 16px; }
.cat-accordion__edit-row { margin-bottom: 10px; }

.category-legend {
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.category-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.category-marker {
  min-height: 22px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.category-marker--regulated {
  border-color: rgba(196, 103, 20, 0.32);
  background: rgba(231, 91, 23, 0.1);
  color: #a24b0a;
}

.category-marker--new {
  border-color: rgba(25, 135, 84, 0.3);
  background: rgba(25, 135, 84, 0.11);
  color: #116b43;
}

.category-marker--alert {
  width: 24px;
  padding-inline: 0;
  border-radius: 50%;
  font-size: 13px;
}

.category-search {
  position: relative;
  z-index: 20;
  max-width: 720px;
  margin-bottom: 16px;
}

.category-search > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.category-search > input {
  width: 100%;
}

.category-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--e4);
}

.category-search__result {
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--body);
  box-shadow: none;
  text-align: left;
}

.category-search__result:hover,
.category-search__result.is-active {
  background: var(--surface-3);
  color: var(--navy);
  filter: none;
}

.category-search__result span {
  color: var(--muted);
  font-size: 12px;
}

.category-search__empty {
  padding: 12px;
  color: var(--muted);
}

.cat-accordion,
[id^="category-item-"] {
  scroll-margin-top: 110px;
}

.category-search-target {
  animation: category-search-highlight 1.8s ease;
}

@keyframes category-search-highlight {
  0%, 100% { background: transparent; }
  20%, 70% { background: rgba(231, 91, 23, 0.13); }
}

.boolean-control {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 28, 80, 0.15);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--body);
  cursor: pointer;
  transition: border-color var(--tx), box-shadow var(--tx);
}

.boolean-control:hover {
  border-color: var(--border-strong);
  box-shadow: var(--e1);
}

.boolean-control span { font-weight: 600; }

.field > div[id^="id_"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.field > div[id^="id_"] > div > label {
  min-height: 38px;
  margin: 0;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 28, 80, 0.14);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--tx-fast), background var(--tx-fast);
}

.field > div[id^="id_"] > div > label:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* ═══════════════════════════════════════════════════════
   STATUS CHIPS
═══════════════════════════════════════════════════════ */

.status-chip {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--green-border);
  border-radius: var(--r-pill);
  background: var(--green-dim);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meta-row > .status-chip::before { display: none; }

.status-chip--pending {
  border-color: var(--amber-border);
  background: var(--amber-dim);
  color: var(--amber);
}

button.status-chip {
  cursor: pointer;
  font-family: inherit;
  background-image: none;
  box-shadow: none;
  min-height: 22px;
  padding: 0 9px;
  font-size: 11px;
  transition: filter var(--tx-fast);
}
button.status-chip:hover { filter: brightness(0.88); }

/* ═══════════════════════════════════════════════════════
   META ROW
═══════════════════════════════════════════════════════ */

.meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.meta-row > span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--subtle);
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════════════════════ */

.page-hero {
  margin-bottom: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow: var(--e2);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%);
}

.auth-promo {
  min-height: 100%;
  padding: clamp(32px, 5vw, 68px);
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 18%, rgba(227, 95, 28, 0.24), transparent 25%),
    linear-gradient(135deg, #09143b 0%, var(--navy) 58%, #182a6b 100%);
  color: #fff;
  box-shadow: var(--e4);
  overflow: hidden;
}

.auth-promo__copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.auth-promo__copy .auth-kicker {
  margin-bottom: 18px;
  color: #ff9b68;
}

.auth-promo__copy h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(32px, 4.25vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-promo__copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
}

.buyer-catalog-body {
  color: var(--body);
}

.buyer-catalog-body .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.buyer-catalog-body .topbar {
  min-height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.buyer-catalog-body .site-main {
  width: 100%;
  margin: 0;
}

.buyer-side-nav {
  position: relative;
  align-self: stretch;
  min-height: 100vh;
  height: auto;
  padding: 0 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: visible;
}

body.demo-plan .buyer-side-nav {
  display: none;
}

.buyer-side-nav__brand {
  flex: 0 0 auto;
}

.buyer-side-nav__menu {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 3px;
}

.buyer-side-nav__link {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.buyer-side-nav__link:hover {
  background: var(--surface-3);
  color: var(--navy);
}

.buyer-side-nav__link.is-active {
  background: var(--surface-3);
  color: var(--navy);
  font-weight: 600;
}

.buyer-side-nav__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #3B82F6;
}

.buyer-side-nav__link:hover .buyer-side-nav__icon,
.buyer-side-nav__link.is-active .buyer-side-nav__icon {
  color: var(--orange);
}

.buyer-side-nav__badge {
  margin-left: auto;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.buyer-mobile-menu-button,
.buyer-mobile-brand,
.buyer-mobile-notification,
.buyer-mobile-nav-backdrop {
  display: none;
}

.buyer-mobile-menu-button {
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.buyer-mobile-menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.buyer-mobile-brand {
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.buyer-mobile-brand .brand-logo {
  width: 34px;
  height: 34px;
}

.buyer-mobile-brand span {
  min-width: 0;
  display: grid;
  line-height: 1.1;
}

.buyer-mobile-brand strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.buyer-mobile-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.buyer-mobile-notification {
  position: relative;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.buyer-mobile-notification svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buyer-mobile-notification__badge {
  position: absolute;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.buyer-notification {
  position: relative;
  display: inline-block;
}

.buyer-notification > summary {
  list-style: none;
}

.buyer-notification > summary::-webkit-details-marker {
  display: none;
}

.buyer-notification__trigger {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue-deep);
  box-shadow: var(--e1);
  cursor: pointer;
}

.buyer-notification__trigger:hover,
.buyer-notification[open] .buyer-notification__trigger {
  border-color: var(--blue-border-strong);
  background: #fff;
  color: var(--blue);
}

.buyer-notification__trigger svg {
  width: 22px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.buyer-notification__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.buyer-notification__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 92px));
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  background: rgba(245, 247, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 18px 44px rgba(15, 28, 80, 0.18);
}

.buyer-notification__head {
  padding: 4px 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buyer-notification__head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.buyer-notification__head span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.buyer-notification__list {
  display: grid;
  gap: 8px;
}

.buyer-notification__item,
.buyer-notification__empty {
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--body);
  text-decoration: none;
}

.buyer-notification__item:hover,
.buyer-notification__item:focus-visible {
  border-color: var(--blue-border-strong);
  background: #fff;
  color: var(--body);
}

.buyer-notification__meta {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.buyer-notification__item strong,
.buyer-notification__empty strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.18;
}

.buyer-notification__item small,
.buyer-notification__empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.buyer-top-search {
  width: min(640px, 50vw);
  height: 38px;
  margin-right: auto;
  position: relative;
}

.buyer-top-search input,
.buyer-catalog-search input {
  width: 100%;
  height: 100%;
  padding: 0 14px 0 40px;
  border: 1.5px solid #DCE3F4;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.buyer-top-search input:focus,
.buyer-catalog-search input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.08);
}

.buyer-top-search input::placeholder,
.buyer-catalog-search input::placeholder {
  color: #a6abc0;
}

.buyer-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
}

.buyer-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  padding: 24px 10px 24px 24px;
  align-items: start;
}

.buyer-catalog__main {
  min-width: 0;
}

.buyer-catalog__heading {
  margin-bottom: 18px;
}

.buyer-catalog__heading h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.buyer-catalog-search {
  position: relative;
  height: 42px;
}

.buyer-catalog-search input {
  border-color: var(--border);
  border-radius: var(--r);
  box-shadow: var(--e1);
}

.buyer-supplier-list {
  display: grid;
  gap: 14px;
}

.buyer-supplier-card {
  min-height: 188px;
  padding: 20px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e2);
}

.buyer-supplier-card--compact {
  min-height: 0;
  padding: 16px;
  grid-template-columns: 54px minmax(0, 1fr);
}

.buyer-supplier-card--compact .buyer-supplier-card__logo {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.buyer-supplier-card--compact .buyer-supplier-card__description {
  margin-bottom: 10px;
}

.buyer-supplier-card__logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
}

.buyer-supplier-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.buyer-supplier-card__body {
  min-width: 0;
}

.buyer-supplier-card__body h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.buyer-supplier-card__title-link {
  color: var(--ink);
}

.buyer-supplier-card__title-link:hover {
  color: var(--orange);
}

.buyer-supplier-card__location {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.25;
}

.buyer-supplier-card__location svg {
  width: 13px;
  height: 13px;
  color: var(--subtle);
}

.buyer-supplier-card__meta {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.buyer-supplier-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.buyer-supplier-card__meta b {
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.buyer-supplier-card__meta .is-success b {
  color: #16a34a;
}

.buyer-supplier-card__meta .is-rating b {
  color: #ffbf00;
}

.buyer-supplier-card__description {
  max-width: 860px;
  margin: 0 0 14px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
}

.buyer-supplier-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-supplier-card__tags span {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 650;
}

.buyer-supplier-card__actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-supplier-card__actions form {
  margin: 0;
}

.buyer-favorite-form {
  margin: 0;
}

.buyer-favorite-button.is-active {
  border-color: var(--orange-ring);
  background: var(--orange-dim);
  background-image: none;
  color: var(--orange-deep);
  box-shadow: none;
}

.buyer-profile {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.buyer-profile__topline a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.buyer-profile__topline a:hover {
  color: var(--orange);
}

.buyer-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.buyer-profile-card,
.buyer-profile-side-card,
.buyer-profile-section {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e2);
}

.buyer-profile-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.buyer-profile-card__logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 28px;
  font-weight: 850;
}

.buyer-profile-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.buyer-profile-card__main h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.buyer-profile-card__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-profile-card__actions form {
  margin: 0;
}

.buyer-profile-side-card,
.buyer-profile-section {
  padding: 20px;
}

.buyer-profile-side-card h2,
.buyer-profile-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.buyer-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.buyer-profile-main,
.buyer-profile-aside {
  display: grid;
  gap: 16px;
}

.buyer-profile-aside {
  position: sticky;
  top: 84px;
}

.buyer-profile-section h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.buyer-profile-section p {
  color: var(--body);
  font-size: 13px;
  line-height: 1.6;
}

.buyer-profile-facts {
  margin: 0;
  display: grid;
  gap: 10px;
}

.buyer-profile-facts div {
  display: grid;
  gap: 2px;
}

.buyer-profile-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.buyer-profile-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.buyer-profile-info-list,
.buyer-profile-two-columns {
  display: grid;
  gap: 14px;
}

.buyer-profile-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-profile-info-list > div {
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface-2);
}

.buyer-profile-facts--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-profile-logistics-list {
  display: grid;
  gap: 12px;
}

.buyer-profile-logistics-list article {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.buyer-profile-logistics-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.buyer-profile-logistics-list h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13.5px;
}

.buyer-profile-logistics-list p {
  margin: 0;
}

.buyer-profile-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.buyer-profile-media-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
}

.buyer-profile-media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.buyer-profile-media-grid figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.buyer-profile-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buyer-profile-product-card {
  min-height: 150px;
  padding: 14px;
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.buyer-profile-product-card__photo-button {
  position: relative;
  width: 96px;
  height: 96px;
  min-width: 96px;
  max-width: 96px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: var(--surface-3);
  cursor: pointer;
  transition: border-color var(--tx-fast), transform var(--tx-fast), box-shadow var(--tx-fast);
}

.page-glass .site-main .buyer-profile-product-card__photo-button {
  border-radius: 0 !important;
}

.buyer-profile-product-card__photo-button:hover,
.buyer-profile-product-card__photo-button:focus-visible {
  box-shadow: var(--e2);
  transform: translateY(-1px);
}

.buyer-profile-product-card__media {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface-3);
}

.buyer-profile-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.buyer-profile-product-card__visual {
  position: relative;
  width: 96px;
  height: 96px;
  display: block;
}

.buyer-profile-product-card > img,
.buyer-profile-product-card__photo-button img,
.buyer-profile-product-card__thumb {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  background: var(--surface-3);
}

.buyer-profile-product-card__media span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 28, 80, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.buyer-profile-product-card__count {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(15, 28, 80, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.buyer-profile-product-card__count:hover,
.buyer-profile-product-card__count:focus-visible {
  background: rgba(234, 88, 12, 0.92);
}

.buyer-profile-product-card__placeholder {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
}

.buyer-profile-product-card h3 {
  font-size: 15px;
}

.buyer-profile-product-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.buyer-profile-product-meta span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.buyer-profile-product-meta b {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.buyer-product-gallery {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.buyer-product-gallery::backdrop {
  background: rgba(7, 13, 37, 0.46);
  backdrop-filter: blur(4px);
}

.buyer-product-gallery__box {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(190, 207, 255, 0.9);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e3);
}

.buyer-product-gallery__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: var(--r-sm) !important;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange);
  font-size: 18px;
  font-weight: 500;
}

.buyer-product-gallery__stage {
  position: relative;
  min-height: min(62vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
}

.buyer-product-gallery__stage img {
  width: 100%;
  max-height: min(62vh, 520px);
  display: none;
  object-fit: contain;
}

.buyer-product-gallery__stage img.is-active {
  display: block;
}

.buyer-product-gallery__nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 207, 255, 0.85);
  border-radius: var(--r-sm) !important;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-deep);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--e1);
  transform: translateY(-50%);
}

.buyer-product-gallery__nav--prev {
  left: 12px;
}

.buyer-product-gallery__nav--next {
  right: 12px;
}

.buyer-product-gallery__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.buyer-product-gallery__label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.buyer-product-gallery__meta h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.buyer-product-gallery__counter {
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.buyer-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.buyer-product-gallery__thumbs button {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--r-sm) !important;
  background: var(--surface-2);
}

.buyer-product-gallery__thumbs button.is-active {
  border-color: var(--blue);
}

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

.buyer-profile-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.buyer-profile-category-grid div {
  min-height: 70px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.buyer-profile-category-grid strong {
  color: var(--ink);
}

.buyer-profile-category-grid span {
  color: var(--muted);
  font-size: 12px;
}

.buyer-profile-check-list,
.buyer-profile-document-list {
  display: grid;
  gap: 8px;
}

.buyer-profile-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.buyer-profile-check-list li {
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: var(--green-dim);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 750;
}

.buyer-profile-document-list a {
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
}

.buyer-profile-document-list a:hover {
  border-color: var(--orange-ring);
  color: var(--orange);
}

.buyer-profile-document-list span {
  color: var(--muted);
  font-size: 11px;
}

.buyer-filter-panel {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 14px 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--e2);
}

.buyer-filter-panel h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.buyer-filter-panel__group {
  margin-bottom: 14px;
  display: grid;
  gap: 5px;
}

.buyer-filter-panel__group h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0;
}

.buyer-filter-panel label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--body);
  font-size: 10.5px;
  line-height: 1.18;
}

.buyer-filter-panel input[type="checkbox"],
.buyer-filter-panel input[type="radio"] {
  width: 11px;
  height: 11px;
  margin: 0.5px 0 0;
  accent-color: var(--navy);
}

.buyer-filter-search {
  height: 25px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.buyer-filter-search svg {
  width: 12px;
  height: 12px;
}

.buyer-filter-panel__more,
.buyer-filter-panel__actions a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 500;
  text-align: left;
}

.buyer-filter-panel__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buyer-filter-panel__actions button {
  min-height: 32px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  background: var(--orange);
  color: #fff;
  font-size: 12px;
}

.buyer-filter-panel__empty {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.buyer-empty-state {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e2);
  text-align: center;
}

.buyer-empty-state h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.buyer-empty-state p {
  margin: 0;
  color: var(--muted);
}

.call-request-panel {
  padding: 22px;
}

.call-request-list {
  display: grid;
  gap: 12px;
}

.call-request-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.call-request-card h2 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.call-request-card p {
  margin-top: 8px;
}

.call-request-card__side {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 12px;
}

.call-request-card__side form {
  margin: 0;
}

.call-request-card__notice {
  padding: 8px 12px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--r-pill);
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.call-confirmation-grid {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.call-confirmation-grid span {
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
}

.call-confirmation-grid .is-confirmed {
  background: var(--green-dim);
  color: var(--green);
}

.call-request-details {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.call-request-details div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  color: var(--body);
  font-size: 12.5px;
}

.call-request-details dt {
  color: var(--muted);
  font-weight: 750;
}

.call-request-details dd {
  margin: 0;
  color: var(--ink);
}

.buyer-call-modal {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  overflow: hidden;
}

.buyer-call-modal::backdrop {
  background: rgba(7, 12, 32, 0.46);
  backdrop-filter: blur(2px);
}

.buyer-call-modal__box {
  max-height: calc(100dvh - 28px);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(7, 12, 32, 0.24);
  overflow: hidden;
}

.buyer-call-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.buyer-call-modal__header h2 {
  margin: 2px 0 2px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.buyer-call-modal__header p {
  margin: 0;
  font-size: 12px;
}

.buyer-call-modal__form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px 10px;
}

.buyer-call-modal__quick-row,
.buyer-call-modal__field--wide {
  grid-column: 1 / -1;
}

.buyer-call-modal__field--category {
  grid-column: span 4;
}

.buyer-call-modal__field--message {
  grid-column: span 8;
}

.buyer-call-modal__choice-block--half {
  grid-column: span 6;
}

.buyer-call-modal__note {
  grid-column: span 8;
}

.buyer-call-modal__actions {
  grid-column: span 4;
}

.buyer-call-modal__field,
.buyer-call-modal__quick-row .field {
  margin: 0;
}

.buyer-call-modal .field label {
  margin-bottom: 3px;
  font-size: 11.5px;
  line-height: 1.2;
}

.buyer-call-modal input,
.buyer-call-modal select {
  min-height: 34px;
  font-size: 12.5px;
}

.buyer-call-modal textarea {
  min-height: 76px;
  resize: vertical;
  font-size: 12.5px;
}

.buyer-call-modal__quick-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(100px, 0.7fr) 82px 112px minmax(145px, 1fr);
  gap: 8px;
  align-items: start;
}

.buyer-call-modal__choice-block {
  display: grid;
  gap: 5px;
  color: var(--body);
  font-size: 12px;
}

.buyer-call-modal__choice-block strong {
  color: var(--ink);
  font-size: 12px;
}

.buyer-call-modal__choice-block > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.buyer-call-modal__choice-block > div > div {
  display: inline-flex;
}

.buyer-call-modal__choice-block label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.buyer-call-modal__note {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.buyer-call-modal__actions {
  display: flex;
  align-self: center;
  justify-content: flex-end;
  gap: 8px;
}

.buyer-call-modal__actions .button,
.buyer-call-modal__actions button {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 12px;
}

@media (max-height: 760px) {
  .buyer-call-modal {
    width: min(1100px, calc(100vw - 24px));
  }

  .buyer-call-modal__box {
    padding: 10px 14px;
  }

  .buyer-call-modal__header {
    margin-bottom: 6px;
  }

  .buyer-call-modal__header h2 {
    font-size: 18px;
  }

  .buyer-call-modal__form {
    gap: 6px 8px;
  }

  .buyer-call-modal .field label,
  .buyer-call-modal__choice-block strong {
    font-size: 10.5px;
  }

  .buyer-call-modal input,
  .buyer-call-modal select {
    min-height: 30px;
    font-size: 11.5px;
  }

  .buyer-call-modal textarea {
    min-height: 54px;
    font-size: 11.5px;
  }

  .buyer-call-modal__choice-block,
  .buyer-call-modal__note {
    font-size: 11px;
  }

  .buyer-call-modal__note {
    padding: 6px 8px;
  }

  .buyer-call-modal__actions .button,
  .buyer-call-modal__actions button {
    min-height: 30px;
  }
}

.buyer-dashboard {
  padding: 16px 20px;
  display: grid;
  gap: 12px;
}

.buyer-dashboard-hero,
.buyer-platform-profile-panel,
.buyer-interest-panel {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e2);
}

.buyer-dashboard-hero {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.buyer-dashboard-hero h1 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.buyer-dashboard-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}

.buyer-dashboard-hero .eyebrow {
  margin-bottom: 7px;
  font-size: 8px;
}

.buyer-dashboard-hero .button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.buyer-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.buyer-dashboard-stat {
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--e2);
}

.buyer-dashboard-stat span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.buyer-dashboard-stat strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
}

.buyer-dashboard-stats--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.buyer-event-page {
  padding: 16px 20px;
  font-family: var(--font);
}

.buyer-event-page .moderator-hero,
.buyer-event-page .moderator-metric-card,
.buyer-event-page .panel {
  font-family: var(--font);
}

.buyer-event-hero {
  min-height: 104px;
}

.buyer-event-hero h1 {
  letter-spacing: 0;
}

.buyer-event-hero .muted {
  max-width: 720px;
}

.buyer-event-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.buyer-event-stat {
  min-height: 116px;
  padding: 16px 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  background: var(--surface-3);
}

.buyer-event-stat span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.buyer-event-stat strong {
  align-self: end;
  justify-self: end;
  color: var(--blue);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.buyer-event-next {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  background: var(--surface-3);
}

.buyer-event-next__eyebrow {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.buyer-event-next__company {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.buyer-event-next__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
}

.buyer-event-next__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.buyer-event-next__chip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.buyer-event-page .moderator-metric-card {
  min-width: 0;
}

.buyer-event-page .moderator-metric-card strong,
.buyer-event-page .moderator-pavilion-meetings__count,
.buyer-event-page .moderator-pavilion-meeting-row__time,
.buyer-event-page .moderator-pavilion-meeting-day__head > span {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.buyer-event-schedule {
  padding: 18px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.buyer-event-schedule__heading {
  align-items: flex-start;
}

.buyer-event-schedule__share {
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: #4169e8;
  background-image: none;
  box-shadow: 0 6px 16px rgba(65, 105, 232, 0.30);
  color: #fff;
  cursor: pointer;
}

.buyer-event-schedule__share:hover {
  background: #3a60e0;
  color: #fff;
  opacity: 1;
}

.buyer-event-schedule__share svg {
  width: 21px;
  height: 21px;
}

.buyer-event-daytabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.buyer-event-daytab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 16px 12px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  border-radius: 22px;
  background: #ECEEF4;
  background-image: none;
  box-shadow: none;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.buyer-event-daytab:hover {
  color: var(--body);
  opacity: 1;
}

.buyer-event-daytab.is-active {
  background: #4169e8;
  color: #fff;
}

.buyer-event-daytab.is-active .buyer-event-daytab__weekday {
  color: #fff;
}

.buyer-event-daytab__weekday {
  color: var(--subtle);
  font-size: 13.5px;
  font-weight: 600;
}

.buyer-event-daytab__num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.buyer-event-schedule__count {
  margin: 14px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.buyer-event-schedule__count strong {
  color: var(--body);
  font-weight: 700;
}

.buyer-event-daypanel {
  display: grid;
  gap: 12px;
}

.buyer-event-daypanel.is-hidden {
  display: none;
}

.buyer-event-card {
  padding: 14px 16px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  background: #F7F8FD;
}

.buyer-event-card__date {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4169e8;
  font-size: 13px;
  font-weight: 700;
}

.buyer-event-card__date svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.buyer-event-card__time {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.buyer-event-card__meta {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.buyer-event-card__company {
  margin: 3px 0;
  color: var(--orange);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.buyer-event-schedule__pdf {
  width: 100%;
  margin-top: 16px;
  min-height: 50px;
  border-radius: 14px;
  background: #4169e8;
  background-image: linear-gradient(135deg, #3f68ea 0%, #456ee7 100%);
  box-shadow: 0 10px 24px rgba(65, 105, 232, 0.26);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.buyer-event-schedule__pdf:hover {
  color: #fff;
  opacity: 0.94;
}

.buyer-event-map-panel {
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.buyer-event-map-panel__heading {
  margin-bottom: 12px;
}

.buyer-event-map-frame-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  box-shadow:
    0 14px 36px rgba(15, 28, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.buyer-event-map-frame {
  width: 100%;
  max-width: 100%;
  height: min(760px, calc(100vh - 220px));
  min-height: 620px;
  display: block;
  border: 0;
  background: var(--navy);
  overscroll-behavior-x: none;
}

.buyer-event-days {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.buyer-event-meeting-row {
  grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 0.55fr);
  align-items: center;
}

.buyer-event-meeting-row .moderator-pavilion-meeting-row__time {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.buyer-event-meeting-row .moderator-pavilion-meeting-row__time small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 760;
}

.buyer-event-products-cell strong {
  display: -webkit-box;
  max-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.buyer-event-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.buyer-event-empty .button {
  margin-top: 2px;
}

.buyer-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 12px;
}

.buyer-analytics-panel {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e2);
}

.buyer-analytics-panel .section-heading {
  margin-bottom: 12px;
  gap: 10px;
}

.buyer-analytics-panel .section-heading h2 {
  font-size: 18px;
}

.buyer-analytics-panel .section-heading > div {
  min-width: 0;
}

.buyer-analytics-panel .section-heading .button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.buyer-analytics-panel .section-heading p {
  font-size: 12.5px;
}

.buyer-funnel-list,
.buyer-recommendation-list,
.buyer-category-analytics-list,
.buyer-favorite-list,
.buyer-analytics-order-list {
  display: grid;
  gap: 8px;
}

.buyer-funnel-item {
  display: grid;
  gap: 6px;
}

.buyer-funnel-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--body);
  font-size: 12.5px;
  font-weight: 650;
}

.buyer-funnel-item__top strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.buyer-funnel-bar {
  height: 7px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-3);
}

.buyer-funnel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--orange));
}

.buyer-recommendation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.buyer-recommendation-list li {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.4;
}

.buyer-category-analytics-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.buyer-category-analytics-item,
.buyer-favorite-card,
.buyer-analytics-order,
.buyer-empty-mini {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.buyer-category-analytics-item {
  padding: 12px;
  display: grid;
  gap: 3px;
}

.buyer-category-analytics-item span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.buyer-category-analytics-item strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
}

.buyer-category-analytics-item small {
  color: var(--muted);
  font-size: 11.5px;
}

.buyer-favorite-card,
.buyer-analytics-order {
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.buyer-favorite-card__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--navy);
  font-weight: 850;
}

.buyer-favorite-card h3,
.buyer-analytics-order h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.buyer-favorite-card p,
.buyer-analytics-order p,
.buyer-empty-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.buyer-analytics-order {
  grid-template-columns: minmax(0, 1fr) auto;
}

.buyer-empty-mini {
  padding: 14px;
}

.buyer-empty-mini strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.buyer-interest-form {
  display: grid;
  gap: 12px;
}

.buyer-platform-profile-form {
  display: grid;
  gap: 12px;
}

.buyer-platform-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.buyer-platform-profile-grid .field {
  margin: 0;
}

.buyer-platform-profile-grid .field--wide {
  grid-column: 1 / -1;
}

.buyer-platform-profile-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.buyer-platform-profile-panel .section-heading {
  margin-bottom: 12px;
}

.buyer-platform-profile-panel .section-heading h2 {
  font-size: 18px;
}

.buyer-platform-profile-panel .section-heading p {
  font-size: 12.5px;
}

.buyer-interest-panel .section-heading {
  margin-bottom: 12px;
}

.buyer-interest-panel .section-heading h2 {
  font-size: 18px;
}

.buyer-interest-panel .section-heading p {
  font-size: 12.5px;
}

.buyer-tagselect {
  position: relative;
}

.buyer-tagselect__source {
  display: none;
}

.buyer-tagselect__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: text;
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.buyer-tagselect.is-open .buyer-tagselect__control,
.buyer-tagselect__control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.10);
}

.buyer-tagselect__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
}

.buyer-tagselect__input {
  flex: 1 1 140px;
  min-width: 140px;
  height: 28px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--body);
  font: inherit;
  font-size: 12.5px;
}

.buyer-tagselect__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 4px 0 11px;
  border: 1px solid var(--orange);
  border-radius: var(--r-pill);
  background: var(--orange-dim);
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.buyer-tagselect__chip-label {
  white-space: nowrap;
}

.buyer-tagselect__chip-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--orange-deep);
  cursor: pointer;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.buyer-tagselect__chip-remove svg {
  width: 12px;
  height: 12px;
}

.buyer-tagselect__chip-remove:hover {
  background: var(--orange);
  color: #fff;
  opacity: 1;
  filter: none;
}

.buyer-interest-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.buyer-interest-statusbar__label {
  margin-right: auto;
}

.buyer-interest-counter {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.buyer-interest-clear {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  background-image: none;
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
}

.buyer-interest-clear:hover {
  border-color: var(--navy);
  color: var(--navy);
  opacity: 1;
  filter: none;
}

.buyer-tagselect__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 14px 30px rgba(15, 28, 80, 0.14);
}

.buyer-tagselect__option {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-size: 12.5px;
  cursor: pointer;
}

.buyer-tagselect__option:hover,
.buyer-tagselect__option.is-active {
  background: var(--orange-dim);
  color: var(--orange-deep);
}

.buyer-tagselect__option mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.buyer-tagselect__empty,
.buyer-tagselect__hint {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.buyer-tagselect__hint {
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.buyer-interest-blank {
  font-size: 13px;
}

.buyer-interest-form__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.buyer-interest-form__actions .button,
.buyer-interest-form__actions button {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════
   EYEBROWS
═══════════════════════════════════════════════════════ */

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════
   AUTH
═══════════════════════════════════════════════════════ */

.auth-layout {
  min-height: min(calc(100vh - 156px), 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.auth-layout--promo {
  min-height: calc(100vh - 156px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: stretch;
}

.auth-layout--promo .auth-card {
  align-self: center;
}

.auth-layout--switcher {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
}

.auth-layout--switcher .auth-intro {
  align-self: start;
  padding-top: clamp(24px, 4vw, 56px);
}

.auth-layout--switcher .auth-card {
  width: min(100%, 420px);
  justify-self: end;
  transform: translateX(clamp(0px, calc((100vw - 1200px) / 2), 50px));
}

.auth-intro { max-width: 540px; }
.auth-intro h1 { font-size: clamp(24px, 3.4vw, 36px); }
.auth-intro p { font-size: clamp(13px, 1.2vw, 15px); }

.auth-card { padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 32px); }
.auth-card h2 { font-size: clamp(15px, 1.4vw, 17px); }

.auth-card__links {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.auth-card__links--buttons {
  gap: 10px;
}

.auth-card--switcher {
  overflow: hidden;
}

.auth-card__view {
  display: none;
}

.auth-card[data-auth-mode="login"] [data-auth-view="login"],
.auth-card[data-auth-mode="signup"] [data-auth-view="signup"],
.auth-card[data-auth-mode="password-reset"] [data-auth-view="password-reset"],
.auth-card[data-auth-mode="access-recovery"] [data-auth-view="access-recovery"] {
  display: block;
  animation: auth-panel-in 180ms ease;
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-button {
  border: 0;
  padding: 0;
  min-height: auto;
  width: max-content;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--blue-deep);
  text-decoration: underline;
}

.auth-card__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.30);
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.10);
  color: #0f766e;
  font-weight: 600;
}

.auth-signup-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--blue-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
}

.auth-signup-tabs__button {
  border-color: transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.auth-signup-tabs__button.is-active {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.13);
  color: var(--blue);
}

.auth-email-code {
  gap: 8px;
}

.auth-email-code__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-email-code__button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}

.auth-email-code__button .send-code-timer {
  display: none;
  min-width: 28px;
  color: #6c72a0;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.auth-email-code__button.is-cooling {
  border-color: rgba(108, 114, 160, 0.24);
  background: #f6f7fc;
  color: #9aa2c4;
}

.auth-email-code__button.is-cooling .send-code-timer {
  display: inline-block;
}

.auth-email-code__button:disabled {
  cursor: not-allowed;
  opacity: .78;
  transform: none;
}

.auth-email-code__status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-email-code__status[data-state="success"] {
  color: #0f766e;
}

.auth-email-code__status[data-state="error"] {
  color: var(--red);
}

.auth-email-code.is-error input {
  border-color: rgba(227, 95, 28, .82);
  background: #fff7f3;
  box-shadow: 0 0 0 3px rgba(227, 95, 28, .14);
}

.auth-email-code.is-verified input {
  border-color: rgba(16, 185, 129, .68);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

[data-auth-signup-form][hidden] {
  display: none;
}

@media (max-width: 520px) {
  .auth-email-code__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 32px;
  }
}

/* ═══════════════════════════════════════════════════════
   INLINE MODERATION
═══════════════════════════════════════════════════════ */

.inline-moderation {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.inline-moderation__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-moderation__item form { margin: 0; }

.inline-moderation__item button:not(.status-chip) {
  min-height: 28px;
  padding: 0 11px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════
   COMPACT STATS
═══════════════════════════════════════════════════════ */

.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════════════ */

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

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

.panel-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h2,
.panel-heading p { margin: 0; }

/* ═══════════════════════════════════════════════════════
   ICON BUTTON
═══════════════════════════════════════════════════════ */

.module-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.module-actions form {
  margin: 0;
}

.icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--navy);
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
  transition: background var(--tx-fast), border-color var(--tx-fast), color var(--tx-fast);
}

.icon-button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.icon-button--inline {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin-left: 6px;
  vertical-align: middle;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════
   WIZARD STEPS
═══════════════════════════════════════════════════════ */

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step {
  min-height: 62px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--body);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--tx), border-color var(--tx), box-shadow var(--tx), color var(--tx);
}

.wizard-step:hover {
  border-color: rgba(15, 28, 80, 0.20);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--e3);
}

.wizard-step__number {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   ACTION PANEL
═══════════════════════════════════════════════════════ */

.action-panel {
  position: sticky;
  top: 76px;
  background: var(--surface);
}

.action-panel form { margin-top: 18px; }

/* ═══════════════════════════════════════════════════════
   MODERATOR DASHBOARD
═══════════════════════════════════════════════════════ */

.moderator-dashboard { display: grid; gap: 18px; }

.dashboard-hero { margin-bottom: 0; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 120px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--e2);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--tx), border-color var(--tx);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  border-radius: var(--r) var(--r) 0 0;
}

.metric-card:nth-child(2)::before,
.metric-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--orange) 0%, #f08542 100%);
}

.metric-card span {
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card strong {
  font-family: var(--font-mono);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card--action {
  text-decoration: none;
  color: var(--ink);
}

.metric-card--action:hover {
  border-color: var(--orange-ring);
  color: var(--ink);
  box-shadow: var(--e3), 0 0 0 1px rgba(227, 95, 28, 0.1);
}

/* ═══════════════════════════════════════════════════════
   STATUS SUMMARY
═══════════════════════════════════════════════════════ */

.dashboard-status-panel .section-heading { margin-bottom: 14px; }

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.status-summary-item {
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--tx), border-color var(--tx), box-shadow var(--tx), color var(--tx);
}

.status-summary-item:hover {
  border-color: rgba(15, 28, 80, 0.20);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--e3);
}

.status-summary-item strong {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.status-summary-item span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD GRID
═══════════════════════════════════════════════════════ */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: start;
}

.moderator-dashboard--modern {
  gap: 10px;
}

.moderator-hero {
  min-height: 210px;
  padding: clamp(24px, 3.2vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 88% 14%, rgba(227, 95, 28, 0.18), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f7f8fd 58%, #eef1ff 100%);
  box-shadow: var(--e2);
  overflow: hidden;
}

.moderator-hero h1 {
  max-width: 680px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.moderator-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
}

.moderator-hero--compact {
  min-height: 92px;
  padding: clamp(12px, 1.5vw, 16px);
  gap: 14px;
}

.moderator-hero--compact h1 {
  margin-bottom: 4px;
  font-size: clamp(22px, 1.9vw, 28px);
  letter-spacing: -0.04em;
}

.moderator-hero--compact p {
  max-width: 560px;
  font-size: 12px;
}

.moderator-hero--compact .eyebrow {
  margin-bottom: 7px;
  font-size: 8px;
}

.moderator-hero--compact .moderator-hero__actions .button {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.moderator-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.moderator-pavilion-page {
  min-height: calc(100vh - 82px);
  grid-template-rows: auto minmax(0, 1fr);
}

.moderator-pavilion-workspace {
  min-height: min(900px, calc(100vh - 210px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 14px;
}

.moderator-pavilion-map-panel,
.moderator-pavilion-assigned {
  min-width: 0;
}

.moderator-pavilion-map-panel {
  padding: 0;
  overflow: hidden;
  position: relative;
}

/* Loupe overlaid on the map; scoped under .page-glass to beat the generic
   primary-button rule that would otherwise tint it orange. */
.page-glass .site-main .pavilion-map-zoom-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  background-image: none;
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(15, 28, 80, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color var(--tx-fast), background var(--tx-fast), transform var(--tx-fast);
}

.page-glass .site-main .pavilion-map-zoom-button:hover,
.page-glass .site-main .pavilion-map-zoom-button:focus-visible {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  transform: translateY(-1px);
  outline: none;
}

.pavilion-map-zoom-button__icon {
  width: 19px;
  height: 19px;
  color: var(--blue);
}

.moderator-pavilion-map-stage {
  height: min(852px, calc(100vh - 258px));
  min-height: 572px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 12px;
}

.moderator-pavilion-map-wrap {
  aspect-ratio: 841.89 / 595.276;
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 1120px);
}

.moderator-pavilion-map-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.pavilion-map-zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 28, 80, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pavilion-map-zoom.is-open {
  display: flex;
}

.pavilion-map-zoom__dialog {
  width: min(1680px, 100%);
  height: min(920px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(185, 205, 255, 0.82);
  border-radius: var(--r-sm);
  background: rgba(235, 240, 255, 0.94);
  box-shadow: 0 30px 90px rgba(15, 28, 80, 0.32);
}

.pavilion-map-zoom__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pavilion-map-zoom__bar span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pavilion-map-zoom__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pavilion-map-zoom__controls button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.pavilion-map-zoom__controls button:hover,
.pavilion-map-zoom__controls button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.pavilion-map-zoom__stage {
  overflow: hidden;
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.72);
  cursor: grab;
  touch-action: none;
}

.pavilion-map-zoom__stage.is-grabbing {
  cursor: grabbing;
}

.pavilion-map-zoom__wrap {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  transform-origin: 0 0;
}

.pavilion-map-zoom__wrap img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.pavilion-map-zoom__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.moderator-pavilion-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.moderator-pavilion-booth {
  fill: transparent;
  stroke: rgba(15, 28, 80, 0.32);
  stroke-width: 0.45;
  cursor: pointer;
  transition: fill var(--tx-fast), stroke var(--tx-fast), stroke-width var(--tx-fast);
}

.moderator-pavilion-booth.is-occupied {
  fill: rgba(19, 149, 106, 0.13);
}

.moderator-pavilion-booth.is-assigned {
  fill: rgba(59, 130, 246, 0.24);
  stroke: var(--blue);
  stroke-width: 0.9;
}

.moderator-pavilion-booth.is-group-member {
  fill: rgba(59, 130, 246, 0.18);
}

.moderator-pavilion-booth:hover,
.moderator-pavilion-booth:focus-visible,
.moderator-pavilion-booth.is-selected {
  fill: rgba(227, 95, 28, 0.34);
  stroke: var(--orange);
  stroke-width: 1.35;
  outline: none;
}

/* Green "just saved" pulse on the booth that was edited (~5s). */
@keyframes pavilionBoothSaved {
  0%, 100% {
    fill: rgba(19, 149, 106, 0.16);
    stroke: rgba(19, 149, 106, 0.55);
    stroke-width: 0.9;
  }
  50% {
    fill: rgba(19, 149, 106, 0.52);
    stroke: #0E8C5F;
    stroke-width: 1.7;
  }
}

.moderator-pavilion-booth.is-just-saved {
  fill: rgba(19, 149, 106, 0.38);
  stroke: #0E8C5F;
  stroke-width: 1.5;
  animation: pavilionBoothSaved 1s ease-in-out 0s 5;
}

@keyframes pavilionBoothAddAnchor {
  0%, 100% {
    fill: rgba(59, 130, 246, 0.28);
    stroke: var(--blue);
    stroke-width: 1.1;
  }
  50% {
    fill: rgba(227, 95, 28, 0.40);
    stroke: var(--orange);
    stroke-width: 1.7;
  }
}

.moderator-pavilion-booth.is-add-anchor {
  animation: pavilionBoothAddAnchor 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .moderator-pavilion-booth.is-just-saved {
    animation: none;
  }

  .moderator-pavilion-booth.is-add-anchor {
    animation: none;
  }
}

.moderator-pavilion-assigned {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: min(900px, calc(100vh - 210px));
  overflow: hidden;
}

/* Stack eyebrow + title as one left-aligned block instead of pushing the
   title to the right (the default space-between section-heading layout). */
.moderator-pavilion-assigned .section-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 14px;
}

.moderator-pavilion-assigned .section-heading h2 {
  margin: 0;
}

.moderator-pavilion-assigned-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.moderator-pavilion-assigned-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(15, 28, 80, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color var(--tx-fast), background var(--tx-fast), transform var(--tx-fast);
  overflow: hidden;
}

.moderator-pavilion-assigned-card:hover,
.moderator-pavilion-assigned-card:focus-visible {
  border-color: var(--blue-border-strong);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  outline: none;
}

.moderator-pavilion-assigned-card__badge {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: var(--r-xs);
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.96;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 9px rgba(37, 99, 235, 0.22);
}

.moderator-pavilion-assigned-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 1px 0;
}

.moderator-pavilion-assigned-card__name {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderator-pavilion-assigned-card__meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderator-pavilion-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.moderator-pavilion-facts div {
  padding: 11px 12px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.52);
}

.moderator-pavilion-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.moderator-pavilion-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.moderator-pavilion-form {
  margin-top: auto;
}

.moderator-pavilion-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.moderator-pavilion-form-grid__wide {
  grid-column: 1 / -1;
}

.moderator-pavilion-booths-field {
  min-width: 0;
}

.moderator-pavilion-booths-inline {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.moderator-pavilion-booth-group {
  flex: 1 1 auto;
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.moderator-pavilion-booth-chip {
  min-width: 44px;
  min-height: 30px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-border-strong);
  border-radius: 10px;
  background: var(--blue-dim);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.moderator-pavilion-add-booth {
  min-height: 32px;
  margin-top: 0;
  justify-self: start;
  white-space: nowrap;
  flex: 0 0 auto;
}

.moderator-pavilion-form-status {
  margin: 14px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  background: var(--green-dim);
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}

.moderator-pavilion-form-status.is-error {
  border-color: rgba(180, 35, 24, 0.26);
  background: var(--red-dim);
  color: var(--red);
}

.moderator-pavilion-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.moderator-pavilion-empty {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
}

.moderator-pavilion-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.moderator-pavilion-meetings {
  display: grid;
  gap: 18px;
}

.moderator-pavilion-meetings__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.moderator-pavilion-meetings__count {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 850;
}

.moderator-pavilion-meeting-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.moderator-pavilion-meeting-day {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.moderator-pavilion-meeting-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.moderator-pavilion-meeting-day__head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.moderator-pavilion-meeting-day__head div > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.moderator-pavilion-meeting-day__head strong {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.moderator-pavilion-meeting-day__head > span {
  min-width: 30px;
  padding: 3px 8px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.moderator-pavilion-meeting-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.moderator-pavilion-meeting-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 10px 24px rgba(15, 28, 80, 0.06);
}

.moderator-pavilion-meeting-row__time {
  grid-row: span 2;
  align-self: start;
  padding: 7px 8px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--r-sm);
  background: var(--blue-dim);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.moderator-pavilion-meeting-row__company,
.moderator-pavilion-meeting-row__buyer {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.moderator-pavilion-meeting-row__company strong,
.moderator-pavilion-meeting-row__buyer strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.moderator-pavilion-meeting-row__company span,
.moderator-pavilion-meeting-row__buyer span,
.moderator-pavilion-meeting-row__buyer small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.moderator-pavilion-audit {
  display: block;
  padding: 0;
  overflow: clip;
}

.moderator-pavilion-audit__summary {
  min-height: 66px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--tx-fast);
}

.moderator-pavilion-audit__summary::-webkit-details-marker {
  display: none;
}

.moderator-pavilion-audit__summary::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform var(--tx);
}

.moderator-pavilion-audit[open] > .moderator-pavilion-audit__summary::before {
  transform: rotate(45deg);
}

.moderator-pavilion-audit__summary:hover {
  background: rgba(255, 255, 255, 0.34);
}

.moderator-pavilion-audit__summary h2 {
  margin: 0;
  font-size: 20px;
}

.moderator-pavilion-audit__count {
  min-width: 30px;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.moderator-pavilion-audit[open] > .moderator-pavilion-audit__summary {
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.moderator-pavilion-audit-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 16px 24px 24px;
}

.moderator-pavilion-audit-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.48);
}

.moderator-pavilion-audit-row__time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.moderator-pavilion-audit-row__body {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.moderator-pavilion-audit-row__body strong {
  color: var(--ink);
}

.moderator-pavilion-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 28, 80, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.moderator-pavilion-modal.is-open {
  display: flex;
}

.moderator-pavilion-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(185, 205, 255, 0.9);
  border-radius: var(--r-sm);
  background: rgba(239, 242, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 28, 80, 0.26);
}

.moderator-pavilion-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.moderator-pavilion-modal__close:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.moderator-pavilion-modal__heading {
  padding-right: 44px;
}

@media (max-width: 1100px) {
  .moderator-pavilion-workspace {
    grid-template-columns: 1fr;
  }

  .moderator-pavilion-map-stage {
    min-height: 520px;
  }

  .moderator-pavilion-assigned {
    max-height: none;
  }

  .moderator-pavilion-audit-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .moderator-pavilion-form-grid {
    grid-template-columns: 1fr;
  }

  .moderator-pavilion-meeting-days {
    grid-template-columns: 1fr;
  }
}

.auth-layout--demo {
  width: min(100%, 1580px);
  min-height: calc(100vh - 118px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

.demo-booking-page {
  margin-inline: auto;
}

.demo-booking-map {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  overflow: hidden;
}

.demo-booking-map__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.demo-booking-map__header h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
}

.demo-booking-map__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.demo-booking-map__meta span,
.demo-booking-auth__stats div {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.demo-booking-map__meta span {
  padding: 7px 10px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 780;
}

.demo-booking-map__stage {
  min-height: 600px;
  height: min(820px, calc(100vh - 250px));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(185, 205, 255, 0.74);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.56);
}

.demo-booking-map__wrap {
  position: relative;
  aspect-ratio: 841.89 / 595.276;
  flex: 0 0 auto;
}

.demo-booking-map__wrap img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.demo-booking-map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo-booking-booth {
  fill: rgba(15, 28, 80, 0.01);
  stroke: rgba(15, 28, 80, 0.18);
  stroke-width: 0.35;
  cursor: pointer;
  transition: fill var(--tx-fast), stroke var(--tx-fast), stroke-width var(--tx-fast);
}

.demo-booking-booth.is-assigned {
  fill: rgba(59, 130, 246, 0.24);
  stroke: var(--blue);
  stroke-width: 0.85;
}

.demo-booking-booth:hover,
.demo-booking-booth:focus-visible,
.demo-booking-booth.is-selected {
  fill: rgba(59, 130, 246, 0.38);
  stroke: var(--blue-deep);
  stroke-width: 1.25;
  outline: none;
}

.demo-booking-auth {
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 132px);
  overflow: auto;
}

.demo-booking-buyer {
  margin: 0;
}

.demo-booking-auth__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.demo-booking-auth__stats div {
  padding: 12px;
}

.demo-booking-auth__stats dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-booking-auth__stats dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 850;
}

.demo-booking-auth__status,
.demo-booking-form__status {
  padding: 10px 12px;
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  background: var(--green-dim);
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.demo-booking-auth__status.is-error,
.demo-booking-form__status.is-error {
  border-color: rgba(180, 35, 24, 0.26);
  background: var(--red-dim);
  color: var(--red);
}

.demo-booking-auth__list {
  display: grid;
  gap: 12px;
}

.demo-booking-auth__list h3 {
  margin: 0;
  font-size: 19px;
}

.demo-booking-meetings {
  display: grid;
  gap: 10px;
}

.demo-booking-meeting,
.demo-booking-empty {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.56);
}

.demo-booking-meeting time,
.demo-booking-meeting span,
.demo-booking-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.demo-booking-meeting strong,
.demo-booking-empty strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.demo-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 28, 80, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-booking-modal.is-open {
  display: flex;
}

.demo-booking-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(185, 205, 255, 0.9);
  border-radius: var(--r-sm);
  background: rgba(239, 242, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 28, 80, 0.26);
}

.demo-booking-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.demo-booking-modal__close:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.demo-booking-modal__heading {
  padding-right: 52px;
}

.demo-booking-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.demo-booking-facts div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.52);
}

.demo-booking-facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-booking-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.demo-booking-form,
.demo-booking-slots {
  display: grid;
  gap: 14px;
}

.demo-booking-slots__heading h3 {
  margin: 0;
  font-size: 18px;
}

.demo-booking-slot-day {
  display: grid;
  gap: 8px;
}

.demo-booking-slot-day h4 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 14px;
}

.demo-booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}

.page-glass .site-main button.demo-booking-slot,
.page-glass .site-main button.demo-booking-submit,
.page-glass .site-main .demo-booking-modal button {
  border-radius: var(--r-sm);
}

.page-glass .site-main button.demo-booking-slot {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--blue-border);
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 830;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.page-glass .site-main button.demo-booking-slot:hover,
.page-glass .site-main button.demo-booking-slot:focus-visible,
.page-glass .site-main button.demo-booking-slot.is-selected {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--blue);
}

.page-glass .site-main button.demo-booking-slot.is-booked,
.page-glass .site-main button.demo-booking-slot:disabled {
  border-color: rgba(107, 119, 168, 0.16);
  background: rgba(255, 255, 255, 0.32);
  color: rgba(107, 119, 168, 0.58);
  box-shadow: none;
  cursor: not-allowed;
}

.page-glass .site-main button.demo-booking-submit {
  min-height: 46px;
  border-color: rgba(59, 130, 246, 0.42);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.page-glass .site-main button.demo-booking-submit:hover,
.page-glass .site-main button.demo-booking-submit:focus-visible {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
}

@media (max-width: 1100px) {
  .auth-layout--demo {
    grid-template-columns: 1fr;
  }

  .demo-booking-auth {
    max-height: none;
  }

  .demo-booking-map__stage {
    min-height: 460px;
    height: 62vw;
  }
}

@media (max-width: 720px) {
  .demo-booking-map__header,
  .demo-booking-facts {
    grid-template-columns: 1fr;
  }

  .demo-booking-map__header {
    display: grid;
    align-items: start;
  }

  .demo-booking-map__meta {
    justify-content: flex-start;
  }

  .demo-booking-map__stage {
    min-height: 320px;
  }

  .demo-booking-auth__stats {
    grid-template-columns: 1fr;
  }
}

.moderator-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.moderator-metrics--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.moderator-metric-card {
  min-height: 126px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--e2);
  text-decoration: none;
  transition: box-shadow var(--tx), border-color var(--tx), transform var(--tx-fast);
}

.moderator-metrics--four .moderator-metric-card {
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-radius: 14px;
}

.moderator-metrics--four .moderator-metric-card span:not(.moderator-metric-card__icon) {
  font-size: 9px;
}

.moderator-metrics--four .moderator-metric-card strong {
  margin-top: 2px;
  font-size: 26px;
  line-height: 1;
}

.moderator-metrics--four .moderator-metric-card small {
  font-size: 10px;
}

.moderator-metric-card--action:hover {
  transform: translateY(-1px);
  border-color: var(--orange-ring);
  color: var(--ink);
  box-shadow: var(--e3), 0 0 0 1px rgba(227, 95, 28, 0.10);
}

.moderator-metric-card__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--navy);
}

.moderator-metric-card--accent .moderator-metric-card__icon {
  background: var(--orange-dim);
  color: var(--orange);
}

.moderator-metric-card__icon svg {
  width: 23px;
  height: 23px;
}

.moderator-metric-card span:not(.moderator-metric-card__icon) {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.moderator-metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 0.9;
}

.moderator-metric-card small {
  color: var(--muted);
  font-size: 11px;
}

.moderator-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.moderator-chart-panel,
.moderator-summary-panel {
  padding: 22px;
}

.moderator-panel-numbers {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.moderator-panel-number {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
}

.moderator-panel-number strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
}

.moderator-panel-number span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.moderator-panel-number--online strong {
  color: var(--blue-deep);
}

.moderator-bar-chart {
  height: 220px;
  margin-top: 18px;
  padding: 8px 4px 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--border);
}

.moderator-bar-chart__item {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  gap: 7px;
  text-align: center;
}

.moderator-bar-chart__value {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.moderator-bar-chart__bar {
  width: 100%;
  max-width: 44px;
  min-height: 6px;
  justify-self: center;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, rgba(227, 95, 28, 0.92), rgba(15, 28, 80, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.moderator-bar-chart__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.moderator-mini-stats {
  display: grid;
  gap: 10px;
}

.moderator-mini-stats div {
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.moderator-mini-stats strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 28px;
}

.moderator-mini-stats span {
  color: var(--muted);
  font-size: 13px;
}

.moderator-status-panel {
  padding: 22px;
}

.moderator-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.moderator-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.moderator-queue-panel,
.moderator-list-panel {
  padding: 22px;
}

.moderator-queue-list,
.moderator-compact-list,
.moderator-history-list,
.moderator-side-stack {
  display: grid;
  gap: 10px;
}

.moderator-side-stack {
  gap: 18px;
}

.moderator-queue-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.moderator-queue-card__topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.moderator-queue-card__supplier {
  color: var(--ink);
  font-weight: 750;
}

.moderator-queue-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.moderator-queue-card__object {
  display: inline-block;
  color: var(--body);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.moderator-queue-card__side {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.moderator-queue-card__side form {
  margin: 0;
}

.moderator-empty-card {
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  background: var(--surface-2);
  text-align: center;
}

.moderator-empty-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

.moderator-compact-item {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--body);
}

.moderator-compact-item:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--e2);
}

.moderator-compact-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.moderator-compact-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.moderator-compact-item small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.moderator-compact-item em {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.moderator-history-item {
  padding: 12px 14px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.moderator-history-item > div:first-child {
  display: grid;
  gap: 2px;
}

.moderator-history-item a:first-child {
  color: var(--ink);
  font-weight: 700;
}

.moderator-history-item small {
  color: var(--muted);
}

.moderator-demand-item {
  gap: 12px;
}

.status-chip--warning {
  border-color: var(--amber-border);
  background: var(--amber-dim);
  color: var(--amber);
}

.status-chip--rejected {
  border-color: rgba(180, 35, 24, 0.30);
  background: var(--red-dim);
  color: var(--red);
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--body);
}

.contact-row strong {
  color: var(--ink);
  margin-right: 4px;
}

.selection-chip-group {
  display: grid;
  gap: 8px;
}

.selection-chip-group__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.selection-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.selection-chip__check {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex: 0 0 auto;
}

.profile-data-row {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.profile-data-row span,
.profile-data-row strong { display: block; }

.profile-data-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-data-row strong {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-data-row__image {
  width: 84px;
  height: 84px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.profile-data-row__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-data-row .original-value {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  border-left: 2px solid var(--border);
  padding-left: 6px;
}
.keep-original-form {
  display: block;
  margin-top: 5px;
}
.status-chip--restore {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.translation-original {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--body);
}

.translation-original__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.translation-original__text {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}

.translation-original--compact {
  margin-top: 5px;
  padding: 5px 7px;
}

.translation-original--compact .translation-original__text {
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════
   MODERATION MODAL
═══════════════════════════════════════════════════════ */

.mod-modal {
  border: none;
  border-radius: var(--r-lg);
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  box-shadow: var(--e4);
  overflow: hidden;
}

.mod-modal::backdrop {
  background: rgba(7, 16, 42, 0.45);
  backdrop-filter: blur(3px);
}

.mod-modal__box {
  display: flex;
  flex-direction: column;
}

.mod-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.mod-modal__title {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}

.mod-modal__form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mod-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.image-preview-modal {
  border: none;
  border-radius: var(--r-lg);
  padding: 0;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-shadow: var(--e4);
  overflow: hidden;
}

.image-preview-modal::backdrop {
  background: rgba(7, 16, 42, 0.52);
  backdrop-filter: blur(3px);
}

.image-preview-modal__box {
  display: flex;
  max-height: calc(100vh - 32px);
  flex-direction: column;
}

.image-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.image-preview-modal__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-modal__stage {
  min-height: 280px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.image-preview-modal__stage img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  border-radius: var(--r);
  background: #fff;
}

.detail-accordion {
  margin-top: 16px;
  padding: 0;
  overflow: clip;
}

.detail-accordion__summary {
  min-height: 66px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--tx-fast);
}

.detail-accordion__summary::-webkit-details-marker { display: none; }

.detail-accordion__summary::before {
  content: "▶";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  transition: transform var(--tx);
}

.detail-accordion[open] > .detail-accordion__summary::before {
  transform: rotate(90deg);
}

.detail-accordion__summary:hover {
  background: var(--surface-2);
}

.detail-accordion__summary h2 {
  font-size: 17px;
}

.detail-accordion__count {
  min-width: 28px;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.detail-accordion__body {
  padding: 0 24px 24px;
}

.detail-accordion[open] > .detail-accordion__summary {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   AUDIT LOG
═══════════════════════════════════════════════════════ */

.audit-log {
  display: grid;
  gap: 8px;
}

.audit-entry {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.audit-entry__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.audit-entry__meta strong {
  color: var(--ink);
  font-weight: 650;
}

.audit-entry__badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  min-height: 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-entry__badge--action {
  border-color: var(--orange-ring);
  background: var(--orange-dim);
  color: var(--orange);
}

.audit-entry__time {
  margin-left: auto;
  color: var(--subtle);
  font-size: 12px;
  font-family: var(--font-mono);
}

.audit-entry__changes {
  margin-top: 10px;
  display: grid;
  gap: 5px;
}

.audit-change {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  flex-wrap: wrap;
}

.audit-change__field {
  width: 160px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-change__old {
  flex: 1;
  color: var(--red);
  text-decoration: line-through;
  opacity: 0.75;
  overflow-wrap: anywhere;
  min-width: 60px;
}

.audit-change__arrow {
  color: var(--subtle);
  flex-shrink: 0;
  font-size: 12px;
}

.audit-change__new {
  flex: 1;
  color: var(--green);
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 60px;
}

/* ═══════════════════════════════════════════════════════
   REVIEW COMMENTS (supplier)
═══════════════════════════════════════════════════════ */

.review-comment-item {
  padding: 12px 14px;
  border: 1px solid var(--amber-border);
  border-radius: var(--r);
  background: var(--surface);
}

.review-comment-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-comment-item__fix {
  margin-left: auto;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.review-comment-item__text {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   FILTER TABS
═══════════════════════════════════════════════════════ */

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--tx-fast), border-color var(--tx-fast), color var(--tx-fast);
}

.filter-tab:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--navy);
}

.filter-tab--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.filter-tab--active:hover {
  background: var(--navy);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   CODE / PRE
═══════════════════════════════════════════════════════ */

pre {
  white-space: pre-wrap;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 18px 20px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
}

.error-page--minimal {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page__brand {
  margin: 0;
  color: var(--navy);
  font-family: var(--font);
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.error-page__brand span {
  color: var(--orange);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .auth-promo {
    min-height: 430px;
  }

  .auth-layout--promo {
    min-height: auto;
  }

  .app-body--with-sidebar .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand--side {
    padding: 0;
    border-bottom: 0;
    margin-inline: 0;
    margin-right: auto;
  }

  .side-nav__sticky {
    position: static;
    top: auto;
    display: block;
    width: 100%;
  }

  .side-nav__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
  }

  .side-nav__link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .topbar {
    position: relative !important;
    top: auto !important;
    padding: 0 16px;
  }

  .topbar .lang-switch__trigger {
    width: 44px;
    height: 38px;
    min-height: 38px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 13px;
  }

  .topbar .lang-switch__trigger .lang-switch__flag,
  .topbar .lang-switch__trigger .lang-switch__chevron {
    display: none;
  }

  .topbar .lang-switch__label {
    max-width: none;
    overflow: visible;
    font-size: 0;
    line-height: 1;
  }

  .topbar .lang-switch__label::after {
    content: "RU";
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
  }

  html[lang="kk"] .topbar .lang-switch__label::after {
    content: "KZ";
  }

  html[lang="en"] .topbar .lang-switch__label::after {
    content: "EN";
  }

  html[lang="zh-hans"] .topbar .lang-switch__label::after {
    content: "ZH";
  }

  .page-toc__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .page-toc__link {
    padding: 6px 10px;
  }

  .supplier-detail-header {
    position: static;
    margin-inline: 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  h1 { font-size: 28px; }

  .auth-layout { grid-template-columns: 1fr; }

  .page-hero,
  .dashboard-layout,
  .dashboard-grid,
  .moderator-analytics-grid,
  .moderator-dashboard-grid,
  .moderator-call-schedule__grid,
  .buyer-analytics-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-stats,
  .wizard-steps,
  .wizard-form,
  .dashboard-metrics,
  .moderator-metrics,
  .moderator-metrics--four,
  .buyer-platform-profile-grid,
  .status-summary-grid,
  .moderator-call-summary,
  .profile-data-grid {
    grid-template-columns: 1fr;
  }

  .buyer-dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .buyer-dashboard-stat {
    min-height: 0;
    padding: 9px 10px;
  }

  .buyer-dashboard-stat span {
    font-size: 8.5px;
  }

  .buyer-dashboard-stat strong {
    font-size: 21px;
  }

  .moderator-hero,
  .moderator-queue-card {
    grid-template-columns: 1fr;
  }

  .moderator-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .moderator-hero__actions,
  .moderator-queue-card__side {
    justify-items: start;
    justify-content: flex-start;
  }

  .moderator-queue-card__side {
    white-space: normal;
  }

  .supplier-list-stats,
  .supplier-list-search {
    grid-template-columns: 1fr;
  }

  .moderator-buyer-settings__grid,
  .moderator-buyer-danger-grid {
    grid-template-columns: 1fr;
  }

  .moderator-buyer-settings__facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .supplier-list-search .button,
  .supplier-list-search button {
    width: 100%;
  }

  .buyer-catalog-body .app-shell {
    grid-template-columns: 1fr;
  }

  .buyer-catalog-body .topbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    padding: 8px 12px 10px;
    position: relative !important;
    top: auto !important;
    z-index: 300;
    gap: 8px;
  }

  .buyer-mobile-menu-button {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 310;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .buyer-mobile-brand {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    margin-right: 0;
    overflow: hidden;
  }

  .buyer-mobile-brand .brand-logo {
    width: 30px;
    height: 30px;
  }

  .buyer-mobile-brand strong,
  .buyer-mobile-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .buyer-mobile-brand strong {
    font-size: 13px;
  }

  .buyer-mobile-brand small {
    font-size: 9px;
  }

  .buyer-catalog-body .topbar__actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    min-width: 0;
  }

  .buyer-catalog-body .lang-switch__trigger {
    width: 44px;
    height: 38px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 13px;
  }

  .buyer-catalog-body .lang-switch__trigger .lang-switch__flag,
  .buyer-catalog-body .lang-switch__trigger .lang-switch__chevron {
    display: none;
  }

  .buyer-catalog-body .lang-switch__label {
    font-size: 0;
    line-height: 1;
  }

  .buyer-catalog-body .lang-switch__label::after {
    content: "RU";
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
  }

  html[lang="kk"] .buyer-catalog-body .lang-switch__label::after {
    content: "KZ";
  }

  html[lang="en"] .buyer-catalog-body .lang-switch__label::after {
    content: "EN";
  }

  html[lang="zh-hans"] .buyer-catalog-body .lang-switch__label::after {
    content: "ZH";
  }

  .buyer-catalog-body .account-menu__trigger {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .buyer-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: block;
    background: rgba(7, 16, 42, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .buyer-mobile-nav-backdrop[hidden] {
    display: none;
  }

  .buyer-side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 910;
    width: min(320px, calc(100vw - 46px));
    height: 100dvh;
    padding: 10px 12px 16px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    border-right: 1px solid var(--blue-border);
    border-bottom: 0;
    box-shadow: 22px 0 48px rgba(7, 16, 42, 0.22);
    transform: translateX(-105%);
    transition: transform var(--tx-slow);
  }

  body.demo-plan .buyer-side-nav {
    display: flex;
  }

  body.buyer-nav-open {
    overflow: hidden;
  }

  body.buyer-nav-open .buyer-side-nav {
    transform: translateX(0);
  }

  .buyer-side-nav__brand {
    padding-right: 0;
  }

  .buyer-side-nav__menu {
    position: static;
    top: auto;
    display: grid;
    gap: 4px;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 8px;
  }

  .buyer-top-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-right: 0;
    order: initial;
  }

  .buyer-catalog {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .buyer-profile {
    padding: 14px;
  }

  .buyer-profile-hero,
  .buyer-profile-grid,
  .buyer-profile-two-columns,
  .buyer-profile-media-grid,
  .buyer-profile-product-grid {
    grid-template-columns: 1fr;
  }

  .buyer-profile-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .buyer-profile-card__logo {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .buyer-profile-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .buyer-favorite-card,
  .buyer-analytics-order {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .buyer-profile-aside {
    position: static;
  }

  .buyer-filter-panel {
    position: static;
    max-height: none;
    border-radius: 8px;
  }

  .buyer-dashboard {
    padding: 14px;
  }

  .buyer-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .buyer-event-page {
    padding: 14px;
    gap: 12px;
  }

  .buyer-event-hero {
    min-height: 0;
    padding: 16px;
    align-items: stretch;
    border-radius: 20px;
  }

  .buyer-event-hero .eyebrow {
    display: block;
    margin: 0 0 8px;
  }

  .buyer-event-hero h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.08;
  }

  .buyer-event-hero .muted {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .buyer-event-summary {
    gap: 10px;
  }

  .buyer-event-stat {
    min-height: 104px;
    padding: 14px 15px;
    border-radius: 18px;
  }

  .buyer-event-stat span {
    font-size: 13px;
  }

  .buyer-event-stat strong {
    font-size: 34px;
  }

  .buyer-event-next {
    padding: 14px 15px;
    border-radius: 18px;
  }

  .buyer-event-next__meta {
    gap: 16px;
  }

  .buyer-event-schedule,
  .buyer-event-map-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .page-glass .site-main .buyer-event-schedule {
    width: 100%;
    box-sizing: border-box;
    padding: 36px 23px 24px;
    border: 1px solid var(--blue-border);
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow:
      0 12px 32px rgba(15, 28, 80, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }

  .buyer-event-schedule__heading {
    margin: 0 0 30px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
  }

  .buyer-event-schedule__heading .eyebrow {
    margin: 0 0 6px;
    color: #4169e8;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .buyer-event-schedule__heading h2 {
    margin: 0;
    color: #000;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
  }

  .buyer-event-schedule__share {
    width: 22px;
    height: 22px;
    margin-top: -4px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #4169e8;
  }

  .buyer-event-schedule__share:hover {
    background: transparent;
    color: #4169e8;
  }

  .buyer-event-schedule__share svg {
    width: 100%;
    height: 100%;
  }

  .buyer-event-daytabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 24px;
  }

  .buyer-event-daytab {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 86px;
    padding: 12px 4px;
    align-content: center;
    gap: 3px;
    border-radius: 16px;
    background: #eceff4;
    color: #7b83ad;
    font-weight: 400;
    box-shadow: none;
  }

  .buyer-event-daytab.is-active {
    background: #4169e8;
    color: #fff;
    box-shadow: none;
  }

  .buyer-event-daytab__weekday {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
  }

  .buyer-event-daytab__num {
    margin-top: 0;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
  }

  .buyer-event-schedule__count {
    margin: 0 0 12px;
    color: #6e7899;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .buyer-event-schedule__count strong {
    color: inherit;
  }

  .buyer-event-daypanel {
    gap: 12px;
  }

  .buyer-event-card {
    padding: 9px 10px 11px;
    gap: 2px;
    border: 1px solid #dce4f8;
    border-radius: 8px;
    background: #eef3ff;
    box-shadow: 0 2px 5px rgba(15, 28, 80, 0.18);
  }

  .buyer-event-card__date {
    gap: 5px;
    color: #4169e8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .buyer-event-card__date svg {
    width: 14px;
    height: 14px;
  }

  .buyer-event-card__time {
    margin: 3px 0 4px;
    color: #315fea;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
  }

  .buyer-event-card__meta {
    color: #6e7899;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .buyer-event-card__company {
    margin: 0 0 2px;
    color: #e15121;
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1.18;
  }

  .buyer-event-schedule__pdf {
    width: min(264px, calc(100% - 52px));
    min-height: 30px;
    margin: 24px auto 0;
    padding: 0 12px;
    display: flex;
    border-radius: 6px;
    background: #3364ec;
    background-image: linear-gradient(180deg, #3f72f5 0%, #2f5fe3 100%);
    box-shadow: 0 7px 14px rgba(51, 100, 236, 0.32);
    font-size: 11px;
    font-weight: 700;
  }

  .buyer-event-map-frame-wrap {
    border: 0;
    box-shadow: none;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  .buyer-event-schedule .moderator-pavilion-meetings__heading,
  .buyer-event-map-panel__heading {
    margin: 0 0 16px;
    align-items: flex-start;
  }

  .buyer-event-meeting-row {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .buyer-event-meeting-row .moderator-pavilion-meeting-row__time {
    width: 100%;
    min-height: 44px;
  }

  .buyer-event-map-frame {
    height: 720px;
    min-height: 720px;
  }

  .call-request-card {
    grid-template-columns: 1fr;
  }

  .call-request-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .call-request-card__side {
    justify-items: start;
  }

  .call-confirmation-grid {
    text-align: left;
  }

  .buyer-category-picker {
    max-height: 60vh;
  }

  .action-panel { position: static; }

  table {
    display: block;
    overflow-x: auto;
  }
}

/* ═══════════════════════════════════════════════════════
   MODERATOR — LIQUID GLASS (iOS-style)
═══════════════════════════════════════════════════════ */

body.page-glass {
  background-color: #F0F4FC;
  background-image:
    radial-gradient(56rem 38rem at 10% -8%, rgba(59, 130, 246, 0.13), transparent 62%),
    radial-gradient(48rem 32rem at 102% 6%, rgba(227, 95, 28, 0.08), transparent 58%),
    radial-gradient(64rem 44rem at 50% 118%, rgba(124, 58, 237, 0.07), transparent 62%);
  background-attachment: fixed;
}

/* auth pages: light glass promo instead of dark navy + big letters */
.page-glass .auth-promo {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--blue-border);
  background:
    radial-gradient(circle at 88% 6%, rgba(59, 130, 246, 0.14), transparent 52%),
    var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--ink);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .auth-promo__copy h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-glass .auth-promo__copy p {
  color: var(--muted);
}

.page-glass .auth-kicker {
  color: var(--blue);
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-glass .side-nav {
  border-right: 1px solid var(--blue-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.page-glass .side-nav__link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
}

.page-glass .side-nav__link.is-active {
  background: var(--blue-dim);
  color: var(--blue-deep);
}

.page-glass .topbar {
  border-bottom: 1px solid var(--blue-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.moderator-dashboard--modern { gap: 14px; }

/* frosted top-level panels */
.page-glass .site-main .panel,
.moderator-dashboard--modern .moderator-hero,
.moderator-dashboard--modern .moderator-metric-card {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.moderator-dashboard--modern .moderator-hero {
  background:
    radial-gradient(circle at 92% -20%, rgba(59, 130, 246, 0.14), transparent 52%),
    var(--glass-bg);
}

.moderator-dashboard--modern .moderator-metrics--four .moderator-metric-card {
  border-radius: 18px;
}

.moderator-dashboard--modern .moderator-metric-card--action:hover {
  transform: translateY(-2px);
  border-color: var(--blue-border-strong);
  color: var(--ink);
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.buyer-groups-page,
.buyer-group-detail-page {
  display: grid;
  gap: 14px;
}

.buyer-groups-hero {
  width: 100%;
}

.buyer-group-metrics article,
.buyer-group-list-card,
.buyer-group-chat-card,
.buyer-group-thread-list,
.buyer-group-thread-card,
.buyer-group-dialog-panel,
.buyer-group-overview article {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.buyer-group-metrics article {
  min-height: 76px;
  padding: 12px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.buyer-group-metrics span,
.buyer-group-overview span,
.buyer-group-list-card__eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.buyer-group-metrics strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.buyer-group-list-panel {
  display: grid;
  gap: 14px;
}

.buyer-group-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.buyer-group-list-card {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 14px;
  color: var(--body);
  text-decoration: none;
  transition: transform var(--tx-fast), border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.buyer-group-list-card:hover {
  transform: translateY(-1px);
  border-color: var(--blue-border-strong);
  color: var(--body);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
}

.buyer-group-list-card h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.buyer-group-list-card p {
  margin: 0;
  color: var(--muted);
}

.buyer-group-list-card__suppliers,
.buyer-group-list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.buyer-group-list-card__suppliers span,
.buyer-group-list-card__meta span,
.buyer-group-list-card__meta strong,
.buyer-group-chat-card__stats span,
.buyer-group-chat-card__stats strong,
.buyer-group-dialog-panel__actions span,
.buyer-group-dialog-panel__actions strong {
  padding: 5px 9px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.buyer-group-list-card__meta strong,
.buyer-group-chat-card__stats strong,
.buyer-group-dialog-panel__actions strong {
  border-color: rgba(180, 35, 24, 0.20);
  background: rgba(180, 35, 24, 0.08);
  color: var(--red);
}

.buyer-group-overview-panel {
  display: grid;
  gap: 12px;
}

.buyer-group-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.buyer-group-overview article {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 3px;
}

.buyer-group-overview strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.buyer-group-overview small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.buyer-group-overview article.is-alert {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.08);
}

.buyer-group-description {
  margin: 0;
  color: var(--muted);
}

.buyer-group-detail-page.is-loading .buyer-groups-hero,
.buyer-group-detail-page.is-loading .buyer-group-overview-panel,
.buyer-group-detail-page.is-loading .buyer-group-workspace {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.buyer-group-workspace {
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: start;
}

.buyer-group-thread-list,
.buyer-group-dialog-panel {
  min-width: 0;
  padding: 18px;
}

.buyer-group-thread-list {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  display: grid;
  gap: 14px;
}

.buyer-group-thread-list--rail {
  align-content: start;
  overflow: hidden;
}

.buyer-group-rail-section {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.buyer-group-rail-section + .buyer-group-rail-section {
  padding-top: 14px;
  border-top: 1px solid rgba(59, 130, 246, 0.14);
}

.buyer-group-thread-list__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.buyer-group-thread-list__header h2,
.buyer-group-dialog-panel__header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.buyer-group-thread-list__header > span {
  padding: 6px 10px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.56);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.buyer-group-thread-list__scroll {
  min-height: 0;
  max-height: calc(100vh - 430px);
  padding-right: 4px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.buyer-group-switcher {
  min-height: 0;
  max-height: 210px;
  padding-right: 4px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

.buyer-group-switcher-card {
  min-width: 0;
  padding: 12px 13px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--body);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform var(--tx-fast), border-color var(--tx-fast), box-shadow var(--tx-fast), background var(--tx-fast);
}

.buyer-group-switcher-card:hover,
.buyer-group-switcher-card.is-active {
  transform: translateY(-1px);
  border-color: var(--blue-border-strong);
  color: var(--body);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.buyer-group-switcher-card.is-active {
  background: linear-gradient(135deg, rgba(219, 232, 255, 0.84), rgba(255, 255, 255, 0.72));
}

.buyer-group-switcher-card strong,
.buyer-group-switcher-card span,
.buyer-group-switcher-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.buyer-group-switcher-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.buyer-group-switcher-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.buyer-group-switcher-card em {
  justify-self: start;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(180, 35, 24, 0.10);
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.buyer-group-thread-card {
  position: relative;
  min-width: 0;
  padding: 14px 14px 14px 18px;
  display: grid;
  gap: 9px;
  color: var(--body);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--tx-fast), border-color var(--tx-fast), box-shadow var(--tx-fast), background var(--tx-fast);
}

.buyer-group-thread-card:hover,
.buyer-group-thread-card.is-active {
  transform: translateY(-1px);
  border-color: var(--blue-border-strong);
  color: var(--body);
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.buyer-group-thread-card.is-active {
  background: linear-gradient(135deg, rgba(219, 232, 255, 0.82), rgba(255, 255, 255, 0.70));
}

.buyer-group-thread-card.is-banned {
  border-color: rgba(180, 35, 24, 0.25);
  background: rgba(255, 245, 242, 0.72);
}

.buyer-group-thread-card__accent {
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(59, 130, 246, 0.26);
}

.buyer-group-thread-card.is-active .buyer-group-thread-card__accent {
  background: var(--blue);
}

.buyer-group-thread-card.is-banned .buyer-group-thread-card__accent {
  background: var(--red);
}

.buyer-group-thread-card__topline {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.buyer-group-thread-card__topline strong {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.buyer-group-thread-card__topline > span {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.buyer-group-thread-card__topline em {
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: rgba(180, 35, 24, 0.10);
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.buyer-group-thread-card__meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.buyer-group-thread-card__meta span,
.buyer-group-thread-card__preview {
  min-width: 0;
  overflow-wrap: anywhere;
}

.buyer-group-thread-card__meta strong {
  color: var(--ink);
}

.buyer-group-thread-card__preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buyer-group-dialog-panel {
  display: grid;
  gap: 14px;
}

.buyer-group-dialog-panel__header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.buyer-group-dialog-panel__header > div:first-child {
  min-width: 0;
}

.buyer-group-dialog-panel__header h2 {
  font-size: 28px;
  overflow-wrap: anywhere;
}

.buyer-group-dialog-panel__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-group-dialog-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.buyer-group-dialog-meta span {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.buyer-group-dialog-meta strong {
  color: var(--ink);
}

.buyer-group-dialog-messages {
  min-height: 480px;
  max-height: calc(100vh - 430px);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.buyer-group-chat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.buyer-group-chat-grid--dense {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.buyer-group-chat-card {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.buyer-group-chat-card.is-banned {
  border-color: rgba(180, 35, 24, 0.30);
  background: rgba(255, 245, 242, 0.70);
}

.buyer-group-chat-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.buyer-group-chat-card__header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.buyer-group-chat-card__participants {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.buyer-group-chat-card__participants span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.buyer-group-chat-card__participants strong {
  color: var(--ink);
}

.buyer-group-chat-card__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.buyer-group-ban-form {
  margin: 0;
}

.buyer-group-ban-form button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(180, 35, 24, 0.26);
  border-radius: var(--r-pill);
  background: rgba(180, 35, 24, 0.10);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.buyer-group-ban-form button:hover {
  background: rgba(180, 35, 24, 0.16);
  border-color: rgba(180, 35, 24, 0.38);
}

.buyer-group-chat-card__ban-state {
  border-color: rgba(180, 35, 24, 0.28) !important;
  background: rgba(180, 35, 24, 0.12) !important;
  color: var(--red) !important;
}

.buyer-group-chat-card__messages {
  min-height: 280px;
  max-height: 360px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.buyer-group-chat-grid--dense .buyer-group-chat-card__messages {
  min-height: 220px;
  max-height: 300px;
}

.buyer-group-message {
  width: fit-content;
  max-width: min(92%, 460px);
  padding: 10px 12px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--body);
  box-shadow: 0 8px 18px rgba(15, 28, 80, 0.05);
}

.buyer-group-message.is-buyer {
  margin-left: auto;
  border-color: rgba(37, 99, 235, 0.22);
  border-radius: 16px 16px 5px 16px;
  background: rgba(59, 130, 246, 0.12);
}

.buyer-group-message.is-blocked {
  border-color: rgba(180, 35, 24, 0.26);
  background: rgba(180, 35, 24, 0.08);
}

.buyer-group-message__meta {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.buyer-group-message__meta strong {
  color: var(--blue-deep);
}

.buyer-group-message__meta em {
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: rgba(180, 35, 24, 0.12);
  color: var(--red);
  font-style: normal;
  font-weight: 750;
}

.buyer-group-message p {
  margin: 0;
  overflow-wrap: anywhere;
}

.buyer-group-message small {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-weight: 650;
}

.buyer-group-message__delivery {
  color: var(--muted) !important;
  font-weight: 700;
}

.buyer-group-chat-card__empty {
  margin: 0;
  color: var(--muted);
}

.buyer-group-sim-form {
  display: grid;
  gap: 8px;
}

.buyer-group-sim-form label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.buyer-group-sim-form textarea {
  min-height: 82px;
  resize: vertical;
}

.buyer-group-sim-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.buyer-group-sim-form__actions button {
  min-width: 0;
  min-height: 36px;
}

.buyer-group-chat-card__closed {
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.buyer-supplier-chat-page {
  display: grid;
  gap: 14px;
}

.buyer-supplier-chat-hero {
  width: min(100%, 1120px);
}

.buyer-supplier-chat-layout {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 14px;
  align-items: start;
}

.buyer-supplier-chat-panel,
.buyer-supplier-chat-side {
  padding: 18px;
}

.buyer-supplier-chat-side {
  position: sticky;
  top: 82px;
}

.buyer-supplier-chat-messages {
  min-height: 420px;
  max-height: calc(100vh - 360px);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.buyer-supplier-chat-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(59, 130, 246, 0.14);
  display: grid;
  gap: 9px;
}

.buyer-supplier-chat-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.buyer-supplier-chat-form textarea {
  min-height: 108px;
  resize: vertical;
}

.support-thread-card--supplier-chat {
  border-color: rgba(59, 130, 246, 0.18);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.09), rgba(255, 255, 255, 0.72));
  box-shadow:
    inset 3px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.support-thread-card--supplier-chat.has-blocked {
  border-color: rgba(180, 35, 24, 0.20);
  box-shadow:
    inset 3px 0 0 var(--red),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

@media (max-width: 980px) {
  .buyer-group-workspace {
    grid-template-columns: 1fr;
  }

  .buyer-group-thread-list {
    position: static;
    max-height: none;
  }

  .buyer-group-thread-list__scroll,
  .buyer-group-dialog-messages {
    max-height: none;
  }

  .buyer-group-dialog-panel__header {
    display: grid;
  }

  .buyer-group-dialog-panel__actions {
    justify-content: flex-start;
  }

  .buyer-supplier-chat-layout {
    grid-template-columns: 1fr;
  }

  .buyer-supplier-chat-side {
    position: static;
  }
}

.page-glass .eyebrow {
  color: var(--blue);
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.09em;
}

.moderator-call-schedule {
  width: 100%;
}

.moderator-call-schedule__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.moderator-call-schedule__details,
.moderator-call-schedule__form {
  padding: 20px;
}

.moderator-call-schedule__details .section-heading {
  margin-bottom: 14px;
}

.moderator-call-schedule__details .section-heading h2,
.moderator-call-schedule__form h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.moderator-call-summary {
  margin: 14px 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.moderator-call-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.moderator-call-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.moderator-call-summary strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.moderator-schedule-form {
  display: grid;
  gap: 14px;
}

.moderator-schedule-form label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.moderator-schedule-form textarea {
  min-height: 104px;
  resize: vertical;
}

.moderator-schedule-form button[type="submit"] {
  width: 100%;
  min-height: 40px;
}

/* moderator form / wizard pages on glass */
.moderator-form-page {
  max-width: 920px;
}

.moderator-form-card {
  padding: 22px 24px;
}

.moderator-form-card .field {
  margin-bottom: 16px;
}

.moderator-form-card .field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.moderator-form-card .field--boolean .boolean-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.moderator-form-card .helptext {
  margin-top: 5px;
  font-size: 12px;
}

.moderator-form-card > button[type="submit"] {
  margin-top: 4px;
  min-height: 40px;
}

/* invite summary facts */
.moderator-invite-facts {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.moderator-invite-facts > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.10);
}

.moderator-invite-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.moderator-invite-facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.moderator-invite-facts code {
  padding: 3px 9px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.moderator-invite-text {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* translations table: let the wide table scroll inside the glass panel */
.moderator-translations-panel {
  padding: 14px;
  overflow-x: auto;
}

/* big numbers: system font instead of mono */
.moderator-dashboard--modern .moderator-metric-card strong,
.moderator-dashboard--modern .moderator-panel-number strong,
.moderator-dashboard--modern .moderator-mini-stats strong,
.moderator-dashboard--modern .status-summary-item strong {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* inner cards: lighter translucent layer (no extra blur) */
.moderator-dashboard--modern .moderator-queue-card,
.moderator-dashboard--modern .moderator-compact-item,
.moderator-dashboard--modern .moderator-history-item,
.moderator-dashboard--modern .moderator-mini-stats div,
.moderator-dashboard--modern .status-summary-item {
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--r-lg);
  background: var(--glass-bg-soft);
}

.moderator-dashboard--modern .moderator-compact-item:hover,
.moderator-dashboard--modern .status-summary-item:hover {
  border-color: var(--blue-border-strong);
  background: rgba(255, 255, 255, 0.80);
  color: var(--blue-deep);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.moderator-dashboard--modern .moderator-empty-card {
  border: 1px dashed rgba(59, 130, 246, 0.30);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.32);
}

/* visits chart: iOS-blue bars */
.moderator-dashboard--modern .moderator-bar-chart {
  border-top: 1px solid rgba(59, 130, 246, 0.14);
}

.moderator-dashboard--modern .moderator-bar-chart__bar {
  max-width: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--blue) 100%);
  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.moderator-dashboard--modern .moderator-bar-chart__value,
.moderator-dashboard--modern .moderator-bar-chart__label {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}

/* status pills inside lists */
.moderator-dashboard--modern .moderator-compact-item em {
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: var(--blue-dim);
  color: var(--blue-deep);
}

/* buttons on glass pages: pill-shaped; secondary becomes glass */
.page-glass .site-main .button:not(.buyer-event-schedule__pdf),
.page-glass .site-main button:not(.buyer-event-daytab):not(.buyer-event-schedule__share):not(.buyer-event-schedule__pdf) {
  border-radius: var(--r-pill);
}

.page-glass .site-main .button.secondary,
.page-glass .site-main button.secondary {
  border-color: rgba(59, 130, 246, 0.28);
  background: var(--glass-bg);
  background-image: none;
  color: var(--blue-deep);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-glass .site-main .button.secondary:hover,
.page-glass .site-main button.secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue-deep);
  opacity: 1;
}

.page-glass .site-main .button.secondary.button--ghost-danger,
.page-glass .site-main button.secondary.button--ghost-danger {
  border-color: rgba(180, 35, 24, 0.26);
  color: var(--red);
}

.page-glass .site-main .button.secondary.button--ghost-danger:hover,
.page-glass .site-main button.secondary.button--ghost-danger:hover {
  border-color: rgba(180, 35, 24, 0.38);
  color: var(--red);
  background: rgba(180, 35, 24, 0.08);
}

/* primary buttons: tinted orange glass instead of solid orange */
.page-glass .site-main .button:not(.secondary):not(.buyer-event-schedule__pdf),
.page-glass .site-main button:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy):not(.link-button):not(.auth-signup-tabs__button):not(.buyer-event-daytab):not(.buyer-event-schedule__share):not(.buyer-event-schedule__pdf) {
  border-color: rgba(227, 95, 28, 0.30);
  background: rgba(227, 95, 28, 0.14);
  background-image: none;
  color: var(--orange-deep);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.page-glass .site-main .button:not(.secondary):not(.buyer-event-schedule__pdf):hover,
.page-glass .site-main button:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy):not(.link-button):not(.auth-signup-tabs__button):not(.buyer-event-daytab):not(.buyer-event-schedule__share):not(.buyer-event-schedule__pdf):hover {
  border-color: rgba(227, 95, 28, 0.42);
  background: rgba(227, 95, 28, 0.22);
  color: var(--orange-deep);
  opacity: 1;
}

.page-glass .site-main button.password-field__toggle,
.page-glass .site-main button.password-field__toggle:hover {
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-deep);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-glass .site-main button.password-field__toggle:hover,
.page-glass .site-main button.password-field__toggle:focus-visible {
  background: rgba(59, 130, 246, 0.10);
  color: var(--blue-deep);
}

@media (max-width: 820px) {
  .page-glass .site-main .buyer-event-schedule {
    border: 1px solid var(--blue-border);
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow:
      0 12px 32px rgba(15, 28, 80, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
}

/* stat cards (supplier list filters etc.) */
.page-glass .stat {
  border: 1px solid var(--blue-border);
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 8px 24px rgba(15, 28, 80, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color var(--tx), box-shadow var(--tx), transform var(--tx-fast);
}

.page-glass a.stat:hover {
  transform: translateY(-2px);
  border-color: var(--blue-border-strong);
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .stat--active {
  border-color: var(--blue-border-strong);
  background: rgba(59, 130, 246, 0.10);
}

.page-glass .stat--active strong {
  color: var(--blue-deep);
}

.page-glass .stat strong {
  font-family: var(--font);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* tables on glass pages */
.page-glass .site-main table {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .site-main th {
  background: rgba(59, 130, 246, 0.06);
}

.page-glass .site-main th,
.page-glass .site-main td {
  border-bottom: 1px solid rgba(59, 130, 246, 0.10);
}

.page-glass .site-main tr:hover td {
  background: rgba(59, 130, 246, 0.045);
}

/* inputs on glass pages */
.page-glass .site-main input,
.page-glass .site-main select,
.page-glass .site-main textarea {
  border-color: rgba(59, 130, 246, 0.22);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.65);
}

.page-glass .site-main input[type="search"] {
  border-radius: var(--r-pill);
  padding-inline: 16px;
}

.page-glass .site-main input:focus-visible,
.page-glass .site-main select:focus-visible,
.page-glass .site-main textarea:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* shared page-hero (account settings, etc.) on glass */
.page-glass .page-hero {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 92% -20%, rgba(59, 130, 246, 0.14), transparent 52%),
    var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .page-hero::before {
  background: linear-gradient(90deg, var(--blue-soft) 0%, var(--blue) 100%);
}

/* supplier cabinet: wizard step tiles on glass */
.page-glass .wizard-step {
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}

.page-glass .wizard-step:hover {
  border-color: var(--blue-border-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.page-glass .wizard-step__number {
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
}

/* supplier cabinet: published banner stays green but goes glassy */
.page-glass .moderation-passed-banner {
  border: 1px solid rgba(34, 139, 79, 0.28);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 92% -20%, rgba(34, 139, 79, 0.14), transparent 52%),
    rgba(255, 255, 255, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

/* supplier cabinet: moderator-feedback panel — amber accent, glass body */
.page-glass .review-comments-panel {
  border-color: rgba(190, 110, 20, 0.26);
}

.page-glass .review-comment-item {
  border: 1px solid rgba(190, 110, 20, 0.20);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.72);
}

.page-glass .action-panel {
  background: var(--glass-bg);
}

/* row actions menu */
.page-glass .actions-menu__trigger {
  border-color: rgba(59, 130, 246, 0.25);
  background: var(--glass-bg);
  background-image: none;
}

.page-glass .actions-menu__trigger--icon {
  border-radius: 50%;
}

.page-glass .actions-menu__trigger:hover,
.page-glass .actions-menu[open] .actions-menu__trigger {
  border-color: var(--blue);
}

.page-glass .actions-menu__panel {
  border-color: var(--blue-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.page-glass .actions-menu__item {
  border-radius: var(--r-sm);
}

/* filter tabs: iOS segmented control */
.page-glass .filter-tabs {
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

.page-glass .filter-tab {
  min-height: 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
}

.page-glass .filter-tab:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue-deep);
}

.page-glass .filter-tab--active,
.page-glass .filter-tab--active:hover {
  background: #fff;
  color: var(--blue-deep);
  box-shadow:
    0 1px 4px rgba(15, 28, 80, 0.14),
    0 0 0 1px rgba(59, 130, 246, 0.14);
}

/* moderation queue decision actions */
.mod-queue-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mod-queue-actions form {
  margin: 0;
}

.page-glass .site-main button.secondary.mod-btn-approve {
  border-color: rgba(19, 149, 106, 0.32);
  background: rgba(19, 149, 106, 0.12);
  color: var(--green);
}

.page-glass .site-main button.secondary.mod-btn-approve:hover {
  background: rgba(19, 149, 106, 0.20);
  color: var(--green);
}

.page-glass .site-main button.secondary.mod-btn-reject {
  border-color: rgba(180, 35, 24, 0.26);
  color: var(--red);
}

.page-glass .site-main button.secondary.mod-btn-reject:hover {
  background: rgba(180, 35, 24, 0.10);
  color: var(--red);
}

/* object links in queue cards: navy tinted pills */
.page-glass .moderator-queue-card .meta-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(15, 28, 80, 0.25);
  border-radius: var(--r-pill);
  background: rgba(15, 28, 80, 0.07);
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
  transition: background var(--tx-fast), border-color var(--tx-fast);
}

.page-glass .moderator-queue-card .meta-row a:hover {
  border-color: rgba(15, 28, 80, 0.40);
  background: rgba(15, 28, 80, 0.13);
  color: var(--navy);
}

/* category tree on glass pages */
.page-glass .category-legend {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .category-search__results {
  border-color: var(--blue-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.page-glass .cat-accordion__summary {
  border-radius: var(--r-lg);
  transition: background var(--tx-fast);
}

.page-glass .cat-accordion__summary:hover {
  background: rgba(59, 130, 246, 0.07);
}

.page-glass .cat-accordion__count {
  background: var(--blue-dim);
  color: var(--blue-deep);
  font-weight: 650;
}

/* supplier detail page on glass — match the panel cards below */
.page-glass .supplier-detail-header {
  margin-inline: 0;
  padding: 18px 22px;
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .supplier-detail-header.is-condensed {
  padding-block: 10px;
}

.page-glass .profile-data-row {
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--r-lg);
  background: var(--glass-bg-soft);
}

.page-glass .icon-button {
  border-color: rgba(59, 130, 246, 0.25);
  border-radius: 50%;
  background: var(--glass-bg);
}

.page-glass .icon-button:hover {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue-deep);
}

.page-glass .selection-chip {
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: var(--blue-dim);
  color: var(--blue-deep);
}

.page-glass .page-toc__link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
}

.page-glass .page-toc__link.is-active {
  background: var(--blue-dim);
  color: var(--blue-deep);
}

/* buyer portal on glass */
.page-glass .buyer-side-nav {
  border-right: 1px solid var(--blue-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.page-glass .buyer-side-nav__link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
}

.page-glass .buyer-side-nav__link.is-active {
  background: var(--blue-dim);
  color: var(--blue-deep);
}

.page-glass .buyer-side-nav__link:hover .buyer-side-nav__icon,
.page-glass .buyer-side-nav__link.is-active .buyer-side-nav__icon {
  color: var(--blue-deep);
}

.page-glass .buyer-top-search input[type="search"],
.page-glass .buyer-catalog-search input[type="search"] {
  padding: 0 16px 0 40px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
}

.page-glass .buyer-top-search input:focus,
.page-glass .buyer-catalog-search input:focus {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* buyer frosted panels */
.page-glass .buyer-dashboard-hero,
.page-glass .buyer-platform-profile-panel,
.page-glass .buyer-interest-panel,
.page-glass .buyer-analytics-panel,
.page-glass .buyer-supplier-card,
.page-glass .buyer-profile-card,
.page-glass .buyer-profile-side-card,
.page-glass .buyer-profile-section,
.page-glass .buyer-filter-panel,
.page-glass .buyer-empty-state {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .buyer-dashboard-stat {
  border: 1px solid var(--blue-border);
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 8px 24px rgba(15, 28, 80, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .buyer-dashboard-stat strong {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.page-glass .call-request-card {
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--r-lg);
  background: var(--glass-bg-soft);
}

/* buyer analytics */
.buyer-analytics-grid--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .buyer-analytics-grid--even {
    grid-template-columns: 1fr;
  }

  .buyer-analytics-panel .section-heading {
    flex-direction: row;
    align-items: flex-start;
  }

  .buyer-analytics-panel .section-heading .button {
    align-self: flex-start;
    justify-self: end;
    width: auto;
    max-width: none;
  }
}

.page-glass .buyer-funnel-list {
  gap: 14px;
}

.page-glass .buyer-funnel-item__top strong {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.page-glass .buyer-funnel-bar {
  height: 8px;
  background: rgba(59, 130, 246, 0.10);
}

.page-glass .buyer-funnel-bar span {
  background: linear-gradient(90deg, var(--blue-soft) 0%, var(--blue) 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.30);
}

.page-glass .buyer-recommendation-list li {
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-lg);
  background: rgba(59, 130, 246, 0.07);
  color: var(--body);
}

.page-glass .buyer-category-analytics-item,
.page-glass .buyer-favorite-card,
.page-glass .buyer-analytics-order,
.page-glass .buyer-empty-mini {
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--r-lg);
  background: var(--glass-bg-soft);
}

.page-glass .buyer-category-analytics-item strong {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.page-glass .buyer-favorite-card__mark {
  border-color: rgba(59, 130, 246, 0.20);
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-deep);
}

.support-page {
  display: grid;
  gap: 12px;
}

.support-page-hero {
  min-height: 76px;
}

.support-page .buyer-dashboard-hero.support-page-hero,
.support-page .moderator-hero.support-page-hero {
  width: min(100%, 1052px);
  margin-inline: 0 auto;
  padding-block: 14px;
}

.support-inbox-layout {
  width: min(100%, 1052px);
  margin-inline: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(280px, 340px);
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.support-inbox-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.support-conversation-shell {
  width: min(100%, 1052px);
  margin-inline: 0 auto;
  display: grid;
  gap: 12px;
}

.support-conversation-hero > div:first-child {
  min-width: 0;
}

.support-conversation-hero__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.support-conversation-hero__actions .button {
  min-height: 36px;
  padding-inline: 14px;
  white-space: nowrap;
}

.support-conversation-layout {
  width: min(100%, 1052px);
  margin-inline: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(280px, 340px);
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.support-conversation-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.support-compose-panel,
.support-thread-panel,
.support-context-panel,
.support-chat-panel {
  padding: 16px 18px;
}

.support-compose-panel {
  position: sticky;
  top: 82px;
  max-width: 700px;
  width: 100%;
}

.support-thread-panel {
  max-height: calc(100vh - 112px);
  overflow: auto;
  min-width: 0;
}

.support-thread-panel--side {
  position: sticky;
  top: 82px;
}

.support-inbox-layout .section-heading {
  margin-bottom: 10px;
}

.support-inbox-layout .section-heading h2 {
  font-size: 18px;
}

.support-form {
  display: grid;
  gap: 12px;
}

.support-form .field {
  margin: 0;
}

.support-form input,
.support-form textarea {
  width: 100%;
}

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

.support-compose-panel .support-form textarea {
  min-height: 86px;
}

.support-recipient-picker {
  display: grid;
  gap: 10px;
}

.support-recipient-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-recipient-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.support-recipient-search-field {
  position: relative;
}

.support-recipient-role input {
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}

.support-recipient-role:has(input:checked) {
  border-color: rgba(39, 121, 255, 0.45);
  background: rgba(39, 121, 255, 0.12);
  color: var(--blue);
}

.support-recipient-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow: auto;
  display: grid;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(39, 121, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 28, 80, 0.16);
  backdrop-filter: blur(12px);
}

.support-recipient-list[hidden],
.support-recipient-empty[hidden] {
  display: none !important;
}

.support-recipient-option {
  width: 100%;
  min-height: auto;
  padding: 8px 10px;
  display: grid;
  justify-items: start;
  gap: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.support-recipient-option:hover,
.support-recipient-option.is-selected {
  background: rgba(39, 121, 255, 0.1);
  color: var(--ink);
  transform: none;
}

.support-recipient-option strong {
  font-size: 13px;
  line-height: 1.2;
}

.support-recipient-option small {
  color: var(--muted);
  font-size: 11px;
}

.support-recipient-empty {
  position: absolute;
  z-index: 19;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(39, 121, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(15, 28, 80, 0.12);
  font-size: 12px;
}

.support-recipient-selected {
  margin-top: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(39, 121, 255, 0.18);
  border-radius: 14px;
  background: rgba(39, 121, 255, 0.08);
}

.support-recipient-selected[hidden] {
  display: none !important;
}

.support-recipient-selected div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.support-recipient-selected strong,
.support-recipient-selected small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-recipient-selected strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.support-recipient-selected small {
  color: var(--muted);
  font-size: 11.5px;
}

.support-recipient-selected button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(39, 121, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}

.support-recipient-selected button:hover {
  border-color: rgba(39, 121, 255, 0.36);
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-deep);
}

.support-compose-extra {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.support-compose-extra summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.support-compose-extra summary::-webkit-details-marker {
  display: none;
}

.support-compose-extra summary::after {
  content: "↓";
  float: right;
  color: var(--muted);
}

.support-compose-extra[open] summary {
  margin-bottom: 10px;
}

.support-compose-extra[open] summary::after {
  content: "↑";
}

.support-pin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.support-pin-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.support-pin-card span,
.support-pin-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.support-pin-card span {
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-pin-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.support-context-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.support-context-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.support-context-details {
  margin-top: 12px;
}

.support-thread-list,
.support-message-list {
  display: grid;
  gap: 10px;
}

.support-thread-card {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--body);
  text-decoration: none;
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast), transform var(--tx-fast);
}

.support-thread-card:hover {
  border-color: var(--border-strong);
  color: var(--body);
  box-shadow: var(--e2);
  transform: translateY(-1px);
}

.support-thread-card.is-unread {
  border-color: var(--orange-ring);
  background: var(--orange-dim);
}

.support-thread-card.is-current {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(59, 130, 246, 0.10);
  box-shadow: inset 3px 0 0 var(--blue);
}

.support-history-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(59, 130, 246, 0.14);
  display: grid;
  gap: 10px;
}

.support-history-section--top,
.support-history-groups--top {
  margin-top: 0;
  margin-bottom: 14px;
  padding-top: 0;
  border-top: 0;
}

.support-history-topics {
  margin-top: 14px;
}

.support-history-section__heading,
.support-history-groups__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-history-section__heading .eyebrow,
.support-history-groups__heading .eyebrow {
  margin: 0;
}

.support-history-section__heading h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.support-history-section__link,
.support-history-groups__heading a {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 750;
}

.support-thread-card--buyer-group {
  border-color: rgba(59, 130, 246, 0.18);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(255, 255, 255, 0.70));
  box-shadow:
    inset 3px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.support-thread-card--buyer-group.has-blocked {
  border-color: rgba(180, 35, 24, 0.20);
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.09), rgba(255, 255, 255, 0.76));
  box-shadow:
    inset 3px 0 0 var(--red),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.support-thread-card--buyer-group.has-blocked .support-group-card__alert {
  background: var(--red);
}

.support-group-card__kind {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.56) !important;
  color: var(--blue-deep) !important;
}

.support-group-card__alert {
  background: var(--red) !important;
  color: #fff !important;
}

.support-group-card__blocked {
  color: var(--red) !important;
  font-weight: 750;
}

.support-thread-card__topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.support-thread-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.support-thread-card__topline span {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.support-thread-topic,
.support-thread-card__subject {
  color: var(--muted);
  font-weight: 700;
}

.support-thread-topic {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}

.support-thread-card__subject {
  margin-top: 4px;
  font-size: 12px;
}

.support-thread-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.support-thread-card__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.support-thread-card > strong {
  justify-self: start;
  color: var(--navy);
  font-size: 12px;
}

.access-recovery-card__form {
  display: grid;
  gap: 10px;
}

@media (min-width: 900px) {
  .support-thread-card:has(.access-recovery-card__form) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
  }
}

.support-backline a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.support-message {
  max-width: min(760px, 86%);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.support-message.is-own {
  justify-self: end;
  border-color: var(--orange-ring);
  background: var(--orange-dim);
}

.support-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.support-message__meta strong {
  color: var(--ink);
}

.support-message p {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
}

.support-attachment-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.support-attachment {
  width: min(360px, 100%);
  padding: 8px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--body);
  text-decoration: none;
}

.support-attachment:hover {
  border-color: var(--border-strong);
  color: var(--body);
}

.support-attachment img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-3);
}

.support-attachment__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange-dim);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.support-attachment strong,
.support-attachment small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-attachment strong {
  color: var(--ink);
  font-size: 12.5px;
}

.support-attachment small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.support-reply-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.support-empty {
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.support-empty h3 {
  margin: 0;
  color: var(--ink);
}

.page-glass .support-compose-panel,
.page-glass .support-thread-panel,
.page-glass .support-context-panel,
.page-glass .support-chat-panel {
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .support-thread-card,
.page-glass .support-message,
.page-glass .support-pin-card,
.page-glass .support-attachment,
.page-glass .support-empty {
  border-color: rgba(59, 130, 246, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.page-glass .support-thread-card:hover {
  border-color: rgba(59, 130, 246, 0.26);
  box-shadow: 0 10px 24px rgba(15, 28, 80, 0.06);
}

.page-glass .support-thread-card.is-unread {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(59, 130, 246, 0.09);
}

.page-glass .support-message.is-own {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(59, 130, 246, 0.10);
}

.page-glass .support-message__meta strong,
.page-glass .support-thread-card > strong {
  color: var(--blue-deep);
}

.page-glass .support-reply-form {
  border-top-color: rgba(59, 130, 246, 0.14);
}

.page-glass .support-context-form {
  border-top-color: rgba(59, 130, 246, 0.14);
}

.support-page.support-page--access-recovery .moderator-hero.support-page-hero,
.support-page.support-page--access-recovery .access-recovery-panel {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.support-page--access-recovery .access-recovery-panel {
  max-height: none;
  overflow: visible;
}

.access-recovery-list {
  gap: 12px;
}

.access-recovery-card {
  padding: 16px;
  align-items: start;
}

.page-glass .access-recovery-card {
  border-color: rgba(59, 130, 246, 0.14);
  background: var(--glass-bg-soft);
}

.page-glass .access-recovery-card.is-unread {
  border-color: var(--blue-border-strong);
  background: rgba(59, 130, 246, 0.08);
  box-shadow:
    inset 4px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.support-thread-card__topline .access-recovery-card__badge {
  border: 1px solid rgba(37, 99, 235, 0.20);
  background: var(--blue-dim);
  color: var(--blue-deep);
}

.support-group-create {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(59, 130, 246, 0.14);
  display: grid;
  gap: 12px;
}

.support-group-create__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-group-create__head h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.support-group-create__head > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.support-group-create__form {
  display: grid;
  gap: 12px;
}

.support-group-create__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.support-group-picker {
  position: relative;
}

.support-group-create__selected-buyer {
  margin-top: 8px;
}

.support-group-create__attached {
  min-height: 58px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px dashed rgba(59, 130, 246, 0.24);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.36);
}

.support-group-create__attached p {
  margin: 0;
}

.support-group-create__supplier-chip {
  max-width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto;
  grid-template-areas:
    "name remove"
    "meta remove";
  column-gap: 8px;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--body);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.support-group-create__supplier-chip span {
  grid-area: name;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.support-group-create__supplier-chip small {
  grid-area: meta;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.support-group-create__supplier-chip b {
  grid-area: remove;
  color: var(--blue-deep);
  font-size: 15px;
  line-height: 1;
}

.support-group-create__supplier-chip:hover {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(255, 255, 255, 0.92);
}

.access-recovery-card__contacts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
  max-width: 530px;
}

.access-recovery-contact {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 8px 20px rgba(15, 28, 80, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.access-recovery-contact span,
.access-recovery-contact strong {
  display: block;
}

.access-recovery-contact span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.access-recovery-contact__value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.access-recovery-contact strong {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.page-glass .site-main .access-recovery-copy,
.access-recovery-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue-deep);
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.access-recovery-copy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-glass .site-main .access-recovery-copy:hover,
.access-recovery-copy:hover {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  transform: translateY(-1px);
}

.page-glass .site-main .access-recovery-copy.is-copied,
.access-recovery-copy.is-copied {
  border-color: rgba(8, 127, 91, 0.28);
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
}

.access-recovery-card__meta {
  margin-top: 10px;
}

.access-recovery-card__meta span {
  padding: 5px 9px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  line-height: 1.25;
}

.access-recovery-card__message {
  width: fit-content;
  max-width: min(680px, 100%);
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--body);
  box-shadow:
    0 8px 20px rgba(15, 28, 80, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.access-recovery-card .access-recovery-card__message {
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.access-recovery-card__form {
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.44);
}

.access-recovery-card__form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.access-recovery-card__form button[type="submit"] {
  width: 100%;
  min-height: 38px;
}

.glass-select {
  position: relative;
  width: 100%;
}

.glass-select > summary {
  list-style: none;
}

.glass-select > summary::-webkit-details-marker {
  display: none;
}

.glass-select__trigger {
  min-height: 46px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast), background var(--tx-fast);
}

.glass-select__trigger:hover,
.glass-select[open] .glass-select__trigger {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.glass-select__trigger:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.glass-select__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--blue-deep);
  transition: transform var(--tx-fast);
}

.glass-select[open] .glass-select__chevron {
  transform: rotate(180deg);
}

.glass-select__menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 18px 38px rgba(15, 28, 80, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.glass-select__option {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  color: var(--body);
  font-size: 14px;
  font-weight: 650;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.glass-select__option:hover {
  color: var(--blue-deep);
  opacity: 1;
  filter: none;
}

.glass-select__option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.glass-select__option:hover,
.glass-select__option.is-selected {
  background: rgba(59, 130, 246, 0.10);
  color: var(--blue-deep);
}

.page-glass .site-main button.moderator-pavilion-assigned-card,
.page-glass .site-main button.moderator-pavilion-assigned-card:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy) {
  border-color: var(--blue-border);
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  color: var(--ink);
  box-shadow:
    0 12px 32px rgba(15, 28, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .site-main button.moderator-pavilion-assigned-card:hover,
.page-glass .site-main button.moderator-pavilion-assigned-card:focus-visible,
.page-glass .site-main button.moderator-pavilion-assigned-card:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy):hover {
  border-color: var(--blue-border-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-glass .site-main .moderator-pavilion-modal button,
.page-glass .site-main .moderator-pavilion-modal select {
  border-radius: var(--r-sm);
}

@media (min-width: 900px) {
  .support-thread-card.access-recovery-card:has(.access-recovery-card__form) {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 424px);
  }
}

.page-glass .support-compose-extra {
  border-color: rgba(59, 130, 246, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

.page-glass .support-attachment__icon {
  background: var(--blue-dim);
  color: var(--blue-deep);
}

@media (max-width: 980px) {
  .support-inbox-layout,
  .support-conversation-layout {
    grid-template-columns: 1fr;
  }

  .support-compose-panel {
    position: static;
  }

  .support-thread-panel,
  .support-thread-panel--side {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .support-conversation-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-conversation-hero__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .support-conversation-hero__actions .button {
    white-space: normal;
  }

  .support-thread-card,
  .support-pin-grid,
  .support-pin-summary {
    grid-template-columns: 1fr;
  }

  .support-message {
    max-width: 100%;
  }
}

/* fallback when backdrop-filter is unavailable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-bg-soft: rgba(255, 255, 255, 0.85);
  }
}

/* ═══════════════════════════════════════════════════════
   AUTH SHELL — navy backdrop + white card (mockup match)
   Layered on top of .page-glass; scoped to body.auth-shell.
   Covers every public auth page (login, signup, password
   reset flow, access recovery). All copy stays in templates
   via {% trans %}, so it follows the selected site language.
═══════════════════════════════════════════════════════ */

body.auth-shell {
  background: #0b1540 url("../images/auth-bg.dcd917cc2197.png") center center / cover no-repeat fixed;
}

/* topbar floats transparently over the navy backdrop */
.auth-shell .topbar {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-shell .topbar .brand,
.auth-shell .topbar .brand:hover {
  color: #fff;
}

.auth-shell .topbar .brand-text small {
  color: rgba(255, 255, 255, 0.62);
}

.auth-shell .topbar .button.secondary {
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.12);
  background-image: none;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-shell .topbar .button.secondary:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}

/* marketing column: light copy directly on navy (no panel) */
.auth-shell .auth-promo {
  padding: clamp(18px, 4vw, 56px) clamp(8px, 3vw, 40px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-shell .auth-kicker {
  color: var(--blue-soft);
}

.auth-shell .auth-intro h1,
.auth-shell .auth-promo__copy h1 {
  color: #fff;
}

.auth-shell .auth-intro p,
.auth-shell .auth-intro .muted,
.auth-shell .auth-promo__copy p {
  color: rgba(255, 255, 255, 0.72);
}

/* the card: solid white, rounded, lifted off the navy */
.auth-shell .site-main .auth-card {
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-shell .auth-card {
  padding: clamp(32px, 4vw, 52px);
}

.auth-shell .auth-card label,
.auth-shell .auth-signup-tabs__label {
  display: block;
  margin-bottom: 9px;
  color: #232a3d;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-shell .auth-card .field {
  margin-bottom: 20px;
}

/* inputs: soft grey fill, rounded, taller (matches mockup) */
.auth-shell .site-main input,
.auth-shell .site-main select,
.auth-shell .site-main textarea {
  min-height: 50px;
  border: 1px solid #E4E7F4;
  border-radius: 10px;
  background: #EEF0FA;
  padding: 13px 16px;
  font-size: 15px;
  color: #2a2f3e;
}

.auth-shell .site-main input::placeholder,
.auth-shell .site-main textarea::placeholder {
  color: #9aa0b8;
}

.auth-shell .site-main textarea {
  min-height: 104px;
}

.auth-shell .site-main .password-field input {
  padding-right: 52px;
}

.auth-shell .site-main input:focus,
.auth-shell .site-main select:focus,
.auth-shell .site-main textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* primary submit: solid blue, full-width pill-button.
   Mirrors the .page-glass primary selector + an extra class
   so it wins on specificity without !important. */
body.auth-shell .site-main .button:not(.secondary),
body.auth-shell .site-main button:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy):not(.link-button):not(.auth-signup-tabs__button) {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: #1f51e6;
  background-image: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px -12px rgba(31, 81, 230, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.auth-shell .site-main .button:not(.secondary):hover,
body.auth-shell .site-main button:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy):not(.link-button):not(.auth-signup-tabs__button):hover {
  background: #1846cf;
  color: #fff;
  opacity: 1;
}

/* role selector: pills pushed to the row edges (dark = selected) */
.auth-shell .auth-signup-tabs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-shell .auth-signup-tabs__button {
  position: relative;
  flex: 0 1 auto;
  width: auto;
  min-height: 50px;
  padding: 0 30px;
  border: 1.5px solid #D7DBE8;
  border-radius: var(--r-pill);
  background: #fff;
  color: #2a2f3e;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

.auth-shell .auth-signup-tabs__button:hover {
  border-color: #b9c0d8;
  background: #fff;
  color: #2a2f3e;
  opacity: 1;
}

.auth-shell .auth-signup-tabs__button.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, #3f4451 0%, #272b34 100%);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(20, 24, 40, 0.45);
}

.auth-shell .auth-signup-tabs__button.is-active::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #20232b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.auth-shell .auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-shell .auth-choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-shell .auth-choice-pill {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 12px;
  border: 1.5px solid #D7DBE8;
  border-radius: var(--r-pill);
  background: #fff;
  color: #2a2f3e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.auth-shell .auth-choice-pill span {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-shell .site-main .auth-choice-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  cursor: pointer;
}

.auth-shell .auth-choice-pill:hover {
  border-color: #b9c0d8;
}

.auth-shell .auth-choice-pill:has(input:focus-visible) {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-shell .auth-choice-pill:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(180deg, #3f4451 0%, #272b34 100%);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(20, 24, 40, 0.45);
}

.auth-shell .auth-choice-pill:has(input:checked:focus-visible) {
  box-shadow:
    0 8px 18px -6px rgba(20, 24, 40, 0.45),
    0 0 0 4px rgba(37, 99, 235, 0.16);
}

.auth-shell .auth-choice-pill:has(input:checked)::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #20232b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* footer links inside the card */
.auth-shell .auth-card__links {
  margin-top: 18px;
  justify-items: center;
  text-align: center;
}

.auth-shell .auth-card__foot {
  margin-top: 20px;
  margin-bottom: 0;
  text-align: center;
  color: #5b6172;
  font-size: 15px;
}

.auth-shell .auth-card__links a,
.auth-shell .auth-card__links .link-button,
.auth-shell .auth-card__foot a {
  color: #2156e8;
  font-weight: 600;
}

.auth-shell .auth-layout--switcher .auth-card {
  padding: clamp(26px, 3vw, 40px);
}

.auth-shell .auth-layout--switcher .auth-card h2 {
  font-size: 16px;
}

.auth-shell .auth-layout--switcher .auth-card p,
.auth-shell .auth-layout--switcher .auth-card .muted {
  font-size: 14px;
}

.auth-shell .auth-layout--switcher .auth-card label,
.auth-shell .auth-layout--switcher .auth-signup-tabs__label {
  margin-bottom: 7px;
  font-size: 14px;
}

.auth-shell .auth-layout--switcher .auth-card .field {
  margin-bottom: 16px;
}

.auth-shell .site-main .auth-layout--switcher input,
.auth-shell .site-main .auth-layout--switcher select,
.auth-shell .site-main .auth-layout--switcher textarea {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 14px;
}

.auth-shell .site-main .auth-layout--switcher .password-field input {
  padding-right: 48px;
}

body.auth-shell .site-main .auth-layout--switcher .button:not(.secondary),
body.auth-shell .site-main .auth-layout--switcher button:not(.secondary):not(.actions-menu__item):not(.status-chip):not(.supplier-list-logo__zoom):not(.password-field__toggle):not(.access-recovery-copy):not(.link-button):not(.auth-signup-tabs__button) {
  min-height: 50px;
  font-size: 15px;
}

.auth-shell .auth-layout--switcher .auth-signup-tabs {
  gap: 12px;
  margin-bottom: 18px;
}

.auth-shell .auth-layout--switcher .auth-signup-tabs__button {
  flex: 0 0 160px;
  width: 160px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
}

.auth-shell .auth-layout--switcher .auth-card .auth-choice-pill {
  display: flex;
  margin: 0;
}

.auth-shell .auth-layout--switcher .auth-card__links {
  margin-top: 14px;
}

.auth-shell .auth-layout--recovery {
  min-height: min(calc(100vh - 156px), 680px);
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
  align-items: start;
  padding-top: clamp(18px, 3vw, 42px);
}

.auth-shell .auth-layout--recovery .auth-card {
  width: min(100%, 460px);
  padding: clamp(28px, 3vw, 42px);
}

.auth-shell .auth-card--recovery .auth-kicker {
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .auth-shell .auth-layout--switcher .auth-signup-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .auth-shell .auth-layout--switcher .auth-signup-tabs__button {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13.5px;
  }

  .auth-shell .auth-choice-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* left column: HomeTech&Electra interactive-map promo */
.auth-shell .auth-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.auth-shell .auth-event__preview {
  width: 100%;
}

.auth-shell .auth-event__preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.38));
}

.auth-shell .auth-event__title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.auth-shell .auth-event__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.auth-shell .auth-event__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 500;
}

.auth-shell .auth-event__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.auth-shell .auth-event__cta {
  display: block;
  width: 100%;
  max-width: 380px;
  margin-top: 4px;
  padding: 15px 24px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2358e8 0%, #5b93ff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 32px -12px rgba(35, 88, 232, 0.65);
  transition: filter var(--tx-fast), transform var(--tx-fast);
}

.auth-shell .auth-event__cta:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
}

.auth-shell .auth-maintenance {
  min-height: min(calc(100vh - 156px), 640px);
  display: grid;
  place-items: center;
}

.auth-shell .auth-maintenance__card {
  width: min(100%, 520px);
  text-align: center;
}

.auth-shell .auth-maintenance__card h1 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* login: top-align columns so the map preview lines up with the form card */
.auth-shell .auth-layout--switcher {
  align-items: start;
}

@media (max-width: 820px) {
  .page-glass.buyer-catalog-body .topbar,
  .buyer-catalog-body .topbar {
    min-height: 60px;
    margin: 0;
    padding: 0 clamp(14px, 5vw, 22px);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0 0 24px 24px;
    background: #4169e8;
    background-image: linear-gradient(135deg, #3f68ea 0%, #456ee7 100%);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .buyer-catalog-body .buyer-mobile-menu-button {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .buyer-catalog-body .buyer-mobile-menu-button:hover,
  .buyer-catalog-body .buyer-mobile-menu-button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .buyer-catalog-body .buyer-mobile-menu-button svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.9;
  }

  .buyer-catalog-body .buyer-mobile-brand,
  .buyer-catalog-body .buyer-top-search,
  .buyer-catalog-body .topbar__actions .lang-switch {
    display: none;
  }

  .buyer-catalog-body .topbar__actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-left: 0;
  }

  .buyer-catalog-body .buyer-notification {
    display: block;
  }

  .buyer-catalog-body .buyer-notification__trigger {
    width: 38px;
    height: 38px;
    display: grid;
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .buyer-catalog-body .buyer-notification__trigger:hover,
  .buyer-catalog-body .buyer-notification[open] .buyer-notification__trigger,
  .buyer-catalog-body .buyer-notification__trigger:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .buyer-catalog-body .buyer-notification__trigger svg {
    width: 23px;
    height: 25px;
    stroke-width: 1.9;
  }

  .buyer-catalog-body .buyer-notification__badge {
    top: 4px;
    right: -2px;
    border: 2px solid #4169e8;
  }

  .buyer-catalog-body .buyer-notification__panel {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100dvh - 86px);
    border-radius: 20px;
  }

  .buyer-catalog-body .account-menu__trigger {
    width: 38px;
    height: 38px;
    border: 0;
    background: #fff;
    color: #4169e8;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
  }

  .buyer-catalog-body .account-menu__trigger:hover,
  .buyer-catalog-body .account-menu[open] .account-menu__trigger {
    background: #fff;
    color: #2f58d9;
  }

  .buyer-catalog-body .account-menu__dropdown {
    top: calc(100% + 10px);
    z-index: 340;
  }
}

@media (max-width: 420px) {
  .page-glass.buyer-catalog-body .topbar,
  .buyer-catalog-body .topbar {
    min-height: 56px;
    padding: 0 14px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .buyer-catalog-body .buyer-mobile-menu-button {
    width: 36px;
    height: 36px;
  }

  .buyer-catalog-body .buyer-mobile-menu-button svg {
    width: 22px;
    height: 22px;
  }

  .buyer-catalog-body .topbar__actions {
    gap: 12px;
  }

  .buyer-catalog-body .buyer-notification__trigger {
    width: 36px;
    height: 36px;
  }

  .buyer-catalog-body .buyer-notification__trigger svg {
    width: 22px;
    height: 24px;
  }

  .buyer-catalog-body .buyer-notification__panel {
    top: 64px;
    left: 10px;
    right: 10px;
  }

  .buyer-catalog-body .account-menu__trigger {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .account-settings-page--buyer .site-main {
    width: 100%;
    margin: 0;
    padding: 14px;
    display: grid;
    gap: 12px;
  }

  .account-settings-page--buyer .page-hero,
  .account-settings-page--buyer .account-settings-form {
    margin: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .account-settings-page--buyer .account-settings-layout {
    gap: 12px;
  }

  .account-settings-page--buyer .account-settings-form {
    gap: 16px;
  }

  .account-settings-page--buyer .account-settings-form__header {
    margin-bottom: 0;
  }
}
