/* ============================================================================
   FastenersFind v3 — "Quiet Premium industrial" design system (Django side)
   ----------------------------------------------------------------------------
   Self-contained: does NOT depend on main.css or fastenersfind-v2.css.
   Loaded LAST in base.html so fv3-* declarations win over older layers.

   Color law:
     NAVY  #1A3A6B (+ ink #0F2A4A on dark surfaces) = structure, headings, glyphs
     STEEL #2B5A9C = links + data emphasis
     GOLD  #F5A623 = PRIMARY ACTIONS ONLY (one gold CTA per view;
                     #B8860B-class deep gold for small gold text on white)
     GREEN #1E9E5A = verification / success ONLY
   Metrics: cards 14px radius; buttons + inputs share 44px height / 10px radius;
   hairline #E7EDF4; mono uppercase 11px micro-labels for metadata.
   ========================================================================== */

:root {
  --fv3-navy: #1A3A6B;
  --fv3-ink: #0F2A4A;
  --fv3-canvas: #f6fafe;
  --fv3-gold: #F5A623;
  --fv3-gold-deep: #B8860B;
  --fv3-steel: #2B5A9C;
  --fv3-green: #1E9E5A;
  --fv3-line: #E7EDF4;
  --fv3-muted: #5B6B7E;
  --fv3-white: #ffffff;
  --fv3-danger: #C0392B;
  --fv3-shadow: 0 1px 2px rgba(16, 42, 67, .06);
  --fv3-shadow-lift: 0 10px 24px -8px rgba(16, 42, 67, .16), 0 2px 6px rgba(16, 42, 67, .08);
  --fv3-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fv3-mono: ui-monospace, "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------- page shell */

.fv3-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--fv3-canvas);
  color: var(--fv3-ink);
  font-family: var(--fv3-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.fv3-page *,
.fv3-page *::before,
.fv3-page *::after { box-sizing: border-box; }
.fv3-page > main { flex: 1 1 auto; }
.fv3-page .hidden { display: none !important; }
.fv3-page ::selection { background: rgba(245, 166, 35, .32); color: var(--fv3-ink); }

.fv3-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------------------------------------------------------------- typography */

.fv3-h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fv3-navy);
}
.fv3-h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fv3-navy);
}
.fv3-h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fv3-ink);
}
.fv3-eyebrow {
  display: block;
  margin: 0 0 8px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-muted { color: var(--fv3-muted); font-size: 13.5px; }
.fv3-mono { font-family: var(--fv3-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- buttons */

.fv3-btn-primary,
.fv3-btn-outline,
.fv3-btn-ghost,
.fv3-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease,
              box-shadow .15s ease, transform .1s ease;
}
.fv3-btn-primary {
  background: var(--fv3-gold);
  color: var(--fv3-ink);
  box-shadow: 0 1px 2px rgba(16, 42, 67, .12);
}
.fv3-btn-primary:hover { background: #e8991a; box-shadow: var(--fv3-shadow-lift); }
.fv3-btn-primary:active { transform: translateY(1px); box-shadow: var(--fv3-shadow); }
.fv3-btn-outline {
  background: transparent;
  color: var(--fv3-navy);
  border: 2px solid var(--fv3-navy);
}
.fv3-btn-outline:hover { background: rgba(26, 58, 107, .07); }
.fv3-btn-ghost {
  background: transparent;
  color: var(--fv3-steel);
  padding: 0 12px;
}
.fv3-btn-ghost:hover { background: rgba(43, 90, 156, .08); color: var(--fv3-navy); }
.fv3-btn-dark { background: var(--fv3-ink); color: var(--fv3-white); }
.fv3-btn-dark:hover { background: var(--fv3-navy); }

.fv3-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* -------------------------------------------------------------------- header */

.fv3-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fv3-white);
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

.fv3-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.fv3-logo-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--fv3-navy), var(--fv3-ink));
}
.fv3-logo-tile svg { display: block; }
.fv3-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.fv3-logo-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fv3-navy);
}
.fv3-logo-tag {
  font-family: var(--fv3-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fv3-gold-deep);
}

.fv3-navlinks { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.fv3-navlink {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
  white-space: nowrap;
}
.fv3-navlink:hover { color: var(--fv3-navy); background: rgba(43, 90, 156, .07); }

.fv3-hsearch {
  display: flex;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 520px;
  margin-left: 6px;
}
.fv3-hsearch .fv3-input { flex: 1 1 auto; min-width: 0; }

.fv3-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* account avatar + dropdown (progressive enhancement: link works without JS) */
.fv3-account { position: relative; display: inline-flex; }
.fv3-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fv3-navy);
  color: var(--fv3-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.fv3-avatar:hover { background: var(--fv3-ink); }
.fv3-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 110;
  min-width: 230px;
  padding: 6px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow-lift);
}
.fv3-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fv3-ink);
  text-decoration: none;
}
.fv3-menu a:hover { background: var(--fv3-canvas); color: var(--fv3-navy); }
.fv3-menu a.danger { color: var(--fv3-danger); }
.fv3-menu-head {
  padding: 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--fv3-line);
  font-size: 13px;
  color: var(--fv3-ink);
}

/* ------------------------------------------------------------------ messages */

.fv3-msg {
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(43, 90, 156, .25);
  border-radius: 10px;
  background: #EDF3FA;
  color: #24507F;
  font-size: 13.5px;
}
.fv3-msg-success {
  border-color: rgba(30, 158, 90, .3);
  background: #E7F6EE;
  color: #157A45;
}
.fv3-msg-error {
  border-color: rgba(192, 57, 43, .3);
  background: #FBEDEB;
  color: var(--fv3-danger);
}

/* --------------------------------------------------------- cards + sections */

.fv3-card {
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
}
.fv3-card-pad { padding: 24px; }
.fv3-card-lift { transition: box-shadow .18s ease, transform .18s ease; }
.fv3-card-lift:hover { box-shadow: var(--fv3-shadow-lift); transform: translateY(-2px); }

.fv3-section { padding-top: 48px; padding-bottom: 48px; }
.fv3-section-canvas { background: var(--fv3-canvas); }

.fv3-divider {
  border: 0;
  border-top: 1px solid var(--fv3-line);
  margin: 24px 0;
}

.fv3-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
  background: var(--fv3-white);
  border: 1px dashed #C9D6E3;
  border-radius: 14px;
}
.fv3-empty .fv3-actions { justify-content: center; margin-top: 20px; }

/* --------------------------------------------------------------------- forms */

