/*
 * 3D StudioMarket v24.0
 * Shared responsive design system for every standalone frontend page.
 * Colour balance: 60% neutral canvas, 30% structural surfaces/ink, 10% signal colour.
 */

:root {
  color-scheme: light;
  --v24-canvas: #f3f5f3;
  --v24-canvas-soft: #f8faf8;
  --v24-surface: #ffffff;
  --v24-surface-2: #eef2f0;
  --v24-ink: #17211f;
  --v24-ink-soft: #3f4c49;
  --v24-muted: #6e7a76;
  --v24-line: #dbe2de;
  --v24-line-strong: #c7d1cc;
  --v24-structure: #153b36;
  --v24-structure-2: #23534b;
  --v24-accent: #ef6a3a;
  --v24-accent-dark: #c94c23;
  --v24-accent-soft: #fff0e9;
  --v24-success: #18765f;
  --v24-success-soft: #e6f5ef;
  --v24-warning: #9b6713;
  --v24-warning-soft: #fff4d9;
  --v24-danger: #b83a3f;
  --v24-danger-soft: #fff0f0;
  --v24-focus: rgba(239, 106, 58, .24);
  --v24-shadow-xs: 0 1px 2px rgba(19, 40, 35, .05);
  --v24-shadow-sm: 0 8px 22px rgba(19, 40, 35, .07);
  --v24-shadow-md: 0 20px 54px rgba(19, 40, 35, .12);
  --v24-radius-sm: 9px;
  --v24-radius: 14px;
  --v24-radius-lg: 20px;
  --v24-page: 1440px;
  --v24-space: clamp(16px, 2vw, 30px);
  --bg: var(--v24-canvas);
  --surface: var(--v24-surface);
  --surface-2: var(--v24-surface-2);
  --text: var(--v24-ink);
  --text-dim: var(--v24-muted);
  --border: var(--v24-line);
  --orange: var(--v24-accent);
  --green: var(--v24-success);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--v24-canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--v24-ink);
  background:
    linear-gradient(90deg, rgba(21, 59, 54, .018) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(21, 59, 54, .018) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--v24-canvas);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:not(.light) { color-scheme: dark; }

body:not(.light) {
  --v24-canvas: #101614;
  --v24-canvas-soft: #151d1a;
  --v24-surface: #19231f;
  --v24-surface-2: #202d28;
  --v24-ink: #edf4f0;
  --v24-ink-soft: #c0ccc6;
  --v24-muted: #93a29b;
  --v24-line: #31423b;
  --v24-line-strong: #40564d;
  --v24-structure: #d5e7df;
  --v24-structure-2: #a8c9bc;
  --v24-accent-soft: #43261d;
  --v24-success-soft: #173a30;
  --v24-warning-soft: #3e3218;
  --v24-danger-soft: #3c2023;
  background: #101614;
}

body, button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: var(--v24-structure-2); }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--v24-focus) !important;
  outline-offset: 2px;
}

::selection { color: #fff; background: var(--v24-accent); }

.skip-link-v24 {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--v24-structure);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link-v24:focus { transform: translateY(0); }

/* Shared shell ----------------------------------------------------------- */

.topbar {
  position: fixed;
  z-index: 70;
  inset: 0 0 auto 0;
  width: 100%;
  height: 68px;
  padding: 0 clamp(14px, 2.3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--v24-line) 82%, transparent);
  background: color-mix(in srgb, var(--v24-surface) 92%, transparent);
  box-shadow: 0 1px 0 rgba(19, 40, 35, .025);
  backdrop-filter: blur(18px) saturate(130%);
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-icon-btn, .topbar-theme, .topbar-discord, .topbar-token-plus {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--v24-line);
  border-radius: 11px;
  color: var(--v24-ink-soft);
  background: var(--v24-surface);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.topbar-icon-btn:hover, .topbar-theme:hover, .topbar-discord:hover, .topbar-token-plus:hover {
  border-color: var(--v24-line-strong);
  background: var(--v24-surface-2);
  transform: translateY(-1px);
}
.topbar-icon-btn::before { content: ""; width: 17px; height: 12px; border-block: 2px solid currentColor; }
.topbar-icon-btn::after { content: ""; position: absolute; width: 17px; height: 2px; background: currentColor; }
.topbar-icon-btn { position: relative; }
.topbar-theme svg, .topbar-discord svg { width: 18px; height: 18px; }

.topbar-logo {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.topbar-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: end;
  transform: skewY(-9deg);
}
.topbar-logo-mark i { display: block; border-radius: 2px; background: var(--v24-structure); }
.topbar-logo-mark i:nth-child(1) { height: 19px; }
.topbar-logo-mark i:nth-child(2) { height: 27px; background: var(--v24-accent); }
.topbar-logo-mark i:nth-child(3) { height: 23px; }
.topbar-logo-copy { display: grid; min-width: 0; text-align: left; line-height: 1.05; }
.topbar-logo-copy > span { font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.topbar-logo-copy small { margin-top: 4px; color: var(--v24-muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.logo-market { color: var(--v24-accent); }

.topbar-token-pill {
  min-height: 42px;
  padding: 5px 5px 5px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--v24-line);
  border-radius: 12px;
  background: var(--v24-surface);
}
.topbar-token-copy { display: grid; min-width: 48px; line-height: 1.05; }
.topbar-token-copy small { color: var(--v24-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.topbar-token-copy strong { margin-top: 4px; font-size: 13px; }
.topbar-token-plus { width: 30px; height: 30px; border: 0; color: #fff; background: var(--v24-accent); }
.coin { width: 20px; height: 20px; border: 2px solid #d89f2b; border-radius: 50%; background: #ffd469; }

.app-shell { min-height: 100vh; padding-top: 68px; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  z-index: 60;
  top: 68px;
  bottom: 0;
  left: 0;
  width: 238px;
  padding: 22px 13px 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--v24-line);
  background: color-mix(in srgb, var(--v24-canvas-soft) 94%, transparent);
}
.sidebar-section-label {
  margin: 16px 11px 6px;
  color: var(--v24-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sidebar-section-label:first-child { margin-top: 0; }
.sidebar-item, .sidebar-logout {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--v24-ink-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.sidebar-item:hover, .sidebar-logout:hover { color: var(--v24-ink); background: var(--v24-surface); transform: translateX(2px); }
.sidebar-item.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--v24-structure) 90%, #fff);
  background: var(--v24-structure);
  box-shadow: 0 8px 18px rgba(21, 59, 54, .13);
}
.sidebar-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; }
.sidebar-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-spacer { flex: 1; min-height: 24px; }
.sidebar-bottom { padding-top: 12px; border-top: 1px solid var(--v24-line); }
.sidebar-overlay { display: none; }

.main-content { min-width: 0; grid-column: 2; padding: 0; }
.page-inner {
  width: min(100%, var(--v24-page));
  margin-inline: auto;
  padding: clamp(24px, 3.2vw, 52px) var(--v24-space) clamp(82px, 9vw, 126px);
}

.page-title, .ref-page-header h1, .latest-hero h1, .liquid-hero h1 {
  margin: 4px 0 0;
  color: var(--v24-ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(29px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.page-desc, .ref-page-header p, .latest-hero p, .liquid-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--v24-muted);
  font-size: clamp(14px, 1.3vw, 17px);
}
.section-kicker, .eyebrow, .heading-kicker, .panel-label, .action-label {
  color: var(--v24-success);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.muted { color: var(--v24-muted) !important; }
.hidden { display: none !important; }

.ref-page-header, .behavior-market-header, .behavior-management-header, .latest-hero, .liquid-hero {
  min-height: 0;
  margin: 0 0 clamp(22px, 3vw, 38px);
  padding: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}
.behavior-header-proof {
  width: min(340px, 34%);
  padding: 14px 0 14px 18px;
  display: grid;
  gap: 4px;
  border: 0;
  border-left: 2px solid var(--v24-accent);
  border-radius: 0;
  background: transparent;
}
.behavior-header-proof strong { color: var(--v24-ink); font-size: 13px; }
.behavior-header-proof span { color: var(--v24-muted); font-size: 12px; }

/* Controls --------------------------------------------------------------- */

.btn, .neutral-btn, .liquid-primary-btn, .plain-action, .legal-inline-link {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--v24-line-strong);
  border-radius: 10px;
  color: var(--v24-ink);
  background: var(--v24-surface);
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .17s ease, border-color .17s ease, background .17s ease, box-shadow .17s ease;
}
.btn:hover, .neutral-btn:hover, .liquid-primary-btn:hover, .plain-action:hover, .legal-inline-link:hover {
  border-color: var(--v24-structure-2);
  transform: translateY(-1px);
  box-shadow: var(--v24-shadow-xs);
}
.btn:active, .neutral-btn:active, .plain-action:active { transform: translateY(0); }
.btn-primary, .btn.primary, .liquid-primary-btn, .latest-buy-token-btn, .latest-withdraw-btn, .behavior-primary-buy {
  color: #fff;
  border-color: var(--v24-accent);
  background: var(--v24-accent);
}
.btn-primary:hover, .btn.primary:hover, .liquid-primary-btn:hover, .behavior-primary-buy:hover { border-color: var(--v24-accent-dark); background: var(--v24-accent-dark); }
.btn-secondary, .btn.secondary, .neutral-btn { border-color: var(--v24-line); background: var(--v24-surface); }
.btn-danger, .btn.danger, .danger-btn { color: var(--v24-danger); border-color: color-mix(in srgb, var(--v24-danger) 36%, var(--v24-line)); background: var(--v24-danger-soft); }
.btn-ghost, .btn.tertiary { background: transparent; }
.btn-sm, .btn.small { min-height: 34px; padding-inline: 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none !important; }
.plain-action, .legal-inline-link { min-height: 34px; padding: 0; border: 0; color: var(--v24-structure-2); background: transparent; box-shadow: none; }

.form-input, .form-textarea, .filter-select, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--v24-line-strong);
  border-radius: 9px;
  color: var(--v24-ink);
  background: var(--v24-surface);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
textarea { min-height: 110px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .filter-select:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--v24-accent);
  box-shadow: 0 0 0 3px var(--v24-focus);
}
.form-group { display: grid; gap: 7px; }
.form-label, label > span:first-child { color: var(--v24-ink-soft); font-size: 12px; font-weight: 750; }
.form-row, .modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Marketplace discovery -------------------------------------------------- */

.behavior-intent-strip, .active-filter-row, .segmented-tabs, .tabs {
  margin: 0 0 17px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  background: transparent;
}
.behavior-intent-strip button, .segmented-tabs button, .tab-btn, .active-filter-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--v24-line);
  border-radius: 9px;
  color: var(--v24-ink-soft);
  background: var(--v24-surface);
  cursor: pointer;
}
.behavior-intent-strip button:hover, .segmented-tabs button:hover { border-color: var(--v24-line-strong); }
.behavior-intent-strip button.is-active, .segmented-tabs button.active, .tab-btn.active {
  color: #fff;
  border-color: var(--v24-structure);
  background: var(--v24-structure);
}

.sticky-market-toolbar, .behavior-toolbar, .one-piece-toolbar {
  position: sticky;
  z-index: 20;
  top: 79px;
  width: 100%;
  margin: 0 0 20px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--v24-line) 84%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--v24-surface) 90%, transparent);
  box-shadow: var(--v24-shadow-sm);
  backdrop-filter: blur(14px);
}
.search-filter-combo, .neo-search-control {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--v24-line);
  border-radius: 10px;
  background: var(--v24-canvas-soft);
  overflow: hidden;
}
.search-filter-combo .search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.search-left-icon { padding-left: 13px; color: var(--v24-muted); }
.search-filter-button { width: 42px; height: 42px; padding: 11px; border: 0; color: var(--v24-ink-soft); background: transparent; cursor: pointer; }
.search-filter-button:hover { color: var(--v24-accent); background: var(--v24-accent-soft); }
.ref-count-label, .behavior-result-count { padding: 0 8px; color: var(--v24-muted); font-size: 12px; white-space: nowrap; }

.market-grid, .behavior-market-grid, .seller-card-grid-v165, .management-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr));
  gap: clamp(14px, 1.65vw, 23px);
  align-items: stretch;
}

.market-card, .ref-card, .minimal-market-card {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--v24-line);
  border-radius: var(--v24-radius);
  color: var(--v24-ink);
  background: var(--v24-surface);
  box-shadow: var(--v24-shadow-xs);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.market-card:hover, .ref-card:hover {
  border-color: var(--v24-line-strong);
  box-shadow: var(--v24-shadow-sm);
  transform: translateY(-4px);
}
.market-card-preview, .ref-card-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--v24-line);
  background: var(--v24-surface-2);
}
.ref-preview-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--v24-muted);
  background:
    radial-gradient(circle at 28% 26%, color-mix(in srgb, var(--v24-accent) 9%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--v24-structure) 4%, transparent), transparent),
    var(--v24-surface-2);
}
.ref-preview-placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed color-mix(in srgb, var(--v24-structure) 18%, transparent);
  border-radius: 9px;
  pointer-events: none;
}
.ref-preview-placeholder svg { width: 38px; height: 38px; stroke: var(--v24-structure-2); }
.ref-preview-placeholder span { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.favorite-action, .market-card-fav, .ref-heart, .card-heart-only {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: var(--v24-ink);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 16px rgba(19, 40, 35, .13);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.favorite-action svg, .market-card-fav svg, .ref-heart svg { width: 19px; height: 19px; }
.favorite-action:hover, .market-card-fav:hover { color: var(--v24-accent); transform: scale(1.06); }
.favorite-action.active, .market-card-fav.active, .ref-heart.active { color: #fff; border-color: var(--v24-accent); background: var(--v24-accent); }

.certified-badge {
  min-height: 26px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--v24-success) 26%, var(--v24-line));
  border-radius: 7px;
  color: var(--v24-success);
  background: var(--v24-success-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}
.certified-badge svg { width: 13px; height: 13px; flex: 0 0 13px; }
.card-badge-stack { position: absolute; z-index: 4; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 68px); }
.licensed-production-mini { position: static; min-height: 26px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--v24-accent) 24%, var(--v24-line)); border-radius: 7px; color: var(--v24-accent-dark); background: var(--v24-accent-soft); font-size: 10px; font-weight: 800; cursor: pointer; }

.market-card-body, .ref-card-body {
  min-width: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-eyebrow-row, .card-bottom-line, .card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ref-card-location { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--v24-muted); font-size: 11px; }
.ref-card-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-card-title, .ref-card-title { min-width: 0; margin: 0; color: var(--v24-ink); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.3; letter-spacing: -.025em; }
.card-seller-line { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--v24-muted); font-size: 11px; }
.card-seller-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v24-ink-soft); }
.ref-chip-row, .card-tag-zone { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-chip-row > span, .card-tag-zone > span, .entity-tag {
  max-width: 100%;
  min-height: 26px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow-wrap: anywhere;
  border: 1px solid var(--v24-line);
  border-radius: 7px;
  color: var(--v24-ink-soft);
  background: var(--v24-canvas-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}
.entity-tag { width: fit-content; text-align: left; cursor: default; }
button.entity-tag { cursor: pointer; }
.entity-tag span:first-child { color: var(--v24-muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.license-entity-tag { flex: 1 1 100%; border-color: color-mix(in srgb, var(--v24-accent) 25%, var(--v24-line)); color: var(--v24-accent-dark); background: var(--v24-accent-soft); }
.studio-entity-tag { flex: 1 1 100%; }
.entity-tag > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.entity-tag > strong { min-width: 0; color: inherit; font-size: inherit; font-weight: 750; line-height: inherit; overflow-wrap: anywhere; }
.ref-card-price { display: flex; align-items: baseline; gap: 5px; color: var(--v24-ink); }
.ref-card-price > span { font-size: 18px; font-weight: 850; letter-spacing: -.035em; }
.ref-card-price small { color: var(--v24-muted); font-size: 9px; letter-spacing: .08em; }
.ref-sales-meta, .ref-purchase-count { color: var(--v24-muted); font-size: 10px; white-space: nowrap; }

/* Detail pages ----------------------------------------------------------- */

.behavior-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .86fr);
  grid-template-areas: "gallery purchase" "secondary purchase";
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.behavior-gallery { grid-area: gallery; position: relative; min-height: clamp(330px, 48vw, 660px); overflow: hidden; border: 1px solid var(--v24-line); border-radius: var(--v24-radius-lg); background: var(--v24-surface-2); box-shadow: var(--v24-shadow-xs); }
.behavior-gallery .ref-preview-placeholder { min-height: inherit; }
.behavior-gallery .carousel-nav { position: absolute; z-index: 4; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.88); box-shadow: var(--v24-shadow-sm); cursor: pointer; }
.behavior-gallery .carousel-nav.left { left: 16px; }
.behavior-gallery .carousel-nav.right { right: 16px; }
.behavior-gallery-actions { position: absolute; z-index: 5; inset: auto 16px 16px 16px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.behavior-gallery-actions > * { pointer-events: auto; min-height: 40px; padding: 0 13px; border: 1px solid rgba(255,255,255,.75); border-radius: 10px; color: var(--v24-ink); background: rgba(255,255,255,.9); box-shadow: var(--v24-shadow-sm); backdrop-filter: blur(8px); }
.detail-favorite-button.active { color: #fff; border-color: var(--v24-accent); background: var(--v24-accent); }

.behavior-purchase-panel { grid-area: purchase; position: sticky; top: 86px; padding: clamp(19px, 2.2vw, 28px); border: 1px solid var(--v24-line); border-radius: var(--v24-radius-lg); background: var(--v24-surface); box-shadow: var(--v24-shadow-sm); }
.behavior-purchase-head { padding-bottom: 18px; border-bottom: 1px solid var(--v24-line); }
.detail-title { margin: 5px 0 12px; color: var(--v24-ink); font-size: clamp(27px, 3vw, 43px); line-height: 1.05; letter-spacing: -.05em; }
.behavior-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-price { color: var(--v24-structure); font-size: clamp(24px, 2.7vw, 35px); font-weight: 850; letter-spacing: -.045em; }
.latest-status-pill, .badge { min-height: 26px; padding: 4px 8px; display: inline-flex; align-items: center; border: 1px solid var(--v24-line); border-radius: 7px; color: var(--v24-muted); background: var(--v24-canvas-soft); font-size: 10px; font-weight: 800; }
.latest-status-pill.success, .badge-green { color: var(--v24-success); border-color: color-mix(in srgb, var(--v24-success) 28%, var(--v24-line)); background: var(--v24-success-soft); }
.latest-status-pill.pending { color: var(--v24-warning); background: var(--v24-warning-soft); }
.behavior-microcopy { margin: 10px 0 0; font-size: 12px; }
.detail-certification-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }

.detail-section-v167, .behavior-decision-block { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--v24-line); background: transparent; }
.detail-section-head-v167 { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--v24-ink); font-size: 12px; font-weight: 800; }
.behavior-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.detail-option-field-v167 { min-width: 0; display: grid; gap: 6px; }
.detail-option-field-v167 label { color: var(--v24-muted); font-size: 10px; font-weight: 750; }
.option-select-shell-v165, .option-select-shell-v166 { position: relative; min-width: 0; }
.detail-select-v165, .detail-select-v166 { width: 100%; min-width: 0; appearance: none; padding-right: 32px; }
.option-select-value-v165, .option-select-value-v166 { display: none; }
.option-select-chevron-v165, .option-select-chevron-v166 { position: absolute; pointer-events: none; right: 12px; top: 50%; color: var(--v24-muted); transform: translateY(-50%); }
.address-card { padding: 13px; border: 1px solid var(--v24-line); border-radius: 10px; background: var(--v24-canvas-soft); }
.address-card-name { font-size: 12px; font-weight: 800; }
.address-card-detail { margin-top: 4px; color: var(--v24-muted); font-size: 11px; line-height: 1.5; }
.behavior-trust-row { padding: 15px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.behavior-trust-row span { padding-left: 14px; position: relative; color: var(--v24-muted); font-size: 10px; }
.behavior-trust-row span::before { content: ""; position: absolute; top: .57em; left: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--v24-success); }
.behavior-primary-buy { min-height: 50px; width: 100%; font-size: 14px; }

.behavior-secondary-panel { grid-area: secondary; padding: clamp(19px, 2vw, 26px); display: grid; gap: 22px; border: 1px solid var(--v24-line); border-radius: var(--v24-radius-lg); background: var(--v24-surface); }
.behavior-secondary-panel .detail-section-v167 { padding: 0; border: 0; }
.detail-desc { margin: 0; color: var(--v24-ink-soft); line-height: 1.75; }
.seller-profile-card-v24 { padding: 15px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--v24-line); border-radius: 12px; background: var(--v24-canvas-soft); }
.seller-profile-card-v24 .seller-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--v24-structure); font-weight: 850; }
.seller-profile-copy-v24 { min-width: 0; display: grid; gap: 3px; }
.seller-profile-copy-v24 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-profile-copy-v24 span { color: var(--v24-muted); font-size: 10px; }
.seller-profile-stats-v24 { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--v24-muted); font-size: 10px; }

.detail-comments-zone { padding: 0; border: 0; background: transparent; }
.detail-comments-head { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.detail-comments-head h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.025em; }
.detail-comment-preview-list, .detail-comments-popup-list { display: grid; gap: 9px; }
.detail-comment-card, .detail-comment-card-v15411 { padding: 12px; border: 1px solid var(--v24-line); border-radius: 10px; background: var(--v24-canvas-soft); }
.detail-comment-card p, .detail-comment-card-v15411 p { margin: 6px 0 0; color: var(--v24-ink-soft); font-size: 12px; }
.detail-comment-meta, .detail-comment-author-row { display: flex; justify-content: space-between; gap: 10px; color: var(--v24-muted); font-size: 10px; }
.inline-comment-composer-v24 { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.inline-comment-composer-v24 textarea { min-height: 72px; }
.inline-comment-composer-v24 .btn { min-height: 44px; }

/* Seller profile --------------------------------------------------------- */

.seller-hero {
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--v24-line);
  border-radius: var(--v24-radius-lg);
  background: var(--v24-surface);
  box-shadow: var(--v24-shadow-xs);
}
.seller-avatar.large { width: clamp(62px, 7vw, 88px); height: clamp(62px, 7vw, 88px); display: grid; place-items: center; border-radius: 23px 17px 21px 15px; color: #fff; background: var(--v24-structure); font-size: 22px; font-weight: 850; }
.seller-contact-line { margin-top: 7px; color: var(--v24-muted); font-size: 11px; }
.seller-hero-actions-v24 { display: grid; justify-items: end; gap: 9px; }
.seller-proof-v24 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.seller-metrics-v24 { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seller-metrics-v24 article { padding: 13px; border: 1px solid var(--v24-line); border-radius: 11px; background: var(--v24-surface); }
.seller-metrics-v24 span { display: block; color: var(--v24-muted); font-size: 10px; }
.seller-metrics-v24 strong { display: block; margin-top: 5px; font-size: 17px; }

/* Generic cards, dashboards and forms ----------------------------------- */

.card, .profile-card, .listing-main-card, .listing-side-card, .sku-matrix-card,
.behavior-management-card, .management-bento-card-v161, .latest-checkout-card,
.latest-withdrawal-balance-card, .latest-withdrawal-form-card, .legal-library,
.seller-history-summary-card-v177, .latest-plan-summary, .notice,
.history-card, .tracking-card, .mgmt-card, .option-card, .sku-card,
.kyc-card, .latest-kyc-card, .side-card, .panel {
  border: 1px solid var(--v24-line);
  border-radius: var(--v24-radius);
  color: var(--v24-ink);
  background: var(--v24-surface);
  box-shadow: var(--v24-shadow-xs);
}

.summary-row, .behavior-ops-grid, .behavior-finance-grid, .seller-history-summary-grid-v177, .profile-kyc-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}
.summary-item, .behavior-ops-metric, .management-metric-v161, .seller-history-summary-card-v177, .profile-kyc-progress > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--v24-line);
  border-radius: 11px;
  background: var(--v24-canvas-soft);
}
.summary-label, .behavior-ops-metric > span, .management-metric-v161 > span, .seller-history-summary-card-v177 > span, .profile-kyc-progress span { display: block; color: var(--v24-muted); font-size: 10px; }
.summary-value, .behavior-ops-metric > strong, .management-metric-v161 > strong, .seller-history-summary-card-v177 > strong, .profile-kyc-progress strong { display: block; margin-top: 5px; color: var(--v24-ink); font-size: 17px; overflow-wrap: anywhere; }

