/* TradeSearch · 企业级视觉系统 */
:root {
  --brand-green: #128c5b;
  --brand-green-dark: #087744;
  --brand-green-soft: #e8f6ef;
  --brand-blue: #4285f4;
  --brand-blue-dark: #2768d6;
  --brand-blue-soft: #eaf2ff;
  --brand-red: #ea4335;
  --brand-yellow: #fbbc05;
  --ink: #14231b;
  --ink-2: #405249;
  --ink-3: #74837b;
  --line: #dfe8e3;
  --line-soft: #ebf0ed;
  --surface: #ffffff;
  --canvas: #f3f7f5;
  --canvas-2: #eaf1ed;
  --shadow-sm: 0 2px 10px rgba(20, 63, 43, .055);
  --shadow-md: 0 14px 38px rgba(20, 63, 43, .09);
  --shadow-lg: 0 28px 80px rgba(14, 52, 34, .16);
}

* { box-sizing: border-box; }

.theme-unified,
.theme-register,
.theme-customs,
.theme-trade,
.theme-admin {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  color: var(--ink) !important;
  background: var(--canvas) !important;
  letter-spacing: -.005em;
}

.theme-unified *::-webkit-scrollbar,
.theme-register *::-webkit-scrollbar,
.theme-customs *::-webkit-scrollbar,
.theme-trade *::-webkit-scrollbar,
.theme-admin *::-webkit-scrollbar { width: 7px; height: 7px; }
.theme-unified *::-webkit-scrollbar-thumb,
.theme-register *::-webkit-scrollbar-thumb,
.theme-customs *::-webkit-scrollbar-thumb,
.theme-trade *::-webkit-scrollbar-thumb,
.theme-admin *::-webkit-scrollbar-thumb { background: #bdcbc3; border-radius: 10px; }

.eyebrow { display: block; color: var(--brand-green); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-spectrum {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: conic-gradient(from 215deg, #34a853 0 25%, #4285f4 25% 50%, #ea4335 50% 75%, #fbbc05 75% 100%);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(25, 83, 63, .2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

/* 登录：左右分栏的企业级产品入口 */
.theme-unified .login-page {
  padding: 26px;
  background:
    radial-gradient(circle at 9% 12%, rgba(66, 133, 244, .10), transparent 25%),
    radial-gradient(circle at 90% 88%, rgba(18, 140, 91, .10), transparent 26%),
    var(--canvas) !important;
}
.theme-unified .login-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1.15fr) minmax(390px, .85fr);
  width: min(1120px, 96vw);
  min-height: min(720px, calc(100vh - 52px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(31, 88, 59, .10);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.theme-unified .login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 52px 58px 46px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 47, 31, .94), rgba(7, 87, 55, .92)),
    #075b3a;
}
.theme-unified .login-story::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -210px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
}
.theme-unified .login-story::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(transparent, #000);
}
.theme-unified .story-brand,
.theme-unified .login-mobile-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.theme-unified .story-brand strong { display: block; font-size: 17px; }
.theme-unified .story-brand span { display: block; margin-top: 3px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.theme-unified .story-copy { position: relative; z-index: 1; margin: auto 0 44px; }
.theme-unified .story-copy .eyebrow { color: #6ee7b7; }
.theme-unified .story-copy h2 { margin: 18px 0; color: #fff; font-size: clamp(38px, 4vw, 58px); line-height: 1.13; letter-spacing: -.05em; }
.theme-unified .story-copy p { max-width: 470px; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.85; }
.theme-unified .story-capabilities { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-unified .story-capabilities > div { display: grid; grid-template-columns: 38px 1fr; gap: 1px 10px; align-items: center; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.075); backdrop-filter: blur(10px); }
.theme-unified .story-capabilities .cap-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 13px; font-weight: 900; }
.theme-unified .cap-blue { background: #fff; color: var(--brand-blue); }
.theme-unified .cap-green { background: #25d366; color: #064d30; }
.theme-unified .story-capabilities strong { font-size: 13px; }
.theme-unified .story-capabilities small { color: rgba(255,255,255,.55); font-size: 10px; }
.theme-unified .story-trust { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 24px; color: rgba(255,255,255,.55); font-size: 10px; }
.theme-unified .story-trust span { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110,231,183,.12); }
.theme-unified .login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  max-width: none;
  padding: 60px 68px;
  text-align: left;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.theme-unified .login-mobile-brand { display: none; }
.theme-unified .login-heading { margin-bottom: 34px; }
.theme-unified .login-heading h1 { margin: 8px 0 7px; color: var(--ink); font-size: 30px; letter-spacing: -.04em; }
.theme-unified .login-heading .sub { margin: 0; color: var(--ink-3) !important; font-size: 13px; }
.theme-unified .login-card .field { margin-bottom: 17px; }
.theme-unified .login-card .field label { margin-bottom: 7px; color: var(--ink-2); font-size: 12px; font-weight: 650; }
.theme-unified .login-card .field input {
  width: 100%; height: 47px; padding: 0 14px;
  color: var(--ink) !important; background: #f8faf9 !important;
  border: 1px solid var(--line) !important; border-radius: 10px !important;
}
.theme-unified .login-card .field input:focus { border-color: var(--brand-green) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(18,140,91,.09) !important; }
.theme-unified .login-card .captcha-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.theme-unified .login-card .captcha-row img { width: 120px; height: 47px !important; border: 1px solid var(--line) !important; border-radius: 10px !important; }
.theme-unified .login-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 49px; margin-top: 5px; padding: 0 17px; color: #fff; background: var(--brand-green) !important; border: 0; border-radius: 10px; box-shadow: 0 10px 24px rgba(18,140,91,.2); }
.theme-unified .login-btn:hover { background: var(--brand-green-dark) !important; transform: translateY(-1px); }
.theme-unified .login-btn b { font-size: 18px; font-weight: 400; }
.theme-unified .switch-form { margin-top: 22px !important; color: var(--ink-3) !important; text-align: center; }
.theme-unified .switch-form a { margin-left: 4px; color: var(--brand-green) !important; font-weight: 700; }
.theme-unified .login-error { color: #c53329 !important; }

/* 主工作台：顶部导航 + 左侧业务上下文 + 大内容区 */
.theme-unified .app-shell { flex-direction: column; background: var(--canvas) !important; }
.theme-unified .workspace-header {
  height: 72px; display: flex; align-items: center; flex: 0 0 auto; gap: 32px;
  padding: 0 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(17,62,39,.02); z-index: 20;
}
.theme-unified .workspace-brand { display: flex; align-items: center; gap: 11px; width: 246px; flex: 0 0 auto; }
.theme-unified .workspace-brand-copy strong { display: block; color: var(--ink); font-size: 15px; }
.theme-unified .workspace-brand-copy span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.theme-unified .header-nav { display: flex; align-self: stretch; gap: 5px; }
.theme-unified .header-nav .nav-btn { position: relative; display: flex; align-items: center; gap: 10px; min-width: 142px; padding: 0 15px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.theme-unified .header-nav .nav-btn::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.theme-unified .header-nav .nav-btn:hover { background: #f8faf9; }
.theme-unified .header-nav .nav-btn.active::after { background: var(--brand-green); }
.theme-unified .header-nav .nav-btn > span:last-child { text-align: left; }
.theme-unified .header-nav b { display: block; color: var(--ink); font-size: 12px; }
.theme-unified .header-nav small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; }
.theme-unified .nav-symbol { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; font-size: 11px; font-weight: 900; }
.theme-unified .nav-symbol-blue { color: var(--brand-blue-dark); background: var(--brand-blue-soft); }
.theme-unified .nav-symbol-green { color: var(--brand-green-dark); background: var(--brand-green-soft); }
.theme-unified .nav-symbol-violet { color: #6941c6; background: #f1eaff; }
.theme-unified .nav-symbol-plugin { color: #b45309; background: #fff3d6; }
.theme-unified .header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.theme-unified .system-ready { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 10px; }
.theme-unified .system-ready i { width: 7px; height: 7px; border-radius: 50%; background: #22b56b; box-shadow: 0 0 0 4px rgba(34,181,107,.11); }
.theme-unified .header-divider { width: 1px; height: 30px; background: var(--line); }
.theme-unified .user-row { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.theme-unified .user-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--brand-green), #1fbf79); font-size: 12px; font-weight: 800; }
.theme-unified .user-copy strong { display: block; max-width: 110px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.theme-unified .user-copy small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; }
.theme-unified .logout-btn { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink-3); background: #f6f8f7; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transform: rotate(90deg); }
.theme-unified .logout-btn:hover { color: #c53329; background: #fff5f4; border-color: #f0cecb; }
.theme-unified .workspace-body { display: flex; flex: 1; min-height: 0; padding: 14px; gap: 14px; }
.theme-unified .context-panel { display: flex; flex-direction: column; width: 260px; flex: 0 0 auto; padding: 18px 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.theme-unified .context-heading { padding: 0 8px 15px; }
.theme-unified .context-heading span { display: block; color: var(--ink-3); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.theme-unified .context-heading b { display: block; margin-top: 5px; color: var(--ink); font-size: 17px; }
.theme-unified .context-card { display: grid; grid-template-columns: 40px 1fr 14px; align-items: center; gap: 10px; width: 100%; margin-bottom: 7px; padding: 12px 10px; text-align: left; color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: .18s ease; }
.theme-unified .context-card:hover { background: #f8faf9; border-color: var(--line-soft); }
.theme-unified .context-card.active { background: linear-gradient(90deg, #edf8f2, #f8fbf9); border-color: #cfe7da; box-shadow: inset 3px 0 var(--brand-green); }
.theme-unified .context-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 20px; font-weight: 700; }
.theme-unified .context-icon-blue { color: var(--brand-blue-dark); background: var(--brand-blue-soft); }
.theme-unified .context-icon-green { color: var(--brand-green-dark); background: var(--brand-green-soft); }
.theme-unified .context-card strong { display: block; color: var(--ink); font-size: 12px; }
.theme-unified .context-card small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 9px; line-height: 1.35; }
.theme-unified .context-card > b { color: #a2afa8; font-size: 14px; }
.theme-unified .context-insight { margin-top: 14px; padding: 16px; color: #fff; background: linear-gradient(145deg, #0b6843, #0b5036); border-radius: 13px; }
.theme-unified .insight-kicker { color: #74e6b4; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.theme-unified .context-insight strong { display: block; margin-top: 8px; font-size: 13px; }
.theme-unified .context-insight p { margin-top: 6px; color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.55; }
.theme-unified .workflow-line { display: flex; align-items: center; margin-top: 15px; }
.theme-unified .workflow-line i { width: 7px; height: 7px; border: 2px solid #74e6b4; border-radius: 50%; }
.theme-unified .workflow-line span { flex: 1; height: 1px; background: linear-gradient(90deg,#74e6b4,rgba(116,230,180,.2)); }
.theme-unified .context-foot { display: flex; justify-content: space-between; margin-top: auto; padding: 16px 7px 0; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 8px; }
.theme-unified .right-panel { flex: 1; min-width: 0; height: auto; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.theme-unified .content-header { display: flex; align-items: center; height: 62px; flex: 0 0 auto; padding: 0 16px 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.theme-unified .content-title { min-width: 150px; }
.theme-unified .content-title h2 { margin-top: 3px; color: var(--ink); font-size: 17px; letter-spacing: -.025em; }
.theme-unified .tab-bar { display: flex; align-items: center; height: 36px; margin-left: auto; padding: 3px; background: #f0f4f2 !important; border: 0 !important; border-radius: 10px; }
.theme-unified .tab-item { height: 30px; padding: 0 11px; color: var(--ink-3) !important; background: transparent !important; border: 0 !important; border-radius: 8px; font-size: 10px; }
.theme-unified .tab-item:hover { color: var(--ink) !important; }
.theme-unified .tab-item.active { color: var(--ink) !important; background: #fff !important; box-shadow: 0 2px 7px rgba(20,63,43,.08); }
.theme-unified .tab-item .tab-close:hover { background: #edf1ef !important; }
.theme-unified .tab-content { flex: 1; min-height: 0; background: #fff !important; }
.theme-unified .toast { background: #163b2b !important; border-radius: 10px; box-shadow: var(--shadow-md); }

/* 通用表单 */
.theme-register input,
.theme-customs input,
.theme-customs select,
.theme-trade input,
.theme-trade select,
.theme-admin input,
.theme-admin select,
.theme-admin textarea { color: var(--ink) !important; background: #fff !important; border-color: var(--line) !important; }
.theme-register input:focus,
.theme-customs input:focus,
.theme-customs select:focus,
.theme-trade input:focus,
.theme-trade select:focus,
.theme-admin input:focus { border-color: var(--brand-green) !important; box-shadow: 0 0 0 3px rgba(18,140,91,.09) !important; outline: none; }

/* 注册页 */
.theme-register { min-height: 100vh; background: radial-gradient(circle at 20% 10%, rgba(66,133,244,.09), transparent 26%), radial-gradient(circle at 85% 86%, rgba(18,140,91,.10), transparent 28%), var(--canvas) !important; }
.theme-register .card { position: relative; width: 430px; padding: 44px; background: #fff !important; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg) !important; }
.theme-register .card::before { content: "数"; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; color: #fff; background: conic-gradient(from 215deg,#34a853 0 25%,#4285f4 25% 50%,#ea4335 50% 75%,#fbbc05 75% 100%); border-radius: 14px; font-weight: 900; }
.theme-register .card h1 { color: var(--ink); }
.theme-register .card p.sub,
.theme-register .link { color: var(--ink-3) !important; }
.theme-register .btn { background: var(--brand-green) !important; border: 0; box-shadow: 0 10px 24px rgba(18,140,91,.2); }
.theme-register a { color: var(--brand-green) !important; }

/* 贸易数据：高密度企业数据产品 */
.theme-customs { background: #fff !important; }
.theme-customs .app-wrap { background: #fff !important; }
.theme-customs .top-bar { height: 64px; padding: 0 24px; background: #fff !important; border-color: var(--line) !important; }
.theme-customs .top-bar h1 { color: var(--ink); font-size: 17px; }
.theme-customs .top-bar h1::first-letter { color: var(--brand-green); }
.theme-customs .top-bar .sub { color: var(--ink-3) !important; }
.theme-customs .top-bar::after { content: "GLOBAL TRADE RECORDS"; margin-left: auto; padding: 6px 9px; color: var(--brand-green-dark); background: var(--brand-green-soft); border-radius: 7px; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.theme-customs .filter-bar { padding: 16px 24px 17px; background: #f8faf9 !important; border-color: var(--line) !important; }
.theme-customs .filter-grid { gap: 11px; }
.theme-customs .f-group label { color: var(--ink-2) !important; font-weight: 650; }
.theme-customs .f-group input,
.theme-customs .f-group select { height: 38px; border-radius: 9px; }
.theme-customs .search-btn { height: 38px; padding: 0 24px; background: var(--brand-green) !important; border-radius: 9px; box-shadow: 0 7px 18px rgba(18,140,91,.17); }
.theme-customs .search-btn:hover { background: var(--brand-green-dark) !important; }
.theme-customs .clear-btn,
.theme-customs .toolbar button { height: 38px; color: var(--ink-2) !important; background: #fff !important; border-color: var(--line) !important; border-radius: 9px; }
.theme-customs .result-panel { background: #fff !important; }
.theme-customs .result-header { min-height: 52px; padding: 0 24px; background: #fff !important; border-color: var(--line) !important; }
.theme-customs .result-header .stats { color: var(--ink-3) !important; }
.theme-customs .result-header .stats strong { color: var(--brand-green-dark) !important; font-size: 15px; }
.theme-customs .data-table { font-size: 12px; }
.theme-customs .data-table th { height: 40px; padding: 8px 12px; color: #596b61 !important; background: #f3f7f5 !important; border-color: var(--line) !important; }
.theme-customs .data-table td { height: 42px; padding: 8px 12px; color: var(--ink-2) !important; border-color: var(--line-soft) !important; }
.theme-customs .data-table tbody tr:hover { background: #eff8f3 !important; box-shadow: inset 3px 0 var(--brand-green); }
.theme-customs .data-table .amt { color: var(--brand-green-dark) !important; }
.theme-customs .result-footer { min-height: 50px; padding: 0 24px; background: #fff !important; border-color: var(--line) !important; }
.theme-customs .page-btn { color: var(--ink-2) !important; background: #fff !important; border-color: var(--line) !important; border-radius: 7px; }
.theme-customs .page-btn.active { color: #fff !important; background: var(--brand-green) !important; border-color: var(--brand-green) !important; }
.theme-customs .modal-overlay { background: rgba(17,35,26,.38) !important; backdrop-filter: blur(5px); }
.theme-customs .modal-card { background: #fff !important; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg) !important; }
.theme-customs .modal-header { border-color: var(--line) !important; }
.theme-customs .detail-item { background: #f5f8f6 !important; border: 1px solid var(--line-soft); }

/* 外贸搜索：克制、宽松的搜索与结果体验 */
.theme-trade { min-height: 100vh; background: #fff !important; }
.theme-trade .home-page { background: radial-gradient(circle at 50% 30%, rgba(18,140,91,.06), transparent 34%), #fff !important; }
.theme-trade .home-user-area { padding: 20px 28px !important; background: transparent !important; }
.theme-trade .user-btn { color: var(--ink-2) !important; background: #fff !important; border-color: var(--line) !important; border-radius: 9px !important; }
.theme-trade .home-center { transform: translateY(-3vh); }
.theme-trade .home-logo .logo { color: var(--ink) !important; font-weight: 800; letter-spacing: -.06em; text-shadow: none !important; }
.theme-trade .home-logo .logo::first-letter { color: var(--brand-green); }
.theme-trade .home-logo .sub { color: var(--ink-3) !important; letter-spacing: .13em; }
.theme-trade .home-search-box,
.theme-trade .sbox { overflow: hidden; background: #fff !important; border: 1px solid #cbdad2 !important; box-shadow: 0 16px 46px rgba(20,63,43,.11) !important; }
.theme-trade .home-search-box:focus-within,
.theme-trade .sbox:focus-within { border-color: var(--brand-green) !important; box-shadow: 0 18px 50px rgba(18,140,91,.14), 0 0 0 4px rgba(18,140,91,.07) !important; }
.theme-trade .home-search-box input,
.theme-trade .sbox input { background: #fff !important; }
.theme-trade .home-search-box .divider,
.theme-trade .sbox .divider { background: var(--line) !important; }
.theme-trade .sbtn-home,
.theme-trade .sbtn { color: #fff !important; background: var(--brand-green) !important; border-color: var(--brand-green) !important; box-shadow: none !important; }
.theme-trade .tbtn { color: var(--ink-2) !important; background: #f4f7f5 !important; border-color: transparent !important; }
.theme-trade .home-hot-tags { color: var(--ink-3) !important; }
.theme-trade .tag { padding: 6px 10px !important; color: var(--ink-2) !important; background: #f4f7f5 !important; border: 1px solid var(--line-soft) !important; border-radius: 999px !important; }
.theme-trade .tag:hover { color: var(--brand-green-dark) !important; background: var(--brand-green-soft) !important; border-color: #cce5d7 !important; }
.theme-trade .home-ad-card,
.theme-trade .ad-card,
.theme-trade .ad-rent { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 13px !important; box-shadow: var(--shadow-sm) !important; }
.theme-trade .home-ad-name,
.theme-trade .ad-name,
.theme-trade .ar-title { color: var(--ink) !important; }
.theme-trade .home-ad-card,
.theme-trade .ad-card { color: var(--ink-3) !important; }
.theme-trade .results-page { background: #f7f9f8 !important; }
.theme-trade .search-header { background: rgba(255,255,255,.97) !important; border-color: var(--line) !important; box-shadow: 0 4px 18px rgba(20,63,43,.04); }
.theme-trade .logo-sm { color: var(--ink) !important; }
.theme-trade .stats-bar { color: var(--ink-3) !important; background: #fff !important; border-color: var(--line) !important; }
.theme-trade .rp-container { gap: 18px !important; }
.theme-trade .company-card { padding: 20px 22px !important; color: var(--ink-2); background: #fff !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: var(--shadow-sm) !important; transition: .18s ease !important; }
.theme-trade .company-card:hover { transform: translateY(-2px); border-color: #bcd8c9 !important; box-shadow: var(--shadow-md) !important; }
.theme-trade .company-card .ct,
.theme-trade .company-card .title { color: var(--ink) !important; }
.theme-trade .company-card .website { color: var(--brand-green-dark) !important; }
.theme-trade .company-card .desc,
.theme-trade .company-card .cd { color: var(--ink-2) !important; line-height: 1.65; }
.theme-trade .email { color: var(--brand-blue-dark) !important; }
.theme-trade .tel { color: var(--brand-green-dark) !important; }
.theme-trade .engine-badge,
.theme-trade .area { color: var(--ink-3) !important; background: #f2f6f4 !important; border-color: var(--line-soft) !important; }
.theme-trade .page { color: var(--ink-2) !important; background: #fff !important; border-color: var(--line) !important; }
.theme-trade .page.active { color: #fff !important; background: var(--brand-green) !important; border-color: var(--brand-green) !important; }
.theme-trade .modal-overlay { background: rgba(17,35,26,.42) !important; backdrop-filter: blur(5px); }
.theme-trade .modal,
.theme-trade .email-explorer,
.theme-trade .user-profile-popup { color: var(--ink); background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: var(--shadow-lg) !important; }
.theme-trade .mt,
.theme-trade .ee-title,
.theme-trade .pp-name { color: var(--ink) !important; }
.theme-trade .msub,
.theme-trade .ee-sub,
.theme-trade .pp-email,
.theme-trade .pp-meta { color: var(--ink-3) !important; }
.theme-trade .trans-result,
.theme-trade .ee-result { color: var(--ink-2) !important; background: #f6f9f7 !important; border-color: var(--line) !important; }

/* 管理后台 */
.theme-admin { min-height: 100vh; background: var(--canvas) !important; }
.theme-admin .login-wrap,
.theme-admin .login-page { background: transparent !important; }
.theme-admin .login-box,
.theme-admin .login-card,
.theme-admin .modal-content { color: var(--ink); background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: var(--shadow-lg) !important; }
.theme-admin .header,
.theme-admin .topbar { background: #fff !important; border-color: var(--line) !important; }
.theme-admin h1,
.theme-admin h2,
.theme-admin h3,
.theme-admin .brand { color: var(--ink) !important; }
.theme-admin .toolbar,
.theme-admin .panel,
.theme-admin .table-wrap,
.theme-admin .stat-card,
.theme-admin .card { color: var(--ink-2); background: #fff !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: var(--shadow-sm) !important; }
.theme-admin .stat-card { position: relative; overflow: hidden; }
.theme-admin .stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand-green); }
.theme-admin .stat-value,
.theme-admin .num { color: var(--ink) !important; }
.theme-admin .stat-label,
.theme-admin .muted { color: var(--ink-3) !important; }
.theme-admin th { color: var(--ink-2) !important; background: #f3f7f5 !important; border-color: var(--line) !important; }
.theme-admin td { color: var(--ink-2) !important; border-color: var(--line-soft) !important; }
.theme-admin tbody tr:hover { background: #eff8f3 !important; }
.theme-admin .btn,
.theme-admin button[type="submit"],
.theme-admin .primary { color: #fff !important; background: var(--brand-green) !important; border-color: var(--brand-green) !important; }
.theme-admin .btn-danger,
.theme-admin .danger { color: #bd3028 !important; background: #fff3f2 !important; border-color: #efcbc7 !important; }
.theme-admin .btn-secondary,
.theme-admin .secondary { color: var(--ink-2) !important; background: #fff !important; border-color: var(--line) !important; }

@media (max-width: 1020px) {
  .theme-unified .workspace-brand { width: auto; }
  .theme-unified .workspace-brand-copy { display: none; }
  .theme-unified .context-panel { width: 220px; }
  .theme-unified .header-nav .nav-btn { min-width: 124px; }
  .theme-unified .system-ready,
  .theme-unified .user-copy { display: none; }
}

@media (max-width: 780px) {
  .theme-unified .login-page { padding: 12px; }
  .theme-unified .login-layout { display: block; width: min(440px, 100%); min-height: auto; }
  .theme-unified .login-story { display: none; }
  .theme-unified .login-card { padding: 40px 28px; }
  .theme-unified .login-mobile-brand { display: flex; margin-bottom: 34px; }
  .theme-unified .workspace-header { height: 64px; padding: 0 12px; gap: 10px; }
  .theme-unified .header-nav .nav-btn { min-width: auto; padding: 0 7px; }
  .theme-unified .header-nav small { display: none; }
  .theme-unified .header-tools { gap: 6px; }
  .theme-unified .header-divider { display: none; }
  .theme-unified .workspace-body { padding: 8px; gap: 8px; }
  .theme-unified .context-panel { width: 62px; padding: 10px 7px; }
  .theme-unified .context-heading,
  .theme-unified .context-card > span:nth-child(2),
  .theme-unified .context-card > b,
  .theme-unified .context-insight,
  .theme-unified .context-foot { display: none; }
  .theme-unified .context-card { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 8px; }
  .theme-unified .content-title { display: none; }
  .theme-unified .content-header { height: 48px; }
  .theme-unified .tab-bar { margin: 0; }
  .theme-trade .rp-side { display: none !important; }
}

/* ─────────────────────────────────────────────────────────
   Concept v3 — single-layer product architecture
   ───────────────────────────────────────────────────────── */
.theme-unified .workspace-header {
  height: 68px;
  padding: 0 clamp(18px, 3vw, 44px);
  gap: clamp(24px, 5vw, 72px);
  border-bottom-color: #e7ece9;
}
.theme-unified .workspace-brand { width: auto; min-width: 220px; }
.theme-unified .brand-spectrum { width: 38px; height: 38px; border-radius: 11px; }
.theme-unified .header-nav { gap: 8px; align-self: auto; padding: 4px; border-radius: 12px; background: #f1f5f3; }
.theme-unified .header-nav .nav-btn { min-width: 154px; height: 44px; padding: 0 14px; border-radius: 9px; }
.theme-unified .header-nav .nav-btn::after { display: none; }
.theme-unified .header-nav .nav-btn:hover { background: rgba(255,255,255,.65); }
.theme-unified .header-nav .nav-btn.active { background: #fff; box-shadow: 0 3px 12px rgba(20,63,43,.08); }
.theme-unified .workspace-body { padding: 0; gap: 0; background: #fff; }
.theme-unified .right-panel { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.theme-unified .right-panel > .tab-bar { display: none !important; }
.theme-unified .tab-content { height: 100%; }
.theme-unified .tab-sheet iframe { background: #fff; }

/* 客户发现首页 */
.theme-trade .home-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 82%, rgba(66,133,244,.08), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(18,140,91,.09), transparent 25%),
    linear-gradient(135deg, #fbfdfc, #f3f8f5) !important;
}
.theme-trade .home-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background-image: linear-gradient(rgba(21,74,48,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21,74,48,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.theme-trade .home-user-area { top: 22px; right: 32px; }
.theme-trade .discovery-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-content: center;
  gap: 34px;
  width: min(1180px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 76px 0 34px;
}
.theme-trade .discovery-main { align-self: center; max-width: 760px; }
.theme-trade .discovery-intro { margin-bottom: 28px; }
.theme-trade .product-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--brand-green-dark); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.theme-trade .product-status i { width: 7px; height: 7px; border-radius: 50%; background: #22b56b; box-shadow: 0 0 0 5px rgba(34,181,107,.10); }
.theme-trade .discovery-intro h1 { color: #10261b; font-size: clamp(40px, 5vw, 66px); line-height: 1.08; letter-spacing: -.065em; }
.theme-trade .discovery-intro h1 em { color: var(--brand-green); font-style: normal; }
.theme-trade .discovery-intro p { max-width: 620px; margin-top: 18px; color: #607168; font-size: 14px; line-height: 1.8; }
.theme-trade .home-search-box {
  height: 64px;
  padding: 0 8px 0 20px !important;
  border-color: #c9d9d0 !important;
  border-radius: 17px !important;
  box-shadow: 0 18px 45px rgba(19,72,45,.10) !important;
}
.theme-trade .home-search-box input { height: 62px; font-size: 16px; }
.theme-trade .home-search-box select { min-width: 84px; color: var(--ink-2) !important; }
.theme-trade .home-search-box .sbtn-home { height: 46px; min-width: 46px; width: 46px; margin-left: 6px; border-radius: 12px !important; }
.theme-trade .home-search-box .sbtn-home:last-child { width: auto !important; padding: 0 15px !important; }
.theme-trade .home-hot-tags { margin-top: 22px; text-align: left; }
.theme-trade .home-hot-tags .label { margin-bottom: 10px; color: #829087 !important; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.theme-trade .home-hot-tags .tags-wrap { justify-content: flex-start; gap: 7px; }
.theme-trade .home-hot-tags .tag { padding: 6px 11px !important; font-size: 11px; }
.theme-trade .discovery-aside {
  align-self: center;
  padding: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(201,217,208,.9);
  border-radius: 22px;
  box-shadow: 0 24px 65px rgba(19,72,45,.10);
  backdrop-filter: blur(16px);
}
.theme-trade .aside-head span { display: block; color: var(--brand-green); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.theme-trade .aside-head b { display: block; margin-top: 6px; color: var(--ink); font-size: 16px; }
.theme-trade .signal-map { position: relative; height: 190px; margin: 14px 0 8px; overflow: hidden; }
.theme-trade .signal-core { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 58px; height: 58px; transform: translate(-50%,-50%); color: #fff; background: linear-gradient(145deg,#1a9d68,#0c7149); border: 7px solid #e1f4ea; border-radius: 50%; font-size: 10px; font-weight: 900; box-shadow: 0 9px 24px rgba(18,140,91,.24); }
.theme-trade .signal-node { position: absolute; z-index: 3; display: grid; place-items: center; width: 46px; height: 28px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; font-style: normal; box-shadow: var(--shadow-sm); }
.theme-trade .signal-node.n1 { left: 12px; top: 29px; }
.theme-trade .signal-node.n2 { right: 12px; top: 35px; }
.theme-trade .signal-node.n3 { left: 25px; bottom: 24px; }
.theme-trade .signal-node.n4 { right: 22px; bottom: 20px; }
.theme-trade .orbit { position: absolute; left: 50%; top: 50%; border: 1px dashed #b8d7c6; border-radius: 50%; transform: translate(-50%,-50%); }
.theme-trade .orbit.o1 { width: 150px; height: 92px; transform: translate(-50%,-50%) rotate(20deg); }
.theme-trade .orbit.o2 { width: 220px; height: 140px; transform: translate(-50%,-50%) rotate(-18deg); opacity: .7; }
.theme-trade .research-steps { display: grid; gap: 6px; }
.theme-trade .research-steps > div { display: grid; grid-template-columns: 29px 1fr; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 10px; transition: .15s; }
.theme-trade .research-steps > div:hover { background: #f0f7f3; }
.theme-trade .research-steps > div > span { display: grid; place-items: center; width: 29px; height: 29px; color: var(--brand-green-dark); background: var(--brand-green-soft); border-radius: 8px; font-size: 9px; font-weight: 800; }
.theme-trade .research-steps b { display: block; color: var(--ink); font-size: 11px; }
.theme-trade .research-steps small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; }
.theme-trade .data-ready { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 14px; color: var(--ink-3); border-top: 1px solid var(--line-soft); font-size: 9px; }
.theme-trade .data-ready i { width: 6px; height: 6px; background: #25d366; border-radius: 50%; }
.theme-trade .discovery-stage > .home-ads { grid-column: 1 / -1; width: min(760px, 100%); margin-top: -8px; }

/* 贸易数据终端 */
.theme-customs .app-wrap { gap: 0; padding: 0 18px 18px; background: #f4f7f5 !important; }
.theme-customs .top-bar { height: 80px; margin: 0 -18px; padding: 0 28px; }
.theme-customs .terminal-title { display: flex; align-items: center; gap: 12px; }
.theme-customs .terminal-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(145deg,#1a9d68,#0c7149); border-radius: 11px; font-size: 13px; font-weight: 900; box-shadow: 0 8px 20px rgba(18,140,91,.18); }
.theme-customs .terminal-kicker { display: block; color: var(--brand-green); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.theme-customs .terminal-title h1 { margin-top: 3px; font-size: 17px; }
.theme-customs .terminal-meta { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.theme-customs .terminal-meta > div { padding-left: 20px; border-left: 1px solid var(--line); }
.theme-customs .terminal-meta small { display: block; color: var(--ink-3); font-size: 8px; }
.theme-customs .terminal-meta strong { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ink-2); font-size: 10px; }
.theme-customs .terminal-meta i { width: 6px; height: 6px; background: #24b56b; border-radius: 50%; }
.theme-customs .top-bar::after { display: none; }
.theme-customs .filter-bar { margin-top: 16px; padding: 18px 20px 20px; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 16px; box-shadow: var(--shadow-sm); }
.theme-customs .filter-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.theme-customs .filter-heading span { display: block; color: var(--brand-green); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.theme-customs .filter-heading strong { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }
.theme-customs .filter-heading p { color: var(--ink-3); font-size: 9px; }
.theme-customs .result-panel { min-height: 0; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.theme-customs .result-heading { display: flex; align-items: center; gap: 10px; }
.theme-customs .result-heading > span { color: var(--ink); font-size: 13px; font-weight: 700; }
.theme-customs .result-heading .stats { padding-left: 10px; border-left: 1px solid var(--line); }
.theme-customs .empty-state { height: 100%; min-height: 300px; padding: 40px 20px; }
.theme-customs .empty-visual { display: flex; align-items: center; width: 190px; margin-bottom: 22px; }
.theme-customs .empty-visual i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #b9d8c7); }
.theme-customs .empty-visual i:last-child { background: linear-gradient(90deg, #b9d8c7, transparent); }
.theme-customs .empty-visual span { display: grid; place-items: center; width: 54px; height: 54px; color: #fff; background: var(--brand-green); border: 8px solid #e9f5ef; border-radius: 50%; font-size: 11px; font-weight: 900; box-shadow: 0 10px 25px rgba(18,140,91,.18); }
.theme-customs .empty-state .msg strong { display: block; color: var(--ink); font-size: 14px; text-align: center; }
.theme-customs .empty-state .msg small { display: block; margin-top: 7px; color: var(--ink-3); font-size: 10px; text-align: center; }

@media (max-width: 920px) {
  .theme-trade .discovery-stage { grid-template-columns: 1fr; align-content: start; width: min(760px, calc(100% - 36px)); padding-top: 100px; }
  .theme-trade .discovery-aside { display: none; }
  .theme-customs .terminal-meta { display: none; }
}

@media (max-width: 680px) {
  .theme-unified .workspace-brand { min-width: auto; }
  .theme-unified .header-nav { margin-left: auto; }
  .theme-unified .header-nav .nav-btn { min-width: auto; padding: 0 9px; }
  .theme-unified .header-nav .nav-btn > span:last-child small,
  .theme-unified .header-tools { display: none; }
  .theme-trade .discovery-stage { width: calc(100% - 24px); padding-top: 84px; }
  .theme-trade .discovery-intro h1 { font-size: 38px; }
  .theme-trade .home-search-box { height: auto; min-height: 58px; flex-wrap: wrap; padding: 7px !important; }
  .theme-trade .home-search-box input { min-width: 180px; padding-left: 8px; }
  .theme-customs .filter-heading p { display: none; }
}

/* Concept v4 — 清爽、克制、耐看 */
.theme-unified .workspace-header {
  height: 64px;
  padding: 0 28px;
  gap: 40px;
  background: #fff;
}
.theme-unified .workspace-brand-copy span,
.theme-unified .header-nav small,
.theme-unified .system-ready,
.theme-unified .header-divider { display: none; }
.theme-unified .header-nav { padding: 3px; gap: 3px; background: #f3f6f4; border-radius: 10px; }
.theme-unified .header-nav .nav-btn { min-width: 124px; height: 38px; padding: 0 12px; }
.theme-unified .header-nav b { font-size: 12px; font-weight: 650; }
.theme-unified .nav-symbol { width: 25px; height: 25px; border-radius: 7px; }
.theme-unified .user-copy small { display: none; }
.theme-unified .workspace-body { background: #fff; }

.theme-unified .login-page { padding: 20px; background: #f4f7f5 !important; }
.theme-unified .login-layout { grid-template-columns: 1fr 430px; width: min(980px, 96vw); min-height: min(620px, calc(100vh - 40px)); border-radius: 22px; box-shadow: 0 18px 55px rgba(20,63,43,.11); }
.theme-unified .login-story { padding: 48px 52px; color: var(--ink); background: #eef6f1 !important; }
.theme-unified .login-story::before,
.theme-unified .login-story::after,
.theme-unified .story-capabilities,
.theme-unified .story-trust { display: none; }
.theme-unified .story-brand strong { color: var(--ink); }
.theme-unified .story-brand span { color: var(--ink-3); }
.theme-unified .story-copy { margin: auto 0; }
.theme-unified .story-copy .eyebrow { color: var(--brand-green); }
.theme-unified .story-copy h2 { margin: 16px 0; color: var(--ink); font-size: clamp(34px,4vw,48px); }
.theme-unified .story-copy p { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.theme-unified .login-card { padding: 52px; }

.theme-trade .home-page { background: #f8faf9 !important; }
.theme-trade .home-page::before,
.theme-trade .discovery-aside,
.theme-trade .home-ads { display: none !important; }
.theme-trade .discovery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 64px 24px;
}
.theme-trade .discovery-main { width: min(820px, 100%); max-width: 820px; text-align: center; }
.theme-trade .discovery-intro { margin-bottom: 30px; }
.theme-trade .product-status { margin-bottom: 16px; letter-spacing: .06em; }
.theme-trade .discovery-intro h1 { font-size: clamp(38px,5vw,56px); line-height: 1.15; letter-spacing: -.05em; }
.theme-trade .discovery-intro p { margin: 15px auto 0; font-size: 14px; }
.theme-trade .home-search-box { height: 62px; background: #fff !important; border-radius: 14px !important; box-shadow: 0 10px 30px rgba(20,63,43,.08) !important; }
.theme-trade .home-hot-tags { margin-top: 20px; text-align: center; }
.theme-trade .home-hot-tags .tags-wrap { justify-content: center; }
.theme-trade .home-hot-tags .tag { color: #53645b !important; background: #fff !important; border-color: #e2e9e5 !important; }

.theme-customs .app-wrap { padding: 0 16px 16px; background: #f6f8f7 !important; }
.theme-customs .top-bar { height: 64px; margin: 0 -16px; padding: 0 24px; }
.theme-customs .terminal-mark { width: 34px; height: 34px; box-shadow: none; }
.theme-customs .terminal-kicker,
.theme-customs .terminal-meta,
.theme-customs .filter-heading p,
.theme-customs .filter-heading span { display: none; }
.theme-customs .filter-bar { margin-top: 12px; padding: 16px; border-radius: 12px; box-shadow: none; }
.theme-customs .filter-heading { margin-bottom: 13px; padding-bottom: 11px; }
.theme-customs .filter-heading strong { margin: 0; font-size: 13px; }
.theme-customs .result-panel { margin-top: 10px; border-radius: 12px; box-shadow: none; }
.theme-customs .result-header { min-height: 46px; }
.theme-customs .data-table th { height: 38px; }
.theme-customs .data-table td { height: 40px; }

.theme-trade .company-card,
.theme-trade .home-ad-card,
.theme-trade .ad-card,
.theme-admin .stat-card,
.theme-admin .table-wrap { box-shadow: none !important; }

@media (max-width: 680px) {
  .theme-unified .workspace-header { padding: 0 12px; gap: 12px; }
  .theme-unified .workspace-brand-copy { display: none; }
  .theme-unified .header-nav .nav-btn { min-width: auto; }
  .theme-trade .discovery-stage { padding: 54px 14px; }
}

/* Concept v5 — public search + paid data platform */
:root {
  --web-primary: #2563eb;
  --web-primary-dark: #1d4ed8;
  --web-primary-soft: #eff6ff;
  --web-ink: #172033;
  --web-muted: #667085;
  --web-line: #e4e7ec;
  --web-canvas: #f7f8fa;
}

.theme-trade,
.theme-customs,
.theme-unified,
.theme-register,
.theme-admin { font-size: 14px !important; color: var(--web-ink) !important; }
.theme-trade button,
.theme-trade input,
.theme-trade select,
.theme-customs button,
.theme-customs input,
.theme-customs select,
.theme-unified button,
.theme-unified input { font-family: inherit !important; font-size: 14px !important; }
.theme-trade small,
.theme-customs small,
.theme-unified small { font-size: 12px !important; }

.theme-trade .home-page { background: #fff !important; }
.theme-trade .public-header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #edf0f3;
}
.theme-trade .public-brand { display: flex; align-items: center; gap: 11px; color: var(--web-ink); text-decoration: none; }
.theme-trade .public-brand strong { display: block; font-size: 15px; font-weight: 700; }
.theme-trade .public-brand small { display: block; margin-top: 1px; color: #98a2b3; }
.theme-trade .public-nav { display: flex; align-items: center; gap: 6px; margin-left: 56px; }
.theme-trade .public-nav a,
.theme-trade .public-nav button { padding: 8px 12px; color: #667085; background: transparent; border: 0; border-radius: 8px; font-size: 13px !important; text-decoration: none; cursor: pointer; }
.theme-trade .public-nav a:hover,
.theme-trade .public-nav button:hover { color: var(--web-ink); background: #f5f7fa; }
.theme-trade .public-nav .active { color: var(--web-primary); background: var(--web-primary-soft); font-weight: 650; }
.theme-trade .public-nav .plus-entry { color: #344054; font-weight: 650; }
.theme-trade .home-user-area { top: 17px; right: 28px; display: flex; align-items: center; gap: 10px; padding: 0 !important; }
.theme-trade .membership-link {
  height: 34px;
  padding: 0 12px;
  color: #475467;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.theme-trade .membership-link:hover { color: var(--web-primary); background: var(--web-primary-soft); }
.theme-trade .user-btn { height: 34px; padding: 0 14px; color: #344054 !important; background: #fff !important; border: 1px solid #d0d5dd !important; border-radius: 8px !important; }
.theme-trade .user-btn.primary { color: #fff !important; background: var(--web-primary) !important; border-color: var(--web-primary) !important; }
.theme-trade .discovery-stage { min-height: calc(100vh - 68px); padding: 54px 24px 88px; }
.theme-trade .product-status { color: var(--web-primary); font-size: 13px; font-weight: 650; letter-spacing: 0; }
.theme-trade .product-status i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.1); }
.theme-trade .discovery-intro h1 { color: var(--web-ink); font-size: clamp(40px,5vw,56px); font-weight: 720; letter-spacing: -.045em; }
.theme-trade .discovery-intro h1 em { color: var(--web-primary); }
.theme-trade .discovery-intro p { color: var(--web-muted); font-size: 15px; }
.theme-trade .home-search-box { height: 64px; border: 1px solid #d0d5dd !important; border-radius: 14px !important; box-shadow: 0 12px 34px rgba(16,24,40,.09) !important; }
.theme-trade .home-search-box:focus-within { border-color: var(--web-primary) !important; box-shadow: 0 0 0 4px rgba(37,99,235,.08), 0 14px 36px rgba(16,24,40,.1) !important; }
.theme-trade .home-search-box .sbtn-home,
.theme-trade .sbtn { color: #fff !important; background: var(--web-primary) !important; border-color: var(--web-primary) !important; }
.theme-trade .home-search-box .sbtn-home:hover,
.theme-trade .sbtn:hover { background: var(--web-primary-dark) !important; }
.theme-trade .premium-action { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; padding: 0 13px !important; color: #344054 !important; background: #f2f4f7 !important; border-color: transparent !important; }
.theme-trade .premium-action span,
.theme-trade .premium-export span { padding: 2px 5px; color: var(--web-primary); background: #dbeafe; border-radius: 5px; font-size: 10px; font-weight: 800; }
.theme-trade .home-hot-tags .label { color: #98a2b3 !important; font-size: 12px; }
.theme-trade .home-hot-tags .tag { padding: 7px 11px !important; color: #475467 !important; background: #fff !important; border-color: #e4e7ec !important; font-size: 12px; }
.theme-trade .home-hot-tags .tag:hover { color: var(--web-primary) !important; background: var(--web-primary-soft) !important; border-color: #bfdbfe !important; }

.theme-trade .search-header { border-bottom-color: var(--web-line) !important; }
.theme-trade .logo-sm,
.theme-trade .company-card .ct { color: var(--web-ink) !important; }
.theme-trade .sbox:focus-within { border-color: var(--web-primary) !important; box-shadow: 0 0 0 3px rgba(37,99,235,.08) !important; }
.theme-trade .company-card { border-color: var(--web-line) !important; border-radius: 12px !important; }
.theme-trade .company-card:hover { border-color: #bfdbfe !important; box-shadow: 0 8px 24px rgba(16,24,40,.06) !important; }
.theme-trade .company-card .website,
.theme-trade .email { color: var(--web-primary) !important; }
.theme-trade .stats-bar { color: var(--web-muted) !important; }
.theme-trade .premium-export { display: inline-flex; align-items: center; gap: 6px; color: #344054 !important; border-radius: 8px !important; }

.theme-trade .membership-overlay.show { display: flex; }
.theme-trade .membership-modal { position: relative; width: min(760px, calc(100vw - 32px)); padding: 34px; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(16,24,40,.2); }
.theme-trade .membership-modal > .close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; color: #667085; background: #f2f4f7; border: 0; border-radius: 8px; cursor: pointer; }
.theme-trade .membership-copy { max-width: 600px; }
.theme-trade .membership-copy > span { color: var(--web-primary); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.theme-trade .membership-copy h2 { margin-top: 8px; color: var(--web-ink); font-size: 24px; letter-spacing: -.025em; }
.theme-trade .membership-copy p { margin-top: 10px; color: var(--web-muted); font-size: 14px; line-height: 1.7; }
.theme-trade .plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.theme-trade .plan-card { position: relative; padding: 22px; border: 1px solid var(--web-line); border-radius: 14px; }
.theme-trade .pro-plan { border: 2px solid var(--web-primary); }
.theme-trade .plan-label { position: absolute; top: -11px; right: 16px; padding: 4px 9px; color: #fff; background: var(--web-primary); border-radius: 999px; font-size: 11px; font-weight: 700; }
.theme-trade .plan-name { color: #475467; font-size: 13px; font-weight: 650; }
.theme-trade .plan-price { margin-top: 8px; color: var(--web-ink); font-size: 22px; font-weight: 750; }
.theme-trade .plan-card ul { display: grid; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.theme-trade .plan-card li { color: #475467; font-size: 13px; }
.theme-trade .plan-card li::before { content: "✓"; margin-right: 8px; color: var(--web-primary); font-weight: 800; }
.theme-trade .plan-card button { width: 100%; height: 40px; color: #344054; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; cursor: pointer; }
.theme-trade .pro-plan button { color: #fff; background: var(--web-primary); border-color: var(--web-primary); }
.theme-trade .membership-note { margin-top: 14px; color: #98a2b3; font-size: 12px; text-align: center; }

.theme-customs .app-wrap { background: var(--web-canvas) !important; }
.theme-customs .terminal-mark { background: var(--web-primary) !important; }
.theme-customs .search-btn { background: var(--web-primary) !important; box-shadow: none; }
.theme-customs .search-btn:hover { background: var(--web-primary-dark) !important; }
.theme-customs .result-header .stats strong,
.theme-customs .data-table .amt { color: var(--web-primary) !important; }
.theme-customs .data-table tbody tr:hover { background: var(--web-primary-soft) !important; box-shadow: inset 3px 0 var(--web-primary); }
.theme-customs .page-btn.active { background: var(--web-primary) !important; border-color: var(--web-primary) !important; }
.theme-customs .premium-export { display: inline-flex; align-items: center; gap: 6px; }
.theme-customs .premium-export b { padding: 2px 5px; color: var(--web-primary); background: #dbeafe; border-radius: 5px; font-size: 10px; }

.theme-unified .header-nav .nav-btn.active { box-shadow: 0 2px 8px rgba(37,99,235,.1); }
.theme-unified .nav-symbol-blue,
.theme-unified .nav-symbol-green { color: var(--web-primary-dark); background: var(--web-primary-soft); }
.theme-unified .user-av,
.theme-unified .login-btn { background: var(--web-primary) !important; }
.theme-unified .login-btn:hover { background: var(--web-primary-dark) !important; }

@media (max-width: 760px) {
  .theme-trade .public-header { padding: 0 14px; }
  .theme-trade .public-nav { display: none; }
  .theme-trade .public-brand small { display: none; }
  .theme-trade .home-user-area { right: 12px; }
  .theme-trade .plan-grid { grid-template-columns: 1fr; }
  .theme-trade .membership-modal { max-height: calc(100vh - 24px); padding: 26px 20px; overflow-y: auto; }
}

/* Web identity uses a text wordmark; the plugin icon/name never appears here. */
.theme-trade .public-brand > strong { color: var(--brand-primary, #2563eb); font-size: 20px; font-weight: 760; letter-spacing: -.035em; }
.theme-unified .workspace-brand-copy strong { color: var(--brand-primary, #2563eb); font-size: 19px; letter-spacing: -.03em; }
.theme-unified .story-brand strong,
.theme-unified .login-mobile-brand strong { color: var(--brand-primary, #2563eb); font-size: 20px; letter-spacing: -.03em; }
.theme-trade .logo-sm { color: var(--brand-primary, #2563eb) !important; }
.theme-register .card::before { display: none !important; }

/* The unified workspace already owns navigation and account controls. */
html.embedded-app .theme-trade .public-header,
html.embedded-app .theme-trade .home-user-area {
  display: none !important;
}

html.embedded-app .theme-trade .discovery-stage {
  min-height: 100vh;
}

html.embedded-app .theme-trade .search-header .logo-sm,
html.embedded-app .theme-trade .search-header .user-area {
  display: none !important;
}

html.embedded-app .theme-trade .search-header .container {
  max-width: 1180px;
}

html.embedded-app .theme-trade .search-header .sform {
  max-width: 760px;
}

/* Professional positioning for the public search homepage. */
.theme-trade .discovery-main {
  width: min(880px, 100%);
  max-width: 880px;
}

.theme-trade .discovery-intro h1 {
  font-size: clamp(42px, 5.2vw, 62px);
  font-weight: 760;
  letter-spacing: -.055em;
}

.theme-trade .discovery-intro p {
  max-width: 680px;
  line-height: 1.75;
}

.theme-trade .professional-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 18px;
  color: #667085;
  font-size: 12px;
}

.theme-trade .professional-proof span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.theme-trade .professional-proof span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--web-primary);
  border-radius: 50%;
}

.theme-trade .professional-proof span + span {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid #e4e7ec;
}

.theme-trade .home-hot-tags .tags-wrap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.theme-trade .home-hot-tags .tag {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  white-space: nowrap;
}

.theme-trade .home-hot-tags .tag-icon {
  width: 20px;
  margin-right: 5px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

@media (max-width: 900px) {
  .theme-trade .home-hot-tags .tags-wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Login and registration primary actions must read as enabled buttons. */
.theme-trade .modal .msub {
  color: #fff !important;
  background: var(--web-primary) !important;
  border: 1px solid var(--web-primary) !important;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(37, 99, 235, .2);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.theme-trade .modal .msub:hover:not(:disabled) {
  color: #fff !important;
  background: var(--web-primary-dark) !important;
  border-color: var(--web-primary-dark) !important;
  box-shadow: 0 9px 22px rgba(37, 99, 235, .27);
}

.theme-trade .modal .msub:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, .18);
}

.theme-trade .modal .msub:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.theme-trade .modal .msub:disabled {
  color: #fff !important;
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  .theme-trade .discovery-intro h1 {
    font-size: 39px;
  }

  .theme-trade .professional-proof {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .theme-trade .professional-proof span + span {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .theme-trade .home-hot-tags .tags-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Refined public-search proportions: quieter headline and standard controls. */
.theme-trade .discovery-stage {
  padding-top: 44px;
  padding-bottom: 72px;
}

.theme-trade .discovery-intro {
  margin-bottom: 24px;
}

.theme-trade .product-status {
  margin-bottom: 13px;
  font-size: 12px;
}

.theme-trade .discovery-intro h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  letter-spacing: -.045em;
}

.theme-trade .discovery-intro p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
}

.theme-trade .home-search-box {
  height: 54px;
  padding: 0 7px 0 16px !important;
  border-radius: 13px !important;
}

.theme-trade .home-search-box input {
  height: 52px;
  font-size: 14px;
}

.theme-trade .home-search-box select {
  min-width: 78px;
  font-size: 12px;
}

.theme-trade .home-search-box .sbtn-home {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 10px !important;
}

.theme-trade .home-search-box .sbtn-home:last-child {
  height: 40px;
  padding: 0 13px !important;
  font-size: 12px;
}

.theme-trade .home-search-box .tbtn {
  width: 34px;
  height: 34px;
}

@media (max-width: 680px) {
  .theme-trade .discovery-intro h1 { font-size: 34px; }
  .theme-trade .home-search-box { min-height: 52px; }
}

/* Social search module */
.theme-trade .public-nav .social-entry { color: #344054; font-weight: 650; }
.theme-trade .social-search-overlay { padding: 24px; background: rgba(15,23,42,.38); backdrop-filter: blur(5px); }
.theme-trade .social-search-overlay.show { display: flex; }
.theme-trade .social-search-box { width: min(920px, 96vw); max-height: min(820px, 92vh); overflow: hidden; background: #fff; border: 1px solid #e4e7ec; border-radius: 20px; box-shadow: 0 28px 90px rgba(15,23,42,.24); }
.theme-trade .social-search-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 25px 28px 20px; border-bottom: 1px solid #eef1f4; }
.theme-trade .social-search-header span { color: var(--web-primary); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.theme-trade .social-search-header h2 { margin: 5px 0 2px; color: var(--web-ink); font-size: 23px; letter-spacing: -.025em; }
.theme-trade .social-search-header p { color: #667085; font-size: 12px; }
.theme-trade .social-search-header button { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; color: #667085; background: #f2f4f7; border: 0; border-radius: 9px; cursor: pointer; }
.theme-trade .social-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 7px; padding: 18px 28px 12px; }
.theme-trade .social-platforms label { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 40px; color: #667085; background: #f8fafc; border: 1px solid #e4e7ec; border-radius: 10px; font-size: 11px; font-weight: 650; cursor: pointer; }
.theme-trade .social-platforms label.active { color: var(--web-primary); background: #eff6ff; border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(37,99,235,.06); }
.theme-trade .social-platforms input { position: absolute; opacity: 0; pointer-events: none; }
.theme-trade .social-platforms b { display: grid; flex: 0 0 21px; place-items: center; width: 21px; height: 21px; color: #fff; background: #475467; border-radius: 6px; font-size: 10px; }
.theme-trade .social-platforms label.active b { background: var(--web-primary); }
.theme-trade .social-platforms span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-trade .social-search-form { display: flex; gap: 9px; padding: 4px 28px 14px; }
.theme-trade .social-search-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; color: var(--web-ink); background: #fff; border: 1px solid #cfd7e3; border-radius: 10px; outline: 0; }
.theme-trade .social-search-form input:focus { border-color: var(--web-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.theme-trade .social-search-form button { min-width: 88px; color: #fff; background: var(--web-primary); border: 0; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.theme-trade .social-search-form button:disabled { opacity: .55; cursor: wait; }
.theme-trade .social-search-status { min-height: 30px; padding: 0 28px 10px; color: #667085; font-size: 11px; }
.theme-trade .social-search-results { max-height: 440px; overflow: auto; padding: 0 28px; border-top: 1px solid #f0f2f5; }
.theme-trade .social-search-empty { padding: 72px 0; color: #98a2b3; text-align: center; font-size: 13px; }
.theme-trade .social-result-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 17px 2px; border-bottom: 1px solid #eef1f4; }
.theme-trade .social-result-card h3 { margin: 0 0 4px; color: #1d2939; font-size: 14px; }
.theme-trade .social-result-site { display: block; overflow: hidden; margin-bottom: 6px; color: #475467; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.theme-trade .social-result-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #667085; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.theme-trade .social-result-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.theme-trade .social-result-meta span { padding: 3px 7px; color: #475467; background: #f2f4f7; border-radius: 6px; font-size: 9px; }
.theme-trade .social-profile-link { align-self: center; min-width: 112px; padding: 8px 11px; color: #fff !important; background: var(--web-primary); border-radius: 9px; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none !important; }
.theme-trade .social-search-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 9px 28px; border-top: 1px solid #eef1f4; }
.theme-trade .social-search-pagination button { height: 30px; padding: 0 11px; color: #475467; background: #fff; border: 1px solid #d0d5dd; border-radius: 7px; font-size: 11px; cursor: pointer; }
.theme-trade .social-search-pagination button.active { color: #fff; background: var(--web-primary); border-color: var(--web-primary); }
.theme-trade .social-search-pagination button:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 760px) {
  .theme-trade .public-header { padding-inline: 12px; }
  .theme-trade .public-nav { margin-left: 12px; }
  .theme-trade .public-nav > a { display: none; }
  .theme-trade .social-search-overlay { padding: 10px; }
  .theme-trade .social-search-box { max-height: 95vh; }
  .theme-trade .social-platforms { grid-template-columns: repeat(3, minmax(0,1fr)); padding-inline: 16px; }
  .theme-trade .social-search-header, .theme-trade .social-search-form { padding-inline: 16px; }
  .theme-trade .social-search-status, .theme-trade .social-search-results { padding-inline: 16px; }
  .theme-trade .social-result-card { grid-template-columns: 1fr; }
  .theme-trade .social-profile-link { justify-self: start; }
}