.fv3-field { margin-bottom: 16px; }
.fv3-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-ink);
}
.fv3-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 14px;
  color: var(--fv3-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-input::placeholder { color: #93A2B4; }
.fv3-input:focus,
.fv3-input:focus-visible {
  outline: none;
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .28);
}
textarea.fv3-input {
  height: auto;
  min-height: 96px;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}
select.fv3-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A3A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.fv3-error { margin-top: 5px; font-size: 13px; color: var(--fv3-danger); }
.fv3-help { margin-top: 5px; font-size: 12px; color: var(--fv3-muted); }

/* ----------------------------------------------------- badges + status pills */

.fv3-badge,
.fv3-badge-verified,
.fv3-badge-warn,
.fv3-status-new,
.fv3-status-replied,
.fv3-status-closed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.fv3-badge { background: var(--fv3-white); border-color: var(--fv3-line); color: #44566C; }
.fv3-badge-verified { background: #E7F6EE; border-color: rgba(30, 158, 90, .28); color: #157A45; }
.fv3-badge-warn { background: #FBF1DC; border-color: rgba(184, 134, 11, .3); color: #8A6116; }
.fv3-status-new { background: #E8F0FA; border-color: rgba(43, 90, 156, .25); color: var(--fv3-steel); }
.fv3-status-replied { background: #E7F6EE; border-color: rgba(30, 158, 90, .28); color: #157A45; }
.fv3-status-closed { background: #EEF2F6; border-color: var(--fv3-line); color: var(--fv3-muted); }

/* --------------------------------------------------------------------- table */

.fv3-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: var(--fv3-ink);
}
.fv3-table th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fv3-muted);
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-table td {
  padding: 12px;
  border-bottom: 1px solid var(--fv3-line);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.fv3-table tr:last-child td { border-bottom: 0; }
.fv3-table .fv3-num { font-family: var(--fv3-mono); }

/* -------------------------------------------------------------------- footer */

.fv3-footer {
  margin-top: 48px;
  background: var(--fv3-ink);
  color: rgba(255, 255, 255, .7);
  font-size: 13.5px;
}
.fv3-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}
.fv3-footer-title {
  margin: 0 0 12px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.fv3-footer-grid a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}
.fv3-footer-grid a:hover { color: var(--fv3-white); }
.fv3-footer-tagline {
  margin: 12px 0 0;
  max-width: 300px;
  color: rgba(255, 255, 255, .7);
}
.fv3-footer .fv3-logo-name { color: var(--fv3-white); }
.fv3-footer .fv3-logo-tag { color: var(--fv3-gold); }
.fv3-footer .fv3-logo-tile { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.fv3-footer-bottom {
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}
.fv3-footer-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.fv3-footer-bottom a:hover { color: var(--fv3-white); }

/* ------------------------------------------------------------ focus visible */

.fv3-page :focus-visible {
  outline: 2px solid var(--fv3-steel);
  outline-offset: 2px;
}
.fv3-btn-primary:focus-visible { outline-color: var(--fv3-navy); }
.fv3-footer :focus-visible { outline-color: var(--fv3-gold); }

/* ---------------------------------------------------------------- responsive
   No-JS mobile collapse: below 1100px the nav wraps — row 1 keeps logo +
   actions, the nav links become a horizontally scrollable strip, and the
   search bar takes its own full-width row. Nothing is unreachable without JS. */

@media (max-width: 1100px) {
  .fv3-nav {
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 10px;
    padding-bottom: 12px;
  }
  .fv3-logo { order: 1; }
  .fv3-nav-actions { order: 2; }
  .fv3-navlinks {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .fv3-navlinks::-webkit-scrollbar { display: none; }
  .fv3-navlink { flex: 0 0 auto; padding: 6px 10px; }
  .fv3-hsearch {
    order: 4;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 800px) {
  .fv3-footer-grid { grid-template-columns: 1fr 1fr; padding-top: 40px; }
}

@media (max-width: 640px) {
  .fv3-btn-primary, .fv3-btn-outline, .fv3-btn-dark { padding: 0 14px; }
  .fv3-btn-ghost { padding: 0 8px; }
  /* Supplier Sign Up remains reachable via the footer and the account menu */
  .fv3-header .fv3-btn-outline { display: none; }
  .fv3-logo-tag { display: none; }
  .fv3-section { padding-top: 36px; padding-bottom: 36px; }
  .fv3-empty { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .fv3-footer-grid { grid-template-columns: 1fr; }
  .fv3-logo-name { font-size: 16px; }
}

/* ############################################################################
   MERGED FRAGMENTS — appended by the merge agent on 2026-09-07.
   Each section below was authored as a standalone namespaced fragment
   (css-fragments/<name>.css) and is appended verbatim. Namespaces are
   disjoint (fv3-chat- / fv3-crm- / fv3-onb- / fv3-prod- / fv3-site- /
   fv3-tool- / fv3-ws-); no duplicate class definitions were found, so
   nothing was dropped. Contract classes (.fv3-input, .fv3-table, ...)
   appear inside fragments ONLY as contextual overrides scoped under a
   fragment-namespace ancestor — the canonical definitions above win.
   ######################################################################### */

/* ===================== BEGIN FRAGMENT: fv3-chat.css ===================== */
/* ============================================================================
   fv3-chat — seller communications (enquiry list, enquiry thread, messages
   panel). ONE shared chat stylesheet replacing the two drifting embedded
   <style> blocks in seller_enquiry_thread.html / seller_messages_panel.html.

   Chat color pattern (per system law):
     own messages  = navy-tint bubble, right-aligned (never the action color)
     counterpart   = white hairline bubble, left-aligned
     timestamps    = mono 10px
     read ticks    = steel when read (one color, both surfaces)
     presence      = green dot ONLY when genuinely online (trust state)
     Unlock (paid) = GOLD fv3-btn-primary; credit cost is plain text beside it
     green         = reserved for the confirmed "Responded" state
   ========================================================================== */

/* ------------------------------------------------------------- page header */
.fv3-chat-head { margin-bottom: 20px; }
.fv3-chat-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--fv3-muted); }

/* -------------------------------------------------------------- filter tabs */
.fv3-chat-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--fv3-line);
  margin-bottom: 20px;
}
.fv3-chat-tab {
  padding: 10px 14px;
  margin-bottom: -1px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--fv3-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.fv3-chat-tab:hover { color: var(--fv3-navy); }
.fv3-chat-tab.active { color: var(--fv3-navy); border-bottom-color: var(--fv3-navy); }
.fv3-chat-tab-count {
  margin-left: 4px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #93A2B4;
}
/* nonzero "awaiting your reply" count: deep gold = small gold text on white */
.fv3-chat-tab-count.attn { color: var(--fv3-gold-deep); font-weight: 700; }

/* ------------------------------------------------------------ enquiry rows */
.fv3-chat-rows { display: flex; flex-direction: column; gap: 14px; }
.fv3-chat-row { padding: 18px 20px; }
/* unlocked-but-unanswered: single amber attention pair (badge-warn family) */
.fv3-chat-row-attn { border-color: rgba(184, 134, 11, .32); background: #FFFDF6; }
.fv3-chat-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.fv3-chat-name { font-size: 14px; font-weight: 700; color: var(--fv3-ink); }
.fv3-chat-when {
  font-family: var(--fv3-mono);
  font-size: 10.5px;
  color: #93A2B4;
  white-space: nowrap;
}
.fv3-chat-meta { margin: 0 0 8px; font-size: 12.5px; color: var(--fv3-muted); }
.fv3-chat-meta a { color: var(--fv3-steel); font-weight: 600; text-decoration: none; }
.fv3-chat-meta a:hover { text-decoration: underline; }
.fv3-chat-spec { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.fv3-chat-microlabel {
  font-family: var(--fv3-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-chat-qty {
  font-family: var(--fv3-mono);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fv3-steel);
}
.fv3-chat-summary { margin: 0 0 6px; font-size: 12.5px; color: var(--fv3-muted); }
.fv3-chat-body { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--fv3-ink); }
.fv3-chat-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
}
.fv3-chat-attach:hover { text-decoration: underline; }
.fv3-chat-attach svg { width: 14px; height: 14px; flex-shrink: 0; }
.fv3-chat-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--fv3-ink);
}
.fv3-chat-phone .fv3-mono { color: var(--fv3-steel); font-weight: 600; }
.fv3-chat-blur { filter: blur(3px); user-select: none; color: var(--fv3-muted); }

/* mono category chip (EXPORT etc.) — combine with fv3-badge / fv3-badge-warn */
.fv3-chat-chip {
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* credit cost is stated as plain text, never styled as a promise */
.fv3-chat-credit {
  font-family: var(--fv3-mono);
  font-size: 11px;
  color: var(--fv3-muted);
  white-space: nowrap;
}
.fv3-chat-unlock-note { margin: 8px 0 0; text-align: center; }

/* ----------------------------------------------------------------- buttons */
/* compact modifier for the contract buttons inside dense card rows */
.fv3-chat-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
/* quiet neutral toggle ("Mark as responded") */
.fv3-chat-btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fv3-muted);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.fv3-chat-btn-quiet:hover { border-color: #C9D6E3; color: var(--fv3-ink); }
/* confirmed state of the toggle — green is legitimate here: achieved status */
.fv3-chat-btn-done {
  background: #F4FBF7;
  border-color: rgba(30, 158, 90, .4);
  color: #157A45;
}
.fv3-chat-btn-done:hover { border-color: rgba(30, 158, 90, .6); color: #157A45; }

/* --------------------------------------------------------- chat card frame */
.fv3-chat-frame { overflow: hidden; }
.fv3-chat-card { max-width: 680px; }
.fv3-chat-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
}
.fv3-chat-back:hover { color: var(--fv3-navy); }

.fv3-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--fv3-white);
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-chat-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--fv3-muted);
}
.fv3-chat-presence-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #93A2B4;
  flex-shrink: 0;
}
.fv3-chat-presence-dot.online { background: var(--fv3-green); }

.fv3-chat-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(43, 90, 156, .35);
  border-radius: 10px;
  font-family: var(--fv3-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.fv3-chat-tel:hover { background: rgba(43, 90, 156, .07); }
.fv3-chat-tel-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-mono);
  font-size: 13px;
  color: #93A2B4;
  white-space: nowrap;
  flex-shrink: 0;
  filter: blur(3px);
  user-select: none;
}

/* ------------------------------------------------------------- thread pane */
.fv3-chat-thread {
  padding: 20px;
  background: var(--fv3-canvas);
  overflow-y: auto;
}
.fv3-chat-thread-fixed { height: 420px; }

/* pinned original enquiry — steel info tint, not amber alarm */
.fv3-chat-pin {
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #EDF3FA;
  border: 1px solid rgba(43, 90, 156, .22);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #24507F;
}
.fv3-chat-pin p { margin: 0 0 4px; }
.fv3-chat-pin p:last-of-type { margin-bottom: 0; }
.fv3-chat-pin .fv3-chat-attach { margin: 6px 0 0; font-size: 12px; }
.fv3-chat-pin-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-steel);
}

/* ----------------------------------------------------------------- bubbles */
.fv3-chat-bubble {
  width: fit-content;
  max-width: 72%;
  padding: 9px 13px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fv3-ink);
  overflow-wrap: break-word;
}
.fv3-chat-bubble-mine {
  margin-left: auto;
  background: #E1EAF6; /* navy tint — structure, never the action color */
  border: 1px solid rgba(43, 90, 156, .18);
  border-bottom-right-radius: 4px;
}
.fv3-chat-bubble-theirs {
  margin-right: auto;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-bottom-left-radius: 4px;
}
.fv3-chat-time {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--fv3-muted);
}
.fv3-chat-tick { color: #93A2B4; }
.fv3-chat-tick-read { color: var(--fv3-steel); }

/* ---------------------------------------------------------------- composer */
.fv3-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 16px;
  background: var(--fv3-white);
  border-top: 1px solid var(--fv3-line);
}
.fv3-chat-composer .fv3-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 11px 14px;
  line-height: 1.45;
  resize: none;
}

/* locked footer states */
.fv3-chat-lockbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--fv3-white);
  border-top: 1px solid var(--fv3-line);
}
.fv3-chat-locknote { margin: 0; font-size: 12.5px; color: var(--fv3-muted); }
.fv3-chat-unlock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fv3-chat-lockhint {
  padding: 14px 16px;
  border-top: 1px solid var(--fv3-line);
  text-align: center;
  font-size: 12.5px;
  color: var(--fv3-muted);
}
.fv3-chat-lockpane { padding: 0 16px 16px; }
.fv3-chat-unlock-full { width: 100%; }