.behavior-management-card { padding: clamp(17px, 2.3vw, 28px); }
.management-bento-title-row-v161 { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.management-name-line-v161 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.behavior-ops-grid, .behavior-finance-grid { margin-top: 10px; }
.behavior-ops-metric.critical { border-left: 3px solid var(--v24-accent); }
.behavior-management-actions { display: flex; gap: 8px; }
.plain-gear { width: 42px; height: 42px; border: 1px solid var(--v24-line); border-radius: 10px; background: var(--v24-surface); cursor: pointer; }
.floating-add { position: fixed; z-index: 30; right: clamp(18px, 3vw, 42px); bottom: clamp(18px, 3vw, 42px); width: 54px; height: 54px; border: 0; border-radius: 17px 13px 17px 13px; color: #fff; background: var(--v24-accent); box-shadow: 0 14px 32px rgba(239,106,58,.28); font-size: 26px; cursor: pointer; }

.history-list, .tracking-list, .seller-history-list-v177 { display: grid; gap: 12px; }
.history-card, .tracking-card, .mgmt-card {
  padding: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.mini-preview, .mgmt-card-icon { width: 76px; aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed var(--v24-line-strong); border-radius: 10px; color: var(--v24-muted); background: var(--v24-surface-2); font-size: 10px; text-align: center; }
.history-card h3, .tracking-card h3, .mgmt-card-name { margin: 0; font-size: 15px; }
.history-card p, .tracking-card p, .mgmt-card-desc { margin: 3px 0 0; color: var(--v24-muted); font-size: 11px; }
.record-card-actions, .mgmt-card-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }

.profile-settings-shell { display: grid; gap: 14px; }
.profile-card { padding: clamp(17px, 2vw, 24px); }
.neo-settings-row { position: relative; }
.neo-settings-icon { display: none; }
.settings-section-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.settings-section-head h2, .profile-card h2 { margin: 3px 0 0; font-size: 20px; }
.paypal-inline-grid-v151, .profile-address-grid, .legal-set-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 11px; }
.settings-row { width: 100%; min-height: 42px; padding: 10px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--v24-line); background: transparent; text-align: left; }
.settings-row:last-child { border-bottom: 0; }
.policy-link { color: var(--v24-ink-soft); cursor: pointer; }
.legal-library { padding: clamp(18px, 2.2vw, 28px); }
.legal-set-card { min-width: 0; min-height: 78px; padding: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--v24-line); border-radius: 11px; color: var(--v24-ink); background: var(--v24-canvas-soft); text-align: left; cursor: pointer; }
.legal-set-card:hover { border-color: var(--v24-line-strong); background: var(--v24-surface-2); }
.legal-set-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; flex: 0 0 31px; border-radius: 8px; color: #fff; background: var(--v24-structure); font-weight: 850; }
.legal-set-card b, .legal-set-card small { display: block; }
.legal-set-card small { margin-top: 3px; color: var(--v24-muted); font-size: 10px; }

.listing-settings-shell { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.listing-main-card, .listing-side-card, .sku-matrix-card, .legal-submit-panel { padding: clamp(17px, 2.2vw, 27px); }
.listing-side-card { position: sticky; top: 86px; }
.image-upload-grid, .sku-grid, .option-group-card { display: grid; gap: 10px; }
.image-upload-grid { margin: 15px 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.image-upload-tile, .image-preview-tile { min-height: 120px; padding: 13px; border: 1px dashed var(--v24-line-strong); border-radius: 11px; background: var(--v24-canvas-soft); }
.option-group-card, .sku-card { margin-top: 9px; padding: 12px; border: 1px solid var(--v24-line); border-radius: 10px; background: var(--v24-canvas-soft); }
.legal-submit-panel { margin-top: 18px; border: 1px solid color-mix(in srgb, var(--v24-accent) 25%, var(--v24-line)); border-radius: var(--v24-radius); background: var(--v24-accent-soft); }
.product-compliance-check, .legal-check { margin-top: 13px; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; border: 1px solid var(--v24-line); border-radius: 10px; background: var(--v24-surface); }
.product-compliance-check input, .legal-check input { width: 18px; height: 18px; accent-color: var(--v24-accent); }
.settings-bottom-bar, .listing-actions { margin-top: 18px; padding: 13px; display: flex; justify-content: space-between; gap: 12px; position: sticky; bottom: 12px; z-index: 15; border: 1px solid var(--v24-line); border-radius: 13px; background: color-mix(in srgb, var(--v24-surface) 92%, transparent); box-shadow: var(--v24-shadow-sm); backdrop-filter: blur(14px); }

/* File listing long-form module ----------------------------------------- */

.fl188-root { color: var(--v24-ink); }
.fl188-root .page-shell { width: 100%; margin: 0; padding: 0; }
.fl188-root .page-heading { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.fl188-root .page-heading h1 { margin: 5px 0; font-size: clamp(29px, 4vw, 49px); letter-spacing: -.05em; }
.fl188-root .page-heading p { margin: 0; color: var(--v24-muted); }
.workflow-strip { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.workflow-item { min-width: 0; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; border: 1px solid var(--v24-line); border-radius: 10px; color: var(--v24-ink); background: var(--v24-surface); text-align: left; cursor: pointer; }
.workflow-item.active { border-color: var(--v24-structure-2); box-shadow: inset 0 -3px var(--v24-accent); }
.workflow-number { color: var(--v24-success); font: 800 10px/1 monospace; }
.workflow-copy b, .workflow-copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.workflow-copy b { font-size: 11px; }
.workflow-copy small { margin-top: 3px; color: var(--v24-muted); font-size: 9px; white-space: nowrap; }
.fl188-root .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr); gap: 18px; align-items: start; }
.fl188-root .main-column, .fl188-root .side-column { display: grid; gap: 14px; }
.fl188-root .side-column { position: sticky; top: 86px; }
.fl188-root .panel, .fl188-root .side-card { padding: clamp(16px, 2vw, 24px); }
.fl188-root .panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.step-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--v24-structure); font: 800 10px/1 monospace; }
.panel-title h2 { margin: 3px 0; font-size: 19px; }
.panel-title p { margin: 0; color: var(--v24-muted); font-size: 11px; }
.details-grid, .source-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-stack { display: grid; gap: 12px; }
.form-stack label, .upload-column { display: grid; gap: 6px; }
.dropzone { min-height: 118px; padding: 18px; display: grid; place-items: center; align-content: center; gap: 4px; border: 1px dashed var(--v24-line-strong); border-radius: 11px; color: var(--v24-ink-soft); background: var(--v24-canvas-soft); text-align: center; cursor: pointer; }
.dropzone small { color: var(--v24-muted); }
.matrix-card { margin-top: 16px; padding: 15px; border: 1px solid var(--v24-line); border-radius: 11px; background: var(--v24-canvas-soft); }
.matrix-top, .matrix-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.matrix-grid { margin: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.matrix-grid fieldset { min-width: 0; padding: 10px; border: 1px solid var(--v24-line); border-radius: 9px; background: var(--v24-surface); }
.check-options { max-height: 220px; overflow: auto; display: grid; gap: 6px; }
.action-bar { position: sticky; z-index: 18; bottom: 12px; margin-top: 18px; padding: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--v24-line); border-radius: 13px; background: color-mix(in srgb, var(--v24-surface) 93%, transparent); box-shadow: var(--v24-shadow-sm); backdrop-filter: blur(14px); }

/* Plans, tokens, payout and verification -------------------------------- */

.latest-plan-summary { margin-bottom: 16px; padding: 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.latest-plan-summary > div { padding: 8px 10px; border-left: 1px solid var(--v24-line); }
.latest-plan-summary > div:first-child { border-left: 0; }
.latest-plan-summary span, .latest-plan-summary strong { display: block; }
.latest-plan-summary span { color: var(--v24-muted); font-size: 10px; }
.latest-plan-grid, .latest-token-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.minimal-plan-card, .minimal-token-card { min-width: 0; padding: 18px; display: grid; gap: 8px; border: 1px solid var(--v24-line); border-radius: 13px; background: var(--v24-surface); }
.minimal-plan-card.current { border-color: var(--v24-structure-2); box-shadow: inset 0 3px var(--v24-accent); }
.minimal-plan-card > span, .minimal-token-card > span { color: var(--v24-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.minimal-plan-card > strong, .minimal-token-card > strong { font-size: 23px; letter-spacing: -.035em; }
.latest-token-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .44fr); gap: 18px; align-items: start; }
.latest-checkout-card { position: sticky; top: 86px; padding: 20px; }
.latest-checkout-title-row { display: flex; justify-content: space-between; gap: 12px; }
.latest-checkout-title-row h2 { margin: 3px 0 14px; }
.latest-provider-badge { color: var(--v24-success); font-size: 10px; font-weight: 800; }
.latest-summary-row { padding: 10px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--v24-line); font-size: 12px; }
.latest-net-row { border-bottom: 0; font-size: 14px; }
.latest-payment-note { font-size: 10px; }
.latest-mobile-checkout { display: none; }
.qty-control { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; border: 1px solid var(--v24-line); border-radius: 9px; overflow: hidden; text-align: center; }
.qty-control button { height: 34px; border: 0; background: var(--v24-surface-2); cursor: pointer; }

.latest-withdrawal-shell { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.latest-withdrawal-balance-card, .latest-withdrawal-form-card { padding: clamp(18px, 2.3vw, 28px); }
.latest-withdrawal-balance-card > strong { display: block; margin: 7px 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; }
.latest-withdrawal-form-card { display: grid; gap: 12px; }
.legal-withdraw-note { margin-bottom: 14px; padding: 11px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--v24-line); border-radius: 10px; color: var(--v24-ink-soft); background: var(--v24-surface); font-size: 11px; }
.legal-withdraw-note button { border: 0; color: var(--v24-structure-2); background: transparent; font-weight: 800; cursor: pointer; }

.kyc-shell, .latest-kyc-shell { display: grid; gap: 14px; }
.kyc-card, .latest-kyc-card { padding: clamp(17px, 2vw, 24px); }
.kyc-document-grid, .latest-document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }

.api-card, .card.api-card { max-width: 880px; padding: clamp(18px, 2.5vw, 30px); }
.code-box { margin: 10px 0; padding: 12px; overflow-wrap: anywhere; border: 1px solid var(--v24-line); border-radius: 9px; color: var(--v24-structure-2); background: var(--v24-canvas-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.notice { margin-top: 14px; padding: 13px 15px; color: var(--v24-ink-soft); font-size: 11px; }
.notice-info { border-left: 3px solid var(--v24-success); }
.notice-warning { border-left: 3px solid var(--v24-warning); background: var(--v24-warning-soft); }

/* Modal, dialogs, legal reader and feedback ------------------------------ */

.modal-overlay, .legal-overlay {
  position: fixed;
  z-index: 500;
  inset: 0;
  padding: clamp(14px, 3vw, 38px);
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(11, 22, 19, .57);
  backdrop-filter: blur(8px);
}
.modal-overlay.hidden { display: none; }
.modal {
  position: relative;
  width: min(100%, 530px);
  max-height: calc(100vh - 30px);
  padding: clamp(20px, 3vw, 30px);
  overflow: auto;
  border: 1px solid var(--v24-line);
  border-radius: var(--v24-radius-lg);
  color: var(--v24-ink);
  background: var(--v24-surface);
  box-shadow: var(--v24-shadow-md);
  animation: v24-modal-in .2s ease both;
}
.modal-wide { width: min(100%, 820px); }
.modal-title, .modal h2 { margin: 4px 42px 7px 0; font-size: clamp(22px, 3vw, 31px); line-height: 1.15; letter-spacing: -.04em; }
.modal-desc { margin: 0 0 16px; color: var(--v24-muted); }
.modal-close, .legal-close, .icon-button {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--v24-line);
  border-radius: 10px;
  color: var(--v24-ink-soft);
  background: var(--v24-surface-2);
  cursor: pointer;
}
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.purchase-summary-card { margin-top: 15px; border-block: 1px solid var(--v24-line); }
.purchase-summary-card > div { padding: 10px 0; display: grid; grid-template-columns: minmax(100px, .4fr) minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--v24-line); }
.purchase-summary-card > div:last-child { border-bottom: 0; }
.purchase-summary-card span { color: var(--v24-muted); font-size: 10px; }
.purchase-summary-card strong { overflow-wrap: anywhere; font-size: 12px; text-align: right; }
.token-value { color: var(--v24-accent-dark); }
.purchase-license-scope { margin-top: 14px; padding: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid color-mix(in srgb, var(--v24-accent) 24%, var(--v24-line)); border-radius: 11px; background: var(--v24-accent-soft); }
.purchase-license-scope > div { display: flex; gap: 10px; }
.purchase-license-scope p { margin: 4px 0 0; color: var(--v24-muted); font-size: 10px; }
.long-option-list, .filter-dropdown-list-v166 { max-height: 360px; margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 7px; overflow: auto; }
.round-option, .filter-dropdown-option-v166 { min-height: 40px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--v24-line); border-radius: 9px; color: var(--v24-ink-soft); background: var(--v24-canvas-soft); text-align: left; cursor: pointer; }
.round-option.selected, .filter-dropdown-option-v166.selected { color: var(--v24-success); border-color: var(--v24-success); background: var(--v24-success-soft); }
.file-filter-hub-v24 { margin-top: 16px; display: grid; gap: 8px; }
.file-filter-hub-v24 > button { min-height: 66px; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; border: 1px solid var(--v24-line); border-radius: 11px; color: var(--v24-ink); background: var(--v24-canvas-soft); text-align: left; cursor: pointer; }
.file-filter-hub-v24 > button:hover { border-color: var(--v24-structure-2); background: var(--v24-surface-2); }
.file-filter-hub-v24 > button > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--v24-structure); font-weight: 800; }
.file-filter-hub-v24 strong, .file-filter-hub-v24 small { display: block; }
.file-filter-hub-v24 small { margin-top: 3px; color: var(--v24-muted); font-size: 10px; }

