      :root {
        /* Light, clean theme */
        --bg: #f6f7fb;
        --panel: #ffffff;
        --panel2: #fbfbfe;
        --text: #0f172a;
        --muted: #64748b;
        --line: rgba(15, 23, 42, 0.10);
        --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
        --ok: #16a34a;
        --warn: #d97706;
        --bad: #dc2626;
        --btn: #2563eb;
        --btn2: #eef2ff;
        --focus: rgba(37, 99, 235, 0.25);
      }
      body {
        margin: 0;
        font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
        background: radial-gradient(900px 600px at 10% 0%, #eaf1ff 0%, var(--bg) 55%);
        color: var(--text);
      }
      .wrap {
        max-width: min(1920px, calc(100vw - 24px));
        width: 100%;
        margin: 0 auto;
        padding: 8px 12px 12px;
        box-sizing: border-box;
      }
      .top {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
        padding: 4px 0 8px;
        border-bottom: 1px solid var(--line);
      }
      .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
      }
      .brandLogo {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        display: block;
      }
      .brandText {
        min-width: 0;
      }
      h1 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.2px;
      }
      .sub {
        margin-top: 3px;
        color: var(--muted);
        font-size: 11px;
      }
      .grid {
        margin-top: 8px;
        display: grid;
        grid-template-columns: 360px 1fr;
        gap: 10px;
        align-items: start;
      }
      /* è¯¢ä»· / è®¢å�? Tabï¼?æ?¶çª?å·¦ä¾§å??è¡¨ï¼?æ??å®½åº¦è®©ç»?è¡¨æ ¼ */
      #panelInquiry > .grid,
      #panelCustomerQuote > .grid {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
      }
      #panelInquiry .stack,
      #panelCustomerQuote .stack {
        display: grid;
        grid-template-rows: 7fr 3fr;
        gap: 8px;
        position: sticky;
        top: 8px;
        height: calc(100vh - 88px);
        max-height: calc(100vh - 88px);
        box-sizing: border-box;
      }
      #panelInquiry .stack .list-card,
      #panelCustomerQuote .stack .list-card {
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      #panelInquiry .stack .list-card .list-card-body,
      #panelCustomerQuote .stack .list-card .list-card-body {
        flex: 1 1 auto;
        min-height: 0;
      }
      #panelInquiry .stack .list-scroll,
      #panelCustomerQuote .stack .list-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
      }
      #panelInquiry .stack .item,
      #panelCustomerQuote .stack .item {
        padding: 7px 10px;
      }
      #panelInquiry .stack .item .fn,
      #panelCustomerQuote .stack .item .fn {
        font-size: 11px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
      }
      #panelInquiry .stack .item .meta,
      #panelCustomerQuote .stack .item .meta {
        margin-top: 2px;
        font-size: 10px;
      }
      #panelInquiry .stack .item .status-row,
      #panelCustomerQuote .stack .item .status-row {
        margin-top: 4px;
        gap: 4px;
      }
      #panelInquiry .stack .import-card,
      #panelCustomerQuote .stack .linked-card {
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      #panelInquiry .stack .import-card h2,
      #panelCustomerQuote .stack .linked-card h2 {
        padding: 6px 10px;
        font-size: 12px;
        flex-shrink: 0;
      }
      #panelInquiry .stack .import-card .body,
      #panelCustomerQuote .stack .linked-card .body {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 8px 10px;
        overflow: hidden;
      }
      #panelCustomerQuote .stack .linked-card .linked-hint {
        flex-shrink: 0;
        font-size: 11px;
        line-height: 1.45;
        margin: 0 0 6px;
      }
      #panelCustomerQuote .stack .linked-card .list-scroll {
        border-top: 1px solid var(--line);
        margin-top: 2px;
        padding-top: 0;
      }
      #panelInquiry .stack .import-card .import-compact-grid {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
      }
      #panelInquiry .stack .import-card .import-field {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        width: 100%;
      }
      #panelInquiry .stack .import-card .import-field label {
        width: 36px;
        min-width: 36px;
        font-size: 11px;
        flex-shrink: 0;
        text-align: right;
      }
      #panelInquiry .stack .import-card .import-field input,
      #panelInquiry .stack .import-card .import-field select {
        flex: 1;
        min-width: 0;
        width: 100%;
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 8px;
      }
      #panelInquiry .stack .import-card .import-field.span2 {
        grid-column: auto;
      }
      #panelInquiry .stack .import-card .btns {
        margin-top: auto;
        flex-shrink: 0;
        padding-top: 8px;
      }
      #panelInquiry .stack .import-card .btns button {
        padding: 9px 10px;
        font-size: 12px;
        width: 100%;
      }
      #panelInquiry .stack .list-card > h2,
      #panelCustomerQuote .stack .list-card > h2 {
        padding: 8px 12px;
        font-size: 13px;
      }
      #panelInquiry .stack .list-toolbar,
      #panelCustomerQuote .stack .list-toolbar {
        padding: 8px 12px;
      }
      #panelInquiry > .grid > .card.profit-card,
      #panelCustomerQuote > .grid > .card.profit-card {
        min-width: 0;
        position: sticky;
        top: 8px;
        align-self: start;
        max-height: calc(100vh - 88px);
      }
      #orderPanel > h2 {
        padding: 8px 12px;
        font-size: 13px;
      }
      .cq-print-opt {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        margin-left: auto;
        cursor: pointer;
        font-size: 11px;
        white-space: nowrap;
      }
      .stack {
        display: grid;
        gap: 14px;
        align-content: start;
      }
      .hint {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.5;
      }
      /* ?????????????? RFQ ????????? */
      .order-remark-banner {
        margin-top: 4px;
        padding: 6px 8px;
        background: var(--panel2);
        border-radius: 8px;
        font-size: 11px;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-word;
        max-height: 88px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .two {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .sep {
        height: 1px;
        background: var(--line);
        margin: 10px 0;
      }
      .card {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--shadow);
      }
      .card h2 {
        margin: 0;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
      }
      .card .body {
        padding: 12px 14px;
      }
      .row {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
      }
      label {
        font-size: 12px;
        color: var(--muted);
        width: 120px;
      }
      input, select {
        flex: 1;
        background: var(--panel2);
        border: 1px solid rgba(15, 23, 42, 0.12);
        color: var(--text);
        border-radius: 12px;
        padding: 9px 10px;
        outline: none;
      }
      input:focus, select:focus {
        border-color: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 0 4px var(--focus);
      }
      .collab-cell-wrap {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 2px;
      }
      .collab-cell-wrap input.collab-remote-editing {
        border-color: rgba(245, 158, 11, 0.75);
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
      }
      .collab-cell-wrap textarea.collab-remote-editing {
        border-color: rgba(245, 158, 11, 0.75);
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
      }
      .collab-editing-badge {
        font-size: 10px;
        line-height: 1.2;
        color: #92400e;
        background: #fef3c7;
        border: 1px solid #fcd34d;
        border-radius: 4px;
        padding: 1px 5px;
        align-self: flex-start;
        pointer-events: none;
        white-space: nowrap;
      }
      .collab-sync-banner {
        display: none;
        font-size: 12px;
        color: #0369a1;
        background: #e0f2fe;
        border: 1px solid #7dd3fc;
        border-radius: 8px;
        padding: 6px 10px;
        margin-bottom: 8px;
      }
      .collab-sync-banner.visible {
        display: block;
      }
      .save-fail-banner {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
        color: #9f1239;
        background: #fff1f2;
        border: 1px solid #fb7185;
        border-radius: 8px;
        padding: 8px 10px;
        margin-bottom: 8px;
      }
      .save-fail-banner.visible {
        display: flex;
      }
      .save-fail-banner .sfb-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
      }
      .save-fail-banner .sfb-title {
        font-weight: 700;
      }
      .save-fail-banner .sfb-sub {
        color: #be123c;
        line-height: 1.35;
      }
      .save-fail-banner .sfb-retry-btn {
        flex-shrink: 0;
        border: 1px solid #e11d48;
        background: #e11d48;
        color: #fff;
        padding: 6px 10px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
      }
      .save-fail-banner .sfb-retry-btn:hover:not(:disabled) {
        background: #be123c;
      }
      .save-fail-banner .sfb-retry-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
      }
      a.audit-artifact-link {
        color: #2563eb;
        text-decoration: none;
        word-break: break-all;
      }
      a.audit-artifact-link:hover {
        text-decoration: underline;
      }
      .btns {
        display: flex;
        gap: 10px;
        margin-top: 10px;
      }
      button {
        border: 1px solid var(--line);
        background: var(--btn2);
        color: #1e293b;
        padding: 10px 12px;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 600;
      }
      button.primary {
        background: var(--btn);
        border-color: rgba(37, 99, 235, 0.6);
        color: #ffffff;
      }
      button.danger {
        background: #d97706;
        border-color: rgba(217, 119, 6, 0.5);
        color: #ffffff;
      }
      button:disabled {
        opacity: 0.55;
        cursor: not-allowed;
      }
      /* å·¦ä¾§/è®¢å�?æ??ä»¶å��å??è¡¨ï¼?å?ºå®?é«?åº¦ + å??é?¨æ»?å?¨ï¼?æ??ä»¶å?�å¤?ä¹?ä¸�æ??é?¿æ?´é¡µ */
      .card.list-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
      }
      .card.list-card > h2 {
        flex-shrink: 0;
      }
      .card.list-card .list-card-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0;
      }
      .card.list-card .list-toolbar {
        flex-shrink: 0;
        padding: 12px 14px;
        margin: 0;
        border-bottom: 1px solid var(--line);
      }
      .list,
      .list-scroll {
        flex: 1 1 auto;
        min-height: 100px;
        max-height: min(240px, calc(100vh - 480px));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
      .list-scroll::-webkit-scrollbar,
      .list::-webkit-scrollbar {
        width: 8px;
      }
      .list-scroll::-webkit-scrollbar-track,
      .list::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.04);
      }
      .list-scroll::-webkit-scrollbar-thumb,
      .list::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.22);
        border-radius: 4px;
      }
      .list-scroll::-webkit-scrollbar-thumb:hover,
      .list::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 23, 42, 0.35);
      }
      .item {
        padding: 10px 12px;
        border-top: 1px solid var(--line);
        cursor: pointer;
      }
      .item:hover { background: rgba(2, 6, 23, 0.03); }
      .item.active { background: rgba(37, 99, 235, 0.10); }
      .item .fn { font-size: 12px; color: var(--text); word-break: break-all; }
      .item .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
      .item .status-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
      .badge {
        display: inline-block;
        font-size: 10px;
        line-height: 1.4;
        padding: 2px 8px;
        border-radius: 999px;
        font-weight: 600;
        white-space: nowrap;
      }
      .badge-none { background: #f1f5f9; color: #64748b; }
      .badge-pending { background: #dbeafe; color: #1d4ed8; }
      .badge-generated { background: #fef3c7; color: #b45309; }
      .badge-sent { background: #dcfce7; color: #15803d; }
      .badge-unprinted { background: #f1f5f9; color: #64748b; }
      .badge-pushed { background: #ecfdf5; color: #047857; }
      .badge-printed { background: #dcfce7; color: #15803d; }
      .badge-failed { background: #fee2e2; color: #b91c1c; }
      .badge-stuck { background: #ffedd5; color: #c2410c; }
      .badge-refreshing { background: #e0e7ff; color: #3730a3; }
      .badge-mailbox {
        background: #ede9fe;
        color: #5b21b6;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .badge-mtc {
        background: #fff7ed;
        color: #c2410c;
        border: 1px solid rgba(194, 65, 12, 0.35);
      }
      .badge-ok {
        background: #dcfce7;
        color: #15803d;
      }
      .badge-priced {
        background: #dbeafe;
        color: #1d4ed8;
      }
      /* å�³ä¾§å?©æ¶¦å?ºï¼?ä¸?å·¦ä¾§é¡¶é?¨å¯¹é½�ï¼?å¤§è¡?æ?°æ?¶å?¨å�¡ç??å??æ»?å?¨ï¼?é�¿å?�æ?´é¡µè¢«è¡¨æ ¼æ??é?¿ */
      .card.profit-card {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 88px);
        min-height: 0;
        overflow: hidden;
      }
      #profitPanel > h2 {
        padding: 8px 12px;
        font-size: 13px;
      }
      .profit-config-body {
        padding: 8px 12px 6px;
      }
      .profit-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 12px;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
      }
      .profit-file-chip {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 10px;
        background: #eef2ff;
        border: 1px solid rgba(37, 99, 235, 0.18);
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
        color: #1e40af;
        white-space: normal;
        word-break: break-all;
        line-height: 1.45;
      }
      .profit-toolbar-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 14px;
      }
      .profit-toolbar-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        min-width: 0;
        flex: 1 1 auto;
      }
      .profit-rate-wrap {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: var(--muted);
        white-space: nowrap;
      }
      .profit-rate-inp {
        width: 72px;
        flex: none;
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 12px;
        text-align: center;
      }
      .profit-toolbar-kpis {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 0;
        margin-left: auto;
      }
      .kpi-inline {
        display: flex;
        align-items: baseline;
        gap: 5px;
        padding: 0 12px;
        border-left: 1px solid rgba(15, 23, 42, 0.1);
        white-space: nowrap;
      }
      .kpi-inline:first-child {
        border-left: none;
        padding-left: 0;
      }
      .kpi-inline .k {
        font-size: 11px;
        color: var(--muted);
      }
      .kpi-inline .v {
        font-size: 14px;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -0.02em;
      }
      .kpi-inline .v.warn {
        color: var(--warn);
      }
      .profit-toolbar-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
        margin-top: 8px;
      }
      .profit-email-fold {
        margin-left: auto;
        min-width: 0;
        flex: 0 1 280px;
      }
      .profit-email-fold summary {
        list-style: none;
        cursor: pointer;
        font-size: 11px;
        color: var(--muted);
        padding: 5px 10px;
        border: 1px dashed rgba(15, 23, 42, 0.14);
        border-radius: 8px;
        background: var(--panel2);
        user-select: none;
        transition: border-color 0.15s, color 0.15s;
      }
      .profit-email-fold summary::-webkit-details-marker {
        display: none;
      }
      .profit-email-fold summary::before {
        content: 'â?¸ ';
        font-size: 10px;
        color: #94a3b8;
      }
      .profit-email-fold[open] summary::before {
        content: 'â?¾ ';
      }
      .profit-email-fold summary:hover {
        border-color: rgba(37, 99, 235, 0.35);
        color: #2563eb;
      }
      .profit-email-fold textarea {
        width: 100%;
        box-sizing: border-box;
        margin-top: 6px;
        resize: vertical;
        font-size: 12px;
        padding: 7px 10px;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 8px;
        background: #fff;
        min-height: 52px;
        max-height: 100px;
      }
      .profit-email-fold textarea:focus {
        outline: none;
        border-color: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 0 3px var(--focus);
      }
      .profit-btns {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        flex: 1 1 auto;
      }
      .profit-btns button {
        padding: 6px 11px;
        font-size: 12px;
        border-radius: 8px;
      }
      .card.profit-card > h2,
      .card.profit-card > .body,
      .card.profit-card > .costing-banner,
      .card.profit-card > .kingdee-refresh-banner {
        flex-shrink: 0;
      }
      .card.profit-card .tableWrap {
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        overflow: auto;
        border-top: 1px solid var(--line);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
      #panelInquiry .card.profit-card .tableWrap,
      #panelCustomerQuote .card.profit-card .tableWrap {
        overflow-x: auto;
        overflow-y: auto;
      }
      .tableWrap { overflow: auto; position: relative; }
      table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
      }
      th, td {
        border-bottom: 1px solid var(--line);
        padding: 10px 8px;
        vertical-align: top;
      }
      th {
        text-align: left;
        color: var(--muted);
        font-weight: 600;
      }
      /* å?©æ¶¦è¡¨ï¼?è¡¨å¤´ sticky + å±?çº§ï¼?é�¿å?�ä¸?æ»?æ?¶æ?°æ�®è¡?ç??ä½�å??å�� */
      .card.profit-card .tableWrap {
        isolation: isolate;
      }
      .card.profit-card .tableWrap thead th {
        position: sticky;
        top: 0;
        z-index: 4;
        background: #ffffff;
        box-shadow: 0 1px 0 var(--line), 0 4px 8px rgba(15, 23, 42, 0.04);
      }
      .card.profit-card .tableWrap tbody td {
        position: relative;
        z-index: 0;
        background: #ffffff;
      }
      .pill {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 11px;
        border: 1px solid var(--line);
      }
      .pill.ok { color: var(--ok); border-color: rgba(22,163,74,0.35); background: rgba(22,163,74,0.06); }
      .pill.kingdee {
        color: #15803d;
        border-color: rgba(21, 128, 61, 0.45);
        background: rgba(21, 128, 61, 0.1);
        font-weight: 500;
      }
      .pill.missing {
        color: var(--warn);
        border-color: rgba(217, 119, 6, 0.35);
        background: rgba(217, 119, 6, 0.06);
        font-weight: 500;
      }
      .pill.missing--learn {
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 2px;
      }
      .pill.missing--learn:hover {
        background: rgba(217, 119, 6, 0.14);
      }
      .kd-learn-pop {
        position: absolute;
        z-index: 9300;
        width: min(520px, calc(100% - 16px));
        min-width: min(320px, calc(100% - 16px));
        max-height: min(520px, 70vh);
        overflow: auto;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.16);
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
        padding: 12px;
        box-sizing: border-box;
        word-break: normal;
        overflow-wrap: break-word;
      }
      .kd-learn-pop[hidden] {
        display: none !important;
      }
      .kd-learn-pop h4 {
        margin: 0 0 8px;
        font-size: 14px;
      }
      .kd-learn-pop .kd-learn-hint {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 10px;
        line-height: 1.4;
      }
      .kd-learn-search-row {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
      }
      .kd-learn-search-row input {
        flex: 1;
        min-width: 0;
      }
      .kd-learn-list {
        max-height: 280px;
        overflow: auto;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 8px;
        margin-bottom: 10px;
      }
      .kd-learn-row {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        font-size: 12px;
        cursor: pointer;
        box-sizing: border-box;
        width: 100%;
      }
      .kd-learn-row:hover {
        background: rgba(61, 139, 110, 0.06);
      }
      .kd-learn-row .kd-learn-check {
        margin-top: 3px;
      }
      .kd-learn-row .meta {
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }
      .kd-learn-row .meta .head {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: baseline;
      }
      .kd-learn-row .num {
        font-weight: 600;
        color: #0f766e;
        white-space: nowrap;
      }
      .kd-learn-row .price {
        color: var(--muted);
        white-space: nowrap;
      }
      .kd-learn-row .name {
        color: var(--text);
        line-height: 1.45;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
      }
      .kd-learn-row .spec {
        color: var(--muted);
        line-height: 1.4;
        word-break: normal;
        overflow-wrap: break-word;
      }
      .kd-learn-empty {
        display: block;
        padding: 28px 16px;
        text-align: center;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
        box-sizing: border-box;
        width: 100%;
      }
      .kd-learn-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .status-col {
        vertical-align: top;
        line-height: 1.45;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
      }
      .pill.manual {
        color: #0f766e;
        border-color: rgba(15, 118, 110, 0.35);
        background: rgba(15, 118, 110, 0.08);
      }
      .pill.map {
        color: #1d4ed8;
        border-color: rgba(29, 78, 216, 0.35);
        background: rgba(29, 78, 216, 0.08);
      }
      .pill.bad { color: var(--bad); border-color: rgba(220,38,38,0.35); background: rgba(220,38,38,0.06); }
      .pill.srcLearned {
        color: #0f766e;
        border-color: rgba(15, 118, 110, 0.45);
        background: rgba(15, 118, 110, 0.1);
      }
      .pill.srcKingdee {
        color: #15803d;
        border-color: rgba(21, 128, 61, 0.45);
        background: rgba(21, 128, 61, 0.1);
      }
      .pill.srcSheet {
        color: #64748b;
        border-color: rgba(100, 116, 139, 0.4);
        background: rgba(100, 116, 139, 0.08);
      }
      .pill.srcKdAmbiguous {
        color: #b45309;
        border-color: rgba(217, 119, 6, 0.45);
        background: rgba(217, 119, 6, 0.1);
      }
      .pill.srcKdAmbiguous--pick {
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 2px;
      }
      .pill.srcKdAmbiguous--pick:hover {
        background: rgba(217, 119, 6, 0.18);
      }
      .kd-cand-pop {
        position: fixed;
        z-index: 9200;
        min-width: 320px;
        max-width: min(460px, calc(100vw - 24px));
        max-height: min(400px, calc(100vh - 24px));
        overflow: auto;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.16);
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
        padding: 8px;
      }
      .kd-cand-pop[hidden] {
        display: none !important;
      }
      .kd-cand-pop-title {
        font-size: 12px;
        font-weight: 600;
        color: #92400e;
        padding: 4px 8px 8px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        margin-bottom: 4px;
      }
      .kd-cand-btn {
        display: block;
        width: 100%;
        text-align: left;
        border: 0;
        background: transparent;
        padding: 8px 10px;
        border-radius: 8px;
        cursor: pointer;
        font: inherit;
        font-size: 12px;
        line-height: 1.35;
        color: #0f172a;
      }
      .kd-cand-btn:hover {
        background: rgba(217, 119, 6, 0.1);
      }
      .kd-cand-pop-actions {
        display: flex;
        gap: 8px;
        padding: 8px 8px 4px;
        margin-top: 4px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
      }
      .kd-cand-pop-actions[hidden] {
        display: none !important;
      }
      .kd-cand-pop-actions button {
        font: inherit;
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid rgba(15, 23, 42, 0.14);
        background: #fff;
        cursor: pointer;
        color: #0f172a;
      }
      .kd-cand-pop-actions button:hover {
        background: rgba(15, 23, 42, 0.05);
      }
      .kd-cand-pop-actions .kd-cand-missing-btn {
        color: #b45309;
        border-color: rgba(217, 119, 6, 0.35);
        background: rgba(217, 119, 6, 0.08);
      }
      .kd-cand-pop-actions .kd-cand-missing-btn:hover {
        background: rgba(217, 119, 6, 0.16);
      }
      .kd-cand-btn .kd-cand-num {
        font-weight: 700;
        color: #b45309;
        margin-right: 6px;
      }
      .kd-cand-btn .kd-cand-price {
        float: right;
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        color: #0f766e;
        margin-left: 8px;
      }
      .kd-cand-btn .kd-cand-name {
        display: block;
        margin-top: 2px;
        color: #475569;
        clear: both;
      }
      .kd-cand-btn .kd-cand-spec {
        display: block;
        margin-top: 2px;
        color: #0f172a;
        font-size: 11px;
      }
      .kd-cand-btn .kd-cand-spec-empty {
        color: #94a3b8;
      }
      /* è?±æ??å?�å��ï¼?å¤?è¡?æ�¢è¡? + å?¨å¤§å??è§?è§?ï¼?å�ªè¯»å±?ç¤ºï¼?æ�¥æº�äº?è®¢å�?å??è¡¨ï¼? */
      .cq-inp-en {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
        padding: 8px 10px;
        margin: 0;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.35;
        text-transform: uppercase;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: anywhere;
        overflow: hidden;
        min-height: 44px;
        border: 1px solid rgba(15, 23, 42, 0.16);
        border-radius: 8px;
        background: #fff;
      }
      .cq-en-readonly {
        cursor: default;
        user-select: text;
        background: rgba(248, 250, 252, 0.95);
        border-color: rgba(15, 23, 42, 0.1);
      }
      .cq-inp-cn {
        width: 100%;
        box-sizing: border-box;
        padding: 6px 8px;
        font: inherit;
        font-size: 13px;
        border: 1px solid rgba(15, 23, 42, 0.16);
        border-radius: 8px;
        background: #fff;
      }
      tbody.cq-tbody-loading {
        opacity: 0.94;
      }
      tbody.cq-tbody-placeholder td {
        text-align: center;
        color: var(--muted);
        padding: 28px 12px;
        font-size: 13px;
      }
      tbody.profit-tbody-loading {
        opacity: 0.94;
      }
      #orderWorkbenchPrintArea td.cq-row-select-handle {
        cursor: pointer;
        user-select: none;
        text-align: center;
        font-weight: 500;
        color: var(--muted);
      }
      #orderWorkbenchPrintArea tr.cq-row-has-cell-selected td.cq-row-select-handle {
        color: #2563eb;
        font-weight: 600;
      }
      #orderWorkbenchPrintArea .cq-cell-selected-wrap input,
      #orderWorkbenchPrintArea .cq-cell-selected-wrap textarea,
      #panelInquiry .cq-cell-selected-wrap input {
        background: rgba(59, 130, 246, 0.12) !important;
        box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.45);
      }
      /* SKUï¼?é??è�¶å?½ä¸­è?�è?²å­? + å?�å��å�?æ¬¾é»?æ¡?ï¼?é�?é??è�¶é»?å­?ç?½åº?é»?æ¡?ï¼?ä¾¿äº?å?ºå??æ�¥æº� */
      .cq-inp-sku {
        width: 100%;
        box-sizing: border-box;
        padding: 6px 8px;
        font: inherit;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
        border: 1px solid rgba(15, 23, 42, 0.16);
        border-radius: 8px;
        background: #fff;
      }
      .cq-inp-sku--kingdee {
        color: #1890ff;
      }
      .cq-inp-sku--kingdee:hover {
        color: #40a9ff;
      }
      .cq-inp-sku--other {
        color: #0f172a;
      }
      .cq-inp-en:focus,
      .cq-inp-cn:focus {
        outline: none;
        border-color: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 0 3px var(--focus);
      }
      .cq-inp-sku--kingdee:focus {
        outline: none;
        border-color: rgba(24, 144, 255, 0.45);
        box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
        color: #096dd9;
      }
      .cq-inp-sku--other:focus {
        outline: none;
        border-color: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 0 3px var(--focus);
      }
      .learned-inp-sku,
      .learned-inp-cn,
      .map-inp-remark {
        width: 100%;
        box-sizing: border-box;
        padding: 6px 8px;
        font: inherit;
        font-size: 13px;
        border: 1px solid rgba(15, 23, 42, 0.16);
        border-radius: 8px;
        background: #fff;
      }
      .learned-inp-sku {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        letter-spacing: 0.02em;
      }
      .map-inp-remark {
        min-width: 180px;
      }
      .map-convert-cell {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: var(--muted);
      }
      .map-convert-cell input {
        padding: 5px 6px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        color: var(--text);
        font-size: 11px;
      }
      .map-convert-cell input:focus {
        border-color: rgba(37, 99, 235, 0.55);
        outline: none;
      }
      .learned-inp-sku:focus,
      .learned-inp-cn:focus,
      .map-inp-remark:focus {
        border-color: rgba(37, 99, 235, 0.55);
        outline: none;
      }
      .mini {
        width: 92px;
        padding: 7px 8px;
        border-radius: 10px;
      }
      /* å?©æ¶¦è¡¨ï¼?å??å®½æ??å®¹å?¨ç?¾å??æ¯?å??é?�ï¼?é�¿å?�å·¦ä¾§å??è¢«æ?¤å?ºè§?å�£ */
      table.profit-table {
        width: 100%;
        min-width: 100%;
        table-layout: fixed;
      }
      table.profit-table th,
      table.profit-table td {
        padding: 6px 5px;
      }
      table.profit-table th.name-col,
      table.profit-table td.name-col {
        word-break: break-word;
        overflow-wrap: anywhere;
      }
      table.profit-table th.cust-col,
      table.profit-table td.cust-col {
        font-size: 12px;
        color: var(--muted);
        vertical-align: top;
        word-break: break-word;
        overflow-wrap: anywhere;
      }
      table.profit-table th.sheet-col,
      table.profit-table td.sheet-col {
        font-size: 11px;
        color: var(--muted);
        vertical-align: top;
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 88px;
      }
      /* ä»?å¤? Sheet è¯¢ä»·æ?¶æ?¾ç¤ºã??æ�¥æº�Sheetã?�å?? */
      table.profit-table.hide-sheet-col col.sheet-col,
      table.profit-table.hide-sheet-col th.sheet-col,
      table.profit-table.hide-sheet-col td.sheet-col {
        display: none;
      }
      table.profit-table th.remark-col,
      table.profit-table td.remark-col {
        vertical-align: top;
      }
      table.profit-table .mini.remark-inp {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }
      .summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
      }
      .kpi {
        background: var(--panel2);
        border: 1px solid rgba(15, 23, 42, 0.10);
        border-radius: 14px;
        padding: 10px 12px;
      }
      .kpi .k { color: var(--muted); font-size: 11px; }
      .kpi .v { font-size: 16px; margin-top: 6px; font-weight: 800; }
      .toast {
        margin-top: 10px;
        font-size: 12px;
        color: var(--muted);
      }
      /* è®¢å�?é¡µç?¶æ?�æ�¡ï¼?æ??å??å®¹æ?¶ç?¨æ¨ªå¹?æ ·å¼�ï¼?é�¿å?�ã??æ­£å?¨ç??æ?� Excelã?�ç­?æ��ç¤ºè¢«å¿½ç?¥ */
      #cqToast.toast {
        margin-top: 8px;
        margin-bottom: 2px;
      }
      #cqToast.toast:empty {
        display: none;
      }
      #cqToast.toast:not(:empty) {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.45;
        color: #1e3a8a;
        background: #eff6ff;
        border: 1px solid #93c5fd;
        border-radius: 10px;
        padding: 10px 14px;
        box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
      }
      #cqToast.toast.cq-toast--busy:not(:empty) {
        color: #1e40af;
        background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
        border-color: #60a5fa;
      }
      #cqToast.toast.cq-toast--busy:not(:empty)::before {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid #93c5fd;
        border-top-color: #2563eb;
        border-radius: 50%;
        animation: krb-spin 0.75s linear infinite;
        flex-shrink: 0;
      }
      #cqToast.toast.cq-toast--ok:not(:empty) {
        color: #065f46;
        background: #ecfdf5;
        border-color: #6ee7b7;
      }
      #cqToast.toast.cq-toast--err:not(:empty) {
        color: #991b1b;
        background: #fef2f2;
        border-color: #fca5a5;
      }
      .kingdee-refresh-banner {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 0 10px 6px;
        padding: 6px 10px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        font-size: 11px;
        color: #1e3a8a;
        line-height: 1.4;
      }
      .workbench-busy-banner {
        display: none;
        flex-direction: column;
        gap: 6px;
        margin: 0 10px 6px;
        padding: 8px 10px 10px;
        background: #eff6ff;
        border: 1px solid #93c5fd;
        border-radius: 10px;
        color: #1e3a8a;
      }
      .workbench-busy-banner.is-on {
        display: flex;
      }
      .workbench-busy-banner .wbb-track {
        position: relative;
        height: 4px;
        border-radius: 999px;
        background: #dbeafe;
        overflow: hidden;
      }
      .workbench-busy-banner .wbb-bar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 40%;
        border-radius: 999px;
        background: linear-gradient(90deg, #60a5fa, #2563eb, #60a5fa);
        animation: wbb-slide 1.1s ease-in-out infinite;
      }
      @keyframes wbb-slide {
        0% {
          transform: translateX(-120%);
        }
        100% {
          transform: translateX(320%);
        }
      }
      .workbench-busy-banner .wbb-text strong {
        display: block;
        font-size: 13px;
        color: #1d4ed8;
        margin-bottom: 2px;
      }
      .workbench-busy-banner .wbb-detail {
        font-size: 11px;
        color: #475569;
        line-height: 1.4;
      }
      .kingdee-refresh-banner strong {
        display: block;
        font-size: 13px;
        color: #1e40af;
        margin-bottom: 2px;
      }
      .kingdee-refresh-banner .krb-detail {
        color: #334155;
      }
      .krb-spinner {
        width: 16px;
        height: 16px;
        border: 2px solid #93c5fd;
        border-top-color: #2563eb;
        border-radius: 50%;
        animation: krb-spin 0.75s linear infinite;
        flex-shrink: 0;
        margin-top: 2px;
      }
      button.btn-busy {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }
      button.btn-busy .krb-spinner {
        width: 14px;
        height: 14px;
        margin-top: 0;
        border-color: rgba(37, 99, 235, 0.25);
        border-top-color: #2563eb;
      }
      @keyframes krb-spin {
        to {
          transform: rotate(360deg);
        }
      }
      .costing-banner {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 10px 6px;
        padding: 8px 10px;
        background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
        border: 1.5px solid #93c5fd;
        border-radius: 10px;
        font-size: 12px;
        color: #1e3a8a;
      }
      .costing-banner.is-stuck,
      .costing-banner.is-failed {
        background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
        border-color: #fdba74;
        color: #9a3412;
      }
      .costing-banner .cb-spinner {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
        border: 3px solid #bfdbfe;
        border-top-color: #2563eb;
        border-radius: 50%;
        animation: krb-spin 0.8s linear infinite;
      }
      .costing-banner.is-stuck .cb-spinner,
      .costing-banner.is-failed .cb-spinner {
        display: none;
      }
      .costing-banner .cb-text {
        min-width: 0;
        flex: 1;
      }
      .costing-banner .cb-title {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: #1d4ed8;
        margin-bottom: 2px;
      }
      .costing-banner.is-stuck .cb-title,
      .costing-banner.is-failed .cb-title {
        color: #c2410c;
      }
      .costing-banner .cb-sub {
        font-size: 12px;
        color: #475569;
        line-height: 1.5;
      }
      .costing-banner .cb-progress {
        margin-left: auto;
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 600;
        color: #2563eb;
        background: rgba(37,99,235,0.10);
        border-radius: 999px;
        padding: 3px 10px;
        white-space: nowrap;
      }
      .costing-banner.is-stuck .cb-progress,
      .costing-banner.is-failed .cb-progress {
        color: #c2410c;
        background: rgba(194, 65, 12, 0.1);
      }
      .costing-banner .cb-retry-btn {
        flex-shrink: 0;
        border: 1px solid #ea580c;
        background: #ea580c;
        color: #fff;
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
      }
      .costing-banner .cb-retry-btn:hover:not(:disabled) {
        background: #c2410c;
        border-color: #c2410c;
      }
      .costing-banner .cb-retry-btn:disabled {
        opacity: 0.65;
        cursor: wait;
      }
      .list .item .btn-retry-costing {
        margin-left: 6px;
        border: 1px solid #ea580c;
        background: #fff7ed;
        color: #c2410c;
        border-radius: 6px;
        padding: 1px 7px;
        font-size: 11px;
        font-weight: 650;
        cursor: pointer;
        vertical-align: middle;
      }
      .list .item .btn-retry-costing:hover:not(:disabled) {
        background: #ffedd5;
      }
      .list .item .btn-retry-costing:disabled {
        opacity: 0.65;
        cursor: wait;
      }
      .tableWrap.is-costing {
        opacity: 0.45;
        pointer-events: none;
        user-select: none;
        position: relative;
      }
      /* nicer scrollbars (optional) */
      .list::-webkit-scrollbar,
      .tableWrap::-webkit-scrollbar {
        height: 10px;
        width: 10px;
      }
      .list::-webkit-scrollbar-thumb,
      .tableWrap::-webkit-scrollbar-thumb {
        background: rgba(2, 6, 23, 0.18);
        border-radius: 999px;
      }
      .list::-webkit-scrollbar-track,
      .tableWrap::-webkit-scrollbar-track {
        background: transparent;
      }
      @media (max-width: 980px) {
        .grid { grid-template-columns: 1fr; }
        .two { grid-template-columns: 1fr; }
        .profit-toolbar-kpis { margin-left: 0; width: 100%; }
        .kpi-inline:first-child { padding-left: 0; border-left: none; }
        .profit-email-fold { margin-left: 0; flex: 1 1 100%; }
      }
      .login-screen {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 20px;
        box-sizing: border-box;
        background:
          radial-gradient(1200px 700px at 15% -10%, #dbeafe 0%, transparent 55%),
          radial-gradient(900px 600px at 90% 100%, #e0e7ff 0%, transparent 50%),
          linear-gradient(165deg, #f8fafc 0%, #eef2ff 48%, #f1f5f9 100%);
      }
      .login-shell {
        width: 100%;
        max-width: 440px;
      }
      .login-brand {
        text-align: center;
        margin-bottom: 22px;
      }
      .login-brand h1 {
        margin: 0;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: 0.02em;
        color: #2563eb;
        line-height: 1.25;
      }
      .login-brand .sub {
        margin-top: 8px;
        font-size: 14px;
        color: #64748b;
      }
      .login-card {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 20px;
        box-shadow:
          0 4px 6px rgba(15, 23, 42, 0.04),
          0 24px 48px rgba(15, 23, 42, 0.08);
        padding: 32px 32px 28px;
        backdrop-filter: blur(8px);
      }
      .login-field {
        margin-bottom: 18px;
      }
      .login-card label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
        margin-bottom: 8px;
      }
      .login-card input {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        font-size: 15px;
        background: #f8fafc;
        transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
      }
      .login-card input:hover {
        border-color: #cbd5e1;
        background: #fff;
      }
      .login-card input:focus {
        outline: none;
        border-color: rgba(37, 99, 235, 0.65);
        background: #fff;
        box-shadow: 0 0 0 4px var(--focus);
      }
      .login-card input.login-input-err {
        border-color: #f87171;
        background: #fef2f2;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
      }
      .login-pass-wrap {
        position: relative;
      }
      .login-pass-wrap input {
        padding-right: 44px;
      }
      .login-pass-toggle {
        position: absolute;
        right: 6px;
        bottom: 6px;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: #64748b;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: color 0.15s, background 0.15s;
      }
      .login-pass-toggle:hover {
        color: #2563eb;
        background: rgba(37, 99, 235, 0.08);
      }
      .login-pass-toggle:focus-visible {
        outline: none;
        color: #2563eb;
        box-shadow: 0 0 0 3px var(--focus);
      }
      .login-pass-toggle svg {
        width: 18px;
        height: 18px;
        display: block;
        pointer-events: none;
      }
      .login-pass-toggle .icon-eye-off {
        display: none;
      }
      .login-pass-toggle.is-visible .icon-eye {
        display: none;
      }
      .login-pass-toggle.is-visible .icon-eye-off {
        display: block;
      }
      .login-captcha-row {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .login-captcha-img-btn {
        flex-shrink: 0;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        overflow: hidden;
        line-height: 0;
        transition: border-color 0.15s, box-shadow 0.15s;
      }
      .login-captcha-img-btn:hover {
        border-color: #93c5fd;
        box-shadow: 0 0 0 3px var(--focus);
      }
      .login-captcha-img-btn img {
        display: block;
        width: 128px;
        height: 44px;
      }
      .login-captcha-row input {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        letter-spacing: 0.2em;
        text-transform: uppercase;
      }
      .login-card button[type='submit'] {
        width: 100%;
        margin-top: 6px;
        padding: 13px 16px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
        transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
      }
      .login-card button[type='submit']:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
      }
      .login-card button[type='submit']:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
      }
      .login-alert {
        display: none;
        align-items: flex-start;
        gap: 10px;
        margin-top: 16px;
        padding: 12px 14px;
        border-radius: 12px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #b91c1c;
        font-size: 13px;
        line-height: 1.45;
      }
      .login-alert.visible {
        display: flex;
      }
      .login-alert-icon {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fee2e2;
        color: #dc2626;
        font-size: 13px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .login-hint {
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid #f1f5f9;
        font-size: 12px;
        color: #94a3b8;
        line-height: 1.55;
        text-align: center;
      }
      .login-screen.login-shake .login-card {
        animation: loginShake 0.45s ease;
      }
      @keyframes loginShake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
      }
      #appShell.panel-hidden {
        display: none !important;
      }
      #loginScreen.panel-hidden {
        display: none !important;
      }
      #appBootOverlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(248, 250, 252, 0.92);
        backdrop-filter: blur(2px);
      }
      #appBootOverlay.visible {
        display: flex;
      }
      .app-boot-panel {
        text-align: center;
        padding: 28px 36px;
        border-radius: 12px;
        background: #fff;
        border: 1px solid var(--line, #e2e8f0);
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
        max-width: 360px;
      }
      .app-boot-spinner {
        width: 36px;
        height: 36px;
        margin: 0 auto 14px;
        border: 3px solid #e2e8f0;
        border-top-color: #2563eb;
        border-radius: 50%;
        animation: appBootSpin 0.8s linear infinite;
      }
      @keyframes appBootSpin {
        to { transform: rotate(360deg); }
      }
      .app-boot-title {
        font-size: 15px;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 6px;
      }
      .app-boot-hint {
        font-size: 13px;
        color: #64748b;
        line-height: 1.5;
      }
      .appNav {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
        margin: 6px 0 2px;
      }
      .appNavSpacer {
        flex: 1;
        min-width: 12px;
      }
      .tabBtn.tabBtnMap {
        background: #f0fdf4;
        border-color: rgba(22, 163, 74, 0.35);
        color: #166534;
      }
      .tabBtn.tabBtnMap.active {
        background: #16a34a;
        border-color: #15803d;
        color: #fff;
      }
      .tabBtn.tabBtnLearned {
        background: #f0fdfa;
        border-color: rgba(15, 118, 110, 0.35);
        color: #0f766e;
      }
      .tabBtn.tabBtnLearned.active {
        background: #0d9488;
        border-color: #0f766e;
        color: #fff;
      }
      .mapPanelToolbar {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 12px;
      }
      .mapPanelToolbar input {
        flex: 1;
        min-width: 200px;
      }
      .learnedAnalyzePanel {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        margin: 0 0 12px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--panel2);
      }
      .learnedAnalyzePanel[hidden] {
        display: none !important;
      }
      .learnedAnalyzePanel input[type='date'],
      .learnedAnalyzePanel select {
        flex: none;
        width: auto;
        min-width: 0;
        padding: 5px 8px;
        border-radius: 8px;
        font-size: 12px;
      }
      .learnedAnalyzePanel button.ghost {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--muted);
      }
      .mapPager {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        padding: 8px 12px;
        border-top: 1px solid var(--line);
        background: var(--panel2);
        font-size: 12px;
        color: var(--muted);
        flex-shrink: 0;
      }
      .mapPager button {
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 12px;
      }
      .mapPager select {
        flex: none;
        width: auto;
        padding: 5px 8px;
        border-radius: 8px;
        font-size: 12px;
      }
      .learn-rule-actions {
        text-align: center;
        white-space: nowrap;
      }
      .learn-rule-del-btn {
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 8px;
      }
      .tabBtn {
        border: 1px solid var(--line);
        background: var(--panel2);
        color: var(--text);
        padding: 6px 12px;
        border-radius: 10px;
        cursor: pointer;
        font-weight: 700;
        font-size: 12px;
      }
      .tabBtn.active {
        background: var(--btn);
        border-color: rgba(37, 99, 235, 0.6);
        color: #fff;
      }
      .userBadge {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-size: 12px;
        white-space: nowrap;
      }
      .userBadge strong {
        color: var(--text);
        font-size: 13px;
      }
      .topActions {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .panel-hidden {
        display: none !important;
      }
      .confirm-overlay {
        display: none;
        position: fixed;
        inset: 0;
        /* ??? preview/column-map?12500?????????????????????? */
        z-index: 13000;
        background: rgba(15, 23, 42, 0.45);
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
      }
      .confirm-overlay.open {
        display: flex;
      }
      .confirm-dialog {
        width: min(440px, 100%);
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(2, 8, 23, 0.18);
        padding: 18px 20px 16px;
      }
      .confirm-dialog h3 {
        margin: 0 0 10px;
        font-size: 16px;
        font-weight: 700;
      }
      .confirm-dialog .confirm-body {
        margin: 0;
        font-size: 13px;
        line-height: 1.55;
        color: var(--text);
        white-space: pre-line;
      }
      .confirm-dialog .confirm-warn {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(217, 119, 6, 0.08);
        border: 1px solid rgba(217, 119, 6, 0.35);
        color: #b45309;
        font-size: 12px;
        line-height: 1.5;
      }
      .confirm-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 16px;
      }
      .confirm-actions button {
        min-width: 88px;
        padding: 8px 14px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--panel2);
        cursor: pointer;
        font-size: 13px;
      }
      .confirm-actions button.primary {
        background: var(--btn);
        border-color: rgba(37, 99, 235, 0.6);
        color: #fff;
      }
      .confirm-actions button.danger {
        background: #d97706;
        border-color: rgba(217, 119, 6, 0.5);
        color: #fff;
      }
      .unit-convert-dialog {
        width: min(560px, 100%);
        max-height: min(88vh, 720px);
        display: flex;
        flex-direction: column;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(2, 8, 23, 0.18);
        padding: 18px 20px 16px;
        box-sizing: border-box;
      }
      .unit-convert-dialog h3 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 700;
      }
      .unit-convert-hint {
        margin: 0 0 12px;
        font-size: 12px;
        line-height: 1.5;
        color: var(--muted);
      }
      .unit-convert-form {
        padding: 12px;
        border-radius: 10px;
        background: var(--panel2);
        border: 1px solid var(--line);
        margin-bottom: 12px;
      }
      .unit-convert-meta {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: normal;
        margin: 6px 0 10px;
        min-height: 1.2em;
        line-height: 1.45;
      }
      .unit-convert-fields {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }
      .unit-convert-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
        color: var(--muted);
      }
      .unit-convert-field-full {
        margin-bottom: 0;
      }
      .unit-convert-field input {
        padding: 7px 8px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--surface);
        font-size: 13px;
        color: var(--text);
      }
      .unit-convert-preview {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.5;
        color: var(--text);
      }
      @media (max-width: 520px) {
        .unit-convert-fields {
          grid-template-columns: 1fr;
        }
      }
      .push-intervene-dialog {
        width: min(480px, 100%);
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(2, 8, 23, 0.18);
        padding: 18px 20px 16px;
      }
      .push-intervene-dialog h3 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 700;
      }
      .push-intervene-dialog .pi-hint {
        margin: 0 0 14px;
        font-size: 12px;
        line-height: 1.5;
        color: var(--muted, #64748b);
      }
      .push-intervene-dialog .pi-field {
        margin-bottom: 12px;
      }
      .push-intervene-dialog .pi-field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 4px;
      }
      .push-intervene-dialog .pi-field input[type='text'],
      .push-intervene-dialog .pi-field input[type='email'] {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel2, #fff);
        font-size: 13px;
      }
      .push-intervene-dialog .pi-check {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
        line-height: 1.45;
        margin: 4px 0 8px;
      }
      .push-intervene-dialog .pi-check input {
        margin-top: 3px;
      }
      .preview-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 12500;
        background: rgba(15, 23, 42, 0.50);
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
      }
      .preview-overlay.open {
        display: flex;
      }
      .preview-dialog {
        width: min(1200px, 95vw);
        max-height: 85vh;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(2, 8, 23, 0.25);
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .preview-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        flex-shrink: 0;
      }
      .preview-header h3 {
        margin: 0 0 8px;
        font-size: 17px;
        font-weight: 700;
      }
      .preview-info {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6;
      }
      .preview-body {
        flex: 1;
        overflow: auto;
        padding: 16px 20px;
      }
      .preview-sheet-panel {
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
      }
      .preview-sheet-hint {
        margin: 0;
        font-size: 13px;
        line-height: 1.65;
        color: var(--text);
      }
      .preview-sheet-note {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6;
      }
      .preview-open-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
      }
      .preview-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
      }
      .preview-table th {
        background: var(--panel2);
        border: 1px solid var(--line);
        padding: 8px 10px;
        text-align: left;
        font-weight: 600;
        position: sticky;
        top: 0;
        z-index: 1;
      }
      .preview-table td {
        border: 1px solid var(--line);
        padding: 7px 10px;
      }
      .preview-table tr:hover {
        background: var(--panel2);
      }
      .preview-table .price-cell {
        text-align: right;
        font-family: ui-monospace, monospace;
      }
      .preview-table .status-missing {
        color: var(--bad);
        font-weight: 600;
      }
      .preview-table .status-ok {
        color: var(--ok);
      }
      .preview-footer {
        padding: 14px 20px;
        border-top: 1px solid var(--line);
        background: var(--panel2);
        flex-shrink: 0;
      }
      .preview-totals {
        display: flex;
        gap: 24px;
        margin-bottom: 14px;
        font-size: 13px;
      }
      .preview-totals strong {
        font-weight: 700;
        color: var(--text);
      }
      .preview-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
      }
      .preview-actions button {
        min-width: 100px;
        padding: 9px 16px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--panel);
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
      }
      .preview-actions button.primary {
        background: var(--btn);
        border-color: rgba(37, 99, 235, 0.6);
        color: #fff;
      }
      .preview-actions button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      .pill.srcDict {
        color: #1d4ed8;
        border-color: rgba(29, 78, 216, 0.4);
        background: rgba(29, 78, 216, 0.1);
      }
      .pill.srcQwen {
        color: #7c3aed;
        border-color: rgba(124, 58, 237, 0.35);
        background: rgba(124, 58, 237, 0.08);
      }
      .pill.srcMixed {
        color: var(--warn);
        border-color: rgba(217, 119, 6, 0.35);
        background: rgba(217, 119, 6, 0.06);
      }
      .pill.srcNone {
        color: var(--muted);
        border-color: var(--line);
        background: rgba(2, 6, 23, 0.03);
      }
      .printTitle {
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 10px;
        display: none;
      }
      #orderWorkbenchPrintArea.has-data .printTitle {
        display: block;
      }
      #cqPrintSnapshot {
        display: none;
      }
      #cqPrintSnapshot .printTitle {
        display: block;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 10px;
      }
      #cqPrintSnapshot table.cq-print-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        font-size: 11px;
      }
      #cqPrintSnapshot table.cq-print-table th,
      #cqPrintSnapshot table.cq-print-table td {
        border: 1px solid #cbd5e1;
        padding: 5px 4px;
        vertical-align: top;
        word-break: normal;
        overflow-wrap: break-word;
      }
      #cqPrintSnapshot table.cq-print-table th {
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
        text-align: left;
      }
      #cqPrintSnapshot table.cq-print-table td.cq-print-num {
        text-align: right;
        white-space: nowrap;
      }
      #cqPrintSnapshot .cq-print-en {
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
      }

      /* ¹ÜÀíÔ±£º¾ÀÕýÁÐÓ³Éä */
      .column-map-dialog {
        width: min(960px, 96vw);
        max-height: 90vh;
      }
      .column-map-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .column-map-form {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px 12px;
      }
      .column-map-form label {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
        color: var(--muted);
      }
      .column-map-form label .req {
        color: var(--bad);
      }
      .column-map-form select {
        font-size: 13px;
        padding: 6px 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel2, #fff);
        color: inherit;
      }
      .column-map-preview-wrap {
        border: 1px solid var(--line);
        border-radius: 10px;
        overflow: hidden;
        background: var(--panel2, #f8fafc);
      }
      .column-map-preview-title {
        font-size: 12px;
        font-weight: 600;
        padding: 8px 10px;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
      }
      .column-map-table-scroll {
        overflow: auto;
        max-height: 360px;
      }
      .column-map-table {
        border-collapse: collapse;
        width: max-content;
        min-width: 100%;
        font-size: 11px;
      }
      .column-map-table th,
      .column-map-table td {
        border: 1px solid var(--line);
        padding: 4px 6px;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
      }
      .column-map-table th {
        background: #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 1;
        font-weight: 600;
      }
      .column-map-table td.cm-rownum,
      .column-map-table th.cm-rownum {
        position: sticky;
        left: 0;
        background: #e2e8f0;
        font-weight: 600;
        z-index: 2;
      }
      .column-map-table th.cm-rownum {
        z-index: 3;
      }
      .column-map-table tr.cm-header-row td {
        background: #fef9c3;
      }
      .column-map-table td.cm-row-check,
      .column-map-table th.cm-row-check {
        width: 2rem;
        text-align: center;
        padding: 4px;
      }
      .column-map-table tr.cm-suggest-row td {
        background: #f0fdf4;
      }
      .column-map-row-select {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        margin: 8px 0 10px;
      }
      .column-map-sample-body {
        margin: 0;
        padding: 10px;
        font-size: 12px;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-word;
        max-height: 160px;
        overflow: auto;
        background: var(--panel2, #f8fafc);
        border: 1px solid var(--line);
        border-radius: 10px;
      }