/* --------------------------------------------------- two-pane inbox layout */
.fv3-chat-split { display: flex; height: 560px; }
.fv3-chat-list {
  width: 288px;
  flex-shrink: 0;
  border-right: 1px solid var(--fv3-line);
  overflow-y: auto;
}
.fv3-chat-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #F0F5FA;
  text-decoration: none;
  color: inherit;
}
.fv3-chat-list-row:hover { background: #FAFCFE; }
.fv3-chat-list-row.active {
  background: #EDF3FA;
  box-shadow: inset 3px 0 0 var(--fv3-steel);
}
/* neutral navy identity avatar — 'who' no longer shares a color with 'unread' */
.fv3-chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fv3-navy);
  color: var(--fv3-white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.fv3-chat-list-main { flex: 1 1 auto; min-width: 0; }
.fv3-chat-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fv3-chat-list-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fv3-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv3-chat-list-sub {
  display: block;
  font-size: 11px;
  color: var(--fv3-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* steel unread dot — data emphasis, distinct from identity and from actions */
.fv3-chat-unread {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fv3-steel);
  flex-shrink: 0;
}
.fv3-chat-list-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--fv3-muted);
}
.fv3-chat-pane {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fv3-chat-pane .fv3-chat-thread { flex: 1 1 auto; }
.fv3-chat-pane-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .fv3-chat-list { width: 200px; }
  .fv3-chat-bubble { max-width: 86%; }
  .fv3-chat-header { padding: 12px 14px; }
  .fv3-chat-thread { padding: 14px; }
}
/* ====================== END FRAGMENT: fv3-chat.css ====================== */

/* ===================== BEGIN FRAGMENT: fv3-crm.css ===================== */
/* ============================================================================
   fv3-crm — internal staff surfaces (staffcrm/* shell + /insights/ dashboard)
   Namespace: fv3-crm-. Token-consistent with fastenersfind-v3.css; light pass,
   usability first. No marketing styling.
   ========================================================================== */

/* ------------------------------------------------- shell (sidebar + topbar) */

.fv3-crm-toggle { position: absolute; opacity: 0; pointer-events: none; }

.fv3-crm-shell {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.fv3-crm-sidebar {
  flex: 0 0 232px;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  background: var(--fv3-white);
  border-right: 1px solid var(--fv3-line);
}
.fv3-crm-brand {
  display: block;
  padding: 4px 10px 14px;
  text-decoration: none;
}

.fv3-crm-navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fv3-muted);
  text-decoration: none;
}
.fv3-crm-navlink:hover { background: var(--fv3-canvas); color: var(--fv3-navy); }
.fv3-crm-navlink.is-active { background: #E8F0FA; color: var(--fv3-navy); }
.fv3-crm-navlink svg { flex: 0 0 auto; width: 16px; height: 16px; }

.fv3-crm-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fv3-crm-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  background: var(--fv3-white);
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-crm-topbar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--fv3-navy);
  text-decoration: none;
}

.fv3-crm-burger {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--fv3-navy);
  cursor: pointer;
}
.fv3-crm-burger:hover { background: var(--fv3-canvas); }

.fv3-crm-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* account dropdown — <details>/<summary>, works without JS */
.fv3-crm-account { position: relative; margin-left: 6px; }
.fv3-crm-account summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 999px;
}
.fv3-crm-account summary::-webkit-details-marker { display: none; }
.fv3-crm-accname { font-size: 13.5px; font-weight: 600; color: var(--fv3-ink); }

.fv3-crm-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 42, 74, .4);
}

@media (min-width: 1024px) {
  .fv3-crm-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .fv3-crm-scrim { display: none !important; }
}
@media (max-width: 1023px) {
  .fv3-crm-burger { display: grid; }
  .fv3-crm-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .fv3-crm-toggle:checked ~ .fv3-crm-shell .fv3-crm-sidebar {
    transform: translateX(0);
    box-shadow: var(--fv3-shadow-lift);
  }
  .fv3-crm-toggle:checked ~ .fv3-crm-shell .fv3-crm-scrim { display: block; }
}
@media (max-width: 640px) {
  .fv3-crm-accname { display: none; }
}

/* -------------------------------------------------------------- stat cards */

.fv3-crm-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}
.fv3-crm-stat {
  display: block;
  padding: 16px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.fv3-crm-stat:hover { border-color: var(--fv3-steel); box-shadow: var(--fv3-shadow-lift); }
.fv3-crm-stat-num {
  font-family: var(--fv3-mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fv3-ink);
}
.fv3-crm-stat-num.is-steel { color: var(--fv3-steel); }
.fv3-crm-stat-num.is-danger { color: var(--fv3-danger); }
.fv3-crm-stat-label { margin-top: 4px; font-size: 12px; color: var(--fv3-muted); }

/* --------------------------------------------------------------- filter bar */

.fv3-crm-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  padding: 16px;
  margin-bottom: 16px;
}
.fv3-crm-filterbar .fv3-label { margin-bottom: 4px; }
.fv3-crm-filterbar .fv3-input { height: 38px; }
.fv3-crm-filterbar .fv3-btn-dark,
.fv3-crm-filterbar .fv3-btn-ghost { height: 38px; }
.fv3-crm-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 9px;
  font-size: 13.5px;
  color: var(--fv3-ink);
  cursor: pointer;
}

/* ------------------------------------------------------------------- tables */

.fv3-crm-tablewrap { overflow-x: auto; border-radius: 14px; }
.fv3-crm-tablewrap .fv3-table th { white-space: nowrap; }
.fv3-crm-tablewrap tbody tr:hover td { background: #FAFCFE; }
.fv3-crm-rowlink { color: var(--fv3-steel); font-weight: 700; text-decoration: none; }
.fv3-crm-rowlink:hover { text-decoration: underline; }

/* --------------------------------------------------------------- pagination */

.fv3-crm-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.fv3-crm-pagelink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 8px;
  color: var(--fv3-steel);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.fv3-crm-pagelink:hover { border-color: var(--fv3-steel); color: var(--fv3-navy); }
.fv3-crm-pageinfo {
  font-size: 13px;
  color: var(--fv3-muted);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------- /insights/ owner dashboard helpers */

.fv3-crm-pagehead {
  background: var(--fv3-white);
  border-bottom: 1px solid var(--fv3-line);
  padding: 28px 0;
}
.fv3-crm-headrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.fv3-crm-chip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E8F0FA;
  color: var(--fv3-steel);
  flex: 0 0 auto;
}
.fv3-crm-chip.is-navy { background: #E9EEF6; color: var(--fv3-navy); }
.fv3-crm-chip.is-gold { background: #FBF1DC; color: #8A6116; }
.fv3-crm-chip svg { width: 18px; height: 18px; }
.fv3-crm-cardgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .fv3-crm-cardgrid { grid-template-columns: 1fr 1fr; } }
.fv3-crm-rank {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #E8F0FA;
  color: var(--fv3-steel);
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}
.fv3-crm-listrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--fv3-ink);
}
.fv3-crm-listnum {
  margin-left: auto;
  font-family: var(--fv3-mono);
  font-weight: 600;
  color: var(--fv3-steel);
  font-variant-numeric: tabular-nums;
}
.fv3-crm-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
}
.fv3-crm-link:hover { color: var(--fv3-navy); text-decoration: underline; }
/* ====================== END FRAGMENT: fv3-crm.css ====================== */

/* ===================== BEGIN FRAGMENT: fv3-onb.css ===================== */
/* ============================================================================
   fv3-onb fragment — supplier onboarding, profile edit, certificate form,
   legacy /search/products/ + supplier geo-search.
   Appended to fastenersfind-v3.css by the merge agent; token-consistent with
   the fv3 contract (navy structure / steel links+data / gold primary actions
   only / green verification only; 14px cards, 10px controls, #E7EDF4 hairline).
   ========================================================================== */

/* ---------------------------------------------------------------- narrow wraps */

.fv3-onb-wrap { max-width: 640px; margin: 0 auto; }
.fv3-onb-wrap-sm { max-width: 480px; margin: 0 auto; }

/* ------------------------------------------------------- Django form scope
   .fv3-onb-form styles widgets rendered by {{ form.as_p }} / label_tag /
   bare {{ form.field }} via descendant selectors so Django's own HTML output
   is untouched. Mirrors the fv3-label / fv3-input / fv3-error contract. */

.fv3-onb-form p { margin: 0 0 16px; }
.fv3-onb-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-ink);
}
.fv3-onb-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.fv3-onb-form select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background-color: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 14px;
  color: var(--fv3-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-onb-form textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 10px 14px;
  background-color: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fv3-ink);
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-onb-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A3A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.fv3-onb-form select[multiple] { height: auto; padding: 8px 14px; background-image: none; }
.fv3-onb-form input[type="file"] {
  height: auto;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--fv3-muted);
}
.fv3-onb-form input[type="checkbox"],
.fv3-onb-form input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fv3-steel);
}
.fv3-onb-form input::placeholder,
.fv3-onb-form textarea::placeholder { color: #93A2B4; }
.fv3-onb-form input:focus,
.fv3-onb-form select:focus,
.fv3-onb-form textarea:focus {
  outline: none;
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .28);
}
.fv3-onb-form .helptext {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
  color: var(--fv3-muted);
}
/* Django validation output (ul.errorlist) — styled field-error state */
.fv3-onb-form ul.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fv3-danger);
}
.fv3-onb-form ul.errorlist.nonfield {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(192, 57, 43, .3);
  border-radius: 10px;
  background: #FBEDEB;
}
.fv3-onb-form [aria-invalid="true"] { border-color: var(--fv3-danger); }
/* category picker chips created by the (unchanged) picker script */
.fv3-onb-form .cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--fv3-canvas);
  border: 1px solid var(--fv3-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-ink);
}
.fv3-onb-form .cat-chip b { cursor: pointer; font-weight: 700; color: var(--fv3-muted); }
.fv3-onb-form .cat-chip b:hover { color: var(--fv3-danger); }

/* section card inside long forms */
.fv3-onb-formcard { margin-bottom: 16px; }

/* -------------------------------------------------------- onboarding stepper */

