/* ==========================================================================
   ECASB Design System v2 — "Signal Red / Graphite"
   Derived from the ecasb logo: signal red #FF5555, ink #262626, logo grey #8C8C8C.
   Motif: the red square of the logo's "e" (large block in hero, small square markers).
   RTL-first · IRANSans · CSP-safe (no inline styles).
   ========================================================================== */

@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-200.woff") format("woff"); font-weight: 200; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-900.woff") format("woff"); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font: "IRANSans", Tahoma, "Segoe UI", system-ui, sans-serif;

  /* Brand */
  --signal: #ff5555;          /* logo red — blocks, markers, decoration */
  --red: #d93640;             /* interactive red — buttons/links (AA with white) */
  --red-hover: #bf2a34;
  --red-50: #fff1f1;
  --red-100: #ffe0e0;
  --red-200: #ffc2c2;

  /* Neutrals (cool, from logo ink/grey) */
  --ink: #262626;
  --graphite: #1e1f23;
  --graphite-2: #2a2c31;
  --text: #33353b;
  --muted: #6b6e76;
  --subtle: #8c8c8c;
  --line: #e7e7ea;
  --line-strong: #d6d7db;
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f3f3f5;

  /* Functional */
  --success: #13875b; --success-50: #e9f7f0; --success-100: #c9ecdb;
  --warn: #b26a00; --warn-50: #fff6e5; --warn-100: #ffe7bd;
  --info: #3b5bcc; --info-50: #eef1fc;
  --violet: #6d4bd1; --violet-50: #f2eefc;

  /* Compatibility aliases used across views */
  --brand-50: var(--red-50); --brand-100: var(--red-100); --brand-200: var(--red-200);
  --brand-400: var(--signal); --brand-500: var(--signal); --brand-600: var(--red); --brand-700: var(--red-hover);

  --r-xs: 4px; --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgb(20 20 25 / .06);
  --shadow: 0 10px 30px -12px rgb(20 20 25 / .18);
  --shadow-lg: 0 30px 60px -20px rgb(20 20 25 / .35);
  --ring: 0 0 0 3px rgb(255 85 85 / .28);

  --container: 1240px;
  --header-h: 72px;
  --sidebar-w: 264px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f2f2f3; --text: #d9dadd; --muted: #a3a5ab; --subtle: #80838a;
  --line: #2b2d33; --line-strong: #383a41;
  --bg: #141518; --surface: #1b1c20; --surface-2: #222328;
  --red-50: #2e1719; --red-100: #3d1c1f; --red-200: #5c2328;
  --success-50: #0f2a20; --success-100: #164030; --warn-50: #2c2210; --warn-100: #44330f; --info-50: #1a2140; --violet-50: #221a3a;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.9; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.45; }
h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 900; }
h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 900; }
h3 { font-size: 1.06rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--signal); color: #fff; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-sm { width: .95em; height: .95em; }
.icon-lg { width: 1.45em; height: 1.45em; }
.icon-xl { width: 2rem; height: 2rem; }

