:root {
      --bg: #f4f7fb;
      --panel: #ffffff;
      --panel-2: #f9fbff;
      --ink: #101828;
      --muted: #667085;
      --line: #dbe3f0;
      --blue: #156ff7;
      --blue-2: #0d5ad0;
      --blue-soft: #eaf2ff;
      --green: #12b76a;
      --green-soft: #ecfdf3;
      --amber: #f79009;
      --amber-soft: #fff7ed;
      --red: #f04438;
      --red-soft: #fef3f2;
      --purple: #7a5af8;
      --shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
      --radius: 10px;
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body {
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at top right, rgba(21,111,247,.12), transparent 340px),
        linear-gradient(180deg, #f7faff 0%, #f3f6fb 55%, #eef3f9 100%);
      font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
      font-size: 14px;
      letter-spacing: 0;
    }
    button, input, select {
      font: inherit;
    }
    button {
      cursor: pointer;
    }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 22px;
      color: #fff;
      background: linear-gradient(135deg, #0f5ad7, #2c88ff);
      box-shadow: 0 12px 30px rgba(10, 60, 160, .25);
    }
    .topbar-loading {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3px;
      overflow: hidden;
      background: rgba(255,255,255,.18);
    }
    .topbar-loading-fill {
      width: 38%;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, #fff, #d8b4fe, transparent);
      animation: loadingSweep 1.1s ease-in-out infinite;
    }
    @keyframes loadingSweep {
      from { transform: translateX(-120%); }
      to { transform: translateX(280%); }
    }
    .global-data-loading {
      position: fixed;
      inset: 72px 0 0 220px;
      z-index: 18;
      display: grid;
      place-items: center;
      padding: 24px;
      pointer-events: none;
      background: rgba(244, 247, 251, .36);
      backdrop-filter: blur(1px);
    }
    .global-data-loading-card {
      display: grid;
      justify-items: center;
      width: min(420px, calc(100vw - 48px));
      padding: 24px 28px 20px;
      color: #344054;
      text-align: center;
      border: 1px solid #cbdcf8;
      border-radius: 8px;
      background: rgba(255, 255, 255, .97);
      box-shadow: 0 18px 48px rgba(16, 67, 145, .18);
    }
    .global-data-loading-icon {
      width: 32px;
      height: 32px;
      margin-bottom: 14px;
      border: 3px solid #d7e4f7;
      border-top-color: var(--blue);
      border-radius: 999px;
      animation: spin .8s linear infinite;
    }
    .global-data-loading-card strong { font-size: 16px; }
    .global-data-loading-card > span { margin-top: 7px; color: var(--muted); font-size: 13px; }
    .global-data-loading-lines { display: grid; gap: 6px; width: 78%; margin-top: 18px; }
    .global-data-loading-lines i {
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(90deg, #edf4ff 0%, #cfe1ff 48%, #edf4ff 100%);
      background-size: 220% 100%;
      animation: skeletonSweep 1.2s ease-in-out infinite;
    }
    .global-data-loading-lines i:nth-child(2) { width: 82%; margin: 0 auto; }
    .global-data-loading-lines i:nth-child(3) { width: 62%; margin: 0 auto; }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      cursor: pointer;
      transition: opacity .2s ease;
    }
    .brand:hover {
      opacity: .8;
    }
    .brand:focus-visible {
      outline: 2px solid var(--color-primary, #4e82ff);
      outline-offset: 4px;
      border-radius: 8px;
    }
    .brand-logo {
      flex: 0 0 auto;
      width: 46px;
      height: 46px;
      filter: drop-shadow(0 8px 14px rgba(12, 62, 150, .24));
    }
    .brand-logo svg {
      display: block;
      width: 100%;
      height: 100%;
    }
    .brand-copy {
      min-width: 0;
    }
    .brand-title {
      font-size: 22px;
      font-weight: 800;
      line-height: 1.1;
    }
    .brand-subtitle {
      color: rgba(255,255,255,.84);
      font-size: 12px;
      margin-top: 3px;
    }
    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto;
      min-width: 0;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .topbar .select,
    .topbar .button {
      border-color: rgba(255,255,255,.22);
      background: rgba(255,255,255,.12);
      color: #fff;
    }
    .topbar .select:disabled {
      color: rgba(255,255,255,.55);
      background: rgba(255,255,255,.08);
    }
    .status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0 12px;
      height: 36px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      color: rgba(255,255,255,.92);
      font-size: 13px;
      white-space: nowrap;
    }
    .status-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #d0d5dd;
    }
    .status-dot.ok { background: #7ce5ad; }
    .status-dot.busy { background: #ffd36b; }
    .status-dot.error { background: #ff8e88; }
    .shell {
      display: grid;
      grid-template-columns: 216px minmax(0, 1fr);
      min-height: calc(100vh - 72px);
    }
    .sidebar {
      padding: 22px 14px;
      background: rgba(255,255,255,.88);
      backdrop-filter: blur(14px);
      border-right: 1px solid rgba(219,227,240,.8);
    }
    .sidebar-nav { display: grid; gap: 8px; }
    .nav-title {
      padding: 0 12px 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }
    .nav-module {
      overflow: hidden;
      border: 1px solid transparent;
      border-radius: 12px;
      transition: border-color .18s ease, background .18s ease;
    }
    .nav-module.active {
      border-color: #d7e5fb;
      background: #f7faff;
    }
    .nav-module-button {
      position: relative;
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      align-items: center;
      gap: 9px;
      width: 100%;
      min-height: 46px;
      padding: 8px 11px;
      border: 0;
      background: transparent;
      color: #344054;
      cursor: pointer;
      text-align: left;
      font: 800 14px/1.2 Arial, "Microsoft YaHei", sans-serif;
    }
    .nav-module.active > .nav-module-button { color: var(--blue); }
    .nav-module-icon {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 9px;
      background: #eef4ff;
      color: var(--blue);
      font-size: 14px;
      font-weight: 900;
    }
    .nav-submenu {
      display: none;
      padding: 0 8px 8px 47px;
    }
    .nav-module.active .nav-submenu { display: grid; gap: 3px; }
    .nav-button {
      width: 100%;
      margin: 0;
      min-height: 34px;
      padding: 7px 10px;
      border: 1px solid transparent;
      border-radius: 8px;
      text-align: left;
      background: transparent;
      color: #344054;
      font-weight: 700;
      text-align: left;
    }
    .nav-button.active {
      color: var(--blue);
      background: var(--blue-soft);
      border-color: #cfe0ff;
    }
    .nav-button:disabled { color: #98a2b3; cursor: not-allowed; opacity: .65; }
    .nav-soon {
      float: right;
      color: #98a2b3;
      font-size: 10px;
      font-weight: 700;
    }
    .finance-coming-panel { max-width: 920px; }
    .finance-coming-body { display: flex; align-items: center; gap: 22px; padding: 34px; }
    .finance-coming-body h2 { margin: 0 0 8px; color: #101828; }
    .finance-coming-body p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.75; }
    .finance-coming-mark { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 auto; border-radius: 20px; background: #eef4ff; color: var(--blue); font-size: 32px; font-weight: 900; }
    .workspace-subnav-shell {
      position: sticky;
      top: 72px;
      z-index: 28;
      margin: -8px 0 16px;
      padding: 8px;
      border: 1px solid #dfe7f3;
      border-radius: 12px;
      background: rgba(255,255,255,.94);
      box-shadow: 0 8px 18px rgba(15,23,42,.04);
      backdrop-filter: blur(12px);
    }
    .workspace-subnav { display: none; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
    .workspace-subnav.active { display: flex; }
    .workspace-subnav .nav-button {
      width: auto;
      min-height: 34px;
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 8px;
      white-space: nowrap;
    }
    .workspace-subnav .nav-button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
    .workspace-subnav .nav-count-badge,
    .nav-module-button > .nav-count-badge {
      position: static;
      transform: none;
      flex: 0 0 auto;
    }
    .workspace-context-bar {
      display: grid;
      grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(130px, 1fr));
      gap: 10px;
      align-items: stretch;
      margin: -6px 0 18px;
      padding: 10px;
      border: 1px solid #dfe7f3;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 6px 16px rgba(15,23,42,.035);
    }
    .workspace-scope-picker,
    .workspace-context-item {
      display: grid;
      align-content: center;
      gap: 4px;
      min-width: 0;
      min-height: 54px;
      padding: 7px 10px;
      border-radius: 9px;
      background: #f8faff;
    }
    .workspace-scope-picker > span,
    .workspace-context-item > span { color: #667085; font-size: 11px; font-weight: 700; }
    .workspace-scope-picker .select { width: 100%; min-width: 0; height: 32px; padding-top: 4px; padding-bottom: 4px; background: #fff; }
    .workspace-context-item strong { overflow: hidden; color: #101828; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
    .workspace-context-item[data-state="loading"] strong { color: #175cd3; }
    .workspace-context-item[data-state="unavailable"] strong { color: #667085; font-weight: 700; }
    @media (max-width: 1180px) {
      .workspace-context-bar { grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(150px, 1fr)); }
    }
    @media (max-width: 720px) {
      .workspace-context-bar { grid-template-columns: 1fr 1fr; }
      .workspace-scope-picker { grid-column: 1 / -1; }
    }
    .side-note {
      margin: 18px 8px 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--muted);
      line-height: 1.7;
      font-size: 12px;
    }
    main {
      min-width: 0;
      padding: 26px;
    }
    .section {
      display: none;
    }
    .section.active {
      display: block;
    }
    .workbench-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 14px;
    }
    .workbench-head h1, .workbench-toolbar h2 { margin: 0; letter-spacing: 0; }
    .workbench-head h1 { font-size: 28px; }
    .workbench-head p { margin: 7px 0 0; color: rgba(255,255,255,.9); }
    .workbench-hero { padding: 22px 24px; border-radius: 8px; color: #fff; background: linear-gradient(110deg, #1261e8, #4ca9f8); box-shadow: 0 12px 28px rgba(29, 105, 222, .16); }
    .workbench-hero-stats { display: flex; gap: 10px; }
    .workbench-hero-stats > div { min-width: 132px; padding: 11px 14px; border-radius: 8px; background: rgba(255,255,255,.16); }
    .workbench-hero-stats span, .workbench-hero-stats strong { display: block; }
    .workbench-hero-stats span { font-size: 12px; color: rgba(255,255,255,.78); }
    .workbench-hero-stats strong { margin-top: 4px; font-size: 16px; }
    .workbench-snapshot-state { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 12px 16px; border: 1px solid #b9d7ff; border-radius: 8px; background: #f2f7ff; color: #344054; transition: border-color .18s ease, background .18s ease; }
    .workbench-snapshot-state[data-state="complete"] { border-color: #86d7b0; background: #ecfdf3; }
    .workbench-snapshot-state[data-state="incomplete"] { border-color: #f7b4ae; background: #fff4f2; }
    .workbench-snapshot-state[data-state="running"] { border-color: #84adff; background: #eff6ff; }
    .workbench-snapshot-state > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .workbench-snapshot-state strong { color: #101828; font-size: 14px; }
    .workbench-snapshot-state p { max-width: 560px; margin: 0; color: #667085; font-size: 12px; line-height: 1.5; text-align: right; }
    .workbench-snapshot-label { color: #175cd3; font-size: 12px; font-weight: 800; }
    .workbench-snapshot-state[data-state="complete"] .workbench-snapshot-label { color: #067647; }
    .workbench-snapshot-state[data-state="incomplete"] .workbench-snapshot-label { color: #b42318; }
    .workbench-overview {
      display: grid;
      grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.45fr);
      gap: 14px;
      margin: 18px 0 24px;
    }
    .workbench-score, .workbench-risk-panel {
      min-height: 210px;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }
    .workbench-score {
      --health-color: #12b76a;
      display: flex;
      align-items: center;
      gap: 24px;
      overflow: hidden;
      border-color: color-mix(in srgb, var(--health-color) 34%, #d8e3f4);
      background: linear-gradient(135deg, color-mix(in srgb, var(--health-color) 9%, #fff), #fff 68%);
      box-shadow: 0 12px 28px rgba(28, 55, 90, .08);
    }
    .workbench-score[data-health="good"] { --health-color: #2e90fa; }
    .workbench-score[data-health="warning"] { --health-color: #f79009; }
    .workbench-score[data-health="critical"] { --health-color: #d92d20; }
    .workbench-score[data-health="pending"] { --health-color: #98a2b3; }
    .health-gauge {
      position: relative;
      flex: 0 0 154px;
      width: 154px;
      height: 154px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: conic-gradient(var(--health-color) calc(var(--health-score) * 1%), #e7edf5 0);
      box-shadow: 0 0 0 8px color-mix(in srgb, var(--health-color) 9%, transparent), 0 10px 26px color-mix(in srgb, var(--health-color) 22%, transparent);
    }
    .health-gauge::before {
      content: "";
      position: absolute;
      inset: 13px;
      border-radius: 50%;
      background: #fff;
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--health-color) 18%, #e5eaf2);
    }
    .health-gauge::after {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      background: repeating-conic-gradient(from -1deg, transparent 0 8deg, #fff 8deg 10deg);
      -webkit-mask: radial-gradient(circle, transparent 69%, #000 70% 75%, transparent 76%);
      mask: radial-gradient(circle, transparent 69%, #000 70% 75%, transparent 76%);
    }
    .health-gauge-core { position: relative; z-index: 1; display: grid; justify-items: center; }
    .health-gauge-core strong { color: var(--health-color); font-size: 48px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
    .health-gauge-core span { margin-top: 5px; color: #98a2b3; font-size: 12px; font-weight: 700; }
    .workbench-score-copy { min-width: 0; }
    .workbench-score-eyebrow { color: #667085; font-size: 13px; font-weight: 700; }
    .workbench-score-level { margin-top: 6px; color: var(--health-color); font-size: 27px; font-weight: 900; }
    .workbench-score-summary { margin-top: 8px; color: #344054; font-size: 14px; font-weight: 700; line-height: 1.5; }
    .workbench-score-meta { margin-top: 10px; color: #667085; font-size: 12px; }
    .workbench-recheck-button { min-width: 126px; margin-top: 15px; box-shadow: 0 7px 16px rgba(21, 112, 239, .22); }
    .workbench-risk-panel { box-shadow: 0 12px 28px rgba(28, 55, 90, .06); }
    .workbench-risk-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
    .workbench-risk-heading span, .workbench-risk-heading strong { display: block; }
    .workbench-risk-heading span { color: #667085; font-size: 12px; font-weight: 700; }
    .workbench-risk-heading strong { margin-top: 3px; color: #101828; font-size: 18px; }
    .workbench-risk-heading small { color: #98a2b3; }
    .workbench-risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .workbench-stat { min-width: 0; padding: 14px; border: 1px solid #e4eaf3; border-radius: 7px; background: #f8fafc; }
    .workbench-stat-top { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; }
    .workbench-stat-dot { width: 8px; height: 8px; border-radius: 50%; background: #1570ef; }
    .workbench-stat-label { color: #475467; font-size: 13px; font-weight: 800; }
    .workbench-stat-value { color: #101828; font-size: 26px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
    .workbench-stat-track { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #e8edf4; }
    .workbench-stat-track i { display: block; height: 100%; border-radius: inherit; background: #1570ef; }
    .workbench-stat-help { margin-top: 10px; color: #667085; font-size: 11px; line-height: 1.45; }
    .workbench-stat.severe .workbench-stat-dot, .workbench-stat.severe .workbench-stat-track i { background: #d92d20; }
    .workbench-stat.warning .workbench-stat-dot, .workbench-stat.warning .workbench-stat-track i { background: #f79009; }
    .workbench-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
    .workbench-toolbar h2 { font-size: 18px; }
    .workbench-toolbar span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
    .workbench-ignored-toggle { color: #475467; font-size: 13px; white-space: nowrap; }
    .workbench-list { display: grid; gap: 10px; }
    .workbench-item {
      display: grid;
      grid-template-columns: 8px minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      padding: 15px 16px 15px 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }
    .workbench-item.ignored { opacity: .62; }
    .workbench-priority { align-self: stretch; border-radius: 7px 0 0 7px; background: #1570ef; }
    .workbench-item[data-severity="critical"] .workbench-priority { background: #d92d20; }
    .workbench-item[data-severity="warning"] .workbench-priority { background: #f79009; }
    .workbench-item-title { font-weight: 800; color: var(--text); }
    .workbench-item-description { margin-top: 4px; color: #475467; font-size: 13px; line-height: 1.5; }
    .workbench-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.store-credential-invalid { color: #d92d20 !important; font-weight: 800; }
.workbench-item-actions { display: flex; gap: 8px; }
.review-stars { color: #f79009; letter-spacing: 1px; white-space: nowrap; }
.review-text { max-width: 520px; color: #344054; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-review-store].active { border-color: #84adff; background: #f2f7ff; }
    @media (max-width: 900px) {
      .workbench-overview { grid-template-columns: 1fr; }
      .workbench-item { grid-template-columns: 8px minmax(0, 1fr); }
      .workbench-item-actions { grid-column: 2; }
    }
    @media (max-width: 600px) {
      .workbench-head, .workbench-toolbar { align-items: stretch; flex-direction: column; }
      .workbench-hero-stats { width: 100%; }
      .workbench-hero-stats > div { min-width: 0; flex: 1; }
      .workbench-snapshot-state { align-items: flex-start; flex-direction: column; }
      .workbench-snapshot-state p { max-width: none; text-align: left; }
      .workbench-score { align-items: flex-start; flex-direction: column; }
      .health-gauge { align-self: center; }
      .workbench-risk-grid { grid-template-columns: 1fr; }
      .workbench-risk-heading { align-items: flex-start; flex-direction: column; }
      .workbench-item-actions { flex-wrap: wrap; }
    }
    .hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
      padding: 22px 24px;
      border-radius: 12px;
      color: #fff;
      background: linear-gradient(135deg, #0e5ce3 0%, #2d8cff 60%, #5db4ff 100%);
      box-shadow: 0 18px 36px rgba(21,111,247,.22);
    }
    .hero > * {
      min-width: 0;
      max-width: 100%;
    }
    .hero-heading {
      flex: 1 1 auto;
      align-self: center;
    }
    .hero h1 {
      margin: 0 0 8px;
      font-size: 28px;
      line-height: 1.15;
      font-weight: 900;
      letter-spacing: 0;
    }
    .hero .hero-subtitle {
      margin: 0;
      color: rgba(255,255,255,.88);
      max-width: 760px;
      font-size: 14px;
      line-height: 1.6;
      font-weight: 500;
    }
    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px;
    }
    .hero-badge {
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(255,255,255,.14);
      min-width: 128px;
      max-width: 240px;
    }
    .hero-badge-label {
      color: rgba(255,255,255,.76);
      font-size: 12px;
      margin-bottom: 3px;
    }
    .hero-badge-value {
      font-size: 16px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }
    .grid {
      display: grid;
      gap: 18px;
    }
    .grid.kpi-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 18px;
    }
    .panel {
      background: rgba(255,255,255,.95);
      border: 1px solid rgba(219,227,240,.9);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
    }
    .panel-title {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.2;
    }
    .panel-subtitle {
      color: var(--muted);
      font-size: 12px;
      margin-top: 4px;
    }
    .panel-body {
      padding: 18px;
    }
    .card {
      padding: 18px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 10px 24px rgba(16,24,40,.04);
    }
    .metric-card {
      display: grid;
      gap: 8px;
      min-height: 138px;
      background: #fff;
    }
    .metric-card.accent-blue {
      border-color: #e4e7ec;
      background: #fff;
    }
    .metric-card.accent-purple {
      border-color: #e4e7ec;
      background: #fff;
    }
    .metric-card.accent-amber {
      border-color: #e4e7ec;
      background: #fff;
    }
    .metric-card.accent-green {
      border-color: #e4e7ec;
      background: #fff;
    }
    .metric-label {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .metric-value {
      font-size: 30px;
      font-weight: 900;
      line-height: 1.05;
      color: #101828;
    }
    .metric-row {
      display: flex;
      align-items: baseline;
      gap: 10px;
      flex-wrap: wrap;
    }
    /* 趋势标签贴在数字右侧、与基线对齐 */
    .metric-row .mini-trend {
      display: inline-flex;
      align-self: baseline;
      margin-top: 0;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }
    .metric-meta {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .metric-trend {
      font-size: 12px;
      font-weight: 800;
    }
    .metric-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 30px;
      padding: 0 11px;
      border-radius: 999px;
      background: #eff4ff;
      color: var(--blue);
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    .chip.neutral {
      background: #f2f4f7;
      color: #344054;
    }
    .chip.green {
      background: var(--green-soft);
      color: #067647;
    }
    .chip.red {
      background: var(--red-soft);
      color: #b42318;
    }
    .chip.orange {
      background: #fff4e8;
      color: #b54708;
    }
    .price-index-badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }
    .price-index-badge.unfavorable {
      background: #fee4e2;
      color: #b42318;
    }
    .price-index-badge.moderate {
      background: #fff3d6;
      color: #b54708;
    }
    .price-index-badge.favorable {
      background: #dcfae6;
      color: #067647;
    }
    .price-index-badge.none {
      background: #dff7f7;
      color: #087f8c;
    }
    .controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: end;
    }
    .field {
      display: grid;
      gap: 6px;
      min-width: 140px;
    }
    .field-label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .field.grow {
      flex: 1;
      min-width: 220px;
    }
    .field label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .quick-range {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .quick-range-button {
      height: 36px;
      padding: 0 14px;
      border: 1px solid #dbe3f0;
      border-radius: 8px;
      background: #f3f6fb;
      color: #344054;
      font-weight: 800;
      cursor: pointer;
    }
    .quick-range-button.active {
      border-color: var(--blue);
      background: var(--blue);
      color: #fff;
    }
    .date-input {
      height: 36px;
      border: 1px solid #dbe3f0;
      border-radius: 8px;
      padding: 0 10px;
      color: var(--ink);
      background: #fff;
      font-weight: 700;
    }
    .field-help {
      position: relative;
      width: max-content;
      margin-top: 0;
    }
    .field-help-trigger {
      color: var(--blue);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      user-select: none;
    }
    .field-help-popover {
      position: absolute;
      right: 0;
      bottom: calc(100% + 10px);
      z-index: 80;
      width: min(520px, 78vw);
      padding: 12px 14px;
      color: #667085;
      font-size: 12px;
      line-height: 1.45;
      border-radius: 10px;
      background: #fff;
      border: 1px solid #dbe8ff;
      box-shadow: 0 16px 36px rgba(16, 24, 40, .16);
      opacity: 0;
      transform: translateY(4px);
      pointer-events: none;
      transition: opacity .12s ease, transform .12s ease;
    }
    .field-help:hover .field-help-popover,
    .field-help:focus-within .field-help-popover {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .field-help-popover::before {
      content: "";
      position: absolute;
      bottom: -6px;
      right: 26px;
      width: 10px;
      height: 10px;
      background: #fff;
      border-right: 1px solid #dbe8ff;
      border-bottom: 1px solid #dbe8ff;
      transform: rotate(45deg);
    }
    .field-help-popover-title {
      margin-bottom: 6px;
      color: #101828;
      font-weight: 900;
    }
    .field-help-popover strong {
      color: #1d4ed8;
      font-weight: 800;
    }
    .field-help-popover.api-key-example-popover {
      width: min(640px, 84vw);
    }
    .example-shot-image {
      display: block;
      width: 100%;
      max-height: 520px;
      margin-top: 10px;
      object-fit: contain;
      border: 1px solid #dbe8ff;
      border-radius: 10px;
      background: #fff;
    }
    .example-shot {
      margin-top: 10px;
      overflow: hidden;
      border: 1px solid #dbe8ff;
      border-radius: 10px;
      background: #f8fbff;
    }
    .example-shot-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      background: #fff;
      border-bottom: 1px solid #e6edf7;
      color: #1d4ed8;
      font-weight: 900;
      font-size: 12px;
    }
    .example-shot-body {
      display: grid;
      grid-template-columns: 116px 1fr;
      min-height: 150px;
    }
    .example-shot-menu {
      display: grid;
      align-content: start;
      gap: 4px;
      padding: 10px;
      background: #eef5ff;
      color: #667085;
      font-size: 10px;
    }
    .example-shot-menu span {
      padding: 5px 7px;
      border-radius: 6px;
    }
    .example-shot-menu .active {
      color: #1d4ed8;
      background: #fff;
      font-weight: 900;
      box-shadow: inset 3px 0 0 #1d4ed8;
    }
    .example-shot-main {
      padding: 12px;
      background: #fff;
    }
    .example-shot-title {
      margin-bottom: 10px;
      color: #101828;
      font-weight: 900;
      font-size: 14px;
    }
    .example-shot-row {
      position: relative;
      display: grid;
      gap: 5px;
      max-width: 260px;
      margin-bottom: 10px;
      color: #667085;
      font-size: 10px;
    }
    .example-shot-value,
    .example-shot-input {
      min-height: 30px;
      padding: 7px 9px;
      border: 1px solid #cfd9ea;
      border-radius: 7px;
      background: #f8fbff;
      color: #344054;
      font-weight: 800;
    }
    .example-shot-callout {
      position: absolute;
      left: calc(100% + 10px);
      top: 18px;
      width: 142px;
      color: #ef4444;
      font-size: 11px;
      font-weight: 900;
    }
    .example-shot-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 28px;
      padding: 0 12px;
      border-radius: 7px;
      background: #156ff7;
      color: #fff;
      font-size: 11px;
      font-weight: 900;
    }
    .input,
    .select {
      width: 100%;
      height: 38px;
      border: 1px solid #cfd9ea;
      border-radius: 8px;
      padding: 0 12px;
      color: var(--ink);
      background: #fff;
      outline: none;
    }
    .input {
      width: 100%;
      height: 38px;
      border: 1px solid #cfd9ea;
      border-radius: 8px;
      padding: 0 12px;
      color: var(--ink);
      background: #fff;
      outline: none;
    }
    .input:focus,
    .select:focus {
      border-color: #7dafff;
      box-shadow: 0 0 0 4px rgba(21,111,247,.12);
    }
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 38px;
      padding: 0 14px;
      border-radius: 8px;
      border: 1px solid #cfd9ea;
      background: #fff;
      color: #344054;
      font-weight: 700;
    }
    .button.primary {
      border-color: var(--blue);
      background: var(--blue);
      color: #fff;
    }
    .button.primary:hover {
      background: var(--blue-2);
    }
    .button.danger {
      border-color: #f4c7c3;
      color: #b42318;
      background: #fff5f4;
    }
    .button.ghost {
      background: #f8fbff;
    }
    .button:disabled {
      opacity: .55;
      cursor: not-allowed;
    }
    .note-box,
    .message {
      padding: 14px 16px;
      border-radius: 10px;
      line-height: 1.65;
    }
    .note-box {
      background: #f8fbff;
      border: 1px solid #d8e7ff;
      color: #36527c;
    }
    /* hero 内的开发备注：蓝底透明变体，跟随 devNotesToggle 开关 */
    .note-box.hero-dev-note {
      margin-top: 12px;
      max-width: 760px;
      padding: 10px 13px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.30);
      color: rgba(255, 255, 255, 0.94);
      font-size: 12.5px;
      line-height: 1.6;
      -webkit-backdrop-filter: blur(2px);
      backdrop-filter: blur(2px);
    }
    .note-box.hero-dev-note .dev-badge {
      background: rgba(255, 255, 255, 0.92);
      color: #0e5ce3;
    }
    .dev-badge {
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 8px;
      margin-right: 8px;
      border-radius: 999px;
      background: #fff1cc;
      color: #9a6700;
      font-size: 11px;
      font-weight: 800;
      vertical-align: middle;
      white-space: nowrap;
    }
    body.hide-dev-notes .side-note,
    body.hide-dev-notes .dev-badge,
    body.hide-dev-notes .data-source-line,
    body.hide-dev-notes .field:has(> #yesterdayModeHint),
    body.hide-dev-notes .note-box:has(.dev-badge),
    body.hide-dev-notes .footer-note:has(.dev-badge),
    body.hide-dev-notes .inline-note:has(.dev-badge),
    body.hide-dev-notes .hot-inline-note:has(.dev-badge) {
      display: none !important;
    }
    body:not(.role-admin) [data-admin-only] {
      display: none !important;
    }
    .dev-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 14px 8px 0;
      padding: 10px 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      font-size: 12px;
      color: var(--muted);
    }
    .dev-toggle {
      position: relative;
      width: 36px;
      height: 20px;
      flex: 0 0 auto;
      cursor: pointer;
    }
    .dev-toggle input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }
    .dev-toggle-slider {
      position: absolute;
      inset: 0;
      background: #d0d5dd;
      border-radius: 999px;
      transition: background .2s ease;
    }
    .dev-toggle-slider::before {
      content: "";
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      background: #fff;
      border-radius: 50%;
      transition: transform .2s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }
    .dev-toggle input:checked + .dev-toggle-slider {
      background: #4e82ff;
    }
    .dev-toggle input:checked + .dev-toggle-slider::before {
      transform: translateX(16px);
    }
    .message {
      margin-bottom: 16px;
      border: 1px solid transparent;
    }
    .message.info {
      color: #36527c;
      background: #f5f9ff;
      border-color: #d9e6ff;
    }
    .message.error {
      color: #b42318;
      background: var(--red-soft);
      border-color: #f8d1cd;
    }
    .message.warn {
      color: #b54708;
      background: #fff8eb;
      border-color: #f5d9a4;
    }
    .empty {
      padding: 28px 20px;
      text-align: center;
      color: #8896a6;
      line-height: 1.7;
      border: 1px dashed #d8dfe9;
      border-radius: 10px;
      background: #fafbfc;
      font-size: 13px;
    }
    .loading-empty {
      display: grid;
      place-items: center;
      gap: 14px;
      min-height: 128px;
      padding: 26px 18px;
      color: #475467;
      text-align: center;
      border: 1px dashed #d0d9e7;
      border-radius: 6px;
      background: #fbfcfe;
    }
    .loading-empty-icon {
      width: 26px;
      height: 26px;
      border: 3px solid #d7e4f7;
      border-top-color: var(--blue);
      border-radius: 999px;
      animation: spin 0.8s linear infinite;
    }
    .loading-empty-title {
      color: #344054;
      font-weight: 800;
    }
    .loading-empty-subtitle {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }
    .error-empty {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 14px;
      padding: 20px 18px;
      color: #344054;
      text-align: left;
      border: 1px solid #f5c2bd;
      border-radius: 8px;
      background: #fff8f7;
    }
    .error-empty-icon {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      color: #b42318;
      font-weight: 900;
      border-radius: 999px;
      background: #fee4e2;
    }
    .error-empty-title {
      color: #b42318;
      font-weight: 900;
      font-size: 15px;
    }
    .error-empty-subtitle {
      margin-top: 6px;
      color: #475467;
      line-height: 1.65;
    }
    .error-empty-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .error-empty-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .error-empty-actions .button {
      min-height: 32px;
      padding: 7px 12px;
    }
    .loading-skeleton {
      display: grid;
      gap: 8px;
      width: min(420px, 82%);
    }
    .loading-skeleton-line {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, #eef4ff 0%, #dbeafe 48%, #eef4ff 100%);
      background-size: 220% 100%;
      animation: skeletonSweep 1.2s ease-in-out infinite;
    }
    .loading-skeleton-line:nth-child(2) { width: 78%; margin: 0 auto; }
    .loading-skeleton-line:nth-child(3) { width: 58%; margin: 0 auto; }
    /* 销售概览骨架屏：拉取数据期间替代「没有可展示」的误导性空态 */
    .yesterday-overview-skeleton { display: grid; gap: 10px; padding: 2px 0; }
    .yesterday-overview-row.skeleton-row { align-items: center; pointer-events: none; }
    .skeleton-pill,
    .skeleton-line {
      height: 12px;
      border-radius: 6px;
      background: linear-gradient(90deg, #eef4ff 0%, #dbeafe 48%, #eef4ff 100%);
      background-size: 220% 100%;
      animation: skeletonSweep 1.2s ease-in-out infinite;
    }
    .skeleton-line { width: 62%; }
    .skeleton-line.short { width: 36%; margin-top: 7px; }
    .skeleton-pill { width: 56px; }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    @keyframes skeletonSweep {
      from { background-position: 120% 0; }
      to { background-position: -120% 0; }
    }
    .split {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 18px;
    }
    .orders {
      display: grid;
      gap: 16px;
    }
    .store-block {
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
    }
    .store-block-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 16px;
      background: linear-gradient(180deg, #f9fbff, #f5f8fd);
      border-bottom: 1px solid var(--line);
    }
    .store-block-title {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.2;
    }
    .store-block-meta {
      color: var(--muted);
      font-size: 12px;
      margin-top: 3px;
    }
    .store-summary {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .table-wrap {
      overflow: auto;
      width: 100%;
    }
    .table-wrap.hot-table {
      border: 1px solid #e6edf7;
      border-radius: 8px;
      overflow: auto;
      background: #fff;
    }
    .table-wrap.hot-table table {
      min-width: 1540px;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 760px;
      background: #fff;
    }
    th, td {
      padding: 12px 14px;
      border-bottom: 1px solid #e8edf5;
      vertical-align: middle;
      text-align: left;
    }
    th {
      color: #475467;
      background: #f5f7fb;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    td {
      font-size: 13px;
      color: #344054;
    }
    .table-wrap thead th,
    .analysis-table-wrap thead th,
    .funnel-table-wrap thead th {
      position: sticky;
      top: 0;
      z-index: 3;
      background: #f8fbff;
      box-shadow: 0 1px 0 #e6edf7;
    }
    .th-sub {
      display: inline-block;
      margin-top: 2px;
      color: #667085;
      font-size: 10px;
      font-weight: 600;
      line-height: 1.25;
      white-space: normal;
    }
    .table-wrap.hot-table th {
      position: sticky;
      top: 0;
      z-index: 4;
      background: #fbfcfe;
      color: #667085;
      border-bottom: 1px solid #e7edf5;
      vertical-align: bottom;
    }
    .table-wrap.hot-table tbody tr {
      background: #fff;
      border-bottom: 1px solid #edf2f7;
    }
    .table-wrap.hot-table tbody tr:last-child {
      border-bottom: 0;
    }
    .table-wrap.hot-table .hot-dense-table {
      min-width: 1220px;
      table-layout: fixed;
    }
    .table-wrap.hot-table .hot-dense-table th,
    .table-wrap.hot-table .hot-dense-table td {
      padding: 9px 10px;
    }
    .table-wrap.hot-table .hot-dense-table th {
      font-size: 12px;
      line-height: 1.35;
      white-space: normal;
    }
    .table-wrap.hot-table .hot-dense-table td {
      font-size: 13px;
      line-height: 1.45;
    }
    /* 列宽：checkbox / # / 产品 / 类目 / 售价 / 销量 / 销售额 / 配送 / 上架 / 库存 / 佣金 */
    .table-wrap.hot-table .hot-dense-table th:nth-child(1),
    .table-wrap.hot-table .hot-dense-table td:nth-child(1) {
      width: 34px; text-align: center;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(2),
    .table-wrap.hot-table .hot-dense-table td:nth-child(2) {
      width: 44px; text-align: center;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(3),
    .table-wrap.hot-table .hot-dense-table td:nth-child(3) {
      width: 260px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(4),
    .table-wrap.hot-table .hot-dense-table td:nth-child(4) {
      width: 210px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(5),
    .table-wrap.hot-table .hot-dense-table td:nth-child(5) {
      width: 90px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(6),
    .table-wrap.hot-table .hot-dense-table td:nth-child(6) {
      width: 82px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(7),
    .table-wrap.hot-table .hot-dense-table td:nth-child(7) {
      width: 112px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(8),
    .table-wrap.hot-table .hot-dense-table td:nth-child(8) {
      width: 86px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(9),
    .table-wrap.hot-table .hot-dense-table td:nth-child(9) {
      width: 92px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(10),
    .table-wrap.hot-table .hot-dense-table td:nth-child(10) {
      width: 108px;
    }
    .table-wrap.hot-table .hot-dense-table th:nth-child(11),
    .table-wrap.hot-table .hot-dense-table td:nth-child(11) {
      width: 112px;
    }
    .hot-metric-pair {
      display: inline-grid;
      gap: 4px;
      min-width: 78px;
      justify-items: end;
    }
    .hot-mini-chip {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      width: 78px;
      padding: 3px 7px;
      border-radius: 999px;
      background: #f3f6fa;
      color: #1d2939;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }
    .hot-mini-chip span {
      color: #667085;
      font-weight: 700;
    }
    .table-wrap.hot-table th.sortable,
    .funnel-table-wrap th.sortable {
      cursor: pointer;
      user-select: none;
    }
    .table-wrap.hot-table th.sortable.active,
    .funnel-table-wrap th.sortable.active {
      color: #156ff7;
    }
    .sort-indicator {
      display: inline-flex;
      align-items: center;
      margin-left: 2px;
      color: #98a2b3;
      font-size: 10px;
      font-weight: 700;
    }
    .table-wrap.hot-table th.sortable.active .sort-indicator,
    .funnel-table-wrap th.sortable.active .sort-indicator {
      color: #156ff7;
    }
    .funnel-table-wrap th.sortable:focus-visible {
      outline: 2px solid #75a7ff;
      outline-offset: -3px;
    }
    td {
      color: #101828;
    }
    td.numeric,
    th.numeric {
      text-align: right;
      font-variant-numeric: tabular-nums;
    }
    tbody tr:hover {
      background: #f8fbff;
    }
    .tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 48px;
      height: 24px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .15px;
    }
    .tag.fbs { color: #0d5ad0; background: #e7f0ff; }
    .tag.rfbs { color: #6e3fd7; background: #f2ebff; }
    .tag.fbp { color: #b54708; background: #fff2df; }
    .tag.fbo { color: #067647; background: #ecfdf3; }
    .tag.cancel { color: #b42318; background: #fef3f2; }
    .tag.ok { color: #067647; background: #ecfdf3; }
    /* 订单状态药丸 — 对齐 Ozon 后台风格 */
    .tag.status-awaiting-pack  { color: #b54708; background: #fff7ed; }
    .tag.status-awaiting-deliver { color: #0d7a6e; background: #e6fbf8; }
    .tag.status-delivering     { color: #7c3aed; background: #f3effe; }
    .tag.status-cancelled      { color: #8c8c8c; background: #f2f2f2; }
    .product-cell {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      min-width: 220px;
    }
    .product-thumb {
      width: 52px;
      height: 52px;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid #dbe3f0;
      background: #f8fafc;
    }
    .product-thumb-missing {
      width: 52px;
      height: 52px;
      border-radius: 6px;
      border: 1px dashed #d0d5dd;
      background: #f8fafc;
      color: #98a2b3;
      display: grid;
      place-items: center;
      font-size: 12px;
      font-weight: 700;
    }
    .product-name,
    .product-title {
      font-weight: 700;
      font-size: 13px;
      line-height: 1.4;
      margin-bottom: 2px;
      word-break: normal;
      overflow-wrap: anywhere;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-family: "Segoe UI", "Arial", "Microsoft YaHei UI", sans-serif;
    }
    .product-cell > div {
      min-width: 0;
    }
    .product-cell .product-title {
      color: #101828;
      font-family: "Segoe UI", "Arial", "Microsoft YaHei UI", sans-serif;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.4;
      letter-spacing: 0;
      margin: 0 0 2px;
    }
    .product-cell .product-sub {
      display: block;
      max-width: 100%;
      color: #667085;
      font-family: "Segoe UI", "Arial", "Microsoft YaHei UI", sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 1.4;
      letter-spacing: 0;
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: normal;
    }
    .product-sub {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      word-break: break-all;
      font-family: "Segoe UI", "Arial", "Microsoft YaHei UI", sans-serif;
    }
    .api-missing {
      color: #98a2b3;
      font-size: 12px;
      font-style: italic;
    }
    .mini-trend {
      display: block;
      margin-top: 1px;
      font-size: 11px;
      font-weight: 700;
    }
    .trend-up {
      color: #16a34a;
    }
    .trend-down {
      color: #ef4444;
    }
    .trend-flat {
      color: #98a2b3;
    }
    .product-linkline {
      display: flex;
      flex-wrap: nowrap;
      gap: 2px 6px;
      color: #667085;
      font-size: 11px;
      margin-top: 2px;
      max-width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .product-linkline span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .product-meta-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 2px 6px;
      color: #98a2b3;
      font-size: 10px;
      margin-top: 2px;
    }
    .product-micro {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 6px;
    }
    .micro-chip {
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 8px;
      border-radius: 999px;
      background: #f2f4f7;
      color: #475467;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }
    .highlight {
      background: #fffefb;
    }
    .rank-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 24px;
      height: 24px;
      padding: 0 6px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #fff;
      color: #667085;
      font-size: 11px;
      font-weight: 800;
    }
    .revenue-strong {
      font-weight: 800;
      color: #111827;
    }
    .legend-list {
      display: grid;
      gap: 8px;
    }
    .delivery-card-layout {
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-height: 76px;
    }
    .delivery-donut {
      width: 72px;
      height: 72px;
      border-radius: 999px;
      position: relative;
      margin: 0 auto;
      background: conic-gradient(#7a5af8 0deg 360deg, #f79009 360deg 360deg);
    }
    .delivery-donut::after {
      content: "";
      position: absolute;
      inset: 13px;
      background: #fff;
      border-radius: 999px;
      border: 1px solid #eef2f7;
    }
    .delivery-donut-center {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      z-index: 1;
      font-size: 11px;
      font-weight: 800;
      color: #344054;
    }
    .legend-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      font-size: 11px;
    }
    .swatch {
      width: 12px;
      height: 12px;
      border-radius: 999px;
    }
    .swatch.fbs { background: #156ff7; }
    .swatch.rfbs { background: #7a5af8; }
    .swatch.fbp { background: #f79009; }
    .swatch.fbo { background: #12b76a; }
    .pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 0;
      padding: 10px 14px;
      background: #fafbfc;
      border-top: 1px solid #eef2f7;
      flex-wrap: wrap;
    }
    .pagination-left,
    .pagination-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .pagination-right {
      margin-left: auto;
    }
    .pagination-meta {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }
    .pagination-page-size {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #667085;
      font-size: 12px;
      font-weight: 700;
    }
    .pagination-page-size .select {
      width: 68px;
      height: 36px;
      padding: 0 6px;
      border-radius: 8px;
    }
    .pagination-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .pagination-actions .button {
      min-height: 36px;
      min-width: 36px;
      padding: 0 12px;
      border-radius: 8px;
      border: 1px solid #e4e7ec;
      background: #fff;
      color: #667085;
      font-size: 12px;
      font-weight: 700;
      box-shadow: none;
    }
    .pagination-actions .button[disabled] {
      color: #98a2b3;
      background: #f8fafc;
      border-color: #eaecf0;
    }
    .pagination-page-index {
      color: #667085;
      font-size: 12px;
      font-weight: 700;
      min-width: 44px;
      text-align: center;
    }
    /* 异常订单区域 — 独立卡片，警告色调 */
    .abnormal-section {
      margin-top: 20px;
      padding: 16px 18px;
      background: linear-gradient(180deg, #fef9f6, #fdf7f3);
      border: 1px solid #f5e6dc;
      border-radius: 10px;
    }
    .abnormal-section .abnormal-head {
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 4px;
    }
    .abnormal-section .abnormal-title {
      font-size: 15px;
      font-weight: 800;
      color: #8a3c10;
      line-height: 1.25;
    }
    .abnormal-section .abnormal-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 700;
      color: #b54708;
      background: #fef2ea;
      border: 1px solid #fbd7be;
      border-radius: 999px;
    }
    .abnormal-section .abnormal-desc {
      color: #a06a45;
      font-size: 12px;
      line-height: 1.5;
      margin-bottom: 12px;
    }
    .abnormal-section .yesterday-orders-table {
      margin-top: 0;
      border-color: #f5e6dc;
    }
    .abnormal-section .yesterday-orders-table thead th {
      background: #fef9f6;
    }
    .hot-filter-panel .panel-body {
      display: grid;
      gap: 10px;
      padding-top: 12px;
    }
    .hot-context-row {
      display: none;
    }
    .hot-context-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .hot-context-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
      margin-left: auto;
    }
    .hot-context-meta {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    .hot-kpi-grid {
      margin-top: 18px;
      margin-bottom: 18px;
    }
    #section-hot .panel {
      box-shadow: var(--shadow);
      border-radius: var(--radius);
    }
    #section-hot .card {
      box-shadow: 0 10px 24px rgba(16,24,40,.04);
      border-radius: 10px;
    }
    .hot-store-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
      align-items: start;
      margin-bottom: 18px;
      padding: 18px;
      border-bottom: 1px solid #d8dee8;
    }
    .hot-store-identity {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: start;
    }
    .hot-store-profile {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 14px;
      align-items: start;
      min-width: 0;
    }
    .hot-store-main {
      display: grid;
      gap: 8px;
      min-width: 0;
      padding-top: 1px;
    }
    .hot-store-topline {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }
    .hot-store-heading-row {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .hot-store-heading-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .hot-store-switcher {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      width: auto;
      justify-self: end;
    }
    .hot-store-switcher-label {
      color: #344054;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }
    .hot-store-switcher .select {
      width: 168px;
      min-width: 168px;
      max-width: 168px;
      height: 36px;
      padding: 0 10px;
    }
    .store-avatar {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      background: #eef4ff;
      color: #175cd3;
      font-size: 20px;
      font-weight: 800;
    }
    .store-avatar.small {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      font-size: 16px;
    }
    .hot-store-name {
      font-size: 24px;
      font-weight: 800;
      line-height: 1.2;
    }
    .hot-store-lines {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      color: #344054;
      font-size: 14px;
      line-height: 1.6;
    }
    .hot-store-inline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .hot-store-inline strong {
      font-weight: 800;
    }
    .hot-store-caption {
      color: #667085;
      font-size: 12px;
      font-weight: 700;
    }
    .hot-store-meta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 14px;
      color: #344054;
      font-size: 13px;
      line-height: 1.4;
    }
    .hot-store-meta-row strong {
      font-weight: 800;
    }
    .hot-store-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 0;
    }
    .hot-store-stat {
      width: 72px;
      min-width: 72px;
      height: 72px;
      border-radius: 999px;
      border: 1px solid #d6dce6;
      background: #fff;
      display: grid;
      align-content: center;
      justify-items: center;
      gap: 4px;
      text-align: center;
      padding: 6px 4px;
    }
    .hot-store-stat-label {
      color: #667085;
      font-size: 10px;
      font-weight: 700;
      line-height: 1.25;
    }
    .hot-store-stat-value {
      color: #111827;
      font-size: 16px;
      font-weight: 900;
      line-height: 1;
    }
    /* 店铺评分星标徽章 — 紧凑内联样式，置于店铺名称右侧 */
    .store-rating-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 999px;
      background: #fff7ed;
      border: 1px solid #fed7aa;
      line-height: 1.2;
      white-space: nowrap;
      flex-shrink: 0;
      user-select: none;
    }
    .store-rating-badge .sr-star {
      color: #f59e0b;
      font-size: 15px;
      line-height: 1;
    }
    .store-rating-badge .sr-value {
      color: #78350f;
      font-size: 14px;
      font-weight: 800;
      line-height: 1;
    }
    .hot-section-title {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
    }
    .hot-table-tools {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-left: auto;
    }
    .hot-list-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .hot-sku-inline {
      color: #344054;
      font-size: 14px;
      font-weight: 800;
    }
    .hot-sku-inline strong {
      color: #111827;
      font-weight: 900;
    }
    .hot-list-toolbar-left,
    .hot-list-toolbar-center,
    .hot-list-toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .hot-list-toolbar-center {
      flex: 1;
      justify-content: flex-start;
      min-width: 240px;
    }
    .hot-list-toolbar-right {
      margin-left: auto;
    }
    .hot-list-toolbar + .table-wrap.hot-table,
    .hot-list-toolbar + .empty {
      margin-top: 4px;
    }
    .hot-inline-note {
      color: #f79009;
      font-size: 12px;
      font-weight: 700;
    }
    .hot-table-meta-line {
      display: none;
      margin-bottom: 6px;
      font-size: 11px;
      color: #667085;
    }
    .yesterday-summary-panel .panel-body {
      padding: 18px;
    }
    .yesterday-overview-card {
      border: 1px solid #e6edf7;
      border-radius: 12px;
      background: #fff;
      padding: 18px 20px;
    }
    .yesterday-overview-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }
    .yesterday-overview-title {
      font-size: 15px;
      font-weight: 800;
      color: #0f172a;
    }
    .yesterday-overview-meta {
      color: #667085;
      font-size: 12px;
    }
    .yesterday-overview-list {
      display: grid;
      gap: 10px;
    }
    /* 表头行 */
    .yesterday-overview-header {
      display: grid;
      grid-template-columns: 40px minmax(180px, 1.4fr) 130px 110px 170px 90px;
      gap: 14px;
      align-items: center;
      padding: 6px 18px 10px;
    }
    .yesterday-overview-header span {
      color: #98a2b3;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .yesterday-overview-header .col-figures {
      text-align: right;
    }
    .yesterday-overview-row {
      display: grid;
      grid-template-columns: 40px minmax(180px, 1.4fr) 130px 110px 170px 90px;
      align-items: center;
      gap: 14px;
      padding: 14px 18px;
      border: 1px solid #eef2f7;
      border-radius: 14px;
      background: #fff;
      cursor: pointer;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }
    .yesterday-overview-row:hover {
      border-color: #d8e7ff;
      box-shadow: 0 6px 18px rgba(23, 105, 232, 0.10);
      transform: translateY(-1px);
    }
    .yesterday-overview-row.active {
      border-color: #1769e8;
      background: #eef5ff;
      box-shadow: inset 4px 0 0 #1769e8, 0 6px 18px rgba(23, 105, 232, 0.16);
    }
    .yesterday-overview-row:focus-visible {
      outline: 2px solid #1769e8;
      outline-offset: 2px;
    }
    .yesterday-overview-rank {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #f1f5f9;
      color: #64748b;
      font-size: 13px;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }
    .yesterday-overview-row.rank-1 .yesterday-overview-rank {
      background: linear-gradient(135deg, #ffd76b, #f5a623);
      color: #fff;
      box-shadow: 0 2px 6px rgba(245, 166, 35, 0.35);
    }
    .yesterday-overview-row.rank-2 .yesterday-overview-rank {
      background: linear-gradient(135deg, #e6edf3, #b6c2cf);
      color: #fff;
      box-shadow: 0 2px 6px rgba(150, 165, 180, 0.30);
    }
    .yesterday-overview-row.rank-3 .yesterday-overview-rank {
      background: linear-gradient(135deg, #f0c19a, #cd7f32);
      color: #fff;
      box-shadow: 0 2px 6px rgba(205, 127, 50, 0.30);
    }
    .yesterday-overview-main {
      min-width: 0;
    }
    .yesterday-overview-store-name {
      color: #0f172a;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .yesterday-overview-store-sub {
      color: #667085;
      font-size: 11px;
      margin-top: 3px;
    }
    .yesterday-current-badge {
      display: inline-flex;
      margin-left: 8px;
      padding: 2px 7px;
      border-radius: 999px;
      background: #1769e8;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      vertical-align: middle;
    }
    .yesterday-overview-figures {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 3px;
      text-align: right;
      min-width: 0;
    }
    .yesterday-overview-amount {
      color: #0f172a;
      font-size: 15px;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .yesterday-overview-orders {
      color: #667085;
      font-size: 12px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .yesterday-overview-cell {
      min-width: 0;
      color: #344054;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.45;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }
    .yesterday-overview-cell small {
      display: block;
      color: #667085;
      font-size: 11px;
      font-weight: 600;
    }
    /* 每行销售额占整体比例条（整行底部优雅轨道） */
    .yesterday-overview-bar {
      width: 100%;
      height: 5px;
      border-radius: 999px;
      background: #f1f5f9;
      overflow: hidden;
      margin-top: 10px;
    }
    .yesterday-overview-bar > i {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #1769e8, #3d95ff);
      transition: width 0.4s ease;
    }
    /* KPI 履约类型分布：占比条 + 图例 */
    .fulfillment-bar {
      display: flex;
      width: 100%;
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: #eef2f7;
      margin-top: 12px;
    }
    .fulfillment-bar > span {
      display: block;
      height: 100%;
      transition: width 0.4s ease;
    }
    .fulfillment-bar > span.fbp { background: #b54708; }
    .fulfillment-bar > span.rfbs { background: #6e3fd7; }
    .fulfillment-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 8px;
      font-size: 11px;
      color: #475467;
    }
    .fulfillment-legend span { white-space: nowrap; }
    .fulfillment-legend i {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 2px;
      margin-right: 5px;
      vertical-align: middle;
    }
    .fulfillment-legend .fbp i { background: #b54708; }
    .fulfillment-legend .rfbs i { background: #6e3fd7; }
    @media (max-width: 560px) {
      .yesterday-overview-header { display: none; }
      .yesterday-overview-row {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 6px 12px;
        padding: 12px 14px 14px;
      }
      .yesterday-overview-figures {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
      }
      .yesterday-overview-cell { grid-column: 2; text-align: left; }
      .yesterday-overview-rank { width: 28px; height: 28px; }
    }
    .yesterday-single-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .yesterday-single-picker {
      min-width: 260px;
      display: flex;
      align-items: flex-end;
      gap: 8px;
    }
    .yesterday-single-picker > div { flex: 1; }
    .yesterday-single-picker .button { flex: 0 0 auto; }
    /* ===== 单店销售明细表：宽松呼吸版 ===== */
    .yesterday-orders-table {
      min-width: 1000px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #e6edf7;
    }
    .yesterday-orders-table th {
      background: #f5f7fb;
      color: #475467;
      font-size: 12px;
      font-weight: 700;
      padding: 12px 14px;
      white-space: nowrap;
    }
    .yesterday-orders-table td {
      font-size: 13px;
      font-weight: 400;
      color: #344054;
      padding: 12px 14px;
      vertical-align: middle;
      border-bottom: 1px solid #f0f3f9;
    }
    .yesterday-orders-table td.mono {
      font-size: 13px;
      font-weight: 400;
      font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
      letter-spacing: 0;
    }
    .yesterday-orders-table tbody tr:hover {
      background: #f8fafc;
    }
    .yesterday-orders-table tbody tr:last-child td {
      border-bottom: none;
    }
    .yesterday-orders-table th:nth-child(1),
    .yesterday-orders-table td:nth-child(1) {
      min-width: 150px;
    }
    .yesterday-orders-table th:nth-child(2),
    .yesterday-orders-table td:nth-child(2) {
      min-width: 78px;
      text-align: center;
      white-space: nowrap;
    }
    .yesterday-orders-table th:nth-child(3),
    .yesterday-orders-table td:nth-child(3) {
      min-width: 360px;
      max-width: 430px;
    }
    .yesterday-orders-table th:nth-child(4),
    .yesterday-orders-table td:nth-child(4) {
      min-width: 54px;
      text-align: center;
      white-space: nowrap;
    }
    .yesterday-orders-table th:nth-child(5),
    .yesterday-orders-table td:nth-child(5) {
      min-width: 80px;
      text-align: right;
      white-space: nowrap;
    }
    .yesterday-orders-table th:nth-child(6),
    .yesterday-orders-table td:nth-child(6) {
      min-width: 110px;
      white-space: nowrap;
    }
    .yesterday-orders-table th:nth-child(7),
    .yesterday-orders-table td:nth-child(7) {
      min-width: 140px;
      white-space: nowrap;
    }
    .yesterday-orders-table th:nth-child(8),
    .yesterday-orders-table td:nth-child(8) {
      min-width: 62px;
      text-align: center;
    }
    .yesterday-orders-table td:nth-child(3) .product-sub,
    .funnel-table-wrap .product-sub {
      color: #667085;
      font-size: 12px;
      font-weight: 400;
      line-height: 1.4;
      margin: 0;
      letter-spacing: 0;
      font-family: "Segoe UI", "Arial", "Microsoft YaHei UI", sans-serif;
    }
    .yesterday-orders-table .mono {
      font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0;
    }
    .yesterday-orders-table .product-title,
    .funnel-table-wrap .product-title {
      color: #101828;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.4;
      margin: 0 0 2px;
      letter-spacing: 0;
      -webkit-line-clamp: 2;
      font-family: "Segoe UI", "Arial", "Microsoft YaHei UI", sans-serif;
    }
    .yesterday-orders-empty {
      margin: 24px 16px;
      padding: 28px 20px;
      text-align: center;
      color: #8896a6;
      background: #fafbfc;
      border-radius: 10px;
      border: 1px dashed #d8dfe9;
      font-size: 13px;
    }
    .section-tabs {
      display: flex;
      gap: 24px;
      padding: 0 18px;
      border-bottom: 1px solid var(--line);
      background: #fff;
    }
    .section-tab {
      position: relative;
      padding: 14px 0 12px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      border: 0;
      background: transparent;
      cursor: pointer;
    }
    .section-tab.active {
      color: #344054;
    }
    .section-tab.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, #8b5cf6, #d946ef);
    }
    .funnel-tabs {
      margin: -4px -4px 18px;
      padding: 8px;
      gap: 8px;
      border: 1px solid #d8e7ff;
      border-radius: 12px;
      background: linear-gradient(180deg, #f8fbff, #eef6ff);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
      overflow-x: auto;
    }
    .funnel-tabs .section-tab {
      flex: 0 0 auto;
      min-height: 38px;
      padding: 9px 14px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.72);
      color: #344054;
      white-space: nowrap;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }
    .funnel-tabs .section-tab:hover {
      border-color: #9cc6ff;
      background: #fff;
      color: #0f5bd7;
      box-shadow: 0 4px 12px rgba(24, 111, 231, 0.10);
    }
    .funnel-tabs .section-tab.active {
      border-color: #1769e8;
      background: linear-gradient(135deg, #1769e8, #3d95ff);
      color: #fff;
      box-shadow: 0 8px 18px rgba(24, 111, 231, 0.22);
    }
    .funnel-tabs .section-tab.active::after {
      display: none;
    }
    .funnel-tab-content {
      display: grid;
      gap: 18px;
    }
    .funnel-panel-title {
      font-size: 18px;
      font-weight: 800;
      margin: 4px 0 8px;
    }
    .funnel-summary-line {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      color: #667085;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .abc-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 26px;
      height: 22px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 900;
      border: 1px solid #d0d7e2;
      background: #f8fbff;
    }
    .abc-badge.a { color: #067647; background: #ecfdf3; border-color: #abefc6; }
    .abc-badge.b { color: #b54708; background: #fff7ed; border-color: #fed7aa; }
    .abc-badge.c { color: #b42318; background: #fef3f2; border-color: #fecaca; }
    .conclusion-badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
    }
    .conclusion-badge.keep { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; }
    .conclusion-badge.watch { color: #b54708; background: #fff7ed; border: 1px solid #fed7aa; }
    .conclusion-badge.fix { color: #b42318; background: #fef3f2; border: 1px solid #fecaca; }
    .date-range-line {
      color: #344054;
      font-size: 12px;
      font-weight: 700;
      margin-top: 4px;
    }
    .data-source-line {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      color: #667085;
      font-size: 12px;
      font-weight: 700;
      margin-top: 6px;
    }
    .inline-note {
      color: #f79009;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    .hot-tab-panel[hidden] {
      display: none !important;
    }
    .analysis-tabs {
      display: flex;
      gap: 22px;
      border-bottom: 1px solid var(--line);
      padding: 0 18px;
      background: #f8fbff;
    }
    .analysis-tab {
      position: relative;
      padding: 14px 0 12px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
    }
    .analysis-tab.active {
      color: #344054;
    }
    .analysis-tab.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 3px;
      border-radius: 999px;
      background: linear-gradient(90deg, #8b5cf6, #d946ef);
    }
    #hotPanel .panel-body {
      padding: 18px;
    }
    .analysis-section-body {
      padding: 18px;
    }
    .analysis-caption {
      color: #667085;
      font-size: 12px;
      line-height: 1.45;
      margin-bottom: 10px;
    }
    .analysis-count {
      color: #344054;
      font-size: 13px;
      font-weight: 800;
    }
    .analysis-count strong {
      font-weight: 900;
      color: #111827;
    }
    .analysis-header-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin: 12px 0 10px;
    }
    .analysis-header-right {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }
    .analysis-chart-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      margin-bottom: 12px;
    }
    .analysis-chart-card {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      min-height: 112px;
    }
    .analysis-chart-title {
      font-size: 16px;
      font-weight: 900;
      margin-bottom: 4px;
    }
    .analysis-chart-subtitle {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 8px;
    }
    .bar-list {
      display: grid;
      gap: 6px;
    }
    .bar-row {
      display: grid;
      grid-template-columns: 1fr minmax(180px, 1.8fr) auto;
      gap: 6px;
      align-items: center;
    }
    .bar-label {
      color: #475467;
      font-size: 10px;
      font-weight: 700;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .bar-track {
      height: 10px;
      border-radius: 999px;
      background: #eef2f7;
      overflow: hidden;
    }
    .bar-value-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #f0abfc, #e879f9);
    }
    .bar-percent {
      color: #667085;
      font-size: 10px;
      font-weight: 700;
      min-width: 36px;
      text-align: right;
    }
    .table-footer-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding: 7px 2px 0;
      margin-top: 0;
      border-top: 1px solid #eef2f7;
      color: #667085;
      font-size: 11px;
      font-weight: 600;
    }
    .table-footer-left,
    .table-footer-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .table-footer-meta .select {
      width: 58px;
      height: 24px;
      padding: 0 6px;
      border-radius: 6px;
    }
    .table-sort-mark {
      color: #98a2b3;
      font-size: 10px;
      font-weight: 700;
      margin-left: 2px;
    }
    .table-sort-mark.active {
      color: #c026d3;
    }
    .export-link {
      color: #c026d3;
      font-weight: 800;
      font-size: 10px;
      cursor: pointer;
      user-select: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .export-link::before {
      content: "⭳";
      font-size: 11px;
      line-height: 1;
    }
    .dimension-entity {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 7px;
      align-items: center;
      min-width: 190px;
    }
    .dimension-badge {
      width: 32px;
      height: 32px;
      border-radius: 5px;
      border: 1px solid #e4e7ec;
      background: #f8fafc;
      color: #667085;
      display: grid;
      place-items: center;
      font-size: 11px;
      font-weight: 900;
      overflow: hidden;
    }
    .dimension-badge.image {
      padding: 0;
      background: #fff;
    }
    .dimension-badge.image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .dimension-badge.text {
      font-size: 11px;
      color: #98a2b3;
      font-weight: 700;
    }
    .dimension-title {
      font-weight: 700;
      font-size: 12px;
      line-height: 1.3;
      word-break: break-word;
    }
    .dimension-entity .product-sub {
      margin-top: 2px;
      font-size: 12px;
    }
    .analysis-table-wrap {
      margin-top: 0;
      max-height: 520px;
      border: 1px solid #e6edf7;
      border-radius: 3px;
      background: #fff;
      overflow: auto;
    }
    .analysis-table-wrap table {
      width: 100%;
      background: #fff;
    }
    /* 热卖页筛选栏 — 紧凑内联行布局（无面板/无边框） */
    .hot-filter-bar {
      padding: 10px 4px 6px;
    }
    .hot-filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 18px;
      align-items: flex-end;
    }
    .hot-filter-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .hot-filter-label {
      font-size: 13px;
      font-weight: 700;
      color: #374151;
      white-space: nowrap;
    }
    .hot-filter-select {
      height: 32px;
      min-width: 110px;
      border-radius: 6px;
      border: 1px solid #d1d5db;
      background: #fff;
      font-size: 13px;
      padding: 0 28px 0 10px;
    }
    /* ===== 统一 KPI 卡片设计语言（全页共享） ===== */
    .hot-kpi-grid .metric-card {
      min-height: 138px;
      padding: 16px 18px 14px;
      border-radius: 10px;
      border-color: #e6edf7;
      background: #fff;
    }
    .hot-kpi-grid .metric-label {
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
    }
    .hot-kpi-grid .metric-value {
      font-size: 28px;
      font-weight: 800;
      line-height: 1.08;
      color: #101828;
    }
    .hot-kpi-grid .metric-meta {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    .dimension-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      min-width: 0;
      background: #fff;
    }
    .dimension-table th,
    .dimension-table td {
      padding: 10px 12px;
      font-size: 13px;
      line-height: 1.35;
      vertical-align: top;
    }
    .dimension-table th {
      background: #f8fbff;
      color: #667085;
      font-size: 12px;
      font-weight: 700;
      position: static;
      vertical-align: bottom;
      border-bottom: 1px solid #e7edf5;
    }
    .dimension-table th:nth-child(1),
    .dimension-table td:nth-child(1) {
      width: 38px;
      text-align: center;
    }
    .dimension-table th:nth-child(2),
    .dimension-table td:nth-child(2) {
      width: 42%;
    }
    .dimension-table th:nth-child(3),
    .dimension-table td:nth-child(3),
    .dimension-table th:nth-child(5),
    .dimension-table td:nth-child(5),
    .dimension-table th:nth-child(6),
    .dimension-table td:nth-child(6) {
      width: 14%;
    }
    .dimension-table td.numeric {
      white-space: nowrap;
      font-size: 13px;
    }
    .dimension-table .table-sort-mark {
      font-size: 10px;
    }
    .dimension-table tbody tr:hover {
      background: #fbfcfe;
    }
    .dimension-table tbody tr {
      border-bottom: 1px solid #edf2f7;
    }
    .dimension-table tbody tr:last-child {
      border-bottom: 0;
    }
    .analysis-table-wrap .empty {
      padding: 24px 12px;
    }
    .funnel-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 18px;
    }
    .funnel-step {
      padding: 16px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      min-height: 128px;
      box-shadow: 0 10px 24px rgba(16,24,40,.04);
    }
    .funnel-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 10px;
    }
    .funnel-value {
      font-size: 28px;
      font-weight: 900;
      line-height: 1;
      margin-bottom: 10px;
    }
    .funnel-rate {
      color: var(--blue);
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 10px;
    }
    .funnel-chart-card {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      padding: 16px 18px 14px;
      box-shadow: 0 10px 24px rgba(16,24,40,.04);
    }
    .funnel-insight-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 0 0 14px;
    }
    .funnel-insight {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fbfdff;
      padding: 12px 14px;
      min-height: 84px;
    }
    .funnel-insight-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .funnel-insight-value {
      color: var(--text);
      font-size: 20px;
      font-weight: 900;
      line-height: 1.1;
      overflow-wrap: anywhere;
    }
    .funnel-insight-sub {
      color: var(--muted);
      font-size: 12px;
      margin-top: 6px;
      line-height: 1.35;
    }
    .funnel-chart-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }
    .funnel-chart {
      min-height: 230px;
      overflow: hidden;
    }
    .funnel-chart svg {
      width: 100%;
      height: 230px;
      display: block;
    }
    .funnel-table-wrap {
      margin-top: 10px;
      max-height: 520px;
      overflow: auto;
      border: 1px solid #e6edf7;
      border-radius: 10px;
      background: #fff;
    }
    .funnel-table-wrap table {
      min-width: 1180px;
      table-layout: fixed;
    }
    .funnel-table-wrap col.rank-column {
      width: 58px;
    }
    .funnel-table-wrap col.product-column {
      width: 420px;
    }
    .funnel-table-wrap col.category-column {
      width: 130px;
    }
    .funnel-table-wrap col.compact-column {
      width: 92px;
    }
    .funnel-table-wrap .product-cell {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      min-width: 360px;
    }
    .funnel-table-wrap .product-thumb {
      width: 52px;
      height: 52px;
    }
    .funnel-table-wrap .product-title {
      word-break: normal;
      overflow-wrap: anywhere;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .funnel-table-wrap .product-sub {
      display: block;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: normal;
    }
    .funnel-table-wrap th,
    .funnel-table-wrap td {
      padding: 12px 14px;
    }
    .funnel-table-wrap th { font-size: 12px; }
    .funnel-table-wrap td { font-size: 13px; font-weight: 400; }
    .funnel-table-wrap th {
      background: #f8fbff;
      color: #475467;
      font-weight: 800;
    }
    .bar-shell {
      width: 100%;
      height: 10px;
      border-radius: 999px;
      background: #edf2fb;
      overflow: hidden;
    }
    .bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #1d76fa, #74b0ff);
    }
    .store-list {
      display: grid;
      gap: 12px;
      margin-bottom: 18px;
    }
    .store-row {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) auto;
      gap: 12px;
      align-items: start;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: linear-gradient(180deg, #fff, #f9fbff);
    }
    .store-primary {
      display: grid;
      grid-template-columns: 68px minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }
    .store-name {
      font-size: 16px;
      font-weight: 800;
      line-height: 1.25;
    }
    .default-store-badge {
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 8px;
      margin-left: 8px;
      border-radius: 999px;
      background: #e8f1ff;
      color: #1d4ed8;
      font-size: 11px;
      font-weight: 900;
      vertical-align: middle;
    }
    .store-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }
    .store-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      align-self: stretch;
    }
    .store-stat {
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #e2e8f3;
      background: #ffffff;
    }
    .store-stat.error {
      border-color: #fecaca;
      background: #fff7f7;
    }
    .store-stat.pending {
      border-color: #fed7aa;
      background: #fffaf2;
    }
    .store-stat-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      margin-bottom: 6px;
    }
    .store-stat-value {
      font-size: 16px;
      font-weight: 900;
      line-height: 1;
    }
    .store-stat-value.ok { color: #0f766e; }
    .store-stat-value.error { color: #dc2626; }
    .store-stat-value.pending { color: #b45309; }
    .store-error-text {
      margin-top: 5px;
      color: #dc2626;
      font-size: 12px;
      line-height: 1.45;
    }
    .store-actions {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }
    .store-inline-edit {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
      gap: 12px;
      align-items: end;
      padding: 14px;
      border-radius: 10px;
      border: 1px solid #cfe0ff;
      background: #f8fbff;
    }
    .store-inline-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .store-form {
      display: grid;
      gap: 14px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-top: 18px;
    }
    .store-form-block {
      display: grid;
      gap: 14px;
      grid-column: 1 / -1;
      padding: 16px;
      border-radius: 12px;
      border: 1px solid #e2e8f3;
      background: linear-gradient(180deg, #fff, #f9fbff);
    }
    .store-form-block-title {
      font-size: 15px;
      font-weight: 800;
    }
    .store-form-grid {
      display: grid;
      gap: 14px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .store-form-actions {
      display: flex;
      gap: 10px;
      grid-column: 1 / -1;
      flex-wrap: wrap;
    }
    .footer-note {
      margin-top: 18px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.75;
    }
    @media (max-width: 1280px) {
      .grid.kpi-grid,
      .funnel-kpi-grid,
      .funnel-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .split {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 980px) {
      .global-data-loading { inset: 118px 0 0; }
      .shell {
        grid-template-columns: 1fr;
      }
      .sidebar {
        padding: 10px 14px;
        min-width: 0;
        overflow: hidden;
        border-right: 0;
        border-bottom: 1px solid rgba(219,227,240,.8);
      }
      .nav-title,
      .dev-toggle-row,
      .side-note {
        display: none;
      }
      .sidebar-nav {
        display: flex;
        gap: 6px;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
      }
      .nav-module { display: flex; flex: 0 0 auto; align-items: center; border-radius: 10px; }
      .nav-module-button { display: flex; width: auto; min-height: 38px; padding: 5px 10px; white-space: nowrap; }
      .nav-module-icon { width: 24px; height: 24px; border-radius: 7px; }
      .nav-module.active .nav-submenu { display: flex; padding: 3px 5px 3px 0; }
      .sidebar-nav .nav-button {
        flex: 0 0 auto;
        width: auto;
        margin-bottom: 0;
        white-space: nowrap;
      }
      .workspace-subnav-shell { top: 118px; }
      .store-row,
      .store-form,
      .store-form-grid,
      .store-inline-edit {
        grid-template-columns: 1fr;
      }
      .store-primary {
        grid-template-columns: 56px minmax(0, 1fr);
      }
      .hot-store-head,
      .hot-store-identity,
      .hot-store-profile {
        grid-template-columns: 1fr;
      }
      .hot-store-heading-row {
        gap: 10px;
      }
      .hot-store-switcher {
        min-width: 0;
        margin-left: 0;
        width: 100%;
        justify-self: stretch;
        justify-content: space-between;
      }
      .hot-store-switcher .select {
        min-width: 0;
        max-width: none;
        width: 100%;
      }
      .hero {
        flex-direction: column;
      }
      .hero-badges {
        justify-content: flex-start;
      }
    }
    @media (max-width: 720px) {
      main {
        padding: 16px;
      }
      .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
      }
      .brand {
        flex: 1 1 100%;
        width: 100%;
      }
      .brand-title {
        font-size: 18px;
        white-space: nowrap;
      }
      .brand-subtitle {
        white-space: nowrap;
      }
      .topbar-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
      }
      .grid.kpi-grid,
      .funnel-kpi-grid,
      .funnel-insight-grid {
        grid-template-columns: 1fr;
      }
      .metric-value,
      .funnel-value {
        font-size: 26px;
      }
      .hero h1 {
        font-size: 24px;
      }
      .hero {
        padding: 20px 16px;
      }
      .note-box.hero-dev-note {
        max-width: 100%;
        overflow-wrap: anywhere;
      }
      .panel-header {
        flex-wrap: wrap;
        align-items: flex-start;
      }
      .panel-header > * {
        min-width: 0;
        max-width: 100%;
      }
      .panel-header,
      .panel-body {
        padding-left: 14px;
        padding-right: 14px;
      }
    }
    .promotion-summary-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .nav-button { position: relative; }
    .settings-unmatched-stores { margin-bottom: 14px; }
    .settings-unmatched-store-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .nav-count-badge {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      min-width: 22px;
      height: 22px;
      padding: 0 6px;
      border-radius: 11px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #e5484d;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
    }
    .promotion-store-list { display: grid; gap: 14px; margin-top: 16px; }
    .promotion-store-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
    .promotion-store-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px;
      background: #f8fbff;
      border-bottom: 1px solid var(--line);
    }
    .promotion-store-name { font-size: 18px; font-weight: 800; }
    .promotion-store-meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
    .promotion-store-body { padding: 0 16px 12px; }
    .promotion-action-row {
      grid-template-columns: minmax(240px, 1fr) 180px 120px;
    }
    .promotion-sku-list { margin-top: 10px; border-top: 1px solid var(--line); }
    .promotion-sku-row {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) 150px 120px;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
      align-items: center;
      font-size: 13px;
    }
    .promotion-effective-time { font-weight: 900; color: #b42318; font-size: 15px; }
    .promotion-progress { margin-top: 16px; padding: 18px; border: 1px solid #b9d5ff; background: #f4f8ff; border-radius: 8px; }
    .promotion-progress-track { height: 8px; margin-top: 12px; border-radius: 4px; overflow: hidden; background: #dbeafe; }
    .promotion-progress-fill { height: 100%; width: 0; background: #146ef5; transition: width .25s ease; }
    .promotion-success {
      padding: 20px;
      border: 1px solid #8dd9b0;
      border-radius: 8px;
      background: #effbf4;
      color: #126b3f;
      font-size: 15px;
    }
    .app-toast {
      position: fixed;
      z-index: 1200;
      top: 76px;
      right: 22px;
      width: min(430px, calc(100vw - 32px));
      border: 1px solid #75cf9f;
      border-radius: 8px;
      background: #f0fbf5;
      color: #135f3a;
      box-shadow: 0 18px 48px rgba(15, 52, 38, .22);
      overflow: hidden;
      transform: translateY(-12px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .22s ease, transform .22s ease;
    }
    .app-toast.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .app-toast.error { border-color: #f3a6a6; background: #fff3f2; color: #a32222; }
    .app-toast-body { display: grid; grid-template-columns: 42px 1fr 30px; gap: 12px; padding: 17px 16px 14px; align-items: start; }
    .app-toast-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #159455;
      color: #fff;
      font-size: 23px;
      font-weight: 900;
    }
    .app-toast.error .app-toast-icon { background: #d13b3b; }
    .app-toast-title { font-size: 17px; font-weight: 900; line-height: 1.35; }
    .app-toast-message { margin-top: 5px; font-size: 14px; line-height: 1.55; }
    .app-toast-close {
      width: 28px;
      height: 28px;
      border: 0;
      background: transparent;
      color: currentColor;
      font-size: 22px;
      cursor: pointer;
      opacity: .65;
    }
    .app-toast-close:hover { opacity: 1; }
    .app-toast-timer { height: 4px; background: rgba(21,148,85,.18); }
    .app-toast-timer-fill { height: 100%; width: 100%; background: #159455; transform-origin: left; }
    .app-toast.visible .app-toast-timer-fill { animation: toastCountdown 10s linear forwards; }
    .app-toast.error .app-toast-timer { background: rgba(209,59,59,.18); }
    .app-toast.error .app-toast-timer-fill { background: #d13b3b; }
    @keyframes toastCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
    .zero-range-control { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8fc; }
    .zero-range-control .button { min-width: 86px; }
    .zero-store-overview { display: grid; gap: 8px; margin-top: 14px; }
    .zero-store-row {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) 140px 180px;
      gap: 14px;
      align-items: center;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      cursor: pointer;
    }
    .zero-store-row:hover, .zero-store-row.active { border-color: #88b6ff; background: #f4f8ff; }
    .zero-overview-grid {
      grid-template-columns: 40px minmax(180px, 1.4fr) 130px 130px 150px;
    }
    .reviews-coverage-note { grid-column: 1 / -1; }
    .reviews-overview-grid {
      grid-template-columns: minmax(260px, 1.5fr) minmax(130px, .8fr) 110px 110px 128px;
    }
    .reviews-overview-store {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      min-width: 0;
    }
    .reviews-overview-source {
      color: #475467;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.4;
    }
    .reviews-overview-status {
      display: flex;
      justify-content: flex-end;
    }
    .reviews-table-wrap table {
      min-width: 980px;
      table-layout: fixed;
    }
    .reviews-table-wrap th:nth-child(1) { width: 330px; }
    .reviews-table-wrap th:nth-child(2) { width: 88px; }
    .reviews-table-wrap th:nth-child(4) { width: 130px; }
    .reviews-table-wrap th:nth-child(5) { width: 110px; }
    .reviews-table-wrap td { vertical-align: top; }
    .reviews-table-wrap .product-cell { min-width: 0; }
    @media (max-width: 1050px) {
      .reviews-overview-grid {
        grid-template-columns: minmax(220px, 1.4fr) 120px 90px 90px 110px;
        gap: 10px;
      }
    }
    @media (max-width: 760px) {
      .zero-overview-grid.yesterday-overview-header { display: none; }
      .zero-overview-grid.yesterday-overview-row {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 6px 12px;
      }
      .zero-overview-grid .yesterday-overview-cell {
        grid-column: 2;
        text-align: left;
      }
      .reviews-overview-grid.yesterday-overview-header { display: none; }
      .reviews-overview-grid.yesterday-overview-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
        padding: 14px;
      }
      .reviews-overview-store { grid-column: 1 / -1; }
      .reviews-overview-source { grid-column: 1; grid-row: 2; align-self: center; }
      .reviews-overview-status { grid-column: 2; grid-row: 2; }
      .reviews-overview-grid .yesterday-overview-cell {
        grid-column: auto;
        grid-row: 3;
        text-align: left;
      }
    }
    .zero-days { font-weight: 800; color: #b54708; }
    .promotion-action-list {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }
    .promotion-action-row {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) 170px 130px;
      gap: 14px;
      align-items: center;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }
    .promotion-action-title { font-weight: 700; color: var(--text); }
    .promotion-action-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
    .promotion-danger-note {
      color: #b42318;
      background: #fff4f2;
      border: 1px solid #fecdca;
      border-radius: 8px;
      padding: 10px 12px;
    }
    @media (max-width: 900px) {
      .promotion-summary-grid { grid-template-columns: 1fr; }
      .promotion-action-row { grid-template-columns: 1fr; }
      .promotion-sku-row { grid-template-columns: 1fr; }
    }

body.auth-pending > .topbar,
body.auth-pending > .shell,
body.auth-pending > .app-toast { visibility: hidden; }
.auth-gate { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 24px; background: #eef4fc; }
.auth-gate[hidden] { display: none; }
.auth-panel { width: min(440px, 100%); padding: 30px; border: 1px solid #d7e2f2; border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(28, 62, 112, .16); }
.auth-brand-mark { width: 52px; height: 52px; margin-bottom: 18px; }
.auth-brand-mark img { display: block; width: 100%; height: 100%; }
.auth-panel h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: 0; }
.auth-intro, .auth-trial { color: #5a6b84; line-height: 1.65; }
.auth-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0 18px; padding: 4px; border: 1px solid #d7e2f2; border-radius: 7px; background: #f4f7fb; }
.auth-mode label { cursor: pointer; }
.auth-mode input { position: absolute; opacity: 0; pointer-events: none; }
.auth-mode span { display: block; padding: 9px 12px; border-radius: 5px; text-align: center; font-weight: 700; color: #4d607d; }
.auth-mode input:checked + span { color: #fff; background: #1769e8; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 4px; font-size: 13px; font-weight: 700; color: #34445d; }
.auth-email-verification { display: grid; gap: 9px; }
.auth-email-verification[hidden], .auth-turnstile-row[hidden] { display: none; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 9px; }
.auth-code-row .button { min-height: 42px; padding-inline: 12px; }
.auth-code-help { margin: -2px 0 2px; color: #718198; font-size: 12px; line-height: 1.5; }
.auth-turnstile-row { display: grid; gap: 8px; }
.auth-field-label { font-size: 13px; font-weight: 700; color: #34445d; }
.auth-turnstile-widget { min-height: 65px; }
.legal-consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 2px !important; font-weight: 500 !important; line-height: 1.55; cursor: pointer; }
.legal-consent-row[hidden] { display: none; }
.legal-consent-row input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #1769e8; }
.legal-consent-row a, .public-legal-links a, .account-legal-links a { color: #1769e8; text-decoration: none; }
.legal-consent-row a:hover, .public-legal-links a:hover, .account-legal-links a:hover { text-decoration: underline; }
.public-legal-links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; color: #7a879a; font-size: 12px; }
.legal-consent-gate { z-index: 5100; }
.legal-consent-panel h1 { font-size: 22px; }
.auth-submit { width: 100%; min-height: 44px; margin-top: 8px; }
.auth-error { padding: 10px 12px; border: 1px solid #ffc9c4; border-radius: 6px; color: #bd201a; background: #fff4f3; }
.auth-trial { margin: 16px 0 0; font-size: 13px; text-align: center; }
.account-menu { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-menu[hidden] { display: none; }
.account-copy { display: grid; min-width: 0; color: #fff; line-height: 1.2; }
.account-identity { max-width: 180px; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.account-validity { margin-top: 3px; font-size: 11px; opacity: .84; white-space: nowrap; }
.account-logout { min-height: 34px; color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); }
.account-center[hidden] { display: none; }
.account-center { position: fixed; inset: 0; z-index: 2100; display: grid; justify-items: end; }
.account-center-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .46); }
.account-center-panel { position: relative; width: min(620px, 100%); height: 100%; overflow: auto; padding: 24px; color: #172033; background: #f7f9fc; box-shadow: -12px 0 36px rgba(15, 23, 42, .18); }
.account-center-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.account-center-header h2 { margin: 0; font-size: 24px; }
.account-center-header p { margin: 6px 0 0; color: #667085; }
.account-center-close { width: 38px; height: 38px; padding: 0; border: 0; color: #475467; background: transparent; font-size: 28px; cursor: pointer; }
.account-center-loading { padding: 60px 20px; color: #667085; text-align: center; }
.auth-error.success { color: #067647; border-color: #a6e3c4; background: #ecfdf3; }
.account-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-metrics[hidden], .redeem-code-form[hidden], .account-list-section[hidden] { display: none; }
.account-metrics > div { display: grid; gap: 8px; padding: 16px; border: 1px solid #dbe4f2; border-radius: 6px; background: #fff; }
.account-metrics span { color: #667085; font-size: 12px; }
.account-metrics strong { font-size: 18px; }
.redeem-code-form { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.4fr) auto; gap: 12px; align-items: end; margin-top: 16px; padding: 16px; border: 1px solid #bfd4fb; border-radius: 6px; background: #eef5ff; }
.redeem-code-form label { font-weight: 700; }
.redeem-code-form p { margin: 5px 0 0; color: #667085; font-size: 12px; }
.account-list-section { margin-top: 22px; }
.account-list-section h3 { margin: 0 0 6px; font-size: 16px; }
.account-list-section > p { margin: 0 0 10px; color: #667085; font-size: 12px; }
.account-legal-links { display: flex; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #dbe4f2; font-size: 13px; }
.account-item-list { display: grid; gap: 8px; }
.account-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 12px 14px; border: 1px solid #dbe4f2; border-radius: 6px; background: #fff; }
.account-item-copy { min-width: 0; }
.account-item-copy strong, .account-item-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-item-copy span { margin-top: 4px; color: #667085; font-size: 12px; }
.account-current { color: #067647; font-weight: 700; }
.change-password-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.data-security-link { display: inline-flex; align-items: center; gap: 5px; margin-left: 5px; color: #1769e8; font-weight: 700; text-decoration: none; white-space: nowrap; }
.data-security-link > span { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 900; line-height: 1; }
.data-security-link:hover { text-decoration: underline; }
@media (max-width: 720px) { .redeem-code-form { grid-template-columns: 1fr; } .account-metrics { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .auth-panel { padding: 24px 20px; }
  .account-copy { display: none; }
}