.fv3-onb-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.fv3-onb-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.fv3-onb-step .fv3-onb-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--fv3-white);
}
.fv3-onb-step-done { color: #157A45; }
.fv3-onb-step-done .fv3-onb-dot { background: var(--fv3-green); }        /* green = completed/verified only */
.fv3-onb-step-now { color: var(--fv3-steel); }
.fv3-onb-step-now .fv3-onb-dot { background: var(--fv3-steel); }         /* steel active step — never gold */
.fv3-onb-rail { flex: 1 1 auto; height: 1px; background: var(--fv3-line); }

/* -------------------------------------------------- verification status dot */

.fv3-onb-vdot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C9D6E3;                    /* default: not yet verified (neutral) */
}
.fv3-onb-vdot-ok { background: var(--fv3-green); }       /* verified */
.fv3-onb-vdot-pending { background: var(--fv3-steel); }  /* in progress — neutral steel, not amber */
.fv3-onb-vdot-fail { background: var(--fv3-danger); }

/* ----------------------------------------------------------- page head band */

.fv3-onb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.fv3-onb-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
  white-space: nowrap;
}
.fv3-onb-link:hover { color: var(--fv3-navy); text-decoration: underline; }

/* quiet cross-link notice to the modern /search/ experience */
.fv3-onb-notice {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--fv3-muted);
}

/* ------------------------------------------------------- search page layout */

.fv3-onb-sr-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.fv3-onb-filters { position: sticky; top: 84px; }
.fv3-onb-fscroll {
  max-height: min(56vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}
.fv3-onb-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

/* search bar + autocomplete */
.fv3-onb-search { position: relative; display: flex; gap: 8px; margin-bottom: 14px; }
.fv3-onb-search .fv3-input { flex: 1 1 auto; min-width: 0; }
.fv3-onb-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  padding: 6px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  box-shadow: var(--fv3-shadow-lift);
}
.fv3-onb-suggest button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-family: var(--fv3-sans);
  font-size: 13.5px;
  color: var(--fv3-ink);
  cursor: pointer;
}
.fv3-onb-suggest button:hover { background: var(--fv3-canvas); color: var(--fv3-navy); }

/* city quick-filter row */
.fv3-onb-cityrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fv3-onb-cityrow b {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-muted);
  margin-right: 4px;
}
.fv3-onb-chip-btn {
  padding: 6px 13px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 999px;
  font-family: var(--fv3-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.fv3-onb-chip-btn:hover { border-color: var(--fv3-steel); color: var(--fv3-steel); }
.fv3-onb-chip-btn.on {
  background: var(--fv3-navy);
  border-color: var(--fv3-navy);
  color: var(--fv3-white);
}

/* results toolbar (count + sort) */
.fv3-onb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fv3-onb-sortwrap { display: flex; align-items: center; gap: 8px; }
.fv3-onb-sortwrap > label {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-onb-select-sm {
  height: 36px;
  padding: 0 32px 0 12px;
  background-color: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 13px;
  color: var(--fv3-ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A3A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ---------------------------------------------------------- result hit card */

.fv3-onb-hits { display: grid; gap: 12px; }
.fv3-onb-hit {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 200px;
  gap: 16px;
  padding: 16px;
  align-items: start;
}
.fv3-onb-hit-sup { grid-template-columns: 96px minmax(0, 1fr) 210px; }
.fv3-onb-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  background: var(--fv3-white);
}
.fv3-onb-ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  background: var(--fv3-canvas);
  font-size: 26px;
  font-weight: 800;
  color: var(--fv3-navy);
}
.fv3-onb-hit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fv3-navy);
  text-decoration: none;
}
.fv3-onb-hit-title:hover { color: var(--fv3-steel); text-decoration: underline; }
.fv3-onb-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
/* paid plan tier — deep gold text (small gold-on-white rule), NOT the action gold */
.fv3-onb-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(184, 134, 11, .3);
  border-radius: 999px;
  background: #FBF1DC;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--fv3-gold-deep);
}
.fv3-onb-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}
.fv3-onb-spec {
  padding: 2px 8px;
  border: 1px solid var(--fv3-line);
  border-radius: 6px;
  background: var(--fv3-canvas);
  font-family: var(--fv3-mono);
  font-size: 11px;
  color: var(--fv3-ink);
  white-space: nowrap;
}
.fv3-onb-meta { margin: 0; font-size: 12px; color: var(--fv3-muted); }
.fv3-onb-meta a { font-weight: 600; color: var(--fv3-steel); text-decoration: none; }
.fv3-onb-meta a:hover { text-decoration: underline; }

.fv3-onb-hit-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  text-align: right;
}
.fv3-onb-price {
  font-family: var(--fv3-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--fv3-navy);
}
.fv3-onb-price small { font-size: 11px; font-weight: 600; color: var(--fv3-muted); }
.fv3-onb-price-ask { font-size: 13px; font-weight: 600; color: var(--fv3-muted); }
/* compact per-row actions — repeated per hit, so quiet navy/steel, never gold */
.fv3-onb-btn-sm,
.fv3-onb-btn-sm-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.fv3-onb-btn-sm {
  background: transparent;
  color: var(--fv3-navy);
  border: 1px solid var(--fv3-navy);
}
.fv3-onb-btn-sm:hover { background: rgba(26, 58, 107, .07); }
.fv3-onb-btn-sm-dark { background: var(--fv3-ink); color: var(--fv3-white); border: 0; }
.fv3-onb-btn-sm-dark:hover { background: var(--fv3-navy); }

/* sidebar ad slot */
.fv3-onb-ad { margin-top: 16px; padding: 12px; }
.fv3-onb-ad small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-onb-ad img { display: block; width: 100%; border-radius: 8px; }

/* pagination */
.fv3-onb-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--fv3-muted);
}
.fv3-onb-pager a {
  font-weight: 700;
  color: var(--fv3-steel);
  text-decoration: none;
}
.fv3-onb-pager a:hover { color: var(--fv3-navy); text-decoration: underline; }

/* supplier geo-search panel */
.fv3-onb-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.fv3-onb-panel .fv3-field { margin-bottom: 0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .fv3-onb-sr-layout { grid-template-columns: 1fr; }
  .fv3-onb-filters { position: static; }
  .fv3-onb-fscroll { max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 640px) {
  .fv3-onb-hit,
  .fv3-onb-hit-sup { grid-template-columns: 64px minmax(0, 1fr); }
  .fv3-onb-hit-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    text-align: left;
  }
  .fv3-onb-grid2 { grid-template-columns: 1fr; }
}
/* ====================== END FRAGMENT: fv3-onb.css ====================== */

/* ===================== BEGIN FRAGMENT: fv3-prod.css ===================== */
/* ============================================================================
   fv3-prod — seller product management (list / form / bulk upload / delete)
   Namespace: fv3-prod-. Appended to fastenersfind-v3.css by the merge agent.

   Two kinds of selectors live here on purpose:
   1. fv3-prod-* classes used directly in the four catalog templates.
   2. Legacy class names (.form-field, .cat-chip, .pf-*, .score-*, .v13-*,
      .btn-secondary) that the product form's JavaScript CREATES or TOGGLES at
      runtime — those class names are part of the JS contract and cannot be
      renamed, so they are restyled here, always scoped under .fv3-prod-form
      so nothing leaks onto not-yet-converted pages that still use main.css.

   Color decisions (single amber attention pair, per audit):
     attention/incomplete = #FBF1DC bg / rgba(184,134,11,.3) line / #8A6116 text
       (same trio as .fv3-badge-warn — used by the low-score panel, tab counts,
        "N missing" chips and bulk-upload error summary alike)
     success/detected-high = #E7F6EE / #157A45 (v3 verified pair)
     error/low-confidence  = #FBEDEB / #C0392B (v3 danger pair; text only,
        never buttons — there is deliberately NO red action button token)
   ========================================================================== */

/* ------------------------------------------------------------------ scope */

.fv3-prod-scope {
  font-family: var(--fv3-sans);
  font-size: 14px;
  color: var(--fv3-ink);
  /* The form's runtime JS writes inline styles that reference the legacy
     main.css custom properties below; remap them to fv3 tokens inside this
     surface so the JS keeps working and stays on-palette. */
  --border: var(--fv3-line);
  --paper: var(--fv3-canvas);
  --steel: var(--fv3-muted);
}
.fv3-prod-scope *,
.fv3-prod-scope *::before,
.fv3-prod-scope *::after { box-sizing: border-box; }

.fv3-prod-link {
  color: var(--fv3-steel);
  font-weight: 600;
  text-decoration: none;
}
.fv3-prod-link:hover { color: var(--fv3-navy); text-decoration: underline; }

/* --------------------------------------------------- list: header + toolbar */

.fv3-prod-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.fv3-prod-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.fv3-prod-search { position: relative; flex: 1 1 220px; max-width: 420px; }
.fv3-prod-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--fv3-muted);
  pointer-events: none;
}
.fv3-prod-search .fv3-input { padding-left: 36px; }
.fv3-prod-toolbar select.fv3-input { width: auto; }

/* ------------------------------------------------- list: attention (amber) */

.fv3-prod-attn {
  background: #FBF1DC;
  border: 1px solid rgba(184, 134, 11, .3);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.fv3-prod-attn-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #8A6116;
  margin-bottom: 12px;
}
.fv3-prod-attn-lead svg { flex-shrink: 0; }
.fv3-prod-attn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.fv3-prod-attn-item {
  flex: 0 0 auto;
  width: 96px;
  padding: 8px;
  text-align: center;
  background: var(--fv3-white);
  border: 1px solid rgba(184, 134, 11, .3);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fv3-ink);
}
.fv3-prod-attn-item:hover { border-color: var(--fv3-steel); }
.fv3-prod-attn-item img,
.fv3-prod-attn-item .fv3-prod-nophoto {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}
.fv3-prod-attn-item span:last-child {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.fv3-prod-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fv3-canvas);
  border: 1px dashed #C9D6E3;
  color: var(--fv3-muted);
  font-family: var(--fv3-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

/* -------------------------------------------------------- list: filter tabs */

.fv3-prod-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-prod-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--fv3-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.fv3-prod-tab:hover { color: var(--fv3-navy); }
.fv3-prod-tab.is-active {
  color: var(--fv3-navy);
  border-bottom-color: var(--fv3-navy);
}
.fv3-prod-tab-n {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fv3-muted);
  margin-left: 3px;
}
.fv3-prod-tab-n.is-warn { color: #8A6116; }

/* -------------------------------------------------------- list: product row */

.fv3-prod-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
}
.fv3-prod-rows { display: flex; flex-direction: column; gap: 14px; }

