
    :root {
      --ink: #10282d;
      --muted: #758286;
      --teal-950: #072a30;
      --teal-900: #0a343b;
      --teal-700: #137a75;
      --teal-600: #23928b;
      --teal-300: #82d9d0;
      --teal-100: #dff6f2;
      --teal-50: #effaf8;
      --line: #dce6e5;
      --surface: #ffffff;
      --page: #f3f8f7;
      --amber: #d29a2e;
      --amber-bg: #fff8e6;
      --danger: #bf4a4a;
      --danger-bg: #fff0f0;
      --shadow: 0 12px 35px rgba(16, 64, 66, 0.08);
    }

    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html { min-width: 320px; background: var(--page); }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background:
        linear-gradient(rgba(255,255,255,.68), rgba(255,255,255,.68)),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(35,146,139,.025) 31px 32px),
        var(--page);
      font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
      letter-spacing: 0;
    }
    button, input, select, textarea { font: inherit; letter-spacing: 0; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 3px solid rgba(35,146,139,.2);
      outline-offset: 2px;
    }
    .icon { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.8; }

    .topbar {
      height: 76px;
      padding: 0 clamp(20px, 4vw, 52px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #fff;
      background: var(--teal-950);
      box-shadow: 0 4px 18px rgba(4, 33, 37, .12);
    }
    .brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
    .brand-mark {
      width: 43px; height: 43px; border-radius: 12px;
      display: grid; place-items: center;
      color: var(--teal-950); background: #72d8cf;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
    }
    .brand-mark .icon { width: 23px; height: 23px; stroke-width: 2; }
    .brand strong { display: block; font-size: 17px; line-height: 1.2; white-space: nowrap; }
    .brand small { display: block; margin-top: 3px; color: #b9cdcf; font-size: 12px; }
    .top-actions { display: flex; align-items: center; gap: 18px; }
    .status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dcebec; }
    .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #58d4af; box-shadow: 0 0 0 5px rgba(88,212,175,.08); }

    .btn {
      min-height: 39px; padding: 0 15px; border: 1px solid var(--line); border-radius: 7px;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      color: var(--ink); background: #fff; font-weight: 500; transition: .18s ease;
    }
    .btn:hover { border-color: #b8d4d1; background: var(--teal-50); transform: translateY(-1px); }
    .btn:active { transform: translateY(0); }
    .btn:disabled, .action-link:disabled { cursor: not-allowed; opacity: .45; transform: none; }
    .btn:disabled:hover { border-color: var(--line); color: inherit; background: #fff; transform: none; }
    .btn-primary:disabled:hover { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
    .btn-ghost-dark { min-height: 36px; padding: 0 11px; color: #e5f2f2; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
    .btn-ghost-dark:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
    .btn-primary { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
    .btn-primary:hover { color: #fff; background: #0f6a66; border-color: #0f6a66; }
    .btn-danger { color: var(--danger); border-color: #f0cccc; background: var(--danger-bg); }
    .btn-icon { width: 38px; padding: 0; }

    .shell {
      width: min(1220px, calc(100% - 48px));
      margin: 24px auto 42px;
      display: grid;
      grid-template-columns: 290px minmax(0, 1fr);
      gap: 22px;
      align-items: start;
    }
    .sidebar, .workspace {
      border: 1px solid rgba(182, 205, 203, .75);
      background: rgba(255,255,255,.92);
      box-shadow: var(--shadow);
    }
    .sidebar { border-radius: 18px; padding: 20px 18px; }
    .account-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin: 0 2px 15px; }
    .eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
    .account-id { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 600; }
    .connected { padding: 3px 8px; border: 1px solid #bfe0d6; border-radius: 99px; color: #2b765f; background: #f1fbf7; font-size: 11px; white-space: nowrap; }

    .stat-list { display: grid; gap: 10px; }
    .stat {
      min-height: 72px; padding: 14px 15px;
      display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px;
      border: 1px solid #e2e9e8; border-radius: 10px;
      background: linear-gradient(120deg, #fff, #fbfdfd);
    }
    .stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); }
    .stat:nth-child(2) .stat-icon { color: #9a7a25; background: var(--amber-bg); }
    .stat:nth-child(3) .stat-icon { color: #66787c; background: #f2f5f5; }
    .stat span { color: var(--muted); font-size: 12px; }
    .stat strong { display: block; margin-top: 2px; color: var(--ink); font-size: 21px; line-height: 1; }

    .recharge {
      margin-top: 14px; padding: 18px 16px; border-radius: 14px; color: #fff;
      background: var(--teal-900); box-shadow: 0 12px 25px rgba(7,42,48,.14);
    }
    .recharge h3 { margin: 0 0 13px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
    .recharge-row { display: flex; gap: 8px; }
    .recharge input {
      width: 100%; min-width: 0; height: 42px; padding: 0 12px; color: #fff;
      border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.06);
    }
    .recharge input::placeholder { color: #91aaad; }
    .recharge .btn { width: 42px; height: 42px; min-height: 42px; padding: 0; border: 0; color: #07373a; background: #61c8be; }

    .safety { margin: 20px 4px 0; display: grid; grid-template-columns: 24px 1fr; gap: 9px; }
    .safety .icon { margin-top: 1px; color: var(--teal-600); }
    .safety h4 { margin: 0 0 4px; font-size: 13px; }
    .safety p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

    .workspace { min-height: 640px; border-radius: 20px; padding: 25px 24px 22px; overflow: hidden; }
    .workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
    .section-kicker { margin: 0 0 2px; color: var(--teal-700); font-size: 12px; font-weight: 700; }
    h1 { margin: 0; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: 0; }
    .workspace-head-actions { display: flex; align-items: center; gap: 12px; }
    .updated { color: var(--muted); font-size: 12px; white-space: nowrap; }
    .refresh-status { height: 36px; white-space: nowrap; }
    .refresh-status .spin { animation: refreshSpin .9s linear infinite; }
    @keyframes refreshSpin { to { transform: rotate(360deg); } }

    .tabs { display: flex; align-items: stretch; gap: 7px; padding-top: 1px; border-bottom: 1px solid var(--line); }
    .tab {
      position: relative; min-width: 118px; height: 45px; padding: 0 16px;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      color: #687579; border: 1px solid #e1e7e7; border-bottom: 0; border-radius: 7px 7px 0 0; background: #fff;
    }
    .tab:hover { color: var(--teal-700); background: #fbfefe; }
    .tab.active { color: var(--ink); font-weight: 600; border-color: #d5dfde; }
    .tab.active::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -2px; height: 3px; background: var(--teal-900); }
    .count { min-width: 24px; padding: 2px 6px; border-radius: 99px; color: #48716d; background: var(--teal-50); font-size: 10px; }

    .panel { display: none; padding-top: 17px; }
    .panel.active { display: block; animation: panelIn .24s ease-out; }
    @keyframes panelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    .panel-bar { min-height: 53px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
    .panel-bar h2 { margin: 0 0 3px; font-size: 16px; }
    .panel-bar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
    .bar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    select, .field {
      height: 39px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: #fff;
    }

    .table-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: auto; background: #fff; }
    table { width: 100%; min-width: 690px; border-collapse: collapse; table-layout: fixed; }
    th, td { height: 57px; padding: 10px 12px; border-bottom: 1px solid #e4e9e8; text-align: left; vertical-align: middle; font-size: 12px; }
    th { height: 42px; color: #455559; background: #f7faf9; font-weight: 500; }
    tr:last-child td { border-bottom: 0; }
    tbody tr:hover { background: #fcfefe; }
    .sku-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .thumb { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; background: #e8efee; }
    .sku-meta { min-width: 0; }
    .sku-code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
    .sku-name { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
    .tag { width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #267262; background: #e9f8f2; font-size: 11px; }
    .tag::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
    .tag.pending { color: #997522; background: var(--amber-bg); }
    .tag.failed { color: var(--danger); background: var(--danger-bg); }
    .result-ok { color: #1a5e52; font-weight: 600; }
    .result-pending { color: #8b7024; font-weight: 600; }
    .action-link { padding: 6px 7px; border: 0; display: inline-flex; align-items: center; gap: 6px; color: #385055; background: transparent; white-space: nowrap; }
    .action-link:hover { color: var(--teal-700); }
    .empty { padding: 55px 20px; text-align: center; color: var(--muted); }
    .empty .icon { width: 28px; height: 28px; margin-bottom: 8px; }

    .submit-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 18px; }
    .form-section { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
    .form-section h3 { margin: 0 0 17px; font-size: 15px; }
    .batch-hint { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }
    .form-group { margin-bottom: 15px; }
    .form-group label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #405054; font-size: 12px; font-weight: 500; }
    .form-group label small { color: var(--muted); font-weight: 400; }
    textarea {
      width: 100%; min-height: 170px; padding: 12px; resize: vertical; color: var(--ink);
      border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; line-height: 1.7;
    }
    .sku-entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 138px; gap: 10px; align-items: stretch; }
    .sku-entry-help { padding: 11px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #f7fbfa; font-size: 11px; line-height: 1.7; }
    .sku-entry-help strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 11px; }
    .sku-entry-help code { display: block; color: var(--teal-700); font-family: Consolas, monospace; font-size: 11px; }
    textarea::placeholder { color: #9aa7a8; }
    .mode-control { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #bfd8d5; border-radius: 8px; overflow: hidden; }
    .mode-option { min-height: 52px; padding: 7px 12px; border: 0; border-right: 1px solid #d6e5e3; color: #536568; background: #fff; }
    .mode-option:last-child { border-right: 0; }
    .mode-option strong, .mode-option small { display: block; }
    .mode-option strong { font-size: 13px; }
    .mode-option small { margin-top: 2px; color: #839092; font-size: 10px; }
    .mode-option.active { color: #fff; background: var(--teal-700); }
    .mode-option.active small { color: #d9f3ef; }
    .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .cost-hint { color: var(--muted); font-size: 12px; }
    .guide { padding: 20px; border: 1px solid #d9ebe8; border-radius: 9px; background: var(--teal-50); }
    .guide h3 { margin: 0 0 13px; font-size: 15px; }
    .guide ol { margin: 0; padding-left: 19px; color: #56676a; font-size: 12px; line-height: 2; }
    .guide-note { margin-top: 14px; padding-top: 13px; border-top: 1px solid #cde4e0; display: flex; gap: 8px; color: #43726d; font-size: 11px; line-height: 1.6; }

    .ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
    .ledger-metric { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .ledger-metric span { color: var(--muted); font-size: 11px; }
    .ledger-metric strong { display: block; margin-top: 4px; font-size: 20px; }

    .toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 8px; }
    .toast {
      min-width: 260px; max-width: min(390px, calc(100vw - 44px)); padding: 13px 15px;
      display: flex; align-items: center; gap: 10px; color: #fff; background: var(--teal-950);
      border-radius: 8px; box-shadow: 0 16px 35px rgba(4,33,37,.22); animation: toastIn .24s ease-out;
    }
    .toast.error { background: #7b3232; }
    .toast .icon { color: #6be0c1; }
    @keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    @media (max-width: 900px) {
      .shell { width: min(100% - 28px, 720px); grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
      .account-head, .stat-list { grid-column: 1; }
      .recharge, .safety { grid-column: 2; }
      .recharge { margin-top: 0; align-self: start; }
      .safety { margin-top: 0; }
      .submit-layout { grid-template-columns: 1fr; }
    }
    @media (max-width: 620px) {
      .topbar { height: 68px; padding: 0 15px; }
      .brand-mark { width: 38px; height: 38px; }
      .brand strong { font-size: 15px; }
      .brand small { display: none; }
      .status span:last-child { display: none; }
      .top-actions { gap: 9px; }
      .btn-ghost-dark span { display: none; }
      .btn-ghost-dark { width: 38px; padding: 0; }
      .shell { width: calc(100% - 20px); margin-top: 10px; gap: 10px; }
      .sidebar { padding: 15px; grid-template-columns: 1fr; border-radius: 12px; }
      .account-head, .stat-list, .recharge, .safety { grid-column: 1; }
      .stat-list { grid-template-columns: repeat(3, 1fr); }
      .stat { min-height: 90px; padding: 10px 6px; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; }
      .stat-icon { width: 30px; height: 30px; }
      .stat strong { font-size: 18px; }
      .safety { display: none; }
      .workspace { min-height: 580px; padding: 19px 14px; border-radius: 12px; }
      .workspace-head { align-items: start; flex-wrap: wrap; }
      .workspace-head-actions { width: 100%; justify-content: flex-end; }
      .updated { display: none; }
      .tabs { gap: 4px; }
      .tab { min-width: 0; flex: 1; height: 44px; padding: 0 7px; font-size: 12px; }
      .tab .icon { width: 16px; }
      .tab .count { display: none; }
      .panel-bar { align-items: stretch; flex-direction: column; }
      .bar-actions { justify-content: space-between; }
      .bar-actions select { flex: 1; }
      .ledger-summary { grid-template-columns: 1fr; }
      .form-section, .guide { padding: 16px; }
      .sku-entry-layout { grid-template-columns: 1fr; }
      .form-footer { align-items: stretch; flex-direction: column; }
      .form-footer .btn { width: 100%; }
    }

    /* Local edition: readable account access, manual settlement, and batch lookup. */
    :root { --teal-950: #082d35; --teal-900: #0a3941; --teal-700: #0d756f; --page: #eef5f4; }
    body { font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif; }
    .shell { width: min(1360px, calc(100% - 48px)); }
    .sidebar, .workspace { background: rgba(255,255,255,.96); }
    .sidebar { position: sticky; top: 18px; }
    .account-name { margin-top: 4px; color: #607376; font-size: 12px; overflow-wrap: anywhere; }
    .recharge-help { margin: 11px 0 0; color: #b5d0d1; font-size: 11px; line-height: 1.5; }
    .logout-link { margin: 18px 3px 0; padding: 4px 0; display: inline-flex; gap: 7px; align-items: center; color: #61777a; border: 0; background: none; font-size: 12px; }
    .logout-link:hover { color: var(--danger); }
    .logout-link .icon { width: 15px; height: 15px; }
    .status.offline .status-dot { background: #ee8f7e; box-shadow: 0 0 0 5px rgba(238,143,126,.1); }
    .submit-layout { grid-template-columns: minmax(0, 1.55fr) minmax(235px, .65fr); }
    .form-section { border-radius: 13px; }
    .guide { border-radius: 13px; align-self: start; }
    .field-meta { margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
    .field-meta .invalid { color: var(--danger); }
    .competitor-lookup { grid-column: 1 / -1; margin-top: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
    .lookup-head { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
    .lookup-head h3 { margin: 0 0 4px; }
    .lookup-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
    .bridge-state { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #ecd9b5; border-radius: 20px; color: #956b24; background: #fff9ec; font-size: 10px; }
    .bridge-state.ready { border-color: #bfe1d5; color: #247a5c; background: #f1fbf6; }
    .competitor-lookup label { margin: 13px 0 7px; display: flex; justify-content: space-between; gap: 8px; color: #405054; font-size: 12px; font-weight: 500; }
    .competitor-lookup label small { color: var(--muted); font-weight: 400; }
    .lookup-url-row input { min-width: 0; width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
    .lookup-url-row .btn { flex: 0 0 auto; }
    .lookup-textarea { min-height: 100px; background: #fff; }
    .lookup-actions { margin-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
    .competitor-lookup .concurrency-label { margin: 0 auto 0 0; align-items: center; justify-content: flex-start; white-space: nowrap; }
    .concurrency-label select { margin-left: 6px; height: 34px; min-width: 64px; }
    .lookup-result { margin-top: 12px; padding: 10px 12px; min-height: 38px; border-radius: 8px; color: #577376; background: #f4f9f8; font-size: 11px; line-height: 1.6; }
    .lookup-results { margin-top: 16px; }
    .lookup-results-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .lookup-results-head strong { font-size: 12px; }
    .lookup-results-head div { display: flex; gap: 6px; }
    .btn-small { min-height: 30px; padding: 0 10px; font-size: 11px; }
    .lookup-table { min-width: 590px; }
    .lookup-table th, .lookup-table td { width: auto; height: auto; min-height: 42px; }
    .lookup-table td { overflow-wrap: anywhere; }
    .lookup-status { color: #276d5a; }
    .lookup-status.uncertain { color: #a66a2d; }
    .task-metrics { margin: 10px 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .task-metrics > div { min-height: 65px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; }
    .task-metrics strong { color: var(--teal-900); font-size: 21px; }
    .task-metrics span { color: var(--muted); font-size: 11px; white-space: nowrap; }
    .sku-avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: #347f78; background: #e4f5f1; font-size: 10px; font-weight: 700; }
    .done-label { color: #2c765d; }
    .pending-label { color: #849294; }
    .credit { color: #267262; font-weight: 600; }
    .debit { color: #9a5b2a; font-weight: 600; }
    .neutral { color: #607476; font-weight: 600; }
    .activation-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 22px; align-items: center; margin: 0 0 26px; padding: 20px 22px; border: 1px solid #b9e0d9; border-radius: 16px; background: linear-gradient(125deg, #e8f9f4, #fff); }
    .activation-panel.activated { border-color: #cddfdb; background: linear-gradient(125deg, #f4faf8, #fff); }
    .activation-copy h2 { margin: 4px 0 6px; font-size: 20px; line-height: 1.3; }
    .activation-copy p { margin: 0; color: #617779; font-size: 12px; line-height: 1.7; }
    .activation-form label { display: block; margin-bottom: 7px; color: #304d4d; font-size: 12px; font-weight: 700; }
    .activation-controls { display: flex; gap: 8px; }
    .activation-controls input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; border: 1px solid #bcd9d4; border-radius: 8px; background: #fff; }
    .activation-controls .btn { min-height: 44px; white-space: nowrap; }
    .activation-tools { min-height: 20px; display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-top: 6px; }
    .activation-visibility { padding: 0; border: 0; background: transparent; color: #437973; font-size: 11px; }
    .activation-visibility:hover { text-decoration: underline; }
    .activation-error { color: var(--danger); font-size: 11px; line-height: 1.5; text-align: right; }
    .account-name { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
    .connected.inactive { color: #6f7f81; background: #f2f5f4; border-color: #dfe7e5; }
    .locked-note { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d4e5e2; border-radius: 9px; color: #526e6c; background: #f3faf8; font-size: 12px; }
    .admin-entry { display: block; width: fit-content; margin: 15px 3px 0; color: #6b8082; font-size: 12px; text-decoration: none; }
    .admin-entry:hover { color: var(--teal-700); }
    @media (max-width: 900px) { .sidebar { position: static; } .submit-layout { grid-template-columns: 1fr; } .activation-panel { grid-template-columns: 1fr; } }
    @media (max-width: 620px) { .shell { width: calc(100% - 20px); } .task-metrics { grid-template-columns: repeat(2, 1fr); } .lookup-head { flex-wrap: wrap; } .lookup-results-head { flex-wrap: wrap; } .lookup-results-head div { width: 100%; } .lookup-results-head .btn { flex: 1; } .activation-panel { padding: 17px; } .activation-controls { flex-direction: column; } .activation-controls .btn { width: 100%; } }

    /* Customer workspace refresh: quiet surfaces, clear hierarchy, fast motion. */
    :root {
      --ink: #1a3332;
      --muted: #677d7d;
      --teal-950: #112e30;
      --teal-900: #173b3c;
      --teal-700: #1e726c;
      --teal-600: #278980;
      --teal-50: #eaf5f1;
      --line: #dfe8e4;
      --page: #f4f6f2;
      --shadow: 0 16px 42px rgba(29, 59, 52, .07);
    }
    html { min-width: 0; scroll-behavior: smooth; }
    body {
      background:
        radial-gradient(ellipse 70% 400px at 6% -130px, rgba(127,178,160,.15), transparent 75%),
        radial-gradient(ellipse 45% 380px at 100% 8%, rgba(215,204,173,.11), transparent 75%),
        var(--page);
      color: var(--ink);
      font-family: "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    .topbar {
      height: 76px;
      position: sticky;
      top: 0;
      z-index: 10;
      padding: 0 clamp(20px, 3.7vw, 64px);
      background: linear-gradient(105deg, #102b2e, #163c3e 68%, #214c49);
      box-shadow: 0 7px 25px rgba(19,49,47,.12);
    }
    .topbar::after {
      content: ""; position: absolute; inset: auto 0 0;
      height: 1px; background: rgba(255,255,255,.12);
    }
    .brand { gap: 14px; }
    .brand-mark {
      width: 45px; height: 45px; border-radius: 14px;
      color: #143b38;
      background: linear-gradient(145deg, #9ce4d3, #5dc7bd);
      box-shadow: 0 6px 18px rgba(36,186,166,.17), inset 0 1px 0 rgba(255,255,255,.55);
    }
    .brand strong { font-size: 17px; font-weight: 700; letter-spacing: .03em; }
    .brand small { margin-top: 4px; color: #a9c7c6; font-size: 11px; letter-spacing: .11em; }
    .status { font-size: 12px; color: #c6dbd8; }
    .status-dot { width: 7px; height: 7px; background: #6ee2b8; box-shadow: 0 0 0 4px rgba(110,226,184,.12); }
    .btn {
      min-height: 42px; border-radius: 11px; padding: 0 16px;
      font-size: 12px; font-weight: 650;
      transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }
    .btn:hover { box-shadow: 0 6px 17px rgba(23,80,72,.1); }
    .btn-primary {
      color: #fff; border-color: #176963;
      background: linear-gradient(135deg, #207e76, #175d5c);
      box-shadow: 0 8px 17px rgba(29,111,105,.17);
    }
    .btn-primary:hover { color: #fff; border-color: #155f5c; background: linear-gradient(135deg, #278c80, #176560); box-shadow: 0 10px 22px rgba(29,111,105,.22); }
    .btn-ghost-dark { border-color: rgba(255,255,255,.14); border-radius: 10px; color: #e6f3f0; background: rgba(255,255,255,.06); }
    .btn-ghost-dark:hover { background: rgba(255,255,255,.12); box-shadow: none; }
    .btn.is-loading { cursor: progress; }
    .btn.is-loading::before {
      content: ""; width: 13px; height: 13px; border: 2px solid currentColor;
      border-right-color: transparent; border-radius: 50%; animation: refreshSpin .75s linear infinite;
    }
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .panel:focus-visible {
      outline: 3px solid rgba(42,155,141,.35); outline-offset: 3px;
    }
    .shell { width: min(1440px, calc(100% - 64px)); margin: 28px auto 64px; grid-template-columns: 278px minmax(0,1fr); gap: 22px; }
    .sidebar, .workspace { border: 1px solid #e5ece8; background: #fff; box-shadow: var(--shadow); }
    .sidebar { top: 104px; padding: 25px 22px 20px; border-radius: 22px; overflow: hidden; }
    .sidebar::before { content: ""; display: block; height: 4px; width: 54px; margin: -25px 0 23px -22px; background: #54b8aa; border-radius: 0 0 8px 0; }
    .account-head { margin: 0 0 20px; gap: 8px; }
    .eyebrow { margin-bottom: 6px; color: #81918f; font-size: 11px; font-weight: 650; letter-spacing: .04em; }
    .account-id { color: #203d3b; font-size: 13px; line-height: 1.45; }
    .account-name { margin-top: 5px; font-size: 11px; line-height: 1.55; }
    .connected { border-color: #cde7de; color: #2d7461; background: #eef9f3; font-weight: 650; }
    .stat-list { gap: 9px; }
    .stat { min-height: 76px; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 14px; border-color: #e9efeb; border-radius: 13px; background: #f9fbf9; }
    .stat:first-child { border-color: #cee4db; background: #eff8f3; }
    .stat-icon { width: 38px; height: 38px; border-radius: 11px; background: #e0f3eb; }
    .stat strong { margin-top: 3px; font-size: 23px; font-weight: 750; letter-spacing: -.04em; }
    .stat span { font-size: 11px; }
    .safety { margin-top: 23px; padding: 15px 0 0; border-top: 1px solid #edf1ed; }
    .safety p { font-size: 11px; }
    .logout-link, .admin-entry { font-size: 11px; }
    .logout-link { margin-top: 21px; }
    .admin-entry { margin-top: 13px; }
    .workspace { min-width: 0; padding: clamp(20px, 2.35vw, 34px); border-radius: 26px; overflow: visible; }
    .activation-panel {
      position: relative; isolation: isolate; overflow: hidden;
      grid-template-columns: minmax(0, 1fr) minmax(290px, 1.13fr);
      min-height: 190px; gap: 24px; margin-bottom: 30px; padding: clamp(22px, 2.5vw, 32px);
      border: 1px solid #1a4845; border-radius: 21px;
      background: linear-gradient(118deg, #143637 0%, #1e4b49 58%, #286257 100%);
      box-shadow: 0 18px 31px rgba(22,66,61,.14);
    }
    .activation-panel::after {
      content: ""; position: absolute; z-index: -1; width: 370px; height: 370px; right: 26%; top: -238px;
      border: 1px solid rgba(192,233,208,.13); border-radius: 50%;
      box-shadow: 0 0 0 74px rgba(179,221,197,.035), 0 0 0 148px rgba(179,221,197,.025);
      pointer-events: none;
    }
    .activation-panel.activated {
      min-height: 0; gap: 17px; margin-bottom: 19px; padding: 16px 21px;
      border-color: #2c635b; background: linear-gradient(118deg, #153e3d, #20544e 65%, #297062);
      box-shadow: 0 10px 22px rgba(22,66,61,.1);
    }
    .activation-panel.activated .activation-copy .section-kicker { display: none; }
    .activation-panel.activated .activation-copy h2 { margin: 0 0 4px; font-size: 17px; }
    .activation-panel.activated .activation-copy p { font-size: 11px; line-height: 1.55; }
    .activation-panel.activated .activation-form { padding: 0; border: 0; background: transparent; box-shadow: none; }
    .activation-panel.activated .activation-form label { margin-bottom: 5px; color: #d4e8df; font-size: 10px; }
    .activation-panel.activated .activation-controls input { height: 40px; }
    .activation-panel.activated .activation-controls .btn { min-height: 40px; }
    .activation-panel.activated .activation-tools { min-height: 0; margin-top: 4px; }
    .activation-panel.activated .activation-visibility { color: #d0eade; }
    .activation-panel.activated .activation-error { color: #ffd6cb; }
    body:not(.is-activated) .sidebar .stat-list { display: none; }
    body.is-switching .sidebar, body.is-switching .panel-stage { visibility: hidden; }
    body.is-switching .tabs { pointer-events: none; opacity: .5; }
    .switch-notice {
      display: flex; align-items: center; gap: 11px; margin: -12px 0 23px; padding: 14px 16px;
      border: 1px solid #cbe6d8; border-radius: 11px; color: #226d5e; background: #edf8f1;
      font-size: 12px; font-weight: 650;
    }
    .switch-spinner { width: 16px; height: 16px; border: 2px solid #86bb9f; border-right-color: transparent; border-radius: 50%; animation: refreshSpin .75s linear infinite; }
    .activation-copy .section-kicker { color: #9ae0be; font-size: 11px; letter-spacing: .14em; }
    .activation-copy h2 { margin: 11px 0 9px; color: #fff; font-size: clamp(21px, 2vw, 26px); font-weight: 740; line-height: 1.3; letter-spacing: -.025em; }
    .activation-copy p { max-width: 32em; color: #c0d8d3; font-size: 12px; line-height: 1.85; }
    .activation-form { padding: 17px 18px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 12px 25px rgba(10,45,42,.13); }
    .activation-form label { margin-bottom: 8px; color: #36514c; font-size: 11px; }
    .activation-controls { gap: 8px; }
    .activation-controls input { height: 46px; border-color: #d6e2dc; border-radius: 10px; background: #fbfdfb; font-size: 12px; }
    .activation-controls input::placeholder { color: #99aaa4; }
    .activation-controls .btn { min-height: 46px; padding-inline: 18px; }
    .activation-visibility { padding: 2px 0; color: #2b786d; }
    .activation-tools { margin-top: 8px; }
    .activation-error { font-size: 11px; }
    .workspace-head { margin-bottom: 23px; align-items: end; }
    .section-kicker { margin-bottom: 7px; color: #278076; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
    .section-kicker span { padding: 0 4px; color: #aec4ba; }
    h1 { color: #1a3533; font-size: clamp(25px, 2.6vw, 34px); font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
    .workspace-intro { margin: 9px 0 0; color: #758783; font-size: 12px; line-height: 1.6; }
    .workspace-head-actions { gap: 13px; }
    .updated { color: #8b9b94; font-size: 11px; }
    .refresh-status { min-height: 36px; color: #37655d; background: #f4faf6; }
    .tabs {
      position: sticky; top: 82px; z-index: 4;
      gap: 5px; padding: 5px; border: 1px solid #e7efea; border-radius: 15px; background: #f0f5f1;
      scroll-margin-top: 94px;
    }
    .tab {
      min-width: 0; flex: 1; height: 44px; padding: 0 15px; border: 0; border-radius: 11px;
      color: #607a72; background: transparent; font-size: 12px; font-weight: 600;
      transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }
    .tab:hover { color: #1d6259; background: rgba(255,255,255,.58); }
    .tab.active { color: #185d55; border: 0; background: #fff; box-shadow: 0 3px 10px rgba(33,78,65,.1); }
    .tab.active::after { display: none; }
    .tab:active { transform: scale(.985); }
    .count { padding: 3px 7px; background: #e2f2e8; color: #2a7160; font-size: 10px; font-variant-numeric: tabular-nums; }
    .panel-stage { min-width: 0; }
    .panel { padding-top: 21px; scroll-margin-top: 148px; }
    .panel.active { animation: panelIn .32s cubic-bezier(.22,1,.36,1) both; }
    @keyframes panelIn { from { opacity: .2; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
    .form-section, .competitor-lookup, .guide { border-radius: 18px; }
    .submit-layout { grid-template-columns: minmax(0, 1.47fr) minmax(250px, .65fr); gap: 17px; }
    .form-section { padding: clamp(19px, 2vw, 27px); border-color: #e6ece8; background: #fff; }
    .form-section h3, .guide h3, .lookup-head h3 { color: #1b3734; font-size: 16px; font-weight: 750; }
    .form-section h3 { margin-bottom: 23px; }
    .batch-hint { display: block; margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
    .form-group { margin-bottom: 20px; }
    .form-group label, .competitor-lookup label { margin-bottom: 8px; color: #435e57; font-size: 12px; font-weight: 650; }
    textarea, select, .field, .lookup-url-row input { border-color: #dce6df; border-radius: 10px; background: #fbfdfb; }
    textarea { min-height: 186px; padding: 14px; font-size: 13px; line-height: 1.75; }
    textarea:focus, input:focus, select:focus { border-color: #8cc8b5; background: #fff; }
    .mode-control { gap: 8px; border: 0; overflow: visible; }
    .mode-option { min-height: 57px; border: 1px solid #dce7df; border-radius: 11px; background: #fbfdfb; text-align: left; }
    .mode-option:last-child { border-right: 1px solid #dce7df; }
    .mode-option.active { border-color: #44978a; color: #176b5f; background: #eaf6ef; box-shadow: inset 0 0 0 1px #aad9c7; }
    .mode-option.active small { color: #538679; }
    .mode-option:disabled { opacity: .56; cursor: not-allowed; }
    .mode-option strong { font-size: 12px; }
    .mode-option small { font-size: 10px; }
    .cost-hint { color: #6f857c; }
    .cost-hint strong { color: #19685e; font-size: 21px; font-variant-numeric: tabular-nums; }
    .guide { padding: 23px 22px; border-color: #e7eee5; background: linear-gradient(145deg, #f6f9f3, #edf5ee); }
    .guide h3 { margin-bottom: 15px; }
    .guide ol { list-style: decimal; padding-left: 22px; }
    .guide li { min-height: 27px; margin: 0 0 11px; padding-left: 6px; color: #5e7468; font-size: 11px; line-height: 1.7; }
    .guide li::marker { color: #298573; font-weight: 750; }
    .guide-note { margin-top: 16px; border-color: #d6e3d7; color: #537669; }
    .competitor-lookup { padding: clamp(19px, 2vw, 26px); border-color: #e6ece8; }
    .lookup-head { margin-bottom: 19px; }
    .lookup-head h3 { margin-bottom: 6px; }
    .lookup-head p { font-size: 12px; }
    .bridge-state { padding: 6px 10px; font-weight: 650; }
    .lookup-result { border: 1px solid #e0ede7; border-radius: 11px; background: #f3f9f5; }
    .panel-bar { margin-bottom: 16px; }
    .panel-bar h2 { margin-bottom: 6px; font-size: 19px; font-weight: 750; }
    .panel-bar p { font-size: 12px; }
    .task-metrics, .ledger-summary { gap: 10px; margin-bottom: 18px; }
    .task-metrics > div, .ledger-metric { border: 1px solid #e5ece6; border-radius: 13px; background: #f9fbf9; }
    .task-metrics > div { padding: 15px; }
    .task-metrics strong, .ledger-metric strong { font-size: 23px; font-variant-numeric: tabular-nums; }
    .task-metrics span, .ledger-metric span { font-size: 11px; }
    .ledger-metric { padding: 18px; }
    .table-wrap { border-color: #e0e9e3; border-radius: 13px; }
    th { color: #59736a; background: #f7faf7; font-size: 11px; font-weight: 700; }
    td { color: #435950; }
    tbody tr { transition: background-color .15s ease; }
    tbody tr:hover { background: #f7fbf8; }
    .sku-avatar { color: #257366; background: #e4f3e9; }
    .tag { padding: 5px 9px; border-radius: 7px; }
    .empty { padding: 60px 20px; }
    .toast { border-radius: 12px; box-shadow: 0 14px 34px rgba(15,47,42,.22); }
    @media (max-width: 1100px) {
      .shell { width: min(100% - 32px, 860px); grid-template-columns: minmax(0, 1fr); gap: 14px; }
      body:not(.is-activated) .sidebar { display: none; }
      .sidebar { position: static; display: grid; grid-template-columns: minmax(175px, .8fr) minmax(0, 1.7fr); gap: 7px 17px; padding: 16px 20px; }
      .sidebar::before { display: none; }
      .account-head { grid-column: 1; margin: 0; align-self: center; }
      .stat-list { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
      .stat { min-height: 68px; padding: 10px; grid-template-columns: 1fr; gap: 3px; }
      .stat-icon { display: none; }
      .stat strong { font-size: 20px; }
      .safety { display: none; }
      .logout-link { grid-column: 1; margin: 0; }
      .admin-entry { grid-column: 2; justify-self: end; margin: 0; }
      .workspace { min-height: 0; }
      .submit-layout { grid-template-columns: minmax(0, 1.3fr) minmax(200px, .7fr); }
    }
    @media (max-width: 720px) {
      .shell { width: calc(100% - 24px); margin-top: 12px; }
      .workspace { padding: 19px; border-radius: 20px; }
      .activation-panel { grid-template-columns: 1fr; gap: 16px; padding: 23px; margin-bottom: 26px; }
      .activation-panel.activated { gap: 9px; margin-bottom: 15px; padding: 15px 18px; }
      .activation-panel.activated .activation-controls { flex-direction: row; }
      .activation-panel.activated .activation-controls .btn { width: auto; }
      .activation-copy h2 { margin-top: 6px; }
      .activation-form { padding: 14px; }
      .workspace-head { align-items: start; }
      .workspace-head-actions { width: auto; }
      .updated { display: none; }
      .submit-layout { grid-template-columns: 1fr; }
      .tabs { top: 76px; }
    }
    @media (max-width: 540px) {
      .topbar { height: 66px; padding: 0 14px; }
      .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
      .brand strong { font-size: 14px; }
      .shell { width: calc(100% - 18px); }
      .sidebar { grid-template-columns: 1fr; padding: 14px; gap: 8px; }
      .account-head, .stat-list, .logout-link, .admin-entry { grid-column: 1; }
      .stat-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
      .stat { min-height: 61px; text-align: center; }
      .stat strong { font-size: 19px; }
      .admin-entry { justify-self: start; }
      .workspace { padding: 16px 13px; border-radius: 16px; }
      .activation-panel { padding: 18px; border-radius: 16px; }
      .activation-controls { flex-direction: column; }
      .activation-controls .btn { width: 100%; }
      body.is-activated .sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 11px 14px; gap: 7px; }
      body.is-activated .account-head, body.is-activated .stat-list { grid-column: 1 / -1; }
      body.is-activated .account-head { align-items: center; }
      body.is-activated .account-head .eyebrow, body.is-activated .account-name { display: none; }
      body.is-activated .account-id { font-size: 12px; }
      body.is-activated .connected { font-size: 10px; }
      body.is-activated .stat { min-height: 52px; padding: 6px 4px; }
      body.is-activated .stat strong { font-size: 18px; }
      body.is-activated .stat span { font-size: 10px; }
      body.is-activated .logout-link { grid-column: 1; margin: 0; font-size: 10px; }
      body.is-activated .admin-entry { grid-column: 2; justify-self: end; margin: 0; font-size: 10px; }
      .activation-panel.activated { padding: 13px 14px; gap: 8px; margin-bottom: 13px; }
      .activation-panel.activated .activation-copy h2 { margin-bottom: 2px; font-size: 15px; }
      .activation-panel.activated .activation-copy p { font-size: 10px; line-height: 1.45; }
      .activation-panel.activated .activation-form label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
      .activation-panel.activated .activation-controls { flex-direction: row; }
      .activation-panel.activated .activation-controls input { height: 39px; min-width: 0; padding-inline: 9px; font-size: 11px; }
      .activation-panel.activated .activation-controls .btn { width: auto; min-height: 39px; padding: 0 10px; font-size: 11px; }
      .activation-panel.activated .activation-tools { margin-top: 3px; }
      .activation-panel.activated .activation-visibility { font-size: 10px; }
      .workspace-head { margin-bottom: 16px; }
      .workspace-head-actions { width: 100%; justify-content: flex-start; }
      .workspace-intro { font-size: 11px; }
      .tabs { top: 68px; padding: 4px; gap: 2px; border-radius: 12px; }
      .tab { height: 43px; padding: 0 4px; gap: 5px; font-size: 11px; }
      .tab .icon { width: 15px; height: 15px; }
      .tab .count { display: none; }
      .panel { padding-top: 14px; }
      .form-section, .guide, .competitor-lookup { padding: 17px; border-radius: 14px; }
      .form-group label, .competitor-lookup label { align-items: start; gap: 8px; }
      .form-group label small, .competitor-lookup label small { text-align: right; }
      .task-metrics { grid-template-columns: repeat(2,1fr); }
      .ledger-summary { grid-template-columns: 1fr; }
      .panel-bar { flex-direction: column; }
      .bar-actions { width: 100%; }
      .bar-actions select { flex: 1; }
      .lookup-url-row { flex-direction: column; }
      .lookup-url-row .btn { width: 100%; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    }
  