/* The logo square — the system's one recurring mark */
.sq { display: inline-block; width: .62em; height: .62em; background: var(--signal); flex: none; border-radius: 1px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-sm { padding-block: 2.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { display: flex; align-items: center; gap: .65rem; margin: 0; }
.section-head h2::before { content: ""; width: .55em; height: .55em; background: var(--signal); flex: none; }
.section-head p { color: var(--muted); margin: .35rem 0 0; max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: .5rem; }
.eyebrow .icon { color: var(--red); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; align-items: center; gap: .75rem; }
.row-wrap { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.bg-surface { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 38px; width: auto; }
.logo .on-dark { display: none; }
[data-theme="dark"] .logo .on-light, .on-dark-scope .logo .on-light { display: none; }
[data-theme="dark"] .logo .on-dark, .on-dark-scope .logo .on-dark { display: block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .site-header { background: rgb(27 28 32 / .9); }
.topbar { background: var(--graphite); color: #fff; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.topbar a, .topbar button, .topbar summary, .topbar .btn { color: #fff; opacity: 1; }
.topbar a:hover { color: #fff; }
.topbar .row { gap: 1.25rem; }
.topbar .icon { color: var(--signal); }

/* SweetAlert is always a viewport modal. Feature layouts must never place it after their footer. */
.swal2-container { position: fixed !important; inset: 0 !important; z-index: 10000 !important; display: grid !important; place-items: center; padding: 1rem; overflow-y: auto; background: rgb(15 23 42 / .55); }
.swal2-container.swal2-backdrop-hide { background: transparent; }
.swal2-popup { position: relative; display: none; width: min(32rem, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgb(15 23 42 / .25); direction: inherit; text-align: center; }
.swal2-popup.swal2-show { display: grid; justify-items: center; animation: swal-in .18s ease-out; }
.swal2-title { margin: .5rem 0; color: var(--ink); font-size: 1.25rem; }
.swal2-html-container { margin: .5rem 0; color: var(--muted); line-height: 1.8; }
.swal2-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1.25rem; }
.swal2-actions button { min-width: 6.5rem; min-height: 2.7rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-weight: 700; cursor: pointer; }
.swal2-confirm { border-color: var(--red) !important; background: var(--red); color: #fff; }
.swal2-cancel { background: var(--surface-2); color: var(--ink); }
.swal2-deny { border-color: var(--red) !important; background: var(--red); color: #fff; }
.swal2-icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin: .25rem auto .75rem; border: 3px solid currentColor; border-radius: 50%; font-size: 2rem; line-height: 1; }
.swal2-icon-content { display: block; }
.swal2-icon.swal2-warning, .swal2-icon.swal2-question { color: var(--warn); }
.swal2-icon.swal2-error { color: var(--red); }
.swal2-icon.swal2-success { color: var(--success); }
.swal2-icon.swal2-info { color: var(--info); }
.swal2-close { position: absolute; inset-block-start: .65rem; inset-inline-end: .65rem; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
body.swal2-shown { overflow: hidden; }
@keyframes swal-in { from { opacity: 0; transform: translateY(.5rem) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .swal2-popup.swal2-show { animation: none; } }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.75rem; }
.main-nav { display: flex; gap: .15rem; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .92rem; padding: .5rem .75rem; position: relative; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 700; }
.main-nav a.active::after { content: ""; position: absolute; inset-inline: .75rem; bottom: -2px; height: 3px; background: var(--signal); }
.header-search { flex: 1; max-width: 440px; position: relative; }
.header-search input { width: 100%; height: 44px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface-2); padding-inline: 2.6rem 1rem; font: inherit; font-size: .9rem; color: var(--text); transition: border-color .2s, background .2s; }
.header-search input:focus { background: var(--surface); border-color: var(--signal); box-shadow: var(--ring); outline: none; }
.header-search > .icon { position: absolute; inset-inline-start: .9rem; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.btn.menu-toggle { display: none; }
.mobile-nav { display: none; }
.mobile-header-search, .mobile-locale-bar, .mobile-app-nav { display: none; }

.suggest-wrap { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .35rem; z-index: 50; }
.suggest a { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--r-sm); color: var(--text); font-size: .9rem; }
.suggest a:hover { background: var(--red-50); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding-inline: 1.15rem; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-accent { background: var(--signal); color: #fff; }
.btn-accent:hover { background: var(--red); color: #fff; }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-dark:hover { background: #000; color: #fff; }
[data-theme="dark"] .btn-dark { background: #f2f2f3; color: #111; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-soft { background: var(--red-50); color: var(--red); }
.btn-soft:hover { background: var(--red-100); color: var(--red-hover); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0e6b48; color: #fff; }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red-200); }
.btn-danger:hover { background: var(--red-50); color: var(--red-hover); }
.btn-glass { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); }
.btn-glass:hover { background: rgb(255 255 255 / .1); color: #fff; }
.btn-sm { height: 34px; padding-inline: .8rem; font-size: .82rem; }
.btn-lg { height: 52px; padding-inline: 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .label { font-weight: 700; font-size: .85rem; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: var(--r-sm); padding: .55rem .85rem; font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.9; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: left .75rem center; background-size: 16px; background-repeat: no-repeat; padding-inline-start: 2.2rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--signal); box-shadow: var(--ring); outline: none; }
.input-sm { min-height: 36px; padding: .35rem .65rem; font-size: .85rem; }
.input.ltr, input[type=email], input[type=password] { direction: ltr; text-align: right; }
.input-group { position: relative; }
.input-group > .icon { position: absolute; inset-inline-start: .85rem; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-group .input { padding-inline-start: 2.5rem; }
.input-addon { display: flex; }
.input-addon .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-addon span { display: grid; place-items: center; padding-inline: .8rem; border: 1px solid var(--line-strong); border-inline-start: 0; border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-size: .82rem; white-space: nowrap; }
.check { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .9rem; user-select: none; }
.check input, .chip input { width: 17px; height: 17px; accent-color: var(--red); }
.field-validation-error, .text-danger { color: var(--red); font-size: .8rem; }
.input-validation-error { border-color: var(--red) !important; }
.form-grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); margin-top: .5rem; }
.choice-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.choice-card { position: relative; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 1rem; cursor: pointer; display: flex; gap: .75rem; align-items: start; background: var(--surface); transition: border-color .15s; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card:has(input:checked) { border-color: var(--signal); box-shadow: inset 4px 0 0 var(--signal); }
.choice-card .ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; }
.choice-card:has(input:checked) .ic { background: var(--signal); color: #fff; }
.choice-card b { display: block; color: var(--ink); }
.choice-card small { color: var(--muted); font-size: .8rem; line-height: 1.7; display: block; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 1.5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .45rem; }
.card-head p { margin: 0; color: var(--muted); font-size: .8rem; }
.card-body { padding: 1.5rem; }
.card-foot { padding: .9rem 1.5rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.card-link { transition: border-color .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; height: 24px; padding-inline: .55rem; border-radius: var(--r-xs); font-size: .74rem; font-weight: 500; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge .icon { width: .9rem; height: .9rem; }
.badge-brand { background: var(--red-50); color: var(--red); border-color: var(--red-100); }
.badge-success { background: var(--success-50); color: var(--success); border-color: var(--success-100); }
.badge-accent, .badge-warn { background: var(--warn-50); color: var(--warn); border-color: var(--warn-100); }
.badge-danger { background: var(--red-50); color: var(--red); border-color: var(--red-200); }
.badge-violet { background: var(--violet-50); color: var(--violet); border-color: transparent; }
.badge-info { background: var(--info-50); color: var(--info); border-color: transparent; }
.badge-dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.badge-gold { background: #f5c451; color: #3d2a00; border-color: #e6b03c; }
.verified { color: var(--success); display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .8rem; }

/* ---------- Avatars (monogram tiles) ---------- */
.avatar { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 900; color: #fff; flex: none; font-size: 1.05rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .82rem; border-radius: var(--r-xs); }
.avatar-lg { width: 76px; height: 76px; font-size: 1.8rem; border-radius: var(--r); }
.av-0 { background: #262626; } .av-1 { background: #d93640; } .av-2 { background: #4a4d55; } .av-3 { background: #8a2d33; }
.av-4 { background: #13875b; } .av-5 { background: #3b5bcc; } .av-6 { background: #b26a00; } .av-7 { background: #6d4bd1; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.hero-kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.32; font-weight: 900; color: var(--ink); margin-bottom: 1.1rem; letter-spacing: -.01em; }
.hero .lead { font-size: 1.08rem; font-weight: 300; color: var(--muted); max-width: 54ch; margin-bottom: 1.9rem; line-height: 2; }
.hero-search { display: flex; gap: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); max-width: 640px; overflow: visible; }
.hero-search .select { width: 170px; border: 0; border-inline-end: 1px solid var(--line); border-radius: 0; background-color: transparent; min-height: 54px; }
.hero-search .input { border: 0; min-height: 54px; font-size: 1rem; background: transparent; border-radius: 0; }
.hero-search .input:focus, .hero-search .select:focus { box-shadow: none; }
.hero-search .btn { height: auto; margin: 5px; border-radius: var(--r-sm); }
.hero-search:focus-within { border-color: var(--signal); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; font-size: .84rem; align-items: center; color: var(--muted); }
.hero-tags a { color: var(--text); border-bottom: 1px dashed var(--line-strong); padding-inline: .2rem; }
.hero-tags a:hover { color: var(--red); border-color: var(--red); }
.hero-proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.25rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-proof b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1.3; }
.hero-proof span { font-size: .82rem; color: var(--muted); }

/* Hero visual: the logo's red square, enlarged, holding a live comparison */
.hero-visual { position: relative; min-height: 470px; }
.hero-block { position: absolute; inset-block: 0; inset-inline-start: 12%; inset-inline-end: -40%; background: var(--signal); border-radius: 0; }
.hero-block::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .12) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .12) 1px, transparent 1px); background-size: 32px 32px; }
.mock { position: relative; z-index: 1; margin-top: 48px; width: min(100%, 470px); background: var(--surface); color: var(--text); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.25rem; border: 1px solid var(--line); }
.mock-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.mock-head b { font-size: .98rem; color: var(--ink); }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; padding: .7rem .8rem; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: .5rem; font-size: .84rem; }
.mock-row.best { border-color: var(--success); box-shadow: inset -4px 0 0 var(--success); }
.mock-row .name { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); }
.mock-row .price { font-weight: 900; color: var(--ink); }
.mock-foot { display: flex; gap: .5rem; margin-top: .9rem; }
.mock-chat { position: relative; z-index: 1; margin-top: -18px; margin-inline-start: auto; width: min(80%, 330px); background: var(--graphite); color: #e6e6e8; border-radius: var(--r); padding: .85rem 1rem; font-size: .82rem; box-shadow: var(--shadow-lg); }
.mock-chat .who { color: #9a9ca3; font-size: .72rem; }
.mock-chat .offer { display: flex; justify-content: space-between; margin-top: .45rem; padding-top: .45rem; border-top: 1px solid #3a3c43; font-weight: 700; }
.mock-chat .offer span:last-child { color: var(--signal); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--graphite); color: #b7b9bf; }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 0; }
.trust-item { display: flex; gap: .8rem; align-items: center; padding: 1.3rem 1.25rem; border-inline-start: 1px solid #33353b; }
.trust-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trust-item .ic { color: var(--signal); flex: none; }
.trust-item b { display: block; color: #fff; font-size: .92rem; font-weight: 700; }
.trust-item span { font-size: .8rem; }

/* ---------- Categories: index list, not cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); background: var(--surface); }
.cat-tile { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.25rem; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); color: var(--text); position: relative; transition: background .15s; }
.cat-tile .ic { color: var(--ink); }
.cat-tile b { color: var(--ink); font-size: .98rem; }
.cat-tile span { font-size: .78rem; color: var(--muted); }
.cat-tile::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 0; height: 3px; background: var(--signal); transition: width .25s var(--ease); }
.cat-tile:hover { background: var(--red-50); color: var(--text); }
.cat-tile:hover::before { width: 100%; }
.cat-tile:hover .ic { color: var(--red); }

/* ---------- Process flow (a real sequence) ---------- */
.flow { display: grid; grid-template-columns: repeat(8, 1fr); counter-reset: step; border-top: 2px solid var(--ink); }
.flow-step { position: relative; padding: 1.1rem .9rem 0 .5rem; border-inline-start: 1px solid var(--line); }
.flow-step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.flow-step::before { counter-increment: step; content: counter(step, persian); display: block; font-size: 1.9rem; font-weight: 900; color: var(--line-strong); line-height: 1; margin-bottom: .7rem; }
.flow-step:hover::before { color: var(--signal); }
.flow-step .ic { display: none; }
.flow-step b { display: block; font-size: .92rem; color: var(--ink); }
.flow-step span { font-size: .78rem; color: var(--muted); display: block; line-height: 1.7; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 1rem; }
.bento .card { padding: 1.5rem; display: flex; flex-direction: column; gap: .45rem; position: relative; overflow: hidden; }
.bento .card p { color: var(--muted); font-size: .88rem; margin: 0; }
.bento .ic { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: .5rem; border-radius: var(--r-sm); }
.bento .wide { grid-column: span 2; }
.bento .tall { grid-row: span 2; }
.bento .dark { background: var(--graphite); color: #b7b9bf; border: 0; }
.bento .dark h3 { color: #fff; font-size: 1.25rem; } .bento .dark p { color: #a7a9b0; }
.tone-brand { background: var(--red-50); color: var(--red); } .tone-accent { background: var(--warn-50); color: var(--warn); }
.tone-success { background: var(--success-50); color: var(--success); } .tone-violet { background: var(--violet-50); color: var(--violet); }
.tone-danger { background: var(--red-50); color: var(--red); } .tone-glass { background: var(--signal); color: #fff; }
.match-demo { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; padding-top: 1rem; }
.match-line { display: flex; align-items: center; gap: .6rem; font-size: .8rem; background: var(--graphite-2); border-radius: var(--r-sm); padding: .5rem .65rem; }
.match-line b { color: #fff; } .match-line .score { margin-inline-start: auto; color: var(--signal); font-weight: 900; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--text); position: relative; }
.p-media { aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.p-media > .icon { width: 56px; height: 56px; stroke-width: 1.3; transition: color .2s, transform .3s var(--ease); }
.p-card:hover .p-media > .icon { color: var(--red); transform: scale(1.08); }
.p-media::before { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 34px; height: 4px; background: var(--signal); }
.pm-0, .pm-1, .pm-2, .pm-3, .pm-4, .pm-5 { }
.p-flags { position: absolute; top: .65rem; inset-inline-start: .65rem; display: flex; gap: .3rem; z-index: 1; flex-wrap: wrap; }
.p-flags .icon { width: .9rem; height: .9rem; }
.p-body { padding: 1rem 1.1rem 1.05rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.p-cat { font-size: .74rem; color: var(--muted); }
.p-title { font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; margin: 0; }
.p-price { margin-top: .3rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.p-price b { font-size: 1.1rem; color: var(--ink); font-weight: 900; }
.p-price span { font-size: .76rem; color: var(--muted); }
.p-meta { font-size: .76rem; color: var(--muted); display: flex; gap: .75rem; flex-wrap: wrap; }
.p-meta span { display: inline-flex; gap: .25rem; align-items: center; }
.p-supplier { display: flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.p-supplier b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsored-tag { position: absolute; top: .65rem; inset-inline-end: .65rem; z-index: 1; }

/* ---------- Supplier card ---------- */
.s-card { padding: 1.35rem; display: flex; flex-direction: column; gap: .85rem; color: var(--text); }
.s-card .top { display: flex; gap: .85rem; align-items: center; }
.s-card h3 { margin: 0; font-size: 1rem; }
.s-card .tagline { color: var(--muted); font-size: .85rem; margin: 0; }
.s-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.s-stats > div { padding: .55rem .25rem; }
.s-stats > div + div { border-inline-start: 1px solid var(--line); }
.s-stats b { display: block; color: var(--ink); font-size: .95rem; font-weight: 900; }
.s-stats b.stars { display: flex; justify-content: center; }
.s-stats span { font-size: .72rem; color: var(--muted); }
.stars { color: var(--ink); display: inline-flex; align-items: center; gap: .25rem; font-weight: 900; }
.stars .icon { color: #f2a900; fill: #f2a900; }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.split .card { padding: 2.25rem; border: 0; border-radius: 0; }
.split .card.supplier { background: var(--graphite); color: #b7b9bf; }
.split .card.supplier h2 { color: #fff; }
.split .card.supplier .eyebrow { color: #9a9ca3; }
.split .card.supplier .check-list .icon { color: var(--signal); }
.split .card.supplier .btn-dark { background: var(--signal); color: #fff; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; align-items: start; font-size: .92rem; }
.check-list .icon { color: var(--success); margin-top: .35rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--signal); border-radius: var(--r); padding: clamp(2rem, 4vw, 3rem); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; background-image: linear-gradient(rgb(255 255 255 / .16) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .16) 1px, transparent 1px); background-size: 28px 28px; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .88); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn-accent { background: var(--graphite); }
.cta-band .btn-accent:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #a7a9b0; padding-top: 3.5rem; margin-top: 4rem; font-size: .88rem; border-top: 4px solid var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #c9cace; }
.site-footer a:hover { color: #fff; }
.site-footer .badge-dark { background: transparent; color: #c9cace; border-color: #3a3c43; }
.footer-bottom { border-top: 1px solid #33353b; margin-top: 3rem; padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }

/* ---------- Page head / catalog ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 1.6rem 1.4rem; }
.page-head h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { display: flex; gap: .35rem; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--red); }
.crumbs .icon { width: .8rem; height: .8rem; }
.catalog { display: grid; grid-template-columns: 272px 1fr; gap: 1.5rem; align-items: start; padding-block: 1.75rem; }
.catalog > *, .rfq-layout > *, .pd > *, .dash-grid > *, .store-layout > * { min-width: 0; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); }
.filters .card-body { display: flex; flex-direction: column; gap: 1.25rem; }
details.filter-box > summary { list-style: none; cursor: pointer; }
details.filter-box > summary::-webkit-details-marker { display: none; }
.filter-group h4 { font-size: .85rem; margin-bottom: .5rem; }
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; max-height: 320px; overflow: auto; }
.cat-list a { display: flex; justify-content: space-between; padding: .35rem .6rem; border-inline-start: 2px solid transparent; color: var(--text); font-size: .86rem; }
.cat-list a:hover { background: var(--surface-2); }
.cat-list a.active { border-inline-start-color: var(--signal); background: var(--red-50); color: var(--ink); font-weight: 700; }
.cat-list a span { color: var(--subtle); font-size: .78rem; }
.cat-list ul { list-style: none; padding-inline-start: .75rem; margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .88rem; }
.toolbar .count b { color: var(--ink); }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; height: 32px; padding-inline: .75rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-strong); font-size: .82rem; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.sponsored-block { border: 1px solid var(--line); border-inline-start: 4px solid var(--signal); background: var(--surface); border-radius: var(--r); padding: 1rem; margin-bottom: 1.25rem; }
.sponsored-block .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .8rem; color: var(--muted); gap: 1rem; flex-wrap: wrap; }
.sponsored-block .head > span:first-child { color: var(--ink); font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty .ic { width: 64px; height: 64px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; margin: 0 auto 1rem; border-radius: var(--r); position: relative; }
.empty .ic::after { content: ""; position: absolute; top: -5px; inset-inline-end: -5px; width: 14px; height: 14px; background: var(--signal); }
.empty h3 { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: .3rem; margin-top: 2rem; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; padding-block: .25rem; }
.pager > * { flex: 0 0 auto; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: .88rem; padding-inline: .6rem; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1.05fr 340px; gap: 1.5rem; padding-block: 1.75rem; align-items: start; }
.pd-gallery { aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.pd-gallery > .icon { width: 130px; height: 130px; stroke-width: 1; }
.pd-gallery::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 22%; height: 22%; background: var(--signal); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .6rem; }
.pd-thumbs div { aspect-ratio: 1; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.pd-thumbs div.on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); }
.pd-info h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.pd-info .en { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; direction: ltr; text-align: right; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; margin-block: 1rem; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.tier { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .8rem; transition: border-color .15s, box-shadow .15s; }
.tier.on { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--signal); }
.tier small { display: block; color: var(--muted); font-size: .74rem; }
.tier b { color: var(--ink); font-size: 1rem; font-weight: 900; }
.calc { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.calc .input { width: 140px; }
.calc output { font-weight: 900; color: var(--ink); font-size: 1.1rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .88rem; }
.specs th, .specs td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: start; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.fact { display: flex; gap: .65rem; align-items: center; padding: .85rem 1rem; font-size: .84rem; }
.fact:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.fact .icon { color: var(--red); }
.fact b { display: block; color: var(--ink); font-size: .9rem; }
.fact span { color: var(--muted); font-size: .74rem; }
.buy-box { position: sticky; top: calc(var(--header-h) + 1rem); }
.buy-box .card-body { display: flex; flex-direction: column; gap: .75rem; }
.buy-box > .card { border-top: 4px solid var(--signal); }
.notice { display: flex; gap: .65rem; align-items: start; padding: .8rem 1rem; border-radius: var(--r-sm); font-size: .85rem; line-height: 1.8; border: 1px solid transparent; }
.notice .icon { margin-top: .3rem; }
.notice-info { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.notice-warn { background: var(--warn-50); color: var(--warn); }
.notice-success { background: var(--success-50); color: var(--success); }
.notice-danger { background: var(--red-50); color: var(--red); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; padding-inline: .75rem; }
.tabs a, .tabs button { padding: .8rem .9rem; font: inherit; font-weight: 500; font-size: .9rem; color: var(--muted); border: 0; background: none; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs .on { color: var(--ink); font-weight: 700; border-bottom-color: var(--signal); }
.prose { font-size: .95rem; line-height: 2.05; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 .9rem; }
.prose h3 { margin: 1.6rem 0 .6rem; font-size: 1.06rem; font-weight: 800; color: var(--ink); }
.prose ul { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.prose li { margin-bottom: .3rem; }
.prose li::marker { color: var(--signal); }

/* ---------- Store ---------- */
.store-hero { background: var(--graphite); color: #b7b9bf; padding-block: 2rem 4.5rem; position: relative; overflow: hidden; }
.store-hero::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 30%; background: var(--signal); }
.store-hero .container { position: relative; z-index: 1; }
.store-hero .crumbs a, .store-hero .crumbs { color: #a7a9b0; }
.store-card { margin-top: -3rem; position: relative; z-index: 2; }
.store-card .card { box-shadow: var(--shadow); }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); }
.kv div { padding: 1rem 1.1rem; }
.kv div + div { border-inline-start: 1px solid var(--line); }
.kv b { display: block; color: var(--ink); font-size: 1.15rem; font-weight: 900; }
.kv b.stars { display: flex; }
.kv span { color: var(--muted); font-size: .78rem; }
.store-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; }
.store-layout > .card { position: sticky; top: calc(var(--header-h) + 1rem); }

/* ---------- RFQ form ---------- */
.rfq-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; padding-block: 1.75rem; }
.items-table { width: 100%; border-collapse: separate; border-spacing: 0 .5rem; }
.items-table th { font-size: .78rem; color: var(--muted); font-weight: 500; text-align: start; padding-inline: .4rem; }
.items-table td { padding: 0 .25rem; vertical-align: top; }
.items-table td:first-child { width: 28%; } .items-table td.qty, .items-table td.unit { width: 14%; } .items-table td.act { width: 46px; }
.steps { display: flex; gap: .5rem; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.steps span b { width: 26px; height: 26px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); font-size: .78rem; border-radius: var(--r-xs); }
.steps span.on { color: var(--ink); font-weight: 700; } .steps span.on b { background: var(--signal); border-color: var(--signal); color: #fff; }
.steps .sep { width: 28px; height: 1px; background: var(--line-strong); align-self: center; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--graphite); color: #b7b9bf; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; bottom: 0; inset-inline-end: 0; width: 46%; height: 46%; background: var(--signal); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-side .check-list .icon { color: var(--signal); }
.auth-main { display: grid; place-items: center; padding: 2rem; background: var(--surface); }
.auth-box { width: min(100%, 440px); }
.auth-box h1 { font-size: 1.7rem; }
.demo-accounts { margin-top: 1.5rem; padding: 1rem; border-radius: var(--r-sm); background: var(--surface-2); border-inline-start: 4px solid var(--signal); font-size: .82rem; }
.demo-accounts code { direction: ltr; unicode-bidi: isolate; background: var(--surface); padding: .1rem .4rem; border-radius: var(--r-xs); border: 1px solid var(--line); }

/* ==========================================================================
   Panel
   ========================================================================== */
.panel { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; overflow-x: clip; }
.sidebar { background: var(--graphite); color: #b7b9bf; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3c43 transparent; }
.sidebar .brand { padding: 1.15rem 1.25rem; border-bottom: 1px solid #2f3137; }
.sidebar .logo img { height: 34px; }
.role-switch { margin: 1rem 1rem .25rem; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #16171a; border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.role-switch a { text-align: center; font-size: .8rem; font-weight: 700; color: #9a9ca3; padding: .4rem; border-radius: var(--r-xs); }
.role-switch a.on { background: var(--signal); color: #fff; }
.nav-group { padding: 1rem .75rem .25rem; }
.nav-group > small { display: block; padding-inline: .75rem; font-size: .72rem; font-weight: 500; color: #74767d; margin-bottom: .3rem; }
.nav-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--r-sm); color: #c9cace; font-weight: 500; font-size: .9rem; position: relative; }
.nav-link .icon { color: #85878e; }
.nav-link:hover { background: #26282d; color: #fff; }
.nav-link.on { background: #2a2c31; color: #fff; font-weight: 700; }
.nav-link.on::before { content: ""; position: absolute; inset-inline-start: -.75rem; top: 6px; bottom: 6px; width: 4px; background: var(--signal); }
.nav-link.on .icon { color: var(--signal); }
.nav-link .count { margin-inline-start: auto; background: var(--signal); color: #fff; font-size: .7rem; font-weight: 700; border-radius: var(--r-xs); padding: 0 .4rem; min-width: 20px; text-align: center; line-height: 1.6; }
.sidebar-foot { margin-top: auto; padding: 1rem; }
.upgrade { background: #26282d; border-radius: var(--r); padding: 1rem; font-size: .8rem; color: #a7a9b0; border-top: 3px solid var(--signal); }
.upgrade b { color: #fff; display: block; margin-bottom: .25rem; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.panel-top { height: 64px; display: flex; align-items: center; gap: 1rem; padding-inline: 1.75rem; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; }
.panel-top .search { flex: 1; max-width: 380px; }
.panel-top .header-search input { height: 40px; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .3rem .25rem .75rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.user-chip b { font-size: .84rem; color: var(--ink); display: block; line-height: 1.4; }
.user-chip small { font-size: .72rem; color: var(--muted); display: block; line-height: 1.4; }
.panel-content { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; max-width: 1400px; width: 100%; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.panel-head h1 { font-size: 1.5rem; margin: 0; }
.panel-head p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.kpis > .card { border: 0; border-radius: 0; background: transparent; }
.kpis > .card + .card { border-inline-start: 1px solid var(--line); }
.kpi { padding: 1.25rem 1.35rem; display: flex; gap: 1rem; align-items: start; }
.kpi .ic { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.kpi.t-brand .ic { background: var(--red-50); color: var(--red); } .kpi.t-accent .ic { background: var(--warn-50); color: var(--warn); } .kpi.t-success .ic { background: var(--success-50); color: var(--success); }
.kpi small { color: var(--muted); font-size: .8rem; display: block; }
.kpi b { font-size: 1.65rem; color: var(--ink); font-weight: 900; line-height: 1.35; display: block; }
.kpi span { font-size: .74rem; color: var(--subtle); }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: start; font-size: .76rem; color: var(--muted); font-weight: 500; padding: .7rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .title { font-weight: 700; color: var(--ink); }
.table a.title:hover { color: var(--red); }
.table .sub { color: var(--muted); font-size: .76rem; display: block; }
.bar-chart { display: flex; align-items: end; gap: .6rem; height: 150px; padding: 1rem 1.25rem; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: end; }
.bar-chart .bar i { width: 100%; max-width: 30px; background: var(--line-strong); min-height: 3px; }
.bar-chart .bar:last-child i { background: var(--signal); }
.bar-chart .bar small { font-size: .64rem; color: var(--subtle); white-space: nowrap; }
.bar-chart .bar b { font-size: .72rem; color: var(--text); }
.progress { height: 6px; background: var(--surface-2); overflow: hidden; border-radius: 99px; }
.progress i { display: block; height: 100%; background: var(--signal); border-radius: inherit; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 1.75rem; padding-bottom: 1rem; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; width: 14px; height: 14px; background: var(--surface); border: 3px solid var(--line-strong); }
.timeline li:first-child::before { background: var(--signal); border-color: var(--signal); }
.timeline small { color: var(--muted); display: block; }
.status-track { display: flex; }
.status-track div { flex: 1; text-align: center; position: relative; font-size: .76rem; color: var(--subtle); padding-top: 30px; }
.status-track div::before { content: ""; position: absolute; top: 6px; inset-inline-start: calc(50% - 8px); width: 16px; height: 16px; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.status-track div::after { content: ""; position: absolute; top: 13px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.status-track div:first-child::after { display: none; }
.status-track div.done { color: var(--success); font-weight: 700; }
.status-track div.done::before { background: var(--success); border-color: var(--success); }
.status-track div.done::after { background: var(--success); }
.status-track div.now { color: var(--ink); font-weight: 900; }
.status-track div.now::before { background: var(--signal); border-color: var(--signal); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.checklist li { display: flex; gap: .6rem; align-items: center; font-size: .86rem; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--surface-2); }
.checklist .icon { color: var(--red); }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--text); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); color: var(--text); }
.list-item .meta { font-size: .76rem; color: var(--muted); }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.compare th, .compare td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.compare thead th { background: var(--surface-2); }
.compare .col-head { min-width: 200px; }
.compare .col-head b { display: block; color: var(--ink); }
.compare .best { background: var(--success-50); }
.compare thead .best { box-shadow: inset 0 3px 0 var(--success); }
.compare .low { color: var(--success); font-weight: 900; }
.compare .missing { color: var(--red); font-size: .78rem; display: inline-flex; gap: .25rem; align-items: center; }
.compare tfoot td { background: var(--surface-2); font-weight: 700; }
.compare-note { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.match-reasons { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.match-reasons li { font-size: .72rem; background: var(--surface-2); padding: .05rem .5rem; border-radius: var(--r-xs); color: var(--muted); }
.score-ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .84rem; color: var(--ink); background: conic-gradient(var(--signal) var(--p, 0%), var(--surface-2) 0); position: relative; flex: none; }
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; }

/* Flash & dialogs */
.flash { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2.5rem)); }
.toast { display: flex; gap: .7rem; align-items: start; background: var(--graphite); color: #fff; padding: .85rem 1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); font-size: .88rem; border-inline-start: 4px solid var(--success); animation: toast-in .3s var(--ease); }
.toast.err { border-inline-start-color: var(--signal); }
.toast.ok .icon { color: #4fd39b; } .toast.err .icon { color: var(--signal); }
.toast button { margin-inline-start: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.toast.hide { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
dialog.modal { border: 0; border-radius: var(--r); padding: 0; width: min(520px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); border-top: 4px solid var(--signal); }
dialog.modal::backdrop { background: rgb(20 20 25 / .55); }
details.dropdown { position: relative; }
details.dropdown > summary { list-style: none; cursor: pointer; }
details.dropdown > summary::-webkit-details-marker { display: none; }
details.dropdown .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .35rem; z-index: 60; }
details.dropdown .menu a, details.dropdown .menu button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: .88rem; background: none; border: 0; cursor: pointer; text-align: start; }
details.dropdown .menu a:hover, details.dropdown .menu button:hover { background: var(--surface-2); color: var(--ink); }

/* Pricing */
.plan { position: relative; }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan.featured::before { content: ""; position: absolute; top: -2px; inset-inline: -2px; height: 5px; background: var(--signal); }
.plan-flag { position: absolute; top: -12px; inset-inline-end: 1.25rem; }
.plan-price { font-size: 1.6rem; font-weight: 900; color: var(--ink); }
.trust-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: .75rem; }
details > summary { cursor: pointer; }

/* ==========================================================================
   Messaging & negotiation
   ========================================================================== */
.chat { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 64px - 3.5rem); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.chat-list { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.chat-list-head h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.chat-items { overflow-y: auto; flex: 1; }
.chat-item { display: flex; gap: .7rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--text); position: relative; }
.chat-item:hover { background: var(--surface-2); color: var(--text); }
.chat-item.on { background: var(--red-50); }
.chat-item.on::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--signal); }
.chat-item .t { display: flex; justify-content: space-between; gap: .5rem; }
.chat-item b { color: var(--ink); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item time { font-size: .7rem; color: var(--subtle); white-space: nowrap; }
.chat-item p { margin: 0; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .subj { font-size: .72rem; color: var(--subtle); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .unread { background: var(--signal); color: #fff; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding-inline: .35rem; margin-top: .2rem; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); }
.chat-head b { color: var(--ink); display: block; }
.chat-head small { color: var(--muted); font-size: .76rem; }
.presence { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--subtle); }
.presence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.presence.live { color: var(--success); } .presence.live::before { background: var(--success); }
.chat-context { display: flex; gap: .75rem; align-items: center; padding: .6rem 1.2rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .8rem; flex-wrap: wrap; }
.chat-stream { flex: 1; overflow-y: auto; padding: 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; background: var(--bg); }
.msg { max-width: min(72%, 560px); display: flex; flex-direction: column; gap: .15rem; }
.msg .bubble { padding: .6rem .85rem; border-radius: var(--r); font-size: .9rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.msg.mine { align-self: flex-start; }
.msg.mine .bubble { background: var(--graphite); color: #f2f2f3; border-color: var(--graphite); border-start-start-radius: var(--r-xs); }
.msg.theirs { align-self: flex-end; }
.msg.theirs .bubble { border-start-end-radius: var(--r-xs); }
.msg .meta { font-size: .68rem; color: var(--subtle); display: flex; gap: .35rem; align-items: center; padding-inline: .3rem; }
.msg.mine .meta { justify-content: flex-start; }
.msg.theirs .meta { justify-content: flex-end; }
.msg .meta .seen { color: var(--success); }
.msg.system { align-self: center; max-width: 90%; }
.msg.system .bubble { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .8rem; text-align: center; padding: .35rem .8rem; }
.msg.pending .bubble { opacity: .6; }
.day-sep { align-self: center; font-size: .72rem; color: var(--subtle); padding: .15rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; margin-block: .4rem; }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--signal); border-radius: var(--r); overflow: hidden; color: var(--text); width: min(100%, 520px); }
.msg.mine .offer-card { border-top-color: var(--ink); }
.offer-card .oh { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.offer-card .oh b { color: var(--ink); font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
.offer-card table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.offer-card td, .offer-card th { padding: .45rem .9rem; border-bottom: 1px solid var(--line); text-align: start; }
.offer-card th { color: var(--muted); font-weight: 500; font-size: .72rem; background: var(--surface-2); }
.offer-card .was { color: var(--subtle); text-decoration: line-through; }
.offer-card .now { color: var(--ink); font-weight: 900; }
.offer-card .delta { color: var(--success); font-size: .72rem; }
.offer-card .of { padding: .7rem .9rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .8rem; }
.offer-card .of .grow { color: var(--muted); }
.composer { border-top: 1px solid var(--line); padding: .75rem 1rem; display: flex; gap: .6rem; align-items: end; background: var(--surface); }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: .6rem .85rem; font: inherit; font-size: .92rem; color: var(--text); background: var(--surface); line-height: 1.7; }
.composer textarea:focus { outline: none; border-color: var(--signal); box-shadow: var(--ring); }
.composer .btn { height: 44px; }
.typing { font-size: .74rem; color: var(--muted); padding: 0 1.2rem .35rem; min-height: 1.3rem; background: var(--bg); }
.chat-guard { font-size: .74rem; color: var(--muted); padding: .35rem 1rem 0; display: flex; gap: .35rem; align-items: center; background: var(--surface); }
.counter-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.counter-table th, .counter-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: start; }
.counter-table th { color: var(--muted); font-weight: 500; font-size: .76rem; }
.counter-table .input { min-height: 36px; }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); } .subtle { color: var(--subtle); } .ink { color: var(--ink); }
.small { font-size: .82rem; } .xs { font-size: .74rem; } .lg { font-size: 1.1rem; }
.bold { font-weight: 700; } .black { font-weight: 900; }
.center { text-align: center; } .end { text-align: end; }
.nowrap { white-space: nowrap; }
.d-block { display: block; }
.m-0 { margin: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-auto { margin-top: auto; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.p-0 { padding: 0 !important; }
.w-full { width: 100%; }
.hide { display: none !important; }
.text-success { color: var(--success); } .text-accent { color: var(--warn); } .text-brand { color: var(--red); } .text-danger-c { color: var(--red); }
.divider { height: 1px; background: var(--line); margin-block: 1rem; }
.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.h-0{height:2%}.h-5{height:5%}.h-10{height:10%}.h-15{height:15%}.h-20{height:20%}.h-25{height:25%}.h-30{height:30%}.h-35{height:35%}.h-40{height:40%}.h-45{height:45%}.h-50{height:50%}.h-55{height:55%}.h-60{height:60%}.h-65{height:65%}.h-70{height:70%}.h-75{height:75%}.h-80{height:80%}.h-85{height:85%}.h-90{height:90%}.h-95{height:95%}.h-100{height:100%}
.p-0r{--p:0%}.p-10r{--p:10%}.p-20r{--p:20%}.p-30r{--p:30%}.p-40r{--p:40%}.p-50r{--p:50%}.p-60r{--p:60%}.p-70r{--p:70%}.p-80r{--p:80%}.p-90r{--p:90%}.p-100r{--p:100%}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr 1fr; } .buy-box { grid-column: span 2; position: static; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 1.5rem; }
  .flow-step:nth-child(5) { border-inline-start: 0; padding-inline-start: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis > .card:nth-child(3) { border-inline-start: 0; }
  .kpis > .card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dash-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .mobile-nav { display: flex; gap: .25rem; overflow-x: auto; padding: .45rem .75rem; border-top: 1px solid var(--line); scrollbar-width: none; }
  .mobile-nav a { white-space: nowrap; font-size: .84rem; font-weight: 500; color: var(--text); padding: .3rem .75rem; border-radius: var(--r-sm); background: var(--surface-2); }
  .mobile-nav a.active { background: var(--ink); color: var(--surface); }
  .chat { grid-template-columns: 280px 1fr; }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; } .hero-visual { display: none; }
  .catalog, .rfq-layout, .store-layout { grid-template-columns: 1fr; } .filters, .store-layout > .card { position: static; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .split, .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-w); z-index: 70; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  .panel.nav-open .sidebar { transform: none; }
  .btn.menu-toggle { display: inline-flex; }
  .site-header .header-search { display: none; }
  .site-header .mobile-header-search { display: block; position: relative; margin-block: 0 0.55rem; }
  .mobile-header-search input { width: 100%; height: 42px; padding-inline: 2.65rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; }
  .mobile-header-search input:focus { outline: none; border-color: var(--signal); background: var(--surface); box-shadow: var(--ring); }
  .mobile-header-search > .icon { position: absolute; inset-inline-start: 1.65rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
  .mobile-header-search .suggest { inset-inline: .75rem; top: calc(100% + 2px); max-height: min(60vh, 420px); overflow-y: auto; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 64px - 2rem); }
  .chat.has-active .chat-list { display: none; }
  .chat:not(.has-active) .chat-main { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 1.5rem, var(--container)); }
  .header-inner { gap: .5rem; }
  .logo img { height: 30px; }
  .header-actions .btn-ghost:not(.btn-icon) { display: none; }
  .mobile-nav { display: none; }
  .site-header .mobile-locale-bar { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-block: 0 0.5rem; }
  .mobile-locale-bar > .dropdown { flex: 1; min-width: 0; }
  .mobile-locale-bar > .dropdown > summary { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
  .mobile-locale-bar .lang-switch-trigger { justify-content: flex-start; }
  .mobile-locale-bar .currency-switch-trigger { justify-content: center; }
  .mobile-locale-bar details.dropdown .menu { inset-inline: 0; min-width: min(260px, calc(100vw - 1.5rem)); max-height: min(58vh, 430px); overflow-y: auto; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-app-nav { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 80; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 64px; padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 255 255 / .96); box-shadow: 0 -8px 24px rgb(15 23 42 / .08); backdrop-filter: blur(14px) saturate(1.3); }
  [data-theme="dark"] .mobile-app-nav { background: rgb(27 28 32 / .96); }
  .mobile-app-nav a, .mobile-app-nav button { min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; }
  .mobile-app-nav .icon { width: 21px; height: 21px; }
  .mobile-app-nav a.active, .mobile-app-nav button:active { color: var(--red); background: var(--red-50); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .p-body { padding: .75rem; } .p-title { font-size: .86rem; }
  .p-media { aspect-ratio: 16 / 10; } .p-media > .icon { width: 40px; height: 40px; }
  .p-flags .badge-brand, .sponsored-tag { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .bento { grid-template-columns: 1fr; } .bento .wide { grid-column: auto; }
  .grid-2, .grid-3, .grid-4, .form-grid, .choice-cards { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; }
  .pd { grid-template-columns: 1fr; } .buy-box { grid-column: auto; }
  .kpi { flex-direction: column; gap: .5rem; padding: 1rem; }
  .hero-search { flex-wrap: wrap; } .hero-search .select { width: 100%; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hero-proof { grid-template-columns: repeat(3, 1fr); gap: 1rem; } .hero-proof b { font-size: 1.3rem; }
  .panel-content { padding: 1rem; } .panel-top { padding-inline: 1rem; }
  .panel-head > .row-wrap { width: 100%; } .panel-head > .row-wrap .btn { flex: 1; }
  .topbar { display: none; }
  .trust-strip .container { grid-template-columns: 1fr; }
  .trust-item { border-inline-start: 0; padding-inline: 0; border-top: 1px solid #33353b; }
  .footer-grid { grid-template-columns: 1fr; }
  .msg { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .mobile-app-nav, .sidebar, .panel-top, .btn { display: none !important; } .panel { display: block; } }
.bar-chart .bar { min-width: 0; }
.bar-chart .bar small { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.offer-card .was, .offer-card .now { white-space: nowrap; }
@media (max-width: 640px) {
  .user-chip > span:first-child { display: none; }
  .user-chip { padding: .2rem; }
  .chat { height: calc(100dvh - 64px - 2rem); border-radius: var(--r-sm); }
  .chat-head { padding: .6rem .75rem; gap: .5rem; }
  .chat-head .avatar { display: none; }
  .chat-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-head .btn-outline, .chat-head .btn-primary { font-size: 0; width: 34px; padding: 0; gap: 0; }
  .chat-head .btn-outline .icon, .chat-head .btn-primary .icon { width: 17px; height: 17px; }
  .chat-context { font-size: .72rem; padding: .45rem .75rem; gap: .5rem; }
  .chat-context .badge, .chat-guard { display: none; }
  .chat-stream { padding: .75rem; }
  .composer { padding: .5rem; }
  .composer .btn { font-size: 0; width: 44px; padding: 0; gap: 0; }
  .composer .btn .icon { width: 18px; height: 18px; }
  .offer-card td, .offer-card th { padding: .4rem .55rem; }
}
.choice-cards.three { grid-template-columns: repeat(3, 1fr); }
.input.otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; min-height: 56px; }
@media (max-width: 640px) { .choice-cards.three { grid-template-columns: 1fr; } }

/* ---------- Business verification ---------- */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.state { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-inline-start: 4px solid var(--line-strong); }
.state > .icon { color: var(--muted); flex: none; width: 22px; height: 22px; }
.state b { display: block; color: var(--ink); font-size: .9rem; }
.state span { display: block; color: var(--muted); font-size: .76rem; }
.state.ok { border-inline-start-color: var(--success); }
.state.ok > .icon { color: var(--success); }
.wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.wizard-nav { padding: .5rem; position: sticky; top: 84px; display: grid; gap: 2px; }
.wstep { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border-radius: var(--r-sm); color: var(--text); font-size: .88rem; }
.wstep b { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--line-strong); font-size: .78rem; color: var(--muted); }
.wstep:hover { background: var(--surface-2); }
.wstep.done b { background: var(--success-50); border-color: var(--success-100); color: var(--success); }
.wstep.on { background: var(--brand-50); color: var(--ink); font-weight: 700; }
.wstep.on b { background: var(--signal); border-color: var(--signal); color: #fff; }
.wizard-body { min-width: 0; }
.doc-slot { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; display: grid; gap: .6rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); align-items: center; }
.doc-meta a { display: inline-flex; gap: .3rem; align-items: center; font-weight: 600; }
.doc-upload, .doc-review { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.doc-upload .input[type=file] { flex: 1 1 240px; }
.doc-upload .input[name=expiresAt] { width: 160px; }
.doc-review .input { flex: 1 1 220px; }
.kv-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-3 { grid-column: 1 / -1; }
.checklist li.ok > .icon { color: var(--success); }
.checklist li.bad > .icon { color: var(--signal); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg a { padding: .5rem .9rem; font-size: .85rem; color: var(--muted); }
.seg a.on { background: var(--ink); color: #fff; font-weight: 700; }
.media-preview { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.media-preview.logo { width: 112px; height: 112px; }
.media-preview.cover { aspect-ratio: 4 / 1; width: 100%; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
[data-show-for][hidden] { display: none !important; }
@media (max-width: 1100px) { .states { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .wstep span { display: none; } .wstep.on span { display: inline; }
  .kv-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .states { gap: .5rem; } .state { padding: .7rem; } .state span { display: none; } }
.kv-3 b { font-size: .92rem; font-weight: 700; } .kv-3 div + div { border-inline-start: 0; } .kv-3 div { border-bottom: 1px solid var(--line); }

/* Admin company command center */
.admin-company-metrics { grid-template-columns: repeat(8, minmax(0, 1fr)); background: var(--surface); }
.admin-company-metrics div { min-width: 0; }
.admin-company-metrics b { font-size: 1.05rem; }
.admin-company-metrics span { display: block; }
@media (max-width: 1100px) { .admin-company-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .admin-company-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Advertising operations */
.admin-marketing-create { position: absolute; z-index: 12; inset-inline-end: 0; width: min(34rem, calc(100vw - 2rem)); margin-top: .5rem; box-shadow: var(--shadow-lg); }
.panel-head details { position: relative; }
.panel-head details[open] > summary { background: var(--ink); color: #fff; }
.marketing-service-card > .row svg, .admin-marketing-empty > svg { width: 2rem; height: 2rem; color: var(--brand); }
.marketing-service-card p { min-height: 3rem; }
.admin-marketing-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); }
.marketing-order-card { overflow: hidden; }
.marketing-order-brief { margin: 0 1.25rem; padding: 1rem; border-radius: var(--r-sm); background: var(--surface-2); }
.marketing-order-brief p { margin-bottom: 0; }
.admin-marketing-empty { min-height: 18rem; display: grid; place-content: center; justify-items: center; text-align: center; }
@media (max-width: 900px) { .admin-marketing-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .admin-marketing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-marketing-create { position: fixed; inset: 1rem; width: auto; overflow: auto; } }
.choice-cards.three .choice-card { flex-direction: column; gap: .5rem; } .choice-cards.three .choice-card small { display: block; }

/* ---------- Product studio, moderation, plans, notifications ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.studio > * { min-width: 0; }
.studio-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.studio-nav a { display: block; padding: .35rem .5rem; border-radius: var(--r-xs); font-size: .86rem; color: var(--text); border-inline-start: 3px solid var(--line); }
.studio-nav a:hover { border-inline-start-color: var(--signal); color: var(--ink); background: var(--surface-2); }
.required-mark::after { content: " *"; color: var(--signal); font-weight: 700; }
.card.narrow { max-width: 640px; }
.unit-select { flex: 0 0 150px; }
.tr-block { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .8rem; margin-bottom: .5rem; }
.tr-block summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.media-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem; display: grid; gap: .4rem; margin: 0; align-content: start; }
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xs); background: var(--surface-2); }
.video-preview { width: 100%; max-height: 180px; border-radius: var(--r-xs); background: #000; }
.thumb { width: 44px; height: 44px; flex: none; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .icon { width: 18px; height: 18px; }
.table-sm th, .table-sm td { padding: .45rem .7rem; font-size: .84rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.d-inline { display: inline-block; }
.ltr-inline { direction: ltr; text-align: start; unicode-bidi: plaintext; }
.indent-1 { padding-inline-start: 1.25rem; } .indent-2 { padding-inline-start: 2.5rem; } .indent-3 { padding-inline-start: 3.75rem; }
.checklist.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 1rem; background: var(--surface-2); border-radius: var(--r-sm); border-inline-start: 4px solid var(--signal); }
.total-row b { font-size: 1.25rem; color: var(--ink); }
.plan-table th, .plan-table td { text-align: center; vertical-align: middle; }
.plan-table tbody th, .plan-table thead th:first-child { text-align: start; font-weight: 500; color: var(--text); }
.plan-table thead th { vertical-align: top; min-width: 170px; padding: 1rem .8rem; }
.plan-table thead th.rec { background: var(--brand-50); border-top: 3px solid var(--signal); }
.plan-table .price { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-top: .35rem; }
.plan-table td.yes { color: var(--success); font-weight: 800; }
.plan-table td.muted { color: var(--muted); }
.schema-table input[type=checkbox] { width: 16px; height: 16px; }
.schema-table .w-num { width: 64px; display: inline-block; } .schema-table .w-code { width: 96px; }
.schema-table tr.muted-row td { opacity: .62; } .schema-table tr.muted-row:hover td, .schema-table tr.muted-row:focus-within td { opacity: 1; }
.bell { position: relative; }
.dot-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--signal); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.notif-list li.unread { background: var(--brand-50); border-inline-start: 3px solid var(--signal); }
.notif-list .ic { width: 34px; height: 34px; flex: none; border-radius: var(--r-xs); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.notif-list a { display: grid; gap: .15rem; color: var(--text); min-width: 0; }
.notif-list a b { color: var(--ink); font-size: .92rem; } .notif-list a span { font-size: .86rem; } .notif-list a small { color: var(--muted); font-size: .74rem; }
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr; } .studio-side { position: static; max-height: none; order: -1; } .studio-nav { display: none; } }
@media (max-width: 640px) { .checklist.cols-2 { grid-template-columns: 1fr; } }
.plan-table thead th .xs { display: block; }
.card-pad > .kv { grid-template-columns: 1fr 1fr; }

/* ---------- Storefront search, facets, comparison ---------- */
.p-card { position: relative; display: flex; flex-direction: column; }
.p-card > .card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.p-media.has-img { padding: 0; background: var(--surface-2); }
.p-media.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .6rem; margin: .1rem 0 .3rem; font-size: .76rem; }
.p-specs div { display: flex; gap: .3rem; min-width: 0; } .p-specs dt { color: var(--muted); white-space: nowrap; } .p-specs dt::after { content: ":"; }
.p-specs dd { margin: 0; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-price s { color: var(--muted); font-size: .78rem; margin-inline-start: .4rem; }
.p-compare { position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 2; display: inline-flex; gap: .25rem; align-items: center; padding: .25rem .5rem; border-radius: var(--r-xs); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .72rem; cursor: pointer; opacity: .92; }
.p-compare:hover, .p-compare.on, [data-compare].on { border-color: var(--signal); color: var(--signal); }
.p-compare.on { background: var(--brand-50); font-weight: 700; }
.facet-opt { display: flex; align-items: center; gap: .45rem; padding: .15rem 0; }
.facet-opt .count { margin-inline-start: auto; font-size: .74rem; color: var(--muted); }
.facet-opt.disabled { opacity: .45; }
#results[aria-busy=true] { opacity: .55; transition: opacity .15s; }
#active-filters:empty { display: none; } #active-filters { margin-bottom: .6rem; }
.store-strip { margin-bottom: 1rem; }
.store-chip { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.store-chip b { display: block; color: var(--ink); font-size: .88rem; } .store-chip small { color: var(--muted); font-size: .74rem; }
.store-chip:hover { border-color: var(--signal); }
.suggest { max-height: min(70vh, 520px); overflow-y: auto; }
.suggest-head { display: block; padding: .5rem .9rem .2rem; font-size: .72rem; color: var(--muted); font-weight: 700; }
.suggest a.suggest-item { display: flex; gap: .6rem; align-items: center; }
.suggest a.suggest-item.active, .suggest a.suggest-item:hover { background: var(--brand-50); }
.suggest-thumb { width: 36px; height: 36px; flex: none; border-radius: var(--r-xs); background: var(--surface-2); overflow: hidden; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-text { display: grid; min-width: 0; } .suggest-text b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .suggest-text small { color: var(--muted); font-size: .74rem; }
.suggest-note { margin: 0; padding: .8rem .9rem; color: var(--muted); font-size: .85rem; }
.compare-bar { position: fixed; bottom: 1rem; inset-inline-start: 50%; transform: translateX(50%); z-index: 60; display: flex; gap: .5rem; padding: .5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 8px 24px rgb(0 0 0 / .16); }
[dir=ltr] .compare-bar { transform: translateX(-50%); }
.compare-table th, .compare-table td { vertical-align: top; min-width: 180px; }
.compare-table tbody th { min-width: 150px; font-weight: 500; color: var(--muted); }
.compare-table tr.differs td { background: var(--brand-50); color: var(--ink); font-weight: 600; }
.compare-table tr.group-row th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.cmp-head { display: grid; gap: .25rem; color: var(--text); } .cmp-head b { color: var(--ink); } .cmp-head small { color: var(--muted); font-weight: 400; } .cmp-head .price { font-weight: 700; color: var(--ink); }
.cmp-head .thumb { width: 72px; height: 72px; }
.pd-gallery.has-img { padding: 0; overflow: hidden; } .pd-gallery.has-img img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.pd-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: var(--r-xs); overflow: hidden; background: var(--surface); cursor: pointer; aspect-ratio: 1; }
.pd-thumbs button.on { border-color: var(--signal); } .pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-video { width: 100%; margin-top: .6rem; border-radius: var(--r-sm); background: #000; }
.pd-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; margin: .6rem 0; padding: .8rem 1rem; background: var(--surface-2); border-radius: var(--r-sm); border-inline-start: 4px solid var(--signal); }
.pd-key div { display: flex; gap: .4rem; font-size: .86rem; min-width: 0; } .pd-key dt { color: var(--muted); white-space: nowrap; } .pd-key dd { margin: 0; color: var(--ink); font-weight: 600; }
.spec-group { font-size: .92rem; margin: 1rem 0 .4rem; } .spec-group:first-child { margin-top: 0; }

/* ---------- Notifications: preferences, push prompt, templates ---------- */
.pref-table th:not(:first-child), .pref-table td:not(:first-child) { text-align: center; width: 110px; }
.pref-table input[type=checkbox] { width: 17px; height: 17px; }
/* ---- Browser-push opt-in: a floating card with a live preview of the kind of alert it brings ---- */
.push-prompt { position: fixed; bottom: 1.25rem; inset-inline-start: 1.25rem; z-index: 80; width: min(380px, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: push-in .5s var(--ease) both; }
.push-x { position: absolute; top: .55rem; inset-inline-end: .55rem; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.push-x:hover { background: rgb(255 255 255 / .22); }
.push-x svg { width: 16px; height: 16px; }
.push-stage { position: relative; padding: 1.6rem 1.1rem 1.25rem; background:
  radial-gradient(120% 90% at 85% 0%, rgb(255 85 85 / .55), transparent 60%), var(--graphite); }
.push-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(255 255 255 / .08); }
.push-preview { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 14px;
  background: rgb(255 255 255 / .94); color: #1e1f23; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .55);
  animation: push-drop .7s .25s var(--ease) both; }
.push-app img { display: block; border-radius: 6px; }
.push-lines { display: grid; gap: .1rem; min-width: 0; }
.push-meta { font-size: .7rem; color: #6b6e76; }
.push-meta b { color: #1e1f23; font-weight: 600; }
.push-title { font-size: .86rem; font-weight: 700; }
.push-body { font-size: .78rem; color: #33353b; }
.push-copy { display: grid; gap: .7rem; padding: 1.1rem 1.2rem 1.15rem; }
.push-copy h2 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.push-copy > p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.75; }
.push-points { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.push-points li { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: var(--text); }
.push-points svg { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 8px; background: var(--red-50); color: var(--red); }
.push-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.push-actions .btn-primary { flex: 1 1 auto; justify-content: center; }
.push-blocked { margin: 0; display: flex; gap: .5rem; align-items: flex-start; padding: .65rem .75rem; border-radius: var(--r-sm);
  background: var(--warn-50); color: var(--warn); font-size: .8rem; line-height: 1.7; }
.push-blocked svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; }
.push-fine { margin: 0; font-size: .72rem; color: var(--subtle); }
@keyframes push-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes push-drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
[data-theme="dark"] .push-points svg { background: rgb(255 85 85 / .14); color: var(--signal); }
[data-theme="dark"] .push-blocked { background: rgb(178 106 0 / .15); color: #f0b45c; }
@media (prefers-reduced-motion: reduce) { .push-prompt, .push-preview { animation: none; } }
@media (max-width: 560px) { .push-prompt { inset-inline: .75rem; bottom: .75rem; width: auto; } }
.mail-preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; display: block; margin-inline: auto; }
.mail-preview.mobile { width: 375px; max-width: 100%; }
.seg button { padding: .5rem .9rem; font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 0; cursor: pointer; } .seg button.on { background: var(--ink); color: #fff; font-weight: 700; }
.textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.5; }
code.d-block { display: block; overflow-wrap: anywhere; font-size: .74rem; margin-top: .3rem; }

/* ---------- Buyer: wishlist, reviews, wallet ---------- */
.p-wish { position: absolute; top: 2.6rem; inset-inline-end: .5rem; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; opacity: .94; }
.p-wish:hover, [data-wish].on { color: var(--signal); border-color: var(--signal); }
[data-wish].on svg { fill: currentColor; }
.wish-list { display: grid; gap: .75rem; }
.wish-row { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; flex-wrap: wrap; }
.wish-media { width: 120px; height: 90px; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; background: var(--bg); color: var(--muted); flex: none; }
.wish-media img { width: 100%; height: 100%; object-fit: cover; }
.wish-side { width: min(340px, 100%); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; gap: .1rem; }
.rate legend { width: 100%; font-size: .84rem; font-weight: 700; margin-bottom: .3rem; float: inline-start; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; color: var(--line-strong); padding: .15rem; border-radius: var(--r-xs); }
.rate label svg { width: 26px; height: 26px; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #E0A100; }
.rate input:checked ~ label svg, .rate label:hover svg, .rate label:hover ~ label svg { fill: currentColor; }
.rate input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.review-reply { border-inline-start: 3px solid var(--line-strong); padding: .5rem .8rem; background: var(--bg); border-radius: var(--r-xs); font-size: .9rem; }
.review-reply b { font-size: .8rem; color: var(--muted); display: block; margin-bottom: .2rem; }
.review-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; align-items: start; }
.review-score b { font-size: 2.4rem; line-height: 1; color: var(--ink); } .review-score span { display: block; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.hist-row { display: grid; grid-template-columns: 1.2rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .8rem; color: var(--muted); }
.hist-row progress { width: 100%; height: 8px; accent-color: #E0A100; }
.wallet-balance b { font-size: 1.9rem; color: var(--ink); } .wallet-balance small { font-size: .9rem; font-weight: 400; color: var(--muted); }
tr.row-on { background: var(--brand-50); }
@media (max-width: 860px) { .review-layout { grid-template-columns: 1fr; } }

/* ---------- RFQ: structured item blocks ---------- */
.rfq-items { display: grid; gap: .75rem; }
.rfq-item { display: grid; gap: .6rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.rfq-item-main { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.rfq-item-main .grow { flex: 1 1 240px; } .rfq-item-main .qty { width: 110px; } .rfq-item-main .unit { width: 130px; }
.rfq-item .label { font-size: .76rem; color: var(--muted); }
.rfq-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; padding: .7rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-xs); }
.rfq-specs .wide { grid-column: 1 / -1; }
.select-sm { height: 36px; font-size: .86rem; padding-block: 0; }
.spec-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-block: .25rem; }
.spec-chips span { font-size: .76rem; padding: .1rem .45rem; border-radius: var(--r-xs); background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.spec-chips b { font-weight: 500; color: var(--muted); }

/* ---------- Product studio: guided path + AI suggestions ---------- */
.guide { margin-bottom: 1rem; } .guide > summary { cursor: pointer; list-style: none; } .guide > summary::-webkit-details-marker { display: none; }
.guide-meter { display: flex; align-items: center; gap: .6rem; min-width: 180px; } .guide-meter progress { flex: 1; height: 8px; accent-color: var(--success); }
.guide-steps { list-style: none; margin: 0; padding: .9rem 1.1rem 1.1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem 1.2rem; }
.guide-steps li { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); }
.guide-steps li svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.guide-steps li.done svg { color: var(--success); } .guide-steps li.next svg { color: var(--signal); }
.guide-steps a { font-weight: 700; color: var(--ink); } .guide-steps li.done a { font-weight: 500; color: var(--muted); }
.guide-steps small { display: block; font-size: .78rem; line-height: 1.6; }
.ai-suggest { display: grid; gap: .35rem; }

/* ======================================================================
   Product detail (pdx) — gallery · info · seller, price, trust, tabs, related
   ====================================================================== */
.pdx { padding-block: 1rem 2.5rem; display: grid; gap: 1.1rem; }
.pdx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.pdx-crumbs a { color: var(--muted); } .pdx-crumbs a:hover { color: var(--red); }
.pdx-crumbs > .icon { width: 12px; height: 12px; opacity: .6; } .pdx-crumbs span { color: var(--text); }
.pdx-card-base, .pdx-top > *, .pdx-price, .pdx-tabs, .pdx-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

.pdx-top { display: grid; grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.pdx-top > * { padding: 1rem; }
/* RTL grid: first column renders on the right — the gallery sits on the right as in the design. */
.pdx-gallery { display: grid; gap: .7rem; }
.pdx-main { aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; background: var(--surface); }
.pdx-main::before { content: ""; position: absolute; top: .65rem; inset-inline-end: .65rem; width: 92px; height: 34px; background: rgba(255,255,255,.86) url('/img/logo.png') center/80px auto no-repeat; border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-sm); z-index: 1; opacity: .82; }
.pdx-main > .icon { width: 46%; height: 46%; color: var(--ink); stroke-width: 1.6; }
.pdx-main.has-img img { width: 100%; height: 100%; object-fit: cover; }
.pdx-thumbs { display: grid; grid-template-columns: 26px 1fr 26px; gap: .4rem; align-items: center; }
.pdx-thumb-list { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.pdx-thumb-list button { flex: 0 0 70px; height: 70px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.pdx-thumb-list button.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-100); }
.pdx-thumb-list img { width: 100%; height: 100%; object-fit: cover; }
.pdx-thumb-video{display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--ink),#555)}.pdx-thumb-video .icon{width:26px;height:26px;fill:currentColor}.pdx-main video{width:100%;height:100%;object-fit:contain;background:#111}
.pdx-arrow { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.pdx-arrow:hover { color: var(--ink); border-color: var(--line-strong); }
.pdx-arrow .icon { width: 14px; height: 14px; }

.pdx-info { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.pdx-info-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pdx-stock { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; color: var(--success); background: var(--success-50); border: 1px solid var(--success-100); border-radius: 999px; padding: .25rem .7rem; }
.pdx-stock.made { color: var(--warn); background: var(--warn-50); border-color: var(--warn-100); }
.pdx-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.pdx-chip { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .76rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .35rem .65rem; cursor: pointer; }
.pdx-chip:hover { border-color: var(--line-strong); }
.pdx-chip[data-wish] .icon { color: var(--red); } .pdx-chip.on { border-color: var(--red-200); background: var(--red-50); color: var(--red); }
.pdx-chip.on .icon { fill: currentColor; }
.pdx-info h1 { font-size: 1.55rem; font-weight: 900; color: var(--ink); margin: .2rem 0 0; line-height: 1.5; }
.pdx-en { direction: ltr; text-align: right; color: var(--muted); font-size: .88rem; }
.pdx-summary { color: var(--muted); font-size: .84rem; line-height: 1.9; margin: 0; }
.pdx-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: .2rem 0 0; border-block: 1px solid var(--line); }
.pdx-key div { padding: .8rem .5rem; text-align: center; min-width: 0; }
.pdx-key div + div { border-inline-start: 1px solid var(--line); }
.pdx-key dt { display: flex; align-items: center; justify-content: center; gap: .3rem; font-size: .74rem; color: var(--muted); margin-bottom: .35rem; }
.pdx-key dd { margin: 0; font-weight: 900; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.pdx-moq { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); }
.pdx-moq > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .75rem 1rem; }
.pdx-moq > div + div { border-inline-start: 1px solid var(--line); }
.pdx-moq .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--muted); }
.pdx-moq span { font-size: .74rem; color: var(--muted); } .pdx-moq b { font-weight: 900; color: var(--ink); display: inline-flex; gap: .25rem; align-items: center; }
.pdx-moq b.ok { color: var(--success); }

.pdx-seller { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.pdx-seller-head { display: flex; gap: .7rem; align-items: center; color: inherit; }
.pdx-seller-head b { display: block; font-size: 1.02rem; font-weight: 900; color: var(--ink); }
.pdx-seller-head small { display: block; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.pdx-seller-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }
.pdx-verified { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; color: var(--success); background: var(--success-50); border-radius: 999px; padding: .25rem .7rem; }
.pdx-verified.warn { color: var(--warn); background: var(--warn-50); }
.pdx-seller-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.pdx-seller-stats > div { padding: .65rem .3rem; } .pdx-seller-stats > div + div { border-inline-start: 1px solid var(--line); }
.pdx-seller-stats b { display: inline-flex; align-items: center; gap: .25rem; font-weight: 900; color: var(--ink); }
.pdx-seller-stats .star { color: #e8a400; fill: #e8a400; }
.pdx-seller-stats span { display: block; font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.pdx-assure { list-style: none; margin: 0; padding: .7rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .78rem; color: var(--text); }
.pdx-assure li { display: flex; gap: .45rem; align-items: center; } .pdx-assure .icon { color: var(--muted); }

.pdx-price { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .95fr); gap: 1.5rem; padding: 1.2rem 1.4rem; align-items: center; }
.pdx-tiers { display: grid; gap: .5rem; }
.pdx-tiers h2, .pdx-price-ask h2 { display: flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 900; color: var(--ink); margin: 0 0 .25rem; }
.pdx-tiers h2 .icon, .pdx-price-ask h2 .icon { color: var(--red); } .pdx-tiers h2 small { font-size: .74rem; font-weight: 400; color: var(--muted); }
.pdx-tier { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .84rem; transition: border-color .15s, background .15s; }
.pdx-tier b { font-weight: 900; color: var(--ink); }
.pdx-tier.on { border-color: var(--red); background: var(--red-50); box-shadow: 0 0 0 1px var(--red) inset; }
.pdx-qty { display: grid; gap: .5rem; justify-items: start; padding-inline: 1.2rem; border-inline: 1px solid var(--line); }
.pdx-qty label { font-weight: 700; color: var(--ink); font-size: .88rem; }
.pdx-stepper { display: flex; align-items: center; gap: .5rem; }
.pdx-stepper button { width: 40px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.pdx-stepper button:first-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; } .pdx-stepper button:nth-of-type(2) { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.pdx-stepper input { width: 110px; height: 42px; text-align: center; font: inherit; font-weight: 900; color: var(--ink); border: 1px solid var(--line-strong); border-inline: 0; margin-inline: -.5rem; }
.pdx-stepper input:focus { outline: none; box-shadow: var(--ring); position: relative; }
.pdx-stepper > span { font-size: .84rem; color: var(--muted); }
.pdx-qty small { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--muted); }
.pdx-total { background: var(--red-50); border-radius: var(--r); padding: 1.1rem 1.25rem; display: grid; gap: .4rem; }
.pdx-total .row > span { font-size: .84rem; color: var(--text); } .pdx-total .icon { width: 30px; height: 30px; color: var(--red); }
.pdx-total output { font-size: 1.65rem; font-weight: 900; color: var(--ink); line-height: 1.3; }
.pdx-total small { font-size: .78rem; color: var(--muted); }
.pdx-price-ask { grid-template-columns: 1fr auto; }

.pdx-trust { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--red-50); border-radius: var(--r-lg); padding: 1rem .5rem; }
.pdx-trust > div { display: flex; align-items: center; gap: .75rem; padding: .3rem 1.1rem; }
.pdx-trust > div + div { border-inline-start: 1px solid var(--red-200); }
.pdx-trust .icon { width: 30px; height: 30px; color: var(--red); flex: none; stroke-width: 1.6; }
.pdx-trust b { display: block; font-size: .88rem; font-weight: 900; color: var(--ink); } .pdx-trust small { font-size: .74rem; color: var(--muted); }

.pdx-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pdx-facts > div { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: 1rem 1.2rem; }
.pdx-facts small { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .2rem; }
.pdx-facts b { font-weight: 900; color: var(--ink); font-size: .95rem; }
.pdx-facts .icon { width: 34px; height: 34px; color: var(--ink); stroke-width: 1.4; flex: none; }

.pdx-tabs { overflow: hidden; }
.pdx-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.pdx-tabbar button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; font: inherit; font-size: .9rem; color: var(--text); background: none; border: 0; border-bottom: 2px solid transparent; padding: 1rem .5rem; cursor: pointer; }
.pdx-tabbar button .icon { color: var(--muted); }
.pdx-tabbar button.on { color: var(--red); font-weight: 900; border-bottom-color: var(--red); } .pdx-tabbar button.on .icon { color: var(--red); }
.pdx-panel { padding: 1.3rem 1.4rem 1.5rem; }
.pdx-panel[data-tab-panel="specs"]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.pdx-specs { display: grid; gap: .8rem; justify-items: start; }
.pdx-specs h3, .pdx-notes h3 { font-size: 1rem; font-weight: 900; color: var(--ink); margin: 0; display: flex; align-items: center; gap: .4rem; }
.pdx-specs table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pdx-specs th, .pdx-specs td { padding: .6rem .9rem; text-align: start; border-bottom: 1px solid var(--line); }
.pdx-specs th { width: 42%; font-weight: 700; color: var(--ink); }
.pdx-specs td { color: var(--text); border-inline-start: 1px solid var(--line); }
.pdx-specs tr:nth-child(even) th, .pdx-specs tr:nth-child(even) td { background: var(--surface-2); }
.pdx-specs tr.grp th { background: var(--surface) !important; color: var(--red); font-size: .8rem; padding-top: 1rem; }
.pdx-specs .ltr-cell { direction: ltr; text-align: right; }
.pdx-notes { background: var(--red-50); border-radius: var(--r); padding: 1.1rem 1.25rem; }
.pdx-notes h3 { color: var(--red); margin-bottom: .7rem; }
.pdx-notes ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .55rem; font-size: .84rem; color: var(--text); }
.pdx-notes li::marker { color: var(--red); }
.pdx-qa { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.pdx-qa > .icon { width: 34px; height: 34px; color: var(--red); flex: none; } .pdx-qa > div { flex: 1; } .pdx-qa b { color: var(--ink); }

.pdx-related { display: grid; gap: .9rem; margin-top: .4rem; }
.pdx-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.pdx-related-head h2 { font-size: 1.15rem; font-weight: 900; color: var(--ink); margin: 0; display: flex; align-items: center; gap: .5rem; }
.pdx-related-head h2::before { content: ""; width: 10px; height: 10px; background: var(--signal); }
.pdx-related-head small { font-size: .78rem; color: var(--muted); }
.pdx-related-head a { font-size: .8rem; color: var(--red); display: inline-flex; align-items: center; gap: .2rem; }
.pdx-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pdx-card { position: relative; display: grid; gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .9rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), border-color .2s; }
.pdx-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.pdx-card-wish { position: absolute; top: .7rem; inset-inline-end: .7rem; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--muted); cursor: pointer; padding: 0; }
.pdx-card-wish.on, .pdx-card-wish:hover { color: var(--red); } .pdx-card-wish.on .icon { fill: currentColor; }
.pdx-card-media { aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: var(--r-sm); overflow: hidden; margin-bottom: .3rem; }
.pdx-card-media img { width: 100%; height: 100%; object-fit: cover; } .pdx-card-media .icon { width: 42%; height: 42%; stroke-width: 1.4; }
.pdx-card-title { font-weight: 900; color: var(--ink); font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdx-card > small { font-size: .74rem; color: var(--muted); }
.pdx-card-foot { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .45rem; }
.pdx-card-foot b { color: var(--red); font-weight: 900; font-size: .9rem; }
.pdx-card-foot span { display: inline-flex; align-items: center; gap: .2rem; font-size: .74rem; color: var(--muted); } .pdx-card-foot span.ok { color: var(--success); }

@media (max-width: 1100px) {
  .pdx-top { grid-template-columns: 300px minmax(0, 1fr); }
  .pdx-seller { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .pdx-key { grid-template-columns: repeat(2, 1fr); } .pdx-key div:nth-child(3) { border-inline-start: 0; } .pdx-key div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pdx-price { grid-template-columns: 1fr 1fr; } .pdx-tiers { grid-column: 1 / -1; } .pdx-qty { border-inline: 0; padding-inline: 0; }
  .pdx-trust, .pdx-facts, .pdx-related-grid { grid-template-columns: repeat(2, 1fr); } .pdx-trust > div:nth-child(3) { border-inline-start: 0; }
  .pdx-panel[data-tab-panel="specs"]:not([hidden]) { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pdx-top, .pdx-seller, .pdx-price, .pdx-trust { grid-template-columns: 1fr; }
  .pdx-trust > div + div { border-inline-start: 0; border-top: 1px solid var(--red-200); }
  .pdx-tabbar { grid-template-columns: repeat(2, 1fr); } .pdx-related-grid, .pdx-facts { grid-template-columns: 1fr 1fr; }
  .pdx-info h1 { font-size: 1.25rem; }
}
.pdx-verified { justify-self: start; }

/* ======================================================================
   Supplier store (sx) — hero with cover wave, stats, tabs + sidebar
   ====================================================================== */
.sx { padding-block: 1rem 2.5rem; display: grid; gap: 1rem; }
.sx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 190px; }
.sx-id { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 1rem 1.2rem; padding: 1.4rem 1.6rem; align-items: center; }
.sx-logo { width: 88px; height: 88px; border-radius: var(--r); background: var(--graphite); color: #fff; display: grid; place-items: center; overflow: hidden; }
.sx-logo .icon { width: 48px; height: 48px; stroke-width: 1.8; }
.sx-logo.has-img { background: var(--surface); border: 1px solid var(--line); } .sx-logo img { width: 100%; height: 100%; object-fit: contain; }
.sx-name { display: grid; gap: .35rem; min-width: 0; }
.sx-title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.sx-title h1 { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--ink); }
.sx-verified { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; color: var(--success); background: var(--success-50); border-radius: 999px; padding: .25rem .7rem; }
.sx-en { direction: ltr; text-align: right; color: var(--muted); font-size: .9rem; }
.sx-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.sx-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--red); background: var(--red-50); border: 1px solid var(--red-100); border-radius: var(--r-sm); padding: .25rem .65rem; }
a.sx-tag:hover { border-color: var(--red-200); }
.sx-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; }
.sx-cta form { display: contents; }
.sx-cta .btn-outline.on { border-color: var(--success); color: var(--success); }
.sx-cover { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 190px; }
.sx-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-cover > .icon { width: 96px; height: 96px; stroke-width: 1.2; opacity: .55; }
.sx-wave { position: absolute; top: 0; bottom: 0; right: -1px; height: 100%; width: 52%; z-index: 1; }
[dir="ltr"] .sx-wave { right: auto; left: -1px; transform: scaleX(-1); }
.sx-wave .w1 { fill: var(--signal); } .sx-wave .w2 { fill: var(--surface); }

.sx-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.sx-stats > * { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: inherit; box-shadow: var(--shadow-sm); }
.sx-stats a:hover { border-color: var(--line-strong); }
.sx-stats .icon { width: 26px; height: 26px; color: var(--muted); stroke-width: 1.6; flex: none; }
.sx-stats > :first-child .icon { color: #e8a400; }
.sx-stats b { display: block; font-weight: 900; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.sx-stats small { font-size: .72rem; color: var(--muted); }

.sx-body { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1rem; align-items: start; }
.sx-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.sx-tabbar { display: flex; gap: .3rem; padding: .5rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sx-tabbar button { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .88rem; color: var(--text); background: none; border: 0; border-radius: var(--r-sm); padding: .6rem 1.2rem; cursor: pointer; white-space: nowrap; }
.sx-tabbar button .icon { color: var(--muted); }
.sx-tabbar button.on { background: var(--red); color: #fff; font-weight: 700; } .sx-tabbar button.on .icon { color: #fff; }
.sx-panel { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 1rem; }
.sx-head h2 { font-size: 1.1rem; font-weight: 900; color: var(--ink); margin: 0; display: flex; align-items: center; gap: .5rem; }
.sx-head h2::before { content: ""; width: 4px; height: 1.1em; background: var(--signal); }
.sx-head small { display: block; font-size: .76rem; color: var(--muted); margin-top: .2rem; padding-inline-start: .85rem; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.sx-card { display: grid; gap: .35rem; align-content: start; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; transition: box-shadow .2s var(--ease), border-color .2s; }
.sx-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.sx-card-flags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.sx-card-flags > span, .sx-cmp { display: inline-flex; align-items: center; gap: .25rem; font: inherit; font-size: .68rem; border-radius: var(--r-xs); padding: .2rem .45rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.sx-card-flags .ok { color: var(--success); background: var(--success-50); border-color: var(--success-100); }
.sx-card-flags .red { color: var(--red); background: var(--red-50); border-color: var(--red-100); }
.sx-cmp { margin-inline-start: auto; cursor: pointer; } .sx-cmp.on { color: var(--ink); border-color: var(--ink); }
.sx-card-media { aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; margin-block: .2rem; }
.sx-card-media img { width: 100%; height: 100%; object-fit: cover; } .sx-card-media .icon { width: 40%; height: 40%; stroke-width: 1.4; }
.sx-card-cat { font-size: .72rem; color: var(--muted); }
.sx-card-title { font-weight: 900; color: var(--ink); font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-card-price { display: flex; align-items: baseline; gap: .3rem; } .sx-card-price b { font-weight: 900; color: var(--ink); font-size: 1.02rem; } .sx-card-price span { font-size: .76rem; color: var(--muted); }
.sx-card-moq { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); }
.sx-card-seller { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text); padding-block: .55rem; margin-top: .2rem; border-top: 1px solid var(--line); }
.sx-av { width: 24px; height: 24px; border-radius: var(--r-xs); background: var(--graphite); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 900; flex: none; }
.sx-card-seller .ok { color: var(--success); }

.sx-side { display: grid; gap: .7rem; }
.sx-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.sx-box h3 { display: flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 900; color: var(--ink); margin: 0 0 .6rem; }
.sx-box h3::before { content: ""; width: 4px; height: 1em; background: var(--signal); }
.sx-box h3.sx-h-cert::before { display: none; } .sx-box h3.sx-h-cert .icon { color: var(--red); }
.sx-box p { font-size: .82rem; color: var(--muted); line-height: 1.9; margin: 0 0 .4rem; }
.sx-more { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; color: var(--red); }
.sx-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .84rem; }
.sx-contact li { display: flex; align-items: center; gap: .5rem; min-width: 0; } .sx-contact li > .icon { color: var(--muted); flex: none; }
.sx-contact a { color: var(--text); overflow-wrap: anywhere; } .sx-contact a:hover { color: var(--red); }
.sx-loc { display: flex; gap: .4rem; align-items: flex-start; } .sx-loc .icon { margin-top: .35rem; flex: none; }
.sx-mini-files { display: grid; gap: .4rem; }
.sx-mini-files a { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--text); padding: .4rem .2rem; border-bottom: 1px solid var(--line); }
.sx-mini-files a:last-child { border-bottom: 0; } .sx-mini-files a:hover { color: var(--red); } .sx-mini-files .icon { color: var(--muted); }
.sx-ft { font-size: .62rem; font-weight: 900; color: var(--red); background: var(--red-50); border-radius: var(--r-xs); padding: .15rem .35rem; flex: none; direction: ltr; }
.sx-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.sx-file { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: inherit; }
.sx-file:hover { border-color: var(--red-200); } .sx-file b { display: block; font-size: .86rem; color: var(--ink); } .sx-file small { font-size: .72rem; color: var(--muted); } .sx-file > .icon { color: var(--muted); }
.sx-sub { display: flex; align-items: center; gap: .4rem; font-size: .92rem; font-weight: 900; color: var(--ink); margin: .4rem 0 0; } .sx-sub .icon { color: var(--success); }
.sx-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; font-size: .84rem; }
.sx-checks li { display: flex; align-items: center; gap: .4rem; } .sx-checks .icon { color: var(--success); }
.sx-trust { margin-top: .4rem; }

@media (max-width: 1100px) {
  .sx-hero { grid-template-columns: 1fr; } .sx-cover { min-height: 150px; order: -1; } .sx-wave { display: none; }
  .sx-stats { grid-template-columns: repeat(3, 1fr); }
  .sx-body { grid-template-columns: 1fr; } .sx-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sx-id { grid-template-columns: 64px minmax(0, 1fr); padding: 1rem; } .sx-logo { width: 64px; height: 64px; } .sx-title h1 { font-size: 1.2rem; }
  .sx-cta .btn { flex: 1 1 100%; }
  .sx-stats { grid-template-columns: repeat(2, 1fr); } .sx-stats b { white-space: normal; }
  .sx-side, .sx-grid, .sx-files, .sx-checks { grid-template-columns: 1fr; }
}

/* ---------- Supplier analytics ---------- */
.spark-bars { width: 100%; height: 160px; display: block; }
.spark-bars .b1 { fill: var(--red); } .spark-bars .b2 { fill: var(--graphite); }
.legend::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: .35rem; vertical-align: -1px; }
.legend.b1::before { background: var(--red); } .legend.b2::before { background: var(--graphite); }
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.funnel > div { text-align: center; padding: .8rem .3rem; background: var(--surface-2); border-radius: var(--r-sm); position: relative; }
.funnel b { display: block; font-size: 1.15rem; font-weight: 900; color: var(--ink); } .funnel span { font-size: .72rem; color: var(--muted); }
@media (max-width: 700px) { .funnel { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Vendor badges (membership vs trust) ---------- */
.badge-ent { background: #1e1b4b; color: #fff; } .badge-warn { background: var(--warn-50); color: var(--warn); } .badge-info { background: #e0f2fe; color: #075985; }
.vbadges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.vbadge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; cursor: help; position: relative; border: 0; font-family: inherit; }
.vbadge .icon { width: 14px; height: 14px; }
.vbadge-group { display: inline-flex; gap: .3rem; align-items: center; } .vbadge-group > small { font-size: .68rem; color: var(--muted); }
.vbadge[data-tip]:hover::after, .vbadge[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; width: max-content; max-width: 280px; white-space: normal; font-size: .74rem; font-weight: 400; line-height: 1.8; color: #fff; background: var(--graphite); padding: .5rem .7rem; border-radius: var(--r-sm); box-shadow: var(--shadow); }

/* ---------- Supplier directory ---------- */
.dir { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.dir-filters { position: sticky; top: calc(var(--header-h) + 1rem); }
.dir-filters .field label { font-size: .78rem; }
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dir-card { display: grid; gap: .65rem; align-content: start; padding: 1rem; border-top: 3px solid var(--line); }
.dir-card.tier-pro { border-top-color: var(--brand, var(--red)); }
.dir-card.tier-gold, .dir-card.tier-premium { border-top-color: #d4a017; }
.dir-card.tier-enterprise { border-top-color: #1e1b4b; }
.dir-head { display: flex; gap: .7rem; align-items: center; color: inherit; }
.dir-head b { display: block; font-weight: 900; color: var(--ink); } .dir-head small { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; color: var(--muted); }
.dir-logo { width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; font-weight: 900; color: #fff; border: 1px solid var(--line); }
.dir-logo img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.dir-tag { margin: 0; font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-perks { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .74rem; color: var(--success); } .dir-perks span { display: inline-flex; align-items: center; gap: .2rem; }
@media (max-width: 1100px) { .dir { grid-template-columns: 1fr; } .dir-filters { position: static; } .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dir-grid { grid-template-columns: 1fr; } }

/* ---------- Store by membership level ---------- */
.sx-crown { width: 26px; height: 26px; color: #b8860b; margin-inline-end: .4rem; vertical-align: -3px; }
.sx.tier-pro .sx-hero { border-top: 3px solid var(--red); }
.sx.tier-gold .sx-hero, .sx.tier-premium .sx-hero { border-top: 3px solid #d4a017; background: linear-gradient(180deg, #fffaeb 0, var(--surface) 70px); }
.sx.tier-enterprise .sx-hero { border-top: 4px solid #1e1b4b; min-height: 250px; }
.sx.tier-enterprise .sx-cover { min-height: 250px; }
.sx.tier-enterprise .sx-logo { width: 104px; height: 104px; }
.sx-stats.basic { grid-template-columns: repeat(4, 1fr); }
.sx-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.sx-caps > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; }
.sx-caps dt { display: flex; align-items: center; gap: .4rem; font-weight: 900; color: var(--ink); font-size: .86rem; margin-bottom: .3rem; } .sx-caps dt .icon { color: var(--red); }
.sx-caps dd { margin: 0; font-size: .84rem; color: var(--text); }
.sx-team { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .5rem; }
.sx-team li { display: flex; align-items: center; gap: .55rem; } .sx-team b { display: block; font-size: .84rem; color: var(--ink); } .sx-team small { font-size: .72rem; color: var(--muted); }
.sx-lang summary { cursor: pointer; font-size: .82rem; color: var(--red); }
.vbadge-group .badge { margin: 0; }
@media (max-width: 1100px) { .sx-stats.basic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .sx-caps { grid-template-columns: 1fr; } }
.sx-title h1 { display: inline-flex; align-items: center; }
.dir-card .row .btn { white-space: nowrap; min-width: 0; }

/* ---------- Messenger (stage 7) ---------- */
.chat-folders { display: flex; gap: .25rem; margin-top: .6rem; overflow-x: auto; scrollbar-width: none; }
.chat-folders a { font-size: .76rem; padding: .3rem .6rem; border-radius: 999px; color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.chat-folders a:hover { background: var(--surface-2); color: var(--ink); }
.chat-folders a.on { background: var(--ink); color: #fff; }
.chat-item.muted-item b { color: var(--muted); }
.chat-item .subj .icon-xs, .icon-xs { width: 12px; height: 12px; vertical-align: -1px; }
.chip-mini { font-size: .66rem; padding: 0 .35rem; border: 1px solid var(--line-strong); border-radius: 999px; margin-inline-start: .2rem; }
.badge-sm { font-size: .66rem; padding: .05rem .4rem; }
.older-btn { align-self: center; }
.msg .bubble .quote { display: block; border-inline-start: 3px solid var(--signal); background: rgba(127,127,127,.12); padding: .25rem .55rem; margin-bottom: .35rem; border-radius: var(--r-xs); font-size: .78rem; color: inherit; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.flash-target .bubble { box-shadow: 0 0 0 3px var(--signal); transition: box-shadow .2s; }
.msg.deleted .bubble { background: transparent !important; color: var(--muted) !important; border-style: dashed !important; border-color: var(--line-strong) !important; }
.msg .deleted-note { font-size: .8rem; display: inline-flex; gap: .35rem; align-items: center; }
.msg .meta .edited { font-style: italic; }
.msg .txt { display: block; white-space: pre-wrap; }
.msg:not(.system) .bubble { white-space: normal; }
.msg .att-file { display: flex; gap: .6rem; align-items: center; padding: .5rem .6rem; margin-top: .35rem; border-radius: var(--r-sm); background: rgba(127,127,127,.12); color: inherit; min-width: 220px; }
.msg .att-file b { display: block; font-size: .82rem; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.msg .att-file small { font-size: .7rem; opacity: .8; }
.msg .att-img { display: block; margin-top: .35rem; }
.msg .att-img img { max-width: min(320px, 100%); max-height: 260px; border-radius: var(--r-sm); display: block; }
.msg .voice { display: flex; gap: .5rem; align-items: center; margin-top: .2rem; }
.msg .voice audio { height: 36px; max-width: 260px; }
.msg-actions > summary { opacity: 0; padding: 0 .2rem; color: var(--subtle); display: inline-flex; }
.msg:hover .msg-actions > summary, .msg-actions[open] > summary, .msg-actions > summary:focus-visible { opacity: 1; }
.msg-actions .menu { min-width: 190px; top: auto; bottom: calc(100% + 4px); }
.msg.mine .msg-actions .menu { inset-inline-end: auto; inset-inline-start: 0; }
.msg-actions form { margin: 0; }
.reply-bar, .file-bar, .rec-bar, .chat-locked { display: flex; gap: .5rem; align-items: center; padding: .45rem 1rem; background: var(--surface-2); border-top: 1px solid var(--line); font-size: .8rem; }
.reply-bar[hidden], .file-bar[hidden], .rec-bar[hidden] { display: none; }
.reply-bar .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); border-inline-start: 3px solid var(--signal); padding-inline-start: .5rem; }
.file-bar { flex-wrap: wrap; }
.file-bar .f { display: inline-flex; gap: .35rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .3rem .15rem .6rem; }
.file-bar .f button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 .2rem; }
.chat-locked { color: var(--muted); justify-content: center; padding: 1rem; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); animation: rec 1s infinite; }
@keyframes rec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.composer label.btn { cursor: pointer; height: 44px; }
.composer.dragging { outline: 2px dashed var(--signal); outline-offset: -4px; }
.grid-msg-new { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .grid-msg-new { grid-template-columns: 1fr; } }
.chip-line { display: flex; gap: .4rem; align-items: center; background: var(--surface-2); padding: .5rem .75rem; border-radius: var(--r-sm); font-size: .85rem; }
.narrow-card { max-width: 680px; }
.switch-row { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.switch-row input[type=checkbox] { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--signal); }
@media (max-width: 700px) { .hide-sm { display: none; } }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; max-width: 420px; }

/* ---------- AI assistant ---------- */
.ai { display: grid; grid-template-columns: 270px 1fr; height: calc(100vh - 64px - 3.5rem); min-height: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ai-side { border-inline-end: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .8rem; min-height: 0; background: var(--surface-2); }
.ai-sessions { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; }
.ai-session { display: flex; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: var(--r-sm); color: var(--text); font-size: .84rem; }
.ai-session .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-session:hover { background: var(--surface); color: var(--ink); }
.ai-session.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--signal); color: var(--ink); font-weight: 700; }
.ai-balance { border-top: 1px solid var(--line); padding-top: .8rem; display: flex; flex-direction: column; gap: .25rem; }
.ai-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ai-head { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ai-head h1 { font-size: 1.1rem; margin: 0 0 .2rem; display: flex; gap: .45rem; align-items: center; }
.ai-stream { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; background: var(--bg); }
.ai-welcome h2 { font-size: 1.05rem; margin: .5rem 0 1rem; }
.ai-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.ai-cap { display: flex; gap: .7rem; align-items: flex-start; text-align: start; padding: .85rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.ai-cap:hover { border-color: var(--line-strong); }
.ai-cap.on { border-color: var(--signal); box-shadow: var(--ring); }
.ai-cap .icon { flex: none; margin-top: .15rem; color: var(--signal); }
.ai-cap b { display: block; color: var(--ink); font-size: .88rem; }
.ai-cap small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.7; margin-top: .15rem; }
.ai-msg { display: flex; flex-direction: column; gap: .3rem; max-width: min(860px, 100%); }
.ai-msg.user { align-self: flex-start; max-width: min(620px, 85%); }
.ai-msg.user .ai-bubble { background: var(--graphite); color: #f2f2f3; border-color: var(--graphite); white-space: pre-wrap; }
.ai-msg.bot { align-self: stretch; }
.ai-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; font-size: .9rem; line-height: 1.95; overflow-wrap: anywhere; }
.ai-bubble.ai-error { color: var(--red); border-color: currentColor; background: var(--red-50); }
.ai-md h3 { font-size: .98rem; margin: .7rem 0 .3rem; } .ai-md h4 { font-size: .9rem; margin: .6rem 0 .25rem; }
.ai-md p { margin: .25rem 0; } .ai-md ul, .ai-md ol { margin: .25rem 0; padding-inline-start: 1.3rem; }
.ai-md code { background: var(--surface-2); padding: 0 .3rem; border-radius: 4px; font-size: .84em; }
.ai-table { border-collapse: collapse; margin: .5rem 0; font-size: .82rem; display: block; overflow-x: auto; max-width: 100%; }
.ai-table th, .ai-table td { border: 1px solid var(--line); padding: .35rem .55rem; text-align: start; white-space: nowrap; }
.ai-table th { background: var(--surface-2); font-weight: 700; }
.ai-typing { color: var(--muted); font-size: .82rem; }
.ai-foot { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .74rem; color: var(--muted); padding-inline: .3rem; }
.ai-review { display: inline-flex; gap: .3rem; align-items: center; color: var(--warn); font-weight: 700; }
.ai-evidence a { margin-inline-start: .4rem; }
.ai-foot .btn.on { color: var(--signal); }
.ai-composer { border-top: 1px solid var(--line); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--surface); }
.ai-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ai-row select { max-width: 340px; }
.ai-composer textarea { resize: vertical; min-height: 56px; }
.ai-optout { padding: .3rem 1rem .6rem; background: var(--surface); text-align: end; }
.m-3 { margin: 1.25rem; }
.pack { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); align-items: flex-start; }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; height: auto; } .ai-side { border-inline-end: 0; border-bottom: 1px solid var(--line); } .ai-sessions { max-height: 160px; } .ai-stream { min-height: 420px; } }
.meter { width: 100%; height: 8px; display: block; }
.meter .meter-bg { fill: var(--surface-2); } .meter .meter-ok { fill: var(--success); } .meter .meter-warn { fill: var(--signal); }
.msg .translation { margin-top: .45rem; padding-top: .4rem; border-top: 1px dashed currentColor; opacity: .92; }
.msg .translation small { display: block; font-size: .68rem; opacity: .75; margin-bottom: .15rem; }
.msg .translation span { display: block; white-space: pre-wrap; }

/* ---------- Languages ---------- */
:root:not([lang="fa"]):not([lang="ar"]) { --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial, "IRANSans", sans-serif; }
:root[lang="zh-CN"] { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; }
:root[lang="ar"] { --font: "IRANSans", "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif; }
:root[lang="zh-CN"] body { line-height: 1.75; word-break: normal; line-break: strict; }
:root[lang="ru"] body, :root[lang="tr"] body { hyphens: auto; }
/* Codes, phone numbers, amounts, URLs, SKUs and order numbers stay left-to-right in RTL pages. */
.ltr, code, kbd, samp, [data-ltr], input[type=email], input[type=tel], input[type=url] { direction: ltr; unicode-bidi: isolate; }
[dir="ltr"] .input.ltr, [dir="ltr"] .pd-info .en, [dir="ltr"] .pdx-en, [dir="ltr"] .pdx-specs .ltr-cell, [dir="ltr"] .sx-en { text-align: left; }
[dir="ltr"] .icon.flip, [dir="ltr"] .icon[data-dir] { transform: scaleX(-1); }
.lang-switch .menu form { margin: 0; }
.lang-switch-trigger { min-width: 116px; justify-content: flex-start; border-color: var(--line); background: var(--surface); }
.currency-switch-trigger { gap: .4rem; min-width: 92px; }
.currency-switch-trigger > span { flex: 1; text-align: center; }
.lang-switch-trigger:hover { border-color: var(--line-strong); background: var(--surface-2); }
.lang-switch-trigger > span { flex: 1; text-align: start; }
.lang-switch-chevron { opacity: .75; transition: transform .18s ease; }
.lang-switch[open] .lang-switch-chevron { transform: rotate(180deg); }
.lang-switch-flag { display: block; width: 28px; height: 21px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(15 23 42 / .1); }
.lang-switch-trigger .lang-switch-flag { width: 24px; height: 18px; }
details.dropdown .lang-switch-menu { min-width: 188px; padding: .5rem; border-radius: 14px; }
.lang-switch .menu .lang-switch-option { min-height: 46px; width: 100%; gap: .65rem; padding: .55rem .65rem; color: var(--text); text-align: start; }
.lang-switch-name { flex: 1; min-width: 0; unicode-bidi: isolate; }
.lang-switch-selected { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--signal); color: #fff; visibility: hidden; }
.lang-switch .menu button.on { background: var(--red-50); color: var(--ink); font-weight: 800; }
.lang-switch .menu button.on .lang-switch-selected { visibility: visible; }
.topbar .lang-switch .menu button { color: var(--text); }
.topbar .lang-switch .menu button:hover, .topbar .lang-switch .menu button.on { color: var(--ink); }
.topbar .lang-switch-trigger { border-color: rgb(255 255 255 / .16); background: transparent; }
.topbar .lang-switch-trigger:hover { border-color: rgb(255 255 255 / .32); background: rgb(255 255 255 / .07); }
.auth-lang { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.l10n-matrix td { vertical-align: top; min-width: 200px; }
.l10n-matrix td:first-child { min-width: 260px; max-width: 340px; }
.l10n-matrix td.empty textarea { border-color: var(--signal); }
.l10n-matrix td.machine textarea { background: var(--warn-50, #fff8e6); }
.l10n-matrix textarea { width: 100%; resize: vertical; min-height: 42px; font-size: .82rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.checklist li.ok .icon { color: var(--success); } .checklist li.no .icon { color: var(--red); }
.menu-wide { min-width: 280px; padding: .75rem; }
.tr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.tr-row:last-of-type { border-bottom: 0; }
.tr-src { background: var(--surface-2); padding: .6rem .75rem; border-radius: var(--r-sm); }
@media (max-width: 760px) { .tr-row { grid-template-columns: 1fr; } }

/* ---- Category picker (searchable; the tree can be very large) ---- */
.cat-picker { position: relative; }
.cat-picker-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.cat-picker-chips:empty { display: none; }
.chip-x { border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1; padding: 0 .1rem; cursor: pointer; }
.cat-picker-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 30; max-height: 320px; overflow-y: auto; margin: 0; padding: .25rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.cat-picker-list li { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .6rem; border-radius: var(--r-sm); cursor: pointer; }
.cat-picker-list li.on, .cat-picker-list li:hover { background: var(--bg); }
.cat-picker-list li b { font-weight: 600; font-size: .88rem; }
.cat-picker-list li small { color: var(--muted); font-size: .75rem; }
.cat-picker-list li.empty { color: var(--muted); cursor: default; }

/* ---------- Category mega menu (header drop-down + home-page explorer) ---------- */
.mega-trigger { display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1rem; border: 0; border-radius: var(--r);
  background: var(--ink); color: var(--surface); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; }
.mega-trigger:hover, .mega-trigger[aria-expanded="true"] { background: var(--red); color: #fff; }
.mega-trigger .icon { width: 18px; height: 18px; }
.mega-trigger-caret { transition: transform .2s var(--ease); }
.mega-trigger[aria-expanded="true"] .mega-trigger-caret { transform: rotate(180deg); }
.mega-drop { position: fixed; inset-inline: 0; top: var(--mega-top, 120px); z-index: 60;
  --mega-h: max(320px, min(640px, calc(100vh - var(--mega-top, 120px) - 24px))); }
@supports (height: 100dvh) { .mega-drop { --mega-h: max(320px, min(640px, calc(100dvh - var(--mega-top, 120px) - 24px))); } }
.mega-backdrop { position: fixed; inset: 0; top: auto; height: 0; }
.mega-shell { position: relative; }
.mega-sheet-head { display: none; }
.mega-slot { margin-top: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: mega-in .22s var(--ease) both; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-loading { display: flex; justify-content: center; gap: .4rem; padding: 3rem; }
.mega-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: mega-dot 1s infinite ease-in-out; }
.mega-loading span:nth-child(2) { animation-delay: .15s; } .mega-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes mega-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }

.mega { display: grid; grid-template-columns: 290px 1fr; grid-template-rows: minmax(0, 1fr); height: var(--mega-h, 600px); }
.mega-roots, .mega-panels { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mega-roots { margin: 0; padding: .6rem; list-style: none; overflow-y: auto; background: var(--surface-2); border-inline-end: 1px solid var(--line); }
.mega-root { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: var(--r); color: var(--text); font-size: .88rem; font-weight: 500; }
.mega-root:hover { color: var(--ink); background: var(--surface); }
.mega-root.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); }
.mega-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); transition: .15s; }
.mega-ico .icon { width: 17px; height: 17px; }
.mega-root.on .mega-ico { background: var(--signal); border-color: var(--signal); color: #fff; }
.mega-root-name { flex: 1; min-width: 0; line-height: 1.5; }
.mega-caret { width: 15px; height: 15px; color: var(--subtle); opacity: 0; transition: .15s; }
.mega-root.on .mega-caret, .mega-root:hover .mega-caret { opacity: 1; }
.mega-panels { min-width: 0; overflow-y: auto; }
.mega-panel { padding: 1.25rem 1.5rem 1.5rem; }
.mega-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.mega-head > div { flex: 1; min-width: 0; }
.mega-head h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.mega-head span { font-size: .8rem; color: var(--muted); }
.mega-back { display: none; }
.mega-all { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .45rem .85rem; border-radius: 999px; background: var(--red-50); color: var(--red); font-size: .82rem; font-weight: 600; }
.mega-all:hover { background: var(--red); color: #fff; }
.mega-all .icon { width: 15px; height: 15px; }
.mega-groups { columns: 3 210px; column-gap: 1.75rem; }
.mega-group { break-inside: avoid; margin-bottom: 1.35rem; }
.mega-group-title { display: block; margin-bottom: .45rem; color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.6; }
.mega-group-title:hover { color: var(--red); }
.mega-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.mega-group li a { display: block; padding: .15rem 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.mega-group li a:hover { color: var(--red); }
.mega-more { display: inline-block; margin-top: .3rem; font-size: .78rem; font-weight: 600; color: var(--red); }

/* Home page: the same explorer, always open, inside the page */
.mega-inline { --mega-h: 600px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }

[data-theme="dark"] .mega-all { background: rgb(255 85 85 / .14); color: var(--signal); }

@media (max-width: 1180px) {
  .mega-trigger span { display: none; }
  .mega-trigger { padding: 0 .75rem; }
}
/* Phones and tablets: a side drawer that slides in from the reading-start edge (right in RTL, left in LTR);
   pick an industry, then drill into it */
@media (max-width: 960px) {
  .mega-drop { position: fixed; inset: 0; z-index: 90; }
  .mega-backdrop { height: auto; inset: 0; background: rgb(15 15 18 / .5); animation: mega-fade .25s ease both; }
  @keyframes mega-fade { from { opacity: 0; } }
  .mega-shell { --mega-from: -100%; position: absolute; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto; width: min(88vw, 420px); max-width: none;
    padding: 0; height: 100%; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-lg);
    border-start-end-radius: 18px; border-end-end-radius: 18px; overflow: hidden; animation: mega-side .3s var(--ease) both; }
  [dir="rtl"] .mega-shell { --mega-from: 100%; }
  @keyframes mega-side { from { transform: translateX(var(--mega-from)); } to { transform: none; } }
  .mega-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; padding-top: max(.75rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
  .mega-slot { flex: 1; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; display: flex; }
  .mega-slot > .mega { flex: 1; }
  .mega { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .mega-drop .mega { height: 100%; }
  .mega-roots { background: var(--surface); border: 0; padding: .5rem; }
  .mega-root { padding: .75rem .65rem; }
  .mega-root.on { box-shadow: none; background: none; font-weight: 500; }
  .mega-root.on .mega-ico { background: var(--surface); border-color: var(--line); color: var(--muted); }
  .mega-caret { opacity: 1; }
  .mega-panels { display: none; }
  .mega.mega-drill .mega-roots { display: none; }
  .mega.mega-drill .mega-panels { display: block; }
  .mega-panel { padding: 1rem; }
  .mega-back { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
  .mega-head { gap: .6rem; }
  .mega-all span, .mega-all { font-size: .78rem; }
  .mega-groups { columns: 2 150px; }
  .mega-drop .mega-groups { columns: 1; }
  .mega-inline { height: auto; }
  .mega-inline .mega-panels { max-height: none; }
}
@media (max-width: 520px) { .mega-groups { columns: 1; } .mega-head span { display: none; } }
@media (prefers-reduced-motion: reduce) { .mega-slot, .mega-shell, .mega-backdrop { animation: none; } }
.mobile-nav-cats { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; border: 0; font: inherit; font-size: .84rem; font-weight: 600; padding: .3rem .75rem; border-radius: var(--r-sm); background: var(--ink); color: var(--surface); cursor: pointer; }
@media (max-width: 960px) { .header-inner .mega-trigger { display: none; } }

/* ---------- Location picker (map + reverse geocoding) ---------- */
.map-picker { display: grid; gap: .6rem; }
.map-picker-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.map-search { display: flex; gap: .4rem; flex: 1 1 320px; min-width: 0; }
.map-search .input { flex: 1; min-width: 0; }
.map-results { margin: 0; padding: .3rem; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); max-height: 220px; overflow-y: auto; }
.map-results button { display: block; width: 100%; padding: .55rem .7rem; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; font-size: .84rem; line-height: 1.6; text-align: start; cursor: pointer; }
.map-results button:hover, .map-results button:focus-visible { background: var(--surface-2); color: var(--ink); }
.map-canvas { position: relative; height: 340px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); direction: ltr; z-index: 0; }
.map-canvas:focus-within { border-color: var(--signal); }
.map-hint { position: absolute; z-index: 500; inset-inline: 0; bottom: .75rem; width: max-content; max-width: calc(100% - 1.5rem); margin-inline: auto; display: flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px; background: rgb(15 15 18 / .78); color: #fff; font-size: .8rem; pointer-events: none; direction: rtl; }
[dir="ltr"] .map-hint { direction: ltr; }
.map-hint .icon { width: 15px; height: 15px; }
.map-pin { background: none; border: 0; }
.map-pin-dot { position: absolute; inset-inline-start: 5px; top: 2px; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--signal); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / .3); }
.map-pin-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.map-picker.busy .map-pin-dot { animation: map-pulse .9s ease-in-out infinite; }
@keyframes map-pulse { 50% { transform: rotate(-45deg) translate(2px, -2px) scale(1.08); } }
.map-status { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.map-status[data-kind="ok"] { color: var(--success); }
.map-status[data-kind="warn"] { color: var(--warn, #b45309); }
.map-picker.busy .map-status::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-inline-end: .4rem; vertical-align: -1px; border: 2px solid var(--line); border-top-color: var(--signal); border-radius: 50%; animation: map-spin .7s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.input.autofilled, .select.autofilled { animation: map-fill 1.6s ease; }
@keyframes map-fill { 0%, 40% { background: color-mix(in srgb, var(--signal) 12%, var(--surface)); } }
.leaflet-container { font: inherit; font-size: .75rem; }
.leaflet-control-attribution { font-size: .68rem; }
[data-theme="dark"] .map-canvas .leaflet-tile-pane { filter: brightness(.85) contrast(1.05); }
@media (max-width: 640px) { .map-canvas { height: 280px; } .map-picker-bar { flex-wrap: nowrap; } .map-search { flex: 1 1 0; } .map-search .btn span, .map-picker-bar > .btn span { display: none; } .map-picker-bar > .btn { flex: none; border: 1px solid var(--line-strong); } }
@media (prefers-reduced-motion: reduce) { .map-picker.busy .map-pin-dot, .input.autofilled { animation: none; } }
.plain-list { margin: 0; padding: 0; list-style: none; }

/* ---------- Form feedback: money grouping, pinned errors ---------- */
.money-input { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
[dir="rtl"] .money-input { text-align: right; }
.has-error > .input, .has-error > .textarea, .has-error > .select, .has-error .row > .input, .has-error > .row > .select,
.has-error > input, .has-error > textarea, [data-row].has-error > .input { border-color: var(--red) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
.has-error > label { color: var(--red); }
.field-error-msg { display: flex; gap: .35rem; align-items: flex-start; margin-top: .3rem; font-size: .78rem; line-height: 1.7; color: var(--red); }
.field-error-msg::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-top: .2rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; }
[data-row].has-error { flex-wrap: wrap; }
[data-row].has-error > .field-error-msg { flex-basis: 100%; }
.flash-field { animation: flash-field 1.6s ease; border-radius: var(--r); }
@keyframes flash-field { 0%, 35% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 35%, transparent); background: color-mix(in srgb, var(--signal) 7%, transparent); } }
.locate-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.locate-link:hover { color: var(--signal); }
@media (prefers-reduced-motion: reduce) { .flash-field { animation: none; outline: 2px solid var(--signal); } }

/* ---------- Product studio: working-language fields, in-form AI, translations, action bar ---------- */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.field-head > label { margin: 0; }
.lang-tag { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: .35rem; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 600; vertical-align: middle; }
.lang-tag img { width: 14px; height: 10px; border-radius: 2px; object-fit: cover; }
.btn-ai { --ai-a: #6d4bd1; --ai-b: #d93640; color: #fff; background: linear-gradient(120deg, var(--ai-a), var(--ai-b)); border: 0; box-shadow: 0 6px 16px -8px rgb(109 75 209 / .7); }
.btn-ai:hover { color: #fff; filter: brightness(1.07); }
.btn-ai.is-busy { opacity: .85; cursor: progress; }
.btn-ai.is-busy .icon { animation: map-spin 1.1s linear infinite; }
.ai-status { font-size: .84rem; line-height: 1.9; padding: .7rem .9rem; border-radius: var(--r); background: var(--violet-50); color: var(--text); border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent); }
.card-body.ai-status { margin: 0 1.25rem 1rem; }
.ai-status[data-kind="warn"] { background: var(--warn-50); border-color: var(--warn-100); color: var(--warn); }
.ai-status[data-kind="ok"] b { color: var(--success); }
.spin { display: inline-block; width: .8rem; height: .8rem; vertical-align: -1px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: map-spin .7s linear infinite; opacity: .7; }
.ai-filled > .input, .ai-filled > .textarea, .ai-filled > .select, .ai-filled .row > .input, .ai-filled.input, .ai-filled.textarea, [data-row].ai-filled > .input { border-color: color-mix(in srgb, var(--violet) 55%, var(--line)); background: color-mix(in srgb, var(--violet) 4%, var(--surface)); }
.ai-tag { display: inline-block; margin-inline-start: .4rem; padding: 0 .4rem; border-radius: 999px; background: var(--violet-50); color: var(--violet); font-size: .66rem; font-weight: 700; vertical-align: middle; }
[data-row] > .ai-tag { align-self: center; }
.free-row > .input { flex: 1; }

.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.lang-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "flag name" "flag state" "cost cost"; column-gap: .65rem; row-gap: .15rem;
  padding: .85rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.lang-card:hover { border-color: var(--line-strong); }
.lang-card:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.lang-card:has(input:disabled) { cursor: default; }
.lang-card input { position: absolute; inset-block-start: .7rem; inset-inline-end: .7rem; width: 1.05rem; height: 1.05rem; accent-color: var(--red); }
.lang-flag { grid-area: flag; width: 36px; height: 27px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); align-self: center; }
.lang-name { grid-area: name; font-weight: 800; color: var(--ink); font-size: .92rem; padding-inline-end: 1.4rem; }
.lang-state { grid-area: state; display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--muted); }
.lang-cost { grid-area: cost; margin-top: .55rem; padding-top: .5rem; border-top: 1px dashed var(--line); font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lang-card[data-state="done"] .lang-state { color: var(--success); font-weight: 700; }
.lang-card[data-state="stale"] .lang-state { color: var(--warn); }
.lang-card[data-state="running"] { border-color: var(--violet); }
.lang-card[data-state="running"] .lang-state { color: var(--violet); }
.lang-card[data-state="error"] .lang-state { color: var(--red); }
.translate-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--line); }

.studio-actions { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; margin-top: .25rem; border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px); box-shadow: 0 -12px 28px -20px rgb(20 20 25 / .35); }
.studio-dirty { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.studio-dirty .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--success); }
.studio-dirty .when-dirty { display: none; }
.studio-actions.is-dirty .studio-dirty { color: var(--warn); font-weight: 700; }
.studio-actions.is-dirty .studio-dirty .dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-50); }
.studio-actions.is-dirty .when-dirty { display: inline; }
.studio-actions.is-dirty .when-clean { display: none; }
[data-media].is-loading { opacity: .6; pointer-events: none; transition: opacity .2s; }
@media (max-width: 640px) {
  .studio-actions { padding: .65rem .75rem; border-radius: 0; margin-inline: -1rem; }
  .studio-actions .row-wrap { width: 100%; }
  .studio-actions .btn { flex: 1; padding-inline: .6rem; }
  .btn-ai span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn-ai.is-busy .icon, .spin { animation: none; } }
.issue-list { margin: .35rem 0 0; padding-inline-start: 1.1rem; font-size: .86rem; line-height: 1.9; }
.issue-list li::marker { color: currentColor; }

/* ---------- Trust & membership seals (icon marks instead of text badges) ---------- */
.seal { position: relative; display: inline-flex; flex: none; width: 18px; height: 18px; vertical-align: -3px; color: #1d9bf0; cursor: help; border-radius: 50%; }
.seal svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .12)); }
.seal-lg { width: 26px; height: 26px; vertical-align: middle; }
.seal-verified { color: #1d9bf0; }
.seal-advanced { color: #0f9d63; }
.seal-org { color: #1e1f23; }
[data-theme="dark"] .seal-org { color: #e7e7ea; }
.seal-cert { color: #3b5bcc; }
.seal-pro { color: #d93640; }
.seal-gold { color: #e0a210; }
.seal-premium { color: #6d4bd1; }
.seal-enterprise { color: #1e1f23; }
[data-theme="dark"] .seal-enterprise { color: #3a3b42; }
.seal:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.seal[data-tip]:hover::after, .seal[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%); z-index: 40;
  width: max-content; max-width: 260px; white-space: normal; font-size: .74rem; font-weight: 400; line-height: 1.8; color: #fff; background: var(--graphite); padding: .5rem .7rem; border-radius: var(--r-sm); box-shadow: var(--shadow); pointer-events: none; text-align: start; }
[dir="ltr"] .seal[data-tip]:hover::after, [dir="ltr"] .seal[data-tip]:focus-visible::after { transform: translateX(-50%); }
.seal-line { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.vbadges .seal { margin-inline-end: .1rem; }

/* ---------- Supplier store header: full cover + identity bar ---------- */
.sh { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sh-banner { position: relative; aspect-ratio: 4 / 1; max-height: 340px; width: 100%; overflow: hidden; background: var(--graphite); display: grid; place-items: center; isolation: isolate; }
.sh-banner-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) saturate(1.1); opacity: .75; z-index: -1; }
.sh-banner-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.sh-banner::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgb(0 0 0 / .28), transparent); pointer-events: none; }
.sh-banner.no-img > .icon { width: 84px; height: 84px; stroke-width: 1.2; opacity: .5; }
.sh-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem 1.4rem; align-items: start; padding: 0 1.6rem 1.4rem; }
.sh-logo { position: relative; z-index: 2; width: 120px; height: 120px; margin-top: -56px; border-radius: 22px; background: var(--graphite); color: #fff; display: grid; place-items: center; overflow: hidden;
  border: 5px solid var(--surface); box-shadow: 0 14px 30px -14px rgb(20 20 25 / .45); }
.sh-logo.has-img { background: #fff; }
.sh-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sh-logo > .icon { width: 54px; height: 54px; stroke-width: 1.6; }
.sh-id { display: grid; gap: .45rem; min-width: 0; padding-top: 1rem; }
.sh-title { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .6rem; }
.sh-title h1 { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 900; color: var(--ink); line-height: 1.5; }
.sh-title .vbadges { gap: .3rem; }
.sh-en { font-size: .86rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.sh-tagline { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.9; max-width: 70ch; }
.sh-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.sh-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.sh .sx-tags { margin-top: .2rem; }
.sh-cta { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.1rem; min-width: 220px; }
.sh-cta form { display: contents; }
.sh-cta .btn { width: 100%; }
.sh-cta .btn-ghost.on { color: var(--success); }
@media (max-width: 900px) {
  .sh-bar { grid-template-columns: auto minmax(0, 1fr); padding: 0 1.1rem 1.1rem; }
  .sh-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; padding-top: .4rem; }
  .sh-cta .btn { width: auto; flex: 1 1 180px; }
}
@media (max-width: 560px) {
  .sh-banner { aspect-ratio: 3 / 1; }
  .sh-bar { grid-template-columns: 1fr; }
  .sh-logo { width: 92px; height: 92px; margin-top: -46px; border-radius: 18px; }
  .sh-id { padding-top: 0; }
}

/* ---------- Image crop dialog (logo / cover) ---------- */
.crop-dialog { width: min(920px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.1rem 1.2rem; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.crop-dialog::backdrop { background: rgb(15 15 18 / .6); }
.crop-dialog[open] { display: grid; gap: .8rem; }
.crop-head { display: flex; align-items: center; justify-content: space-between; }
.crop-head h3 { margin: 0; font-size: 1.05rem; }
.crop-stage { height: min(60vh, 480px); background: var(--surface-2); border-radius: var(--r); overflow: hidden; direction: ltr; }
.crop-stage img { display: block; max-width: 100%; }
.crop-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.media-preview.cover { aspect-ratio: 4 / 1; height: auto; }
.media-preview.cover img { object-fit: contain; background: var(--graphite); }
.role-add { margin: 1rem 1rem .25rem; }
.role-add button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 1px dashed #3a3c43; border-radius: var(--r-sm); background: #16171a; color: #d9dadd; font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.role-add button:hover { border-color: var(--signal); background: #1d1e22; }
.role-add .icon { flex: none; width: 18px; height: 18px; color: var(--signal); }
.role-add span { display: grid; line-height: 1.5; }
.role-add b { font-size: .8rem; color: #fff; }
.role-add small { font-size: .72rem; color: #9a9ca3; }
.sh-banner.no-img { aspect-ratio: auto; height: 150px; background: radial-gradient(circle at 20% 30%, #3a3c43 0, transparent 55%), linear-gradient(135deg, var(--graphite), #2f3036); }
.sh-banner.no-img::after { display: none; }
.dir-name { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.dir-name > a { color: var(--ink); }
.dir-name .vbadges { display: inline-flex; gap: .2rem; }
.dir-name .seal-lg { width: 20px; height: 20px; }
.upload-progress{position:relative;overflow:hidden;height:1.5rem;border-radius:999px;background:var(--surface-2,#eef1f5);min-width:10rem}.upload-progress span{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#e52f3f,#ff727d);transition:width .15s}.upload-progress b{position:relative;z-index:1;display:block;text-align:center;line-height:1.5rem;font-size:.72rem;color:var(--ink,#172033)}

/* ---------- ECASB marketplace home (2026 visual system) ---------- */
.topbar .container { min-height: 56px; align-items: center; padding-block: .45rem; }
.topbar-welcome { margin-inline: auto; font-size: .88rem; color: #e8e8ea; }
.topbar-supplier { color: #e8e8ea; }
.topbar-join { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: var(--r-sm); background: var(--signal); font-weight: 800; }
.topbar-join:hover { background: var(--red); }
.site-header { box-shadow: 0 8px 24px rgb(24 26 31 / .04); }
.header-inner { height: 76px; gap: 1.1rem; }
.header-inner .logo img { height: 44px; }
.mega-trigger { order: 1; min-width: 156px; justify-content: center; background: var(--graphite); color: #fff; }
.mega-trigger:hover, .mega-trigger[aria-expanded="true"] { background: var(--graphite); color: #fff; box-shadow: 0 8px 22px rgb(29 30 35 / .18); }
.main-nav { order: 2; }
.header-search { order: 3; max-width: 480px; }
.header-actions { order: 4; }

.ec-home { background: #fff; }
[data-theme="dark"] .ec-home { background: var(--bg); }
.ec-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 18% 34%, rgb(255 88 98 / .15), transparent 28%), linear-gradient(135deg, #fff 0, #fff8f8 52%, #f7f8fb 100%); border-bottom: 1px solid var(--line); }
.ec-hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -6%; width: 42%; background: linear-gradient(145deg, transparent 20%, rgb(255 77 88 / .07) 20% 55%, transparent 55%); z-index: -1; }
[data-theme="dark"] .ec-hero { background: radial-gradient(circle at 18% 34%, rgb(255 88 98 / .16), transparent 28%), var(--bg); }
.ec-hero-grid { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: 4rem; }
.ec-hero-copy { max-width: 710px; }
.ec-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border-radius: 999px; background: var(--red-50); color: var(--red); font-size: .82rem; font-weight: 800; }
.ec-hero h1 { max-width: 14ch; margin: 1.2rem 0 .85rem; color: var(--ink); font-size: clamp(2.35rem, 4.6vw, 4.3rem); line-height: 1.24; font-weight: 950; letter-spacing: -.035em; }
.ec-hero-copy > p { max-width: 62ch; color: var(--muted); font-size: 1.04rem; line-height: 2; }
.ec-hero-search { display: flex; align-items: stretch; gap: .55rem; max-width: 680px; margin-top: 1.5rem; }
.ec-hero-search .suggest-wrap { display: flex; align-items: center; min-height: 58px; padding-inline: 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.ec-hero-search .suggest-wrap:focus-within { border-color: var(--signal); box-shadow: var(--ring); }
.ec-hero-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding-inline: .7rem; }
.ec-hero-actions { display: flex; gap: .6rem; margin-top: .7rem; }
.ec-hero-benefits { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .79rem; }
.ec-hero-benefits li { display: flex; align-items: center; gap: .35rem; }
.ec-hero-benefits .icon { color: var(--signal); }
.ec-rfq-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.ec-rfq-globe { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, transparent 55%, rgb(255 75 86 / .08) 56% 57%, transparent 58%), repeating-radial-gradient(circle, transparent 0 17px, rgb(255 75 86 / .08) 18px 19px); opacity: .9; }
.ec-rfq-card { position: relative; z-index: 2; width: min(100%, 375px); padding: 1.2rem; border: 1px solid rgb(255 255 255 / .8); border-radius: 22px; background: rgb(255 255 255 / .94); box-shadow: 0 30px 80px rgb(37 28 31 / .18); color: #25262b; }
.ec-rfq-card-head { display: flex; align-items: center; gap: .75rem; padding-bottom: .9rem; border-bottom: 1px solid #ececef; }
.ec-rfq-card-head b, .ec-rfq-card-head small { display: block; }
.ec-rfq-card-head small { color: #74757b; font-size: .72rem; }
.ec-rfq-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff0f1; color: var(--red); }
.ec-rfq-status { display: grid; gap: .55rem; margin: 1rem 0; padding: 0; list-style: none; }
.ec-rfq-status li { display: flex; gap: .7rem; align-items: center; padding: .65rem; border-radius: 11px; background: #f7f7f9; }
.ec-rfq-status li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #8e9097; }
.ec-rfq-status li.done > span { background: #e7f7ef; color: #16845a; }
.ec-rfq-status b, .ec-rfq-status small { display: block; }
.ec-rfq-status b { font-size: .82rem; }.ec-rfq-status small { color: #777980; font-size: .69rem; }
.ec-rfq-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: .6rem; width: 210px; padding: .7rem .85rem; border: 1px solid rgb(255 255 255 / .8); border-radius: 14px; background: rgb(255 255 255 / .94); box-shadow: 0 15px 38px rgb(37 28 31 / .14); color: #24252a; }
.ec-rfq-float > .icon { color: var(--signal); }.ec-rfq-float b, .ec-rfq-float small { display: block; }.ec-rfq-float b { font-size: .76rem; }.ec-rfq-float small { font-size: .67rem; color: #777980; }
.ec-rfq-float-one { inset-block-start: 12%; inset-inline-start: -3%; }.ec-rfq-float-two { inset-block-end: 9%; inset-inline-end: -2%; }
.ec-metrics { position: relative; z-index: 3; margin-top: -26px; }
.ec-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 45px rgb(32 35 42 / .1); }
.ec-metric-grid > div { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .65rem; padding: 1.25rem 1.5rem; border-inline-start: 1px solid var(--line); }
.ec-metric-grid > div:first-child { border-inline-start: 0; }.ec-metric-grid .icon { color: var(--signal); }.ec-metric-grid b { color: var(--ink); font-size: 1.45rem; }.ec-metric-grid span { color: var(--muted); font-size: .78rem; }
.ec-section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.ec-section-head > div > span { display: inline-block; margin-bottom: .25rem; color: var(--signal); font-size: .78rem; font-weight: 900; }
.ec-section-head h2 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); }.ec-section-head p { max-width: 64ch; }
.ec-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .7rem; }
.ec-category-card { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 1rem .55rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s; }
.ec-category-card:hover { transform: translateY(-4px); border-color: var(--red-200); box-shadow: var(--shadow); color: var(--red); }.ec-category-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--red-50); color: var(--signal); }.ec-category-card b { font-size: .84rem; line-height: 1.6; }.ec-category-card small { color: var(--muted); font-size: .68rem; }
.ec-process-section { background: linear-gradient(180deg, #fff, #fff8f8); border-block: 1px solid var(--line); }[data-theme="dark"] .ec-process-section { background: var(--surface); }
.ec-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: ec-step; }
.ec-process li { position: relative; min-height: 180px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }.ec-process li::before { counter-increment: ec-step; content: counter(ec-step); position: absolute; inset-block-start: -.65rem; inset-inline-end: .75rem; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: #fff; font-size: .72rem; font-weight: 900; }.ec-process li > span { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: .8rem; border-radius: 13px; background: var(--red-50); color: var(--signal); }.ec-process b, .ec-process small { display: block; }.ec-process b { color: var(--ink); }.ec-process small { margin-top: .35rem; color: var(--muted); line-height: 1.7; }
.ec-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-supplier-section { background: var(--surface-2); border-block: 1px solid var(--line); }
.ec-rfq-banner { min-height: 390px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border-radius: 24px; background: radial-gradient(circle at 18% 50%, #4a4b52, transparent 35%), linear-gradient(110deg, #16171b, #282a31); color: #d8d9dd; box-shadow: var(--shadow-lg); }.ec-rfq-banner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); }.ec-rfq-banner p { max-width: 64ch; }.ec-rfq-banner ul { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; font-size: .8rem; }.ec-rfq-banner li { display: flex; align-items: center; gap: .35rem; }.ec-rfq-banner li .icon { color: var(--signal); }
.ec-rfq-banner-art { position: relative; min-height: 250px; display: grid; place-items: center; }.ec-rfq-banner-art > span { width: 126px; height: 126px; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(145deg, #ff727a, #cf2836); color: #fff; transform: rotate(-8deg); box-shadow: 0 30px 60px rgb(0 0 0 / .28); }.ec-rfq-banner-art > span .icon { width: 56px; height: 56px; }.ec-rfq-banner-art i { position: absolute; width: 220px; height: 54px; border: 1px solid rgb(255 255 255 / .18); border-radius: 12px; background: rgb(255 255 255 / .08); transform: translate(22%, 75%); }.ec-rfq-banner-art i:nth-child(2) { transform: translate(4%, 175%); }.ec-rfq-banner-art i:nth-child(3) { transform: translate(-14%, 275%); }
.ec-ai-section { background: #fff8f8; border-block: 1px solid var(--line); }[data-theme="dark"] .ec-ai-section { background: var(--surface); }
.ec-ai-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }.ec-ai-grid article { min-height: 190px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }.ec-ai-grid article > .icon { width: 32px; height: 32px; margin-bottom: .9rem; color: var(--signal); }.ec-ai-grid b { display: block; color: var(--ink); }.ec-ai-grid p { margin: .45rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.ec-membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.ec-membership article { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; min-height: 270px; padding: 2rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, var(--surface), var(--red-50)); }.ec-membership article > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--surface); color: var(--signal); box-shadow: var(--shadow-sm); }.ec-membership small { color: var(--signal); font-weight: 900; }.ec-membership h2 { margin: .3rem 0 .7rem; font-size: 1.35rem; }.ec-membership ul { margin: 0 0 1rem; padding-inline-start: 1.1rem; color: var(--muted); font-size: .82rem; }
.ec-final-cta { padding-bottom: 0; }.ec-final-cta .container { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.3rem 3rem; border-radius: 22px 22px 0 0; background: linear-gradient(110deg, #ff5e66, #d72e3c); color: #fff; }.ec-final-cta h2 { margin: 0; color: #fff; }.ec-final-cta p { margin: .4rem 0 0; color: rgb(255 255 255 / .86); }.ec-final-cta .container > div:last-child { display: flex; gap: .65rem; flex-wrap: wrap; }

.mega-panel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.4rem; }.mega-rfq { align-self: start; display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem; border-radius: var(--r); background: linear-gradient(160deg, var(--graphite), #353740); color: #d7d8dc; }.mega-rfq-art { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--signal); color: #fff; }.mega-rfq small { color: var(--signal); }.mega-rfq b { color: #fff; }.mega-rfq p { margin: 0 0 .5rem; color: #b9bac0; font-size: .75rem; line-height: 1.8; }.mega-guide { display: flex; align-items: center; justify-content: space-between; padding-top: .7rem; border-top: 1px solid rgb(255 255 255 / .13); color: #fff; font-size: .75rem; }

@media (max-width: 1180px) { .ec-category-grid { grid-template-columns: repeat(4, 1fr); }.ec-ai-grid { grid-template-columns: repeat(3, 1fr); }.ec-product-grid { grid-template-columns: repeat(3, 1fr); }.main-nav a { padding-inline: .45rem; }.topbar-welcome { margin-inline: 0; }.mega-panel-layout { grid-template-columns: 1fr; }.mega-rfq { display: none; } }
@media (max-width: 960px) { .ec-hero-grid { grid-template-columns: 1fr; }.ec-rfq-visual { min-height: 430px; }.ec-metric-grid { grid-template-columns: repeat(2, 1fr); }.ec-metric-grid > div:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--line); }.ec-metric-grid > div:nth-child(4) { border-top: 1px solid var(--line); }.ec-process { grid-template-columns: repeat(3, 1fr); }.ec-rfq-banner { grid-template-columns: 1fr; }.ec-rfq-banner-art { min-height: 180px; }.ec-membership-grid { grid-template-columns: 1fr; }.ec-final-cta .container { align-items: flex-start; flex-direction: column; }.ec-supplier-grid { grid-template-columns: repeat(2, 1fr); }.ec-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .ec-hero-grid { min-height: 0; padding-block: 3rem; }.ec-hero h1 { font-size: 2.2rem; }.ec-hero-search { flex-direction: column; }.ec-hero-actions { flex-direction: column; }.ec-hero-actions .btn { width: 100%; }.ec-rfq-visual { display: none; }.ec-metrics { margin-top: 0; }.ec-metric-grid { border-radius: 0; border-inline: 0; box-shadow: none; }.ec-metric-grid > div { grid-template-columns: auto 1fr; padding: 1rem; }.ec-metric-grid span { grid-column: 2; }.ec-category-grid { grid-template-columns: repeat(2, 1fr); }.ec-process { grid-template-columns: 1fr; }.ec-process li { min-height: 140px; }.ec-ai-grid { grid-template-columns: 1fr; }.ec-supplier-grid, .ec-product-grid { grid-template-columns: 1fr; }.ec-rfq-banner { padding: 1.5rem; }.ec-rfq-banner-art { display: none; }.ec-membership article { grid-template-columns: 1fr; }.ec-final-cta .container { padding: 2rem 1.2rem; border-radius: 0; }.topbar-welcome, .topbar-supplier { display: none; } }
/* RFQ per-line sourcing */
.rfq-advanced { border-top: 1px dashed var(--line); padding-block-start: .75rem; }
.rfq-advanced > summary { color: var(--red); cursor: pointer; font-size: .85rem; font-weight: 700; }
.rfq-reference-image { block-size: 72px; inline-size: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-sm); }
.rfq-item.needs-review { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn-50); }
.rfq-item.ai-suggested { border-inline-start: 4px solid var(--info); }
.rfq-mode-card { position: sticky; inset-block-start: 76px; z-index: 3; }
.segmented { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .45rem .8rem; border-radius: var(--r-xs); font-size: .82rem; font-weight: 700; }
.segmented input:checked + span { color: #fff; background: var(--red); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio-list { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; }
.stack-xs { display: grid; gap: .35rem; }
.textarea-sm { min-block-size: 72px; }
.comparison-insights { display: grid; gap: .6rem; border-block-end: 1px solid var(--line); background: var(--success-50); }
@media (max-width: 700px) {
  .rfq-mode-card { position: static; }
  .rfq-mode-card .between { align-items: stretch; }
  .segmented { inline-size: 100%; }
  .segmented label { flex: 1; text-align: center; }
}
.multi-select { min-block-size: 7rem; }
.recipient-items { display: grid; gap: .35rem; margin-block-start: .65rem; }
.recipient-item { align-items: center; display: flex; flex-wrap: wrap; gap: .35rem; }
.score-mini { background: var(--surface-2); border-radius: 999px; color: var(--muted); font-size: .72rem; padding: .15rem .45rem; }
/* ---------- Business radar ---------- */
.radar-page-head { align-items: center; }
.radar-page-title { max-inline-size: 70ch; }
.radar-page-title .eyebrow { margin-block-end: .25rem; }
.radar-page-title h1 { margin: 0; }
.radar-page-title p { margin: .25rem 0 0; color: var(--muted); }
.radar-total { display: flex; align-items: center; gap: .75rem; min-inline-size: 9.5rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.radar-total-icon { display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; flex: none; border-radius: var(--r-sm); color: var(--red); background: var(--red-50); }
.radar-total-icon .icon { inline-size: 1.25rem; block-size: 1.25rem; }
.radar-total > span:last-child { display: grid; line-height: 1.25; }
.radar-total b { color: var(--ink); font-size: 1.25rem; }
.radar-total small { color: var(--muted); font-size: .72rem; }
.radar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 1rem; padding: .65rem .75rem; }
.radar-updated { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .78rem; }
.radar-updated .icon { color: var(--subtle); }
.radar-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin-block: 1rem; }
.radar-counts > div { display: flex; align-items: center; gap: .65rem; min-inline-size: 0; padding: .8rem .9rem; }
.radar-counts .sq { inline-size: .55rem; block-size: .55rem; flex: none; border-radius: 50%; background: var(--signal); }
.radar-counts b { color: var(--ink); font-size: 1.15rem; }
.radar-counts span:last-child { min-inline-size: 0; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.radar-upgrade { display: flex; align-items: center; gap: .85rem; }
.radar-upgrade > .icon { flex: none; color: var(--info); }
.radar-upgrade > div { flex: 1; }
.radar-upgrade p { margin: .2rem 0 0; }
.radar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.radar-card { position: relative; display: flex; flex-direction: column; min-inline-size: 0; overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.radar-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.radar-card.is-new { border-inline-start: 3px solid var(--signal); }
.radar-card-head { display: flex; align-items: center; justify-content: space-between; gap: .85rem; padding: 1rem 1.1rem 0; }
.radar-labels { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.radar-kind { color: var(--red); font-size: .75rem; font-weight: 750; }
.radar-card-copy { padding-inline: 1.1rem; }
.radar-card-copy h2 { margin: 0 0 .3rem; color: var(--ink); font-size: 1.04rem; line-height: 1.65; }
.radar-card-copy p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.85; }
.radar-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; margin: .1rem 1.1rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.radar-evidence div { min-inline-size: 0; }
.radar-evidence dt { color: var(--muted); font-size: .68rem; }
.radar-evidence dd { margin: .15rem 0 0; color: var(--text); font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; }
.radar-reason { display: flex; align-items: flex-start; gap: .55rem; margin-inline: 1.1rem; padding: .7rem .75rem; border-radius: var(--r-sm); color: var(--text); background: var(--info-50); font-size: .78rem; line-height: 1.7; }
.radar-reason > .icon { inline-size: 1rem; block-size: 1rem; flex: none; margin-block-start: .2rem; color: var(--info); }
.radar-reason > div { display: grid; gap: .1rem; }
.radar-reason span { color: var(--muted); }
.radar-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-block-start: auto; padding: 1rem 1.1rem; border-block-start: 1px solid var(--line); }
.radar-actions form:first-child { flex: 1; }
.radar-actions form:first-child .btn { inline-size: 100%; }
.radar-ai { display: flex; align-items: center; gap: 1rem; margin-block-start: 1.25rem; padding: 1.15rem; overflow: hidden; }
.radar-ai-icon { display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; flex: none; border-radius: var(--r); color: var(--violet); background: var(--violet-50); }
.radar-ai-icon .icon { inline-size: 1.45rem; block-size: 1.45rem; }
.radar-ai-copy { flex: 1; min-inline-size: 0; }
.radar-ai-copy .eyebrow { margin: 0; color: var(--violet); }
.radar-ai h2 { margin: .2rem 0; font-size: 1.08rem; }
.radar-ai p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.radar-ai-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.radar-admin-grid { grid-template-columns: minmax(0, 1.8fr) minmax(16rem, .8fr); align-items: start; }
.radar-admin-form .card-head h2, .radar-guidelines .card-head h2 { margin: 0; font-size: 1rem; }
.radar-admin-form .card-head p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.radar-admin-form .card-body { padding-block-start: 1rem; }
.radar-guidelines { position: sticky; inset-block-start: 5rem; }
.radar-guidelines .card-head h2 { display: flex; align-items: center; gap: .45rem; }
.radar-guidelines .card-head .icon { color: var(--success); }
.radar-guidelines .issue-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.radar-guidelines .issue-list li { position: relative; padding-inline-start: 1rem; color: var(--muted); }
.radar-guidelines .issue-list li::before { content: ""; position: absolute; inset-block-start: .7em; inset-inline-start: 0; inline-size: .38rem; block-size: .38rem; border-radius: 50%; background: var(--signal); }
@media (max-width: 1000px) {
  .radar-admin-grid { grid-template-columns: 1fr; }
  .radar-guidelines { position: static; }
}
@media (max-width: 800px) {
  .radar-page-head { align-items: stretch; }
  .radar-total { align-self: flex-start; }
  .radar-grid { grid-template-columns: 1fr; }
  .radar-toolbar { align-items: flex-start; flex-direction: column; }
  .radar-ai, .radar-upgrade { align-items: stretch; flex-direction: column; }
  .radar-ai-icon { align-self: flex-start; }
}
@media (max-width: 520px) {
  .radar-total { inline-size: 100%; }
  .radar-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-card-head { align-items: flex-start; }
  .radar-evidence { grid-template-columns: 1fr; }
  .radar-actions form { flex: 1; }
  .radar-actions form:last-child { flex: 0 0 auto; }
  .radar-ai-actions { align-items: stretch; flex-direction: column; }
  .radar-ai-actions .btn { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-card { transition: none; }
  .radar-card:hover { transform: none; }
}

/* ---------- Procurement intelligence ---------- */
.radar-toolbar-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.intel-tabs { display: flex; gap: .3rem; margin-block: 1rem; padding: .3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow-x: auto; scrollbar-width: thin; }
.intel-tabs a { flex: 0 0 auto; padding: .55rem .8rem; border-radius: var(--r-sm); color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.intel-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.intel-tabs a.on { color: #fff; background: var(--graphite); }
.intel-filter { display: grid; grid-template-columns: minmax(12rem, 1.5fr) minmax(10rem, 1fr) minmax(7rem, .45fr) auto; align-items: end; gap: .75rem; margin-block-end: 1rem; padding: .85rem; }
.intel-filter .btn { min-block-size: 44px; }
.intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.intel-supplier { display: flex; flex-direction: column; gap: .85rem; padding: 1.05rem; }
.intel-supplier > header { display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem; }
.intel-supplier h2 { margin: .45rem 0 .15rem; font-size: 1.05rem; }
.intel-supplier header p, .intel-supplier > p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.intel-explain { display: grid; gap: .15rem; padding: .65rem .75rem; border-radius: var(--r-sm); background: var(--surface-2); font-size: .78rem; }
.intel-explain span { color: var(--muted); }
.intel-trust { display: flex; align-items: center; gap: .7rem; }
.intel-trust > div { min-inline-size: 0; }
.intel-trust p { margin: .15rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.7; }
.intel-supplier details { border-block-start: 1px solid var(--line); padding-block-start: .7rem; }
.intel-supplier summary, .intel-memory summary { color: var(--red); cursor: pointer; font-size: .78rem; font-weight: 700; }
.intel-sources { display: grid; gap: .5rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.intel-sources li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .55rem; border-radius: var(--r-xs); background: var(--surface-2); font-size: .75rem; }
.intel-sources li span { color: var(--muted); }
.intel-risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.intel-risk { padding: 1rem; border-block-start: 3px solid var(--line-strong); }
.intel-risk.severity-medium { border-block-start-color: var(--warn); }
.intel-risk.severity-high, .intel-risk.severity-critical { border-block-start-color: var(--red); }
.intel-risk > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.intel-risk h2 { margin: .75rem 0 .3rem; font-size: 1rem; }
.intel-risk > p { color: var(--muted); font-size: .82rem; line-height: 1.85; }
.intel-risk dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0; padding: .65rem; border-radius: var(--r-sm); background: var(--surface-2); }
.intel-risk dt { color: var(--muted); font-size: .66rem; }
.intel-risk dd { margin: .15rem 0 0; font-size: .75rem; font-weight: 700; overflow-wrap: anywhere; }
.intel-agent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.2rem; }
.intel-agent-icon { display: grid; place-items: center; inline-size: 3.5rem; block-size: 3.5rem; border-radius: var(--r); color: var(--violet); background: var(--violet-50); }
.intel-agent-icon .icon { inline-size: 1.7rem; block-size: 1.7rem; }
.intel-agent h2 { margin: .2rem 0; }
.intel-agent p { margin: 0; color: var(--muted); }
.intel-memory { display: grid; gap: .75rem; }
.intel-memory article { padding: .9rem 1rem; }
.intel-memory header, .intel-memory header > div, .intel-memory-meta { display: flex; align-items: center; gap: .6rem; }
.intel-memory header { justify-content: space-between; }
.intel-memory header > div { flex-wrap: wrap; }
.intel-memory header span, .intel-memory-meta { color: var(--muted); font-size: .78rem; }
.intel-memory-meta { margin-block: .5rem; }
.intel-memory details { border-block-start: 1px solid var(--line); padding-block-start: .65rem; }
.health-layout { display: grid; gap: 1rem; }
.health-score { display: flex; align-items: center; gap: .9rem; padding: 1rem; }
.health-score .score-ring { inline-size: 64px; block-size: 64px; font-size: 1rem; }
.health-score h2 { margin: 0; }
.health-score p { margin: .2rem 0 0; color: var(--muted); }
.health-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
.health-metrics article { padding: .85rem; }
.health-metrics header { display: flex; align-items: center; justify-content: space-between; margin-block-end: .6rem; }
.health-metrics header span { color: var(--red); font-weight: 800; }
.health-metrics p { margin: .55rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.7; }
.intel-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.intel-admin-grid > form:last-child { grid-column: 1 / -1; }
.intel-admin-grid .card-head h2 { margin: 0; font-size: 1rem; }
.intel-admin-grid .card-head p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
@media (max-width: 1000px) {
  .intel-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intel-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intel-admin-grid { grid-template-columns: 1fr; }
  .intel-admin-grid > form:last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .radar-toolbar-meta, .intel-filter { align-items: stretch; flex-direction: column; }
  .intel-filter { grid-template-columns: 1fr; }
  .intel-grid, .intel-risk-grid { grid-template-columns: 1fr; }
  .intel-agent { grid-template-columns: 1fr; }
  .intel-agent-icon { justify-self: start; }
  .intel-agent .btn { inline-size: 100%; }
}
@media (max-width: 480px) {
  .intel-supplier > header { align-items: flex-start; }
  .intel-sources li { align-items: flex-start; flex-direction: column; }
  .intel-risk dl { grid-template-columns: 1fr; }
}
/* Product purchase requests */
.purchase-product-summary,.purchase-request-row{display:flex;align-items:center;gap:var(--space-4)}
.purchase-product-summary img,.purchase-request-row img{inline-size:96px;block-size:96px;object-fit:cover;border-radius:var(--radius-md);border:1px solid var(--border)}
.purchase-product-summary h2,.purchase-request-row h3{margin:.35rem 0}
@media(max-width:640px){.purchase-product-summary,.purchase-request-row{align-items:flex-start;flex-wrap:wrap}.purchase-request-row .btn{inline-size:100%}}
.plan-summary{display:block;max-inline-size:16rem;margin:.5rem auto;color:var(--muted);font-size:.78rem;font-weight:400;line-height:1.65}
/* ── Executive admin dashboard ───────────────────────────────────────── */
.admin-dashboard{--brand:var(--red);--brand-soft:var(--red-50);--border:var(--line);--border-strong:var(--line-strong);--radius:var(--r);--warning:var(--warn);--danger:#c92f3a;--danger-soft:var(--red-50);--accent:var(--info);--shadow-xs:var(--shadow-sm);display:grid;gap:18px;color:var(--ink)}
.admin-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 2px 2px}
.admin-dashboard-head h1{font-size:clamp(1.45rem,2.5vw,2rem);margin:5px 0 7px}
.admin-dashboard-head p{margin:0;color:var(--muted)}
.admin-dashboard-head .eyebrow{display:flex;align-items:center;gap:7px;color:var(--brand);font-size:.8rem;font-weight:800}
.admin-dashboard-head .eyebrow svg,.admin-refresh-time+svg{width:17px;height:17px}
.admin-refresh-time{display:block;color:var(--muted);font-size:.74rem;margin-top:8px}
.admin-period-form{display:flex;align-items:flex-end;gap:8px;padding:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.admin-period-form label{display:grid;gap:4px;font-size:.72rem;color:var(--muted)}
.admin-period-form input{width:142px;height:36px;padding:0 9px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}
.admin-period-presets{display:flex;gap:3px;padding:3px;border-radius:8px;background:var(--surface-2)}
.admin-period-chip{padding:7px 9px;border-radius:6px;color:var(--muted);font-size:.74rem;font-weight:750;white-space:nowrap}
.admin-period-chip.active,.admin-period-chip:hover{background:var(--surface);color:var(--brand);box-shadow:var(--shadow-xs)}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-kpi{position:relative;display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto auto;gap:2px 10px;min-height:132px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);color:var(--ink);overflow:hidden;transition:transform .15s ease,border-color .15s ease}
.admin-kpi:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--brand) 30%,var(--border))}
.admin-kpi:after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--border)}
.admin-kpi-brand:after{background:var(--brand)}.admin-kpi-success:after{background:var(--success)}.admin-kpi-accent:after{background:var(--accent)}.admin-kpi-danger:after{background:var(--danger)}
.admin-kpi-icon{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--brand-soft);color:var(--brand)}
.admin-kpi-success .admin-kpi-icon{background:var(--success-soft);color:var(--success)}.admin-kpi-danger .admin-kpi-icon{background:var(--danger-soft);color:var(--danger)}
.admin-kpi-icon svg{width:21px;height:21px}.admin-kpi-label{font-size:.78rem;color:var(--muted);font-weight:700}.admin-kpi>strong{font-size:1.48rem;line-height:1.25}
.admin-kpi-change{grid-column:1/-1;display:flex;align-items:center;gap:4px;margin-top:10px;font-size:.75rem;font-weight:800}.admin-kpi-change svg{width:14px;height:14px}.admin-kpi-change small{font-weight:500;color:var(--muted)}
.admin-kpi-change.positive{color:var(--success)}.admin-kpi-change.negative{color:var(--danger)}.admin-kpi-change.neutral{color:var(--muted)}
.admin-dashboard-row{display:grid;gap:14px}.admin-dashboard-row-main{grid-template-columns:minmax(0,2.15fr) minmax(280px,.85fr)}.admin-dashboard-row-equal{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-dashboard-row-thirds{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-widget{min-width:0;overflow:hidden}.admin-widget .card-head{padding:17px 18px;border-bottom:1px solid var(--border);align-items:flex-start}.admin-widget .card-head h2{font-size:1rem;margin:0 0 4px}.admin-widget .card-head p{font-size:.74rem;margin:0;color:var(--muted)}
.admin-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;font-size:.69rem;color:var(--muted)}.admin-legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline-end:5px;background:currentColor}
.series-rfq{color:var(--brand)!important}.series-product{color:#4387e8!important}.series-supplier{color:var(--success)!important}.series-buyer{color:#8b5cf6!important}
.admin-trend-chart{display:flex;align-items:stretch;gap:7px;height:265px;padding:24px 18px 12px;overflow-x:auto;background:linear-gradient(to bottom,transparent 24%,var(--border) 25%,transparent 26%,transparent 49%,var(--border) 50%,transparent 51%,transparent 74%,var(--border) 75%,transparent 76%)}
.admin-trend-column{flex:1;min-width:38px;display:grid;grid-template-rows:1fr auto;gap:7px;text-align:center}.admin-trend-column>span{font-size:.62rem;color:var(--muted);white-space:nowrap}.admin-trend-bars{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px}.admin-trend-bars i{width:clamp(3px,14%,8px);min-height:3px;border-radius:4px 4px 1px 1px;background:currentColor;opacity:.9}
.admin-empty{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center;padding:24px}.admin-empty svg{width:34px;height:34px;color:var(--border-strong)}.admin-empty.compact{min-height:100px}
.admin-distribution-total{margin:18px auto 10px;width:112px;height:112px;border:15px solid var(--brand-soft);border-inline-start-color:var(--success);border-block-end-color:var(--warning);border-radius:50%;display:grid;place-content:center;text-align:center}.admin-distribution-total strong{font-size:1.35rem}.admin-distribution-total span{font-size:.66rem;color:var(--muted)}
.admin-distribution-list{display:grid;gap:9px;padding:8px 18px 18px}.admin-distribution-item{display:grid;grid-template-columns:10px 1fr auto auto;align-items:center;gap:7px;color:var(--ink);font-size:.75rem}.admin-distribution-item small{color:var(--muted)}.admin-distribution-item .admin-meter{grid-column:2/-1}
.admin-dot{width:8px;height:8px;border-radius:50%;background:var(--muted)}.tone-success .admin-dot,.tone-success>i{background:var(--success)}.tone-warning .admin-dot,.tone-warning>i{background:var(--warning)}.tone-danger .admin-dot,.tone-danger>i{background:var(--danger)}
.admin-meter{display:block;height:5px;border-radius:6px;background:var(--surface-2);overflow:hidden}.admin-meter>i{display:block;height:100%;border-radius:inherit;background:var(--brand)}
.admin-funnel{display:grid;gap:8px;padding:18px}.admin-funnel-stage{display:grid;grid-template-columns:1fr auto;gap:2px;min-width:42%;max-width:100%;margin-inline:auto;padding:10px 14px;border-radius:8px;background:color-mix(in srgb,var(--brand) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--brand) 18%,var(--border));color:var(--ink)}.admin-funnel-stage span{font-size:.76rem}.admin-funnel-stage strong{font-size:1rem}.admin-funnel-stage small{grid-column:1/-1;font-size:.65rem;color:var(--muted)}
.admin-action-list{display:grid;padding:8px 18px 18px}.admin-action{display:flex;align-items:center;gap:11px;padding:12px 0;color:var(--ink);border-bottom:1px solid var(--border)}.admin-action:last-child{border:0}.admin-action-count{display:grid;place-items:center;min-width:44px;height:34px;padding:0 8px;border-radius:8px;background:var(--surface-2);font-weight:850}.admin-action-high .admin-action-count{background:var(--danger-soft);color:var(--danger)}.admin-action b,.admin-action small{display:block}.admin-action b{font-size:.79rem}.admin-action small{font-size:.67rem;color:var(--muted);margin-top:3px}
.admin-supplier-table .title,.admin-supplier-table .sub{display:block}.admin-supplier-table .title{color:var(--ink);font-weight:800}.admin-supplier-table .sub{font-size:.65rem;color:var(--muted);direction:ltr;text-align:start;margin-top:2px}
.admin-demand-list,.admin-region-list{display:grid;gap:12px;padding:18px}.admin-demand-item{display:grid;grid-template-columns:minmax(100px,1fr) minmax(80px,1fr) auto;align-items:center;gap:8px;color:var(--ink)}.admin-demand-item span b,.admin-demand-item span small{display:block}.admin-demand-item span b{font-size:.74rem}.admin-demand-item span small{font-size:.64rem;color:var(--muted);margin-top:3px}.admin-demand-item>strong{font-size:.7rem}
.admin-region-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--border);font-size:.7rem}.admin-region-list>div:last-child{border:0}.admin-region-list span{display:flex;align-items:center;gap:6px}.admin-region-list svg{width:15px;height:15px;color:var(--brand)}.admin-region-list>div>span:last-child{color:var(--muted);text-align:end}
.admin-growth-chart{height:205px;display:flex;align-items:stretch;gap:10px;padding:22px 18px 12px}.admin-growth-chart>div{flex:1;display:grid;grid-template-rows:auto 1fr auto;gap:6px;text-align:center;min-width:0}.admin-growth-chart strong,.admin-growth-chart span{font-size:.63rem;color:var(--muted)}.admin-growth-chart i{align-self:end;width:70%;margin-inline:auto;min-height:3px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,var(--brand),color-mix(in srgb,var(--brand) 55%,#fff))}
.admin-widget-note{display:flex;gap:6px;align-items:flex-start;margin:0;padding:0 18px 16px;color:var(--muted);font-size:.66rem}.admin-widget-note svg{width:15px;height:15px;flex:0 0 auto}
.admin-timeline{display:grid;padding:10px 18px 18px;max-height:390px;overflow:auto}.admin-timeline a{position:relative;display:flex;align-items:center;gap:10px;color:var(--ink);padding:10px 16px 10px 0;border-inline-start:1px solid var(--border)}[dir="rtl"] .admin-timeline a{padding:10px 0 10px 16px}.admin-timeline a>i{position:absolute;inset-inline-start:-5px;width:9px;height:9px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 4px var(--surface)}.admin-timeline a.tone-success>i{background:var(--success)}.admin-timeline a.tone-brand>i{background:var(--brand)}.admin-timeline a.tone-danger>i{background:var(--danger)}.admin-timeline b,.admin-timeline small{display:block}.admin-timeline b{font-size:.76rem}.admin-timeline small{font-size:.66rem;color:var(--muted);margin-top:2px}.admin-timeline time{font-size:.62rem;color:var(--muted);white-space:nowrap}
.admin-ai-widget>.card-head>svg{width:28px;height:28px;color:var(--brand)}.admin-feature-disabled{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;text-align:center;background:radial-gradient(circle at center,var(--brand-soft),transparent 68%)}.admin-feature-disabled>svg{width:36px;height:36px;color:var(--muted)}.admin-feature-disabled h3{margin:0;font-size:1rem}.admin-feature-disabled p{max-width:520px;margin:0 0 7px;font-size:.75rem;color:var(--muted);line-height:1.9}
.admin-quick-actions{position:sticky;bottom:12px;z-index:8;display:flex;align-items:center;gap:9px;padding:11px 14px;box-shadow:0 10px 32px rgba(20,24,35,.12)}.admin-quick-actions>b{display:flex;align-items:center;gap:6px;margin-inline-end:auto;font-size:.78rem}.admin-quick-actions svg{width:17px;height:17px}
@media(max-width:1180px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-dashboard-row-thirds{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-dashboard-row-thirds>:last-child{grid-column:1/-1}.admin-dashboard-head{align-items:flex-start;flex-direction:column}.admin-period-form{width:100%;flex-wrap:wrap}}
@media(max-width:820px){.admin-dashboard-row-main,.admin-dashboard-row-equal,.admin-dashboard-row-thirds{grid-template-columns:1fr}.admin-dashboard-row-thirds>:last-child{grid-column:auto}.admin-period-form label{flex:1}.admin-period-form input{width:100%}.admin-trend-chart{height:230px}.admin-quick-actions{position:static;flex-wrap:wrap}.admin-quick-actions>b{width:100%;margin:0}.admin-quick-actions .btn{flex:1}}
@media(max-width:560px){.admin-dashboard{gap:12px}.admin-kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.admin-kpi{grid-template-columns:35px 1fr;min-height:118px;padding:12px}.admin-kpi-icon{width:34px;height:34px}.admin-kpi>strong{font-size:1.15rem}.admin-kpi-change small{display:none}.admin-period-presets{width:100%}.admin-period-chip{flex:1;text-align:center}.admin-period-form label{min-width:130px}.admin-widget .card-head{padding:14px}.admin-legend{justify-content:flex-start}.admin-demand-list,.admin-region-list{padding:14px}.admin-quick-actions .btn{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.admin-kpi{transition:none}}
/* Direct product purchase request */
.purchase-request-head-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4)}
.purchase-request-head-inner>div{min-width:0}.purchase-request-head .btn{flex:0 0 auto}
.purchase-request-page{display:grid;gap:var(--space-4);max-width:74rem}
.purchase-request-steps{overflow:hidden;padding:1.35rem 1.75rem}
.purchase-request-steps h2{margin:0;text-align:center;font-size:1.05rem}
.purchase-request-steps ol{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:1.4rem 0 0;padding:0;counter-reset:purchase-step}
.purchase-request-steps ol::before{content:"";position:absolute;inset-block-start:1rem;inset-inline:12.5%;block-size:2px;background:var(--line)}
.purchase-request-steps li{position:relative;z-index:1;min-width:0;padding:2.9rem .75rem 0;counter-increment:purchase-step;color:var(--muted);text-align:center}
.purchase-request-steps li::before{content:counter(purchase-step);position:absolute;inset-block-start:0;inset-inline-start:50%;transform:translateX(-50%);display:grid;place-items:center;inline-size:2.1rem;block-size:2.1rem;border:2px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted);font-weight:800}
.purchase-request-steps li.on::before{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 0 0 5px var(--brand-soft)}
.purchase-request-steps li.on b{color:var(--ink)}
.purchase-request-steps li b,.purchase-request-steps li span{display:block}.purchase-request-steps li span{font-size:.78rem;margin-top:.3rem;line-height:1.75}
.purchase-request-form{inline-size:100%;max-inline-size:58rem;margin-inline:auto;overflow:hidden;padding:1.5rem}
.purchase-request-form .purchase-product-summary{display:grid;grid-template-columns:7rem minmax(0,1fr);align-items:center;padding:1rem;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(135deg,var(--surface-2),var(--surface))}
.purchase-request-form .purchase-product-summary img{inline-size:7rem;block-size:7rem}.purchase-request-form .purchase-product-summary h2{font-size:1.25rem;line-height:1.6;margin:.4rem 0 .2rem}.purchase-request-form .purchase-product-summary p{margin:0;color:var(--muted)}
.auth-popup-fields{display:grid;gap:.5rem}.auth-popup-fields .swal2-input{width:calc(100% - 2rem);margin:.25rem 1rem}
.change-details{margin-top:.5rem}.change-details summary{cursor:pointer;color:var(--brand);font-size:.82rem;font-weight:700}.change-diff-list{display:grid;gap:.5rem;margin-top:.75rem;min-width:28rem}.change-diff-list>div{display:grid;grid-template-columns:8rem minmax(8rem,1fr) 1.5rem minmax(8rem,1fr);gap:.5rem;align-items:center;padding:.65rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}.change-diff-list span,.change-diff-list small{display:block}.change-diff-list del,.change-diff-list ins{display:block;max-width:24rem;white-space:pre-wrap;overflow-wrap:anywhere;text-decoration:none}.change-diff-list del{color:var(--danger)}.change-diff-list ins{color:var(--success)}
.purchase-agreement{margin:var(--space-2);border-color:color-mix(in srgb,var(--brand) 28%,var(--line));background:color-mix(in srgb,var(--brand) 3%,var(--surface))}.purchase-agreement h3,.purchase-agreement p{margin:0}.agreement-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.agreement-summary>div{display:grid;gap:.2rem;padding:.65rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface)}.agreement-summary span{font-size:.75rem;color:var(--muted)}.agreement-editor summary,.admin-company-edit>summary{cursor:pointer;font-weight:800}.admin-company-edit>summary{display:flex;justify-content:space-between;gap:1rem}.admin-company-edit>summary span{color:var(--muted);font-size:.85rem;font-weight:400}
@media(max-width:640px){.agreement-summary{grid-template-columns:1fr}.change-diff-list{min-width:42rem}}
@media(max-width:760px){.purchase-request-head-inner{align-items:flex-start;flex-direction:column}.purchase-request-page{gap:var(--space-3)}.purchase-request-steps{padding:1.15rem}.purchase-request-steps h2{text-align:start}.purchase-request-steps ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}.purchase-request-steps ol::before{display:none}.purchase-request-steps li{min-block-size:7.2rem;padding:3rem .7rem .7rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}.purchase-request-form{padding:1rem}}
@media(max-width:520px){.purchase-request-steps ol{grid-template-columns:1fr}.purchase-request-steps li{min-block-size:0;padding-block:1rem;padding-inline:3.25rem .8rem;text-align:start}.purchase-request-steps li::before{inset-block-start:.9rem;inset-inline-start:1rem;transform:none}.purchase-request-form .purchase-product-summary{grid-template-columns:5rem minmax(0,1fr)}.purchase-request-form .purchase-product-summary img{inline-size:5rem;block-size:5rem}.purchase-request-form .purchase-product-summary h2{font-size:1rem}.purchase-request-form .form-grid{grid-template-columns:1fr}.purchase-request-form .btn-lg{inline-size:100%}}

/* Tender cards and countdown */
.tender-list { padding: 1rem; }
.tender-card { min-width: 0; }
.tender-card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tender-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .5rem; margin: 0; }
.tender-facts > div { padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .55rem; min-width: 0; }
.tender-facts dt { font-size: .75rem; color: var(--muted); }
.tender-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.tender-flag { display: inline-block; vertical-align: middle; object-fit: contain; border-radius: .16rem; }
.tender-countdown { padding-block: .35rem; }
.tender-counter-values:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; width: min(100%, 19rem); }
.tender-counter-values > span { display: grid; justify-items: center; align-content: start; gap: .25rem; }
.tender-counter-values b { display: grid; place-items: center; width: min(100%, 3.2rem); aspect-ratio: 1; border-radius: 50%; border: 2px solid currentColor; color: var(--red); font-variant-numeric: tabular-nums; }
.tender-counter-values small, .tender-counter-ended { color: var(--muted); font-size: .8rem; }
.tender-description p { white-space: pre-line; overflow-wrap: anywhere; }

/* Registration and account verification */
.auth-registration {
  --register-primary: #ef3f46;
  --register-action: #c91f32;
  --register-action-hover: #ab1728;
  --register-dark: #202126;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.auth-registration .auth-side { background: var(--register-dark); padding: clamp(2rem, 4vw, 4rem); justify-content: flex-start; gap: 2rem; }
.auth-registration .auth-side::before { width: 100%; height: 50%; background: radial-gradient(ellipse at bottom, #812936, transparent 72%); }
.auth-registration .auth-side h2 { line-height: 1.5; font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
.auth-registration .auth-side .check-list { display: grid; gap: 1rem; margin-block-start: 1.5rem; color: #e9e9ed; }
.auth-registration .auth-side .check-list .icon { color: #ff7076; }
.auth-registration .registration-illustration { width: 100%; height: auto; margin-block-start: auto; border-radius: 12px; }
.auth-registration .auth-main { display: flex; flex-direction: column; min-width: 0; padding: clamp(1rem, 4vw, 3rem); }
.auth-registration .auth-lang { width: min(100%, 720px); margin: 0 auto 1.25rem; align-items: center; justify-content: space-between; gap: .5rem; }
.auth-registration .auth-box { width: min(100%, 720px); margin-inline: auto; }
.registration-mobile-logo { display: none; }
.registration-title { text-align: center; margin-block: 1.25rem 1.5rem; }
.auth-registration .registration-title h1 { margin-block: 0 .5rem; font-size: clamp(1.75rem, 3vw, 2rem); }
.registration-title > p { margin: 0 auto; max-width: 58ch; line-height: 1.8; }
.registration-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.registration-steps li { display: flex; gap: .45rem; justify-content: center; align-items: center; min-width: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.registration-steps li span { display: grid; place-items: center; flex: none; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.registration-steps [aria-current] { color: var(--ink); }
.registration-steps [aria-current] span { background: var(--register-action); color: #fff; }
.registration-form { display: grid; gap: 1.15rem; }
.registration-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.registration-fieldset legend { font-weight: 800; padding: 0; margin-block-end: .75rem; }
.registration-required { color: var(--register-action); }
.registration-choices .choice-card { min-width: 0; min-height: 7.25rem; padding: .85rem 2rem .85rem .65rem; border-radius: 12px; }
.registration-choices input { appearance: auto; opacity: 1; width: 1rem; height: 1rem; accent-color: var(--register-action); inset-inline-start: .65rem; inset-block-start: .9rem; margin: 0; }
.registration-choices .choice-card:has(input:checked) { box-shadow: none; border-color: var(--register-primary); background: var(--signal-soft, var(--surface-2)); }
.registration-choices .choice-card:has(input:focus-visible) { outline: 2px solid var(--register-action); outline-offset: 2px; }
.registration-choices .ic { width: 35px; height: 35px; }
.registration-section { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .6rem .85rem; background: var(--surface-2); border-radius: 10px; font-size: .95rem; }
.registration-section .icon { color: var(--register-action); }
.registration-grid { gap: 1.3rem 1.2rem; }
.registration-grid .field { min-width: 0; }
.registration-grid .field > label, .registration-verify label { font-size: .875rem; }
.registration-grid :is(.input, .select), .registration-change .input { width: 100%; min-height: 48px; border-radius: 9px; font-size: .9375rem; }
.registration-grid :is(.input, .select):focus-visible, .registration-country-dialog button:focus-visible, .registration-country-dialog input:focus-visible {
  outline: 2px solid var(--register-action);
  outline-offset: 2px;
}
.registration-grid .input-validation-error { border-color: var(--register-action); }
.registration-country { min-width: 0; }
.registration-country-trigger { display: flex; align-items: center; gap: .45rem; text-align: start; cursor: pointer; }
.registration-country-trigger [data-reg-value] { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registration-country-trigger img, .registration-country-option img { object-fit: cover; border-radius: 3px; flex: none; }
.registration-country-trigger .icon { flex: none; }
.registration-phone { display: grid; grid-template-columns: minmax(100px, auto) minmax(0,1fr); align-items: start; }
.registration-phone .registration-country :is(.input,.select) { border-start-end-radius: 0; border-end-end-radius: 0; }
.registration-phone > .input { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: -1px; }
.registration-phone select { max-width: 8rem; }
.registration-phone button:focus-visible { z-index: 1; }
.registration-country-dialog { width: min(calc(100% - 2rem), 440px); max-height: min(72dvh, 570px); padding: 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 15px 60px #1114; }
.registration-country-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr); gap: .65rem; }
.registration-country-dialog::backdrop { background: #1119; }
.registration-dialog-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.registration-dialog-title h2 { font-size: 1.05rem; margin: 0; }
.registration-dialog-title button { min-width: 44px; min-height: 44px; }
.registration-country-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 .25rem; list-style: none; }
.registration-country-option { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .45rem; text-align: start; background: var(--surface); color: var(--ink); border: 0; border-radius: 6px; cursor: pointer; }
.registration-country-option span { flex: 1; }
.registration-country-option[aria-pressed="true"], .registration-country-option:hover { background: var(--surface-2); }
.registration-country-option bdi { flex: none; font-size: .8rem; }
.registration-password { position: relative; }
.registration-password > input { padding-inline-end: 3.25rem; }
.registration-password > button { position: absolute; inset-inline-end: 2px; inset-block-start: 2px; min-width: 44px; min-height: 44px; }
.registration-strength { display: flex; gap: .6rem; align-items: center; }
.registration-strength meter { width: 7rem; }
.registration-terms { margin-block-end: -.7rem; min-height: 44px; align-items: center; }
.registration-rules { justify-self: start; text-decoration: underline; text-underline-offset: .2em; }
.registration-submit { min-height: 52px; border-radius: 9px; background: var(--register-action); border-color: var(--register-action); color: #fff; }
.registration-submit:hover { background: var(--register-action-hover); border-color: var(--register-action-hover); color: #fff; }
.registration-submit[aria-busy] { opacity: .75; cursor: wait; }
.registration-security { margin-block: -.45rem 0; }
.registration-resend { min-height: 44px; }
.registration-change { margin-block-start: 1rem; }
.registration-change summary { min-height: 44px; cursor: pointer; align-content: center; }
.auth-registration [hidden] { display: none !important; }
@media (min-width: 1024px) and (max-width: 1439px) {
  .auth-registration { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
}
@media (max-width: 1023px) {
  .auth-registration { display: block; }
  .auth-registration .auth-side { display: none; }
  .registration-mobile-logo { display: block; }
  .auth-registration .auth-lang > a { display: none; }
}
@media (max-width: 767px) {
  .registration-grid { grid-template-columns: minmax(0,1fr); gap: 1.15rem; }
  .registration-grid .span-2 { grid-column: auto; }
  .registration-steps li { flex-direction: column; text-align: center; }
  .registration-choices .choice-card { min-height: 44px; }
  .registration-country-dialog { width: 100%; height: min(78dvh, 600px); max-width: none; max-height: none; margin: auto 0 0; border-radius: 14px 14px 0 0; padding-block-end: max(1rem, env(safe-area-inset-bottom)); }
}

/* Sign-in, recovery and verification */
.auth-flow { width: min(100%, 34rem); margin-inline: auto; }
.auth-flow-heading { margin-block: 1.25rem 1.75rem; }
.auth-flow-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto .85rem; border-radius: 14px; color: var(--register-action); background: var(--red-50); }
.auth-flow-mark .icon { width: 1.65rem; height: 1.65rem; }
.auth-flow-form { display: grid; gap: 1.25rem; }
.auth-flow .notice + .auth-flow-form { margin-block-start: 1rem; }
.auth-flow-form .field { min-width: 0; }
.auth-flow-form .field > label { font-size: .875rem; }
.auth-flow-form .input { width: 100%; min-height: 50px; border-radius: 9px; }
.auth-flow-form .input[dir="ltr"] { direction: ltr; text-align: start; unicode-bidi: isolate; }
.auth-flow-form .input.auth-flow-otp { text-align: center; font-variant-numeric: tabular-nums; }
.auth-flow-form .input:focus-visible, .auth-flow a:focus-visible, .auth-flow button:focus-visible {
  outline: 2px solid var(--register-action);
  outline-offset: 2px;
}
.auth-flow-control { position: relative; }
.auth-flow-control > .icon { position: absolute; inset-inline-start: .95rem; inset-block-start: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.auth-flow-control > .input { padding-inline: 2.75rem; }
.auth-flow-control > .btn { inset-block-start: 50%; transform: translateY(-50%); }
.auth-flow-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.auth-flow-options a, .auth-flow-switch a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
.auth-flow-options .check { min-height: 44px; align-items: center; }
.auth-flow-switch { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .35rem .75rem; margin-block: 1.25rem 0; padding: .25rem .8rem; border-radius: 9px; background: var(--surface-2); text-align: center; }
.auth-flow-switch .icon { color: var(--register-action); }
.auth-flow-target { text-align: center; font-weight: 700; margin-block: -1rem 1.5rem; overflow-wrap: anywhere; }
.auth-flow-resend { display: grid; gap: .5rem; justify-items: center; margin-block-start: 1rem; }
.auth-flow-resend [data-reg-counter]:empty { display: none; }

/* Company website logo preview */
.company-website-logo { display: block; width: min(100%, 160px); height: 92px; object-fit: contain; }