.fv3-prod-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}
.fv3-prod-score-ring { position: relative; width: 44px; height: 44px; }
.fv3-prod-score-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.fv3-prod-score-ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fv3-mono);
  font-size: 12px;
  font-weight: 700;
}
.fv3-prod-score-cap {
  margin-top: 3px;
  font-family: var(--fv3-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

.fv3-prod-thumb { position: relative; flex-shrink: 0; width: 80px; height: 80px; }
.fv3-prod-thumb img,
.fv3-prod-thumb .fv3-prod-nophoto {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.fv3-prod-count {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--fv3-navy);
  color: var(--fv3-white);
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 700;
}

.fv3-prod-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.fv3-prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fv3-steel);
  text-decoration: none;
  min-width: 0;
}
.fv3-prod-name:hover { color: var(--fv3-navy); text-decoration: underline; }
.fv3-prod-price {
  flex-shrink: 0;
  font-family: var(--fv3-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fv3-ink);
}

.fv3-prod-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid rgba(43, 90, 156, .25);
  border-radius: 999px;
  background: #E8F0FA;
  color: var(--fv3-steel);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.fv3-prod-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

.fv3-prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 11.5px;
  color: var(--fv3-muted);
  margin-bottom: 6px;
}
.fv3-prod-meta b { color: var(--fv3-ink); font-weight: 600; }

/* small quiet action buttons on each row (Preview / Share / Edit / Delete) */
.fv3-prod-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--fv3-line);
  border-radius: 8px;
  background: var(--fv3-white);
  font-family: var(--fv3-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.fv3-prod-act:hover { border-color: var(--fv3-steel); color: var(--fv3-navy); }
.fv3-prod-act.is-danger { color: var(--fv3-danger); }
.fv3-prod-act.is-danger:hover { border-color: rgba(192, 57, 43, .4); background: #FBEDEB; color: var(--fv3-danger); }
.fv3-prod-act-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.fv3-prod-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13.5px;
}
.fv3-prod-pager nav { display: flex; align-items: center; gap: 8px; }

@media (max-width: 720px) {
  .fv3-prod-row { flex-wrap: wrap; }
  .fv3-prod-act-rail { flex-direction: row; flex-wrap: wrap; width: 100%; }
}

/* ============================================================ product form
   Everything below is scoped under .fv3-prod-form (set on the same element
   as the legacy .product-form-wrap hook that the list page's modal fetches). */

.fv3-prod-form { font-family: var(--fv3-sans); color: var(--fv3-ink); }
.fv3-prod-form .hidden { display: none !important; }

.fv3-prod-form .product-form-head { margin-bottom: 18px; }
.fv3-prod-form .page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fv3-navy);
}
.fv3-prod-form .page-sub { font-size: 13.5px; color: var(--fv3-muted); }

.fv3-prod-form .product-form-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .fv3-prod-form .product-form-columns { grid-template-columns: minmax(0, 1fr); }
}
.fv3-prod-form .product-form-sidebar { position: sticky; top: 84px; }
@media (max-width: 900px) {
  .fv3-prod-form .product-form-sidebar { position: static; order: -1; }
}

/* labeled field groups: Identity / Specification / Commercial / Media */
.fv3-prod-group {
  display: block;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  padding: 20px;
  margin: 0 0 16px;
}
.fv3-prod-group-label {
  display: block;
  margin: 0 0 14px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

/* step tabs */
.fv3-prod-form .pf-tabs {
  display: flex;
  gap: 2px;
  margin: 14px 0 18px;
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-prod-form .pf-tab-btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 14px;
  font-family: var(--fv3-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fv3-muted);
  cursor: pointer;
  white-space: nowrap;
}
.fv3-prod-form .pf-tab-btn:hover { color: var(--fv3-navy); }
.fv3-prod-form .pf-tab-btn.active {
  color: var(--fv3-navy);
  border-bottom-color: var(--fv3-navy);
}
.fv3-prod-form .pf-tab-panel { display: none; }
.fv3-prod-form .pf-tab-panel.active { display: block; }

/* fields — the Django widgets render bare inputs/selects, styled here */
.fv3-prod-form .form-field { margin-bottom: 16px; }
.fv3-prod-form .form-field:last-child { margin-bottom: 0; }
.fv3-prod-form .form-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-ink);
}
.fv3-prod-form input[type="text"],
.fv3-prod-form input[type="number"],
.fv3-prod-form input[type="email"],
.fv3-prod-form input[type="url"],
.fv3-prod-form select,
.fv3-prod-form textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 14px;
  color: var(--fv3-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-prod-form input::placeholder,
.fv3-prod-form textarea::placeholder { color: #93A2B4; }
.fv3-prod-form input[type="text"]:focus,
.fv3-prod-form input[type="number"]:focus,
.fv3-prod-form input[type="email"]:focus,
.fv3-prod-form input[type="url"]:focus,
.fv3-prod-form select:focus,
.fv3-prod-form textarea:focus {
  outline: none;
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .28);
}
.fv3-prod-form textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}
.fv3-prod-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A3A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.fv3-prod-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fv3-navy);
}
.fv3-prod-form .specs {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fv3-muted);
}
.fv3-prod-form .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 640px) {
  .fv3-prod-form .form-grid-2 { grid-template-columns: 1fr; }
}
.fv3-prod-form .errorlist {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fv3-danger);
}

/* inner sections that keep their legacy hooks (review panel, extra attrs) */
.fv3-prod-form .form-section {
  background: var(--fv3-canvas);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  padding: 16px;
}
.fv3-prod-form .form-section-title {
  margin: 0 0 12px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-prod-form .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--fv3-line);
}

/* small tertiary buttons; .btn-secondary is in the list because the category
   picker's JS creates buttons with className 'btn-secondary cat-add-btn' */