.legal-reader {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 30px);
  padding: clamp(20px, 3vw, 31px);
  overflow: auto;
  border: 1px solid var(--v24-line);
  border-radius: var(--v24-radius-lg);
  color: var(--v24-ink);
  background: var(--v24-surface);
  box-shadow: var(--v24-shadow-md);
  animation: v24-modal-in .2s ease both;
}
.legal-reader > header { padding-right: 42px; }
.legal-reader h2 { margin: 5px 0; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -.045em; }
.legal-reader header p { margin: 0; color: var(--v24-muted); }
.legal-kicker { color: var(--v24-success); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.legal-set-content { margin-top: 18px; padding: 14px; border: 1px solid var(--v24-line); border-radius: 11px; background: var(--v24-canvas-soft); }
.legal-set-content ul { margin: 9px 0 0; padding-left: 19px; color: var(--v24-ink-soft); font-size: 12px; }
.legal-content-label { font-size: 11px; font-weight: 800; }
.legal-reader-copy { margin-top: 12px; padding: 12px 0; display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 1px solid var(--v24-line); }
.legal-reader-copy p { margin: 3px 0 0; color: var(--v24-muted); font-size: 10px; }
.legal-read-mode { color: var(--v24-accent-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.legal-source-disclosure { margin-top: 12px; }
.legal-source-disclosure summary { padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.legal-source-disclosure small { color: var(--v24-muted); }
.legal-doc-list { display: grid; gap: 7px; }
.legal-doc { padding: 10px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--v24-line); border-radius: 9px; background: var(--v24-canvas-soft); }
.legal-doc span { display: block; color: var(--v24-muted); font-size: 10px; }
.legal-doc code { color: var(--v24-success); font-size: 9px; }
.legal-reader footer { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }

dialog { padding: 0; border: 0; color: var(--v24-ink); background: transparent; }
dialog::backdrop { background: rgba(11, 22, 19, .57); backdrop-filter: blur(8px); }
.parameter-shell, .confirm-dialog form { width: min(calc(100vw - 28px), 1080px); max-height: calc(100vh - 30px); overflow: auto; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--v24-line); border-radius: var(--v24-radius-lg); background: var(--v24-surface); box-shadow: var(--v24-shadow-md); }
.confirm-dialog form { width: min(calc(100vw - 28px), 460px); }
.parameter-head { position: relative; }
.parameter-toolbar, .parameter-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.mode-tabs button { min-height: 36px; padding: 0 11px; border: 1px solid var(--v24-line); border-radius: 8px; background: var(--v24-canvas-soft); cursor: pointer; }
.mode-tabs button.active { color: #fff; border-color: var(--v24-structure); background: var(--v24-structure); }
.parameter-groups { display: grid; gap: 10px; margin-block: 14px; }

.toast-root-v176 { position: fixed; z-index: 900; top: 82px; right: 18px; width: min(calc(100vw - 36px), 380px); display: grid; gap: 8px; pointer-events: none; }
.toast-v176 { padding: 12px 14px; border: 1px solid var(--v24-line); border-left: 3px solid var(--v24-structure-2); border-radius: 10px; color: var(--v24-ink); background: var(--v24-surface); box-shadow: var(--v24-shadow-sm); opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; }
.toast-v176.show { opacity: 1; transform: translateY(0); }

/* Searchable location dropdowns ----------------------------------------- */
.location-filter-input-v258 {
  padding-right: 38px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--v24-muted) 50%),
    linear-gradient(135deg, var(--v24-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.location-filter-input-v258:not(:disabled) {
  cursor: text;
}
.location-filter-input-v258:focus {
  border-color: var(--v24-structure-2);
  box-shadow: 0 0 0 3px rgba(73, 190, 150, .12);
}
.location-filter-input-v258:disabled {
  cursor: not-allowed;
  background-image: none;
}
.toast-v176.success { border-left-color: var(--v24-success); }
.toast-v176.error { border-left-color: var(--v24-danger); }
.toast-v176.warning { border-left-color: var(--v24-warning); }

/* Empty states and utility ----------------------------------------------- */

.empty-state { min-height: 260px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--v24-line-strong); border-radius: var(--v24-radius); color: var(--v24-muted); background: var(--v24-surface); text-align: center; }
.empty-state svg { width: 42px; }
.empty-state-title { font-weight: 800; }
.switch input { accent-color: var(--v24-accent); }

@keyframes v24-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .sidebar { width: 214px; }
  .behavior-detail-shell { grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); }
  .seller-metrics-v24 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-settings-shell, .fl188-root .content-grid { grid-template-columns: 1fr; }
  .listing-side-card, .fl188-root .side-column { position: static; }
  .latest-token-shell { grid-template-columns: 1fr; }
  .latest-checkout-card { position: static; }
}

@media (max-width: 820px) {
  .topbar { height: 62px; padding-inline: 11px; }
  .app-shell { padding-top: 62px; display: block; }
  .main-content { display: block; }
  .sidebar { top: 62px; width: min(82vw, 300px); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--v24-shadow-md); }
  .sidebar.open, body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 55; inset: 62px 0 0; display: block; background: rgba(11, 22, 19, .46); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-overlay.active, body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .topbar-logo-copy small, .topbar-discord { display: none; }
  .page-inner { padding-top: 27px; }
  .sticky-market-toolbar { top: 72px; }
  .behavior-detail-shell { grid-template-columns: 1fr; grid-template-areas: "gallery" "purchase" "secondary"; }
  .behavior-purchase-panel { position: static; }
  .behavior-gallery { min-height: clamp(300px, 72vw, 520px); }
  .seller-hero { grid-template-columns: auto minmax(0, 1fr); }
  .seller-hero-actions-v24 { grid-column: 1 / -1; justify-items: start; }
  .seller-proof-v24 { justify-content: flex-start; }
  .latest-withdrawal-shell { grid-template-columns: 1fr; }
  .workflow-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  body { font-size: 14px; }
  .topbar-logo-mark { width: 29px; height: 29px; }
  .topbar-logo-copy > span { font-size: 13px; }
  .topbar-theme { display: none; }
  .topbar-token-pill { padding-left: 8px; }
  .topbar-token-pill .coin { display: none; }
  .page-inner { padding-inline: 13px; padding-bottom: 100px; }
  .ref-page-header, .behavior-market-header, .behavior-management-header, .latest-hero, .liquid-hero { display: block; }
  .behavior-header-proof { width: 100%; margin-top: 16px; }
  .sticky-market-toolbar { grid-template-columns: 1fr; }
  .behavior-result-count { display: none; }
  .market-grid, .behavior-market-grid, .seller-card-grid-v165, .management-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .market-card-body { padding: 11px; gap: 8px; }
  .market-card-title { font-size: 13px; }
  .card-seller-line, .ref-card-location { font-size: 9px; }
  .ref-card-price > span { font-size: 15px; }
  .ref-sales-meta { display: none; }
  .favorite-action, .market-card-fav { top: 8px; right: 8px; width: 34px; height: 34px; }
  .card-badge-stack { top: 8px; left: 8px; max-width: calc(100% - 52px); }
  .certified-badge { min-height: 23px; padding: 3px 6px; font-size: 8px; }
  .ref-chip-row > span, .card-tag-zone > span, .entity-tag { font-size: 8px; padding: 3px 6px; min-height: 23px; }
  .license-entity-tag, .studio-entity-tag { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .behavior-gallery { min-height: 78vw; border-radius: 14px; }
  .behavior-purchase-panel, .behavior-secondary-panel { padding: 17px; border-radius: 14px; }
  .behavior-option-grid { grid-template-columns: 1fr; }
  .seller-profile-card-v24 { grid-template-columns: auto minmax(0, 1fr); }
  .seller-profile-card-v24 > .btn { grid-column: 1 / -1; width: 100%; }
  .inline-comment-composer-v24 { grid-template-columns: 1fr; }
  .seller-hero { padding: 17px; }
  .seller-avatar.large { width: 58px; height: 58px; border-radius: 16px 13px 15px 12px; }
  .seller-metrics-v24 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-card, .tracking-card, .mgmt-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .record-card-actions, .mgmt-card-right, .tracking-card > .btn { grid-column: 1 / -1; justify-content: flex-start; }
  .mini-preview, .mgmt-card-icon { width: 56px; }
  .form-row, .modal-grid, .details-grid, .source-grid { grid-template-columns: 1fr; }
  .workflow-strip { display: flex; overflow-x: auto; }
  .workflow-item { min-width: 190px; }
  .fl188-root .page-heading { display: block; }
  .fl188-root .heading-status { margin-top: 12px; }
  .fl188-root .panel-head { grid-template-columns: auto minmax(0, 1fr); }
  .fl188-root .panel-head > :last-child { grid-column: 2; }
  .latest-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-plan-summary > div { border-left: 0; border-bottom: 1px solid var(--v24-line); }
  .latest-plan-grid, .latest-token-grid { grid-template-columns: 1fr; }
  .modal-overlay, .legal-overlay { padding: 8px; align-items: end; }
  .modal, .legal-reader { width: 100%; max-height: 92vh; border-radius: 18px 18px 10px 10px; }
  .modal-actions, .legal-reader footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-license-scope { display: grid; }
  .purchase-summary-card > div { grid-template-columns: 1fr; gap: 3px; }
  .purchase-summary-card strong { text-align: left; }
  .legal-reader-copy, .legal-doc { display: grid; }
  .legal-source-disclosure summary { display: grid; }
  .settings-bottom-bar, .action-bar { bottom: 7px; }
}

@media (max-width: 390px) {
  .market-grid, .behavior-market-grid, .seller-card-grid-v165, .management-card-grid { grid-template-columns: 1fr; }
  .market-card-preview { aspect-ratio: 16 / 10; }
  .topbar-logo-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Final compatibility layer: app.css contains earlier !important rules. */
body,
body.light,
body:not(.light) {
  --v231-base-60: var(--v24-canvas);
  --v231-base-soft-60: var(--v24-canvas-soft);
  --v231-surface-30: var(--v24-surface);
  --v231-surface-raised-30: var(--v24-surface-2);
  --v231-surface-soft-30: var(--v24-surface-2);
  --v231-accent-10: var(--v24-accent);
  --v231-accent-hover-10: var(--v24-accent-dark);
  --v231-accent-soft-10: var(--v24-accent-soft);
  --v231-accent-faint-10: color-mix(in srgb, var(--v24-accent) 6%, transparent);
  --v231-text: var(--v24-ink);
  --v231-text-2: var(--v24-ink-soft);
  --v231-muted: var(--v24-muted);
  --v231-dim: var(--v24-muted);
  --v231-line: var(--v24-line);
  --v231-line-strong: var(--v24-line-strong);
  --v231-shadow-float: var(--v24-shadow-md);
  --v23-canvas: var(--v24-canvas);
  --v23-canvas-2: var(--v24-canvas-soft);
  --v23-surface: var(--v24-surface);
  --v23-surface-2: var(--v24-surface-2);
  --v23-surface-3: var(--v24-surface-2);
  --v23-line: var(--v24-line);
  --v23-line-strong: var(--v24-line-strong);
  --v23-text: var(--v24-ink);
  --v23-text-2: var(--v24-ink-soft);
  --v23-muted: var(--v24-muted);
  --v23-dim: var(--v24-muted);
  --v23-accent: var(--v24-accent);
  --v23-accent-hi: var(--v24-accent-dark);
  --v23-accent-soft: var(--v24-accent-soft);
}

html,
body { background-color: var(--v24-canvas) !important; color: var(--v24-ink) !important; }
body::before { opacity: .16 !important; background-size: 72px 72px !important; }
.app-shell { grid-template-columns: 238px minmax(0, 1fr) !important; }
.sidebar { width: 238px !important; background: var(--v24-canvas-soft) !important; border-color: var(--v24-line) !important; }
.sidebar-item.active { color: #fff !important; background: var(--v24-structure) !important; box-shadow: 0 8px 18px rgba(21,59,54,.13) !important; }
.topbar { background: var(--v24-surface) !important; border-color: var(--v24-line) !important; }
.topbar,
.sidebar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.main-content { width: auto !important; min-width: 0 !important; margin-left: 0 !important; padding: 0 !important; grid-column: 2 !important; background: transparent !important; }
.page-inner { width: min(100%, var(--v24-page)) !important; max-width: var(--v24-page) !important; margin-inline: auto !important; padding: clamp(24px, 3.2vw, 52px) var(--v24-space) clamp(82px, 9vw, 126px) !important; background: transparent !important; }
.ref-page-header,
.behavior-market-header,
.behavior-management-header,
.latest-hero,
.liquid-hero { padding-bottom: 0 !important; border-bottom: 0 !important; }

.market-grid,
.behavior-market-grid,
#mpGrid.behavior-market-grid,
#mfGrid.behavior-market-grid,
#favGrid.behavior-market-grid,
.seller-card-grid-v165 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr)) !important;
  gap: clamp(14px, 1.65vw, 23px) !important;
}
.market-card,
.ref-card,
.minimal-market-card { height: auto !important; align-self: stretch !important; grid-template-rows: auto 1fr !important; border-color: var(--v24-line) !important; border-radius: var(--v24-radius) !important; background: var(--v24-surface) !important; box-shadow: var(--v24-shadow-xs) !important; }
#mpGrid .market-card,
#mfGrid .market-card,
#favGrid .market-card,
.seller-card-grid-v165 .market-card {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  overflow: hidden !important;
}
body[data-view="market-products"] #mpGrid .minimal-market-card,
body[data-view="market-file"] #mfGrid .minimal-market-card,
body[data-view="favorites"] #favGrid .minimal-market-card,
body[data-view="seller-profile"] .seller-card-grid-v165 .minimal-market-card {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  overflow: hidden !important;
}
.market-card-preview,
.ref-card-preview,
.market-grid .market-card.ref-card > .market-card-preview,
.market-grid .market-card.ref-card > .ref-card-preview,
#favGrid .market-card.ref-card > .market-card-preview,
#favGrid .market-card.ref-card > .ref-card-preview,
.seller-card-grid-v165 .market-card.ref-card > .market-card-preview,
.seller-card-grid-v165 .market-card.ref-card > .ref-card-preview { height: auto !important; min-height: 0 !important; flex: none !important; aspect-ratio: 4 / 3 !important; background: var(--v24-surface-2) !important; border-color: var(--v24-line) !important; }
.market-card-body,
.ref-card-body,
#mpGrid .minimal-market-card .ref-card-body,
#mfGrid .minimal-market-card .ref-card-body,
#favGrid .minimal-market-card .ref-card-body,
.market-grid .minimal-market-card .ref-card-body,
.seller-card-preview-grid .minimal-market-card .ref-card-body,
.seller-card-grid-v165 .minimal-market-card .ref-card-body {
  min-height: 0 !important;
  height: auto !important;
  padding: 15px !important;
  row-gap: 10px !important;
  overflow: visible !important;
  background: var(--v24-surface) !important;
}
body[data-view="market-products"] #mpGrid .minimal-market-card .ref-card-body,
body[data-view="market-file"] #mfGrid .minimal-market-card .ref-card-body,
body[data-view="favorites"] #favGrid .minimal-market-card .ref-card-body,
body[data-view="seller-profile"] .seller-card-grid-v165 .minimal-market-card .ref-card-body {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  flex: none !important;
}
.market-card-body > *,
.ref-card-body > * { order: 0 !important; }
.market-card-title,
.ref-card-title { margin: 0 !important; color: var(--v24-ink) !important; font-size: clamp(15px, 1.2vw, 18px) !important; line-height: 1.3 !important; }
#mpGrid .ref-card-title,
#mfGrid .ref-card-title,
#favGrid .ref-card-title,
.seller-card-grid-v165 .ref-card-title {
  min-height: 1.3em !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.ref-card-location { color: var(--v24-muted) !important; font-size: 11px !important; }
.card-tag-zone { margin: 0 !important; }
.card-bottom-line { margin-top: auto !important; padding-top: 11px !important; border-color: var(--v24-line) !important; }
.ref-card-price { color: var(--v24-ink) !important; }
body[data-view="market-products"] .ref-card-price span,
body[data-view="market-file"] .ref-card-price span,
body[data-view="seller-profile"] .ref-card-price span,
body[data-view="favorites"] .ref-card-price span,
body[data-view="market-products"] #mpGrid .ref-card-price span,
body[data-view="market-file"] #mfGrid .ref-card-price span,
body[data-view="seller-profile"] .seller-card-grid-v165 .ref-card-price span,
body[data-view="favorites"] #favGrid .ref-card-price span {
  color: var(--v24-accent) !important;
  text-shadow: none !important;
  filter: none !important;
}
.favorite-action,
.market-card-fav,
.ref-heart,
.card-heart-only { top: 12px !important; right: 12px !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; color: var(--v24-ink) !important; background: rgba(255,255,255,.9) !important; box-shadow: 0 5px 16px rgba(19,40,35,.13) !important; }
#mpGrid .minimal-market-card .favorite-action,
#mfGrid .minimal-market-card .favorite-action,
#favGrid .minimal-market-card .favorite-action,
.seller-card-grid-v165 .minimal-market-card .favorite-action { color: var(--v24-ink) !important; border: 1px solid rgba(255,255,255,.8) !important; background: rgba(255,255,255,.9) !important; }
#mpGrid .minimal-market-card .favorite-action svg,
#mfGrid .minimal-market-card .favorite-action svg,
#favGrid .minimal-market-card .favorite-action svg,
.seller-card-grid-v165 .minimal-market-card .favorite-action svg { color: var(--v24-ink) !important; stroke: currentColor !important; }
.favorite-action.active,
.market-card-fav.active,
.ref-heart.active { color: #fff !important; border-color: var(--v24-accent) !important; background: var(--v24-accent) !important; }
#mpGrid .minimal-market-card .favorite-action.active,
#mfGrid .minimal-market-card .favorite-action.active,
#favGrid .minimal-market-card .favorite-action.active,
.seller-card-grid-v165 .minimal-market-card .favorite-action.active { color: #fff !important; border-color: var(--v24-accent) !important; background: var(--v24-accent) !important; }
#mpGrid .minimal-market-card .favorite-action.active svg,
#mfGrid .minimal-market-card .favorite-action.active svg,
#favGrid .minimal-market-card .favorite-action.active svg,
.seller-card-grid-v165 .minimal-market-card .favorite-action.active svg { color: #fff !important; }
.licensed-production-mini { position: static !important; min-height: 26px !important; color: var(--v24-accent-dark) !important; background: var(--v24-accent-soft) !important; border-color: color-mix(in srgb, var(--v24-accent) 24%, var(--v24-line)) !important; font: 800 10px/1 Inter, sans-serif !important; }
.certified-badge { color: var(--v24-success) !important; background: var(--v24-success-soft) !important; }
.ref-chip-row > span,
.card-tag-zone > span,
.entity-tag { color: var(--v24-ink-soft) !important; background: var(--v24-canvas-soft) !important; border-color: var(--v24-line) !important; }
.license-entity-tag { color: var(--v24-accent-dark) !important; background: var(--v24-accent-soft) !important; border-color: color-mix(in srgb, var(--v24-accent) 25%, var(--v24-line)) !important; }

body[data-view="seller-profile"] .seller-hero {
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  background-image: none !important;
  border-color: var(--v24-line) !important;
  box-shadow: var(--v24-shadow-xs) !important;
}
body[data-view="seller-profile"] .seller-hero h1 { color: var(--v24-ink) !important; }
body[data-view="seller-profile"] .seller-hero p,
body[data-view="seller-profile"] .seller-contact-line { color: var(--v24-muted) !important; }
body[data-view="seller-profile"] .seller-avatar.large {
  color: #fff !important;
  background: var(--v24-structure) !important;
  background-image: none !important;
  border-color: var(--v24-structure) !important;
}
body[data-view="seller-profile"] .seller-card-grid-v165 .market-card {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
}
body[data-view="seller-profile"] .seller-card-grid-v165 .ref-card-body {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
body[data-view="seller-profile"] .seller-card-grid-v165 .ref-card-title {
  min-height: 1.3em !important;
  height: auto !important;
  overflow: visible !important;
}

.behavior-gallery,
.behavior-purchase-panel,
.behavior-secondary-panel,
.profile-card,
.listing-main-card,
.listing-side-card,
.sku-matrix-card,
.behavior-management-card,
.latest-checkout-card,
.latest-withdrawal-balance-card,
.latest-withdrawal-form-card,
.legal-library,
.history-card,
.tracking-card,
.modal,
.legal-reader,
.fl188-root .panel,
.fl188-root .side-card { color: var(--v24-ink) !important; background: var(--v24-surface) !important; border-color: var(--v24-line) !important; border-radius: var(--v24-radius) !important; }
.behavior-gallery { background: var(--v24-surface-2) !important; }
.detail-title,
.detail-price,
.modal-title,
.legal-reader h2 { color: var(--v24-ink) !important; }
.behavior-trust-row,
.purchase-summary-card,
.profile-kyc-progress,
.option-group-card,
.sku-card,
.notice { background: var(--v24-canvas-soft) !important; border-color: var(--v24-line) !important; }
.btn-primary,
.btn.primary,
.liquid-primary-btn,
.latest-buy-token-btn,
.latest-withdraw-btn,
.behavior-primary-buy { color: #fff !important; border-color: var(--v24-accent) !important; background: var(--v24-accent) !important; }
.modal-overlay,
.legal-overlay {
  background: rgba(11,22,19,.57) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}
.modal-overlay .modal,
.legal-overlay .legal-reader {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* Detail controls were formerly built as dark, transparent custom selects.
   Keep the native control visible so the field remains readable, keyboard
   accessible and consistent in both product and file purchase flows. */
body[data-view="product-detail"] .option-select-shell-v165,
body[data-view="product-detail"] .option-select-shell-v166,
body[data-view="file-detail"] .option-select-shell-v165,
body[data-view="file-detail"] .option-select-shell-v166 {
  min-height: 44px !important;
  overflow: hidden !important;
  border: 1px solid var(--v24-line-strong) !important;
  border-radius: 9px !important;
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
}
body[data-view="product-detail"] .detail-select-v165,
body[data-view="product-detail"] .detail-select-v166,
body[data-view="file-detail"] .detail-select-v165,
body[data-view="file-detail"] .detail-select-v166 {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 38px 0 12px !important;
  opacity: 1 !important;
  border: 0 !important;
  color: var(--v24-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
body[data-view="product-detail"] .option-select-value-v165,
body[data-view="product-detail"] .option-select-value-v166,
body[data-view="file-detail"] .option-select-value-v165,
body[data-view="file-detail"] .option-select-value-v166 { display: none !important; }
body[data-view="product-detail"] .option-select-chevron-v165,
body[data-view="product-detail"] .option-select-chevron-v166,
body[data-view="file-detail"] .option-select-chevron-v165,
body[data-view="file-detail"] .option-select-chevron-v166 {
  z-index: 3 !important;
  right: 12px !important;
  width: auto !important;
  height: auto !important;
  color: var(--v24-muted) !important;
  background: transparent !important;
  border: 0 !important;
}
body[data-view="product-detail"] .detail-price,
body[data-view="file-detail"] .detail-price,
body[data-view="product-detail"] #pdPrice,
body[data-view="file-detail"] #fdPrice {
  color: var(--v24-structure) !important;
  font-family: inherit !important;
  font-size: clamp(24px, 2.7vw, 35px) !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
}
body[data-view="product-detail"] .latest-status-pill.success,
body[data-view="file-detail"] .latest-status-pill.success {
  color: var(--v24-success) !important;
  border-color: color-mix(in srgb, var(--v24-success) 28%, var(--v24-line)) !important;
  background: var(--v24-success-soft) !important;
}
body[data-view="product-detail"] .licensed-production-chip,
body[data-view="file-detail"] .licensed-production-chip {
  color: var(--v24-accent-dark) !important;
  border-color: color-mix(in srgb, var(--v24-accent) 28%, var(--v24-line)) !important;
  background: var(--v24-accent-soft) !important;
}
body[data-view="product-detail"] .behavior-gallery-actions .plain-action,
body[data-view="file-detail"] .behavior-gallery-actions .plain-action,
body[data-view="product-detail"] .carousel-nav,
body[data-view="file-detail"] .carousel-nav {
  color: var(--v24-ink) !important;
  border-color: rgba(255,255,255,.78) !important;
  background: rgba(255,255,255,.92) !important;
}

@media (max-width: 820px) {
  .app-shell { display: block !important; }
  .main-content { width: 100% !important; margin-left: 0 !important; padding: 0 !important; }
  .sidebar { width: min(82vw, 300px) !important; }
}

@media (max-width: 580px) {
  .market-grid,
  .behavior-market-grid,
  #mpGrid.behavior-market-grid,
  #mfGrid.behavior-market-grid,
  #favGrid.behavior-market-grid,
  .seller-card-grid-v165 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .market-card-body,
  .ref-card-body,
  #mpGrid .minimal-market-card .ref-card-body,
  #mfGrid .minimal-market-card .ref-card-body,
  #favGrid .minimal-market-card .ref-card-body,
  .market-grid .minimal-market-card .ref-card-body { padding: 11px !important; row-gap: 8px !important; }
  .market-card-title,
  .ref-card-title { font-size: 13px !important; }
  .favorite-action,
  .market-card-fav,
  .ref-heart,
  .card-heart-only { top: 8px !important; right: 8px !important; width: 34px !important; height: 34px !important; }
}

@media (max-width: 390px) {
  .market-grid,
  .behavior-market-grid,
  #mpGrid.behavior-market-grid,
  #mfGrid.behavior-market-grid,
  #favGrid.behavior-market-grid,
  .seller-card-grid-v165 { grid-template-columns: 1fr !important; }
}

/* ========================================================================
   v24.1 visual system + v24.2 responsive shell — calm dark engineering marketplace
   The visual reference is used for density, hierarchy and restraint only.
   Existing 3D StudioMarket content, legal flows and functionality remain.
   ======================================================================== */

body:not(.light) {
  color-scheme: dark;
  --v24-canvas: #070d14;
  --v24-canvas-soft: #0a1119;
  --v24-surface: #101923;
  --v24-surface-2: #151f2b;
  --v24-ink: #f3f6f8;
  --v24-ink-soft: #c4cdd5;
  --v24-muted: #7f8b97;
  --v24-line: #202c39;
  --v24-line-strong: #344252;
  --v24-structure: #20c99a;
  --v24-structure-2: #51dab4;
  --v24-accent: #20c99a;
  --v24-accent-dark: #15936f;
  --v24-accent-soft: #0c2b23;
  --v24-success: #20c99a;
  --v24-success-soft: #0c2b23;
  --v24-warning: #e5a631;
  --v24-warning-soft: #302513;
  --v24-danger: #ef6b72;
  --v24-danger-soft: #31191e;
  --v24-focus: rgba(32, 201, 154, .28);
  --v24-shadow-xs: 0 1px 2px rgba(0, 0, 0, .22);
  --v24-shadow-sm: 0 12px 28px rgba(0, 0, 0, .22);
  --v24-shadow-md: 0 24px 60px rgba(0, 0, 0, .34);
  --v24-radius-sm: 8px;
  --v24-radius: 12px;
  --v24-radius-lg: 14px;
  --v24-page: 1500px;
  --price-orange: #f3f6f8;
  background: var(--v24-canvas) !important;
}

html,
body,
body:not(.light) {
  color: var(--v24-ink) !important;
  background-color: var(--v24-canvas) !important;
}
body:not(.light) {
  background-image: none !important;
  font-size: 14px;
  line-height: 1.5;
}
body:not(.light)::before { display: none !important; }

body:not(.light) .topbar {
  height: 64px !important;
  padding-inline: clamp(16px, 2vw, 28px) !important;
  border-color: var(--v24-line) !important;
  background: var(--v24-canvas) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.light) .topbar-logo-copy > span { font-size: 16px !important; letter-spacing: -.025em !important; }
body:not(.light) .topbar-logo-copy small { display: none !important; }
body:not(.light) .logo-market { color: var(--v24-accent) !important; }
body:not(.light) .topbar-logo-mark i { background: var(--v24-ink-soft) !important; }
body:not(.light) .topbar-logo-mark i:nth-child(2) { background: var(--v24-accent) !important; }
body:not(.light) .topbar-icon-btn,
body:not(.light) .topbar-theme,
body:not(.light) .topbar-discord,
body:not(.light) .topbar-token-plus {
  border-color: transparent !important;
  color: var(--v24-ink-soft) !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:not(.light) .topbar-icon-btn:hover,
body:not(.light) .topbar-theme:hover,
body:not(.light) .topbar-discord:hover { background: var(--v24-surface-2) !important; }
body:not(.light) .topbar-token-pill {
  min-height: 40px !important;
  border-color: var(--v24-line) !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
}
body:not(.light) .topbar-token-plus {
  color: #04120d !important;
  background: var(--v24-accent) !important;
}

body:not(.light) .app-shell {
  padding-top: 64px !important;
  grid-template-columns: 228px minmax(0, 1fr) !important;
}
body:not(.light) .sidebar {
  top: 64px !important;
  width: 228px !important;
  padding: 24px 14px 14px !important;
  border-color: var(--v24-line) !important;
  background: var(--v24-canvas-soft) !important;
  backdrop-filter: none !important;
}
body:not(.light) .sidebar-section-label {
  margin: 20px 10px 7px !important;
  color: #667381 !important;
  font-size: 9px !important;
  letter-spacing: .13em !important;
}
body:not(.light) .sidebar-item,
body:not(.light) .sidebar-logout {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #98a5b1 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:not(.light) .sidebar-item:hover,
body:not(.light) .sidebar-logout:hover {
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  transform: none !important;
}
body:not(.light) .sidebar-item.active {
  position: relative;
  color: var(--v24-ink) !important;
  background: var(--v24-surface-2) !important;
  box-shadow: none !important;
}
body:not(.light) .sidebar-item.active::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px -2px;
  width: 2px;
  border-radius: 2px;
  background: var(--v24-accent);
}
body:not(.light) .sidebar-bottom { border-color: var(--v24-line) !important; }

body:not(.light) .main-content { grid-column: 2 !important; }
body:not(.light) .page-inner {
  width: min(100%, var(--v24-page)) !important;
  max-width: var(--v24-page) !important;
  padding: clamp(30px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(72px, 8vw, 108px) !important;
}
body:not(.light) .page-title,
body:not(.light) .ref-page-header h1,
body:not(.light) .latest-hero h1,
body:not(.light) .liquid-hero h1 {
  margin: 0 !important;
  font-family: inherit !important;
  font-size: clamp(28px, 3vw, 36px) !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
}
body:not(.light) .page-desc,
body:not(.light) .ref-page-header p,
body:not(.light) .latest-hero p,
body:not(.light) .liquid-hero p {
  margin-top: 7px !important;
  color: var(--v24-muted) !important;
  font-size: 13px !important;
}
body:not(.light) .ref-page-header,
body:not(.light) .behavior-market-header,
body:not(.light) .behavior-management-header,
body:not(.light) .latest-hero,
body:not(.light) .liquid-hero {
  margin-bottom: 24px !important;
  align-items: start !important;
}
body:not(.light) .behavior-header-proof { display: none !important; }
body:not(.light) .section-kicker,
body:not(.light) .eyebrow,
body:not(.light) .heading-kicker,
body:not(.light) .panel-label,
body:not(.light) .action-label {
  color: var(--v24-accent) !important;
  font-size: 9px !important;
  letter-spacing: .12em !important;
}

body:not(.light) .btn,
body:not(.light) .neutral-btn,
body:not(.light) .liquid-primary-btn,
body:not(.light) .plain-action,
body:not(.light) .legal-inline-link {
  min-height: 40px;
  border-color: var(--v24-line) !important;
  border-radius: 8px !important;
  color: var(--v24-ink-soft) !important;
  background: var(--v24-surface-2) !important;
  box-shadow: none !important;
}
body:not(.light) .btn:hover,
body:not(.light) .neutral-btn:hover {
  border-color: var(--v24-line-strong) !important;
  color: var(--v24-ink) !important;
  transform: none !important;
  box-shadow: none !important;
}
body:not(.light) .btn-primary,
body:not(.light) .btn.primary,
body:not(.light) .liquid-primary-btn,
body:not(.light) .latest-buy-token-btn,
body:not(.light) .latest-withdraw-btn,
body:not(.light) .behavior-primary-buy {
  color: #04120d !important;
  border-color: var(--v24-accent) !important;
  background: var(--v24-accent) !important;
}
body:not(.light) .plain-action,
body:not(.light) .legal-inline-link {
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--v24-accent) !important;
  background: transparent !important;
}
body:not(.light) .form-input,
body:not(.light) .form-textarea,
body:not(.light) .filter-select,
body:not(.light) input:not([type="checkbox"]):not([type="radio"]),
body:not(.light) select,
body:not(.light) textarea {
  border-color: var(--v24-line) !important;
  border-radius: 8px !important;
  color: var(--v24-ink) !important;
  background: #0c141e !important;
  box-shadow: none !important;
}
body:not(.light) input::placeholder,
body:not(.light) textarea::placeholder { color: #65717d !important; }

body:not(.light) .behavior-intent-strip,
body:not(.light) .active-filter-row,
body:not(.light) .segmented-tabs,
body:not(.light) .tabs { margin-bottom: 16px !important; }
body:not(.light) .behavior-intent-strip button,
body:not(.light) .segmented-tabs button,
body:not(.light) .tab-btn,
body:not(.light) .active-filter-chip {
  min-height: 34px !important;
  border-color: transparent !important;
  border-radius: 7px !important;
  color: var(--v24-muted) !important;
  background: transparent !important;
}
body:not(.light) .behavior-intent-strip button.is-active,
body:not(.light) .segmented-tabs button.active,
body:not(.light) .tab-btn.active {
  color: var(--v24-ink) !important;
  border-color: var(--v24-line-strong) !important;
  background: var(--v24-surface-2) !important;
}
body:not(.light) .sticky-market-toolbar,
body:not(.light) .behavior-toolbar,
body:not(.light) .one-piece-toolbar {
  position: relative !important;
  top: auto !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.light) .search-filter-combo,
body:not(.light) .neo-search-control {
  min-height: 44px !important;
  border-color: var(--v24-line) !important;
  border-radius: 8px !important;
  background: var(--v24-surface) !important;
}
body:not(.light) .search-filter-button:hover { color: var(--v24-accent) !important; background: var(--v24-accent-soft) !important; }

body:not(.light) .market-grid,
body:not(.light) .behavior-market-grid,
body:not(.light) #mpGrid.behavior-market-grid,
body:not(.light) #mfGrid.behavior-market-grid,
body:not(.light) #favGrid.behavior-market-grid,
body:not(.light) .seller-card-grid-v165 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}
body:not(.light) .market-card-v241,
body:not(.light) #mpGrid .market-card-v241,
body:not(.light) #mfGrid .market-card-v241,
body:not(.light) #favGrid .market-card-v241,
body:not(.light) .seller-card-grid-v165 .market-card-v241 {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-self: start !important;
  overflow: hidden !important;
  border: 1px solid var(--v24-line) !important;
  border-radius: 12px !important;
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
  transform: none !important;
}
body:not(.light) .market-card-v241:hover {
  border-color: var(--v24-line-strong) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18) !important;
  transform: translateY(-2px) !important;
}
body:not(.light) .market-card-v241 .market-card-preview,
body:not(.light) .market-card-v241 .ref-card-preview {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v24-line) !important;
  background: #0c141d !important;
}
body:not(.light) .market-card-v241 .ref-preview-placeholder {
  min-height: 0 !important;
  color: #677582 !important;
  background: #0c141d !important;
}
body:not(.light) .market-card-v241 .ref-preview-placeholder::after {
  inset: 14px !important;
  border-color: #263544 !important;
  border-radius: 8px !important;
}
body:not(.light) .market-card-v241 .ref-preview-placeholder svg { stroke: #647682 !important; }
body:not(.light) .market-card-v241 .market-card-body,
body:not(.light) .market-card-v241 .ref-card-body,
body:not(.light) #mpGrid .market-card-v241 .ref-card-body,
body:not(.light) #mfGrid .market-card-v241 .ref-card-body,
body:not(.light) #favGrid .market-card-v241 .ref-card-body,
body:not(.light) .seller-card-grid-v165 .market-card-v241 .ref-card-body {
  min-height: 0 !important;
  height: auto !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  overflow: visible !important;
  background: var(--v24-surface) !important;
}
body:not(.light) .market-card-v241 .market-card-title,
body:not(.light) .market-card-v241 .ref-card-title {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  color: var(--v24-ink) !important;
  font-size: 15px !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
  letter-spacing: -.015em !important;
}
body:not(.light) .market-card-v241 .card-seller-line,
body:not(.light) .market-card-v241 .card-tag-zone,
body:not(.light) .market-card-v241 .card-eyebrow-row,
body:not(.light) .market-card-v241 .licensed-production-mini { display: none !important; }
body:not(.light) .market-card-v241 .card-price-v241 {
  min-height: 27px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: var(--v24-ink) !important;
}
body:not(.light) .market-card-v241 .card-price-v241::before {
  content: "" !important;
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 10px !important;
  display: block !important;
  border: 1px solid #ffd36a !important;
  border-radius: 3px !important;
  background: #e8a71f !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: rotate(45deg) !important;
}
body:not(.light) .market-card-v241 .card-price-v241 span {
  color: var(--v24-ink) !important;
  font-size: 19px !important;
  font-weight: 780 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}
body:not(.light) .market-card-v241 .card-price-v241 small {
  color: var(--v24-muted) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  letter-spacing: .08em !important;
}
body:not(.light) .card-license-line-v241 {
  width: 100%;
  min-height: 34px;
  padding: 0;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  color: var(--v24-accent);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
body:not(.light) .card-license-line-v241 svg { width: 15px; height: 15px; }
body:not(.light) .card-license-line-v241 span { min-width: 0; display: grid; gap: 1px; }
body:not(.light) .card-license-line-v241 small {
  color: var(--v24-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body:not(.light) .card-license-line-v241 strong {
  overflow: hidden;
  color: var(--v24-ink-soft);
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.light) .card-compatibility-v241 {
  margin: 0 !important;
  overflow: hidden;
  color: var(--v24-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.light) .card-compact-meta-v241 {
  margin-top: 4px;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border-top: 1px solid var(--v24-line);
  color: var(--v24-muted);
  font-size: 10px;
}
body:not(.light) .card-compact-meta-v241 span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.light) .market-card-v241 .favorite-action,
body:not(.light) .market-card-v241 .market-card-fav,
body:not(.light) .market-card-v241 .ref-heart {
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 50% !important;
  color: #dce4e9 !important;
  background: rgba(7, 13, 20, .68) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.light) .market-card-v241 .favorite-action.active,
body:not(.light) .market-card-v241 .market-card-fav.active {
  color: #04120d !important;
  border-color: var(--v24-accent) !important;
  background: var(--v24-accent) !important;
}
body:not(.light) .market-card-v241 .card-badge-stack { top: 10px !important; left: 10px !important; }
body:not(.light) .market-card-v241 .certified-badge {
  min-height: 24px !important;
  padding: 4px 7px !important;
  border-color: rgba(32, 201, 154, .38) !important;
  border-radius: 6px !important;
  color: #68ddbc !important;
  background: rgba(7, 31, 26, .84) !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
}

body:not(.light) .behavior-detail-shell {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr) !important;
  gap: 18px !important;
}
body:not(.light) .behavior-gallery,
body:not(.light) .behavior-purchase-panel,
body:not(.light) .behavior-secondary-panel {
  border-color: var(--v24-line) !important;
  border-radius: 12px !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
}
body:not(.light) .behavior-gallery { min-height: clamp(420px, 48vw, 650px) !important; background: #0c141d !important; }
body:not(.light) .behavior-purchase-panel { top: 80px !important; padding: clamp(20px, 2.2vw, 28px) !important; }
body:not(.light) .behavior-purchase-head { border-color: var(--v24-line) !important; }
body:not(.light) .detail-title {
  margin: 8px 0 13px !important;
  color: var(--v24-ink) !important;
  font-size: clamp(27px, 3vw, 36px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}
body:not(.light)[data-view="product-detail"] #pdPrice,
body:not(.light)[data-view="file-detail"] #fdPrice,
body:not(.light) .detail-price {
  color: var(--v24-ink) !important;
  font-family: inherit !important;
  font-size: 28px !important;
  font-weight: 780 !important;
  text-shadow: none !important;
}
body:not(.light) .detail-price::before { box-shadow: none !important; }
body:not(.light) .detail-certification-row { margin-top: 16px !important; gap: 8px !important; }
body:not(.light) .detail-certification-row .entity-tag,
body:not(.light) .detail-certification-row .license-entity-tag {
  min-height: 26px !important;
  padding: 4px 7px !important;
  border-color: var(--v24-line) !important;
  border-radius: 6px !important;
  color: var(--v24-ink-soft) !important;
  background: var(--v24-surface-2) !important;
  font-size: 9px !important;
}
body:not(.light) .detail-certification-row .license-entity-tag {
  flex: 1 1 100% !important;
  justify-content: flex-start !important;
  border: 0 !important;
  padding-inline: 0 !important;
  color: var(--v24-accent) !important;
  background: transparent !important;
}
body:not(.light) .detail-section-v167,
body:not(.light) .behavior-decision-block { border-color: var(--v24-line) !important; }
body:not(.light) .detail-section-head-v167 { color: var(--v24-ink) !important; font-size: 11px !important; }
body:not(.light) .address-card,
body:not(.light) .seller-profile-card-v24,
body:not(.light) .detail-comment-card,
body:not(.light) .detail-comment-card-v15411 {
  border-color: var(--v24-line) !important;
  border-radius: 9px !important;
  background: var(--v24-canvas-soft) !important;
}
body:not(.light) .behavior-gallery .carousel-nav,
body:not(.light)[data-view="product-detail"] .carousel-nav,
body:not(.light)[data-view="file-detail"] .carousel-nav,
body:not(.light) .behavior-gallery-actions > *,
body:not(.light)[data-view="product-detail"] .behavior-gallery-actions .plain-action,
body:not(.light)[data-view="file-detail"] .behavior-gallery-actions .plain-action {
  color: var(--v24-ink) !important;
  border-color: rgba(255,255,255,.1) !important;
  background: rgba(7,13,20,.74) !important;
  box-shadow: none !important;
}

body:not(.light) .card,
body:not(.light) .profile-card,
body:not(.light) .listing-main-card,
body:not(.light) .listing-side-card,
body:not(.light) .sku-matrix-card,
body:not(.light) .behavior-management-card,
body:not(.light) .management-bento-card-v161,
body:not(.light) .latest-checkout-card,
body:not(.light) .latest-withdrawal-balance-card,
body:not(.light) .latest-withdrawal-form-card,
body:not(.light) .legal-library,
body:not(.light) .seller-history-summary-card-v177,
body:not(.light) .latest-plan-summary,
body:not(.light) .notice,
body:not(.light) .history-card,
body:not(.light) .tracking-card,
body:not(.light) .mgmt-card,
body:not(.light) .option-card,
body:not(.light) .sku-card,
body:not(.light) .kyc-card,
body:not(.light) .latest-kyc-card,
body:not(.light) .side-card,
body:not(.light) .panel,
body:not(.light) .minimal-plan-card,
body:not(.light) .minimal-token-card {
  border-color: var(--v24-line) !important;
  border-radius: 12px !important;
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
}
body:not(.light) .summary-item,
body:not(.light) .behavior-ops-metric,
body:not(.light) .management-metric-v161,
body:not(.light) .seller-metrics-v24 article,
body:not(.light) .profile-kyc-progress > div {
  border-color: var(--v24-line) !important;
  border-radius: 9px !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
}
body:not(.light) .settings-row,
body:not(.light) .option-group-card,
body:not(.light) .sku-card,
body:not(.light) .purchase-summary-card > div,
body:not(.light) .legal-set-card {
  border-color: var(--v24-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:not(.light) .profile-card { padding: clamp(18px, 2vw, 24px) !important; }
body:not(.light) .neo-settings-icon { display: none !important; }
body:not(.light) .settings-section-head h2,
body:not(.light) .profile-card h2,
body:not(.light) .detail-comments-head h2 { font-size: 20px !important; letter-spacing: -.02em !important; }
body:not(.light) .summary-value,
body:not(.light) .behavior-ops-metric > strong,
body:not(.light) .management-metric-v161 > strong,
body:not(.light) .seller-history-summary-card-v177 > strong,
body:not(.light) .profile-kyc-progress strong { color: var(--v24-ink) !important; font-size: 18px !important; }
body:not(.light) .minimal-plan-card,
body:not(.light) .minimal-token-card { padding: 20px !important; }
body:not(.light) .minimal-plan-card.current,
body:not(.light) .minimal-token-card.selected {
  border-color: var(--v24-accent) !important;
  box-shadow: inset 0 2px var(--v24-accent) !important;
}

body:not(.light)[data-view="seller-profile"] .seller-hero {
  border-color: var(--v24-line) !important;
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}
body:not(.light)[data-view="seller-profile"] .seller-hero h1 { color: var(--v24-ink) !important; font-size: 32px !important; }
body:not(.light)[data-view="seller-profile"] .seller-avatar.large { color: #04120d !important; background: var(--v24-accent) !important; }

body:not(.light) .modal-overlay,
body:not(.light) .legal-overlay {
  background: rgba(2, 6, 10, .74) !important;
  backdrop-filter: none !important;
}
body:not(.light) .modal,
body:not(.light) .legal-reader {
  border-color: var(--v24-line-strong) !important;
  border-radius: 14px !important;
  color: var(--v24-ink) !important;
  background: var(--v24-surface) !important;
  background-image: none !important;
  box-shadow: var(--v24-shadow-md) !important;
}
body:not(.light) .modal-title,
body:not(.light) .legal-reader h2 { color: var(--v24-ink) !important; font-size: 22px !important; letter-spacing: -.025em !important; }
body:not(.light) .modal-desc,
body:not(.light) .legal-reader p { color: var(--v24-muted) !important; }
body:not(.light) .legal-reader-copy,
body:not(.light) .legal-doc,
body:not(.light) .legal-check,
body:not(.light) .purchase-summary-card,
body:not(.light) .file-filter-hub-v24 button {
  border-color: var(--v24-line) !important;
  background: var(--v24-canvas-soft) !important;
}
body:not(.light) .legal-reader footer { background: var(--v24-surface) !important; }

@media (max-width: 1100px) {
  body:not(.light) .behavior-detail-shell { grid-template-columns: 1fr !important; grid-template-areas: "gallery" "purchase" "secondary" !important; }
  body:not(.light) .behavior-purchase-panel { position: static !important; }
}

@media (max-width: 820px) {
  body:not(.light) .app-shell { display: block !important; padding-top: 64px !important; }
  body:not(.light) .sidebar { width: min(84vw, 292px) !important; }
  body:not(.light) .main-content { width: 100% !important; }
  body:not(.light) .page-inner { padding-inline: 16px !important; }
}

@media (max-width: 580px) {
  body:not(.light) .market-grid,
  body:not(.light) .behavior-market-grid,
  body:not(.light) #mpGrid.behavior-market-grid,
  body:not(.light) #mfGrid.behavior-market-grid,
  body:not(.light) #favGrid.behavior-market-grid,
  body:not(.light) .seller-card-grid-v165 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body:not(.light) .market-card-v241 .market-card-body,
  body:not(.light) .market-card-v241 .ref-card-body { padding: 11px !important; gap: 7px !important; }
  body:not(.light) .market-card-v241 .market-card-title,
  body:not(.light) .market-card-v241 .ref-card-title { font-size: 13px !important; }
  body:not(.light) .market-card-v241 .card-price-v241 span { font-size: 16px !important; }
  body:not(.light) .card-license-line-v241 strong { font-size: 9px !important; }
  body:not(.light) .card-compact-meta-v241 { font-size: 8px !important; }
}

@media (max-width: 390px) {
  body:not(.light) .market-grid,
  body:not(.light) .behavior-market-grid,
  body:not(.light) #mpGrid.behavior-market-grid,
  body:not(.light) #mfGrid.behavior-market-grid,
  body:not(.light) #favGrid.behavior-market-grid,
  body:not(.light) .seller-card-grid-v165 { grid-template-columns: 1fr !important; }
}

/* High-specificity card cleanup for legacy marketplace price/heart rules. */
body:not(.light)[data-view="market-products"] #mpGrid .market-card-v241 .card-price-v241::before,
body:not(.light)[data-view="market-file"] #mfGrid .market-card-v241 .card-price-v241::before,
body:not(.light)[data-view="favorites"] #favGrid .market-card-v241 .card-price-v241::before,
body:not(.light)[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 .card-price-v241::before {
  content: none !important;
  display: none !important;
}
body:not(.light)[data-view="market-products"] #mpGrid .market-card-v241 .card-price-v241 span,
body:not(.light)[data-view="market-file"] #mfGrid .market-card-v241 .card-price-v241 span,
body:not(.light)[data-view="favorites"] #favGrid .market-card-v241 .card-price-v241 span,
body:not(.light)[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 .card-price-v241 span {
  color: var(--v24-ink) !important;
  font-size: 19px !important;
  text-shadow: none !important;
}
body:not(.light)[data-view="market-products"] #mpGrid .market-card-v241 .favorite-action,
body:not(.light)[data-view="market-file"] #mfGrid .market-card-v241 .favorite-action,
body:not(.light)[data-view="favorites"] #favGrid .market-card-v241 .favorite-action,
body:not(.light)[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 .favorite-action {
  color: var(--v24-ink) !important;
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(7, 13, 20, .72) !important;
}
body:not(.light) .card-license-line-v241 strong {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body:not(.light) .market-card-v241[data-card-kind="product"] .ref-card-body { min-height: 166px !important; }
body:not(.light) .market-card-v241[data-card-kind="file"] .ref-card-body { min-height: 190px !important; }
body:not(.light)[data-view="market-products"] #mpGrid .card-price-v241,
body:not(.light)[data-view="market-file"] #mfGrid .card-price-v241,
body:not(.light)[data-view="favorites"] #favGrid .card-price-v241,
body:not(.light)[data-view="seller-profile"] .seller-card-grid-v165 .card-price-v241 {
  align-self: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
body:not(.light)[data-view="market-products"] #mpGrid .market-card-v241[data-card-kind="product"] .ref-card-body,
body:not(.light)[data-view="favorites"] #favGrid .market-card-v241[data-card-kind="product"] .ref-card-body,
body:not(.light)[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241[data-card-kind="product"] .ref-card-body {
  min-height: 176px !important;
}
body:not(.light)[data-view="market-file"] #mfGrid .market-card-v241[data-card-kind="file"] .ref-card-body,
body:not(.light)[data-view="favorites"] #favGrid .market-card-v241[data-card-kind="file"] .ref-card-body,
body:not(.light)[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241[data-card-kind="file"] .ref-card-body {
  min-height: 190px !important;
}
body:not(.light)[data-view="product-detail"] .behavior-purchase-head > .section-kicker,
body:not(.light)[data-view="file-detail"] .behavior-purchase-head > .section-kicker {
  width: max-content !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body:not(.light)[data-view="product-detail"] .licensed-production-chip,
body:not(.light)[data-view="file-detail"] .licensed-production-chip { display: none !important; }
body:not(.light)[data-view="product-detail"] .behavior-gallery-actions,
body:not(.light)[data-view="file-detail"] .behavior-gallery-actions {
  inset: 16px 16px auto 16px !important;
  justify-content: flex-end !important;
}
body:not(.light)[data-view="profile-settings"] .profile-card.neo-settings-row {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}
body:not(.light)[data-view="profile-settings"] .profile-card.current-plan-card,
body:not(.light)[data-view="profile-settings"] .profile-card.current-plan-card.neo-settings-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 24px !important;
}
body:not(.light)[data-view="profile-settings"] .profile-card.current-plan-card > div {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
body:not(.light)[data-view="profile-settings"] .profile-card.current-plan-card > .btn {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

/* Keep feedback compact: the legacy bottom anchor must not stretch a top toast. */
body:not(.light) .toast-root-v176 {
  top: 82px !important;
  right: 18px !important;
  bottom: auto !important;
  left: auto !important;
  width: min(calc(100vw - 36px), 380px) !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}
body:not(.light) .toast-root-v176 .toast-v176 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Native dialogs inherit a legacy zero margin; restore true viewport centering. */
body:not(.light) dialog[open] {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
}
body:not(.light) .fl188-root dialog.confirm-dialog[open] {
  width: min(calc(100vw - 32px), 460px) !important;
  height: max-content !important;
  max-width: none !important;
  max-height: calc(100vh - 32px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
}
body:not(.light) .fl188-root dialog.confirm-dialog[open] form {
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100vh - 32px) !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  padding: 24px !important;
}
body:not(.light)[data-view="profile-settings"] .profile-card .settings-section-head {
  width: 100% !important;
  margin-bottom: 20px !important;
}

/* -----------------------------------------------------------------------
   v24.2 responsive shell

   The legacy bundle used both a grid column and viewport-based width/margin
   calculations.  Keep one source of truth so every standalone page responds
   to the desktop sidebar state without being pushed or clipped on the right.
   ----------------------------------------------------------------------- */

:root {
  --v24-sidebar-expanded: 228px;
  --v24-sidebar-current: var(--v24-sidebar-expanded);
}

html,
body,
.app-shell,
.main-content,
.page-inner {
  max-width: 100% !important;
}

.app-shell,
body.light .app-shell,
body:not(.light) .app-shell {
  width: 100% !important;
  grid-template-columns: var(--v24-sidebar-current) minmax(0, 1fr) !important;
  transition: grid-template-columns .22s ease !important;
}

#sidebarMount {
  width: var(--v24-sidebar-current) !important;
  min-width: 0 !important;
  transition: width .22s ease !important;
}

.sidebar,
body.light .sidebar,
body:not(.light) .sidebar {
  width: var(--v24-sidebar-expanded) !important;
  transform: translateX(0) !important;
  transition: transform .22s ease, visibility 0s linear 0s !important;
}

.main-content {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  grid-column: 2 !important;
  overflow-x: clip !important;
}

.main-content > *,
.page-inner > *,
.listing-settings-shell > *,
.fl188-root .content-grid > *,
.behavior-detail-shell > * {
  min-width: 0 !important;
  max-width: 100%;
}

body.sidebar-collapsed {
  --v24-sidebar-current: 0px;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-102%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform .22s ease, visibility 0s linear .22s !important;
}

body.sidebar-collapsed .main-content {
  width: 100% !important;
}

body.sidebar-collapsed .topbar-icon-btn {
  color: var(--v24-ink) !important;
  border-color: color-mix(in srgb, var(--v24-accent) 42%, var(--v24-line)) !important;
}

@media (max-width: 820px) {
  :root {
    --v24-sidebar-current: 0px;
  }

  .app-shell,
  body:not(.light) .app-shell {
    width: 100% !important;
    display: block !important;
    grid-template-columns: none !important;
  }

  #sidebarMount {
    width: 0 !important;
  }

  .sidebar,
  body.light .sidebar,
  body:not(.light) .sidebar,
  body.sidebar-collapsed .sidebar {
    width: min(84vw, 292px) !important;
    transform: translateX(-102%) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .22s ease, visibility 0s !important;
  }

  .sidebar.open,
  body.sidebar-open .sidebar,
  body.sidebar-collapsed.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  .main-content,
  body:not(.light) .main-content,
  body.sidebar-collapsed .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
    overflow-x: clip !important;
  }
}

/* ========================================================================
   v24.4 full-page marketplace layout
   - Sidebar is a closed overlay drawer at every viewport size.
   - Shared topbar never changes position; only the left control switches menu/back.
   - Marketplace cards use a five-column desktop grid with balanced side spacing.
   - Icon-only controls have no surrounding circle or capsule.
   ======================================================================== */

:root { --v24-page: 1680px; }

html body .app-shell {
  min-height: 100vh !important;
  padding-top: 68px !important;
  display: block !important;
}

html body .main-content {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: auto !important;
}

html body .page-inner {
  width: min(100%, var(--v24-page)) !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 3vw, 48px) !important;
}

html body .sidebar {
  position: fixed !important;
  z-index: 66 !important;
  top: 68px !important;
  bottom: 0 !important;
  left: 0 !important;
  width: min(86vw, 304px) !important;
  transform: translateX(-104%) !important;
  transition: transform .22s ease !important;
  box-shadow: 18px 0 48px rgba(0, 0, 0, .24) !important;
}

html body .sidebar.open,
html body.sidebar-open .sidebar {
  transform: translateX(0) !important;
}

html body .sidebar-overlay {
  position: fixed !important;
  z-index: 65 !important;
  inset: 68px 0 0 !important;
  display: block !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: rgba(2, 7, 10, .58) !important;
  transition: opacity .2s ease !important;
}

html body .sidebar-overlay.open,
html body .sidebar-overlay.active,
html body.sidebar-open .sidebar-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
}

html body .topbar {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
}

html body .topbar-logo {
  gap: 0 !important;
}

html body .topbar-logo-mark,
html body .topbar-logo-copy small {
  display: none !important;
}

html body .topbar-logo-copy {
  display: block !important;
  line-height: 1 !important;
}

html body .topbar-logo-copy > span {
  display: inline-flex !important;
  align-items: baseline !important;
  font-family: "Space Grotesk", Inter, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  white-space: nowrap !important;
}

html body .topbar-token-pill {
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border: 1px solid var(--v24-line) !important;
  border-radius: 10px !important;
  color: var(--v24-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

html body .topbar-token-pill .coin {
  display: block !important;
  flex: 0 0 20px !important;
}

html body .topbar-token-value {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Center discovery tabs and search while keeping result count readable. */
html body[data-view="market-products"] .behavior-intent-strip,
html body[data-view="market-file"] .behavior-intent-strip {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
  justify-content: center !important;
}

html body[data-view="market-products"] .behavior-toolbar,
html body[data-view="market-file"] .behavior-toolbar {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
}

html body[data-view="market-products"] .behavior-search-primary,
html body[data-view="market-file"] .behavior-search-primary {
  width: 100% !important;
  justify-self: center !important;
}

/* Five-column desktop market, then balanced fixed breakpoints. */
html body #mpGrid,
html body #mfGrid,
html body #favGrid,
html body .seller-card-grid-v165 {
  width: 100% !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.35vw, 22px) !important;
  justify-content: center !important;
  align-items: stretch !important;
}

/* Card media touches the card frame on the top, left and right edges. */
html body #mpGrid .market-card,
html body #mfGrid .market-card,
html body #favGrid .market-card,
html body .seller-card-grid-v165 .market-card {
  padding: 0 !important;
  overflow: hidden !important;
}

html body #mpGrid .market-card-preview,
html body #mpGrid .ref-card-preview,
html body #mfGrid .market-card-preview,
html body #mfGrid .ref-card-preview,
html body #favGrid .market-card-preview,
html body #favGrid .ref-card-preview,
html body .seller-card-grid-v165 .market-card-preview,
html body .seller-card-grid-v165 .ref-card-preview {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  align-self: start !important;
}

html body .market-card-preview .card-image-scroll,
html body .ref-card-preview .card-image-scroll,
html body .market-card-preview .card-image-slide,
html body .ref-card-preview .card-image-slide,
html body .market-card-preview img,
html body .ref-card-preview img,
html body .market-card-preview .ref-preview-placeholder,
html body .ref-card-preview .ref-preview-placeholder {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Icon-only controls: preserve hit area, remove every visible ring/circle. */
html body .topbar .topbar-icon-btn,
html body .topbar .topbar-theme,
html body .topbar .topbar-discord,
html body .search-filter-button,
html body .neo-settings-icon,
html body button[aria-label="Close"],
html body button[aria-label^="Remove"],
html body button[aria-label^="Delete"],
html body button[title="Delete from R2"],
html body button[title="Download"],
html body .icon-button,
html body .icon-delete,
html body .social-row-remove,
html body .legal-close,
html body .modal-close {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body .topbar .topbar-icon-btn:hover,
html body .topbar .topbar-theme:hover,
html body .topbar .topbar-discord:hover,
html body .search-filter-button:hover,
html body button[aria-label="Close"]:hover,
html body button[aria-label^="Remove"]:hover,
html body button[aria-label^="Delete"]:hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--v24-accent) !important;
  transform: none !important;
}

html body[data-view] #mpGrid .market-card-v241 button.favorite-action,
html body[data-view] #mfGrid .market-card-v241 button.favorite-action,
html body[data-view] #favGrid .market-card-v241 button.favorite-action,
html body[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 button.favorite-action,
html body .market-card-fav,
html body .ref-heart,
html body .card-heart-only {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)) !important;
}

html body[data-view] #mpGrid .market-card-v241 button.favorite-action:hover,
html body[data-view] #mfGrid .market-card-v241 button.favorite-action:hover,
html body[data-view] #favGrid .market-card-v241 button.favorite-action:hover,
html body[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 button.favorite-action:hover {
  color: var(--v24-accent) !important;
  background: transparent !important;
  transform: scale(1.08) !important;
}

html body[data-view] #mpGrid .market-card-v241 button.favorite-action.active,
html body[data-view] #mfGrid .market-card-v241 button.favorite-action.active,
html body[data-view] #favGrid .market-card-v241 button.favorite-action.active,
html body[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 button.favorite-action.active,
html body .market-card-fav.active,
html body .ref-heart.active,
html body .card-heart-only.active {
  color: var(--v24-accent) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body[data-view] .behavior-gallery button.carousel-nav {
  width: 38px !important;
  height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: 34px !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.72) !important;
}

/* Dedicated Product View license tag channel. */
html body[data-view="product-detail"] .product-license-slot-v243 {
  margin-top: 14px !important;
  padding-top: 14px !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  border-top: 1px solid var(--v24-line) !important;
}

html body[data-view="product-detail"] .product-license-slot-label-v243 {
  color: var(--v24-muted) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

html body[data-view="product-detail"] .product-license-tag-v243 {
  min-width: 0 !important;
  padding: 9px 0 !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--v24-accent) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer !important;
}

html body[data-view="product-detail"] .product-license-tag-v243 svg {
  width: 18px !important;
  height: 18px !important;
}

html body[data-view="product-detail"] .product-license-tag-v243 > span {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

html body[data-view="product-detail"] .product-license-tag-v243 small {
  color: var(--v24-muted) !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}

html body[data-view="product-detail"] .product-license-tag-v243 strong {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  color: inherit !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

@media (max-width: 1319px) {
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid,
  html body .seller-card-grid-v165 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1023px) {
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid,
  html body .seller-card-grid-v165 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 759px) {
  html body .app-shell { padding-top: 62px !important; }
  html body .sidebar { top: 62px !important; }
  html body .sidebar-overlay { inset-top: 62px !important; inset: 62px 0 0 !important; }
  html body .page-inner { padding-inline: 14px !important; }
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid,
  html body .seller-card-grid-v165 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  html body[data-view="market-products"] .behavior-toolbar,
  html body[data-view="market-file"] .behavior-toolbar {
    grid-template-columns: 1fr !important;
  }
  html body[data-view="market-products"] .behavior-result-count,
  html body[data-view="market-file"] .behavior-result-count {
    justify-self: center !important;
  }
  html body[data-view="product-detail"] .product-license-slot-v243 {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }
}

@media (max-width: 479px) {
  html body .topbar { padding-inline: 10px !important; gap: 8px !important; }
  html body .topbar-left,
  html body .topbar-right { gap: 5px !important; }
  html body .topbar-logo-copy > span { font-size: 13px !important; }
  html body .topbar-token-pill { min-height: 36px !important; padding-inline: 7px !important; }
  html body .topbar-token-pill .coin { width: 18px !important; height: 18px !important; flex-basis: 18px !important; }
  html body .topbar-token-value { font-size: 12px !important; }
}

@media (max-width: 359px) {
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid,
  html body .seller-card-grid-v165 {
    grid-template-columns: 1fr !important;
  }
}

/* v24.4.1 specificity and responsive QA corrections. */
html body[data-view] #mpGrid.behavior-market-grid,
html body[data-view] #mfGrid.behavior-market-grid,
html body[data-view="favorites"] #favGrid,
html body[data-view="seller-profile"] .seller-card-grid-v165 {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(var(--v243-grid-columns, 5), minmax(0, 250px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: clamp(10px, 1.25vw, 20px) !important;
}

html body[data-view] #mpGrid.behavior-market-grid .market-card-v241 button.favorite-action,
html body[data-view] #mfGrid.behavior-market-grid .market-card-v241 button.favorite-action,
html body[data-view="favorites"] #favGrid .market-card-v241 button.favorite-action,
html body[data-view="seller-profile"] .seller-card-grid-v165 .market-card-v241 button.favorite-action,
html body:not(.light)[data-view] #mpGrid.behavior-market-grid .market-card-v241 button.favorite-action,
html body:not(.light)[data-view] #mfGrid.behavior-market-grid .market-card-v241 button.favorite-action {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body[data-view] .behavior-toolbar button.search-filter-button.neo-filter-inside-btn,
html body:not(.light)[data-view] .behavior-toolbar button.search-filter-button.neo-filter-inside-btn {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .topbar button.topbar-icon-btn::before,
html body .topbar button.topbar-icon-btn::after,
html body .topbar button.topbar-theme::before,
html body .topbar button.topbar-theme::after,
html body .topbar a.topbar-discord::before,
html body .topbar a.topbar-discord::after {
  display: none !important;
  content: none !important;
}

html body .topbar-logo-copy > span,
html body .topbar-logo-copy .logo-market {
  display: inline !important;
}

@media (max-width: 759px) {
  html body[data-view="market-products"] .behavior-toolbar,
  html body[data-view="market-file"] .behavior-toolbar {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin-inline: auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body[data-view="market-products"] .behavior-search-primary,
  html body[data-view="market-file"] .behavior-search-primary {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    flex: none !important;
    align-self: center !important;
  }

  html body[data-view="market-products"] .behavior-result-count,
  html body[data-view="market-file"] .behavior-result-count {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    min-height: 0 !important;
  }
}


/* ==========================================================================
   v24.4 — Product naming + unified Product/File search field
   ========================================================================== */
html body[data-view="market-products"] .market-search-toolbar,
html body[data-view="market-file"] .market-search-toolbar {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
}

html body[data-view="market-products"] .market-search-toolbar .behavior-search-primary,
html body[data-view="market-file"] .market-search-toolbar .behavior-search-primary {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 4px 0 14px !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(180deg, rgba(24,34,44,.92), rgba(16,24,33,.96)) !important;
  border: 1px solid var(--r22-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html body[data-view="market-products"] .market-search-toolbar .search-input,
html body[data-view="market-file"] .market-search-toolbar .search-input {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  padding: 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body[data-view="market-products"] .market-search-toolbar .search-filter-button,
html body[data-view="market-file"] .market-search-toolbar .search-filter-button {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 759px) {
  html body[data-view="market-products"] .market-search-toolbar,
  html body[data-view="market-file"] .market-search-toolbar {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html body[data-view="market-products"] .market-search-toolbar .behavior-result-count,
  html body[data-view="market-file"] .market-search-toolbar .behavior-result-count {
    grid-column: 1 !important;
    justify-self: center !important;
    margin: 0 !important;
  }
}


/* ==========================================================================
   v24.5 — Restore Discord icon and Token + action in the fixed top bar
   ========================================================================== */
html body .topbar .topbar-discord {
  display: inline-grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #8e9fe8 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .topbar .topbar-discord svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
}

html body .topbar-token-pill {
  padding: 5px 5px 5px 10px !important;
}

html body .topbar-token-pill .topbar-token-plus {
  display: inline-grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: #f59e0b !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html body .topbar-token-pill:hover .topbar-token-plus {
  background: #fb923c !important;
}

@media (max-width: 820px) {
  html body .topbar .topbar-discord {
    display: inline-grid !important;
  }
}

@media (max-width: 580px) {
  html body .topbar { padding-inline: 9px !important; }
  html body .topbar-left,
  html body .topbar-right { gap: 5px !important; }
  html body .topbar .topbar-discord {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
  }
  html body .topbar .topbar-discord svg {
    width: 17px !important;
    height: 17px !important;
  }
  html body .topbar-token-pill {
    min-height: 34px !important;
    padding: 3px 3px 3px 7px !important;
    gap: 5px !important;
  }
  html body .topbar-token-pill .topbar-token-plus {
    flex-basis: 24px !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 16px !important;
  }
}

/* ========================================================================
   v24.6 — Legal acceptance + revenue-readiness gates
   ======================================================================== */
.revenue-readiness {
  margin: 16px 0 20px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid color-mix(in srgb, var(--v24-accent) 28%, var(--v24-line));
  border-radius: var(--v24-radius);
  background: linear-gradient(145deg, color-mix(in srgb, var(--v24-surface) 94%, var(--v24-accent) 6%), var(--v24-surface));
}
.revenue-readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.revenue-readiness-head h2 { margin: 4px 0; font-size: clamp(18px, 2vw, 25px); }
.revenue-readiness-head p { margin: 0; color: var(--v24-muted); font-size: 11px; }
.revenue-readiness-state {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--v24-line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  white-space: nowrap;
}
.revenue-readiness-state.ready { color: var(--v24-success); border-color: color-mix(in srgb, var(--v24-success) 42%, var(--v24-line)); background: color-mix(in srgb, var(--v24-success) 9%, transparent); }
.revenue-readiness-state.blocked { color: #f2b24c; border-color: color-mix(in srgb, #f2b24c 42%, var(--v24-line)); background: color-mix(in srgb, #f2b24c 8%, transparent); }
.revenue-check-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; }
.revenue-check {
  min-width: 0;
  padding: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--v24-line);
  border-radius: 10px;
  background: var(--v24-canvas-soft);
}
.revenue-check-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.revenue-check.done .revenue-check-icon { color: #04120e; background: var(--v24-success); }
.revenue-check.pending .revenue-check-icon { color: #1a1104; background: #f2b24c; }
.revenue-check strong, .revenue-check small { display: block; }
.revenue-check strong { color: var(--v24-ink); font-size: 11px; }
.revenue-check small { margin-top: 3px; color: var(--v24-muted); font-size: 9px; line-height: 1.45; }
.revenue-check button { padding: 0; border: 0; color: var(--v24-structure-2); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.revenue-readiness-comment { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--v24-line); color: var(--v24-muted); font-size: 9px; line-height: 1.55; }
.legal-backend-comment { margin-top: 12px; padding: 11px; border: 1px solid color-mix(in srgb, var(--v24-success) 30%, var(--v24-line)); border-radius: 10px; background: color-mix(in srgb, var(--v24-success) 6%, var(--v24-canvas-soft)); }
.legal-backend-comment strong { color: var(--v24-success); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.legal-backend-comment p { margin: 5px 0 0; color: var(--v24-ink-soft); font-size: 10px; line-height: 1.5; }
.fl188-root .revenue-readiness { margin: 0 0 12px; padding: 14px; }
.fl188-root .revenue-readiness-head { display: grid; }
.fl188-root .revenue-check-grid { grid-template-columns: 1fr; }

@media (max-width: 720px) {
  .revenue-readiness-head { display: grid; }
  .revenue-readiness-state { justify-self: start; }
  .revenue-check-grid { grid-template-columns: 1fr; }
}
.legal-receipt-summary { margin: 12px 0; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid color-mix(in srgb, var(--v24-success) 34%, var(--v24-line)); border-radius: 10px; background: color-mix(in srgb, var(--v24-success) 7%, var(--v24-canvas-soft)); }
.legal-receipt-summary > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #04120e; background: var(--v24-success); font-weight: 900; }
.legal-receipt-summary strong, .legal-receipt-summary small { display: block; }
.legal-receipt-summary small { margin-top: 2px; color: var(--v24-muted); font-size: 9px; }

/* ==========================================================================
   v24.7 — Legal business gates and KYC declaration
   Additive only: existing page structure and content remain unchanged.
   ========================================================================== */
.licensed-production-acceptance,
.kyc-declaration-block {
  margin-top: 14px;
}
.licensed-production-acceptance[hidden] { display: none !important; }
.kyc-declaration-block {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(2, 6, 12, .34);
}
.kyc-declaration-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}
button[disabled],
.btn[disabled],
.save-button[disabled] {
  cursor: not-allowed !important;
  opacity: .46;
  filter: saturate(.55);
  pointer-events: none;
}
.business-gate-error {
  margin-top: 8px;
  color: #fda4af;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .kyc-declaration-block { padding: 12px; }
  .kyc-declaration-links { display: grid; gap: 8px; }
}

/* ==========================================================================
   v24.8 — Full-width drawer layout and page-density correction
   Scope: presentation/layout only. Existing content, IDs, legal gates,
   backend contracts and event handlers remain unchanged.
   ========================================================================== */

/* Top bar: only Menu/Back, font wordmark, Discord and Token + action. */
html body .topbar-theme,
html body #themeToggle {
  display: none !important;
}

/* Sidebar is a drawer at every viewport width. It never reserves page width. */
html body .sidebar {
  display: flex !important;
  transform: translateX(-100%) !important;
  transition: transform .2s ease !important;
  box-shadow: 18px 0 48px rgba(0, 0, 0, .38) !important;
}
html body .sidebar.open {
  transform: translateX(0) !important;
}
html body .sidebar-overlay {
  display: block !important;
  position: fixed !important;
  inset: var(--topbar-h) 0 0 0 !important;
  z-index: 79 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: rgba(0, 3, 7, .58) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  transition: opacity .2s ease !important;
}
html body .sidebar-overlay.open,
html body .sidebar-overlay.active,
html body.sidebar-open .sidebar-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Every page uses the complete viewport after the sidebar closes. */
html body .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(18px, 2.25vw, 36px) !important;
  overflow-x: clip !important;
}
html body .page-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Remove green eyebrow copy above page headings. Internal field labels remain. */
html body .ref-page-header > .section-kicker,
html body .ref-page-header > div > .section-kicker,
html body .management-shop-heading-v161 > .section-kicker,
html body .fl188-root .page-heading .heading-kicker {
  display: none !important;
}

/* Seller legal logic remains active, but the large green status blocks are not
   repeated above Product/File Management. */
html body[data-view="product-management"] .revenue-readiness,
html body[data-view="file-management"] .revenue-readiness {
  display: none !important;
}

/* Exact centered Product/File search. Result count remains at the right edge. */
html body[data-view="market-products"] .market-search-toolbar,
html body[data-view="market-file"] .market-search-toolbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 760px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
}
html body[data-view="market-products"] .market-search-toolbar .behavior-search-primary,
html body[data-view="market-file"] .market-search-toolbar .behavior-search-primary {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body[data-view="market-products"] .market-search-toolbar .behavior-result-count,
html body[data-view="market-file"] .market-search-toolbar .behavior-result-count {
  grid-column: 3 !important;
  justify-self: end !important;
  margin: 0 !important;
}
html body[data-view="market-products"] .behavior-intent-strip,
html body[data-view="market-file"] .behavior-intent-strip {
  justify-content: center !important;
}

/* Marketplace/Favorites use available width and up to five balanced columns. */
html body #mpGrid,
html body #mfGrid,
html body #favGrid {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.15vw, 18px) !important;
}
@media (min-width: 720px) {
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 980px) {
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1320px) {
  html body #mpGrid,
  html body #mfGrid,
  html body #favGrid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

/* Preview/image fills the card top edge-to-edge and never crosses into body. */
html body .market-card,
html body .market-card.ref-card,
html body .minimal-market-card,
html body .public-product-card-v1542,
html body .public-file-card-v1542 {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
html body .market-card > .market-card-preview,
html body .market-card > .ref-card-preview,
html body .minimal-market-card > .market-card-preview,
html body .minimal-market-card > .ref-card-preview,
html body .public-product-card-v1542 > .market-card-preview,
html body .public-product-card-v1542 > .ref-card-preview,
html body .public-file-card-v1542 > .market-card-preview,
html body .public-file-card-v1542 > .ref-card-preview {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  flex: 0 0 auto !important;
  aspect-ratio: 4 / 3 !important;
}
html body .market-card-preview > img,
html body .ref-card-preview > img,
html body .market-card-preview .card-image-slide,
html body .ref-card-preview .card-image-slide,
html body .market-card-preview .ref-preview-placeholder,
html body .ref-card-preview .ref-preview-placeholder {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html body .market-card > .market-card-body,
html body .market-card > .ref-card-body,
html body .minimal-market-card > .market-card-body,
html body .minimal-market-card > .ref-card-body {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(184, 207, 226, .10) !important;
}

/* Favorites, histories and tracking: no outer frame; only row cards remain. */
html body[data-view="favorites"] #favGrid,
html body[data-view="file-history"] .history-list,
html body[data-view="product-history"] .history-list,
html body[data-view="product-tracking"] .tracking-list {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body[data-view="file-history"] .history-list,
html body[data-view="product-history"] .history-list,
html body[data-view="product-tracking"] .tracking-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}
html body[data-view="file-history"] .history-card,
html body[data-view="product-history"] .history-card,
html body[data-view="product-tracking"] .tracking-card {
  width: 100% !important;
  margin: 0 !important;
}

/* Product/File Management occupy the complete width and retain clear grouping. */
html body[data-view="product-management"] .behavior-management-header,
html body[data-view="file-management"] .behavior-management-header,
html body[data-view="product-management"] .behavior-management-card,
html body[data-view="file-management"] .behavior-management-card,
html body[data-view="product-management"] .behavior-management-listing-grid,
html body[data-view="file-management"] .behavior-management-listing-grid {
  width: 100% !important;
  max-width: none !important;
}
html body[data-view="product-management"] .behavior-management-listing-grid,
html body[data-view="file-management"] .behavior-management-listing-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Product Listing: full-width primary form with a stable right control column. */
html body[data-view="product-listing-settings"] .listing-settings-shell {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr) !important;
  align-items: start !important;
  gap: clamp(16px, 2vw, 28px) !important;
}
html body[data-view="product-listing-settings"] .listing-main-card,
html body[data-view="product-listing-settings"] .listing-side-card,
html body[data-view="product-listing-settings"] .sku-matrix-card,
html body[data-view="product-listing-settings"] .product-listing-compliance-panel,
html body[data-view="product-listing-settings"] .settings-bottom-bar {
  width: 100% !important;
  max-width: none !important;
}
html body[data-view="product-listing-settings"] .image-upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* File Listing: remove the narrow centered shell and use the page width. */
html body[data-view="file-listing-settings"] .fl188-root,
html body[data-view="file-listing-settings"] .fl188-root .page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .page-shell {
  padding: 0 0 118px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .content-grid {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  gap: clamp(16px, 2vw, 28px) !important;
  align-items: start !important;
}
html body[data-view="file-listing-settings"] .fl188-root .main-column,
html body[data-view="file-listing-settings"] .fl188-root .side-column,
html body[data-view="file-listing-settings"] .fl188-root .panel,
html body[data-view="file-listing-settings"] .fl188-root .side-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .details-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr) !important;
}

@media (max-width: 1100px) {
  html body[data-view="product-listing-settings"] .listing-settings-shell,
  html body[data-view="file-listing-settings"] .fl188-root .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .side-column {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .storage-card {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 759px) {
  html body .main-content { padding: 16px 12px 24px !important; }
  html body[data-view="market-products"] .market-search-toolbar,
  html body[data-view="market-file"] .market-search-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  html body[data-view="market-products"] .market-search-toolbar .behavior-search-primary,
  html body[data-view="market-file"] .market-search-toolbar .behavior-search-primary,
  html body[data-view="market-products"] .market-search-toolbar .behavior-result-count,
  html body[data-view="market-file"] .market-search-toolbar .behavior-result-count {
    grid-column: 1 !important;
  }
  html body[data-view="market-products"] .market-search-toolbar .behavior-result-count,
  html body[data-view="market-file"] .market-search-toolbar .behavior-result-count {
    justify-self: center !important;
  }
  html body[data-view="product-listing-settings"] .image-upload-grid,
  html body[data-view="file-listing-settings"] .fl188-root .details-grid,
  html body[data-view="file-listing-settings"] .fl188-root .side-column {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* v24.8.1 — specificity and Product Listing flow correction */
html body .main-content,
html body .page-inner {
  max-width: 100% !important;
}

html body #mpGrid.behavior-market-grid,
html body #mfGrid.behavior-market-grid,
html body #favGrid.behavior-market-grid {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: stretch !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (min-width: 720px) {
  html body #mpGrid.behavior-market-grid,
  html body #mfGrid.behavior-market-grid,
  html body #favGrid.behavior-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 980px) {
  html body #mpGrid.behavior-market-grid,
  html body #mfGrid.behavior-market-grid,
  html body #favGrid.behavior-market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1320px) {
  html body #mpGrid.behavior-market-grid,
  html body #mfGrid.behavior-market-grid,
  html body #favGrid.behavior-market-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

/* Product listing uses one page-level grid so the SKU section follows the
   primary form directly instead of leaving an empty column-height gap. */
@media (min-width: 1101px) {
  html body[data-view="product-listing-settings"] .page-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: clamp(16px, 2vw, 28px) !important;
    align-items: start !important;
  }
  html body[data-view="product-listing-settings"] .ref-page-header {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin-bottom: 0 !important;
  }
  html body[data-view="product-listing-settings"] .listing-settings-shell {
    display: contents !important;
  }
  html body[data-view="product-listing-settings"] .listing-main-card {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html body[data-view="product-listing-settings"] .listing-side-card {
    grid-column: 2 !important;
    grid-row: 2 / span 2 !important;
  }
  html body[data-view="product-listing-settings"] .sku-matrix-card {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin-top: 0 !important;
  }
  html body[data-view="product-listing-settings"] .product-listing-compliance-panel {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    margin-top: 0 !important;
  }
  html body[data-view="product-listing-settings"] .settings-bottom-bar {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    margin-top: 0 !important;
  }
}

/* v24.8.2 — Sidebar drawer specificity lock */
html body[data-view] .sidebar,
html body:not(.light) .sidebar,
html body[data-page-type] .sidebar {
  z-index: 92 !important;
  transform: translateX(-100%) !important;
}
html body[data-view] .sidebar.open,
html body:not(.light) .sidebar.open,
html body[data-page-type] .sidebar.open {
  transform: translateX(0) !important;
}
html body[data-view] .sidebar-overlay,
html body[data-page-type] .sidebar-overlay {
  z-index: 91 !important;
}


/* ========================================================================
   v24.9 — detail dropdown, listing/SKU, OrcaSlicer, seller contact, KYC/KYB
   ======================================================================== */

/* Product/File detail options: custom dark dropdown that always opens below. */
html body[data-view="product-detail"] .behavior-purchase-panel,
html body[data-view="file-detail"] .behavior-purchase-panel,
html body[data-view="product-detail"] .behavior-decision-block,
html body[data-view="file-detail"] .behavior-decision-block,
html body[data-view="product-detail"] .behavior-option-grid,
html body[data-view="file-detail"] .behavior-option-grid { overflow: visible !important; }
.detail-dropdown-v249 { position: relative; min-width: 0; z-index: 1; }
.detail-dropdown-v249.is-open { z-index: 160; }
.detail-native-select-v249 { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.detail-dropdown-trigger-v249 {
  width: 100%; min-height: 44px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--v24-line); border-radius: 10px; color: var(--v24-ink); background: #101a24; text-align: left; cursor: pointer;
}
.detail-dropdown-trigger-v249:hover,
.detail-dropdown-trigger-v249[aria-expanded="true"] { border-color: rgba(16,185,129,.58); background: #13212c; }
.detail-dropdown-chevron-v249 { color: var(--v24-muted); transition: transform .16s ease; }
.detail-dropdown-trigger-v249[aria-expanded="true"] .detail-dropdown-chevron-v249 { transform: rotate(180deg); }
.detail-dropdown-menu-v249 {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 190; max-height: min(310px, 46vh); overflow: auto;
  padding: 6px; border: 1px solid rgba(16,185,129,.42); border-radius: 11px; background: #0b141d; box-shadow: 0 20px 50px rgba(0,0,0,.48);
}
.detail-dropdown-menu-v249[hidden] { display: none !important; }
.detail-dropdown-menu-v249 button { width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 7px; color: #c7d3df; background: transparent; text-align: left; cursor: pointer; }
.detail-dropdown-menu-v249 button:hover,
.detail-dropdown-menu-v249 button:focus-visible { outline: 0; color: #fff; background: rgba(255,255,255,.07); }
.detail-dropdown-menu-v249 button[aria-selected="true"] { color: #8be4c7; background: rgba(16,185,129,.14); }

/* Align Product/File heading with the first marketplace card edge. */
html body[data-view="market-products"] .behavior-market-header,
html body[data-view="market-file"] .behavior-market-header,
html body[data-view="market-products"] .behavior-intent-strip,
html body[data-view="market-file"] .behavior-intent-strip,
html body[data-view="market-products"] .market-search-toolbar,
html body[data-view="market-file"] .market-search-toolbar,
html body[data-view="market-products"] #mpGrid,
html body[data-view="market-file"] #mfGrid,
html body[data-view="market-file"] #mfActiveFilters { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
html body[data-view="market-products"] .behavior-market-header > div,
html body[data-view="market-file"] .behavior-market-header > div { justify-self: start !important; margin: 0 !important; }

/* Product listing: options, SKU and license each get a stable card. */
html body[data-view="product-listing-settings"] .listing-license-card {
  width: 100%; min-width: 0; padding: clamp(17px,2vw,24px); border: 1px solid var(--v24-line); border-radius: 12px; background: var(--v24-surface);
}
html body[data-view="product-listing-settings"] .listing-license-card .product-license-heading { margin-bottom: 14px; }
html body[data-view="product-listing-settings"] .listing-license-card .licensed-production-panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(16,185,129,.25); border-radius: 10px; background: rgba(16,185,129,.035); }
html body[data-view="product-listing-settings"] .listing-license-card .license-grant-summary { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
html body[data-view="product-listing-settings"] .listing-license-card .product-license-fields { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
html body[data-view="product-listing-settings"] .listing-license-card .licensed-production-acceptance { margin-top: 12px; padding: 12px; }
html body[data-view="product-listing-settings"] .sku-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
html body[data-view="product-listing-settings"] .product-sku-card-v249 { display: grid !important; grid-template-columns: minmax(0,1fr) 132px auto !important; gap: 12px !important; align-items: center !important; padding: 14px !important; }
.product-sku-copy-v249 { min-width: 0; display: grid; gap: 5px; }
.product-sku-copy-v249 strong { overflow-wrap: anywhere; }
.product-sku-price-v249 { display: grid; gap: 5px; color: var(--v24-muted); font-size: 10px; }
.product-sku-price-v249 > div { display: flex; align-items: center; gap: 6px; }
.product-sku-price-v249 input { min-width: 0; }
.product-sku-price-v249 small { color: var(--v24-muted); font-size: 9px; }
.product-sku-delete-v249 { white-space: nowrap; }
@media (min-width:1101px) {
  html body[data-view="product-listing-settings"] .listing-side-card { grid-row: 2 !important; }
  html body[data-view="product-listing-settings"] .sku-matrix-card { grid-column: 1 !important; grid-row: 3 !important; }
  html body[data-view="product-listing-settings"] .listing-license-card { grid-column: 2 !important; grid-row: 3 !important; }
  html body[data-view="product-listing-settings"] .product-listing-compliance-panel { grid-row: 4 !important; }
  html body[data-view="product-listing-settings"] .settings-bottom-bar { grid-row: 5 !important; }
}

/* File SKU cards — predictable information hierarchy, no compressed rows. */
html body[data-view="file-listing-settings"] .fl188-root .sku-list { gap: 14px; }
html body[data-view="file-listing-settings"] .fl188-root .sku-card { overflow: visible; }
html body[data-view="file-listing-settings"] .fl188-root .sku-summary { grid-template-columns: minmax(0,1fr) auto auto !important; padding: 16px !important; }
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 11px !important; padding: 15px 16px !important; border-top: 1px solid var(--v24-line); }
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid label { min-width: 0; display: grid; gap: 6px; }
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid label > span { color: var(--v24-muted); font-size: 9px; }
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid select,
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid input { width: 100%; min-width: 0; min-height: 40px; color: var(--v24-ink); background: #101a24; }
html body[data-view="file-listing-settings"] .fl188-root .sku-price-wrap { display: flex; align-items: center; gap: 7px; }
html body[data-view="file-listing-settings"] .fl188-root .sku-body { grid-template-columns: minmax(0,1fr) auto !important; padding: 14px 16px !important; }
html body[data-view="file-listing-settings"] .fl188-root .sku-info { flex-wrap: wrap; }
html body[data-view="file-listing-settings"] .fl188-root .sku-actions { flex-wrap: wrap; }

/* OrcaSlicer parameter dialog — clear header/controls/content/sticky actions. */
html body[data-view="file-listing-settings"] .fl188-root .parameter-dialog { width: min(1240px,calc(100vw - 28px)); height: min(900px,calc(100vh - 28px)); border-radius: 16px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-shell { grid-template-rows: auto auto auto minmax(0,1fr) auto !important; background: #0b141d; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-head { padding: 18px 20px; align-items: flex-start; background: #0f1923; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 { font-size: clamp(17px,2vw,23px); }
html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar { align-items: stretch; padding: 12px 20px; background: #0c161f; }
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs { flex: 0 0 auto; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions { flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input { flex: 1 1 240px; width: auto; max-width: 420px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-summary { padding: 10px 20px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-groups { padding: 14px 20px 22px; background: #09121a; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-group { margin-bottom: 12px; border-radius: 10px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary { min-height: 44px; padding: 12px 14px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field { grid-template-columns: minmax(0,1fr) minmax(120px,170px) 30px; min-height: 60px; padding: 11px 13px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field label b { font-size: 10px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field label small { font-size: 8px; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer { position: sticky; bottom: 0; z-index: 4; padding: 13px 20px; background: #0f1923; }

/* Seller contact modal. */
.seller-contact-shell-v249 { width: min(980px,100%) !important; }
.seller-contact-modal-v249 { display: grid; gap: 18px; }
.seller-contact-head-v249 { padding-right: 34px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.seller-contact-status-v249 { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(16,185,129,.35); border-radius: 7px; color: #7ee0bf; background: rgba(16,185,129,.09); font-size: 10px; }
.seller-contact-section-v249 { padding: 15px; border: 1px solid var(--v24-line); border-radius: 11px; background: rgba(255,255,255,.018); }
.seller-contact-section-head-v249 { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }
.seller-contact-section-head-v249 h3 { margin: 0; font-size: 14px; }
.seller-contact-section-head-v249 span { color: var(--v24-muted); font-size: 9px; }
.seller-contact-grid-v249 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 13px; }
.seller-contact-field-v249 { min-width: 0; display: grid; gap: 6px; }
.seller-contact-field-v249 > span { color: var(--v24-muted); font-size: 10px; }
.seller-contact-error-v249 { min-height: 18px; margin: 0; color: #f29a9a; font-size: 11px; }
.seller-contact-actions-v249 { margin-top: 0; }

/* KYC/KYB — applicant-first, internal routing hidden. */
html body[data-view="kyc-verification"] .kyc-page-v249 { width: min(100%,1500px); margin-inline: auto; gap: 18px; }
html body[data-view="kyc-verification"] .kyc-hero-v249 { align-items: center; padding: clamp(20px,2.3vw,30px); }
html body[data-view="kyc-verification"] .kyc-hero-v249 h1 { margin: 0 0 7px; font-size: clamp(30px,3.5vw,46px); }
html body[data-view="kyc-verification"] .kyc-main-grid-v249 { grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 18px; }
html body[data-view="kyc-verification"] .kyc-form-grid-v249 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
html body[data-view="kyc-verification"] .kyc-guide-card-v249 { align-self: stretch; }
html body[data-view="kyc-verification"] .kyc-guide-card-v249 ol { margin: 16px 0; padding-left: 20px; display: grid; gap: 11px; color: var(--v24-ink-soft); font-size: 12px; line-height: 1.5; }
html body[data-view="kyc-verification"] .kyc-doc-card-v249 { padding: clamp(18px,2vw,26px); }
html body[data-view="kyc-verification"] .kyc-review-grid-v249 { margin-top: 2px; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 18px; align-items: stretch; }
html body[data-view="kyc-verification"] .kyc-submit-card-v249 { display: grid; align-content: start; gap: 14px; padding: clamp(20px,2.2vw,28px); }
html body[data-view="kyc-verification"] .kyc-submit-card-v249 .kyc-declaration-block { margin-top: 6px; padding: 16px; }
html body[data-view="kyc-verification"] .kyc-submit-footer-v249 { margin-top: 8px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--v24-line); }
html body[data-view="kyc-verification"] .kyc-submit-footer-v249 .kyc-error-text { margin: 0; }
html body[data-view="kyc-verification"] .kyc-submit-footer-v249 .kyc-submit-btn { flex: 0 0 auto; min-width: 190px; }

@media (max-width: 900px) {
  html body[data-view="product-listing-settings"] .sku-grid,
  html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid,
  html body[data-view="file-listing-settings"] .fl188-root .parameter-fields,
  .seller-contact-grid-v249,
  html body[data-view="kyc-verification"] .kyc-form-grid-v249,
  html body[data-view="kyc-verification"] .kyc-main-grid-v249,
  html body[data-view="kyc-verification"] .kyc-review-grid-v249 { grid-template-columns: 1fr !important; }
  html body[data-view="product-listing-settings"] .product-sku-card-v249 { grid-template-columns: 1fr !important; }
  html body[data-view="file-listing-settings"] .fl188-root .sku-body { grid-template-columns: 1fr !important; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar { display: grid; }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs { overflow-x: auto; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions { justify-content: stretch; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input { max-width: none; }
  html body[data-view="kyc-verification"] .kyc-submit-footer-v249 { align-items: stretch; flex-direction: column; }
  html body[data-view="kyc-verification"] .kyc-submit-footer-v249 .kyc-submit-btn { width: 100%; }
}

/* v24.9.1 — final SKU, modal and KYC containment fixes. */
html body[data-view="file-listing-settings"] .fl188-root .sku-card {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-summary,
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid,
html body[data-view="file-listing-settings"] .fl188-root .sku-body {
  width: 100% !important;
  min-width: 0 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 14px 16px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-title {
  min-width: 0 !important;
  margin-right: auto !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid {
  grid-template-columns: repeat(3,minmax(180px,1fr)) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-select {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  appearance: none !important;
  background-color: #0c141e !important;
  background-image: linear-gradient(45deg,transparent 50%,#718093 50%),linear-gradient(135deg,#718093 50%,transparent 50%) !important;
  background-position: calc(100% - 16px) 17px,calc(100% - 11px) 17px !important;
  background-size: 5px 5px,5px 5px !important;
  background-repeat: no-repeat !important;
  padding-right: 28px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-select option {
  color: var(--v24-ink) !important;
  background: #0c141e !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-body {
  padding: 14px 16px !important;
  border-top: 1px solid var(--v24-line) !important;
}

.seller-contact-shell-v249 {
  max-height: min(880px,calc(100vh - 48px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.seller-contact-actions-v249 {
  position: sticky;
  bottom: -1px;
  z-index: 4;
  padding: 13px 0 2px !important;
  background: linear-gradient(180deg,rgba(15,25,36,0),#0f1924 28%) !important;
}

html body[data-view="kyc-verification"] .kyc-submit-footer-v249 {
  min-width: 0 !important;
}
html body[data-view="kyc-verification"] .kyc-submit-footer-v249 .kyc-error-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body[data-view="kyc-verification"] .kyc-submit-footer-v249 .kyc-submit-btn {
  width: auto !important;
  max-width: 100% !important;
  flex: 0 1 230px !important;
  min-width: 190px !important;
}
@media (max-width:900px) {
  html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid { grid-template-columns: 1fr !important; }
  html body[data-view="kyc-verification"] .kyc-submit-footer-v249 .kyc-submit-btn { width: 100% !important; min-width: 0 !important; flex-basis: auto !important; }
}

/* v24.9.2 — exact marketplace heading-to-card alignment and dark SKU matrix. */
html body[data-view="market-products"] .behavior-market-header,
html body[data-view="market-file"] .behavior-market-header,
html body[data-view="market-products"] .behavior-intent-strip,
html body[data-view="market-file"] .behavior-intent-strip {
  box-sizing: border-box !important;
  padding-left: var(--market-card-offset-v249,0px) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid {
  background: #0e1823 !important;
  color: var(--v24-ink) !important;
}

/* ========================================================================
   v24.10 — Product/File View space utilisation
   Keep all existing content and behavior; enlarge gallery and option controls.
   ======================================================================== */
html body[data-view="product-detail"] .page-inner,
html body[data-view="file-detail"] .page-inner {
  width: 100% !important;
  max-width: 1720px !important;
}

html body[data-view="product-detail"] .behavior-detail-shell,
html body[data-view="file-detail"] .behavior-detail-shell {
  grid-template-columns: minmax(0, 1.42fr) minmax(430px, .98fr) !important;
  gap: clamp(14px, 1.25vw, 22px) !important;
  align-items: stretch !important;
}

html body[data-view="product-detail"] .behavior-gallery,
html body[data-view="file-detail"] .behavior-gallery {
  position: relative !important;
  align-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(720px, calc(100dvh - 118px), 960px) !important;
}

html body[data-view="product-detail"] .behavior-gallery .ref-preview-placeholder.large,
html body[data-view="file-detail"] .behavior-gallery .ref-preview-placeholder.large {
  position: absolute !important;
  inset: 10px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 10px !important;
}

html body[data-view="product-detail"] .behavior-purchase-panel,
html body[data-view="file-detail"] .behavior-purchase-panel {
  align-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(720px, calc(100dvh - 118px), 960px) !important;
  padding: clamp(20px, 1.8vw, 28px) !important;
  display: flex !important;
  flex-direction: column !important;
}

html body[data-view="product-detail"] .behavior-option-grid,
html body[data-view="file-detail"] .behavior-option-grid,
html body[data-view="product-detail"] .product-option-grid-v167,
html body[data-view="file-detail"] .file-option-grid-v167 {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 13px !important;
}

html body[data-view="product-detail"] .detail-option-field-v167,
html body[data-view="file-detail"] .detail-option-field-v167,
html body[data-view="product-detail"] .option-selector,
html body[data-view="file-detail"] .option-selector,
html body[data-view="product-detail"] .detail-dropdown-v249,
html body[data-view="file-detail"] .detail-dropdown-v249,
html body[data-view="product-detail"] .option-select-shell-v165,
html body[data-view="file-detail"] .option-select-shell-v165,
html body[data-view="product-detail"] .option-select-shell-v166,
html body[data-view="file-detail"] .option-select-shell-v166 {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

html body[data-view="product-detail"] .detail-dropdown-trigger-v249,
html body[data-view="file-detail"] .detail-dropdown-trigger-v249,
html body[data-view="product-detail"] .detail-mail-input-v167,
html body[data-view="file-detail"] .detail-mail-input-v167 {
  width: 100% !important;
  min-height: 50px !important;
}

html body[data-view="product-detail"] .detail-dropdown-menu-v249,
html body[data-view="file-detail"] .detail-dropdown-menu-v249 {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

html body[data-view="product-detail"] .behavior-decision-block,
html body[data-view="file-detail"] .behavior-decision-block {
  width: 100% !important;
  padding-block: 18px !important;
}

html body[data-view="product-detail"] .behavior-trust-row,
html body[data-view="file-detail"] .behavior-trust-row {
  width: 100% !important;
  margin-top: auto !important;
}

html body[data-view="product-detail"] .behavior-primary-buy,
html body[data-view="file-detail"] .behavior-primary-buy {
  width: 100% !important;
  flex: 0 0 auto !important;
}

@media (max-width: 1120px) {
  html body[data-view="product-detail"] .behavior-detail-shell,
  html body[data-view="file-detail"] .behavior-detail-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body[data-view="product-detail"] .behavior-gallery,
  html body[data-view="file-detail"] .behavior-gallery {
    min-height: clamp(480px, 64vw, 680px) !important;
  }
  html body[data-view="product-detail"] .behavior-purchase-panel,
  html body[data-view="file-detail"] .behavior-purchase-panel {
    position: static !important;
    min-height: 0 !important;
    height: auto !important;
  }
}

@media (max-width: 700px) {
  html body[data-view="product-detail"] .behavior-gallery,
  html body[data-view="file-detail"] .behavior-gallery {
    min-height: clamp(330px, 88vw, 480px) !important;
  }
  html body[data-view="product-detail"] .behavior-gallery .ref-preview-placeholder.large,
  html body[data-view="file-detail"] .behavior-gallery .ref-preview-placeholder.large {
    inset: 7px !important;
  }
  html body[data-view="product-detail"] .behavior-purchase-panel,
  html body[data-view="file-detail"] .behavior-purchase-panel {
    padding: 17px !important;
  }
}

/* v24.10 detail pages use more of the viewport without affecting other pages. */
html body[data-view="product-detail"] .main-content,
html body[data-view="file-detail"] .main-content {
  padding-left: clamp(16px, 2.4vw, 38px) !important;
  padding-right: clamp(16px, 2.4vw, 38px) !important;
}

html body[data-view="product-detail"] .page-inner,
html body[data-view="file-detail"] .page-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ========================================================================
   v24.11 — backend catalogs, marketplace command row and detail Bento layout
   ======================================================================== */

/* Product / File marketplace: left title, centered Google-like capsule,
   right filter action. Cards begin immediately below the command row. */
html body[data-view="market-products"] .market-command-row-v2411,
html body[data-view="market-file"] .market-command-row-v2411 {
  width: 100%;
  margin: 0 0 clamp(18px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(360px, 1.25fr) minmax(88px, .42fr);
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.market-command-label-v2411 { min-width: 0; }
.market-command-label-v2411 .page-title { margin: 0; font-size: clamp(30px, 3vw, 46px); }
.market-command-label-v2411 .page-desc { margin: 7px 0 0; max-width: 330px; }
.market-search-capsule-v2411 {
  width: min(100%, 760px);
  min-height: 54px;
  justify-self: center;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(138,161,184,.24);
  border-radius: 999px;
  color: var(--v24-muted);
  background: linear-gradient(180deg, rgba(18,29,40,.98), rgba(11,20,29,.98));
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.025);
}
.market-search-capsule-v2411:focus-within {
  border-color: rgba(16,185,129,.64);
  box-shadow: 0 0 0 3px rgba(16,185,129,.09), 0 12px 34px rgba(0,0,0,.22);
}
.market-search-capsule-v2411 > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.market-search-capsule-v2411 .search-input {
  width: 100% !important;
  height: 52px !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: var(--v24-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.market-command-actions-v2411 {
  justify-self: end;
  display: grid;
  grid-template-columns: 48px;
  justify-items: center;
  gap: 5px;
}
.market-filter-icon-v2411 {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(138,161,184,.24);
  border-radius: 50%;
  color: var(--v24-ink-soft);
  background: #101a24;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.market-filter-icon-v2411:hover,
.market-filter-icon-v2411:focus-visible { transform: translateY(-1px); border-color: rgba(16,185,129,.62); background: #13212c; outline: 0; }
.market-filter-icon-v2411 svg { width: 21px; height: 21px; }
.market-command-actions-v2411 .ref-count-label { font-size: 10px; white-space: nowrap; }
.product-active-filter-row-v2411:empty,
#mfActiveFilters:empty { display: none; }
html body[data-view="market-products"] #mpGrid,
html body[data-view="market-file"] #mfGrid { margin-top: 0 !important; }

/* Backend-location and profile forms */
.location-filter-grid-v2411 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.location-filter-grid-v2411 .form-group:nth-child(3) { grid-column: 1 / -1; }
.catalog-filter-modal-v2411 .long-option-list { max-height: min(470px, 55vh); overflow: auto; }
.seller-contact-v2411 .filter-select,
.address-grid-v2411 .filter-select,
.product-location-filter-v2411 .filter-select,
html body:not(.light) .seller-contact-v2411 select,
html body:not(.light) .address-grid-v2411 select,
html body:not(.light) .product-location-filter-v2411 select {
  width: 100%;
  min-height: 44px;
  color: var(--v24-ink) !important;
  border-color: var(--v24-line) !important;
  background-color: #0c141e !important;
  color-scheme: dark;
}
.seller-contact-v2411 select option,
.address-grid-v2411 select option,
.product-location-filter-v2411 select option { color: #dce6ef; background: #0c141e; }
.seller-contact-v2411 select:disabled,
.address-grid-v2411 select:disabled,
.product-location-filter-v2411 select:disabled { opacity: .58; cursor: not-allowed; }

/* Product / File view: gallery media plus name/description/seller Bento footer. */
html body[data-view="product-detail"] .behavior-detail-shell,
html body[data-view="file-detail"] .behavior-detail-shell {
  grid-template-columns: minmax(0, 1.42fr) minmax(430px, .98fr) !important;
  grid-template-areas: "gallery purchase" "secondary secondary" !important;
  align-items: stretch !important;
}
html body[data-view="product-detail"] .detail-gallery-card-v2411,
html body[data-view="file-detail"] .detail-gallery-card-v2411 {
  display: grid !important;
  grid-template-rows: minmax(430px, 1fr) auto !important;
  min-height: clamp(720px, calc(100dvh - 118px), 960px) !important;
  height: 100% !important;
  overflow: hidden !important;
}
.detail-gallery-media-v2411 {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0c141d;
}
html body[data-view="product-detail"] .detail-gallery-media-v2411 .ref-preview-placeholder.large,
html body[data-view="file-detail"] .detail-gallery-media-v2411 .ref-preview-placeholder.large {
  position: absolute !important;
  inset: 10px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
}
.detail-bento-meta-v2411 {
  position: relative;
  z-index: 8;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(235px, .75fr);
  gap: 12px;
  border-top: 1px solid var(--v24-line);
  background: #0e1822;
}
.detail-bento-copy-v2411,
.detail-bento-seller-v2411 {
  min-width: 0;
  border: 1px solid var(--v24-line);
  border-radius: 13px;
  background: #111d28;
}
.detail-bento-copy-v2411 { padding: clamp(17px, 1.6vw, 24px); }
.detail-bento-copy-v2411 .detail-title {
  margin: 5px 0 9px;
  font-size: clamp(27px, 2.55vw, 42px);
  line-height: 1.02;
}
.detail-bento-copy-v2411 .detail-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--v24-ink-soft);
  font-size: 12px;
  line-height: 1.65;
}
.detail-bento-copy-v2411 .detail-more-btn-v167 { margin-top: 12px; }
.detail-bento-seller-v2411 {
  width: 100%;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--v24-ink);
  text-align: left;
  cursor: pointer;
}
.detail-bento-seller-v2411:hover { border-color: rgba(16,185,129,.52); background: #14232e; }
.seller-avatar-v2411 { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #d9fff1; background: rgba(16,185,129,.16); font-weight: 850; }
.detail-bento-seller-copy-v2411 { min-width: 0; display: grid; gap: 3px; }
.detail-bento-seller-copy-v2411 small { color: var(--v24-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.detail-bento-seller-copy-v2411 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.detail-bento-seller-copy-v2411 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v24-muted); font-size: 10px; }
html body[data-view="product-detail"] .behavior-purchase-head,
html body[data-view="file-detail"] .behavior-purchase-head { padding-bottom: 18px; }
html body[data-view="product-detail"] .behavior-purchase-panel,
html body[data-view="file-detail"] .behavior-purchase-panel { min-height: clamp(720px, calc(100dvh - 118px), 960px) !important; }
html body[data-view="product-detail"] .detail-comments-panel-v2411,
html body[data-view="file-detail"] .detail-comments-panel-v2411 {
  grid-area: secondary;
  width: 100%;
  padding: clamp(18px, 2vw, 26px);
}
html body[data-view="product-detail"] .detail-comments-panel-v2411 .detail-comments-zone,
html body[data-view="file-detail"] .detail-comments-panel-v2411 .detail-comments-zone { width: 100%; }

@media (max-width: 1120px) {
  html body[data-view="market-products"] .market-command-row-v2411,
  html body[data-view="market-file"] .market-command-row-v2411 {
    grid-template-columns: minmax(130px, auto) minmax(0, 1fr) auto;
  }
  html body[data-view="product-detail"] .behavior-detail-shell,
  html body[data-view="file-detail"] .behavior-detail-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "gallery" "purchase" "secondary" !important;
  }
  html body[data-view="product-detail"] .behavior-purchase-panel,
  html body[data-view="file-detail"] .behavior-purchase-panel { min-height: 0 !important; }
}
@media (max-width: 760px) {
  html body[data-view="market-products"] .market-command-row-v2411,
  html body[data-view="market-file"] .market-command-row-v2411 {
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 11px;
  }
  .market-command-label-v2411 { grid-column: 1 / -1; }
  .market-command-label-v2411 .page-desc { max-width: none; }
  .market-search-capsule-v2411 { min-height: 48px; padding-inline: 15px; }
  .market-search-capsule-v2411 .search-input { height: 46px !important; }
  .market-command-actions-v2411 { grid-column: 2; grid-row: 2; }
  .market-command-actions-v2411 .ref-count-label { display: none; }
  .market-filter-icon-v2411 { width: 46px; height: 46px; }
  .location-filter-grid-v2411 { grid-template-columns: 1fr; }
  .location-filter-grid-v2411 .form-group:nth-child(3) { grid-column: auto; }
  .detail-bento-meta-v2411 { grid-template-columns: 1fr; }
  .detail-bento-seller-v2411 { grid-template-columns: 44px minmax(0, 1fr) auto; }
  html body[data-view="product-detail"] .detail-gallery-card-v2411,
  html body[data-view="file-detail"] .detail-gallery-card-v2411 { min-height: 0 !important; grid-template-rows: minmax(330px, 78vw) auto !important; }
}


/* ========================================================================
   v24.12 — fluid minimal redesign, flat Bento management and readable forms
   ======================================================================== */

/* Readable typography across display formats. */
html { font-size: clamp(15px, .18vw + 13.5px, 17px); }
body { line-height: 1.5; }
.page-title { font-size: clamp(1.9rem, 2.7vw, 3rem) !important; line-height: 1.05 !important; }
.page-desc, .muted, .field-help, .panel-title p, .form-label, label > span { font-size: clamp(.82rem, .18vw + .72rem, .98rem) !important; }
input, select, textarea, button { font-size: clamp(.84rem, .15vw + .76rem, 1rem); }

/* Marketplace command area: closer to topbar, much wider search, clear hierarchy. */
html body[data-view="market-products"] .main-content,
html body[data-view="market-file"] .main-content { padding-top: clamp(18px, 2.2vw, 30px) !important; }
html body[data-view="market-products"] .market-command-row-v2411,
html body[data-view="market-file"] .market-command-row-v2411 {
  margin-top: 0 !important;
  margin-bottom: clamp(22px, 2.4vw, 34px) !important;
  grid-template-columns: minmax(145px, .32fr) minmax(500px, 1.7fr) minmax(76px, .26fr) !important;
  gap: clamp(16px, 2vw, 32px) !important;
}
.market-command-label-v2411 .page-title { font-size: clamp(2rem, 3vw, 3.2rem) !important; }
.market-command-label-v2411 .page-desc { margin-top: 5px !important; font-size: clamp(.78rem, .12vw + .73rem, .92rem) !important; }
.market-search-capsule-v2411 {
  width: min(100%, 980px) !important;
  min-height: clamp(60px, 5.2vw, 72px) !important;
  padding-inline: clamp(20px, 2.1vw, 30px) !important;
  border-radius: 999px !important;
  border-color: rgba(138,161,184,.34) !important;
  background: #111b25 !important;
}
.market-search-capsule-v2411 .search-input { height: clamp(58px, 5vw, 70px) !important; font-size: clamp(1rem, .35vw + .9rem, 1.18rem) !important; }
.market-search-capsule-v2411 > svg { width: 24px !important; height: 24px !important; }
.market-filter-icon-v2411 { width: 52px !important; height: 52px !important; border-radius: 14px !important; }

/* Marketplace preview touches top/left/right card edges; controls remain inset. */
body:not(.light) .market-card-v241 .market-card-preview,
body:not(.light) .market-card-v241 .ref-card-preview {
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
}
body:not(.light) .market-card-v241 .ref-preview-placeholder { border-radius: 0 !important; }
body:not(.light) .market-card-v241 .ref-preview-placeholder::after { inset: 0 !important; border: 0 !important; border-radius: 0 !important; }
body:not(.light) .market-card-v241 .carousel-nav.left { left: 10px !important; }
body:not(.light) .market-card-v241 .carousel-nav.right { right: 10px !important; }
body:not(.light) .market-card-v241 .favorite-action,
body:not(.light) .market-card-v241 .market-card-fav,
body:not(.light) .market-card-v241 .ref-heart { top: 12px !important; right: 12px !important; }

/* Seller profile: one minimal surface, no card-on-card composition. */
.seller-profile-flat-v2412 {
  width: 100%;
  display: grid;
  gap: 0;
  border: 1px solid var(--v24-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--v24-surface);
}
.seller-profile-head-v2412 {
  padding: clamp(24px, 3vw, 42px);
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
}
.seller-profile-copy-v2412 { min-width: 0; }
.seller-profile-copy-v2412 .page-title { margin: 4px 0 9px; }
.seller-profile-copy-v2412 .seller-contact-line { margin-top: 12px; color: var(--v24-muted); font-size: clamp(.82rem, .2vw + .75rem, .96rem); overflow-wrap: anywhere; }
.seller-profile-actions-v2412 { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.seller-profile-metrics-v2412 {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid var(--v24-line);
  border-bottom: 1px solid var(--v24-line);
}
.seller-profile-metrics-v2412 > div { padding: clamp(18px,2vw,28px); display: grid; gap: 8px; }
.seller-profile-metrics-v2412 > div + div { border-left: 1px solid var(--v24-line); }
.seller-profile-metrics-v2412 span { color: var(--v24-muted); font-size: .82rem; }
.seller-profile-metrics-v2412 strong { font-size: clamp(1.35rem, 1.7vw, 2rem); }
.seller-profile-content-v2412 { padding: clamp(20px,2.5vw,36px); }

/* Product/File management: a single large Bento surface with flat internal zones. */
.management-page-head-v2412 { margin-bottom: clamp(16px,2vw,24px) !important; }
.management-flat-v2412 {
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: var(--v24-surface) !important;
}
.management-flat-v2412 .behavior-shop-row { padding: clamp(20px,2.4vw,32px) !important; border-bottom: 1px solid var(--v24-line); }
.management-flat-v2412 .management-name-line-v161 strong { font-size: clamp(1.35rem,1.6vw,1.85rem); }
.management-flat-v2412 .behavior-ops-grid,
.management-flat-v2412 .behavior-finance-grid { gap: 0 !important; margin: 0 !important; }
.management-priority-grid-v2412 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.management-flat-v2412 .behavior-ops-metric,
.management-flat-v2412 .management-metric-v161 {
  min-height: 150px;
  padding: clamp(20px,2vw,30px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.management-flat-v2412 .behavior-ops-metric + .behavior-ops-metric,
.management-flat-v2412 .management-metric-v161 + .management-metric-v161 { border-left: 1px solid var(--v24-line) !important; }
.management-flat-v2412 .behavior-ops-grid { border-bottom: 1px solid var(--v24-line); }
.management-flat-v2412 .behavior-ops-metric > span,
.management-flat-v2412 .management-metric-v161 > span { font-size: .78rem !important; }
.management-flat-v2412 .behavior-ops-metric > strong { margin-top: 10px; font-size: clamp(1.45rem,2vw,2.35rem) !important; line-height: 1.1; }
.management-finance-strip-v2412 { grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
.file-management-flat-v2412 .management-finance-strip-v2412 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.management-finance-strip-v2412 .management-metric-v161 { min-height: 112px; }
.management-finance-strip-v2412 strong { font-size: clamp(1rem,1.05vw,1.35rem) !important; }
.metric-caption-v2412 { margin-top: 12px; color: var(--v24-muted); font-size: .78rem; }
.metric-progress-v2412 { height: 8px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: rgba(138,161,184,.12); }
.metric-progress-v2412 i { display: block; height: 100%; border-radius: inherit; background: var(--v24-accent); }
.metric-bars-v2412 { margin-top: 18px; height: 34px; display: flex; align-items: end; gap: 5px; }
.metric-bars-v2412 i { flex: 1; min-width: 5px; border-radius: 3px 3px 0 0; background: rgba(16,185,129,.7); }
.metric-bars-v2412 i:nth-child(1){height:45%}.metric-bars-v2412 i:nth-child(2){height:70%}.metric-bars-v2412 i:nth-child(3){height:58%}.metric-bars-v2412 i:nth-child(4){height:88%}.metric-bars-v2412 i:nth-child(5){height:76%}
.metric-alert-line-v2412 { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: #f0b35b; font-size: .78rem; }
.metric-alert-line-v2412 i { width: 8px; height: 8px; border-radius: 50%; background: #f0b35b; box-shadow: 0 0 0 5px rgba(240,179,91,.1); }
.metric-coverage-v2412 { margin-top: 18px; display: flex; gap: 8px; }
.metric-coverage-v2412 i { width: 12px; height: 12px; border-radius: 4px; background: var(--v24-accent); opacity: .9; }
.management-chart-metric-v2412 svg { width: 100%; height: 38px; margin-top: 10px; overflow: visible; }
.management-chart-metric-v2412 polyline { fill: none; stroke: var(--v24-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.management-list-zone-v2412 { margin-top: clamp(18px,2vw,26px); padding: clamp(18px,2.2vw,30px); border: 1px solid var(--v24-line); border-radius: 18px; background: var(--v24-surface); }
.management-list-zone-v2412 .behavior-management-listing-grid { gap: 0 !important; border-top: 1px solid var(--v24-line); }
.management-list-zone-v2412 .management-card,
.management-list-zone-v2412 .management-list-card,
.management-list-zone-v2412 .management-row { border-radius: 0 !important; box-shadow: none !important; }

/* Product listing: one large canvas with flat zones instead of stacked shells. */
html body[data-view="product-listing-settings"] .page-inner { max-width: 1560px !important; }
html body[data-view="product-listing-settings"] .listing-settings-shell,
html body[data-view="product-listing-settings"] .listing-license-card,
html body[data-view="product-listing-settings"] .sku-matrix-card,
html body[data-view="product-listing-settings"] .product-listing-compliance-panel {
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--v24-line) !important;
  border-right: 1px solid var(--v24-line) !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--v24-line) !important;
  background: var(--v24-surface) !important;
  box-shadow: none !important;
}
html body[data-view="product-listing-settings"] .listing-settings-shell { border-top: 1px solid var(--v24-line) !important; border-radius: 18px 18px 0 0 !important; overflow: hidden; }
html body[data-view="product-listing-settings"] .listing-main-card,
html body[data-view="product-listing-settings"] .listing-side-card,
html body[data-view="product-listing-settings"] .option-group-card,
html body[data-view="product-listing-settings"] .licensed-production-panel,
html body[data-view="product-listing-settings"] .legal-submit-panel { border-radius: 0 !important; box-shadow: none !important; }
html body[data-view="product-listing-settings"] .listing-main-card,
html body[data-view="product-listing-settings"] .listing-side-card { border: 0 !important; background: transparent !important; }
html body[data-view="product-listing-settings"] .listing-side-card { border-left: 1px solid var(--v24-line) !important; }
html body[data-view="product-listing-settings"] .listing-license-card,
html body[data-view="product-listing-settings"] .sku-matrix-card,
html body[data-view="product-listing-settings"] .product-listing-compliance-panel { padding: clamp(24px,3vw,42px) !important; }
html body[data-view="product-listing-settings"] .settings-bottom-bar,
html body[data-view="product-listing-settings"] .listing-actions { width: 100%; margin: 0 !important; justify-content: center !important; gap: clamp(18px,3vw,42px) !important; border-radius: 0 0 18px 18px !important; }
html body[data-view="product-listing-settings"] .listing-actions .btn { min-width: 160px; }

/* File listing: one canvas, flat steps, no box-within-box congestion. */
html body[data-view="file-listing-settings"] .fl188-root .page-shell {
  max-width: 1600px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--v24-line);
  border-radius: 18px;
  background: var(--v24-surface);
}
html body[data-view="file-listing-settings"] .fl188-root .page-heading,
html body[data-view="file-listing-settings"] .fl188-root .workflow-strip,
html body[data-view="file-listing-settings"] .fl188-root .content-grid { margin: 0 !important; }
html body[data-view="file-listing-settings"] .fl188-root .page-heading { padding: clamp(24px,3vw,42px); border-bottom: 1px solid var(--v24-line); }
html body[data-view="file-listing-settings"] .fl188-root .workflow-strip { border: 0 !important; border-bottom: 1px solid var(--v24-line) !important; border-radius: 0 !important; background: transparent !important; }
html body[data-view="file-listing-settings"] .fl188-root .content-grid { grid-template-columns: minmax(0,1fr) minmax(300px,360px) !important; gap: 0 !important; }
html body[data-view="file-listing-settings"] .fl188-root .main-column { gap: 0 !important; }
html body[data-view="file-listing-settings"] .fl188-root .panel,
html body[data-view="file-listing-settings"] .fl188-root .side-card,
html body[data-view="file-listing-settings"] .fl188-root .matrix-card,
html body[data-view="file-listing-settings"] .fl188-root .single-sku,
html body[data-view="file-listing-settings"] .fl188-root .manual-panel {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v24-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body[data-view="file-listing-settings"] .fl188-root .panel { padding: clamp(24px,3vw,42px) !important; }
html body[data-view="file-listing-settings"] .fl188-root .side-column { gap: 0 !important; border-left: 1px solid var(--v24-line); }
html body[data-view="file-listing-settings"] .fl188-root .side-card { padding: clamp(22px,2.5vw,34px) !important; }
html body[data-view="file-listing-settings"] .fl188-root .action-bar {
  width: min(100%, 1600px) !important;
  margin: 16px auto 0 !important;
  padding: 15px 20px !important;
  justify-content: center !important;
  gap: clamp(20px,4vw,56px) !important;
  border-radius: 16px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .action-copy { display: none !important; }
html body[data-view="file-listing-settings"] .fl188-root .action-buttons { width: auto !important; justify-content: center !important; gap: clamp(18px,3vw,40px) !important; }
html body[data-view="file-listing-settings"] .fl188-root .action-buttons .btn { min-width: 170px; }

/* OrcaSlicer parameters: use width efficiently and keep type readable. */
html body[data-view="file-listing-settings"] .fl188-root .parameter-dialog { width: min(1520px,calc(100vw - 24px)) !important; height: min(940px,calc(100dvh - 24px)) !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-head { padding: 22px 28px !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 { font-size: clamp(1.4rem,2vw,2rem) !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-head p { font-size: .92rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar { padding: 15px 28px !important; gap: 18px !important; }
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button { min-height: 44px; padding: 0 15px; font-size: .9rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input { min-height: 44px; font-size: .9rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-summary { padding: 12px 28px !important; font-size: .88rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-groups { padding: 18px 28px 28px !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary { min-height: 52px !important; padding: 14px 18px !important; font-size: .95rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-fields { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 1px !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field { grid-template-columns: minmax(0,1fr) minmax(130px,180px) 34px !important; min-height: 76px !important; padding: 14px 16px !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field label b { font-size: .88rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field label small { font-size: .73rem !important; line-height: 1.35 !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-field input,
html body[data-view="file-listing-settings"] .fl188-root .parameter-field select { min-height: 42px; font-size: .9rem !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer { padding: 15px 28px !important; justify-content: center !important; gap: 28px !important; }
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer .btn { min-width: 160px; }

/* Plan: remove decorative hero box and prioritize current plan + plan cards. */
.plan-heading-flat-v2412 { margin: 0 0 clamp(18px,2vw,28px); padding: 0; background: transparent; }
.plan-heading-flat-v2412 h1 { margin: 5px 0 8px; font-size: clamp(2.2rem,3.8vw,4rem); line-height: 1; }
.plan-heading-flat-v2412 p { margin: 0; color: var(--v24-muted); font-size: clamp(.95rem,.25vw + .86rem,1.12rem); }
.plan-summary-primary-v2412 { margin-bottom: clamp(20px,2.4vw,34px) !important; padding: 0 !important; border: 1px solid var(--v24-line); border-radius: 18px; overflow: hidden; background: var(--v24-surface); }
.plan-summary-primary-v2412 > div { min-height: 112px; padding: clamp(20px,2vw,30px) !important; border-radius: 0 !important; background: transparent !important; }
.plan-summary-primary-v2412 > div + div { border-left: 1px solid var(--v24-line); }
.plan-summary-primary-v2412 strong { margin-top: 8px; font-size: clamp(1.25rem,1.7vw,2rem) !important; }
.plan-grid-priority-v2412 .plan-card,
.plan-grid-priority-v2412 > * { min-height: 390px; }
.plan-grid-priority-v2412 h2,
.plan-grid-priority-v2412 .plan-name { font-size: clamp(1.35rem,1.5vw,1.8rem) !important; }
.plan-grid-priority-v2412 .plan-price,
.plan-grid-priority-v2412 .plan-storage { font-size: clamp(1.8rem,2.6vw,3rem) !important; }
.plan-ledger-note-v2412 { margin-top: 22px !important; }

/* KYC/KYB: one calm canvas with separators, not nested boxes. */
html body[data-view="kyc-verification"] .kyc-page-v249 {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--v24-line);
  border-radius: 18px;
  background: var(--v24-surface);
}
html body[data-view="kyc-verification"] .kyc-hero-v249,
html body[data-view="kyc-verification"] .kyc-primary-card,
html body[data-view="kyc-verification"] .kyc-side-card,
html body[data-view="kyc-verification"] .kyc-doc-card-v249,
html body[data-view="kyc-verification"] .kyc-review-card {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body[data-view="kyc-verification"] .kyc-hero-v249 { padding: clamp(26px,3vw,44px) !important; border-bottom: 1px solid var(--v24-line) !important; }
html body[data-view="kyc-verification"] .kyc-main-grid-v249 { gap: 0 !important; border-bottom: 1px solid var(--v24-line); }
html body[data-view="kyc-verification"] .kyc-primary-card,
html body[data-view="kyc-verification"] .kyc-side-card { padding: clamp(24px,3vw,42px) !important; }
html body[data-view="kyc-verification"] .kyc-side-card { border-left: 1px solid var(--v24-line) !important; }
html body[data-view="kyc-verification"] .kyc-doc-card-v249 { padding: clamp(24px,3vw,42px) !important; border-bottom: 1px solid var(--v24-line) !important; }
html body[data-view="kyc-verification"] .kyc-doc-grid > * { border-radius: 12px !important; }
html body[data-view="kyc-verification"] .kyc-review-grid-v249 { gap: 0 !important; }
html body[data-view="kyc-verification"] .kyc-review-card { padding: clamp(26px,3vw,44px) !important; }
html body[data-view="kyc-verification"] .kyc-review-card + .kyc-review-card { border-left: 1px solid var(--v24-line) !important; }
html body[data-view="kyc-verification"] .kyc-declaration-block { margin-top: 22px !important; padding-top: 22px !important; border-top: 1px solid var(--v24-line); }
html body[data-view="kyc-verification"] .kyc-submit-footer-v249 { margin-top: 24px !important; padding-top: 20px !important; border-top: 1px solid var(--v24-line); }

@media (max-width: 1180px) {
  html body[data-view="market-products"] .market-command-row-v2411,
  html body[data-view="market-file"] .market-command-row-v2411 { grid-template-columns: minmax(130px,.3fr) minmax(360px,1.4fr) auto !important; }
  .management-priority-grid-v2412 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .management-flat-v2412 .behavior-ops-metric:nth-child(3) { border-left: 0 !important; border-top: 1px solid var(--v24-line) !important; }
  .management-flat-v2412 .behavior-ops-metric:nth-child(4) { border-top: 1px solid var(--v24-line) !important; }
  .management-finance-strip-v2412 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .file-management-flat-v2412 .management-finance-strip-v2412 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-fields { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 820px) {
  html body[data-view="market-products"] .market-command-row-v2411,
  html body[data-view="market-file"] .market-command-row-v2411 { grid-template-columns: minmax(0,1fr) auto !important; }
  .market-command-label-v2411 { grid-column: 1 / -1 !important; }
  .market-search-capsule-v2411 { min-height: 54px !important; }
  .seller-profile-head-v2412 { grid-template-columns: auto minmax(0,1fr); }
  .seller-profile-actions-v2412 { grid-column: 1 / -1; justify-content: flex-start; }
  .seller-profile-metrics-v2412 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seller-profile-metrics-v2412 > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--v24-line); }
  .seller-profile-metrics-v2412 > div:nth-child(4) { border-top: 1px solid var(--v24-line); }
  .management-finance-strip-v2412,
  .file-management-flat-v2412 .management-finance-strip-v2412 { grid-template-columns: 1fr !important; }
  .management-flat-v2412 .management-metric-v161 + .management-metric-v161 { border-left: 0 !important; border-top: 1px solid var(--v24-line) !important; }
  html body[data-view="product-listing-settings"] .listing-side-card { border-left: 0 !important; border-top: 1px solid var(--v24-line) !important; }
  html body[data-view="file-listing-settings"] .fl188-root .content-grid { grid-template-columns: 1fr !important; }
  html body[data-view="file-listing-settings"] .fl188-root .side-column { border-left: 0 !important; border-top: 1px solid var(--v24-line); }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-fields { grid-template-columns: 1fr !important; }
  html body[data-view="kyc-verification"] .kyc-side-card,
  html body[data-view="kyc-verification"] .kyc-review-card + .kyc-review-card { border-left: 0 !important; border-top: 1px solid var(--v24-line) !important; }
}
@media (max-width: 560px) {
  .market-command-label-v2411 .page-desc { display: none; }
  .market-search-capsule-v2411 { padding-inline: 16px !important; }
  .management-priority-grid-v2412 { grid-template-columns: 1fr !important; }
  .management-flat-v2412 .behavior-ops-metric + .behavior-ops-metric { border-left: 0 !important; border-top: 1px solid var(--v24-line) !important; }
  .seller-profile-metrics-v2412 { grid-template-columns: 1fr; }
  .seller-profile-metrics-v2412 > div + div { border-left: 0; border-top: 1px solid var(--v24-line); }
  html body[data-view="product-listing-settings"] .listing-actions,
  html body[data-view="file-listing-settings"] .fl188-root .action-buttons { flex-direction: column; width: 100% !important; }
  html body[data-view="product-listing-settings"] .listing-actions .btn,
  html body[data-view="file-listing-settings"] .fl188-root .action-buttons .btn { width: 100%; }
}


/* v24.12.1 refinements from real browser render. */
html body[data-view="plan"] .revenue-readiness { display: none !important; }

.product-listing-canvas-v2412 {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(320px,.72fr);
  border: 1px solid var(--v24-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--v24-surface);
}
.product-listing-canvas-v2412 > .listing-settings-shell { grid-column: 1 / -1; border: 0 !important; border-bottom: 1px solid var(--v24-line) !important; border-radius: 0 !important; }
.product-listing-canvas-v2412 > .sku-matrix-card { grid-column: 1; border: 0 !important; border-right: 1px solid var(--v24-line) !important; border-bottom: 1px solid var(--v24-line) !important; }
.product-listing-canvas-v2412 > .listing-license-card { grid-column: 2; border: 0 !important; border-bottom: 1px solid var(--v24-line) !important; }
.product-listing-canvas-v2412 > .product-listing-compliance-panel { grid-column: 1 / -1; border: 0 !important; }
html body[data-view="product-listing-settings"] .settings-bottom-bar,
html body[data-view="product-listing-settings"] .listing-actions { position: static !important; margin-top: 16px !important; border-radius: 16px !important; }
html body[data-view="file-listing-settings"] .fl188-root .action-bar { position: static !important; inset: auto !important; transform: none !important; }

html body[data-view="kyc-verification"] .kyc-declaration-block,
html body[data-view="kyc-verification"] .product-compliance-check.kyc-declaration-check {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body[data-view="kyc-verification"] .product-compliance-check.kyc-declaration-check { padding: 0 !important; }

@media (max-width: 980px) {
  .product-listing-canvas-v2412 { grid-template-columns: 1fr; }
  .product-listing-canvas-v2412 > .sku-matrix-card,
  .product-listing-canvas-v2412 > .listing-license-card { grid-column: 1; border-right: 0 !important; }
}

/* Product listing wrapper must override the legacy page-level grid. */
html body[data-view="product-listing-settings"] .page-inner {
  display: block !important;
  width: 100% !important;
}
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 {
  width: 100% !important;
}
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 > .listing-settings-shell {
  display: grid !important;
  grid-template-columns: minmax(0,1.7fr) minmax(320px,.8fr) !important;
  gap: 0 !important;
}
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-main-card,
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-side-card,
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .sku-matrix-card,
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-license-card,
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .product-listing-compliance-panel {
  grid-row: auto !important;
  min-width: 0 !important;
}
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-main-card { grid-column: 1 !important; }
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-side-card { grid-column: 2 !important; }
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .sku-matrix-card { grid-column: 1 !important; }
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-license-card { grid-column: 2 !important; }
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .product-listing-compliance-panel { grid-column: 1 / -1 !important; }
@media (max-width: 980px) {
  html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 > .listing-settings-shell { grid-template-columns: 1fr !important; }
  html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-main-card,
  html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-side-card,
  html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .sku-matrix-card,
  html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 .listing-license-card { grid-column: 1 !important; }
}

/* Independent listing columns prevent License from pushing the SKU section. */
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 { display: block !important; }
.product-listing-columns-v2412 { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,.75fr); align-items: start; }
.product-listing-primary-v2412,
.product-listing-secondary-v2412 { min-width: 0; display: grid; align-content: start; }
.product-listing-primary-v2412 { border-right: 1px solid var(--v24-line); }
.product-listing-primary-v2412 > *,
.product-listing-secondary-v2412 > * { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.product-listing-primary-v2412 > * + *,
.product-listing-secondary-v2412 > * + * { border-top: 1px solid var(--v24-line) !important; }
.product-listing-primary-v2412 .listing-main-card,
.product-listing-primary-v2412 .sku-matrix-card,
.product-listing-secondary-v2412 .listing-side-card,
.product-listing-secondary-v2412 .listing-license-card { padding: clamp(24px,3vw,42px) !important; }
.product-listing-canvas-v2412 > .product-listing-compliance-panel { border-top: 1px solid var(--v24-line) !important; }
@media (max-width:980px){
  .product-listing-columns-v2412 { grid-template-columns: 1fr; }
  .product-listing-primary-v2412 { border-right: 0; }
  .product-listing-secondary-v2412 { border-top: 1px solid var(--v24-line); }
}

/* Parameter form consumes the complete dialog; no unused right-side pane. */
html body[data-view="file-listing-settings"] .fl188-root .parameter-dialog > .parameter-shell,
html body[data-view="file-listing-settings"] .fl188-root .parameter-shell {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
}

/* ========================================================================
   v24.13 — OrcaSlicer parameter readability and space utilisation
   Scope: File Listing > OrcaSlicer Parameters only.
   Keeps all 122 rows and parameter logic unchanged.
   ======================================================================== */
html body[data-view="file-listing-settings"] .fl188-root .parameter-dialog {
  width: min(1540px, calc(100vw - clamp(16px, 2vw, 36px))) !important;
  height: min(960px, calc(100dvh - clamp(16px, 2vw, 30px))) !important;
  border-radius: clamp(16px, 1.4vw, 24px) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-shell {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  background: #0b141d !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: clamp(18px, 2vw, 34px) !important;
  padding: clamp(24px, 2.6vw, 40px) clamp(24px, 3vw, 48px) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head .eyebrow {
  margin-bottom: 9px !important;
  font-size: clamp(.76rem, .2vw + .7rem, .92rem) !important;
  letter-spacing: .14em !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 {
  max-width: 1180px !important;
  margin: 0 !important;
  font-size: clamp(1.8rem, 2.4vw, 2.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  overflow-wrap: anywhere !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head > div > p:last-child {
  max-width: 900px !important;
  margin: 10px 0 0 !important;
  color: #9eafbd !important;
  font-size: clamp(.94rem, .22vw + .88rem, 1.08rem) !important;
  line-height: 1.6 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head .icon-button {
  width: clamp(44px, 3vw, 52px) !important;
  height: clamp(44px, 3vw, 52px) !important;
  border-radius: 13px !important;
  font-size: 1.6rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar {
  display: grid !important;
  grid-template-columns: minmax(430px, .9fr) minmax(420px, 1.1fr) !important;
  align-items: center !important;
  gap: clamp(18px, 2vw, 32px) !important;
  padding: clamp(16px, 1.7vw, 24px) clamp(24px, 3vw, 48px) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 15px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button {
  flex: 1 1 0 !important;
  min-height: 58px !important;
  padding: 0 clamp(15px, 1.8vw, 28px) !important;
  color: #98a9b8 !important;
  font-size: clamp(1rem, .22vw + .94rem, 1.14rem) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button.active {
  color: #d9fff1 !important;
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.6) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs b {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 26px !important;
  height: 24px !important;
  margin-left: 8px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.07) !important;
  font-size: .78rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions {
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) auto auto !important;
  gap: 10px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding-inline: 17px !important;
  font-size: 1rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions .btn {
  min-height: 52px !important;
  padding-inline: 17px !important;
  font-size: .94rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-summary {
  min-height: 52px !important;
  align-items: center !important;
  padding: 12px clamp(24px, 3vw, 48px) !important;
  color: #b3c0cb !important;
  font-size: clamp(.93rem, .18vw + .88rem, 1.05rem) !important;
  font-weight: 700 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-groups {
  padding: clamp(16px, 1.8vw, 28px) clamp(24px, 3vw, 48px) clamp(28px, 3vw, 46px) !important;
  scrollbar-gutter: stable both-edges !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group {
  margin-bottom: 14px !important;
  border-radius: 15px !important;
  background: #0d1822 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary {
  min-height: 64px !important;
  padding: 16px 20px !important;
  cursor: pointer !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary b {
  color: #e7edf2 !important;
  font-size: clamp(1.02rem, .22vw + .96rem, 1.16rem) !important;
  line-height: 1.25 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary span {
  min-width: 78px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(138,161,184,.2) !important;
  border-radius: 999px !important;
  color: #a9bac7 !important;
  background: rgba(255,255,255,.025) !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
  text-align: center !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group[open] > summary {
  border-bottom: 1px solid var(--v24-line) !important;
  background: rgba(16,185,129,.045) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-field {
  min-height: 92px !important;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 42%) 36px !important;
  gap: 12px !important;
  padding: 16px !important;
  background: #0b151e !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-field label b {
  color: #edf3f7 !important;
  font-size: clamp(.98rem, .17vw + .94rem, 1.08rem) !important;
  line-height: 1.25 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-field label small {
  margin-top: 5px !important;
  color: #899aa8 !important;
  font-size: clamp(.78rem, .12vw + .75rem, .88rem) !important;
  line-height: 1.35 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-control input,
html body[data-view="file-listing-settings"] .fl188-root .parameter-control select {
  width: 100% !important;
  min-height: 50px !important;
  height: 50px !important;
  padding-inline: 14px !important;
  border-radius: 11px !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-control.toggle {
  min-height: 50px !important;
  align-items: center !important;
}
html body[data-view="file-listing-settings"] .fl188-root .switch {
  width: 54px !important;
  height: 31px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .switch i {
  width: 23px !important;
  height: 23px !important;
  top: 3px !important;
  left: 3px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .switch.on i { left: 26px !important; }
html body[data-view="file-listing-settings"] .fl188-root .field-reset {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  font-size: 1.2rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer {
  justify-content: center !important;
  gap: 14px !important;
  padding: 17px clamp(24px, 3vw, 48px) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer .btn {
  min-width: 190px !important;
  min-height: 52px !important;
  font-size: 1rem !important;
}

@media (max-width: 1320px) {
  html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar {
    grid-template-columns: 1fr !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 860px) {
  html body[data-view="file-listing-settings"] .fl188-root .parameter-dialog {
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    border-radius: 15px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head {
    padding: 20px 18px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 {
    font-size: clamp(1.55rem, 6vw, 2.15rem) !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head > div > p:last-child {
    font-size: .98rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar {
    padding: 14px 18px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs {
    min-height: 54px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button {
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 0 9px !important;
    font-size: .96rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs b {
    min-width: 23px !important;
    height: 22px !important;
    margin-left: 4px !important;
    font-size: .72rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input {
    grid-column: 1 / -1 !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-summary {
    padding-inline: 18px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-groups {
    padding: 14px 18px 26px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-fields {
    grid-template-columns: 1fr !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-field {
    min-height: 88px !important;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 44%) 36px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-footer {
    padding: 14px 18px !important;
  }
}
@media (max-width: 520px) {
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head {
    grid-template-columns: minmax(0,1fr) 44px !important;
    padding: 17px 14px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head .eyebrow {
    font-size: .72rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 {
    font-size: 1.55rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head > div > p:last-child {
    font-size: .93rem !important;
    line-height: 1.45 !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar {
    padding: 12px 14px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button {
    justify-content: space-between !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--v24-line) !important;
    font-size: 1rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button:last-child { border-bottom: 0 !important; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions {
    grid-template-columns: 1fr !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input,
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions .btn {
    grid-column: 1 !important;
    width: 100% !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-summary {
    min-height: 48px !important;
    padding: 10px 14px !important;
    font-size: .94rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-groups {
    padding: 12px 14px 24px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary {
    min-height: 60px !important;
    padding: 14px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary b {
    font-size: 1.05rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-field {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) 38px !important;
    grid-template-areas: "label reset" "control control" !important;
    gap: 10px !important;
    padding: 15px 14px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-field label { grid-area: label !important; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-control { grid-area: control !important; }
  html body[data-view="file-listing-settings"] .fl188-root .field-reset { grid-area: reset !important; }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-field label b {
    font-size: 1.05rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-field label small {
    font-size: .83rem !important;
    white-space: normal !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-control input,
  html body[data-view="file-listing-settings"] .fl188-root .parameter-control select {
    min-height: 52px !important;
    height: 52px !important;
    font-size: 1.04rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-footer .btn {
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* ========================================================================
   v24.14 hotfix — responsive polish from screenshot feedback
   ======================================================================== */

/* Topbar: keep menu access reliable and token pill stable at every ratio. */
html body .topbar-left,
html body .topbar-right { flex-wrap: nowrap !important; }
html body .topbar-right { flex: 0 0 auto !important; min-width: 0 !important; }
html body .topbar-token-pill {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  justify-content: center !important;
  min-width: 108px !important;
  padding: 6px 12px !important;
  gap: 8px !important;
  border-radius: 999px !important;
}
html body .topbar-token-value { flex: 0 0 auto !important; }
html body .topbar-token-pill .topbar-token-plus {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
}

/* Product/File marketplace command row: reduce oversized header/search/filter
   and move the whole control block closer to the topbar. */
html body[data-view="market-products"] .page-inner,
html body[data-view="market-file"] .page-inner {
  padding-top: 14px !important;
}
html body[data-view="market-products"] .market-command-row-v2411,
html body[data-view="market-file"] .market-command-row-v2411 {
  margin: 0 0 16px !important;
  grid-template-columns: minmax(120px, .34fr) minmax(320px, 1.42fr) minmax(64px, .18fr) !important;
  gap: 14px !important;
  align-items: center !important;
}
.market-command-label-v2411 .page-title {
  font-size: clamp(20px, 2vw, 30px) !important;
  line-height: 1.02 !important;
}
.market-command-label-v2411 .page-desc {
  margin-top: 4px !important;
  max-width: 260px !important;
  font-size: clamp(.78rem, .14vw + .74rem, .92rem) !important;
}
.market-search-capsule-v2411 {
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 15px !important;
  gap: 10px !important;
}
.market-search-capsule-v2411 > svg {
  width: 17px !important;
  height: 17px !important;
}
.market-search-capsule-v2411 .search-input {
  height: 42px !important;
  font-size: .95rem !important;
}
.market-command-actions-v2411 {
  grid-template-columns: 40px !important;
  gap: 2px !important;
}
.market-filter-icon-v2411 {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}
.market-filter-icon-v2411 svg {
  width: 18px !important;
  height: 18px !important;
}
.market-command-actions-v2411 .ref-count-label {
  font-size: 9px !important;
}
@media (max-width: 760px) {
  html body[data-view="market-products"] .market-command-row-v2411,
  html body[data-view="market-file"] .market-command-row-v2411 {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 8px !important;
  }
  .market-command-label-v2411 .page-title {
    font-size: clamp(18px, 5vw, 22px) !important;
  }
  .market-command-label-v2411 .page-desc {
    font-size: .8rem !important;
  }
  .market-search-capsule-v2411 {
    min-height: 42px !important;
    height: 42px !important;
  }
  .market-search-capsule-v2411 .search-input {
    height: 40px !important;
  }
  .market-filter-icon-v2411 {
    width: 42px !important;
    height: 42px !important;
  }
}

/* Product/File view: flatten nested boxes into a cleaner bento strip. */
html body[data-view="product-detail"] .detail-bento-meta-v2411,
html body[data-view="file-detail"] .detail-bento-meta-v2411 {
  padding: 0 !important;
  gap: 0 !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, .7fr) !important;
  background: #0e1822 !important;
}
html body[data-view="product-detail"] .detail-bento-copy-v2411,
html body[data-view="product-detail"] .detail-bento-seller-v2411,
html body[data-view="file-detail"] .detail-bento-copy-v2411,
html body[data-view="file-detail"] .detail-bento-seller-v2411 {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body[data-view="product-detail"] .detail-bento-copy-v2411,
html body[data-view="file-detail"] .detail-bento-copy-v2411 {
  padding: clamp(14px, 1.4vw, 20px) !important;
}
html body[data-view="product-detail"] .detail-bento-copy-v2411 .detail-title,
html body[data-view="file-detail"] .detail-bento-copy-v2411 .detail-title {
  margin: 4px 0 7px !important;
  font-size: clamp(22px, 2vw, 32px) !important;
}
html body[data-view="product-detail"] .detail-bento-copy-v2411 .detail-desc,
html body[data-view="file-detail"] .detail-bento-copy-v2411 .detail-desc {
  font-size: 11px !important;
  line-height: 1.55 !important;
}
html body[data-view="product-detail"] .detail-bento-seller-v2411,
html body[data-view="file-detail"] .detail-bento-seller-v2411 {
  padding: 14px 16px !important;
  border-left: 1px solid var(--v24-line) !important;
}
@media (max-width: 760px) {
  html body[data-view="product-detail"] .detail-bento-meta-v2411,
  html body[data-view="file-detail"] .detail-bento-meta-v2411 {
    grid-template-columns: 1fr !important;
  }
  html body[data-view="product-detail"] .detail-bento-seller-v2411,
  html body[data-view="file-detail"] .detail-bento-seller-v2411 {
    border-left: 0 !important;
    border-top: 1px solid var(--v24-line) !important;
  }
}

/* Plan page: tidy the current-plan summary so it no longer touches the box. */
html body[data-view="plan"] .plan-summary-primary-v2412 {
  gap: 0 !important;
}
html body[data-view="plan"] .plan-summary-primary-v2412 > div {
  min-height: 0 !important;
  padding: 20px 24px !important;
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
}
html body[data-view="plan"] .plan-summary-primary-v2412 > div > .section-kicker,
html body[data-view="plan"] .plan-summary-primary-v2412 > div > span {
  display: block !important;
  margin: 0 !important;
}
html body[data-view="plan"] .plan-summary-primary-v2412 > div > strong {
  display: block !important;
  margin: 0 !important;
  line-height: 1.05 !important;
}
html body[data-view="plan"] .plan-grid-priority-v2412 > * {
  padding-top: 18px !important;
}

/* File listing: dropdown choices need larger, easier-to-read type. */
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid label > span,
html body[data-view="file-listing-settings"] .fl188-root .single-grid label > span,
html body[data-view="file-listing-settings"] .fl188-root .manual-grid label > span {
  font-size: 11px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid select,
html body[data-view="file-listing-settings"] .fl188-root .sku-config-grid input,
html body[data-view="file-listing-settings"] .fl188-root .single-grid select,
html body[data-view="file-listing-settings"] .fl188-root .manual-grid select,
html body[data-view="file-listing-settings"] .fl188-root .single-grid input,
html body[data-view="file-listing-settings"] .fl188-root .manual-grid input,
html body[data-view="file-listing-settings"] .fl188-root select {
  min-height: 46px !important;
  height: 46px !important;
  font-size: 15px !important;
  font-weight: 650 !important;
}
html body[data-view="file-listing-settings"] .fl188-root select option {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

/* OrcaSlicer parameter dialog: compress header/toolbar so more of the real
   working area is visible. */
html body[data-view="file-listing-settings"] .fl188-root .parameter-dialog {
  width: min(1500px, calc(100vw - 20px)) !important;
  height: min(930px, calc(100dvh - 16px)) !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head {
  gap: 10px !important;
  padding: 14px 18px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head .eyebrow {
  margin-bottom: 4px !important;
  font-size: .72rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 {
  max-width: 1100px !important;
  font-size: clamp(1.45rem, 1.55vw, 2rem) !important;
  line-height: 1.1 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head > div > p:last-child {
  margin-top: 6px !important;
  font-size: .92rem !important;
  line-height: 1.45 !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-head .icon-button {
  width: 40px !important;
  height: 40px !important;
  font-size: 1.25rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar {
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr) !important;
  gap: 12px !important;
  padding: 10px 18px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs { min-height: 46px !important; }
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs button {
  min-height: 46px !important;
  padding-inline: 12px !important;
  font-size: .96rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .mode-tabs b {
  min-width: 22px !important;
  height: 22px !important;
  font-size: .72rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions {
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  gap: 8px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input {
  min-height: 44px !important;
  height: 44px !important;
  font-size: .95rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-actions .btn {
  min-height: 44px !important;
  padding-inline: 14px !important;
  font-size: .9rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-summary {
  min-height: 40px !important;
  padding: 8px 18px !important;
  font-size: .9rem !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-groups {
  padding: 12px 18px 18px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group {
  margin-bottom: 10px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-group > summary {
  min-height: 52px !important;
  padding: 12px 16px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-field {
  min-height: 84px !important;
  padding: 13px 14px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer {
  padding: 12px 18px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .parameter-footer .btn {
  min-width: 170px !important;
  min-height: 46px !important;
}
@media (max-width: 860px) {
  html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar {
    grid-template-columns: 1fr !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-actions input {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 520px) {
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head {
    padding: 12px 14px !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head h2 {
    font-size: 1.3rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-head > div > p:last-child {
    font-size: .86rem !important;
  }
  html body[data-view="file-listing-settings"] .fl188-root .parameter-toolbar,
  html body[data-view="file-listing-settings"] .fl188-root .parameter-summary,
  html body[data-view="file-listing-settings"] .fl188-root .parameter-groups,
  html body[data-view="file-listing-settings"] .fl188-root .parameter-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
