/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --navy:      #0B1929;
  --navy-mid:  #1A3351;
  --navy-soft: #2C4A6E;
  --blue:      #1866F6;
  --blue-dk:   #0F4FCC;
  --orange:    #E07B2A;
  --teal:      #0E8A6A;
  --ink:       #0D1B2A;
  --body:      #3A4A5C;
  --muted:     #6B7A8D;
  --border:    #DDE4ED;
  --border-lt: #EEF2F7;
  --surface:   #FFFFFF;
  --canvas:    #F5F7FA;
  --canvas-dk: #EEF2F7;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
               "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink);
  background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; min-height: 64px;
  padding: 0 max(24px, calc((100% - 1440px)/2));
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border-lt);
  backdrop-filter: blur(16px); }
.brand { display: inline-flex; gap: 11px; align-items: center;
  color: var(--navy); text-decoration: none; }
.brand-mark { display: flex; gap: 3px; align-items: flex-end; justify-content: center;
  width: 38px; height: 38px; padding: 9px 8px;
  background: linear-gradient(145deg, var(--navy) 0%, #1A4A6E 100%);
  border-radius: 8px; box-shadow: 0 4px 14px rgba(11,25,41,.22); }
.brand-mark i { width: 5px; background: white; border-radius: 1px; transform: skew(-14deg); }
.brand-mark i:nth-child(1){height:10px} .brand-mark i:nth-child(2){height:18px}
.brand-mark i:nth-child(3){height:13px; background:#5FCCE8}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.main-nav { display: flex; gap: 28px; align-self: stretch; justify-content: center; }
.main-nav a, .main-nav button { position: relative; display: grid; min-height: 100%;
  place-items: center; padding: 0 2px; color: var(--muted); background: none;
  border: 0; font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.main-nav a:hover, .main-nav button:hover, .main-nav .active { color: var(--navy); }
.main-nav .active::after { position: absolute; right: 0; bottom: -1px; left: 0;
  height: 2px; content: ""; background: var(--orange); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.access-badge { padding: 4px 10px; border: 1px solid; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.access-guest   { color: #7A4D0D; background: #FFF8ED; border-color: #F0D499; }
.access-member  { color: #174F8C; background: #EDF5FF; border-color: #A8C9EE; }
.access-licensed{ color: #076048; background: #EDFAF5; border-color: #9FE0C8; }
.header-cta, .dev-button { min-height: 34px; padding: 0 14px; border-radius: 6px;
  font-size: 12px; font-weight: 700; }
.header-cta { color: white; background: var(--navy); border: 1px solid var(--navy); }
.header-cta:hover { background: var(--blue); border-color: var(--blue); }
.dev-button { color: var(--blue-dk); background: #EDF3FF; border: 1px dashed #A8C4F0; }
.language-picker select { min-height: 34px; padding: 0 24px 0 9px; color: var(--body);
  background: white; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }

/* ── Hero ─────────────────────────────────────────────────────── */
main { min-height: calc(100vh - 120px); }
.hero { position: relative; display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(340px,.75fr); gap: 60px;
  align-items: center; min-height: 300px;
  padding: 52px max(24px, calc((100% - 1440px)/2)) 74px;
  overflow: hidden; color: white;
  background: linear-gradient(118deg, #071624 0%, #0A2540 55%, #0C3456 100%); }
.hero::before { position: absolute; top: -120px; right: 6%; width: 520px; height: 520px;
  content: ""; border: 1px solid rgba(99,185,220,.1); border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(50,150,200,.03), 0 0 0 190px rgba(50,150,200,.02); }
.hero::after { position: absolute; inset: 0; pointer-events: none; content: "";
  opacity: .18; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, black 40%); }
.hero-copy, .metric-panel { position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin: 0 0 14px;
  color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.eyebrow > span:first-child { width: 20px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(32px,3.8vw,50px);
  font-weight: 720; line-height: 1.14; letter-spacing: -.03em; }
.hero h1 em { color: #6CD2E8; font-style: normal; }
.hero-description { max-width: 700px; margin: 18px 0 0; color: #AABDCD;
  font-size: 15px; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px;
  color: #C8D6E2; font-size: 12px; }
.trust-row > span { display: flex; gap: 7px; align-items: center; }
.check-icon { display: grid; width: 16px; height: 16px; place-items: center;
  color: var(--orange); border: 1px solid rgba(224,123,42,.4); border-radius: 50%;
  font-size: 9px; font-style: normal; }
.metric-panel { overflow: hidden; background: rgba(255,255,255,.07);
  border: 1px solid rgba(180,215,230,.15); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.metric-primary { padding: 20px 22px 16px; border-bottom: 1px solid rgba(255,255,255,.09); }
.metric-primary span,.metric-primary small,.metric-primary strong { display: block; }
.metric-primary span { color: #7EA5BC; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.metric-primary strong { margin: 5px 0 0; font-size: 36px; letter-spacing: -.04em; }
.metric-primary small { margin-top: 1px; color: #AABCCA; font-size: 11px; }
.metric-secondary { display: grid; grid-template-columns: 1fr 1fr; }
.metric-secondary div { padding: 13px 20px; border-right: 1px solid rgba(255,255,255,.09); }
.metric-secondary div:last-child { border: 0; }
.metric-secondary strong,.metric-secondary span { display: block; }
.metric-secondary strong { font-size: 15px; font-weight: 700; }
.metric-secondary span { margin-top: 3px; color: #8FAABC; font-size: 11px; }
.metric-panel > p { display: flex; gap: 8px; align-items: center; margin: 0;
  padding: 8px 20px; color: #7E9EAF; background: rgba(2,15,28,.25); font-size: 11px; }
.pulse { width: 6px; height: 6px; background: #36D4A2; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(54,212,162,.15); }

/* ── Search workbench ─────────────────────────────────────────── */
.search-workbench { position: relative; z-index: 5;
  width: min(1440px, calc(100% - 48px)); margin: -28px auto 0;
  background: white; border: 1px solid var(--border-lt);
  border-radius: 10px; box-shadow: 0 12px 40px rgba(15,40,70,.11); }
.workbench-label { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; border-bottom: 1px solid var(--border-lt); }
.workbench-label > span { color: var(--navy-mid); font-size: 11px; font-weight: 800;
  letter-spacing: .08em; }
.workbench-label small { color: var(--muted); font-size: 11px; }
.search-panel { display: grid;
  grid-template-columns: minmax(300px,1fr) 190px 210px 170px;
  align-items: stretch; padding: 10px; }
.search-panel label { position: relative; display: flex; align-items: center;
  border-right: 1px solid var(--border-lt); }
.search-panel input, .search-panel select { width: 100%; min-height: 50px;
  color: var(--ink); background: white; border: 0; outline: 0; }
.search-panel select { padding: 16px 28px 0 12px; font-size: 13px; }
.keyword-field input { padding: 0 14px 0 42px; font-size: 14px; }
.keyword-field input::placeholder { color: #A0AEBA; }
.search-icon { position: absolute; left: 15px; width: 15px; height: 15px;
  border: 2px solid #8FA5BB; border-radius: 50%; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 5px; height: 2px;
  content: ""; background: #8FA5BB; transform: rotate(45deg); }
.field-caption { position: absolute; z-index: 1; top: 7px; left: 12px;
  color: #8A9AB0; font-size: 9px; font-weight: 800; letter-spacing: .1em;
  pointer-events: none; }
.search-button { display: flex; gap: 14px; align-items: center; justify-content: center;
  margin-left: 10px; color: white; background: var(--blue); border: 0;
  border-radius: 7px; font-size: 13px; font-weight: 800; }
.search-button:hover { background: var(--blue-dk); }
.search-button b { font-size: 17px; font-weight: 400; }

/* ── Access banner ────────────────────────────────────────────── */
.preview-strip { display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  gap: 12px; align-items: center;
  width: min(1440px, calc(100% - 48px)); margin: 16px auto 0;
  padding: 10px 14px; background: #EDF4FF;
  border: 1px solid #C8DCEF; border-radius: 8px; }
.shield-icon { display: grid; width: 27px; height: 27px; place-items: center;
  color: white; background: #2E5A90;
  clip-path: polygon(50% 0, 90% 15%, 85% 70%, 50% 100%, 15% 70%, 10% 15%);
  font-size: 9px; font-weight: 900; }
.preview-strip strong { color: #1E3F6A; font-size: 12px; font-weight: 700; }
.preview-strip p { margin: 2px 0 0; color: #5B7A96; font-size: 12px; line-height: 1.5; }
.preview-strip button { display: flex; gap: 10px; align-items: center; white-space: nowrap;
  color: #1452A8; background: transparent; border: 0; font-size: 12px; font-weight: 700; }
.preview-strip button b { font-size: 14px; }
.preview-member { background: #F1F6FD; border-color: #BFD4ED; }
.preview-member .shield-icon { background: #356B9F; }
.preview-licensed { background: #EDFAF5; border-color: #BAE4D1; }
.preview-licensed .shield-icon { background: var(--teal); }

/* ── Results ──────────────────────────────────────────────────── */
.results-section { width: min(1440px, calc(100% - 48px)); margin: 0 auto;
  padding: 22px 0 60px; }
.result-toolbar { display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px; }
.result-toolbar p { margin: 0; color: var(--navy); font-size: 17px; font-weight: 700; }
.result-toolbar > div:first-child > span { display: block; margin-top: 3px;
  color: var(--muted); font-size: 11px; }
.view-switcher { display: inline-flex; gap: 3px; align-items: center; padding: 3px;
  background: #E9EEF5; border: 1px solid #D9E1EB; border-radius: 8px; }
.view-button { display: inline-flex; gap: 7px; align-items: center; min-height: 31px;
  padding: 0 11px; color: var(--muted); background: transparent; border: 0;
  border-radius: 6px; font-size: 11px; font-weight: 700; }
.view-button:hover { color: var(--navy); }
.view-button.is-active { color: var(--navy); background: white;
  box-shadow: 0 1px 4px rgba(19,42,68,.12); }
.grid-icon { display: grid; grid-template-columns: repeat(2,4px); gap: 2px; }
.grid-icon i { width: 4px; height: 4px; background: var(--muted); }
.view-button.is-active .grid-icon i { background: var(--blue); }
.list-icon { display: grid; gap: 3px; }
.list-icon i { width: 12px; height: 3px; background: var(--muted); border-radius: 2px; }
.view-button.is-active .list-icon i { background: var(--blue); }
.result-cards { display: grid; gap: 14px; }
.result-cards.view-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.result-cards.view-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
.empty-state { grid-column: 1/-1; padding: 70px 20px; color: var(--muted);
  text-align: center; background: white; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; }

/* ── Supplier card ────────────────────────────────────────────── */
.supplier-card { position: relative; display: flex; flex-direction: column;
  min-width: 0; background: white; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 2px 10px rgba(15,35,60,.06);
  transition: border-color .16s, box-shadow .16s, transform .16s;
  overflow: hidden; }
.supplier-card:hover { border-color: #8EACCB;
  box-shadow: 0 10px 32px rgba(15,45,80,.12); transform: translateY(-2px); }
.supplier-card.is-licensed { cursor: pointer; }
.supplier-card.is-licensed:focus-visible { outline: 3px solid rgba(24,102,246,.28);
  outline-offset: 3px; border-color: var(--blue); }

/* Orange accent top bar */
.card-accent { height: 3px; background: linear-gradient(90deg, var(--orange) 0%, #F0A050 100%); }

/* Header: location + source tags */
.card-header { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 18px 0; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.location-tag { display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; background: #F0F5FA; border: 1px solid var(--border-lt);
  border-radius: 999px; color: var(--navy-soft); font-size: 11px; font-weight: 600; }
.location-tag::before { content: "◉"; color: var(--orange); font-size: 8px; }
.source-tag { padding: 3px 8px; background: var(--canvas-dk);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: 10px; font-weight: 600; }
.masked-badge { display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: #FFF8ED; border: 1px solid #F0D499;
  border-radius: 999px; color: #7A5010; font-size: 10px; font-weight: 600;
  white-space: nowrap; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: #EDFAF5; border: 1px solid #A8E0C8;
  border-radius: 999px; color: #076048; font-size: 10px; font-weight: 700; }

/* Company name — the hero of the card */
.company-section { padding: 19px 20px 15px; border-bottom: 1px solid var(--border-lt); }
.company-name { display: -webkit-box; margin: 0; overflow: hidden; color: var(--navy);
  font-size: 19px; font-weight: 760; line-height: 1.28; letter-spacing: -.02em;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.supplier-card:hover .company-name { color: #0B3A82; }
.company-name-en { margin: 4px 0 0; overflow: hidden; color: var(--navy-soft);
  font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Products section */
.products-section { padding: 16px 20px 17px; flex: 1;
  background: linear-gradient(135deg,#F4F9FF 0%,#F2FCF8 100%);
  border-bottom: 1px solid #DDEEF7; }
.section-label { margin: 0 0 9px; color: #0B578A; font-size: 10px;
  font-weight: 800; letter-spacing: .1em; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags span { max-width: 200px; padding: 5px 10px; overflow: hidden;
  color: #0D5A8E; background: white; border: 1px solid #AACFE5;
  border-radius: 5px; font-size: 12px; font-weight: 650; line-height: 1.2;
  text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 4px rgba(20,90,140,.07); }
.product-tags span:nth-child(3n+2) { color: #0A6850; background: #F4FFF9; border-color: #8FD8B8; }
.product-tags span:nth-child(3n)   { color: #7A4A10; background: #FFF8F0; border-color: #E8C890; }
.product-tags .more-tag { color: white !important; background: var(--blue) !important;
  border-color: transparent !important; font-weight: 800; }
.product-summary { display: -webkit-box; margin: 10px 0 0; overflow: hidden;
  color: var(--body); font-size: 12px; line-height: 1.65;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.no-products { color: var(--muted); font-size: 12px; }

/* Licensed full contact details */
.licensed-details { display: grid; gap: 6px; padding: 13px 18px;
  background: #FAFCFF; border-bottom: 1px solid var(--border-lt); }
.detail-row { display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 10px; background: white; border: 1px solid var(--border-lt);
  border-radius: 6px; }
.detail-icon { flex-shrink: 0; width: 24px; height: 24px; display: grid;
  place-items: center; border-radius: 5px; font-size: 11px; }
.detail-telephone .detail-icon { background: #E8F3FF; color: #1262C0; }
.detail-email     .detail-icon { background: #EAFAF4; color: #0A7A58; }
.detail-website   .detail-icon { background: #FFF6E8; color: #C06010; }
.detail-address   .detail-icon { background: #F2F0FF; color: #5A48C0; }
.detail-row small { display: block; color: var(--muted); font-size: 10px;
  font-weight: 700; letter-spacing: .05em; margin-bottom: 2px; }
.detail-row strong, .detail-row a { display: block; color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.detail-row a { color: var(--blue); text-decoration: none; }
.detail-row a:hover { text-decoration: underline; }

/* Guest: contact availability chips */
.contact-available { padding: 12px 18px 0; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.contact-chip { display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border: 1px solid; border-radius: 6px;
  font-size: 12px; font-weight: 650; }
.contact-chip-icon { display: grid; width: 18px; height: 18px; place-items: center;
  border-radius: 4px; color: white; font-size: 9px; font-weight: 800; font-style: normal; }
.contact-telephone { color: #0D63AE; background: #EEF7FF; border-color: #B8D9F0; }
.contact-telephone .contact-chip-icon { background: #2782CC; }
.contact-email  { color: #087860; background: #EDFBF5; border-color: #A8DEC8; }
.contact-email  .contact-chip-icon { background: #17A17D; }
.contact-website{ color: #7A4C10; background: #FFF8EC; border-color: #E8C890; }
.contact-website .contact-chip-icon { background: #E07B2A; }
.contact-fax    { color: #8A3840; background: #FFF4F3; border-color: #E8B8B4; }
.contact-fax    .contact-chip-icon { background: #C84E48; }

/* Card footer */
.card-footer { display: flex; align-items: center; justify-content: flex-end;
  min-height: 50px; padding: 9px 20px 11px; margin-top: auto; border-top: 1px solid var(--border-lt);
  background: var(--canvas); }
.card-id { color: var(--muted); font-size: 10px; font-weight: 600; }
.btn-unlock { display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; color: white; background: var(--blue);
  border: 0; border-radius: 6px; font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(24,102,246,.22); }
.btn-unlock:hover { background: var(--blue-dk); }
.record-open { display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue-dk); font-size: 12px; font-weight: 750; }

/* Two-column compact list: the same concise information in a denser horizontal item. */
.view-list .supplier-card { display: grid; grid-template-columns: minmax(190px,.85fr) minmax(0,1.35fr);
  grid-template-rows: 1fr auto; min-height: 210px; }
.view-list .card-accent { position: absolute; inset: 0 auto 0 0; width: 4px; height: auto; }
.view-list .company-section { display: flex; flex-direction: column; justify-content: center;
  padding: 21px 20px 18px 23px; border-right: 1px solid var(--border-lt); border-bottom: 0; }
.view-list .company-name { font-size: 18px; }
.view-list .company-name-en { white-space: normal; line-height: 1.45; }
.view-list .products-section { padding: 19px 20px 16px; border-bottom: 0; }
.view-list .product-tags span { max-width: 170px; }
.view-list .product-summary { -webkit-line-clamp: 2; }
.view-list .card-footer { grid-column: 1/-1; min-height: 45px; padding: 7px 18px 9px;
  border-top: 1px solid var(--border-lt); }

/* ── Professional profile drawer ─────────────────────────────── */
body.drawer-open { overflow: hidden; }
.profile-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5,18,34,.52);
  backdrop-filter: blur(2px); }
.profile-drawer { position: fixed; z-index: 81; top: 0; right: 0; width: min(620px, 94vw);
  height: 100dvh; padding: 0; overflow: hidden; color: var(--ink); background: #F7F9FC;
  border: 0; border-left: 1px solid #D9E1EB; box-shadow: -20px 0 70px rgba(5,22,42,.22);
  transform: translateX(100%); transition: transform .18s ease-out; }
.profile-drawer.is-open { transform: translateX(0); }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 22px; padding: 25px 28px 22px; color: white;
  background: linear-gradient(125deg,#081A2C,#103B5E); }
.drawer-header p { margin: 0 0 7px; color: #79D6E8; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; }
.drawer-header h2 { margin: 0; font-size: 24px; font-weight: 760; line-height: 1.3; }
.drawer-close { flex: 0 0 auto; display: grid; width: 36px; height: 36px; place-items: center;
  padding: 0; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; font-size: 24px; line-height: 1; }
.drawer-close:hover { background: rgba(255,255,255,.2); }
.drawer-body { height: calc(100dvh - 112px); padding: 22px 28px 38px; overflow-y: auto; }
.drawer-subtitle { margin: 0 0 10px; color: var(--navy-soft); font-size: 14px;
  font-weight: 650; line-height: 1.55; }
.drawer-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.drawer-profile-meta span { padding: 5px 9px; color: #315476; background: #E8EFF7;
  border-radius: 5px; font-size: 11px; font-weight: 700; }
.drawer-section { margin-top: 14px; padding: 18px; background: white;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 8px rgba(15,35,60,.04); }
.drawer-section h3 { margin: 0 0 13px; color: var(--navy); font-size: 14px; font-weight: 780; }
.drawer-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.drawer-field { min-width: 0; padding: 11px 12px; background: #F7F9FC;
  border: 1px solid var(--border-lt); border-radius: 7px; }
.drawer-field.is-wide { grid-column: 1/-1; }
.drawer-field small { display: block; margin-bottom: 4px; color: var(--muted);
  font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.drawer-field strong, .drawer-field a { color: var(--ink); font-size: 14px; font-weight: 620;
  line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.drawer-field a { color: var(--blue-dk); text-decoration: none; }
.drawer-field a:hover { text-decoration: underline; }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center;
  margin-top: 24px; }
.pagination button { display: flex; gap: 7px; align-items: center; min-height: 36px;
  padding: 0 14px; color: var(--body); background: white; border: 1px solid var(--border);
  border-radius: 7px; font-size: 12px; font-weight: 700; }
.pagination button:hover:not(:disabled) { border-color: #90AECE; color: var(--navy); }
.pagination > span { min-width: 110px; color: var(--muted); text-align: center; font-size: 11px; }

/* ── Access dialog ────────────────────────────────────────────── */
.access-dialog { position: relative; width: min(490px, calc(100% - 30px));
  padding: 30px; color: var(--ink); background: white;
  border: 0; border-radius: 12px; box-shadow: 0 28px 90px rgba(4,20,40,.34); }
.access-dialog::backdrop { background: rgba(5,18,35,.7); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 13px; width: 28px; height: 28px;
  color: var(--muted); background: var(--canvas); border: 0; border-radius: 50%;
  font-size: 18px; }
.dialog-mark { display: grid; width: 42px; height: 42px; place-items: center;
  color: white; background: var(--navy); border-radius: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.dialog-eyebrow { margin: 14px 0 5px; color: var(--blue); font-size: 10px;
  font-weight: 800; letter-spacing: .14em; }
.access-dialog h2 { margin: 0; color: var(--navy); font-size: 24px; font-weight: 720; }
.access-dialog > p:not(.dialog-eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.7; }
.access-dialog ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.access-dialog li { position: relative; padding-left: 22px;
  color: var(--body); font-size: 12px; line-height: 1.6; }
.access-dialog li::before { position: absolute; left: 0; content: "✓";
  color: var(--teal); font-weight: 800; }
.dialog-primary { width: 100%; min-height: 42px; margin-top: 10px;
  color: white; background: var(--blue); border: 0; border-radius: 7px;
  font-size: 13px; font-weight: 700; }
.dialog-primary:hover { background: var(--blue-dk); }

/* ── Account and license center ──────────────────────────────── */
.account-dialog { width: min(920px, calc(100% - 30px)); max-height: min(760px, calc(100dvh - 30px));
  padding: 0; overflow: auto; border-radius: 16px; }
.account-shell { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(380px,1.15fr); min-height: 570px; }
.account-pitch { position: relative; padding: 42px 38px; overflow: hidden; color: white;
  background: linear-gradient(145deg,#071827 0%,#0A2C49 58%,#0C4168 100%); }
.account-pitch::after { position: absolute; right: -110px; bottom: -130px; width: 330px; height: 330px;
  content: ""; border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018); }
.account-pitch > * { position: relative; z-index: 1; }
.account-pitch .dialog-mark { color: var(--navy); background: white; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.account-pitch .dialog-eyebrow { margin-top: 24px; color: #63D0EC; }
.account-pitch h2 { max-width: 300px; color: white; font-size: 28px; line-height: 1.2; }
.account-pitch > p:not(.dialog-eyebrow,.account-security) { margin: 16px 0 22px; color: #C3D7E8; font-size: 13px; line-height: 1.75; }
.account-pitch ul { gap: 10px; margin: 0; }
.account-pitch li { color: #E1EDF6; font-size: 13px; }
.account-pitch li::before { color: #63D0A8; }
.account-security { display: flex; gap: 8px; align-items: center; margin: 28px 0 0; padding-top: 18px;
  color: #AFC7DA; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; line-height: 1.5; }
.account-security > span:first-child { display: grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center;
  color: #71DAB2; border: 1px solid rgba(113,218,178,.55); border-radius: 50%; }
.account-content { position: relative; display: flex; flex-direction: column; padding: 40px 42px 34px; background: white; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 25px;
  background: #F0F4F8; border-radius: 9px; }
.auth-tabs button { min-height: 38px; color: var(--muted); background: transparent; border: 0; border-radius: 7px;
  font-size: 13px; font-weight: 700; }
.auth-tabs button.is-active { color: var(--navy); background: white; box-shadow: 0 2px 8px rgba(16,44,75,.1); }
.account-form, .redeem-form { display: grid; gap: 15px; }
.form-heading { margin-bottom: 3px; }
.form-heading h3 { margin: 0; color: var(--navy); font-size: 21px; font-weight: 750; }
.form-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.account-form label, .redeem-form label { display: grid; gap: 6px; color: #44576B; font-size: 11px; font-weight: 750; }
.account-form input, .redeem-form input { width: 100%; min-height: 44px; padding: 0 13px; color: var(--ink);
  background: white; border: 1px solid #CBD7E3; border-radius: 8px; outline: 0; font-size: 13px; font-weight: 500; }
.account-form input:focus, .redeem-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,102,246,.1); }
.account-form .dialog-primary, .redeem-form .dialog-primary { min-height: 46px; margin-top: 2px; }
.account-message { margin: auto 0 0; padding: 11px 13px; color: #31516F; background: #F0F6FC;
  border: 1px solid #D4E2EF; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.account-message.is-success { color: #075E46; background: #ECF9F3; border-color: #B7E4D1; }
.account-message.is-error { color: #9B2C2C; background: #FFF2F1; border-color: #F0C2BF; }
.account-user { display: grid; gap: 20px; }
.account-user-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding-bottom: 19px; border-bottom: 1px solid var(--border-lt); }
.account-avatar { display: grid; width: 45px; height: 45px; place-items: center; color: white;
  background: linear-gradient(145deg,var(--blue),#0D4AB8); border-radius: 11px; font-size: 17px; font-weight: 800; }
.account-user-head p { margin: 0 0 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.account-user-head h3 { margin: 0; overflow: hidden; color: var(--navy); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.account-user-head div > span { display: block; margin-top: 2px; overflow: hidden; color: var(--muted);
  font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-text-button { padding: 6px 8px; color: #6A7B8D; background: transparent; border: 1px solid var(--border); border-radius: 6px; font-size: 10px; font-weight: 700; }
.account-text-button:hover { color: #A33B36; border-color: #E4B6B2; }
.license-summary { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; padding: 17px;
  background: #F6F8FB; border: 1px solid var(--border); border-radius: 10px; }
.license-summary > span { display: grid; width: 38px; height: 38px; place-items: center; color: #5E7184;
  background: white; border: 1px solid #D8E1EA; border-radius: 50%; font-size: 18px; font-weight: 800; }
.license-summary p { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.license-summary strong { display: block; color: var(--navy); font-size: 15px; }
.license-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.license-summary.is-active { background: linear-gradient(110deg,#EEFAF5,#F7FCFA); border-color: #B7E3D0; }
.license-summary.is-active > span { color: white; background: var(--teal); border-color: var(--teal); }
.redeem-form { padding: 18px; background: #F9FBFD; border: 1px solid #DFE7F0; border-radius: 10px; }
.redeem-form .form-heading h3 { font-size: 16px; }
.redeem-form input { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .04em; text-transform: uppercase; }
.referral-card { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px;
  color: var(--muted); background: #F8FAFC; border: 1px solid var(--border-lt); border-radius: 8px; font-size: 10px; }
.referral-card strong { color: var(--navy-mid); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 12px; letter-spacing: .08em; }

/* ── Footer ───────────────────────────────────────────────────── */
footer { display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(24px, calc((100% - 1440px)/2));
  color: var(--muted); background: white;
  border-top: 1px solid var(--border-lt); font-size: 11px; }
footer div { display: flex; gap: 14px; align-items: center; }
footer strong { color: #38526A; font-size: 12px; font-weight: 700; }
footer small { letter-spacing: .06em; font-size: 10px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr; }
  .main-nav { display: none; }
  .header-actions { justify-self: end; }
  .hero { grid-template-columns: 1fr minmax(300px,.6fr); gap: 32px; }
  .search-panel { grid-template-columns: minmax(260px,1fr) 170px 185px 160px; }
  .result-cards.view-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .view-list .supplier-card { grid-template-columns: minmax(160px,.75fr) minmax(0,1.25fr); }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 66px; }
  .metric-panel { max-width: 480px; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .keyword-field { grid-column: 1/-1; border-bottom: 1px solid var(--border-lt); }
  .search-button { min-height: 48px; }
  .result-cards.view-cards, .result-cards.view-list { grid-template-columns: 1fr; }
  .preview-strip { grid-template-columns: auto 1fr; }
  .preview-strip button { grid-column: 1/-1; justify-content: center;
    padding-top: 8px; border-top: 1px solid #C8DCEF; }
  .workbench-label small { display: none; }
  .account-shell { grid-template-columns: 1fr; }
  .account-pitch { padding: 30px 28px; }
  .account-pitch h2 { font-size: 23px; }
  .account-pitch ul, .account-security { display: none; }
  .account-content { padding: 30px 28px; }
}
@media (max-width: 560px) {
  .site-header { padding: 0 12px; }
  .brand small, .access-badge, .dev-button { display: none; }
  .brand strong { font-size: 13px; }
  .header-cta { padding: 0 10px; }
  .language-picker select { max-width: 60px; }
  .hero { padding-right: 16px; padding-left: 16px; }
  .hero h1 { font-size: 30px; }
  .trust-row { gap: 10px; }
  .search-workbench, .preview-strip, .results-section { width: calc(100% - 20px); }
  .search-panel { grid-template-columns: 1fr; }
  .keyword-field { grid-column: auto; }
  .search-panel label { border-right: 0; border-bottom: 1px solid var(--border-lt); }
  .search-button { margin: 8px 0 0; }
  .result-toolbar { align-items: flex-start; }
  .view-button { padding: 0 8px; }
  .view-button span:last-child { display: none; }
  .view-list .supplier-card { display: flex; min-height: 0; }
  .view-list .company-section { padding: 18px 18px 14px 21px;
    border-right: 0; border-bottom: 1px solid var(--border-lt); }
  .view-list .products-section { padding: 15px 18px; }
  .view-list .card-footer { min-height: 48px; }
  .drawer-header { padding: 21px 20px 18px; }
  .drawer-header h2 { font-size: 20px; }
  .drawer-body { height: calc(100dvh - 101px); padding: 17px 16px 28px; }
  .drawer-field-grid { grid-template-columns: 1fr; }
  .drawer-field.is-wide { grid-column: auto; }
  .card-header { flex-wrap: wrap; }
  .account-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .account-pitch { padding: 25px 22px 22px; }
  .account-pitch > p:not(.dialog-eyebrow,.account-security) { margin-bottom: 0; }
  .account-content { padding: 25px 20px 24px; }
  .account-user-head { grid-template-columns: auto minmax(0,1fr); }
  .account-text-button { grid-column: 1/-1; }
  footer { display: block; text-align: center; }
  footer div { display: block; }
  footer span { display: block; margin: 5px 0 10px; }
}