.fv3-prod-btn-sm,
.fv3-prod-form .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 8px;
  font-family: var(--fv3-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.fv3-prod-btn-sm:hover,
.fv3-prod-form .btn-secondary:hover {
  border-color: var(--fv3-steel);
  color: var(--fv3-navy);
}
.fv3-prod-btn-sm.is-solid {
  background: var(--fv3-ink);
  border-color: var(--fv3-ink);
  color: var(--fv3-white);
}
.fv3-prod-btn-sm.is-solid:hover { background: var(--fv3-navy); border-color: var(--fv3-navy); color: var(--fv3-white); }
.fv3-prod-btn-tall { height: 44px; border-radius: 10px; }

/* photo dropzone (matches the marketplace RFQ dropzone: hairline dashed,
   canvas ground, mono hint) */
.fv3-prod-form .pf-photo-layout { display: flex; gap: 12px; align-items: stretch; }
.fv3-prod-form .pf-photo-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.fv3-prod-form .pf-photo-box {
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px dashed #C9D6E3;
  border-radius: 10px;
  background: var(--fv3-canvas);
  color: var(--fv3-muted);
  font-size: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, color .15s ease;
}
.fv3-prod-form .pf-photo-box:hover { border-color: var(--fv3-steel); color: var(--fv3-steel); }
.fv3-prod-form .pf-photo-box.is-main { border-style: solid; border-color: var(--fv3-line); }
.fv3-prod-form .pf-photo-box svg { width: 18px; height: 18px; }
.fv3-prod-form .pf-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.fv3-prod-form .pf-photo-main {
  flex: 1 1 auto;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #C9D6E3;
  border-radius: 14px;
  background: var(--fv3-canvas);
  color: var(--fv3-muted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, color .15s ease;
}
.fv3-prod-form .pf-photo-main:hover { border-color: var(--fv3-steel); color: var(--fv3-steel); }
.fv3-prod-form .pf-photo-main svg { width: 34px; height: 34px; }
.fv3-prod-form .pf-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.fv3-prod-form #pf-photo-main-text { font-size: 14px; font-weight: 700; color: var(--fv3-ink); }
.fv3-prod-form .pf-photo-hint {
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

/* category picker + chips (chip markup is JS-generated: .cat-chip) */
.fv3-prod-form .selected-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fv3-prod-form .cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(43, 90, 156, .25);
  border-radius: 999px;
  background: #E8F0FA;
  color: var(--fv3-steel);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.fv3-prod-form .cat-chip i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--fv3-muted); }
.fv3-prod-form .cat-chip b { font-weight: 700; cursor: pointer; color: var(--fv3-muted); }
.fv3-prod-form .cat-chip b:hover { color: var(--fv3-danger); }
.fv3-prod-form .cat-chip-auto { border-style: dashed; }
.fv3-prod-form .cat-level-select { margin-top: 8px; }
.fv3-prod-form .cat-request-box {
  border-top: 1px solid var(--fv3-line);
  padding-top: 12px;
}

/* v13 detection panels + confidence badges — class names are JS-generated;
   colors follow the v3 verified / warn / danger pairs (moved here from an
   embedded <style> block that hardcoded off-palette hexes) */
.fv3-prod-form .v13-ds-wrap {
  background: var(--fv3-canvas);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.fv3-prod-form .v13-ds-head {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
  margin-bottom: 8px;
}
.fv3-prod-form .v13-ds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.fv3-prod-form .v13-ds-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.fv3-prod-form .v13-ds-label { color: var(--fv3-muted); min-width: 80px; }
.fv3-prod-form .v13-ds-value { font-weight: 600; }
.fv3-prod-form .v13-ds-badge { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.fv3-prod-form .v13-conf-high .v13-ds-badge,
.fv3-prod-form .v13-field-badge.v13-conf-high { background: #E7F6EE; color: #157A45; }
.fv3-prod-form .v13-conf-mid .v13-ds-badge,
.fv3-prod-form .v13-field-badge.v13-conf-mid { background: #FBF1DC; color: #8A6116; }
.fv3-prod-form .v13-conf-low .v13-ds-badge,
.fv3-prod-form .v13-field-badge.v13-conf-low { background: #FBEDEB; color: var(--fv3-danger); }
.fv3-prod-form .v13-field-badge { font-size: 11px; padding: 1px 7px; border-radius: 9px; margin-left: 6px; white-space: nowrap; }
.fv3-prod-form .v13-field-badge.v13-confirmed { background: #E8F0FA; color: var(--fv3-steel); }
.fv3-prod-form .v13-field-badge.v13-existing { background: #EEF2F6; color: #44566C; }
.fv3-prod-form .v13-ch-breadcrumb { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.fv3-prod-form .v13-ch-level { padding: 1px 4px; border-radius: 5px; }
.fv3-prod-form .v13-ch-level.v13-conf-high { color: #157A45; }
.fv3-prod-form .v13-ch-level.v13-conf-mid { color: #8A6116; }
.fv3-prod-form .v13-ch-level.v13-conf-low { color: var(--fv3-danger); }
.fv3-prod-form .v13-ch-sep { color: #93A2B4; font-weight: 400; }
.fv3-prod-form .v13-pt {
  background: var(--fv3-canvas);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.fv3-prod-form .v13-pt-label {
  margin: 0 0 4px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-prod-form .v13-pt-reason { margin: 2px 0 0; font-size: 12px; color: var(--fv3-muted); }

/* gallery (edit mode) */
.fv3-prod-form .gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.fv3-prod-form .gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--fv3-line);
  display: block;
}
.fv3-prod-form .gallery-del-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fv3-line);
  border-radius: 999px;
  background: var(--fv3-white);
  color: var(--fv3-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.fv3-prod-form .gallery-del-btn:hover { color: var(--fv3-danger); border-color: rgba(192, 57, 43, .4); }

/* score widget (sidebar; ring/label classes are toggled by JS) */
.fv3-prod-form .score-widget {
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  padding: 20px;
  text-align: center;
}
.fv3-prod-form .score-widget-ring { position: relative; width: 96px; height: 96px; margin: 0 auto 10px; }
.fv3-prod-form .score-widget-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.fv3-prod-form .score-ring-bg { fill: none; stroke: var(--fv3-line); stroke-width: 3; }
.fv3-prod-form .score-ring-fg {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray .4s ease, stroke .2s ease;
}
.fv3-prod-form .score-ring-low { stroke: var(--fv3-danger); }
.fv3-prod-form .score-ring-medium { stroke: var(--fv3-gold-deep); }
.fv3-prod-form .score-ring-good,
.fv3-prod-form .score-ring-high { stroke: var(--fv3-green); }
.fv3-prod-form .score-widget-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.fv3-prod-form .score-widget-num b { font-family: var(--fv3-mono); font-size: 24px; font-weight: 700; color: var(--fv3-ink); }
.fv3-prod-form .score-widget-num span { font-family: var(--fv3-mono); font-size: 10px; color: var(--fv3-muted); }
.fv3-prod-form .score-widget-label { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.fv3-prod-form .score-widget-label.low { color: var(--fv3-danger); }
.fv3-prod-form .score-widget-label.medium { color: #8A6116; }
.fv3-prod-form .score-widget-label.good,
.fv3-prod-form .score-widget-label.high { color: #157A45; }
.fv3-prod-form .score-widget-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--fv3-line);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fv3-muted);
}
.fv3-prod-form .score-widget-list li { display: flex; justify-content: space-between; gap: 8px; }
.fv3-prod-form .score-widget-list li.ok { color: #157A45; }
.fv3-prod-form .score-widget-list .pts {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ============================================================= bulk upload */

.fv3-prod-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed #C9D6E3;
  border-radius: 14px;
  background: var(--fv3-canvas);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease;
}
.fv3-prod-drop:hover { border-color: var(--fv3-steel); }
.fv3-prod-drop:focus-within { border-color: var(--fv3-gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, .28); }
.fv3-prod-drop svg { width: 28px; height: 28px; color: var(--fv3-muted); }
.fv3-prod-drop-title { font-size: 14px; font-weight: 700; color: var(--fv3-ink); }
.fv3-prod-drop-hint {
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-prod-file {
  max-width: 100%;
  margin-top: 4px;
  font-family: var(--fv3-sans);
  font-size: 12.5px;
  color: var(--fv3-muted);
}
.fv3-prod-file::file-selector-button {
  margin-right: 10px;
  padding: 7px 14px;
  border: 1px solid var(--fv3-line);
  border-radius: 8px;
  background: var(--fv3-white);
  font-family: var(--fv3-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  cursor: pointer;
}
.fv3-prod-file::file-selector-button:hover { border-color: var(--fv3-steel); color: var(--fv3-navy); }

/* CSV column reference: literal machine codes get the mono treatment */
.fv3-prod-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: #EEF2F6;
  font-family: var(--fv3-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fv3-ink);
}
.fv3-prod-cols {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 384px;
  overflow-y: auto;
  padding-right: 4px;
}
.fv3-prod-cols dt { margin: 0 0 4px; }
.fv3-prod-cols dd { margin: 0; font-size: 12px; line-height: 1.55; color: var(--fv3-muted); }
/* ====================== END FRAGMENT: fv3-prod.css ====================== */

/* ===================== BEGIN FRAGMENT: fv3-site.css ===================== */
/* ============================================================================
   fv3-site — "My Website" management suite fragment
   (seller media, ads, website dashboard/settings/featured, minisite categories)
   Appended to fastenersfind-v3.css by the merge agent. Token-consistent:
   navy structure, steel links/data, gold = the one primary action per view,
   mono uppercase 11px micro-labels, hairline #E7EDF4, 14px cards / 10px controls.
   ========================================================================== */

/* ------------------------------------------------------------- page lede */

.fv3-site-lede { max-width: 660px; margin: 0 0 24px; }
.fv3-site-lede a,
.fv3-site-link {
  color: var(--fv3-steel);
  font-weight: 600;
  text-decoration: none;
}
.fv3-site-lede a:hover,
.fv3-site-link:hover { color: var(--fv3-navy); text-decoration: underline; }
.fv3-site-link { font-size: 12.5px; }

/* ---------------------------------------------- generic widget-form column
   Django renders the widgets, so inputs are styled by descendant selectors
   that mirror .fv3-input exactly. */

.fv3-site-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="hidden"]),
.fv3-site-form select,
.fv3-site-form textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 14px;
  color: var(--fv3-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-site-form textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}
.fv3-site-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A3A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.fv3-site-form input:focus,
.fv3-site-form select:focus,
.fv3-site-form textarea:focus {
  outline: none;
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .28);
}
.fv3-site-form ::placeholder { color: #93A2B4; }

/* file input gets the drop-zone treatment (no fake drag-drop promises) */
.fv3-site-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 16px 14px;
  background: var(--fv3-canvas);
  border: 1px dashed #C9D6E3;
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 13px;
  color: var(--fv3-muted);
  cursor: pointer;
  transition: border-color .15s ease;
}
.fv3-site-form input[type="file"]:hover { border-color: var(--fv3-steel); }
.fv3-site-form input[type="file"]:focus {
  outline: none;
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .28);
}
.fv3-site-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 2px solid var(--fv3-navy);
  border-radius: 8px;
  background: var(--fv3-white);
  color: var(--fv3-navy);
  font-family: var(--fv3-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fv3-site-form input[type="file"]::file-selector-button:hover {
  background: rgba(26, 58, 107, .07);
}

.fv3-site-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fv3-navy);
  cursor: pointer;
  flex: 0 0 auto;
}
.fv3-site-checkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fv3-ink);
  cursor: pointer;
}

/* ---------------------------------------------------------- media grid */

.fv3-site-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.fv3-site-media-card { overflow: hidden; }
.fv3-site-media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--fv3-canvas);
}
.fv3-site-video-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--fv3-navy), var(--fv3-ink));
  color: var(--fv3-white);
}
.fv3-site-video-tile svg { width: 32px; height: 32px; opacity: .92; }
.fv3-site-video-tile span {
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.fv3-site-media-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--fv3-line);
}
.fv3-site-media-caption {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--fv3-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fv3-site-span-all { grid-column: 1 / -1; }

/* link-shaped buttons for inline POST forms (remove / hide / delete):
   quiet by default, danger only announces itself on hover */
.fv3-site-linkbtn {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font-family: var(--fv3-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-muted);
  cursor: pointer;
}
.fv3-site-linkbtn:hover { color: var(--fv3-navy); text-decoration: underline; }
.fv3-site-linkbtn-danger:hover { color: var(--fv3-danger); }

/* ------------------------------------------------------------- ads list */

.fv3-site-ad-list { display: flex; flex-direction: column; gap: 14px; }
.fv3-site-ad { padding: 18px 20px; }
.fv3-site-ad-live { border-color: rgba(30, 158, 90, .32); }
.fv3-site-ad-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.fv3-site-ad-title { font-size: 14.5px; font-weight: 700; color: var(--fv3-ink); }
.fv3-site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 14px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-site-meta b { font-weight: 700; color: var(--fv3-steel); }
.fv3-site-ad-img {
  display: block;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
}

/* ----------------------------------------------------- dashboard stats */

.fv3-site-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.fv3-site-stat { padding: 18px 20px; }
.fv3-site-stat-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--fv3-navy);
  font-variant-numeric: tabular-nums;
}
.fv3-site-stat-label {
  margin-top: 6px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

/* ------------------------------------------------ completeness checklist
   navy tick = completeness (not verification — green stays reserved) */

.fv3-site-checklist { list-style: none; margin: 0; padding: 0; }
.fv3-site-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--fv3-line);
  font-size: 14px;
}
.fv3-site-checklist li:last-child { border-bottom: 0; }
.fv3-site-tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fv3-navy);
  color: var(--fv3-white);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}
.fv3-site-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px dashed #C9D6E3;
  flex: 0 0 auto;
}
.fv3-site-todo { color: var(--fv3-muted); }

/* ------------------------------------------------------- product picker
   Shared by /my-website/featured/ and /my-minisite-categories/<id>/products/.
   Gold border on a selected tile is a deliberate ACTION state (picking is
   the page's primary act), not decoration. */

.fv3-site-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 0 16px;
}
.fv3-site-searchbar .fv3-input { flex: 1 1 auto; min-width: 0; }

.fv3-site-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px;
  max-height: 560px;
  overflow-y: auto;
}
.fv3-site-pick {
  position: relative;
  display: block;
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  background: var(--fv3-white);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-site-pick:hover { border-color: #B9C9DC; box-shadow: var(--fv3-shadow); }
.fv3-site-pick:has(input[type="checkbox"]:checked) {
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 1px var(--fv3-gold), 0 1px 2px rgba(16, 42, 67, .08);
}
.fv3-site-pick-checkwrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 8px;
  box-shadow: var(--fv3-shadow);
}
.fv3-site-pick-checkwrap input {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--fv3-gold);
  cursor: pointer;
}
.fv3-site-pick-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--fv3-canvas);
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-site-pick-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--fv3-canvas);
  border-bottom: 1px solid var(--fv3-line);
  color: #93A2B4;
  font-family: var(--fv3-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fv3-site-pick-body { padding: 10px 12px 12px; }
.fv3-site-pick-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fv3-ink);
}
.fv3-site-pick-meta {
  display: block;
  margin-top: 3px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  color: var(--fv3-muted);
}
.fv3-site-picker-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--fv3-line);
  background: var(--fv3-white);
  border-radius: 0 0 14px 14px;
}
.fv3-site-count {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-site-count strong { font-size: 14px; font-weight: 700; color: var(--fv3-navy); }
.fv3-site-count-over strong { color: #8A6116; }
.fv3-site-count-note {
  display: block;
  margin-top: 2px;
  font-family: var(--fv3-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fv3-muted);
}

/* ----------------------------------------------- minisite category table */

.fv3-site-tablewrap { overflow-x: auto; border-radius: 14px; }
.fv3-site-rowactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.fv3-site-rowactions form { display: inline; margin: 0; }
.fv3-site-celltitle { font-weight: 600; color: var(--fv3-ink); }
.fv3-site-celldesc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--fv3-muted);
}
/* ====================== END FRAGMENT: fv3-site.css ====================== */

/* ===================== BEGIN FRAGMENT: fv3-tool.css ===================== */
/* ============================================================================
   fv3-tool-* — Engineering Tools suite (/tools/*)
   ----------------------------------------------------------------------------
   Two layers:
   1. fv3-tool-* components used by the redesigned templates
      (tools hub, tools/_base.html shell, DIN directory + detail).
   2. A transition contract SCOPED under .fv3-tool-content that retints the
      legacy class names (.tools-table, .specs, .calc-*, .din-dim-label …)
      still used inside the 13 not-yet-rewritten tools/*.html content blocks.
      Scoping keeps the namespace clean and outranks the flat legacy
      selectors in main.css without touching that sheet.
   ========================================================================== */

/* ------------------------------------------------------------ page + layout */

.fv3-tool-head { margin-bottom: 26px; max-width: 720px; }

.fv3-tool-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.fv3-tool-sidebar {
  width: 250px;
  flex: 0 0 auto;
  position: sticky;
  top: 80px; /* fv3 header is 64px sticky */
  padding: 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
}

.fv3-tool-group { margin-bottom: 14px; }
.fv3-tool-group:last-child { margin-bottom: 0; }
.fv3-tool-group-label {
  display: block;
  padding: 4px 10px;
  margin-bottom: 2px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

.fv3-tool-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  color: #44566C;
  cursor: pointer;
}
.fv3-tool-tab:hover { background: var(--fv3-canvas); color: var(--fv3-navy); }
.fv3-tool-tab.active { background: #E8F0FA; color: var(--fv3-steel); }
.fv3-tool-tab-dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #C9D6E3;
}
.fv3-tool-tab.active .fv3-tool-tab-dot { background: var(--fv3-steel); }

.fv3-tool-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 28px 32px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  /* Retint the legacy DIN-diagram SVG palette (stroke="var(--blue)" etc. in
     din_detail.html) without touching the SVG markup: part outlines go navy,
     dimension/annotation lines go steel (steel = data emphasis). */
  --blue: var(--fv3-navy);
  --orange: var(--fv3-steel);
  --orange-light: #E8F0FA;
}

/* --------------------------------------------------------------- hub grid */

.fv3-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.fv3-tool-card {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
}
.fv3-tool-card-name {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fv3-navy);
}
.fv3-tool-card-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fv3-muted);
}
.fv3-tool-card:hover .fv3-tool-card-name { color: var(--fv3-steel); }

/* --------------------------------------------------------- DIN directory */

.fv3-tool-din-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.fv3-tool-din-card {
  display: block;
  padding: 14px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fv3-tool-din-card:hover { border-color: var(--fv3-steel); box-shadow: var(--fv3-shadow-lift); }
.fv3-tool-din-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.fv3-tool-code {
  font-family: var(--fv3-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fv3-steel);
}
.fv3-tool-din-name { margin: 0 0 2px; font-size: 12.5px; color: var(--fv3-ink); }

/* -------------------------------------------------- breadcrumb + next step */

.fv3-tool-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--fv3-muted);
}
.fv3-tool-crumbs a { color: var(--fv3-steel); text-decoration: none; }
.fv3-tool-crumbs a:hover { color: var(--fv3-navy); text-decoration: underline; }
.fv3-tool-crumb-sep { color: #C9D6E3; }

.fv3-tool-next {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--fv3-line);
  text-align: center;
}
.fv3-tool-next p { margin: 0 0 14px; font-size: 14px; color: var(--fv3-muted); }

/* ============================================================================
   Transition contract — legacy class names used inside {% block tools_content %}
   of the 13 not-yet-rewritten tools/*.html templates, retinted to fv3 tokens.
   All selectors are scoped under .fv3-tool-content on purpose.
   ========================================================================== */

.fv3-tool-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--fv3-navy);
}
.fv3-tool-content h3.tools-subhead {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fv3-navy);
}
.fv3-tool-content .specs { font-size: 13.5px; color: var(--fv3-muted); }
.fv3-tool-content .specs a,
.fv3-tool-content p a { color: var(--fv3-steel); text-decoration: none; }
.fv3-tool-content .specs a:hover,
.fv3-tool-content p a:hover { color: var(--fv3-navy); text-decoration: underline; }

.fv3-tool-content .tools-methodology {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #EDF3FA;
  border: 1px solid rgba(43, 90, 156, .25);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #24507F;
}
.fv3-tool-content .tools-note {
  padding: 10px 14px;
  background: var(--fv3-canvas);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fv3-muted);
}

/* tables — legacy .tools-table unified to the fv3-table look */
.fv3-tool-content .tools-table-wrap,
.fv3-tool-content .fv3-tool-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
}
.fv3-tool-content .tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: var(--fv3-ink);
}
.fv3-tool-content .tools-table th {
  padding: 10px 12px;
  text-align: left;
  background: var(--fv3-canvas);
  border-bottom: 1px solid var(--fv3-line);
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fv3-muted);
}
.fv3-tool-content .tools-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fv3-line);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.fv3-tool-content .tools-table tr:last-child td { border-bottom: 0; }
.fv3-tool-content .tools-size {
  font-family: var(--fv3-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fv3-steel);
}
/* fv3-table used inside the rewritten DIN pages picks up the same header
   ground so both table generations render identically. */
.fv3-tool-tablewrap .fv3-table th { background: var(--fv3-canvas); white-space: nowrap; }
.fv3-tool-tablewrap .fv3-table td { padding: 10px 12px; }

/* calculator form (weight_calculator.html — markup untouched) */
.fv3-tool-content .calc-form {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--fv3-canvas);
  border: 1px solid var(--fv3-line);
  border-radius: 10px;
}
.fv3-tool-content .calc-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.fv3-tool-content .calc-row:last-child { margin-bottom: 0; }
.fv3-tool-content .calc-row label {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-ink);
}
.fv3-tool-content .calc-row select,
.fv3-tool-content .calc-row input {
  padding: 9px 12px;
  background: var(--fv3-white);
  border: 1px solid #C9D6E3;
  border-radius: 10px;
  font-family: var(--fv3-sans);
  font-size: 13px;
  color: var(--fv3-ink);
}
.fv3-tool-content .calc-row select:focus-visible,
.fv3-tool-content .calc-row input:focus-visible,
.fv3-tool-content .calc-qty-inline:focus-visible {
  outline: none;
  border-color: var(--fv3-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .28);
}
.fv3-tool-content .calc-accessories { margin-bottom: 16px; }
.fv3-tool-content .finder-strip-label {
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}
.fv3-tool-content .calc-accessory-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.fv3-tool-content .calc-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fv3-ink);
}
.fv3-tool-content .calc-checkbox input[type="checkbox"] { accent-color: var(--fv3-steel); }
.fv3-tool-content .calc-qty-inline {
  width: 52px;
  margin-left: 4px;
  padding: 4px 6px;
  border: 1px solid #C9D6E3;
  border-radius: 8px;
  font-size: 13px;
  color: var(--fv3-ink);
}
/* computed result = data, not success — steel emphasis, not green */
.fv3-tool-content .calc-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 14px 18px;
  background: #E8F0FA;
  border: 1px solid rgba(43, 90, 156, .25);
  border-radius: 10px;
}
.fv3-tool-content .calc-stat { display: flex; flex-direction: column; gap: 2px; }
.fv3-tool-content .calc-stat-label { font-size: 11px; color: var(--fv3-muted); }
.fv3-tool-content .calc-stat-value {
  font-family: var(--fv3-mono);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fv3-steel);
}
.fv3-tool-content .calc-breakdown { display: flex; flex-direction: column; gap: 2px; }
.fv3-tool-content .list-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 2px;
  border-bottom: 1px solid var(--fv3-line);
  font-size: 13px;
}
.fv3-tool-content .list-row:last-child { border-bottom: 0; }

/* DIN detail diagram annotations (SVG <text class="din-dim-label">) */
.fv3-tool-content .din-dim-label {
  font-family: var(--fv3-mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  fill: var(--fv3-muted);
  color: var(--fv3-muted);
}
.fv3-tool-content .din-diagram-wrap { text-align: center; margin: 16px 0; }
.fv3-tool-content .din-diagram { display: inline-block; }
.fv3-tool-content .din-diagram-img { max-width: 240px; margin: 0 auto; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  /* header wraps taller here — un-stick the sidebar rather than mis-offset it */
  .fv3-tool-sidebar { position: static; }
}
@media (max-width: 960px) {
  .fv3-tool-grid, .fv3-tool-din-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .fv3-tool-layout { flex-direction: column; }
  .fv3-tool-sidebar { width: 100%; }
}
@media (max-width: 640px) {
  .fv3-tool-content { padding: 20px 16px; }
  .fv3-tool-grid, .fv3-tool-din-grid { grid-template-columns: 1fr; }
}
/* ====================== END FRAGMENT: fv3-tool.css ====================== */

/* ===================== BEGIN FRAGMENT: fv3-ws.css ===================== */
/* ============================================================================
   fv3-ws-* — Seller workspace: shell (seller_base) + seller dashboards.
   Fragment appended to fastenersfind-v3.css by the merge agent.
   Uses only fv3 tokens. The amber "attention" tints reuse the exact
   .fv3-badge-warn pair (#FBF1DC / #8A6116 / rgba(184,134,11,.3)) so the
   whole family shares ONE attention palette; green text #157A45 matches
   .fv3-badge-verified and is used for verification/success states only.
   ========================================================================== */

/* ------------------------------------------------------------ layout shell */
.fv3-ws-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 56px;
}
.fv3-ws-sidebar {
  flex: 0 0 236px;
  width: 236px;
  position: sticky;
  top: 84px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  padding: 10px;
}
.fv3-ws-main { flex: 1 1 auto; min-width: 0; }

/* --------------------------------------------------- sidebar identity block */
.fv3-ws-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--fv3-line);
  margin-bottom: 8px;
}
.fv3-ws-ident-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.fv3-ws-ident-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--fv3-navy);
  color: var(--fv3-white);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}
.fv3-ws-ident-meta { min-width: 0; }
.fv3-ws-ident-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--fv3-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv3-ws-ident-status { margin: 1px 0 0; font-size: 11px; color: var(--fv3-muted); }
.fv3-ws-ident-status.is-verified { color: #157A45; font-weight: 600; }

/* ------------------------------------------------- mono uppercase group label */
.fv3-ws-group {
  padding: 8px 12px 4px;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

/* ----------------------------------------------------------- sidebar nav */
.fv3-ws-nav { display: flex; flex-direction: column; gap: 2px; }
.fv3-ws-navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #44566C;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}
.fv3-ws-navlink svg { width: 17px; height: 17px; flex: 0 0 auto; }
.fv3-ws-navlink:hover { background: var(--fv3-canvas); color: var(--fv3-navy); }
.fv3-ws-navlink.is-active { background: var(--fv3-navy); color: var(--fv3-white); }
.fv3-ws-navlink.is-active:hover { background: var(--fv3-ink); color: var(--fv3-white); }
.fv3-ws-navlink.is-disabled { color: #A3B1C2; cursor: not-allowed; }
.fv3-ws-navlink.is-disabled:hover { background: transparent; color: #A3B1C2; }
.fv3-ws-grow { flex: 1 1 auto; }

/* attention count pill (new enquiries / low-score products) — status, NOT action */
.fv3-ws-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FBF1DC;
  border: 1px solid rgba(184, 134, 11, .3);
  color: #8A6116;
  font-family: var(--fv3-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------- credits block */
.fv3-ws-credits {
  margin-top: 8px;
  padding: 12px 12px 8px;
  border-top: 1px solid var(--fv3-line);
}
.fv3-ws-credits .fv3-ws-group { padding: 0; margin-bottom: 4px; }
.fv3-ws-credits-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fv3-ws-credits-num {
  font-family: var(--fv3-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  color: var(--fv3-steel);
}
.fv3-ws-help { margin: 6px 0 0; font-size: 11px; line-height: 1.45; color: var(--fv3-muted); }

/* quiet steel text link (secondary in-card actions) */
.fv3-ws-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
  white-space: nowrap;
}
.fv3-ws-link:hover { text-decoration: underline; color: var(--fv3-navy); }

/* ------------------------------------------------------------- page head */
.fv3-ws-pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.fv3-ws-pagehead-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fv3-ws-facelogo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--fv3-line);
  flex: 0 0 auto;
}
.fv3-ws-facelogo-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--fv3-navy);
  color: var(--fv3-white);
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
}
.fv3-ws-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* -------------------------------------------------------- attention panel */
.fv3-ws-attn { margin-bottom: 24px; }
.fv3-ws-attn-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-ws-attn-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fv3-gold-deep);
  flex: 0 0 auto;
}
.fv3-ws-attn-list { list-style: none; margin: 0; padding: 0; }
.fv3-ws-attn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  font-size: 13.5px;
  color: var(--fv3-ink);
}
.fv3-ws-attn-item + .fv3-ws-attn-item { border-top: 1px solid var(--fv3-line); }

/* ---------------------------------------------------------- quick actions */
.fv3-ws-qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.fv3-ws-qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 8px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  font-size: 12px;
  font-weight: 600;
  color: var(--fv3-ink);
  text-align: center;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
.fv3-ws-qa:hover { box-shadow: var(--fv3-shadow-lift); transform: translateY(-1px); }
.fv3-ws-qa svg { width: 20px; height: 20px; color: var(--fv3-navy); }
/* the ONE gold primary action of the dashboard view */
.fv3-ws-qa-primary { background: var(--fv3-gold); border-color: transparent; font-weight: 700; }
.fv3-ws-qa-primary svg { color: var(--fv3-ink); }
.fv3-ws-qa-primary:hover { background: #e8991a; }

/* -------------------------------------------------------------- stat cards */
.fv3-ws-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.fv3-ws-stat {
  display: block;
  padding: 16px 18px;
  background: var(--fv3-white);
  border: 1px solid var(--fv3-line);
  border-radius: 14px;
  box-shadow: var(--fv3-shadow);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
a.fv3-ws-stat:hover { box-shadow: var(--fv3-shadow-lift); transform: translateY(-1px); }
.fv3-ws-stat-num {
  margin: 0;
  font-family: var(--fv3-mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fv3-navy);
}
.fv3-ws-stat-num.is-steel { color: var(--fv3-steel); }
.fv3-ws-stat-num.is-attn { color: var(--fv3-gold-deep); }
.fv3-ws-stat-num.is-ok { color: #157A45; }
.fv3-ws-stat-label {
  margin: 6px 0 0;
  font-family: var(--fv3-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fv3-muted);
}

/* ------------------------------------------------------------------ panels */
.fv3-ws-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.fv3-ws-panel { display: flex; flex-direction: column; }
.fv3-ws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--fv3-line);
}
.fv3-ws-panel-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--fv3-navy); }
.fv3-ws-panel-body { flex: 1 1 auto; padding: 4px 20px; }
.fv3-ws-row { padding: 12px 0; }
.fv3-ws-row + .fv3-ws-row { border-top: 1px solid var(--fv3-line); }
.fv3-ws-panel-foot {
  display: block;
  padding: 12px;
  border-top: 1px solid var(--fv3-line);
  border-radius: 0 0 14px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fv3-steel);
  text-decoration: none;
}
.fv3-ws-panel-foot:hover { background: var(--fv3-canvas); color: var(--fv3-navy); }
.fv3-ws-meta { font-size: 12px; color: var(--fv3-muted); }
/* mono uppercase chip modifier — composes with .fv3-badge / .fv3-badge-warn */
.fv3-ws-chip {
  font-family: var(--fv3-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* -------------------------------------------------- trust ring + checklist */
.fv3-ws-ring { position: relative; width: 80px; height: 80px; margin: 4px auto 14px; }
.fv3-ws-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); display: block; }
.fv3-ws-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fv3-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--fv3-ink);
}
.fv3-ws-check {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
}
.fv3-ws-check li { display: flex; align-items: center; gap: 7px; color: var(--fv3-muted); }
.fv3-ws-check li.is-done { color: #157A45; font-weight: 600; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .fv3-ws-layout { flex-direction: column; gap: 18px; padding-top: 20px; }
  .fv3-ws-sidebar { position: static; width: 100%; flex: 1 1 auto; }
  .fv3-ws-cols { grid-template-columns: 1fr; }
}
/* ====================== END FRAGMENT: fv3-ws.css ====================== */

/* ===================== MERGE-AGENT ADDITIONS ============================
   Classes used by redesigned templates but missing from every fragment.
   ========================================================================= */

/* message body inside a chat bubble (seller_enquiry_thread / messages panel;
   also created at runtime by both pages' polling JS) — preserve typed line
   breaks and never let a long token overflow the bubble */
.fv3-chat-bubble-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
