
    :root { --bg:#eef3fb; --card:#ffffff; --text:#111827; --muted:#667085; --brand:#2563eb; --danger:#ef4444; --line:#dbe4f0; --soft:#f8fbff; }
    *{ box-sizing:border-box; }
    body{ margin:0; background:linear-gradient(180deg,#eef3fb 0%,#f8fbff 55%,#eef2f7 100%); color:var(--text); font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; }
    header{ position:sticky; top:0; z-index:20; background:rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); padding:18px 24px; display:flex; gap:16px; align-items:center; flex-wrap:wrap; min-height:96px; }
    .brand{ display:inline-flex; align-items:center; gap:16px; font-weight:800; letter-spacing:.2px; min-width:0; margin-right:0; flex-shrink:0; }
    .brand-logo{ width:var(--site-brand-logo-width,72px); height:var(--site-brand-logo-height,72px); border-radius:16px; object-fit:contain; display:none; border:0; background:transparent; padding:0; flex:0 1 auto; min-width:32px; max-width:100%; box-shadow:none; }
    .brand-text{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:24px; line-height:1.18; padding-bottom:2px; font-weight:900; color:#0f172a; }
    .brand.logo-only .brand-text{ display:none; }
    .nav{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-left:10px; }
    .nav a{ text-decoration:none; color:var(--muted); padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:#fff; }
    .nav a.active{ color:#fff; background:linear-gradient(135deg,#2563eb,#3b82f6); border-color:transparent; }
    .right{ margin-left:auto; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
    @media (min-width: 781px){
      header{
        flex-wrap:nowrap;
        justify-content:space-between;
        gap:clamp(18px,2.4vw,72px);
        padding:clamp(14px,1.2vw,18px) clamp(24px,3vw,56px);
      }
      header .brand{
        flex:0 1 auto;
        max-width:clamp(300px,31vw,600px);
        gap:clamp(10px,1.1vw,18px);
      }

      header .brand:not(.logo-only) .brand-logo{
        max-width:min(var(--site-brand-logo-width,72px),58%);
      }
      header .brand.logo-only .brand-logo{
        max-width:100%;
      }
      header .brand-text{
        font-size:clamp(22px,1.55vw,30px);
      }
      header .nav{
        flex:1 1 auto;
        min-width:0;
        width:auto;
        max-width:none;
        margin-left:0;
        padding-left:clamp(8px,0.9vw,18px);
        justify-content:flex-start;
        flex-wrap:nowrap;
        gap:clamp(6px,0.72vw,16px);
        overflow-x:auto;
        overflow-y:hidden;
        scrollbar-width:none;
        -ms-overflow-style:none;
      }
      header .nav::-webkit-scrollbar{ display:none; }
      header .nav a{
        flex:0 0 auto;
        white-space:nowrap;
        padding:8px clamp(10px,0.78vw,18px);
        line-height:1.25;
      }
      header .right{
        flex:0 0 auto;
        margin-left:0;
        flex-wrap:nowrap;
        justify-content:flex-end;
      }
    }
    @media (min-width: 1440px){
      header{ gap:clamp(34px,3.8vw,96px); }
      header .nav{ padding-left:clamp(10px,1vw,22px); justify-content:flex-start; }
    }
    @media (min-width: 781px) and (max-width: 1360px){
      header{
        gap:clamp(10px,1.4vw,24px);
        padding-left:18px;
        padding-right:18px;
      }
      header .brand{
        max-width:clamp(260px,29vw,430px);
        gap:10px;
      }
      header .brand-text{
        font-size:22px;
      }
      header .nav{
        justify-content:flex-start;
        padding-left:6px;
        gap:6px;
      }
      header .nav a{
        padding:7px 10px;
      }
      header .right{
        gap:6px;
      }
    }
    @media (min-width: 781px) and (max-width: 1120px){
      header .brand{ max-width:28vw; }
      header .brand-text{ font-size:20px; }
      header .nav a{ padding:7px 9px; }
    }
    .top-notice-bell{ position:relative; display:none; }
    .top-notice-bell.show{ display:block; }
    .top-notice-trigger{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:999px; border:1px solid #e5e7eb; background:#fff; color:#0f172a; cursor:pointer; box-shadow:0 1px 2px rgba(15,23,42,.04); }
    .top-notice-trigger:hover{ background:#f8fafc; border-color:#dbe4f0; }
    .top-notice-trigger.has-unread{ box-shadow:0 8px 24px rgba(37,99,235,.10); }
    .top-notice-icon{ font-size:18px; line-height:1; }
    .count-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border-radius:50%;background:#ef4444;color:#fff;border:2px solid #fff;box-shadow:0 8px 18px rgba(239,68,68,.24);font-size:10px;font-weight:900;line-height:1;text-align:center;white-space:nowrap;letter-spacing:-.15px;font-variant-numeric:tabular-nums;pointer-events:none;overflow:hidden;}
    .top-notice-badge{ position:absolute; top:-3px; right:-3px; }
    .top-notice-badge.show{ display:inline-flex; }
    .top-notice-dropdown{ position:absolute; right:0; top:calc(100% + 10px); width:360px; max-width:min(360px, calc(100vw - 24px)); padding:12px; border:1px solid #e5e7eb; border-radius:20px; background:#fff; box-shadow:0 24px 56px rgba(15,23,42,.16); display:none; z-index:90; }
    .top-notice-bell.open .top-notice-dropdown{ display:block; }
    .top-notice-panel{ display:flex; flex-direction:column; gap:10px; }
    .top-notice-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .top-notice-title{ font-size:15px; font-weight:900; color:#0f172a; }
    .top-notice-head-meta{ font-size:12px; color:#64748b; }
    .top-notice-head-actions{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
    .top-notice-link-btn{ padding:0; border:0; background:transparent; color:#2563eb; font-size:12px; font-weight:800; cursor:pointer; }
    .top-notice-link-btn[disabled]{ color:#94a3b8; cursor:not-allowed; }
    .top-notice-list{ display:flex; flex-direction:column; gap:8px; max-height:420px; overflow:auto; padding-right:2px; }
    .top-notice-item{ width:100%; padding:12px 12px 10px; border:1px solid #e2e8f0; border-radius:16px; background:#fff; text-align:left; cursor:pointer; }
    .top-notice-item:hover{ background:#f8fbff; border-color:#bfdbfe; }
    .top-notice-item.unread{ background:#f8fbff; border-color:#bfdbfe; }
    .top-notice-item-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
    .top-notice-item-title{ font-size:13px; font-weight:800; color:#0f172a; line-height:1.5; }
    .top-notice-item-summary{ margin-top:4px; color:#64748b; font-size:12px; line-height:1.6; }
    .top-notice-item-meta{ margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:#64748b; }
    .top-notice-item-tags{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
    .top-notice-pill{ display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; background:#f1f5f9; color:#334155; font-size:11px; font-weight:700; }
    .top-notice-pill.unread{ background:#fee2e2; color:#b91c1c; }
    .top-notice-empty{ padding:18px 12px; border:1px dashed #dbe4f0; border-radius:16px; background:#f8fbff; color:#64748b; font-size:13px; text-align:center; }
    .account-menu{ position:relative; }
    .account-trigger{ display:inline-flex; align-items:center; gap:10px; min-height:46px; padding:6px 14px 6px 10px; border-radius:999px; border:1px solid #e5e7eb; background:#fff; color:#111827; cursor:pointer; box-shadow:0 1px 2px rgba(15,23,42,.04); font-weight:700; }
    .account-trigger:hover{ background:#f8fafc; border-color:#dbe4f0; }
    .account-avatar,.account-dropdown-avatar{ width:30px; height:30px; border-radius:999px; background:linear-gradient(135deg,#2563eb,#60a5fa); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; flex-shrink:0; overflow:hidden; background-size:cover; background-position:center; }
    .account-avatar.has-image,.account-dropdown-avatar.has-image{ color:transparent; font-size:0; text-indent:-9999px; }
    .account-trigger-text{ display:flex; align-items:center; gap:8px; min-width:0; }
    .account-trigger-name{ max-width:170px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .account-trigger-role{ color:#64748b; font-size:12px; font-weight:700; white-space:nowrap; }
    .account-trigger-arrow{ color:#94a3b8; font-size:12px; }
    .account-dropdown{ position:absolute; right:0; top:calc(100% + 10px); width:280px; padding:10px; border:1px solid #e5e7eb; border-radius:18px; background:#fff; box-shadow:0 20px 48px rgba(15,23,42,.14); display:none; z-index:80; }
    .account-menu.open .account-dropdown{ display:block; }
    .account-dropdown-card{ padding:12px; border-radius:14px; border:1px solid #e6edf7; background:#f8fbff; }
    .account-dropdown-top{ display:flex; align-items:center; gap:10px; min-width:0; }
    .account-dropdown-main{ min-width:0; }
    .account-dropdown-name{ font-size:15px; font-weight:800; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .account-dropdown-sub{ margin-top:4px; color:#64748b; font-size:12px; line-height:1.6; word-break:break-all; }
    .account-dropdown-actions{ display:grid; gap:6px; margin-top:8px; }
    .account-dropdown-btn{ width:100%; padding:10px 12px; border:0; border-radius:12px; background:#fff; color:#111827; text-align:left; font-weight:700; cursor:pointer; }
    .account-dropdown-btn:hover{ background:#f8fafc; }
    .account-dropdown-btn.danger{ color:#fff; background:linear-gradient(135deg,#ef4444,#dc2626); box-shadow:0 8px 18px rgba(220,38,38,.22); }
    .account-dropdown-btn.danger:hover{ background:linear-gradient(135deg,#dc2626,#b91c1c); color:#fff; }
    .pill{ display:inline-flex; gap:6px; align-items:center; padding:4px 10px; border-radius:999px; border:1px solid #eee; background:#fafafa; color:#333; font-size:12px;}
    main{ padding:12px; width:100%; max-width:none; margin:0; display:grid; grid-template-columns: 1fr; gap:12px; }
    .grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap:12px; }
    .card{ background:var(--card); border:1px solid #eee; border-radius:14px; padding:12px; box-shadow:0 1px 2px rgba(0,0,0,.03); }
    h2{ margin:0 0 10px; font-size:16px; }
    input{ padding:.65em .8em; border:1px solid #ddd; border-radius:12px; width:100%; }
    .quote-url-input,.quote-batch-input{ font-family:inherit; font-size:14px; font-weight:400; line-height:1.5; background:linear-gradient(180deg,#fffef7 0%,#eff6ff 100%); border-color:#60a5fa !important; box-shadow:inset 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px rgba(37,99,235,.08); }
    .quote-url-input:focus,.quote-batch-input:focus{ outline:none; background:#ffffff; border-color:#2563eb !important; box-shadow:0 0 0 4px rgba(37,99,235,.16), 0 8px 20px rgba(37,99,235,.08); }
    .quote-url-input::placeholder,.quote-batch-input::placeholder{ color:#64748b; }

    /* 统一输入体验：除登录/注册外，业务输入框获得焦点时使用蓝色高亮；不改变登录/注册保存密码能力。 */
    input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
    textarea,
    select{ transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
    input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):focus,
    textarea:focus,
    select:focus{ outline:none; border-color:#2563eb !important; box-shadow:0 0 0 4px rgba(37,99,235,.14), 0 8px 20px rgba(37,99,235,.06); background:#fff; }
    #authModal input:focus{ box-shadow:0 0 0 3px rgba(37,99,235,.12); }
    #etsyUrl.quote-url-textarea{ border-radius:18px !important; padding:.65em .85em !important; min-height:48px !important; height:48px !important; resize:none !important; overflow:hidden !important; line-height:1.55 !important; }

    /* 修复：全局 input{width:100%} 会把 checkbox/radio 拉伸导致布局错乱 */
    input[type="checkbox"], input[type="radio"]{
      width:auto;
      padding:0;
      border-radius:6px;
      border:1px solid var(--line);
      background:#fff;
    }

    button{ padding:.65em 1em; border:0; border-radius:12px; background:var(--brand); color:#fff; cursor:pointer; }
    button.secondary{ background:#111827; }
    button.ghost{ background:#fff; color:var(--text); border:1px solid #e5e7eb; }
    button.danger{ background:var(--danger); }
    button:disabled{ opacity:.6; cursor:wait; }
    .quote-tool-btn{
      background:#fff;
      color:#0f172a;
      border:1px solid #dbe4f0;
      box-shadow:0 1px 2px rgba(15,23,42,.04);
      white-space:nowrap;
    }
    .quote-tool-btn:hover{ background:#f8fbff; border-color:#bfdbfe; color:#1d4ed8; }
    .quote-file-input{ display:none; }

    /* 报价页按钮尺寸：商品行按钮适当收窄；底部批量主按钮文字严格居中 */
    .quote-add-cart-btn{
      min-width:96px;
      padding-left:.72em;
      padding-right:.72em;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      white-space:nowrap;
    }
    .quote-added-cart-btn{
      min-width:108px;
      padding-left:.72em;
      padding-right:.72em;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      white-space:nowrap;
    }
    #btnBatchAddSelected{
      min-width:150px;
      padding-left:.82em;
      padding-right:.82em;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      white-space:nowrap;
    }
    .membership-gate-line{ display:inline-flex; align-items:center; gap:22px; flex-wrap:wrap; }
    .row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
    .muted{ color:var(--muted); }


    /* 专业加载态：前台页面不再裸露“加载中”文字，改为骨架屏 + 失败兜底 */
    .pm-skeleton-page{display:grid;gap:12px;width:100%;min-width:0;}
    .pm-skeleton-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:2px 0 4px;}
    .pm-skeleton-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
    .pm-skeleton-chip,.pm-skeleton-line,.pm-skeleton-block,.pm-skeleton-thumb,.pm-skeleton-price,.pm-skeleton-avatar{
      position:relative;overflow:hidden;background:linear-gradient(90deg,#eef2f7 0%,#f8fbff 48%,#eef2f7 100%);background-size:220% 100%;animation:pmSkeletonShimmer 1.35s ease-in-out infinite;border-radius:999px;
    }
    @keyframes pmSkeletonShimmer{0%{background-position:120% 0;}100%{background-position:-120% 0;}}
    .pm-skeleton-line{display:block;height:12px;width:100%;}
    .pm-skeleton-line.xs{width:64px}.pm-skeleton-line.sm{width:96px}.pm-skeleton-line.md{width:150px}.pm-skeleton-line.lg{width:230px}.pm-skeleton-line.w40{width:40%}.pm-skeleton-line.w55{width:55%}.pm-skeleton-line.w70{width:70%}.pm-skeleton-line.w85{width:85%}
    .pm-skeleton-chip{display:inline-block;width:86px;height:32px;border-radius:999px;}
    .pm-skeleton-chip.short{width:62px}.pm-skeleton-chip.long{width:128px}
    .pm-skeleton-block{display:block;height:76px;border-radius:16px;}
    .pm-skeleton-thumb{width:84px;height:84px;border-radius:14px;flex:0 0 84px;}
    .pm-skeleton-avatar{width:60px;height:60px;border-radius:20px;flex:0 0 60px;}
    .pm-skeleton-price{width:82px;height:18px;border-radius:10px;}
    .pm-skeleton-row{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:18px;align-items:start;padding:12px 0;border-top:1px dashed var(--line);min-width:0;}
    .pm-skeleton-main{display:grid;gap:10px;min-width:0;padding-top:2px;}
    .pm-skeleton-card{border:1px solid #e6edf7;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);padding:14px;box-shadow:0 1px 2px rgba(15,23,42,.03);min-width:0;}
    .pm-skeleton-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
    .pm-skeleton-membership{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start;min-width:0;}
    .pm-skeleton-sidebar{display:grid;gap:12px;border:1px solid #e6edf7;border-radius:20px;background:#fbfdff;padding:16px;min-width:0;}
    .pm-skeleton-member-profile{display:flex;gap:12px;align-items:center;min-width:0;}
    .pm-skeleton-member-menu{display:grid;gap:8px;}
    .pm-skeleton-member-menu .pm-skeleton-chip{width:100%;height:34px;}
    .pm-skeleton-member-content{display:grid;gap:14px;min-width:0;}
    .pm-skeleton-member-hero{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;min-width:0;}
    .pm-skeleton-compact{display:grid;gap:10px;min-width:0;width:100%;padding:6px 0;}
    .pm-skeleton-table{display:grid;gap:8px;min-width:0;width:100%;}
    .pm-skeleton-table-row{display:grid;grid-template-columns:1.2fr 1fr .8fr .7fr;gap:12px;align-items:center;padding:12px;border:1px solid #e6edf7;border-radius:14px;background:#fff;}
    .pm-load-error{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:16px;}
    .pm-load-error-title{font-weight:900;color:#9a3412;}
    .pm-load-error-sub{font-size:13px;color:#a16207;margin-top:4px;line-height:1.7;}
    .pm-load-error button{height:34px;padding:0 14px;border-radius:999px;background:#fff;color:#9a3412;border:1px solid #fdba74;font-weight:800;}
    @media (max-width: 860px){
      .pm-skeleton-membership{grid-template-columns:1fr;}
      .pm-skeleton-member-hero,.pm-skeleton-card-grid{grid-template-columns:1fr;}
      .pm-skeleton-row{grid-template-columns:64px minmax(0,1fr);gap:12px;}
      .pm-skeleton-row .pm-skeleton-price{grid-column:2;}
      .pm-skeleton-thumb{width:64px;height:64px;flex-basis:64px;}
    }
    .small{ font-size:12px; }
    .img{ width:100%; max-width:420px; border-radius:14px; border:1px solid #eee; background:#f3f4f6; }

    /* 批量获取结果：加大“图片 ↔ 文案”的横向间距；缩小标题/价格/原链接的纵向间距 */
    .item{ display:grid; grid-template-columns: 84px 1fr auto; gap:18px; align-items:start; padding:12px 0; border-top:1px dashed var(--line); }
    .thumb{ width:84px; height:84px; border-radius:14px; border:1px solid var(--line); background:#f3f4f6; object-fit:cover; }
    .kvs{ display:grid; grid-template-columns: 140px 1fr; gap:6px; }
    .toast{ position:fixed; right:18px; bottom:18px; z-index:5000; max-width:min(360px, calc(100vw - 32px)); background:#111827; color:#fff; padding:12px 14px; border-radius:14px; opacity:0; transform:translateY(10px); transition:all .2s; box-shadow:0 18px 46px rgba(15,23,42,.30); pointer-events:none; line-height:1.55; font-size:14px; }
    .toast.show{ opacity:1; transform:translateY(0); }
    .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* 批量结果：标题/价格/原链接纵向别太挤也别太松 */
.meta{display:flex; flex-direction:column; gap:4px; line-height:1.35;}
.meta > *{margin:0;}
.meta a{display:inline-block;}
    #batchResults.batch-results-separated{margin-top:18px!important;padding-top:16px;border-top:1px solid #e5edf8;}
    .batch-row-main{min-width:0;}
    .batch-row-title{font-weight:700; word-break:break-word; overflow-wrap:anywhere;}
    .batch-row-link{word-break:break-all; overflow-wrap:anywhere;}
    .batch-job-titlebar{margin:-10px -10px 10px;padding:10px 12px;border-radius:14px 14px 10px 10px;background:linear-gradient(180deg,#fbfdff 0%,#f4f8ff 100%);border-bottom:1px solid #e5edf8;box-shadow:inset 0 -1px 0 rgba(59,130,246,.025);cursor:pointer;} .batch-job-titlebar button,.batch-job-titlebar input,.batch-job-titlebar label,.batch-job-titlebar a,.batch-job-titlebar summary,.batch-job-titlebar details{cursor:auto;}
    .batch-job-titlebar-main{display:flex!important;align-items:center!important;gap:18px!important;flex-wrap:nowrap!important;min-width:0;flex:1 1 auto;}.batch-job-titlebar [data-role="status"]{display:flex!important;align-items:center!important;min-width:0!important;flex:1 1 auto!important;overflow:visible!important;}.batch-job-titlebar .batch-progress-head{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;margin-top:0!important;min-width:0!important;width:100%!important;}.batch-job-titlebar .batch-progress-label{margin-left:2px;}.batch-job-titlebar .batch-progress-meta{min-width:0;overflow:visible;white-space:nowrap;flex-wrap:nowrap!important;}.batch-job-titlebar .batch-progress-meta>span{white-space:nowrap;}.batch-job-titlebar .batch-progress-note{width:auto;white-space:nowrap;margin-top:0;}.batch-job-titlebar-title{font-weight:900;color:#0f172a;letter-spacing:.2px;white-space:nowrap;flex:0 0 auto;cursor:default;}
    .batch-job-collapse-btn{width:30px;min-width:30px;height:30px;padding:0!important;border-radius:999px!important;border:1px solid #cbd5e1!important;background:#fff!important;color:#334155!important;font-weight:900!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 8px rgba(15,23,42,.06);}
    .batch-job-collapse-btn:hover{background:#f8fafc!important;border-color:#94a3b8!important;}
    [data-jobid]{contain:layout paint;}
    [data-jobid] > [data-role="results"]{contain:layout paint style;content-visibility:auto;contain-intrinsic-size:1px 520px;}
    [data-jobid][data-collapsed="1"] > [data-role="results"]{display:none!important;content-visibility:hidden;}
    [data-jobid][data-collapsed="1"] .batch-job-collapse-btn{background:#f1f5f9!important;}
    @keyframes batchRowFlashYellow{0%{background:#fef3c7;box-shadow:0 0 0 3px rgba(250,204,21,.55);}35%{background:#fde68a;box-shadow:0 0 0 4px rgba(250,204,21,.45);}100%{background:transparent;box-shadow:none;}}
    .batch-row-flash-highlight{animation:batchRowFlashYellow 1.6s ease-in-out 0s 2;}
    .batch-progress-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;}
    .batch-progress-label{font-size:13px;font-weight:800;color:#0f172a;white-space:nowrap;}
    .batch-progress-bar{position:relative;flex:0 0 160px;width:160px;min-width:160px;max-width:160px;height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;box-shadow:inset 0 1px 2px rgba(15,23,42,.06);}
    .batch-progress-bar-fill{position:absolute;left:0;top:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .25s ease;}
    .batch-progress-percent{font-size:13px;font-weight:800;color:#16a34a;white-space:nowrap;font-variant-numeric:tabular-nums;}
    .batch-progress-meta{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;color:#475569;font-size:13px;line-height:1.5;min-width:0;white-space:nowrap;}
    .batch-progress-inline-note{color:#64748b;font-size:12px;font-weight:600;}
    .batch-progress-meta .sep{color:#cbd5e1;}
    .batch-progress-meta .batch-accent{font-weight:700;color:#0f172a;}
    .batch-progress-note{margin-top:4px;color:#64748b;font-size:12px;line-height:1.6;}
    .batch-progress-skip-details{display:inline-block;position:relative;vertical-align:middle;}
    .batch-progress-skip-details summary{list-style:none;cursor:pointer;color:#2563eb;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center;gap:3px;}
    .batch-progress-skip-details summary::-webkit-details-marker{display:none;}
    .batch-progress-skip-details[open] .batch-progress-skip-arrow{transform:rotate(90deg);}
    .batch-progress-skip-arrow{display:inline-block;font-size:10px;line-height:1;transition:transform .15s ease;}
    .batch-progress-skip-details .batch-submit-skip-list{position:absolute;z-index:50;left:0;top:calc(100% + 6px);width:min(520px, calc(100vw - 40px));max-height:260px;overflow:auto;margin:0;padding:8px 10px 8px 24px;border:1px solid #bfdbfe;border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.16);color:#475569;font-size:12px;line-height:1.55;}
    .batch-submit-summary{border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff;padding:10px 12px;color:#0f172a;box-shadow:0 8px 20px rgba(37,99,235,.06);}
    .batch-submit-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-weight:900;}
    .batch-submit-summary-metrics{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:12px;color:#475569;}
    .batch-submit-summary-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:#fff;border:1px solid #dbe4f0;font-weight:800;}
    .batch-submit-summary-pill.ok{color:#166534;border-color:#bbf7d0;background:#f0fdf4;}
    .batch-submit-summary-pill.warn{color:#92400e;border-color:#fde68a;background:#fffbeb;}
    .batch-submit-summary details{margin-top:8px;}
    .batch-submit-summary summary{cursor:pointer;color:#2563eb;font-weight:800;font-size:12px;}
    .batch-submit-skip-list{margin:8px 0 0;padding:0;list-style:none;max-height:220px;overflow:auto;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;}
    .batch-submit-skip-list li{padding:8px 10px;border-top:1px dashed #e2e8f0;font-size:12px;line-height:1.55;}
    .batch-submit-skip-list li:first-child{border-top:0;}
    .batch-submit-skip-url{display:block;margin-top:4px;padding:0;border:0;background:transparent;color:#2563eb;word-break:break-all;overflow-wrap:anywhere;text-align:left;cursor:pointer;font-size:12px;line-height:1.45;}
    .batch-submit-skip-url:hover{text-decoration:underline;}
    .batch-submit-skip-list li[data-skip-url]{cursor:pointer;}
    .batch-item-warning{position:relative;margin-top:8px;padding:10px 12px;border:1px solid #fecaca;border-radius:12px;background:#fff1f2;color:#991b1b;font-size:12px;line-height:1.7;min-height:74px;padding-right:110px;}
    .batch-item-warning b{font-size:13px;color:#b91c1c;}
    .batch-item-warning .batch-inline-delete{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:.48em .95em;border-radius:12px;border:1px solid #ef4444;background:#fff;color:#dc2626;font-weight:800;box-shadow:none;cursor:pointer;}
    .batch-item-warning .batch-inline-delete:hover{background:#fff5f5;border-color:#dc2626;color:#b91c1c;}
    /* 单品报价里的异常/提示框与批量报价保持一致宽度，统一商品已失效、已售罄、个性化、高风险等提示块尺寸。 */
    #productResult .item .meta > .batch-item-warning{box-sizing:border-box!important;justify-self:start!important;align-self:start!important;}
    #productResult .item .meta > .batch-item-warning[data-single-inline-delete="1"]{padding-right:110px!important;}

    /* Orders action buttons */
     .order-actions{ display:flex; justify-content:flex-end; align-items:center; gap:10px; flex-wrap:wrap; }
    .order-record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:8px 0 14px;}
    .order-record-toolbar #orderTabs{margin:0!important;flex:1 1 470px;min-width:320px;}
    .order-record-search{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 1 360px;min-width:260px;margin-left:auto;}
    .order-record-search-box{position:relative;flex:1 1 190px;min-width:180px;}
    .order-record-search-box input{height:40px;padding:0 14px;border:1px solid #dbe4f0;border-radius:999px;background:#fff;color:#0f172a;font-size:14px;box-shadow:0 1px 2px rgba(15,23,42,.03);}
    .order-record-search-box input:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.12);}
    .order-record-search-submit{height:40px;min-width:72px;padding:0 14px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(37,99,235,.16);}
    .order-record-search-submit:hover{filter:brightness(.98);box-shadow:0 10px 22px rgba(37,99,235,.20);}
    .order-record-search-tip{flex:0 0 100%;margin-top:2px;color:#64748b;font-size:12px;text-align:right;}
    #orderTabs{overflow:visible;padding-top:4px;}
    #orderTabs button{position:relative;overflow:visible;}
    .order-tab-label{display:inline-flex;align-items:center;justify-content:center;line-height:1;}
    .order-tab-badge{position:absolute;top:-8px;right:-8px;}
    .order-record-card{contain:layout paint;}
    .order-record-body{contain:layout paint style;content-visibility:auto;contain-intrinsic-size:1px 420px;}
    .order-record-card[data-collapsed="1"] .order-record-body{display:none!important;content-visibility:hidden;}
    .order-record-titlebar{cursor:pointer;}
    .order-record-titlebar button,.order-record-titlebar input,.order-record-titlebar label,.order-record-titlebar a,.order-record-titlebar select,.order-record-titlebar textarea{cursor:auto;}
    .order-record-titlebar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto;}
    .order-record-collapse-btn{flex:0 0 auto;}
    .order-record-card[data-collapsed="1"] .order-record-collapse-btn{background:#f1f5f9!important;}
    .order-record-pager{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px 0 4px;padding:12px 10px;border:0;background:transparent;}
    .order-record-pager button{height:42px;min-width:42px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:#111827;font-size:16px;font-weight:500;line-height:42px;cursor:pointer;box-shadow:none;}
    .order-record-pager button:hover:not([disabled]):not(.active){background:#f3f4f6;color:#ff4d00;}
    .order-record-pager button.active{background:#ff4d00;color:#fff;font-weight:800;box-shadow:none;}
    .order-record-pager button[disabled]{opacity:.35;cursor:not-allowed;background:transparent;color:#9ca3af;}
    .order-record-pager .order-record-pager-arrow{font-size:28px;font-weight:300;line-height:38px;color:#9ca3af;}
    .order-record-pager .order-record-pager-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:42px;color:#9ca3af;font-size:20px;font-weight:700;letter-spacing:3px;}
    .order-record-pager-jump{display:inline-flex;align-items:center;gap:10px;margin-left:8px;color:#111827;font-size:16px;font-weight:500;}
    .order-record-pager-jump input{width:70px;height:42px;border:0;border-radius:12px;background:#f3f4f6;color:#111827;text-align:center;font-size:16px;outline:none;}
    .order-record-pager-jump input:focus{box-shadow:0 0 0 2px rgba(255,77,0,.18);background:#fff;}

    /* 订单记录借鉴淘宝：列表里只突出“实付款”，不展示复杂账单公式。 */
    .order-amount-summary{display:flex;align-items:center;justify-content:flex-start;min-width:auto;text-align:left;line-height:1.12;margin-left:38px;}
    .order-amount-count{font-size:12px;color:#475569;font-weight:800;white-space:nowrap;}
    .order-amount-label{font-size:12px;color:#475569;font-weight:700;white-space:nowrap;}
    .order-amount-value{font-size:15px;font-weight:900;color:#ef4444;font-variant-numeric:tabular-nums;white-space:nowrap;}
    .order-amount-main{display:inline-flex;align-items:baseline;justify-content:flex-start;gap:12px;white-space:nowrap;flex-wrap:nowrap;}
    .order-amount-sub{font-size:12px;color:#64748b;font-weight:600;white-space:nowrap;}
    .order-amount-sub-value{color:#ef4444;font-weight:700;}


    .order-item-issue{margin-top:8px;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
    .order-item-issue-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#fff7ed;border:1px solid #fed7aa;color:#c2410c;font-size:12px;font-weight:800;}
    .order-item-issue-badge.invalid{background:#fef2f2;border-color:#fecaca;color:#b91c1c;}
    .order-item-issue-msg{font-size:12px;color:#64748b;}
    .order-item-delete-btn{height:28px;padding:0 10px;border-radius:999px;border:1px solid #fecaca;background:#fff;color:#b91c1c;font-size:12px;font-weight:800;cursor:pointer;}
    .order-item-delete-btn:hover{background:#fef2f2;}
    .btn-clean-abnormal{height:38px;padding:0 14px;border-radius:12px;border:1px solid #fdba74;background:#fff7ed;color:#c2410c;font-weight:800;}
    .btn-clean-abnormal:hover{background:#ffedd5;}
    .btn{ padding:.55em .95em; border-radius:12px; cursor:pointer; border:1px solid transparent; font-weight:600; }
    .btn-primary{ background:#1677ff; color:#fff; }
    .btn-outline{ background:#fff; color:#1677ff; border-color:#1677ff; }
    .btn-danger-outline{ background:#fff; color:#ef4444; border-color:#ef4444; }
    .btn:disabled{ opacity:.6; cursor:not-allowed; }
    .order-pay-wrap{display:inline-flex;align-items:center;gap:10px;}
    .order-pay-meta{display:flex;flex-direction:column;align-items:flex-end;min-width:132px;line-height:1.2;text-align:right;}
    .order-pay-amount{font-size:18px;font-weight:800;color:var(--danger);font-variant-numeric:tabular-nums;}
    .order-pay-discount{margin-top:4px;font-size:12px;font-weight:700;color:var(--danger);}
    .order-pay-btn{min-width:94px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;font-size:14px;font-weight:800;line-height:1;white-space:nowrap;}
    .order-pay-btn.is-refreshing{position:relative;width:144px;min-width:144px;max-width:144px;height:38px;white-space:nowrap;overflow:hidden;opacity:1;cursor:wait;color:#1e3a8a;border-color:#60a5fa;background:linear-gradient(90deg, rgba(37,99,235,.60) 0 var(--requote-progress,1%), rgba(219,234,254,.98) var(--requote-progress,1%) 100%);box-shadow:inset 0 0 0 1px rgba(96,165,250,.18);transition:background .45s ease,border-color .25s ease,box-shadow .25s ease;}
    .requote-dots{display:inline-flex;align-items:center;justify-content:flex-start;width:20px;gap:1px;margin:0 12px 0 3px;}
    .requote-dots .dot{display:inline-block;min-width:4px;text-align:center;opacity:.2;will-change:opacity;}
    .requote-dots .dot:nth-child(1){animation:requoteDotOne 2.7s infinite linear;}
    .requote-dots .dot:nth-child(2){animation:requoteDotTwo 2.7s infinite linear;}
    .requote-dots .dot:nth-child(3){animation:requoteDotThree 2.7s infinite linear;}
    @keyframes requoteDotOne{0%,16%{opacity:1;}22%,100%{opacity:.2;}}
    @keyframes requoteDotTwo{0%,24%{opacity:.2;}30%,46%{opacity:1;}52%,100%{opacity:.2;}}
    @keyframes requoteDotThree{0%,54%{opacity:.2;}60%,76%{opacity:1;}82%,100%{opacity:.2;}}

    .etsy-search-box{margin:10px 0 14px;padding:14px;border:1px solid #dbeafe;border-radius:18px;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);box-shadow:0 8px 22px rgba(15,23,42,.04);}
    .etsy-search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px;}
    .etsy-search-title{font-weight:900;color:#0f172a;font-size:17px;}
    .etsy-search-help{margin-top:3px;color:#64748b;font-size:12px;line-height:1.6;}
    .etsy-search-history-btn{height:38px;border:1px solid #dbe7f5!important;background:#fff!important;color:#334155!important;border-radius:12px!important;padding:0 13px!important;font-weight:800!important;box-shadow:0 4px 12px rgba(15,23,42,.04)!important;display:inline-flex!important;align-items:center!important;gap:7px!important;}
    .etsy-search-history-btn:hover{border-color:#bfdbfe!important;background:#f8fbff!important;color:#1d4ed8!important;}
    .etsy-search-history-count{display:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:11px;align-items:center;justify-content:center;}
    .etsy-search-history-count.show{display:inline-flex;}
    .etsy-search-shell{width:min(1080px,100%);margin:0 auto;}
    .etsy-search-mode-tabs{display:flex;align-items:center;gap:6px;margin-bottom:10px;padding:4px;border:1px solid #dbe7f5;border-radius:14px;background:#f8fafc;width:max-content;max-width:100%;}
    .etsy-search-mode-tab{height:38px!important;min-height:38px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#64748b!important;padding:0 18px!important;font-weight:800!important;box-shadow:none!important;white-space:nowrap;}
    .etsy-search-mode-tab:hover{background:#eef4ff!important;color:#1d4ed8!important;}
    .etsy-search-mode-tab.active{background:#fff!important;color:#1d4ed8!important;box-shadow:0 2px 8px rgba(15,23,42,.09)!important;}
    .etsy-search-mode-tab:disabled{opacity:.55;cursor:not-allowed;}
    .etsy-search-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:10px;align-items:center;}
    .etsy-search-row button{height:46px;min-height:46px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;}
    .etsy-search-action-btn{border-radius:14px!important;font-weight:900!important;white-space:nowrap;}
    .etsy-search-image-prompt{display:none!important;width:100%;min-width:0;height:46px!important;border:1px solid #60a5fa!important;border-radius:15px!important;padding:0 14px!important;background:linear-gradient(180deg,#fff 0%,#f3f7ff 100%)!important;color:#334155!important;justify-content:flex-start!important;gap:10px!important;text-align:left!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.04),0 0 0 1px rgba(37,99,235,.06)!important;}
    .etsy-search-image-prompt:hover{border-color:#2563eb!important;background:#fff!important;}
    .etsy-search-image-prompt-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;}
    .etsy-search-row.is-image-mode .etsy-search-input-wrap{display:none;}
    .etsy-search-row.is-image-mode .etsy-search-image-prompt{display:flex!important;}
    .etsy-search-clear-btn{border:1px solid #fecaca!important;background:#fff7f7!important;color:#b91c1c!important;font-weight:900;}
    .etsy-search-clear-btn:hover{background:#fee2e2!important;border-color:#fca5a5!important;}
    /* 图片搜索 / 精准搜索继续共用 Google Lens 风格上传窗口。 */
    .etsy-image-search-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:22px;box-sizing:border-box;}
    .etsy-image-search-modal.open{display:flex;}
    .etsy-image-search-backdrop{position:absolute;inset:0;background:rgba(248,250,252,.68);backdrop-filter:blur(2px);}
    .etsy-image-search-panel{position:relative;width:min(946px,calc(100vw - 44px));min-height:560px;background:#fff;border-radius:28px;box-shadow:0 20px 54px rgba(15,23,42,.20);border:1px solid #e5e7eb;overflow:hidden;transition:width .2s ease,min-height .2s ease;}
    .etsy-image-search-upload-state{display:block;}
    .etsy-image-search-preview-state{display:none;padding:20px;}
    .etsy-image-search-panel.has-image{width:min(970px,calc(100vw - 44px));min-height:620px;}
    .etsy-image-search-panel.has-image .etsy-image-search-upload-state{display:none;}
    .etsy-image-search-panel.has-image .etsy-image-search-preview-state{display:block;}
    .etsy-image-search-panel-head{position:relative;display:flex;align-items:center;justify-content:center;min-height:78px;padding:18px 74px 10px;text-align:center;}
    .etsy-image-search-panel-title{font-size:20px;font-weight:700;color:#202124;line-height:1.35;}
    .etsy-image-search-panel-help{display:none;}
    .etsy-image-search-close{position:absolute;right:24px;top:20px;width:42px;height:42px;border-radius:50%;border:0;background:transparent;color:#202124;font-size:30px;font-weight:300;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;}
    .etsy-image-search-close:hover{background:#f1f3f4;}
    .etsy-image-search-panel-body{padding:8px 26px 28px;}
    .etsy-image-search-drop{min-height:360px;border:1.5px dashed #c4c7c5;border-radius:16px;background:#f8fafd;padding:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;box-sizing:border-box;outline:none;}
    .etsy-image-search-drop:hover,.etsy-image-search-drop:focus,.etsy-image-search-drop.dragover{border-color:#1a73e8;box-shadow:inset 0 0 0 1px rgba(26,115,232,.18);background:#f4f8ff;}
    .etsy-image-search-drop-center{display:flex;align-items:center;justify-content:center;gap:18px;max-width:640px;color:#5f6368;text-align:left;}
    .etsy-image-search-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;color:#6b7280;flex:0 0 auto;overflow:visible;}
    .etsy-image-search-icon svg{width:58px;height:58px;display:block;}
    .etsy-image-search-main{display:flex;align-items:baseline;gap:5px;min-width:0;flex-wrap:wrap;font-size:17px;line-height:1.65;color:#5f6368;}
    .etsy-image-search-title{font-size:17px;font-weight:400;color:#5f6368;line-height:1.65;}
    .etsy-image-search-sub{display:none;}
    .etsy-image-search-file{display:none;}
    .etsy-image-search-mini-btn{height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#1a73e8;font-size:17px;font-weight:500;line-height:1.65;text-decoration:underline;cursor:pointer;white-space:nowrap;}
    .etsy-image-search-mini-btn:hover{background:transparent;color:#1558b0;}
    .etsy-image-search-or{position:relative;display:flex;align-items:center;justify-content:center;margin:20px 0 18px;color:#5f6368;font-size:14px;}
    .etsy-image-search-or:before,.etsy-image-search-or:after{content:"";height:1px;background:#e0e3e7;flex:1;}
    .etsy-image-search-or span{padding:0 24px;background:#fff;}
    .etsy-image-search-url-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;align-items:center;}
    .etsy-image-search-url-input{height:54px;border:1px solid #dadce0;border-radius:999px;padding:0 24px;font-size:16px;color:#202124;background:#fff;box-shadow:none;}
    .etsy-image-search-url-input:focus{border-color:#1a73e8!important;box-shadow:0 0 0 1px #1a73e8!important;}
    .etsy-image-search-url-btn{height:54px;border-radius:999px;border:1px solid #dadce0;background:#fff;color:#1a73e8;font-size:16px;font-weight:600;}
    .etsy-image-search-url-btn:hover{background:#f4f8ff;border-color:#c6dafc;}
    .etsy-image-search-format-hint{display:none;}
    .etsy-image-preview-topbar{height:64px;border:1px solid #dadce0;border-radius:999px;display:flex;align-items:center;gap:14px;padding:8px 14px 8px 12px;background:#fff;box-shadow:0 2px 8px rgba(60,64,67,.14);}
    .etsy-image-preview-thumb{width:42px;height:42px;border-radius:10px;object-fit:cover;background:#f1f3f4;flex:0 0 auto;}
    .etsy-image-preview-label{min-width:0;flex:1;color:#5f6368;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .etsy-image-preview-top-close{position:static;width:42px;height:42px;font-size:28px;flex:0 0 auto;}
    .etsy-image-preview-stage{position:relative;margin-top:16px;height:500px;border-radius:24px;background:#202124;overflow:hidden;display:flex;align-items:center;justify-content:center;}
    .etsy-image-preview-image{display:block;max-width:76%;max-height:88%;object-fit:contain;border-radius:14px;box-shadow:0 16px 42px rgba(0,0,0,.32);}
    .etsy-image-preview-actions{position:absolute;right:22px;bottom:20px;display:flex;gap:12px;}
    .etsy-image-preview-action{width:54px;height:54px;border-radius:50%;border:0;background:#fff;color:#202124;box-shadow:0 3px 12px rgba(0,0,0,.26);display:flex;align-items:center;justify-content:center;font-size:24px;padding:0;}
    .etsy-image-preview-action:hover{background:#f1f3f4;}
    .etsy-image-preview-loading{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:none;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.94);color:#3c4043;font-size:14px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.22);}
    .etsy-image-search-panel.is-uploading .etsy-image-preview-loading{display:flex;}
    .etsy-image-preview-spinner{width:18px;height:18px;border:2px solid #d2e3fc;border-top-color:#1a73e8;border-radius:50%;animation:etsyLensSpin .8s linear infinite;}
    @keyframes etsyLensSpin{to{transform:rotate(360deg);}}

    .etsy-search-input-wrap{position:relative;min-width:0;width:100%;}
    .etsy-search-input{width:100%;min-height:46px;border:1px solid #60a5fa;border-radius:15px;padding:0 15px;font:inherit;background:linear-gradient(180deg,#fffef7 0%,#eff6ff 100%);box-sizing:border-box;box-shadow:inset 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px rgba(37,99,235,.08);}
    .etsy-search-input:focus{outline:none;background:#ffffff;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.16), 0 8px 20px rgba(37,99,235,.08);}
    .etsy-search-input::placeholder{color:#64748b;}
    .etsy-search-query-thumb{width:32px;height:32px;border-radius:8px;object-fit:cover;background:#f1f3f4;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgba(15,23,42,.12);display:none;flex:0 0 auto;pointer-events:none;}
    .etsy-search-image-prompt.has-image .etsy-search-query-thumb{display:block;}
    /* V73：三种搜索共用同一块进度状态栏；结果区只保留商品/骨架屏，不再重复显示“正在加载”。 */
    .etsy-search-status{position:relative;display:none;align-items:center;gap:12px;min-height:58px;margin-top:12px;padding:11px 14px;border:1px solid #dbe7f5;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 5px 16px rgba(15,23,42,.045);box-sizing:border-box;overflow:hidden;color:#334155;}
    .etsy-search-status.is-loading,.etsy-search-status.is-queued{display:flex;border-color:#bfdbfe;background:linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%);}
    .etsy-search-status.is-success{display:flex;border-color:#bbf7d0;background:linear-gradient(180deg,#ffffff 0%,#f3fcf6 100%);}
    .etsy-search-status.is-error{display:flex;border-color:#fecaca;background:linear-gradient(180deg,#ffffff 0%,#fff6f6 100%);}
    .etsy-search-status.is-info{display:flex;}
    .etsy-search-status-icon{position:relative;width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#eaf2ff;color:#2563eb;font-size:15px;font-weight:900;line-height:1;}
    .etsy-search-status.is-queued .etsy-search-status-icon{background:#eef2ff;color:#4f46e5;}
    .etsy-search-status.is-success .etsy-search-status-icon{background:#dcfce7;color:#15803d;}
    .etsy-search-status.is-error .etsy-search-status-icon{background:#fee2e2;color:#dc2626;}
    .etsy-search-status.is-info .etsy-search-status-icon{background:#f1f5f9;color:#475569;}
    .etsy-search-status-spinner{width:17px;height:17px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:etsySearchStatusSpin .78s linear infinite;box-sizing:border-box;}
    .etsy-search-status.is-queued .etsy-search-status-spinner{border-color:#c7d2fe;border-top-color:#4f46e5;animation-duration:1.05s;}
    @keyframes etsySearchStatusSpin{to{transform:rotate(360deg);}}
    .etsy-search-status-body{min-width:0;flex:1;}
    .etsy-search-status-title{display:block;color:#1e293b;font-size:13px;font-weight:800;line-height:1.4;}
    .etsy-search-status-detail{display:block;margin-top:2px;color:#64748b;font-size:12px;line-height:1.45;}
    .etsy-search-status-detail:empty{display:none;}
    .etsy-search-status.is-error .etsy-search-status-title{color:#b91c1c;}
    .etsy-search-status.is-success .etsy-search-status-title{color:#166534;}
    .etsy-search-status.is-loading:after,.etsy-search-status.is-queued:after{content:"";position:absolute;left:0;bottom:0;width:34%;height:2px;border-radius:0 999px 999px 0;background:linear-gradient(90deg,transparent,#3b82f6,transparent);animation:etsySearchStatusTrack 1.65s ease-in-out infinite;}
    .etsy-search-status.is-queued:after{background:linear-gradient(90deg,transparent,#6366f1,transparent);animation-duration:2.1s;}
    @keyframes etsySearchStatusTrack{0%{transform:translateX(-110%);}100%{transform:translateX(400%);}}
    .etsy-search-result-meta{display:none;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:10px 2px 0;}
    .etsy-search-result-meta.show{display:flex;}
    .etsy-search-result-meta-main{min-width:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
    .etsy-search-result-meta-title{color:#0f172a;font-size:20px;font-weight:900;line-height:1.35;}
    .etsy-search-result-meta-detail{color:#64748b;font-size:12px;line-height:1.5;}
    .etsy-search-save-btn{height:34px!important;min-height:34px!important;border:1px solid #dbe7f5!important;border-radius:999px!important;background:#fff!important;color:#475569!important;padding:0 12px!important;font-size:12px!important;font-weight:800!important;box-shadow:none!important;white-space:nowrap;}
    .etsy-search-save-btn:hover,.etsy-search-save-btn.saved{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important;}
    .etsy-search-history-layer{position:fixed;inset:0;z-index:9998;display:none;}
    .etsy-search-history-layer.open{display:block;}
    .etsy-search-history-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.28);backdrop-filter:blur(1px);}
    .etsy-search-history-drawer{position:absolute;top:0;right:0;width:min(430px,calc(100vw - 24px));height:100%;background:#fff;box-shadow:-18px 0 48px rgba(15,23,42,.18);display:flex;flex-direction:column;}
    .etsy-search-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 14px;border-bottom:1px solid #e8eef6;}
    .etsy-search-history-title{font-size:18px;font-weight:900;color:#0f172a;}
    .etsy-search-history-close{width:38px;height:38px!important;min-height:38px!important;border:0!important;border-radius:50%!important;background:#f1f5f9!important;color:#475569!important;font-size:23px!important;padding:0!important;}
    .etsy-search-history-tabs{display:flex;gap:8px;padding:12px 20px 0;}
    .etsy-search-history-tab{height:34px!important;min-height:34px!important;border:1px solid #dbe7f5!important;border-radius:999px!important;background:#fff!important;color:#64748b!important;padding:0 14px!important;font-size:12px!important;font-weight:800!important;}
    .etsy-search-history-tab.active{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important;}
    .etsy-search-history-body{min-height:0;flex:1;overflow:auto;padding:12px 16px 24px;}
    .etsy-search-history-empty{padding:54px 20px;text-align:center;color:#94a3b8;font-size:13px;line-height:1.8;}
    .etsy-search-history-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid #e5edf7;border-radius:15px;background:#fff;margin-top:9px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;}
    .etsy-search-history-item:first-child{margin-top:0;}
    .etsy-search-history-item:hover{border-color:#bfdbfe;box-shadow:0 8px 20px rgba(37,99,235,.08);transform:translateY(-1px);}
    .etsy-search-history-thumb{width:44px;height:44px;border-radius:11px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;overflow:hidden;}
    .etsy-search-history-thumb img{width:100%;height:100%;object-fit:cover;}
    .etsy-search-history-main{min-width:0;}
    .etsy-search-history-name{color:#0f172a;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .etsy-search-history-sub{margin-top:4px;color:#64748b;font-size:11px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .etsy-search-history-star{width:34px;height:34px!important;min-height:34px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#94a3b8!important;font-size:19px!important;padding:0!important;box-shadow:none!important;}
    .etsy-search-history-star.saved{color:#f59e0b!important;background:#fff7ed!important;}
    .etsy-search-pager{display:none;align-items:center;justify-content:center;gap:8px;margin:18px 0 2px;color:#64748b;font-size:12px;line-height:1.4;flex-wrap:wrap;}
    .etsy-search-pager button{border:1px solid #dbeafe;background:#fff;color:#1d4ed8;border-radius:999px;min-width:38px;height:38px;padding:0 12px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.035);}
    .etsy-search-pager button:hover:not(:disabled){background:#eff6ff;border-color:#bfdbfe;}
    .etsy-search-pager button:disabled{opacity:.45;cursor:not-allowed;}
    .etsy-search-page-nums{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
    .etsy-search-page-num.active{background:#2563eb;color:#fff;border-color:#2563eb;}
    .etsy-search-page-num.ready:not(.active){background:#eff6ff;border-color:#bfdbfe;}
    .etsy-search-page-num.loading:not(.active)::after{content:'…';font-weight:900;}
    .etsy-search-page-info{display:none!important;}
    /* V72：图片搜索结果隐藏“全部（All）”；AI 概览正文过滤英文来源，仅保留底部 Etsy 相关链接。 */
    .etsy-image-result-context{display:none;margin-top:12px;}
    .etsy-image-result-context.show{display:block;}
    .etsy-image-result-tabs{display:flex;align-items:flex-end;gap:28px;min-height:48px;border-bottom:1px solid #e5e7eb;padding:0 2px;overflow-x:auto;scrollbar-width:none;}
    .etsy-image-result-tabs::-webkit-scrollbar{display:none;}
    .etsy-image-result-tab{position:relative;display:inline-flex;align-items:center;height:47px;color:#3c4043;font-size:14px;font-weight:600;white-space:nowrap;padding:0 8px;}
    .etsy-image-result-tab.active{color:#1a73e8;}
    .etsy-image-result-tab.active:after{content:"";position:absolute;left:4px;right:4px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:#1a73e8;}
    .etsy-ai-overview-card{margin:18px 0 8px;border:1px solid #e4e7eb;border-radius:22px;background:#fff;padding:20px 22px;box-shadow:0 4px 14px rgba(60,64,67,.08);}
    .etsy-ai-overview-head{display:flex;align-items:center;gap:10px;color:#202124;font-size:17px;font-weight:700;line-height:1.4;}
    .etsy-ai-overview-spark{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;color:#1a73e8;font-size:22px;line-height:1;flex:0 0 auto;}
    .etsy-ai-overview-lines{margin:14px 0 0;padding-left:22px;color:#3c4043;font-size:15px;line-height:1.72;}
    .etsy-ai-overview-lines li+li{margin-top:8px;}
    .etsy-ai-overview-text{margin-top:14px;color:#3c4043;font-size:15px;line-height:1.72;white-space:pre-line;}
    .etsy-ai-overview-sources{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;}
    .etsy-ai-overview-source{display:inline-flex;align-items:center;max-width:100%;min-height:34px;border:1px solid #dadce0;border-radius:999px;background:#fff;color:#1a0dab;text-decoration:none;padding:6px 12px;font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .etsy-ai-overview-source:hover{background:#f8fafd;border-color:#c6dafc;}
    .etsy-image-result-product-label{margin:20px 0 0;color:#202124;font-size:20px;font-weight:700;line-height:1.35;}
    .etsy-search-results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:12px;}
    .etsy-search-skeleton{min-width:0;border:1px solid #e5edf7;border-radius:16px;background:#fff;padding:10px;box-shadow:0 5px 15px rgba(15,23,42,.025);overflow:hidden;}
    .etsy-search-skeleton-media,.etsy-search-skeleton-line{position:relative;overflow:hidden;background:#eef2f7;}
    .etsy-search-skeleton-media:after,.etsy-search-skeleton-line:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);animation:etsySearchSkeleton 1.45s ease-in-out infinite;}
    .etsy-search-skeleton-media{width:100%;aspect-ratio:1/1;border-radius:12px;}
    .etsy-search-skeleton-line{height:10px;margin-top:10px;border-radius:999px;}
    .etsy-search-skeleton-line.medium{width:72%;}
    .etsy-search-skeleton-line.short{width:46%;}
    @keyframes etsySearchSkeleton{100%{transform:translateX(100%);}}
    @media(prefers-reduced-motion:reduce){.etsy-search-status-spinner,.etsy-search-status.is-loading:after,.etsy-search-status.is-queued:after,.etsy-search-skeleton-media:after,.etsy-search-skeleton-line:after{animation:none;}}
    .etsy-search-card{display:flex;flex-direction:column;gap:7px;border:1px solid #e5edf7;border-radius:16px;background:#fff;padding:10px;min-width:0;box-shadow:0 5px 15px rgba(15,23,42,.035);}
    .etsy-search-thumb-wrap{position:relative;width:100%;}
    button.etsy-search-card{text-align:left;font:inherit;width:100%;cursor:pointer;}
    .etsy-search-thumb{width:100%;aspect-ratio:1/1;border-radius:12px;background:#fff;object-fit:contain;display:block;}
    .etsy-search-seller-row{display:flex;align-items:center;gap:4px;min-width:0;color:#111827;font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;}
    .etsy-search-seller-name{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;}
    .etsy-search-rating{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;color:#111827;font-weight:700;}
    .etsy-search-star{color:#111827;font-size:12px;line-height:1;}
    .etsy-search-ad{flex:0 0 auto;color:#6b7280;font-weight:500;}
    .etsy-search-card-title{font-weight:500;color:#111827;line-height:1.32;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;}
    .etsy-search-card-price{font-weight:900;color:#111827;font-size:15px;line-height:1.15;margin-top:1px;display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;}
    .etsy-search-card-price.has-discount{color:#111827;}
    .etsy-search-sale-price{font-weight:900;color:#2f6f14;}
    .etsy-search-original-price{font-weight:500;color:#6b7280;text-decoration:line-through;}
    .etsy-search-discount-text{font-weight:600;color:#6b7280;}
    .etsy-search-discount{font-weight:500;color:#6b7280;font-size:12px;}
    .etsy-search-download{display:flex;align-items:center;gap:4px;color:#4b5563;font-size:12px;line-height:1.25;}
    .etsy-download-icon{font-size:15px;line-height:1;color:#111827;font-weight:900;transform:translateY(-1px);}
    .etsy-search-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#64748b;font-size:12px;line-height:1.45;min-height:18px;}
    .etsy-search-actions{display:none;}
    .etsy-search-row .etsy-search-open-link{min-height:46px;padding:0 1em;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box;font-weight:800;}
    @media(max-width:1180px){.etsy-search-results{grid-template-columns:repeat(4,minmax(0,1fr));}}
    @media(max-width:900px){.etsy-search-results{grid-template-columns:repeat(3,minmax(0,1fr));}}
    @media(max-width:720px){.etsy-search-row{grid-template-columns:repeat(3,minmax(0,1fr));}.etsy-search-row .etsy-search-input-wrap{grid-column:1/-1;}.etsy-search-row button,.etsy-search-row .etsy-search-open-link{width:100%;min-width:0;padding-left:8px;padding-right:8px;font-size:14px;}.etsy-image-search-modal{padding:12px;align-items:center;}.etsy-image-search-panel,.etsy-image-search-panel.has-image{width:calc(100vw - 24px);min-height:0;border-radius:22px;}.etsy-image-search-panel-head{min-height:66px;padding:14px 58px 8px;}.etsy-image-search-panel-title{font-size:17px;}.etsy-image-search-close{right:12px;top:12px;width:40px;height:40px;}.etsy-image-search-panel-body{padding:8px 14px 18px;}.etsy-image-search-drop{min-height:280px;padding:20px;}.etsy-image-search-drop-center{flex-direction:column;text-align:center;gap:12px;}.etsy-image-search-main{justify-content:center;font-size:15px;}.etsy-image-search-title,.etsy-image-search-mini-btn{font-size:15px;}.etsy-image-search-url-row{grid-template-columns:1fr;}.etsy-image-search-url-btn{width:100%;}.etsy-image-search-preview-state{padding:12px;}.etsy-image-preview-topbar{height:56px;}.etsy-image-preview-thumb{width:38px;height:38px;}.etsy-image-preview-label{font-size:14px;}.etsy-image-preview-stage{height:min(62vh,430px);border-radius:18px;}.etsy-image-preview-image{max-width:92%;max-height:84%;}.etsy-image-preview-actions{right:14px;bottom:14px;}.etsy-image-preview-action{width:48px;height:48px;}.etsy-search-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}.etsy-search-actions{grid-template-columns:1fr;}.etsy-ai-overview-card{padding:17px 16px;border-radius:18px;}.etsy-image-result-tabs{gap:18px;}.etsy-image-result-product-label{font-size:18px;}}
    @media(max-width:720px){.etsy-search-head{align-items:center;}.etsy-search-history-btn{height:36px!important;padding:0 10px!important;}.etsy-search-mode-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}.etsy-search-mode-tab{width:100%;padding:0 6px!important;font-size:13px!important;}.etsy-search-row{grid-template-columns:1fr;}.etsy-search-row .etsy-search-input-wrap,.etsy-search-row .etsy-search-image-prompt{grid-column:auto;}.etsy-search-row .etsy-search-action-btn{width:100%;}.etsy-search-result-meta{align-items:flex-start;}.etsy-search-result-meta-title{font-size:18px;}.etsy-search-history-drawer{width:calc(100vw - 12px);}.etsy-search-history-head{padding:16px 16px 12px;}.etsy-search-history-tabs{padding:10px 16px 0;}.etsy-search-history-body{padding:10px 10px 18px;}}
    @media(max-width:460px){.etsy-search-results{grid-template-columns:1fr;}}

    /* V76：素材搜索改为同一条专业工作台，模式、输入区与主按钮保持同轴。 */
    .etsy-search-box{
      margin:10px 0 14px;
      padding:20px 22px 22px;
      border:1px solid #e2eaf4;
      border-radius:18px;
      background:#fbfdff;
      box-shadow:0 5px 16px rgba(15,23,42,.035);
    }
    .etsy-search-head,
    .etsy-search-shell{
      width:min(1280px,100%);
      margin-left:auto;
      margin-right:auto;
    }
    .etsy-search-head{
      align-items:center;
      flex-wrap:nowrap;
      margin-bottom:14px;
    }
    .etsy-search-title{font-size:18px;line-height:1.3;}
    .etsy-search-help{margin-top:4px;font-size:13px;color:#738096;}
    .etsy-search-history-btn{
      height:54px!important;
      min-height:54px!important;
      padding:0 14px!important;
      border-color:#d9e3ef!important;
      border-radius:12px!important;
      background:#fff!important;
      box-shadow:0 2px 7px rgba(15,23,42,.035)!important;
      flex:0 0 auto;
    }
    .etsy-search-shell{
      display:grid;
      grid-template-columns:340px minmax(0,850px);
      gap:16px;
      align-items:center;
      justify-content:start;
    }
    .etsy-search-mode-tabs{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      align-items:center;
      gap:4px;
      width:100%;
      max-width:none;
      height:54px;
      margin:0;
      padding:4px;
      box-sizing:border-box;
      border:1px solid #dbe5f0;
      border-radius:14px;
      background:#eef3f8;
    }
    .etsy-search-mode-tab{
      width:100%;
      min-width:0;
      height:44px!important;
      min-height:44px!important;
      padding:0 10px!important;
      border:1px solid transparent!important;
      border-radius:10px!important;
      color:#64748b!important;
      font-size:14px!important;
      font-weight:800!important;
      background:transparent!important;
      box-shadow:none!important;
    }
    .etsy-search-mode-tab:hover{
      color:#1d4ed8!important;
      background:rgba(255,255,255,.62)!important;
    }
    .etsy-search-mode-tab.active{
      color:#1d4ed8!important;
      border-color:#dbeafe!important;
      background:#fff!important;
      box-shadow:0 2px 7px rgba(15,23,42,.08)!important;
    }
    .etsy-search-row{
      display:grid;
      grid-template-columns:minmax(320px,1fr) 144px 118px;
      gap:10px;
      align-items:center;
      min-width:0;
    }
    .etsy-search-row button,
    .etsy-search-input{
      height:54px!important;
      min-height:54px!important;
      box-sizing:border-box;
    }
    .etsy-search-input{
      padding:0 17px;
      border:1px solid #cbd7e6;
      border-radius:14px;
      background:#fff;
      box-shadow:0 1px 2px rgba(15,23,42,.025);
      transition:border-color .18s ease,box-shadow .18s ease;
    }
    .etsy-search-input:hover{border-color:#aebed2;}
    .etsy-search-input:focus{
      outline:none;
      border-color:#4f8df7;
      box-shadow:0 0 0 3px rgba(37,99,235,.10);
    }
    .etsy-search-image-prompt{
      height:54px!important;
      min-height:54px!important;
      padding:0 16px!important;
      border:1px solid #cbd7e6!important;
      border-radius:14px!important;
      background:#fff!important;
      color:#475569!important;
      box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
    }
    .etsy-search-image-prompt:hover,
    .etsy-search-image-prompt:focus{
      border-color:#4f8df7!important;
      background:#fff!important;
      box-shadow:0 0 0 3px rgba(37,99,235,.09)!important;
      outline:none;
    }
    .etsy-search-action-btn{
      height:54px!important;
      min-height:54px!important;
      padding:0 20px!important;
      border-radius:14px!important;
      font-size:15px!important;
      font-weight:900!important;
      box-shadow:0 5px 12px rgba(37,99,235,.16)!important;
    }
    @media(max-width:1100px){
      .etsy-search-shell{grid-template-columns:1fr;gap:12px;}
      .etsy-search-mode-tabs{width:min(420px,100%);}
      .etsy-search-row{grid-template-columns:minmax(0,1fr) 144px 118px;}
    }
    @media(max-width:720px){
      .etsy-search-box{padding:16px 14px 18px;}
      .etsy-search-head{align-items:flex-start;gap:12px;}
      .etsy-search-help{font-size:12px;}
      .etsy-search-history-btn{height:50px!important;min-height:50px!important;padding:0 10px!important;}
      .etsy-search-mode-tabs{width:100%;height:50px;}
      .etsy-search-mode-tab{height:40px!important;min-height:40px!important;padding:0 5px!important;font-size:13px!important;}
      .etsy-search-row{grid-template-columns:1fr 1fr;gap:10px;}
      .etsy-search-row .etsy-search-input-wrap,.etsy-search-row .etsy-search-image-prompt{grid-column:1 / -1;}
      .etsy-search-row button,.etsy-search-input{height:50px!important;min-height:50px!important;}
      .etsy-search-action-btn,.etsy-search-history-btn{width:100%;}
    }
    @media(max-width:480px){
      .etsy-search-head{flex-wrap:wrap;}
      .etsy-search-row{grid-template-columns:1fr;}
      .etsy-search-row .etsy-search-input-wrap,.etsy-search-row .etsy-search-image-prompt{grid-column:auto;}
    }

    .quote-card{margin-top:8px; padding:10px; border:1px solid #dbeafe; background:#f8fbff; border-radius:12px;}
    .quote-grid{display:grid; grid-template-columns: 140px 1fr; gap:4px 8px; font-size:12px;}
    .quote-grid .label{color:var(--muted);}
    .quote-total{margin-top:8px; padding-top:8px; border-top:1px dashed #c7d2fe; font-weight:800;}
    .countdown{font-variant-numeric: tabular-nums;}
    .quote-summary-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:24px;row-gap:8px;}
    .quote-summary-cell{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.5;}
    .quote-summary-status{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.5;}
    .quote-summary-status.is-locked{color:#475569;}
    .quote-summary-paid-action{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex:0 0 auto;}
    .quote-summary-toggle{padding:2px 8px;border-radius:999px;font-size:12px;white-space:nowrap;line-height:1.5;}

    .order-pay-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto;}
    .order-pay-meta{display:flex;flex-direction:column;align-items:flex-end;min-width:120px;}
    .order-pay-amount{font-size:22px;font-weight:800;line-height:1;color:var(--danger);}
    .order-pay-discount{margin-top:4px;font-size:12px;color:var(--danger);font-weight:700;}
    .order-delivery-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto;}
    .order-processing-box{display:inline-flex;align-items:center;gap:12px;margin-left:auto;padding:10px 14px;border:1px solid #e6ebf2;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 1px 2px rgba(15,23,42,.03);}
    .order-processing-main{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;}
    .order-processing-status{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:7px 12px;border-radius:999px;border:1px solid #dbe4f0;background:#f8fafc;color:#334155;font-size:14px;font-weight:800;line-height:1;white-space:nowrap;}
    .order-processing-status .dots{display:inline-block;min-width:18px;text-align:left;}
    .order-processing-time{font-size:13px;color:#64748b;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap;}
    .order-processing-time strong{color:#0f172a;font-weight:800;letter-spacing:.2px;}
    .order-delivery-list{margin-top:8px;padding:10px 12px;border:1px solid #e5edf7;border-radius:14px;background:#f8fbff;}
    .order-delivery-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px dashed #dbe4f0;}
    .order-delivery-row:first-child{border-top:0;padding-top:0;}
    .order-delivery-main{min-width:0;display:flex;flex-direction:column;gap:4px;}
    .order-delivery-title{font-weight:700;word-break:break-word;}
    .order-delivery-note{color:var(--muted);font-size:12px;line-height:1.7;word-break:break-word;}
    .admin-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;}
    .admin-delivery-box{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfdff;}
    .admin-delivery-box label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;font-weight:700;}
    .admin-delivery-box input,.admin-delivery-box textarea{width:100%;padding:.7em .85em;border:1px solid #d7dfeb;border-radius:12px;background:#fff;font:inherit;}
    .admin-delivery-box textarea{min-height:86px;resize:vertical;}
    .admin-delivery-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;flex-wrap:wrap;}
    .admin-delivery-list{display:flex;flex-direction:column;gap:10px;}
    .admin-delivery-item{padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-delivery-item-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;}
    .admin-delivery-item-main{min-width:0;display:flex;flex-direction:column;gap:6px;}
    .admin-delivery-item-title{font-weight:800;word-break:break-word;line-height:1.45;}
    .admin-delivery-item-meta-row{min-width:0;display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:13px;line-height:1.7;}
    .admin-delivery-item-link{font-size:13px;white-space:nowrap;}
    .admin-delivery-item-meta{margin-top:0;color:var(--muted);font-size:13px;line-height:1.7;}
    .admin-delivery-item .admin-delivery-actions{margin-top:0;justify-content:flex-end;}
    .admin-order-item-content .quote-summary-row{column-gap:12px;row-gap:6px;}
    .admin-order-item-content .quote-summary-toggle{margin-left:0;}
    .quote-summary-total-action{gap:8px;}
    .admin-order-item-delivery-wide{grid-column:1 / -1;min-width:0;margin-top:2px;}
    .admin-item-link-row{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-top:8px;}
    .admin-item-link-row .admin-order-item-open-btn{min-height:36px;border-radius:12px;padding:0 16px;}

    /* Cart (JD-like) */
    .cart-item{ grid-template-columns: 26px 84px 1fr auto; }
    .cart-ck{ position:relative; display:flex; align-items:center; justify-content:center; padding-top:10px; width:26px; }
    .cart-ck.cart-ck-inline{ width:auto; padding-top:0; gap:6px; justify-content:flex-start; cursor:pointer; user-select:none; }
    /* 让 input 覆盖圆圈区域，点击更稳定，并保证 change 事件可靠触发 */
    .cart-ck input{ position:absolute; inset:0; width:18px; height:18px; margin:0; opacity:0; cursor:pointer; }
    .cart-ck.cart-ck-inline input{ inset:auto; left:0; top:50%; transform:translateY(-50%); }
    .ck-circle{ position:relative; width:18px; height:18px; border-radius:999px; border:2px solid #cbd5e1; display:inline-flex; align-items:center; justify-content:center; background:#fff; flex:0 0 auto; }
    .cart-ck input:checked + .ck-circle{ border-color: var(--danger); background: var(--danger); }
    /* 勾选样式：白色 √（类似京东购物车） */
    .cart-ck input:checked + .ck-circle::after{
      content:"";
      position:absolute;
      top:50%;
      left:50%;
      width:6px;
      height:10px;
      border:2px solid #fff;
      border-top:0;
      border-left:0;
      /* 让 √ 精准居中 */
      transform: translate(-50%,-62%) rotate(45deg);
    }
    .price-danger{ color: var(--danger); font-weight:800; }
    .cart-bar{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; padding:10px 14px; border:1px solid #f3d3d3; border-radius:22px; background:#fff; flex-wrap:wrap; }
    .cart-bar .left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .cart-bar .right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-left:auto; }
    .cart-amount-box{ display:flex; flex-direction:column; align-items:flex-end; min-width:172px; }
    .cart-amount-main{ display:flex; align-items:center; justify-content:flex-end; gap:4px; width:100%; font-size:12px; color:var(--muted); line-height:1.2; text-align:right; }
        .cart-amount-main b{ font-size:18px; color:var(--danger); font-weight:800; }
    .cart-discount-toggle{ display:none; align-items:center; justify-content:flex-end; gap:4px; width:100%; margin-top:4px; padding:0; border:0; background:transparent; color:var(--danger); font-size:12px; font-weight:700; cursor:pointer; text-align:right; }
    .cart-discount-toggle.show{ display:flex; }
    .cart-summary-panel{ display:none; width:100%; margin-top:8px; padding:10px 12px; border-radius:16px; background:#fff7f7; border:1px solid #fde2e2; }
    .cart-summary-panel.show{ display:block; }
    .cart-summary-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; line-height:1.8; font-size:13px; }
    .cart-summary-row + .cart-summary-row{ margin-top:4px; }
    #btnCartRequoteExpired{ margin-left:8px; padding:.58em 1.05em; border-radius:14px; border:1px solid #ef4444; background:#fff; color:#ef4444; font-weight:700; box-shadow:none; }
    #btnCartRequoteExpired:hover{ background:#fff5f5; border-color:#ef4444; color:#dc2626; }
    #btnCartRequoteExpired[disabled]{ opacity:.72; cursor:not-allowed; background:#fff5f5; color:#dc2626; border-color:#f5b4b4; }
    .btn-ticket-help{ padding:.58em 1.05em; border-radius:14px; border:1px solid #ef4444; background:#fff; color:#ef4444; font-weight:700; box-shadow:none; }
    .btn-ticket-help:hover{ background:#fff5f5; border-color:#ef4444; color:#dc2626; }
    .btn-ticket-help[disabled]{ opacity:.72; cursor:not-allowed; background:#fff5f5; color:#dc2626; border-color:#f5b4b4; }
    .quote-expiry{font-weight:700;color:inherit;}
    .quote-expiry.is-expired{color:#dc2626;}
    #btnCreateOrder{ padding:.72em 1.15em; border-radius:16px; background:#ff2948; min-width:132px; font-weight:800; }

    /* Cart empty state */
    .cart-empty-state{
      margin:8px 0 4px;
      padding:30px 20px;
      border:1px solid #e6edf7;
      border-radius:20px;
      background:#fff;
      text-align:center;
    }
    .cart-empty-icon{
      width:52px;
      height:52px;
      margin:0 auto 12px;
      display:flex;
      align-items:center;
      justify-content:center;
      border-radius:999px;
      background:#f3f7ff;
      color:#2563eb;
      font-size:24px;
    }
    .cart-empty-title{font-size:18px;font-weight:900;color:#0f172a;line-height:1.35;}
    .cart-empty-action{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;min-width:118px;padding:.72em 1.15em;border-radius:14px;background:#2563eb;color:#fff;font-weight:800;text-decoration:none;}
    .cart-empty-action:hover{background:#1d4ed8;}




    .auth-modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(6px);z-index:80;padding:24px;overflow:auto;}
    .auth-modal.show{display:block;}
    .auth-shell{width:min(560px,100%);margin:5vh auto;background:#fff;border:1px solid #dbe4f0;border-radius:30px;overflow:hidden;box-shadow:0 28px 70px rgba(15,23,42,.18);min-height:auto;}
    .auth-hero{display:none;}
    .auth-panel{padding:34px 34px 28px;display:flex;flex-direction:column;min-width:0;}
    .auth-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
    .auth-panel-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#0f172a;font-weight:800;}
    .auth-panel-brand-mark{width:40px;height:40px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 10px 24px rgba(37,99,235,.22);overflow:hidden;flex-shrink:0;}
    .auth-panel-brand-mark img{width:100%;height:100%;object-fit:cover;display:block;}
    .auth-panel-title{font-size:30px;font-weight:900;line-height:1.22;color:#0f172a;}
    .auth-panel-sub{margin-top:8px;color:#64748b;line-height:1.8;}
    .auth-close{width:40px;height:40px;border-radius:999px;border:1px solid #dbe4f0;background:#fff;color:#64748b;font-size:18px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
    .auth-close:hover{background:#f8fafc;color:#0f172a;}
    .auth-tabs{display:flex;gap:8px;padding:6px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;width:100%;margin-bottom:18px;}
    .auth-tab{flex:1;min-width:0;padding:10px 18px;border-radius:999px;border:0;background:transparent;color:#475569;font-weight:800;cursor:pointer;}
    .auth-tab.active{background:#fff;color:#0f172a;box-shadow:0 6px 18px rgba(15,23,42,.08);}
    .auth-form{display:none;flex-direction:column;gap:14px;min-width:0;margin:0;}
    .auth-form.active{display:flex;}
    .auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
    .auth-field{display:flex;flex-direction:column;gap:8px;min-width:0;}
    .auth-field.full{grid-column:1/-1;}
    .auth-field label{font-size:13px;font-weight:800;color:#334155;}
    .auth-field input{height:48px;border-radius:14px;border:1px solid #d7dfeb;background:#fff;padding:0 14px;font:inherit;min-width:0;}
    .auth-field input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
    .auth-hidden-native-input{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;z-index:-1!important;}
    .auth-plain-editor{height:48px!important;min-height:48px!important;max-height:48px!important;border-radius:14px!important;border:1px solid #d7dfeb!important;background:#fff!important;padding:0 14px!important;font:inherit!important;font-size:16px!important;line-height:normal!important;min-width:0!important;width:100%!important;display:block!important;outline:none!important;box-sizing:border-box!important;resize:none!important;appearance:none!important;-webkit-appearance:none!important;caret-color:#111827!important;color:#0f172a!important;text-align:left!important;overflow:hidden!important;pointer-events:auto!important;-webkit-user-select:text!important;user-select:text!important;touch-action:manipulation!important;position:relative!important;z-index:2!important;}
    input.auth-plain-editor{line-height:normal!important;}
    input.auth-plain-editor::-webkit-search-decoration,input.auth-plain-editor::-webkit-search-cancel-button,input.auth-plain-editor::-webkit-search-results-button,input.auth-plain-editor::-webkit-search-results-decoration{display:none!important;-webkit-appearance:none!important;}
    .auth-plain-editor:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;}
    .auth-plain-editor::placeholder{color:#94a3b8;opacity:1;}
    .auth-code-row .auth-plain-editor{width:100%;}
    .auth-code-row{display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:10px;align-items:center;}
    .auth-code-row input{width:100%;}
    .auth-code-row button{height:48px;border-radius:14px;padding:0 14px;font-weight:800;white-space:nowrap;}
    .auth-code-row button:disabled{opacity:.62;cursor:not-allowed;}
    .auth-inline-note{margin-top:-2px;color:#94a3b8;font-size:12px;line-height:1.7;}
    .auth-field-status{margin-top:-2px;font-size:12px;line-height:1.7;color:#64748b;min-height:18px;}
    .auth-field-status.ok{color:#16a34a;font-weight:800;}
    .auth-field-status.error{color:#dc2626;font-weight:800;}
    .auth-invite-notice{margin-top:8px;color:#ff0000;font-size:14px;line-height:1.8;font-weight:500;}
    .auth-agree{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;color:#475569;font-size:13px;line-height:1.8;cursor:pointer;user-select:none;}
    .auth-agree:hover{border-color:#bfdbfe;background:#f8fbff;}
    .auth-agree input{margin-top:4px;flex-shrink:0;cursor:pointer;}
    .auth-agree div{cursor:pointer;}
    .terms-inline-link{padding:0;border:0;background:transparent;color:#2563eb;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;}
    .terms-inline-link:hover{text-decoration:underline;}
    .terms-modal{display:none;position:fixed;inset:0;z-index:120;background:rgba(15,23,42,.52);backdrop-filter:blur(6px);padding:24px;overflow:auto;}
    .terms-modal.show{display:block;}
    .terms-shell{width:min(880px,100%);margin:3vh auto;background:#fff;border:1px solid #dbe4f0;border-radius:24px;box-shadow:0 28px 70px rgba(15,23,42,.22);overflow:hidden;}
    .terms-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc);}
    .terms-title{font-size:22px;font-weight:900;color:#0f172a;line-height:1.35;}
    .terms-sub{margin-top:6px;color:#64748b;font-size:13px;line-height:1.8;}
    .terms-close{width:40px;height:40px;border-radius:999px;border:1px solid #dbe4f0;background:#fff;color:#64748b;font-size:18px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
    .terms-close:hover{background:#f8fafc;color:#0f172a;}
    .terms-body{max-height:min(66vh,720px);overflow:auto;padding:22px 24px;color:#334155;font-size:14px;line-height:1.9;}
    .terms-body h3{margin:20px 0 8px;color:#0f172a;font-size:16px;line-height:1.45;}
    .terms-body h3:first-child{margin-top:0;}
    .terms-body p{margin:8px 0;}
    .terms-body ol{margin:8px 0 8px 22px;padding:0;}
    .terms-body li{margin:6px 0;}
    .terms-alert{padding:12px 14px;border:1px solid #fde68a;border-radius:14px;background:#fffbeb;color:#92400e;font-weight:700;}
    .terms-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid #e2e8f0;background:#f8fafc;}
    .terms-actions button{min-height:42px;padding:.65em 1.2em;border-radius:14px;font-weight:800;}
    .auth-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
    .auth-actions button{min-height:46px;padding:.72em 1.15em;border-radius:14px;font-weight:800;}
    .auth-actions .auth-primary{min-width:148px;}
    .auth-actions .auth-secondary{background:#fff;color:#111827;border:1px solid #d7dfeb;}
    .auth-actions .auth-link{padding:0;border:0;background:transparent;color:#2563eb;cursor:pointer;font-weight:700;}
    .auth-msg{min-height:22px;color:#64748b;font-size:13px;line-height:1.7;}
    .auth-msg.error{color:#b91c1c;}
    .auth-msg.strong{font-weight:900;color:#475569;}
    .auth-divider{height:1px;background:linear-gradient(90deg,rgba(226,232,240,0),rgba(226,232,240,1),rgba(226,232,240,0));margin:2px 0;}
    .auth-reset-box{padding:16px 18px 10px;border:1px solid #e2e8f0;border-radius:20px;background:#fff;}
    .auth-reset-simple{box-shadow:none;}
    .auth-full-btn{width:100%;justify-content:center;}
    .reset-bottom-actions{justify-content:center;margin-top:4px;margin-bottom:0;}
    .auth-reset-code-section{margin-top:0;}
    .auth-reset-head{display:none;}
    .auth-reset-title{font-size:16px;font-weight:900;color:#0f172a;}
    .auth-reset-badge,.auth-reset-copy,.auth-reset-steps,.auth-reset-step,.auth-reset-security{display:none;}
    .password-reset-modal{z-index:90;}
    .password-reset-shell{width:min(540px,100%);}
    .password-reset-shell .auth-panel{padding:26px 30px 18px;}
    .password-reset-shell .auth-panel-head{margin-bottom:12px;}
    .password-reset-shell .auth-grid{gap:12px;}
    .password-reset-shell .auth-field{gap:6px;}
    .password-reset-shell .auth-field input{height:46px;}
    .password-reset-shell .auth-divider{margin:10px 0!important;}

    .reset-puzzle-captcha{display:flex;flex-direction:column;gap:10px;user-select:none;touch-action:none;}
    .reset-puzzle-board{position:relative;height:118px;border:1px solid #dbe4f0;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#f8fbff 0%,#e7f0ff 52%,#deebff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
    .reset-puzzle-board::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 18% 24%,rgba(96,165,250,.18) 0 11%,transparent 12%),radial-gradient(circle at 80% 26%,rgba(59,130,246,.16) 0 13%,transparent 14%),radial-gradient(circle at 62% 74%,rgba(14,165,233,.14) 0 12%,transparent 13%),linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,0));pointer-events:none;}
    .reset-puzzle-hole,.reset-puzzle-piece{position:absolute;width:48px;height:48px;border-radius:12px;transition:left .1s linear;}
    .reset-puzzle-hole{background:rgba(15,23,42,.09);border:1px dashed rgba(37,99,235,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);}
    .reset-puzzle-piece{background:linear-gradient(135deg,#ffffff,#dbeafe);border:1px solid #60a5fa;box-shadow:0 10px 24px rgba(37,99,235,.18);z-index:2;}
    .reset-puzzle-hole::before,.reset-puzzle-piece::before{content:"";position:absolute;width:14px;height:14px;border-radius:50%;right:-7px;top:50%;transform:translateY(-50%);}
    .reset-puzzle-hole::after,.reset-puzzle-piece::after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;left:50%;bottom:-7px;transform:translateX(-50%);}
    .reset-puzzle-hole::before,.reset-puzzle-hole::after{background:rgba(15,23,42,.09);border:1px dashed rgba(37,99,235,.22);}
    .reset-puzzle-piece::before,.reset-puzzle-piece::after{background:linear-gradient(135deg,#ffffff,#dbeafe);border:1px solid #60a5fa;}
    .reset-puzzle-piece.verified{background:linear-gradient(135deg,#ecfdf5,#bbf7d0);border-color:#22c55e;box-shadow:0 10px 24px rgba(34,197,94,.16);}
    .reset-slider-track{position:relative;height:44px;border:1px solid #dbe4f0;border-radius:14px;background:#f8fafc;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
    .reset-puzzle-captcha.verified .reset-slider-track{border-color:#93c5fd;background:#eff6ff;}
    .reset-slider-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#dbeafe,#bfdbfe);transition:width .08s linear;}
    .reset-slider-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:14px;font-weight:800;pointer-events:none;white-space:nowrap;}
    .reset-puzzle-captcha.verified .reset-slider-text{color:#2563eb;}
    .reset-slider-handle{position:absolute;left:2px;top:2px;width:38px;height:38px;border-radius:12px;border:1px solid #bfdbfe;background:#fff;color:#2563eb;font-size:18px;font-weight:900;display:flex;align-items:center;justify-content:center;cursor:grab;box-shadow:0 8px 18px rgba(37,99,235,.16);transition:left .08s linear,background .12s ease,color .12s ease,border-color .12s ease;}
    .reset-slider-handle:active{cursor:grabbing;}
    .reset-puzzle-captcha.verified .reset-slider-handle{background:#2563eb;color:#fff;border-color:#2563eb;}
    #resetMsg{white-space:nowrap;text-align:center;min-height:18px;margin-top:6px!important;font-size:13px;line-height:1.45;}
    .auth-readonly-value{min-height:48px;border-radius:14px;border:1px solid #e2e8f0;background:#f8fafc;padding:13px 14px;color:#0f172a;font-weight:800;display:flex;align-items:center;word-break:break-all;}
    .auth-help-strip{margin:18px 0 2px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:18px;background:#fbfcfe;display:grid;gap:8px;}
    .auth-help-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
    .auth-help-label{font-size:12px;color:#64748b;}
    .auth-help-value{font-size:13px;font-weight:700;color:#0f172a;}
    .auth-help-links{display:flex;gap:14px;flex-wrap:wrap;}
    .auth-help-links a,.auth-help-links button{padding:0;border:0;background:transparent;color:#2563eb;font-weight:700;cursor:pointer;text-decoration:none;}
    .auth-help-strip-inline{display:block;}
    .auth-help-single-line{justify-content:flex-end;gap:6px;flex-wrap:wrap;text-align:right;}
    .auth-help-single-line a{color:#2563eb;font-weight:700;text-decoration:none;}
    @media (max-width: 680px){
      .auth-modal{padding:12px;}
      .auth-shell{border-radius:22px;}
      .auth-panel{padding:22px 18px;}
      .auth-panel-title{font-size:24px;}
      .terms-modal{padding:10px;}
      .terms-shell{margin:10px auto;border-radius:20px;}
      .terms-head,.terms-body,.terms-actions{padding-left:16px;padding-right:16px;}
      .terms-body{max-height:calc(100dvh - 190px);}
      .terms-actions{justify-content:stretch;}
      .terms-actions button{width:100%;}
      .auth-grid{grid-template-columns:1fr;}
      .auth-actions button,.auth-actions .auth-primary{width:100%;}
      .auth-help-row{align-items:flex-start;}
    }
  

    .admin-shell{display:grid;grid-template-columns:195px minmax(0,1fr);gap:14px;align-items:start;}
    .admin-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;}
    .admin-sidebar{border:1px solid #e5e7eb;background:#f6f8fb;display:flex;flex-direction:column;overflow:hidden;position:sticky;top:74px;}
    .admin-sidebar-head{padding:18px 14px 12px;border-bottom:1px solid #e6ebf2;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);text-align:center;}
    .admin-sidebar-title{font-size:18px;font-weight:800;color:#111827;}
    .admin-sidebar-sub{display:none;}
    .admin-sidebar-pills{display:flex;flex-direction:column;gap:8px;margin-top:14px;}
    .admin-sidebar .pill{justify-content:center;}
    .admin-nav{display:flex;flex-direction:column;background:#f6f8fb;}
    .admin-nav-group{display:flex;flex-direction:column;}
    .admin-nav-group .admin-subnav{display:none;}
    .admin-nav-btn{width:100%;display:flex;align-items:center;justify-content:center;padding:16px 10px;border:0;border-left:3px solid transparent;border-bottom:1px solid #e6ebf2;border-radius:0;background:transparent;color:#374151;cursor:pointer;text-align:center;font-weight:700;transition:all .18s ease;font-size:15px;}
    .admin-nav-btn:hover{background:#fff;color:#ef4444;}
    .admin-nav-btn.active{background:#fff;color:#ef4444;border-left-color:#ff6b6b;box-shadow:none;}
    .admin-subnav{display:none;flex-direction:column;background:#fff;border-bottom:1px solid #e6ebf2;padding:6px 0 8px 0;}
    .admin-nav-group.active .admin-subnav{display:flex;}
    .admin-subnav-btn{width:100%;display:flex;align-items:center;justify-content:flex-start;padding:11px 12px 11px 52px;border:0;border-left:3px solid transparent;background:#fff;color:#475569;cursor:pointer;text-align:left;font-weight:700;font-size:13px;line-height:1.45;transition:all .18s ease;}
    .admin-subnav-btn:hover{color:#ef4444;background:#fff7f7;}
    .admin-subnav-btn.active{color:#ef4444;border-left-color:#ff9a9a;background:#fff7f7;}
    .admin-content{display:flex;flex-direction:column;gap:14px;min-width:0;}
    .admin-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;}
    .admin-kpi{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.03);}
    .admin-kpi .v{font-size:24px;font-weight:800;margin-top:6px;line-height:1.15;}
    .admin-kpi .sub{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5;}
    .admin-kpi-action{display:block;width:100%;margin:6px 0 0;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;}
    .admin-kpi-action .v{display:inline-flex;align-items:center;gap:6px;}
    .admin-kpi-action:hover .v{color:var(--brand);text-decoration:underline;text-underline-offset:3px;}
    .admin-overview-num-action{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;}
    .admin-overview-num-action:hover{color:var(--brand);text-decoration:underline;text-underline-offset:3px;}
    .admin-overview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);grid-template-areas:"left right" "tx tx";gap:14px;align-items:start;margin-top:14px;}
    .admin-overview-stack{display:flex;flex-direction:column;gap:14px;min-width:0;}
    .admin-overview-stack[data-overview-col="left"]{grid-area:left;}
    .admin-overview-stack[data-overview-col="right"]{grid-area:right;}
    .admin-overview-wide{grid-area:tx;min-width:0;}
    .admin-overview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .admin-overview-action{padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft);display:flex;flex-direction:column;gap:8px;}
    .admin-overview-action strong{font-size:14px;}
    .admin-overview-action .small{line-height:1.6;}
    .admin-overview-meta{display:grid;grid-template-columns:120px 1fr;gap:8px 12px;font-size:13px;}
    .admin-overview-meta .k{color:var(--muted);}
    .admin-overview-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .admin-overview-alert{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-overview-alert .num{font-size:22px;font-weight:800;line-height:1.2;margin-top:6px;}
    .admin-overview-alert .hint{margin-top:6px;color:var(--muted);font-size:12px;}
    .admin-activity-list{display:flex;flex-direction:column;gap:10px;}
    .admin-activity-item{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-activity-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;}
    .admin-activity-title{font-weight:700;line-height:1.5;}
    .admin-activity-meta{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.6;}

    .admin-section{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px;}
    .admin-section-header{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px;}
    .admin-section-heading{display:flex;align-items:center;min-height:44px;}
    .admin-section-heading-title{font-weight:800;font-size:16px;line-height:1;display:flex;align-items:center;}
    .admin-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;align-items:end;}
    .global-notice-bar{margin:0 12px; padding:10px 14px; border:1px solid #fecaca; border-top:0; border-radius:0 0 14px 14px; background:#fff1f2; color:#991b1b; font-weight:700;}
    .announcement-bar{display:none;position:sticky;top:96px;z-index:19;padding:0 16px;background:#fbfbfa;border-bottom:1px solid #e7e5e4;color:#1f2937;box-shadow:0 1px 0 rgba(15,23,42,.02);}
    .announcement-bar.show{display:block;}
    .announcement-bar-inner{min-height:36px;display:flex;align-items:center;justify-content:center;gap:10px;padding:7px 40px 7px 0;position:relative;text-align:center;}
    .announcement-bar-badge{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:22px;padding:0 10px;border-radius:999px;background:#fff3cd;color:#9a6700;font-size:12px;font-weight:700;letter-spacing:.02em;border:1px solid #f2d7a6;}
    .announcement-bar-text{font-weight:600;line-height:1.4;color:#8a5a00;}
    .announcement-bar-link{color:#8a5a00;text-decoration:none;}
    .announcement-bar-link:hover{color:#6f4a00;text-decoration:underline;}
    .announcement-bar-close{position:absolute;right:0;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:999px;border:1px solid #edd19a;background:#fff8e1;color:#9a6700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;}
    .announcement-preview{margin-top:8px;border:1px dashed #d6d3d1;border-radius:14px;overflow:hidden;background:#fafaf9;}
    .announcement-preview-bar{min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 14px;background:#fbfbfa;color:#1f2937;font-weight:600;text-align:center;border-bottom:1px solid #e7e5e4;}
    .home-announcement{margin-bottom:12px; padding:12px 14px; border:1px solid #e7e5e4; border-radius:14px; background:#fafaf9; color:#334155; line-height:1.7;}
    .announcement-home-list{display:grid;gap:12px;margin-bottom:14px;}
    .announcement-home-card,.announcement-center-card{display:block;padding:16px 18px;border:1px solid #e7e5e4;border-radius:16px;background:#fff;color:#111827;text-decoration:none;transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease;}
    .announcement-home-card:hover,.announcement-center-card:hover{border-color:#d6d3d1;box-shadow:0 8px 24px rgba(15,23,42,.05);transform:translateY(-1px);}
    .announcement-home-head,.announcement-center-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
    .announcement-home-title,.announcement-center-title{font-size:18px;font-weight:800;color:#111827;line-height:1.5;}
    .announcement-home-meta,.announcement-center-meta,.announcement-detail-meta{margin-top:8px;font-size:13px;color:#64748b;display:flex;flex-wrap:wrap;gap:10px;}
    .announcement-home-summary,.announcement-center-summary{margin-top:10px;color:#475569;line-height:1.75;}
    .announcement-list-wrap{display:grid;gap:14px;}
    .announcement-empty{padding:26px;border:1px dashed #d6d3d1;border-radius:16px;background:#fafaf9;color:#64748b;text-align:center;}
    .announcement-detail-wrap{max-width:none;margin:0;}
    .announcement-detail-card{padding:16px 18px;border:1px solid #e7e5e4;border-radius:16px;background:#fff;box-shadow:none;}
    .announcement-detail-title{font-size:18px;font-weight:800;line-height:1.5;color:#111827;}
    .announcement-detail-content{margin-top:12px;color:#334155;line-height:1.75;font-size:14px;white-space:pre-wrap;word-break:break-word;}
    .announcement-page-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
    #view-help,#view-help_article,#view-announcements,#view-announcement{padding:20px 24px 24px;}
    #view-announcement{background:#fff;border-color:var(--line);}
    #view-help .announcement-page-actions .ghost,
    #view-announcement .announcement-page-actions .ghost,
    #view-announcements .announcement-page-actions .ghost{min-height:40px;padding:.55em 1em;border-radius:10px;}
    @media (max-width: 920px){
      .announcement-detail-card{padding:16px;}
      .announcement-detail-title{font-size:18px;}
      #view-help,#view-help_article,#view-announcements,#view-announcement{padding:16px;}
    }
    
    .help-center-wrap{display:grid;gap:16px;}
    .help-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start;}
    .help-sidebar{position:sticky;top:84px;padding:0;border:1px solid #d9e1ea;border-radius:0;background:#eef3f8;box-shadow:none;overflow:hidden;}
    .help-sidebar-kicker{display:none;}
    .help-sidebar-title{padding:24px 18px 22px;border-bottom:1px solid #d9e1ea;background:#eef3f8;text-align:center;color:#0f172a;font-size:18px;font-weight:900;line-height:1.35;}
    .help-sidebar-nav{display:flex;flex-direction:column;gap:0;background:#f6f8fb;}
    .help-sidebar-link{width:100%;display:flex;align-items:center;justify-content:center;gap:0;padding:18px 14px;border:0;border-left:3px solid transparent;border-bottom:1px solid #e6ebf2;border-radius:0;background:transparent;color:#374151;cursor:pointer;text-align:center;text-decoration:none;font-weight:700;transition:all .18s ease;font-size:15px;line-height:1.35;}
    .help-sidebar-link:hover{background:#fff;color:#ef4444;}
    .help-sidebar-link.active{background:#fff;color:#ef4444;border-left-color:#ff6b6b;box-shadow:none;}
    .help-sidebar-icon{display:none;}
    .help-sidebar-text{min-width:0;display:block;}
    .help-sidebar-main{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .help-sidebar-sub{display:none!important;}
    .help-main{min-width:0;display:flex;flex-direction:column;gap:14px;}
    .help-hero{border:1px solid #e5e7eb;border-radius:0;background:#fff;padding:22px 24px;box-shadow:none;}
    .help-hero-kicker{font-size:12px;font-weight:900;color:#ef4444;letter-spacing:.04em;text-transform:uppercase;}
    .help-hero-title{margin-top:8px;color:#111827;font-size:24px;font-weight:900;line-height:1.35;}
    .help-hero-desc{margin-top:8px;max-width:760px;color:#4b5563;line-height:1.8;}
    .help-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
    .help-hero-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #f2b8b8;border-radius:8px;background:#fff;color:#ef4444;text-decoration:none;font-size:13px;font-weight:800;box-shadow:none;}
    .help-hero-chip:hover{border-color:#ef4444;background:#fff7f7;color:#dc2626;}
    .help-section-panel{border:1px solid #e5e7eb;border-radius:0;background:#fff;padding:18px;box-shadow:none;overflow:hidden;}
    .help-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;}
    .help-section-title{color:#111827;font-size:17px;font-weight:900;line-height:1.4;}
    .help-section-sub{display:none;}
    .help-center-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    .help-center-card{display:block;padding:16px 17px;border:1px solid #e5edf7;border-radius:16px;background:#fff;color:#111827;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease,background-color .15s ease;}
    .help-center-card:hover{border-color:#f2b8b8;box-shadow:0 8px 20px rgba(239,68,68,.08);transform:translateY(-1px);background:#fff;}
    .help-center-eyebrow{font-size:12px;font-weight:800;color:#ef4444;letter-spacing:.02em;}
    .help-center-title{margin-top:7px;font-size:17px;font-weight:900;line-height:1.5;color:#111827;}
    .help-center-summary{margin-top:7px;color:#475569;line-height:1.75;}
    .help-center-foot{margin-top:13px;display:flex;align-items:center;justify-content:flex-end;gap:10px;color:#64748b;font-size:13px;}
    .help-center-link{font-weight:900;color:#111827;}
    .help-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
    .help-quick-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #e5edf7;border-radius:14px;background:#fbfdff;color:#111827;text-decoration:none;font-weight:800;}
    .help-quick-link:hover{border-color:#f2b8b8;background:#fff7f7;color:#ef4444;}
    .help-breadcrumb{display:none;align-items:center;gap:8px;flex-wrap:wrap;color:#64748b;font-size:13px;margin-bottom:12px;}
    .help-breadcrumb a{color:#64748b;text-decoration:none;}
    .help-breadcrumb a:hover{text-decoration:underline;}
    .help-article-card{border:1px solid #e5e7eb;border-radius:0;background:#fff;padding:22px 24px;box-shadow:none;}
    .help-article-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #eee;}
    .help-article-title{font-size:22px;font-weight:900;line-height:1.45;color:#111827;}
    .help-article-sub{display:none;}
    .help-article-section{padding:16px 0;border-top:1px solid #eef2f7;}
    .help-article-section:first-of-type{padding-top:0;border-top:0;}
    .help-article-header + .help-article-section{border-top:0;}
    .help-article-section-title{font-size:15px;font-weight:900;color:#111827;line-height:1.5;}
    .help-article-list{margin:10px 0 0;padding-left:18px;color:#475569;line-height:1.85;}
    .help-article-note{margin-top:12px;padding:12px 14px;border:1px solid #f2b8b8;border-radius:12px;background:#fff7f7;color:#4b5563;line-height:1.8;}
    @media (max-width: 980px){.help-layout{grid-template-columns:1fr;}.help-sidebar{position:static;}.help-sidebar-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;background:#fff;}.help-sidebar-link{border:1px solid #e2e8f0;border-radius:14px;padding:10px 8px;min-height:42px;font-size:13px;}.help-sidebar-link.active{border-color:#fecdd3;background:#fff1f2;}.help-center-grid,.help-quick-links{grid-template-columns:1fr;}.help-sidebar-title{padding:18px 14px;border-bottom:1px solid #e6ebf2;}}
    @media (max-width: 560px){.help-hero{padding:18px;}.help-article-card{padding:18px;}.help-section-head{display:block;}.help-sidebar-nav{grid-template-columns:1fr;}}    @media (max-width: 560px){.help-sidebar-nav{grid-template-columns:1fr;}.help-hero{padding:18px;}.help-article-card{padding:18px;}.help-section-head{display:block;}.help-sidebar-link{grid-template-columns:24px minmax(0,1fr);}}

    .admin-announcement-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,1.15fr);gap:16px;}
    .admin-announcement-list{display:grid;gap:10px;max-height:640px;overflow:auto;padding-right:4px;}
    .admin-announcement-item{padding:14px;border:1px solid #e7e5e4;border-radius:14px;background:#fff;transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;}
    .admin-announcement-item.active{border-color:#94a3b8;box-shadow:0 8px 24px rgba(15,23,42,.05);background:#f8fbff;}
    .admin-announcement-item:hover{border-color:#cbd5e1;}
    .admin-announcement-item-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
    .admin-announcement-item-main{min-width:0;cursor:pointer;}
    .admin-announcement-item-title{font-weight:800;color:#111827;line-height:1.5;}
    .admin-announcement-item-meta{margin-top:8px;color:#64748b;font-size:12px;display:flex;flex-wrap:wrap;gap:8px;}
    .admin-announcement-item-summary{margin-top:8px;color:#475569;font-size:13px;line-height:1.7;}
    .admin-announcement-item-content{margin-top:8px;padding:10px 12px;border-radius:12px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.8;white-space:pre-wrap;word-break:break-word;}
    .admin-announcement-item-edit{flex-shrink:0;padding:.5em .9em;border-radius:12px;border:1px solid #dbe4f0;background:#fff;color:#2563eb;font-weight:700;cursor:pointer;}
    .admin-announcement-item-edit:hover{background:#eff6ff;border-color:#bfdbfe;}
    .admin-announcement-form{display:grid;gap:12px;}
    .admin-announcement-form textarea{min-height:220px;resize:vertical;}
    .admin-announcement-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
    .admin-announcement-note{font-size:12px;color:#64748b;line-height:1.7;}
    @media (max-width: 1080px){.admin-announcement-layout{grid-template-columns:1fr;}}
    .admin-settings-panels{display:flex;flex-direction:column;gap:12px;min-width:0;}
    .admin-settings-panel{display:none;}
    .admin-settings-panel.active{display:block;}
    .admin-settings-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
    .admin-settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    .admin-settings-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
    .admin-settings-field.full{grid-column:1/-1;}
    .admin-settings-field label{font-weight:700;color:#111827;}
    .admin-settings-field textarea,.admin-settings-field select{width:100%;padding:.65em .8em;border:1px solid #ddd;border-radius:12px;background:#fff;font:inherit;}
    .admin-settings-switch{display:flex;align-items:center;gap:8px;min-height:44px;padding-top:28px;}
    .admin-settings-hint{color:var(--muted);font-size:12px;line-height:1.6;}
    .quote-url-textarea{display:block;width:100%;box-sizing:border-box;line-height:1.5;border-radius:18px;}
    .smtp-secret-input{-webkit-text-security:disc;}
    .marketing-console{display:flex;flex-direction:column;gap:14px;min-width:0;}
    .marketing-layout{display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);gap:14px;align-items:start;min-width:0;}
    .marketing-stack{display:flex;flex-direction:column;gap:12px;min-width:0;}
    .marketing-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.035);min-width:0;overflow:hidden;}
    .marketing-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
    .marketing-card-title{font-size:16px;font-weight:900;color:#111827;line-height:1.45;}
    .marketing-card-sub{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.7;max-width:720px;}
    .marketing-card label{display:block;margin-bottom:6px;font-weight:800;color:#334155;font-size:13px;line-height:1.4;}
    .marketing-card input,.marketing-card select,.marketing-card textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:.72em .86em;border:1px solid #dbe4f0;border-radius:12px;background:#fff;font:inherit;color:#111827;outline:none;}
    .marketing-card select{overflow:hidden;text-overflow:ellipsis;}
    .marketing-card textarea{resize:vertical;min-height:86px;}
    .marketing-card input:focus,.marketing-card select:focus,.marketing-card textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.10);}
    .marketing-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;border:1px solid #e8edf5;border-radius:14px;background:#fcfdff;min-width:0;}
    .marketing-list-item+.marketing-list-item{margin-top:10px;}
    .marketing-list-item-main{min-width:0;}
    .marketing-list-title{font-weight:900;color:#111827;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .marketing-list-meta{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.65;}
    .coupon-template-list{display:flex;flex-direction:column;gap:10px;}
    .coupon-template-item{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fcfdff;}
    .coupon-template-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;}
    .coupon-template-name{font-size:15px;font-weight:800;color:#111827;}
    .coupon-template-code{margin-top:4px;color:var(--muted);font-size:12px;}
    .coupon-template-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px;}
    .coupon-template-stat{padding:10px 12px;border:1px solid #e8edf5;border-radius:12px;background:#fff;}
    .coupon-template-stat .k{color:var(--muted);font-size:12px;}
    .coupon-template-stat .v{margin-top:4px;font-weight:800;color:#111827;}
    .coupon-template-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;}
    .coupon-template-actions{display:flex;gap:8px;flex-wrap:wrap;}
    .coupon-template-tags{display:flex;gap:8px;flex-wrap:wrap;}
    .coupon-template-tag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;border:1px solid #dbe4f0;background:#f8fbff;color:#334155;font-size:12px;font-weight:700;}
    .coupon-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;min-width:0;}
    .coupon-form-grid>div{min-width:0;}
    .coupon-form-grid .full{grid-column:1 / -1;}
    .coupon-filter-panel{margin:0 0 12px;padding:13px;border:1px solid #e8edf5;border-radius:14px;background:#f8fafc;}
    .coupon-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;}
    .coupon-filter-grid label{display:block;margin-bottom:5px;color:#475569;font-size:12px;font-weight:900;}
    .coupon-filter-grid input,.coupon-filter-grid select{width:100%;min-width:0;box-sizing:border-box;padding:.62em .72em;border:1px solid #dbe4f0;border-radius:11px;background:#fff;font:inherit;font-size:12px;}
    .coupon-filter-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px;}
    .coupon-note{padding:11px 13px;border:1px dashed #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a8a;font-size:12px;line-height:1.75;}
    .coupon-admin-result{margin-top:12px;padding:12px 13px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.75;word-break:break-word;}
    .coupon-code-list{display:flex;flex-direction:column;gap:10px;}
    .coupon-code-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:13px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;}
    .coupon-code-main{min-width:0;}
    .coupon-code-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#111827;color:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:800;letter-spacing:.04em;white-space:nowrap;}
    .coupon-target-extra{display:none;}
    .coupon-target-extra.show{display:block;}
    .coupon-tier-picker{display:flex;flex-wrap:wrap;gap:8px;}
    .coupon-tier-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #dbe4f0;border-radius:999px;background:#f8fbff;color:#334155;font-size:12px;font-weight:800;cursor:pointer;user-select:none;}
    .coupon-tier-chip input{width:auto;min-width:0;margin:0;box-shadow:none;}
    .coupon-overview-metrics{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;margin-bottom:14px;}
    .coupon-metric{padding:13px 14px;border:1px solid #e8edf5;border-radius:16px;background:#f8fbff;min-width:0;}
    .coupon-metric .k{color:#64748b;font-size:12px;line-height:1.4;}
    .coupon-metric .v{margin-top:7px;color:#0f172a;font-size:22px;font-weight:900;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .coupon-overview-section{margin-top:14px;}
    .coupon-overview-section-title{font-size:14px;font-weight:900;color:#111827;margin-bottom:8px;}
    .coupon-table-wrap{overflow:auto;border:1px solid #e8edf5;border-radius:14px;background:#fff;}
    .coupon-table{width:100%;border-collapse:collapse;min-width:980px;font-size:12px;}
    .coupon-table th,.coupon-table td{padding:10px 11px;border-top:1px solid #eef2f7;text-align:left;white-space:nowrap;vertical-align:middle;}
    .coupon-table thead th{border-top:0;background:#f8fafc;color:#475569;font-weight:900;position:sticky;top:0;z-index:1;}
    .coupon-table td{color:#334155;}
    .coupon-table .strong{font-weight:900;color:#111827;}
    .coupon-status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:4px 8px;border-radius:999px;border:1px solid #dbe4f0;background:#f8fafc;color:#334155;font-weight:800;font-size:12px;}
    .coupon-status-badge.used{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;}
    .coupon-status-badge.unused{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
    .coupon-status-badge.expired,.coupon-status-badge.revoked{border-color:#fecaca;background:#fef2f2;color:#b91c1c;}
    .coupon-actions-row{display:flex;justify-content:flex-end;gap:8px;align-items:center;flex-wrap:wrap;}
    .coupon-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-start;white-space:nowrap;}
    .coupon-row-actions button{padding:6px 10px;border-radius:10px;font-size:12px;}
    @media (max-width: 1320px){ .marketing-layout{grid-template-columns:1fr;} .coupon-overview-metrics{grid-template-columns:repeat(6,minmax(110px,1fr));} }
    @media (max-width: 980px){ .coupon-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr));} }
    @media (max-width: 640px){ .coupon-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));} }
    @media (max-width: 420px){ .coupon-overview-metrics{grid-template-columns:1fr;} }
    @media (max-width: 860px){ .coupon-template-meta,.coupon-form-grid,.coupon-filter-grid{grid-template-columns:1fr;} .marketing-card{padding:14px;} .marketing-list-item,.coupon-code-item{grid-template-columns:1fr;} }



    .admin-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.9fr);gap:14px;align-items:start;}
    .admin-left,.admin-right{display:flex;flex-direction:column;gap:14px;min-width:0;}
    .admin-searchbar{display:grid;grid-template-columns:132px auto auto auto;gap:8px;align-items:center;justify-content:end;min-width:0;max-width:none;width:auto;margin:0 0 0 auto;}
    .admin-searchbar input,.admin-searchbar select{height:40px;padding:.62em .85em;border:1px solid #d8e1ec;border-radius:12px;background:#fff;margin:0;display:block;align-self:center;}
    .admin-searchbar.simple{grid-template-columns:auto auto auto;max-width:none;width:auto;align-items:center;justify-items:stretch;}
    .admin-searchbar input{min-width:0;width:100%;}
    .admin-searchbar button{height:40px;padding:0 14px;border-radius:12px;font-weight:700;white-space:nowrap;margin:0;display:inline-flex;align-items:center;justify-content:center;align-self:center;}
    #adminUserSearch{width:420px;max-width:520px;}
    #adminStaffSearch{width:260px;max-width:260px;}
    #adminOrderSearch{width:340px;max-width:340px;}
    .admin-searchbar.admin-order-searchbar{grid-template-columns:92px 128px 128px minmax(340px,380px) auto auto auto auto;}
    #adminOrderBucket{padding:.62em .3em .62em .5em;}
    .admin-order-searchbar .wallet-date-field{width:128px;min-width:128px;}
    .admin-order-searchbar .wallet-date-input{width:100%!important;max-width:none!important;cursor:pointer;}
    .admin-order-searchbar #btnAdminCreateOrder{min-width:56px;padding-left:12px;padding-right:12px;}
    .admin-order-searchbar #btnAdminExportOrders{width:60px;min-width:60px;padding-left:6px;padding-right:6px;}
    .admin-order-searchbar #btnAdminRecycleOrders{width:64px;min-width:64px;padding-left:6px;padding-right:6px;}
    #adminOrderPagination{margin-top:8px;}
    /* V81.27：仅缩小后台订单管理分页，不影响会员中心“订单记录”的分页尺寸。 */
    #adminOrderPagination .order-record-pager{gap:6px;margin:10px 0 2px;padding:6px 4px;}
    #adminOrderPagination .order-record-pager button{height:34px;min-width:34px;padding:0 8px;border-radius:9px;font-size:14px;line-height:34px;}
    #adminOrderPagination .order-record-pager .order-record-pager-arrow{font-size:22px;line-height:32px;}
    #adminOrderPagination .order-record-pager .order-record-pager-ellipsis{min-width:28px;height:34px;font-size:16px;letter-spacing:2px;}
    #adminOrderPagination .order-record-pager-jump{gap:6px;margin-left:4px;font-size:14px;}
    #adminOrderPagination .order-record-pager-jump input{width:54px;height:34px;border-radius:9px;font-size:14px;}
    .admin-product-library-desc{margin-top:5px;line-height:1.55;}
    .admin-searchbar.admin-product-library-searchbar{grid-template-columns:minmax(220px,300px) repeat(6,auto);}
    #adminProductLibrarySearch{width:320px;max-width:320px;}
    .admin-product-library-summary{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;margin:0 0 14px;}
    .admin-product-library-metric{padding:13px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fbff;min-width:0;}
    .admin-product-library-metric .k{color:#64748b;font-size:12px;font-weight:700;}
    .admin-product-library-metric .v{margin-top:6px;color:#0f172a;font-size:22px;font-weight:900;line-height:1.1;}
    .admin-product-library-table{min-width:1215px;table-layout:fixed;}
    .admin-table.admin-product-library-table th,.admin-table.admin-product-library-table td{padding:8px 6px;white-space:normal;font-size:13px;}
    .admin-product-library-table th:last-child,.admin-product-library-table td:last-child{text-align:center;}
    .admin-product-library-main{display:flex;align-items:center;gap:7px;min-width:0;}
    .admin-product-library-thumb{width:42px;height:42px;flex:0 0 42px;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc;object-fit:cover;}
    .admin-product-library-thumb.empty{display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:11px;font-weight:800;}
    .admin-product-library-title{font-weight:800;color:#0f172a;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
    .admin-product-library-id{margin-top:4px;color:#64748b;font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;}
    .admin-product-library-link{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2563eb;text-decoration:none;vertical-align:middle;}
    .admin-product-library-link:hover{text-decoration:underline;}
    .admin-product-library-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;border:1px solid #dbe4f0;background:#f8fafc;color:#475569;font-size:12px;font-weight:800;white-space:nowrap;}
    .admin-product-library-status.indexed,.admin-product-library-status.delivered{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
    .admin-product-library-status.missing{border-color:#fecaca;background:#fef2f2;color:#b91c1c;}
    .admin-product-library-folder{margin-top:4px;max-width:150px;color:#64748b;font-size:11px;line-height:1.35;word-break:break-word;}
    .admin-product-library-procurement-id{margin-top:3px;color:#64748b;font-size:11px;line-height:1.25;word-break:break-all;}
    #adminProductLibraryPagination{margin-top:8px;}
    #adminProductLibraryPagination .order-record-pager{gap:6px;margin:10px 0 2px;padding:6px 4px;}
    #adminProductLibraryPagination .order-record-pager button{height:34px;min-width:34px;padding:0 8px;border-radius:9px;font-size:14px;line-height:34px;}
    #adminProductLibraryPagination .order-record-pager-jump input{width:54px;height:34px;border-radius:9px;font-size:14px;}
    @media (max-width:1100px){.admin-product-library-summary{grid-template-columns:repeat(3,minmax(0,1fr));}}
    @media (max-width:720px){.admin-product-library-summary{grid-template-columns:repeat(2,minmax(0,1fr));}.admin-searchbar.admin-product-library-searchbar{grid-template-columns:1fr;}.admin-searchbar.admin-product-library-searchbar #adminProductLibrarySearch{width:100%;max-width:none;}}
    #adminRefundSearch{width:250px;max-width:250px;}
    #adminTicketSearch{width:320px;max-width:320px;}
    .admin-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-table{width:100%;border-collapse:collapse;min-width:760px;}
    .admin-table th,.admin-table td{padding:11px 10px;border-top:1px solid var(--line);text-align:left;vertical-align:middle;white-space:nowrap;}
    .admin-table thead th{background:var(--soft);font-weight:700;border-top:0;position:sticky;top:0;z-index:1;}
    .admin-table td:last-child,.admin-table th:last-child{text-align:right;}
    #adminOrderTableWrap.admin-table-wrap{overflow:auto;}
    .admin-orders-table{width:max-content;min-width:1560px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif;color:#475569;}
    .admin-orders-table thead th{height:44px;padding:0 5px;background:#f8fbff;color:#475569;font-size:14px;font-weight:700;white-space:nowrap;font-family:inherit;overflow:hidden;text-overflow:clip;position:relative;user-select:none;}
    .admin-orders-table tbody td{padding:13px 5px;white-space:nowrap;word-break:normal;overflow-wrap:normal;overflow:hidden;text-overflow:clip;line-height:1.38;font-size:14px;font-weight:400;vertical-align:middle;background:#fff;font-family:inherit;}
    .admin-orders-table tbody tr.admin-order-group-alt td{background:#eef4ff;}
    .admin-orders-table tbody tr[data-admin-order-row]{cursor:pointer;}
    .admin-orders-table tbody tr:hover td{background:#fff7e6;}
    .admin-orders-table tbody tr.admin-order-group-alt:hover td{background:#dfeaff;}
    .admin-orders-table .col-created{width:88px;}
    .admin-orders-table .col-user{width:78px;}
    .admin-orders-table .col-email{width:158px;}
    .admin-orders-table .col-order-no{width:150px;}
    .admin-orders-table .col-money{width:98px;}
    .admin-orders-table .col-library-discount{width:100px;}
    .admin-orders-table .col-profit{width:88px;}
    .admin-orders-table .col-count{width:48px;}
    .admin-orders-table .col-inventory-count{width:58px;}
    .admin-orders-table .col-purchase-count{width:58px;}
    .admin-orders-table .col-purchase-account{width:112px;}
    .admin-orders-table .col-pay{width:76px;}
    .admin-orders-table .col-procurement{width:80px;}
    .admin-orders-table .col-delivery{width:80px;}
    .admin-orders-table .col-refund{width:78px;}
    .admin-orders-table .col-link{width:54px;}
    .admin-orders-table .col-actions{width:140px;}
    .admin-orders-table th:nth-child(n+6),.admin-orders-table td:nth-child(n+6),
    .admin-orders-table th:last-child,.admin-orders-table td:last-child{text-align:center;}
    .admin-orders-table th:nth-child(4),.admin-orders-table td:nth-child(4){padding-right:6px;overflow:visible;}
    .admin-orders-table th:nth-child(5),.admin-orders-table td:nth-child(5){padding-left:6px;padding-right:4px;text-align:left;}
    .admin-orders-table th:nth-child(16),.admin-orders-table td:nth-child(16){padding-left:3px;padding-right:4px;}
    .admin-orders-table th:nth-child(17),.admin-orders-table td:nth-child(17){padding-left:4px;padding-right:6px;}
    .admin-orders-table .admin-col-resizer{position:absolute;right:0;top:0;width:8px;height:100%;cursor:col-resize;z-index:3;touch-action:none;}
    .admin-orders-table .admin-col-resizer::after{content:'';position:absolute;right:3px;top:9px;bottom:9px;width:1px;background:#cbd5e1;opacity:.55;}
    .admin-orders-table th:hover .admin-col-resizer::after{opacity:1;background:#94a3b8;}
    body.admin-col-resizing{cursor:col-resize!important;user-select:none!important;}
    .admin-order-profit{font-variant-numeric:tabular-nums;font-weight:400;color:#475569;font-size:16px;line-height:1.2;font-family:inherit;}
    .admin-order-profit.positive{color:#047857;}
    .admin-order-profit.negative{color:#b91c1c;}
    .admin-order-library-discount-usd{font-variant-numeric:tabular-nums;font-weight:400;color:#475569;font-size:16px;line-height:1.2;font-family:inherit;}
    .admin-order-copyable-value{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:100%;padding-right:26px;}
    .admin-order-copyable-value.is-left{justify-content:flex-start;}
    .admin-order-value-copy-btn{position:absolute;top:-8px;right:-3px;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;padding:0;border:0;border-radius:6px;background:transparent;color:#94a3b8;cursor:pointer;line-height:1;opacity:.88;}
    .admin-order-value-copy-btn:hover{background:#e2e8f0;color:#475569;opacity:1;}
    .admin-order-value-copy-btn:focus-visible{outline:2px solid #93c5fd;outline-offset:1px;}
    .admin-order-value-copy-btn svg{display:block;width:16px;height:16px;pointer-events:none;}
    .admin-order-procurement-account{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;line-height:1.25;}
    .admin-order-procurement-account .account-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#334155;}
    .admin-order-procurement-account .account-id{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#64748b;font-variant-numeric:tabular-nums;}
    .admin-order-inventory-badge{display:inline-flex;align-items:center;min-height:32px;border-radius:12px;padding:0 14px;background:#ecfdf5;border:1px solid #bbf7d0;color:#047857;font-weight:800;}
    .admin-order-created-cell{font-size:13px;font-variant-numeric:tabular-nums;}
    .admin-order-created-date{display:block;font-variant-numeric:tabular-nums;font-weight:400;color:#475569;line-height:1.25;white-space:nowrap;word-break:keep-all;letter-spacing:0;}
    .admin-order-created-time{display:block;font-variant-numeric:tabular-nums;margin-top:3px;margin-left:0;color:#64748b;font-size:13px;font-weight:400;line-height:1.25;white-space:nowrap;word-break:keep-all;}
    .admin-orders-table .admin-order-no-main{white-space:nowrap;word-break:normal;overflow:visible;text-overflow:clip;max-width:none;font-weight:400;font-family:inherit;}
    .admin-orders-table .admin-order-money-main{font-size:16px;line-height:1.2;white-space:nowrap;font-weight:400;font-family:inherit;}
    .admin-orders-table .admin-order-money-sub{margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:clip;word-break:keep-all;overflow-wrap:normal;line-height:1.35;font-size:13px;font-family:inherit;max-width:100%;}
    .admin-order-status-main{font-weight:400;color:#475569;line-height:1.35;white-space:nowrap;font-family:inherit;}
    .admin-order-status-sub{margin-top:3px;color:#991b1b;font-size:12px;font-weight:400;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:inherit;}
    .admin-list-status-chip{display:inline-flex;align-items:center;gap:6px;color:#475569;font-size:13px;font-weight:850;line-height:1.4;white-space:nowrap;}
    .admin-list-status-chip .admin-order-status-icon{min-width:14px;font-size:13px;}
    .admin-list-status-chip.success{color:#15803d;}
    .admin-list-status-chip.success .admin-order-status-icon{color:#16a34a;}
    .admin-list-status-chip.pending{color:#a16207;}
    .admin-list-status-chip.pending .admin-order-status-icon{color:#ca8a04;}
    .admin-list-status-chip.danger{color:#b91c1c;}
    .admin-list-status-chip.danger .admin-order-status-icon{color:#dc2626;}
    .admin-refund-status{display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:850;line-height:1.4;white-space:nowrap;}
    .admin-refund-status.is-full{color:#dc2626;}
    .admin-refund-status.is-partial{color:#d97706;}
    .admin-order-status-group .admin-refund-status{gap:6px;font-weight:900;}
    .admin-order-status-group .admin-refund-status::before{content:'↩';font-weight:950;line-height:1;}
    .admin-order-list-actions{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:nowrap;white-space:nowrap;min-width:126px;}
    .admin-order-list-action-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:56px;height:38px;padding:0 14px!important;border-radius:14px!important;white-space:nowrap!important;line-height:1!important;flex:0 0 auto;}
    .admin-order-link-copy-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:50px;height:36px;padding:0 10px!important;border-radius:12px!important;white-space:nowrap!important;line-height:1!important;}
    .admin-order-link-copy-btn:disabled{opacity:.45;cursor:not-allowed;}
    .admin-recent-tx-wrap{width:100%;overflow:hidden;}
    .admin-recent-tx-table{width:100%;min-width:0 !important;table-layout:fixed;}
    .admin-recent-tx-table th,.admin-recent-tx-table td{white-space:normal;word-break:break-word;padding-left:8px;padding-right:8px;}
    .admin-recent-tx-table th:nth-child(1),.admin-recent-tx-table td:nth-child(1){width:138px;}
    .admin-recent-tx-table th:nth-child(2),.admin-recent-tx-table td:nth-child(2){width:150px;white-space:nowrap;word-break:normal;font-variant-numeric:tabular-nums;}
    .admin-recent-tx-table th:nth-child(3),.admin-recent-tx-table td:nth-child(3){width:84px;}
    .admin-recent-tx-table th:nth-child(4),.admin-recent-tx-table td:nth-child(4){width:112px;padding-left:14px;padding-right:16px;}
    .admin-recent-tx-table th:nth-child(5),.admin-recent-tx-table td:nth-child(5){width:120px;padding-left:16px;padding-right:14px;}
    .admin-recent-tx-table th:nth-child(6),.admin-recent-tx-table td:nth-child(6){text-align:left;padding-left:8px;padding-right:8px;font-variant-numeric:tabular-nums;}
    .admin-recent-tx-table th:nth-child(7),.admin-recent-tx-table td:nth-child(7){width:84px;text-align:left;padding-left:8px;padding-right:8px;}
    .admin-recent-tx-table tbody td{vertical-align:middle;}
    .admin-recent-tx-table .tx-amount{display:inline-block;text-align:left;white-space:nowrap;font-weight:800;}
    .admin-recent-tx-table .tx-amount.positive{color:#15803d;}
    .admin-recent-tx-table .tx-amount.negative{color:#dc2626;}
    .admin-user-wallet-wrap{overflow:hidden;border:1px solid #e6edf7;border-radius:18px;background:#fff;}
    .admin-user-wallet-wrap .wallet-table{table-layout:fixed;}
    .admin-user-wallet-wrap .wallet-table thead th{position:static;}
    .admin-user-wallet-wrap .wallet-table tbody td{font-size:13px;}
    .admin-user-wallet-empty{padding:14px 16px;color:#64748b;font-size:13px;}
    .admin-user-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;}
    .admin-user-detail-meta-line{display:flex;gap:34px;flex-wrap:wrap;align-items:center;font-weight:800;font-size:15px;color:#334155;line-height:1.55;}
    .admin-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
    .admin-pills .admin-profile-link-pill{appearance:none;border:1px solid #d8e3ef;background:#fff;cursor:pointer;text-align:left;}
    .admin-pills .admin-profile-link-pill:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;}
    #adminUserTableWrap{overflow:hidden;}
    .admin-users-table{width:100%;min-width:0!important;table-layout:fixed;}
    .admin-users-table th,.admin-users-table td{padding-left:6px;padding-right:6px;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .admin-users-table th:last-child,.admin-users-table td:last-child{text-align:center;}
    .admin-users-table th:nth-child(3),.admin-users-table td:nth-child(3),
    .admin-users-table th:nth-child(4),.admin-users-table td:nth-child(4){padding-left:4px;padding-right:4px;}
    .admin-users-table th:nth-child(5),.admin-users-table td:nth-child(5){padding-left:3px;padding-right:4px;}
    .admin-users-table th:nth-child(6),.admin-users-table td:nth-child(6){padding-left:4px;padding-right:8px;}
    .admin-users-table th:nth-child(8),.admin-users-table td:nth-child(8){padding-left:5px;padding-right:8px;}
    .admin-users-table th:nth-child(10),.admin-users-table td:nth-child(10){padding-left:2px;padding-right:4px;}
    .admin-users-table td:nth-child(2),.admin-users-table td:nth-child(3),.admin-users-table td:nth-child(4),.admin-users-table td:nth-child(6){font-variant-numeric:tabular-nums;}
    .admin-order-detail-hero{border:1px solid #dbe7f6;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);padding:18px 20px;margin-bottom:12px;}
    .admin-order-detail-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;}
    .admin-order-detail-title{font-size:21px;font-weight:950;color:#0f172a;letter-spacing:-.02em;line-height:1.2;}
    .admin-order-detail-sub{margin-top:6px;color:#64748b;font-size:13px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
    .admin-order-status-group{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding-top:2px;}
    .admin-order-status-chip{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;border-radius:0;background:transparent;color:#475569;font-size:13px;font-weight:850;white-space:nowrap;line-height:1.4;box-shadow:none;}
    .admin-order-status-icon{display:inline-flex;align-items:center;justify-content:center;min-width:16px;font-size:14px;font-weight:950;line-height:1;}
    .admin-order-status-chip.success{color:#15803d;}
    .admin-order-status-chip.success .admin-order-status-icon{color:#16a34a;}
    .admin-order-status-chip.pending{color:#a16207;}
    .admin-order-status-chip.pending .admin-order-status-icon{color:#ca8a04;}
    .admin-order-status-chip.danger{color:#b91c1c;}
    .admin-order-status-chip.danger .admin-order-status-icon{color:#dc2626;}
    .admin-order-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:16px;}
    .admin-order-summary-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:13px 14px;min-width:0;display:flex;flex-direction:column;}
    .admin-order-summary-label{font-size:12px;font-weight:900;color:#64748b;}
    .admin-order-summary-value{margin-top:6px;font-size:18px;font-weight:950;color:#0f172a;line-height:1.25;word-break:break-word;}
    .admin-order-summary-desc{margin-top:5px;font-size:12px;color:#64748b;line-height:1.55;}
    .admin-order-summary-tools{margin-top:auto;padding-top:10px;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
    .admin-summary-inline-link{padding:0;border:0;background:transparent;color:#2563eb;font:inherit;font-size:12px;font-weight:900;cursor:pointer;line-height:1.4;}
    .admin-summary-inline-link:hover{text-decoration:underline;}
    .admin-summary-expand-panel{margin-top:12px;border:1px solid #dbe7f6;border-radius:16px;background:#fff;padding:14px 15px;}
    .admin-summary-expand-panel-title{font-size:14px;font-weight:950;color:#0f172a;margin-bottom:10px;}
    .admin-finance-detail-note{margin-bottom:10px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#475569;font-size:12px;line-height:1.6;}
    .admin-order-purchase-desc{display:grid;gap:3px;}
    .admin-finance-detail-note{display:grid;gap:6px;margin-bottom:4px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#334155;font-size:13px;line-height:1.55;}
    .admin-order-summary-brief{margin-top:12px;padding:10px 12px;border-radius:14px;background:#fff;color:#334155;font-size:13px;line-height:1.6;border:1px solid #e2e8f0;}
    .admin-order-summary-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
    .admin-order-summary-meta .pill{margin-top:0;background:#fff;}
    .admin-procurement-flow{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;}
    .admin-procurement-step{position:relative;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:12px 12px 12px 42px;min-height:84px;min-width:220px;flex:1 1 240px;}
    .admin-procurement-step-num{position:absolute;left:12px;top:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eef6ff;color:#2563eb;font-size:12px;font-weight:950;}
    .admin-procurement-step-time{font-size:11px;color:#94a3b8;font-weight:800;line-height:1.35;}
    .admin-procurement-step-title{margin-top:2px;font-weight:900;color:#0f172a;font-size:13px;line-height:1.35;}
    .admin-procurement-step-desc{margin-top:5px;color:#64748b;font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-word;}
    .admin-procurement-arrow{display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:18px;font-weight:900;min-width:18px;}
    .admin-compact-details{margin-top:10px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;overflow:hidden;}
    .admin-compact-details>summary{cursor:pointer;list-style:none;padding:11px 13px;font-weight:900;color:#334155;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;}
    .admin-compact-details>summary::-webkit-details-marker{display:none;}
    .admin-compact-details>summary:after{content:'展开';font-size:12px;color:#64748b;font-weight:800;}
    .admin-compact-details[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc;}
    .admin-compact-details[open]>summary:after{content:'收起';}
    .admin-compact-details-body{padding:12px 13px;display:grid;gap:8px;}
    .admin-log-line{padding:8px 10px;border:1px solid #edf2f7;border-radius:10px;background:#fbfdff;color:#475569;font-size:12px;line-height:1.55;}
    .admin-finance-compact{border:1px solid #dbe7f6;border-radius:18px;background:#fff;padding:15px 16px;}
    .admin-finance-compact-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px;}
    .admin-finance-compact-title{font-weight:950;color:#0f172a;font-size:15px;}
    .admin-finance-compact-formula{color:#475569;font-size:13px;line-height:1.65;margin-top:5px;}
    .admin-finance-compact-profit{text-align:right;}
    .admin-finance-compact-profit .label{font-size:12px;font-weight:900;color:#64748b;}
    .admin-finance-compact-profit .value{font-size:26px;font-weight:950;line-height:1.05;margin-top:5px;}
    .admin-finance-compact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
    .admin-finance-compact-cell{border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:11px 12px;min-width:0;}
    .admin-finance-compact-cell .k{font-size:12px;font-weight:900;color:#64748b;}
    .admin-finance-compact-cell .v{margin-top:5px;font-size:17px;font-weight:950;color:#0f172a;}
    .admin-finance-compact-cell .s{margin-top:4px;font-size:12px;color:#64748b;line-height:1.4;}
    .admin-finance-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
    .admin-finance-detail-row{display:flex;justify-content:space-between;gap:12px;border:1px solid #edf2f7;border-radius:10px;padding:8px 10px;background:#fbfdff;font-size:12px;}
    .admin-finance-detail-row b{color:#0f172a;}
    .admin-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:end;}
    .admin-ticket-refund-row{align-items:start;}
    .admin-ticket-refund-field{display:flex;flex-direction:column;min-width:0;}
    .profile-dialog-field.admin-ticket-refund-field{display:flex;flex-direction:column;gap:0;}
    .admin-ticket-refund-field > .small.muted:first-child,
    .admin-ticket-refund-field > span:first-child,
    .admin-ticket-refund-action-label{height:20px;line-height:20px;margin:0 0 4px;}
    .admin-ticket-refund-field input,
    .admin-ticket-refund-field select,
    .admin-ticket-refund-action button{height:44px;min-height:44px;}
    .admin-ticket-refund-action{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;flex-wrap:nowrap;}
    .admin-ticket-refund-action button{white-space:nowrap;}
    .admin-col-3{grid-column:span 3;}
    .admin-col-4{grid-column:span 4;}
    .admin-col-5{grid-column:span 5;}
    .admin-col-6{grid-column:span 6;}
    .admin-col-8{grid-column:span 8;}
    .admin-col-12{grid-column:span 12;}
    .admin-subcard{margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fcfdff;}
    .admin-detail-collapse{padding:0;overflow:hidden;}
    .admin-detail-collapse>summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:800;color:#0f172a;display:flex;align-items:center;justify-content:space-between;gap:12px;}
    .admin-detail-collapse>summary::-webkit-details-marker{display:none;}
    .admin-detail-collapse[open]>summary{border-bottom:1px solid #eef2f7;}
    .admin-detail-collapse-body{padding:14px 16px 16px;}
    .admin-detail-collapse-arrow{font-size:12px;font-weight:700;color:#64748b;}
    .admin-detail-collapse:not([open]) .admin-detail-collapse-arrow::before{content:"展开";}
    .admin-detail-collapse[open] .admin-detail-collapse-arrow::before{content:"收起";}
    .admin-contact-grid{gap:18px!important;align-items:stretch;}
    .admin-contact-status-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
    .admin-profile-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px;}
    .admin-profile-mini-card{min-width:0;padding:12px 13px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;display:flex;flex-direction:column;gap:5px;}
    .admin-profile-mini-card b{font-size:16px;font-weight:950;color:#0f172a;line-height:1.25;word-break:break-word;}
    .admin-profile-mini-card span{font-size:12px;font-weight:800;color:#64748b;line-height:1.35;}
    .admin-quote-risk-help{margin:12px 0;padding:12px 14px;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff;color:#334155;font-size:12px;line-height:1.75;}
    .admin-quote-risk-help b{color:#0f172a;}
    .admin-quote-risk-status-help{margin-top:12px;}
    .admin-quote-risk-status-help table{margin:0;}
    .admin-quote-risk-editor{margin-top:16px;display:grid;gap:14px;}
    .admin-quote-risk-editor-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;}
    .admin-quote-risk-limit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;}
    .admin-quote-risk-field{min-width:0;padding:14px;border:1px solid #e5edf7;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.035);}
    .admin-quote-risk-field label{display:block;margin-bottom:8px;color:#334155;font-size:13px;font-weight:900;line-height:1.35;}
    .admin-quote-risk-field input,.admin-quote-risk-field select,.admin-quote-risk-field textarea{width:100%;min-height:44px;border:1px solid #d7dfeb;border-radius:12px;background:#fff;padding:0 12px;font:inherit;box-sizing:border-box;}
    .admin-quote-risk-field textarea{padding:10px 12px;min-height:72px;resize:vertical;}
    .admin-quote-risk-field input:focus,.admin-quote-risk-field select:focus,.admin-quote-risk-field textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10);}
    .admin-quote-risk-field .hint{margin-top:7px;color:#64748b;font-size:12px;line-height:1.65;}
    @media(max-width:1100px){.admin-quote-risk-limit-grid{grid-template-columns:1fr;}.admin-quote-risk-editor-main{grid-template-columns:1fr;}}
    @media(max-width:980px){.admin-profile-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
    @media(max-width:640px){.admin-profile-mini-grid{grid-template-columns:1fr!important;}}
    .admin-profile-mini-grid.admin-quote-risk-mini-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
    .admin-profile-mini-grid.admin-quote-risk-mini-grid .admin-profile-mini-card{padding:12px 12px;}
    .admin-profile-mini-grid.admin-quote-risk-mini-grid .admin-profile-mini-card b{font-size:16px;white-space:nowrap;}
    @media(max-width:900px){.admin-profile-mini-grid.admin-quote-risk-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.admin-profile-mini-grid.admin-quote-risk-mini-grid .admin-profile-mini-card b{white-space:normal;}}
    @media(max-width:640px){.admin-profile-mini-grid.admin-quote-risk-mini-grid{grid-template-columns:1fr!important;}}
    .admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
    .badge-role{display:inline-flex;padding:3px 8px;border-radius:999px;border:1px solid var(--line);background:#f8fafc;font-size:12px;}
    .admin-account-role-panel{background:linear-gradient(180deg,#ffffff,#fbfdff);border-color:#dbe7f6;}
    .admin-account-role-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;}
    .admin-account-role-title{font-weight:900;color:#0f172a;font-size:15px;line-height:1.3;}
    .admin-account-role-sub{margin-top:5px;color:#64748b;font-size:12px;line-height:1.55;}
    .admin-account-role-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
    .admin-account-role-chip{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;color:#334155;font-size:12px;font-weight:800;}
    .admin-account-role-list{display:grid;gap:10px;margin-top:14px;}
    .admin-account-role-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:14px;align-items:center;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;}
    .admin-account-role-copy{min-width:0;}
    .admin-account-role-label{font-size:13px;font-weight:900;color:#0f172a;line-height:1.35;}
    .admin-account-role-desc{margin-top:4px;color:#64748b;font-size:12px;line-height:1.55;}
    .admin-account-role-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
    .admin-account-role-control select{width:100%;height:42px;padding:0 12px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;font-weight:800;color:#0f172a;}
    .admin-account-role-control button{height:42px;white-space:nowrap;}
    .admin-account-role-note{margin-top:10px;color:#64748b;font-size:12px;line-height:1.65;}
    .admin-account-danger{margin-top:12px;border:1px solid #fecaca;border-radius:14px;background:#fff7f7;overflow:hidden;}
    .admin-account-danger>summary{cursor:pointer;list-style:none;padding:11px 12px;font-weight:900;color:#991b1b;display:flex;align-items:center;justify-content:space-between;gap:10px;}
    .admin-account-danger>summary::-webkit-details-marker{display:none;}
    .admin-account-danger>summary:after{content:'展开';font-size:12px;color:#991b1b;font-weight:800;}
    .admin-account-danger[open]>summary{border-bottom:1px solid #fecaca;background:#fff1f1;}
    .admin-account-danger[open]>summary:after{content:'收起';}
    .admin-account-danger-body{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;background:#fff;}
    .admin-right{position:sticky;top:76px;}
    .admin-workspace{display:flex;flex-direction:column;gap:14px;}
    .admin-list-page,.admin-detail-page{display:none;flex-direction:column;gap:14px;}
    .admin-detail-page.active,.admin-list-page.active{display:flex;}
    .admin-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:6px 0 0;background:transparent;border:0;border-radius:0;}
    .admin-detail-title{display:block;font-size:16px;font-weight:800;color:#111827;line-height:1.2;}
    .admin-detail-sub{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.7;}
    .admin-detail-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
    @media (max-width: 1180px){
      .admin-main{grid-template-columns:1fr;}
      .admin-right{position:static;}
    }
    @media (max-width: 860px){
      .admin-config-grid{grid-template-columns:1fr;}
      .admin-settings-fields{grid-template-columns:1fr;}
      .admin-form-grid{grid-template-columns:1fr;}
      .admin-col-3,.admin-col-4,.admin-col-5,.admin-col-6,.admin-col-8,.admin-col-12{grid-column:span 1;}
      .admin-account-role-row,.admin-account-role-control{grid-template-columns:1fr;}
      .admin-account-role-badges{justify-content:flex-start;}
      .admin-account-danger-body{display:grid;grid-template-columns:1fr;align-items:stretch;}
      .admin-account-danger-body button{width:100%;}
      .admin-searchbar{grid-template-columns:1fr;}
      .admin-searchbar input,.admin-searchbar select,.admin-searchbar button{width:100%;}
      .admin-table{min-width:680px;}
    }


    .admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px;}
    .admin-tab{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);cursor:pointer;}
    .admin-tab.active{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border-color:transparent;}
    .admin-grid-2{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px;align-items:start;}
    .admin-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;}
    .admin-list{display:flex;flex-direction:column;gap:10px;}
    .admin-list-item{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-order-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
    .admin-order-item-stack{display:flex;flex-direction:column;gap:12px;}
    .admin-order-item-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px;}
    .admin-order-item-main{display:grid;grid-template-columns:84px minmax(0,1fr);gap:18px;align-items:start;}
    .admin-order-item-thumb{width:84px;height:84px;border-radius:14px;border:1px solid var(--line);background:#f3f4f6;object-fit:cover;}
    .admin-order-item-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
    .admin-order-item-title{font-weight:800;line-height:1.6;font-size:14px;min-width:0;}
    .admin-order-item-seq{flex:0 0 auto;color:#64748b;font-size:13px;font-weight:800;line-height:1.6;}
    .admin-order-item-side{display:none;}
    .admin-order-item-price{font-size:20px;font-weight:800;line-height:1.2;}
    .admin-order-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;}
    .admin-order-mini-card{border:1px solid var(--line);border-radius:14px;background:var(--soft);padding:12px;}
    .admin-order-mini-card-title{font-weight:700;margin-bottom:8px;}
    .admin-order-mini-card .small{line-height:1.8;}
    .admin-order-calc-collapse{margin-top:10px;border:1px dashed var(--line);border-radius:12px;background:#fafcff;overflow:hidden;}
    .admin-order-calc-collapse summary{list-style:none;cursor:pointer;padding:10px 12px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:8px;}
    .admin-order-calc-collapse summary::-webkit-details-marker{display:none;}
    .admin-order-calc-collapse summary::after{content:"展开";margin-left:auto;font-size:12px;color:var(--muted);font-weight:600;}
    .admin-order-calc-collapse[open] summary::after{content:"收起";}
    .admin-order-item-calc{padding:0 12px 12px;line-height:1.8;}

    .admin-order-item-content{min-width:0;}
    .admin-item-summary-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:13px;line-height:1.7;}
    .admin-item-summary-row span{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:#f8fafc;}
    .admin-item-section-title{font-weight:800;color:#111827;}
    .admin-item-delivery-panel{margin-top:12px;padding:14px 18px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff;}
    .admin-item-delivery-panel.is-danger{border-color:#fecaca;background:#fff7f7;}
    .admin-item-delivery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;}
    .admin-item-delivery-pills{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
    .danger-pill{background:#fef2f2!important;border-color:#fecaca!important;color:#991b1b!important;}
    .admin-item-delivery-hint{margin-top:8px;color:#991b1b;font-weight:700;}
    .admin-item-delivery-panel .admin-delivery-list{margin-top:10px;}
    .admin-item-delivery-manage-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:14px;padding-top:14px;border-top:1px dashed #e5e7eb;}
    .admin-item-delivery-manage-compact{margin-top:14px;padding-top:14px;border-top:1px dashed #e5e7eb;}
    .admin-item-manage-inline{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
    .admin-manual-purchase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,160px));gap:10px;align-items:end;max-width:420px;}
    .admin-manual-purchase-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;}
    .admin-manual-purchase-grid input,.admin-item-manage-source-row select{height:38px;border-radius:10px;border:1px solid #d7dfeb;background:#fff;padding:0 10px;font:inherit;min-width:0;box-sizing:border-box;}
    .admin-item-manage-source-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;}
    .admin-item-delivery-form{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-item-form-title{font-weight:800;margin-bottom:8px;color:#111827;}
    .admin-item-form-hint{margin-bottom:10px;color:var(--muted);font-size:12px;line-height:1.6;}
    .admin-item-form-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;}
    .admin-item-form-row.is-link{grid-template-columns:minmax(0,1fr) auto;}
    .admin-item-form-row input{width:100%;min-width:0;box-sizing:border-box;padding:.7em .85em;border:1px solid #d7dfeb;border-radius:12px;background:#fff;font:inherit;}
    .admin-item-form-row input[type="file"]{padding:8px;min-height:42px;}
    .admin-item-form-row input[type="file"]::file-selector-button{min-height:30px;margin-right:8px;padding:0 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#0f172a;font:inherit;font-weight:700;}
    .admin-item-form-actions{display:none;}
    .admin-item-form-row button{min-height:42px;border-radius:12px;padding:0 22px;min-width:78px;white-space:nowrap;}
    .admin-delivery-file-row{grid-template-columns:auto minmax(0,1fr) auto;}
    .admin-delivery-file-hidden-input{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
    .admin-delivery-file-name{min-height:42px;display:flex;align-items:center;min-width:0;box-sizing:border-box;padding:.7em .85em;border:1px solid #d7dfeb;border-radius:12px;background:#fff;color:#64748b;font:inherit;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .admin-delivery-file-name.has-file{color:#0f172a;font-weight:800;border-color:#93c5fd;background:#f8fbff;}
    .admin-delivery-file-choose-btn{min-width:92px;}
    .admin-order-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .admin-order-list-wrap{overflow-x:hidden;}
    .admin-order-list-table{min-width:0;table-layout:fixed;}
    .admin-order-list-table th,.admin-order-list-table td{padding:9px 7px;white-space:normal;line-height:1.45;font-size:13px;}
    .admin-order-list-table td:last-child,.admin-order-list-table th:last-child{text-align:center;}
    .admin-order-list-table th:nth-child(1){width:9.5%;}
    .admin-order-list-table th:nth-child(2){width:8%;}
    .admin-order-list-table th:nth-child(3){width:15%;}
    .admin-order-list-table th:nth-child(4){width:31%;}
    .admin-order-list-table th:nth-child(5){width:4.2%;}
    .admin-order-list-table th:nth-child(6){width:7%;}
    .admin-order-list-table th:nth-child(7){width:7.2%;}
    .admin-order-list-table th:nth-child(8){width:7.2%;}
    .admin-order-list-table th:nth-child(9){width:5.5%;}
    .admin-order-list-table th:nth-child(10){width:5.4%;}
    .admin-order-no-main{font-weight:800;word-break:break-all;}
    .admin-order-no-sub{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5;}
    .admin-order-money-main{font-weight:800;font-size:15px;color:#0f172a;}
    .admin-order-money-sub{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45;}
    .admin-order-state-stack{display:grid;gap:6px;}
    .admin-order-state-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
    .admin-order-state-label{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800;}
    .admin-order-state-value{font-weight:700;color:#0f172a;font-size:12px;}
    .admin-finance-formula-list{display:grid;gap:10px;margin-bottom:12px;}
    .admin-finance-formula-row{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--soft);}
    .admin-finance-formula-label{font-weight:800;color:#0f172a;}
    .admin-finance-formula-expr{color:#475569;line-height:1.7;word-break:break-word;}
    .admin-finance-formula-result{text-align:right;white-space:nowrap;}
    .admin-finance-formula-result .v{font-size:16px;font-weight:900;color:#0f172a;line-height:1.2;}
    .admin-finance-formula-result .sub{margin-top:4px;color:var(--muted);font-size:12px;}
    .admin-finance-topline{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
    .admin-finance-topline .pill{background:#f8fbff;}

    .admin-finance-page{display:grid;gap:16px;}
    .admin-finance-hero{border:1px solid #dbe7f5;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);padding:16px 18px;}
    .admin-finance-hero-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px;}
    .admin-finance-hero-title{font-size:20px;font-weight:900;color:#0f172a;letter-spacing:.01em;}
    .admin-finance-hero-desc{margin-top:5px;color:#64748b;font-size:13px;line-height:1.5;}
    .admin-finance-period-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #dbe7f6;background:#fff;border-radius:999px;font-size:12px;font-weight:800;color:#334155;white-space:nowrap;}
    .admin-finance-controls{display:grid;gap:12px;}
    .admin-finance-presets{display:flex;flex-wrap:wrap;gap:7px;}
    .admin-finance-presets button{height:34px;padding:0 13px;border-radius:999px;background:#fff;color:#475569;border:1px solid #d7e3f3;font-weight:800;}
    .admin-finance-presets button.active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 10px 22px rgba(37,99,235,.18);}
    .admin-finance-filter-line{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;}
    .admin-finance-field{display:grid;gap:5px;font-size:12px;color:#64748b;font-weight:800;}
    .admin-finance-field input,.admin-finance-field select{min-width:142px;height:40px;background:#fff;border-color:#d7e3f3;}
    .admin-finance-actions{display:flex;gap:8px;align-items:center;margin-left:auto;}
    .admin-finance-section{border:1px solid #dbe7f6;border-radius:22px;background:#fff;padding:20px;}
    .admin-finance-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px;}
    .admin-finance-section-title{font-weight:900;color:#0f172a;font-size:17px;}
    .admin-finance-section-sub{color:#64748b;font-size:13px;margin-top:4px;}
    .admin-finance-summary-grid{display:grid;grid-template-columns:1.2fr 1.2fr .9fr .9fr;gap:14px;}
    .admin-finance-summary-card{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:18px;min-height:130px;position:relative;overflow:hidden;}
    .admin-finance-summary-card.primary{background:linear-gradient(135deg,#eff6ff,#ffffff);border-color:#bfdbfe;}
    .admin-finance-summary-card.profit{background:linear-gradient(135deg,#f0fdf4,#ffffff);border-color:#bbf7d0;}
    .admin-finance-summary-card.warning{background:linear-gradient(135deg,#fff7ed,#ffffff);border-color:#fed7aa;}
    .admin-finance-summary-label{font-size:13px;font-weight:900;color:#475569;}
    .admin-finance-summary-value{font-size:34px;font-weight:950;color:#0f172a;line-height:1.05;margin-top:12px;letter-spacing:-.03em;}
    .admin-finance-summary-sub{margin-top:10px;font-size:13px;color:#64748b;line-height:1.45;}
    .admin-finance-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;}
    .admin-finance-profit-calc{border:1px solid #dbe7f6;background:#f8fbff;border-radius:18px;padding:14px 16px;display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:14px;align-items:center;}
    .admin-finance-profit-calc .title{font-weight:950;color:#0f172a;}
    .admin-finance-profit-calc .expr{color:#475569;line-height:1.65;font-size:13px;word-break:break-word;}
    .admin-finance-profit-calc .result{font-size:22px;font-weight:950;white-space:nowrap;text-align:right;}
    .admin-finance-mini-card{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:13px 14px;}
    .admin-finance-mini-card .label{font-size:12px;font-weight:900;color:#64748b;}
    .admin-finance-mini-card .value{font-size:20px;font-weight:950;color:#0f172a;margin-top:6px;}
    .admin-finance-overview-section{background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);}
    .admin-finance-board{border:1px solid #e2e8f0;border-radius:22px;background:#fff;padding:16px;display:grid;gap:14px;}
    .admin-finance-board-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px;}
    .admin-finance-board-grid-single{grid-template-columns:1fr;}
    .admin-finance-board-part{min-width:0;border:1px solid #edf2f7;border-radius:16px;background:#fbfdff;padding:14px;}
    .admin-finance-overview-panels{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px;margin-top:14px;}
    .admin-finance-panel{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:15px;}
    .admin-finance-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
    .admin-finance-panel-title{font-weight:950;color:#0f172a;font-size:14px;}
    .admin-finance-panel-sub{color:#64748b;font-size:12px;line-height:1.5;}
    .admin-finance-layout-two{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:16px;}
    .admin-finance-profit-board{display:grid;gap:10px;}
    .admin-finance-profit-line{display:grid;grid-template-columns:120px minmax(0,1fr) 120px;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;}
    .admin-finance-profit-name{font-weight:900;color:#0f172a;}
    .admin-finance-profit-expr{color:#475569;font-size:13px;line-height:1.55;word-break:break-word;}
    .admin-finance-profit-value{text-align:right;font-size:18px;font-weight:950;color:#0f172a;white-space:nowrap;}
    .admin-finance-health-list{display:grid;gap:9px;}
    .admin-finance-health-item{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;border:1px solid #e2e8f0;background:#fff;border-radius:15px;padding:12px 14px;}
    .admin-finance-health-item.has-alert{border-color:#fed7aa;background:#fff7ed;}
    .admin-finance-health-title{font-weight:900;color:#0f172a;font-size:13px;}
    .admin-finance-health-desc{margin-top:3px;color:#64748b;font-size:12px;line-height:1.45;}
    .admin-finance-health-count{text-align:right;font-weight:950;color:#0f172a;font-size:22px;line-height:1;}
    .admin-finance-health-amount{margin-top:4px;color:#64748b;font-size:12px;white-space:nowrap;}
    .admin-finance-trend-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;}
    .admin-finance-trend-card{border:1px solid #e2e8f0;background:#f8fafc;border-radius:18px;padding:15px 16px;min-height:118px;}
    .admin-finance-trend-card .label{font-size:12px;font-weight:900;color:#64748b;}
    .admin-finance-trend-card .value{margin-top:8px;font-size:25px;font-weight:950;color:#0f172a;letter-spacing:-.02em;}
    .admin-finance-trend-card .compare{margin-top:8px;font-size:13px;font-weight:900;}
    .admin-finance-trend-card .compare.up{color:#16a34a;}
    .admin-finance-trend-card .compare.down{color:#dc2626;}
    .admin-finance-trend-card .compare.flat{color:#64748b;}
    .admin-finance-trend-card .sub{margin-top:6px;font-size:12px;color:#64748b;line-height:1.45;}
    .admin-finance-trend-table-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px;color:#334155;font-size:13px;font-weight:900;}
    .admin-finance-trend-table{min-width:0!important;table-layout:fixed;}
    .admin-finance-trend-table th,.admin-finance-trend-table td{padding:10px 8px;font-size:13px;white-space:normal;line-height:1.45;}
    .admin-finance-trend-table td:nth-child(n+3),.admin-finance-trend-table th:nth-child(n+3){text-align:right;}
    .admin-finance-negative{color:#dc2626!important;font-weight:900;}
    .admin-finance-positive{color:#16a34a!important;font-weight:900;}

    /* 老板视角：经营总览 + 财务驾驶舱 */
    .admin-owner-scoreboard{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px;}
    .admin-owner-card{position:relative;overflow:hidden;border:1px solid #dbe7f6;border-radius:18px;background:#fff;padding:15px 16px;min-height:124px;box-shadow:0 1px 2px rgba(15,23,42,.03);}
    .admin-owner-card.main{grid-column:span 2;background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%);border-color:#bfdbfe;}
    .admin-owner-card.profit{background:linear-gradient(135deg,#f0fdf4 0%,#ffffff 100%);border-color:#bbf7d0;}
    .admin-owner-card.warning{background:linear-gradient(135deg,#fff7ed 0%,#ffffff 100%);border-color:#fed7aa;}
    .admin-owner-label{font-size:12px;font-weight:950;color:#64748b;letter-spacing:.02em;}
    .admin-owner-value{margin-top:9px;font-size:28px;font-weight:950;color:#0f172a;letter-spacing:-.03em;line-height:1.05;}
    .admin-owner-sub{margin-top:9px;color:#64748b;font-size:12px;line-height:1.55;}
    .admin-owner-action{display:inline-flex;margin-top:9px;font-size:12px;font-weight:900;color:#2563eb;background:transparent;border:0;padding:0;cursor:pointer;}
    .admin-boss-insight{border:1px solid #dbe7f6;border-radius:20px;background:linear-gradient(135deg,#ffffff,#f8fbff);padding:16px 18px;margin-bottom:14px;display:grid;gap:12px;}
    .admin-boss-insight-title{font-size:15px;font-weight:950;color:#0f172a;}
    .admin-boss-insight-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:14px;align-items:stretch;}
    .admin-boss-sentence{font-size:15px;line-height:1.7;color:#334155;font-weight:750;}
    .admin-boss-tags{display:flex;flex-wrap:wrap;gap:7px;align-content:flex-start;}
    .admin-boss-tag{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:850;}
    .admin-boss-tag.warn{border-color:#fed7aa;background:#fff7ed;color:#9a3412;}
    .admin-boss-tag.good{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
    .admin-finance-money-map{display:grid;gap:10px;}
    .admin-finance-map-row{display:grid;grid-template-columns:145px minmax(0,1fr) 110px;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;}
    .admin-finance-map-name{font-size:12px;font-weight:950;color:#475569;}
    .admin-finance-map-track{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden;}
    .admin-finance-map-bar{height:100%;border-radius:999px;background:#2563eb;min-width:4px;}
    .admin-finance-map-value{text-align:right;font-size:13px;font-weight:950;color:#0f172a;white-space:nowrap;}
    .admin-finance-owner-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:14px;align-items:start;}
    .admin-finance-risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
    .admin-finance-risk-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:13px 14px;display:grid;gap:8px;}
    .admin-finance-risk-card.has-alert{border-color:#fed7aa;background:#fff7ed;}
    .admin-finance-risk-card button{justify-self:start;padding:0;border:0;background:transparent;color:#2563eb;font-weight:900;cursor:pointer;}
    .admin-finance-risk-title{font-size:12px;font-weight:950;color:#64748b;}
    .admin-finance-risk-value{font-size:24px;font-weight:950;color:#0f172a;line-height:1;}
    .admin-finance-risk-desc{font-size:12px;line-height:1.45;color:#64748b;}
    .admin-finance-order-row-profit{font-weight:950;}
    @media (max-width: 1280px){ .admin-owner-scoreboard{grid-template-columns:repeat(3,minmax(0,1fr));} .admin-owner-card.main{grid-column:span 1;} .admin-finance-owner-grid{grid-template-columns:1fr;} }
    @media (max-width: 760px){ .admin-owner-scoreboard,.admin-boss-insight-body,.admin-finance-risk-grid{grid-template-columns:1fr;} .admin-finance-map-row{grid-template-columns:1fr;gap:7px;} .admin-finance-map-value{text-align:left;} }

    @media (max-width: 960px){
      .admin-order-item-main{grid-template-columns:84px minmax(0,1fr);}
      .admin-order-item-side{grid-column:1/-1;align-items:flex-start;min-width:0;padding-top:0;}
      .admin-order-item-grid,.admin-order-finance-grid{grid-template-columns:1fr;}
      .admin-finance-formula-row{grid-template-columns:1fr;gap:8px;}
      .admin-finance-formula-result{text-align:left;}

      .admin-finance-summary-grid,.admin-finance-mini-grid,.admin-finance-layout-two,.admin-finance-overview-panels{grid-template-columns:1fr;}
      .admin-finance-profit-calc{grid-template-columns:1fr;gap:6px;}
      .admin-finance-profit-calc .result{text-align:left;}
      .admin-finance-board-grid{grid-template-columns:1fr;}
      .admin-finance-hero{border-radius:18px;}
      .admin-finance-hero-head,.admin-finance-section-head{align-items:flex-start;flex-direction:column;}
      .admin-finance-actions{margin-left:0;}
      .admin-finance-profit-line{grid-template-columns:1fr;gap:6px;}
      .admin-finance-profit-value{text-align:left;}
      .admin-finance-trend-summary{grid-template-columns:1fr;}
      .admin-order-summary-grid,.admin-finance-compact-grid,.admin-finance-detail-grid,.admin-manual-purchase-grid,.admin-item-manage-inline{grid-template-columns:1fr;}
      .admin-finance-compact-profit{text-align:left;}
      .admin-order-status-group{justify-content:flex-start;}
    }
    @media (max-width: 1180px){ .admin-grid-2{grid-template-columns:1fr;} }
    @media (max-width: 1180px){ .admin-overview-grid{grid-template-columns:1fr;grid-template-areas:"left" "right" "tx";} }
    @media (max-width: 760px){ .admin-overview-actions,.admin-overview-alerts{grid-template-columns:1fr;} }
    .modal-mask{ position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; padding:16px; z-index:60; }
    .modal-mask.show{ display:flex; }
    .modal-card{ width:min(680px, 100%); max-height:calc(100vh - 32px); overflow:auto; background:#fff; border-radius:18px; border:1px solid var(--line); box-shadow:0 20px 60px rgba(0,0,0,.18); padding:18px; }
    .admin-manual-order-card{width:min(940px,calc(100vw - 32px));padding:20px 22px;}
    .admin-manual-order-section{border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff;padding:14px;}
    .admin-manual-order-section-title{font-size:14px;font-weight:900;color:#0f172a;margin-bottom:11px;}
    .admin-manual-customer-grid{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(160px,.85fr) minmax(210px,1fr);gap:12px 14px;align-items:start;}
    .admin-manual-status-grid{display:grid;grid-template-columns:140px minmax(210px,1.25fr) minmax(190px,1fr) 190px;gap:12px 14px;align-items:start;margin-top:12px;}
    .admin-manual-field{display:grid;gap:6px;min-width:0;align-content:start;}
    .admin-manual-field>span{font-size:13px;font-weight:800;color:#334155;line-height:1.35;}
    .admin-manual-field input,.admin-manual-field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:42px;border-radius:10px;border:1px solid #d7dfeb;background:#fff;padding:0 11px;font:inherit;color:#0f172a;}
    .admin-manual-field input:focus,.admin-manual-field select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
    .admin-manual-field small{font-size:12px;line-height:1.5;}
    .admin-manual-note-field{margin-top:12px;max-width:760px;}
    .admin-manual-order-item{border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;background:#f8fafc;display:grid;gap:11px;}
    .admin-manual-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
    .admin-manual-item-grid{display:grid;grid-template-columns:minmax(240px,1fr) 170px 84px 170px;gap:10px 12px;align-items:start;}
    .admin-manual-item-url{grid-column:1 / span 3;max-width:690px;}
    .admin-manual-order-url-input{position:relative!important;z-index:2!important;pointer-events:auto!important;-webkit-user-select:text!important;user-select:text!important;touch-action:manipulation!important;caret-color:#0f172a!important;}
    .admin-manual-order-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px;}
    @media (max-width: 1040px){
      .admin-manual-customer-grid{grid-template-columns:1fr 1fr;}
      .admin-manual-customer-grid .admin-manual-member-field{grid-column:1/-1;}
      .admin-manual-status-grid{grid-template-columns:1fr 1fr;}
      .admin-manual-item-grid{grid-template-columns:minmax(220px,1fr) 150px 84px 160px;}
    }
    @media (max-width: 760px){
      .admin-manual-order-card{width:100%;padding:16px;}
      .admin-manual-customer-grid,.admin-manual-status-grid,.admin-manual-item-grid{grid-template-columns:1fr;}
      .admin-manual-customer-grid .admin-manual-member-field,.admin-manual-item-url{grid-column:1;}
      .admin-manual-note-field,.admin-manual-item-url{max-width:none;}
      .admin-manual-order-actions{display:grid;grid-template-columns:1fr;}
      .admin-manual-order-actions button{width:100%;}
    }


/* 充值页面精简优化 */
.recharge-dialog{max-width:690px!important}
.recharge-top{padding-bottom:14px}
.recharge-balance{margin-bottom:12px;padding:15px 20px}
.recharge-panel{padding-top:20px;padding-bottom:22px}
.recharge-amounts{grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:9px;margin:12px 0 16px}
.recharge-amount{min-height:60px;border-radius:9px}
.recharge-amount strong{font-size:19px}
.recharge-wechat-grid{align-items:center;grid-template-columns:minmax(0,1fr) 175px;margin-top:10px;gap:16px}
.recharge-contact{padding:18px}
.recharge-wechat-id{margin:10px 0 0;flex-wrap:wrap;font-size:20px}
.recharge-divider{margin:21px 0 13px}
.recharge-code-input{min-height:62px;resize:vertical}
.recharge-history{margin-top:18px;padding-top:13px}
.recharge-history summary{cursor:pointer;font-size:13px;font-weight:700;color:#334155;list-style:none;display:flex;align-items:center;justify-content:space-between}
.recharge-history summary::-webkit-details-marker{display:none}
.recharge-history summary span{font-size:12px;color:#64748b;font-weight:400}
.recharge-history-head{justify-content:flex-end;margin-top:12px}
@media(max-width:620px){.recharge-amounts{grid-template-columns:repeat(3,minmax(0,1fr))}.recharge-wechat-grid{grid-template-columns:1fr}.recharge-contact{padding:14px}}

/* 充值管理 V6：无折叠、可点击数据与居中关闭按钮 */
.recharge-top .recharge-x{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;font-family:Arial,sans-serif!important;flex:0 0 34px;vertical-align:middle}
.ra-metric-link{text-align:left;cursor:pointer;font:inherit;appearance:none;width:100%;color:inherit}
.ra-metric-link:hover{border-color:#6485c6;box-shadow:0 3px 14px rgba(35,74,130,.09)}
.ra-metric-view{font-size:12px;color:#3768b6;margin-top:3px}
.ra-row-detail{font-size:12px;line-height:1.9;color:#536174;white-space:normal;min-width:180px}
.ra-row-detail button{font-size:12px;margin-right:5px}
.ra-safety-config h4,.ra-options h4{margin:0 0 10px}
/* 账户充值 · 专业版 */
.recharge-dialog{width:min(760px,calc(100vw - 28px));max-width:760px!important;max-height:90vh;overflow-y:auto;padding:0!important;border-radius:20px!important;background:#fff;box-shadow:0 24px 72px rgba(15,23,42,.22)}
.recharge-top{display:flex;align-items:start;justify-content:space-between;padding:26px 30px 18px;gap:12px}.recharge-top h2{margin:3px 0 5px;font-size:25px;letter-spacing:-.5px}.recharge-top p{margin:0}.recharge-eyebrow{font-size:12px;letter-spacing:2px;color:#64748b;font-weight:700}.recharge-x{width:34px;height:34px;border:1px solid #e2e8f0;border-radius:9px;background:white;color:#475569;font-size:24px;line-height:1;cursor:pointer}
.recharge-balance{margin:0 30px 20px;background:linear-gradient(110deg,#10243c,#213f62);border-radius:15px;color:#fff;padding:22px 24px;display:flex;align-items:end;justify-content:space-between;gap:12px}.recharge-balance-label{color:#cbd5e1;font-size:13px}.recharge-balance-value{font-size:34px;font-weight:750;letter-spacing:-1px;margin-top:5px}.recharge-balance-mark{font-size:12px;color:#cbd5e1}
.recharge-tabs{display:grid;grid-template-columns:1fr 1fr;padding:0 30px;border-bottom:1px solid #e2e8f0;gap:14px}.recharge-tab{border:0;border-bottom:3px solid transparent;background:none;color:#64748b;padding:13px 5px;font-size:15px;font-weight:750;text-align:center;cursor:pointer}.recharge-tab span{font-size:12px;font-weight:400;margin-left:5px}.recharge-tab.active{color:#2563eb;border-bottom-color:#2563eb}.recharge-panel{padding:24px 30px 8px}.recharge-panel[hidden]{display:none!important}.recharge-section-title{font-size:16px;font-weight:750;color:#172b47;margin-bottom:10px}.recharge-section-caption{font-size:12px;color:#64748b;margin:0 0 14px}.recharge-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:12px;margin:14px 0 20px}.recharge-amount{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:78px;gap:5px;border:1.5px solid #dbe3ee;border-radius:12px;background:white;color:#172b47;cursor:pointer;transition:.16s;position:relative}.recharge-amount strong{font-size:21px}.recharge-amount small{font-size:12px;color:#64748b}.recharge-amount.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;box-shadow:0 0 0 1px #2563eb}.recharge-amount:disabled{opacity:.45;cursor:not-allowed}.recharge-buy{display:block;text-align:center;text-decoration:none!important;background:#2563eb;color:white!important;padding:13px;border-radius:10px;font-size:15px;font-weight:750}.recharge-buy:hover{background:#1d4ed8}.recharge-buy.disabled{pointer-events:none;background:#94a3b8}.recharge-divider{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:12px;margin:24px 0}.recharge-divider:before,.recharge-divider:after{content:'';height:1px;background:#e2e8f0;flex:1}.recharge-code-label{display:block;font-size:13px;font-weight:700;color:#334155;margin:12px 0 7px}.recharge-code-input{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:12px;resize:vertical;min-height:74px;font-size:14px}.recharge-code-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.recharge-code-row button{background:#1e293b;color:white;border:0;border-radius:9px;padding:11px 24px}.recharge-hint{font-size:12px;color:#64748b;line-height:1.7}.recharge-history{margin-top:24px;border-top:1px solid #e2e8f0;padding-top:16px}.recharge-history-head{display:flex;align-items:center;justify-content:space-between}.recharge-history-head h3{font-size:15px;margin:0}.recharge-history-head button{font-size:12px}.recharge-wechat-grid{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:24px;margin-top:18px}.recharge-contact{border:1px solid #e2e8f0;border-radius:12px;padding:20px}.recharge-field-label{font-size:12px;color:#64748b}.recharge-wechat-id{display:flex;align-items:center;gap:12px;margin:6px 0 22px;font-size:23px}.recharge-steps{display:grid;gap:14px;font-size:13px;color:#475569}.recharge-steps div{display:flex;gap:10px;align-items:center}.recharge-steps em{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#eff6ff;color:#2563eb;font-style:normal;flex-shrink:0}.recharge-scan{text-align:center}.recharge-scan .recharge-qr{width:180px;max-width:100%;padding:8px;border-radius:10px}.recharge-scan span{display:block;font-size:12px;color:#64748b;margin-top:6px}.recharge-footer-note{padding:15px 30px 22px;margin:0;font-size:12px;color:#94a3b8}
@media(max-width:620px){.recharge-top{padding:20px 18px 14px}.recharge-balance{margin:0 18px 15px;padding:18px}.recharge-balance-value{font-size:28px}.recharge-tabs{padding:0 18px;gap:3px}.recharge-tab{font-size:13px}.recharge-tab span{display:block;margin:4px 0 0}.recharge-panel{padding:20px 18px 5px}.recharge-amounts{grid-template-columns:repeat(2,1fr)}.recharge-wechat-grid{grid-template-columns:1fr}.recharge-footer-note{padding:16px 18px}}

    .recharge-hero{ display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:center; }
    .recharge-qr{ width:100%; max-width:260px; aspect-ratio:1/1; object-fit:contain; border:1px solid var(--line); border-radius:16px; background:#fff; padding:12px; }
    .recharge-copy{ padding:10px 12px; border-radius:12px; border:1px dashed #bfdbfe; background:#eff6ff; }
    @media (max-width: 760px){ .recharge-hero{ grid-template-columns:1fr; } }

    .member-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start;}
    .member-sidebar{position:sticky;top:84px;padding:0;border:1px solid #d9e1ea;border-radius:0;background:#eef3f8;box-shadow:none;overflow:hidden;}
    .member-sidebar-profile{padding:28px 18px 26px;border-bottom:1px solid #d9e1ea;background:#eef3f8;display:flex;flex-direction:column;align-items:center;text-align:center;}
    .member-avatar{position:relative;width:128px;height:128px;border-radius:999px;border:4px solid rgba(255,255,255,.8);background:linear-gradient(135deg,#2563eb,#60a5fa);display:flex;align-items:center;justify-content:center;color:#fff;font-size:56px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);overflow:hidden;background-size:cover;background-position:center;cursor:pointer;transition:transform .18s ease, box-shadow .18s ease;}
    .member-avatar:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.16), inset 0 0 0 1px rgba(255,255,255,.2);}
    .member-avatar.has-image{color:transparent;font-size:0;text-indent:-9999px;}
    .member-avatar::after{content:"";display:none;}
    .member-avatar:hover::after{opacity:0;}
    .member-avatar-large{width:84px;height:84px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#60a5fa);display:flex;align-items:center;justify-content:center;color:#fff;font-size:32px;font-weight:800;overflow:hidden;background-size:cover;background-position:center;flex-shrink:0;}
    .member-avatar-large.has-image{color:transparent;font-size:0;text-indent:-9999px;}
    .member-profile-line{margin-top:14px;color:#6b7280;font-size:13px;}
    .member-profile-line b{color:#4b5563;font-weight:700;margin-right:6px;}
    .member-profile-name{color:#0f172a;font-size:15px;font-weight:800;cursor:default;display:inline-flex;align-items:center;gap:6px;text-decoration:none;}
    .member-profile-name:hover{text-decoration:none;}
    .member-profile-name::after{content:"";display:none;}

    .profile-dialog-mask{display:none;position:fixed;inset:0;z-index:95;background:rgba(15,23,42,.42);backdrop-filter:blur(6px);padding:24px;overflow:auto;}
    .profile-dialog-mask.show{display:block;}
    .profile-dialog-card{width:min(460px,100%);margin:6vh auto;background:#fff;border:1px solid #dbe4f0;border-radius:24px;box-shadow:0 28px 70px rgba(15,23,42,.18);overflow:hidden;}
    .profile-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 12px;}
    .profile-dialog-title{font-size:20px;font-weight:900;color:#0f172a;line-height:1.3;}
    .profile-dialog-sub{margin-top:6px;color:#64748b;font-size:13px;line-height:1.7;}
    .profile-dialog-close{width:38px;height:38px;border-radius:999px;border:1px solid #dbe4f0;background:#fff;color:#64748b;font-size:18px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
    .profile-dialog-close:hover{background:#f8fafc;color:#0f172a;}
    .profile-dialog-body{padding:0 24px 24px;display:grid;gap:16px;}
    .profile-dialog-avatar-preview{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #e6edf7;border-radius:18px;background:#f8fbff;}
    .profile-dialog-avatar-sample{width:72px;height:72px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;overflow:hidden;background-size:cover;background-position:center;flex-shrink:0;}
    .profile-dialog-avatar-sample.has-image{color:transparent;font-size:0;text-indent:-9999px;}
    .profile-dialog-avatar-text{min-width:0;}
    .profile-dialog-avatar-text strong{display:block;font-size:15px;color:#0f172a;line-height:1.5;}
    .profile-dialog-avatar-text span{display:block;margin-top:6px;color:#64748b;font-size:13px;line-height:1.7;}
    .profile-dialog-actions{display:flex;gap:10px;flex-wrap:wrap;}
    .profile-dialog-actions button{min-height:44px;font-weight:800;}
    .profile-dialog-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 8px 18px rgba(220,38,38,.18);}
    .profile-dialog-danger:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);}
    .profile-dialog-field{display:grid;gap:8px;}
    .profile-dialog-field label{font-size:13px;font-weight:800;color:#334155;}
    .profile-dialog-field input{height:48px;border-radius:14px;border:1px solid #d7dfeb;background:#fff;padding:0 14px;font:inherit;}
    .profile-dialog-field input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
    .profile-dialog-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
    .profile-dialog-note{color:#94a3b8;font-size:12px;line-height:1.7;}
    .profile-dialog-msg{display:none;margin-top:-4px;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:13px;line-height:1.55;}
    .profile-dialog-msg.show{display:block;}
    .profile-dialog-msg.error{background:#fff1f2;border-color:#fecdd3;color:#be123c;}
    .profile-dialog-msg.success{background:#f0fdf4;border-color:#bbf7d0;color:#15803d;}
    .member-menu{display:flex;flex-direction:column;gap:0;background:#f6f8fb;}
    .member-menu-btn{width:100%;display:flex;align-items:center;justify-content:center;padding:18px 14px;border:0;border-left:3px solid transparent;border-bottom:1px solid #e6ebf2;border-radius:0;background:transparent;color:#374151;cursor:pointer;text-align:center;font-weight:700;transition:all .18s ease;font-size:15px;}
    .member-menu-btn:hover{background:#fff;color:#ef4444;}
    .member-menu-btn.active{background:#fff;color:#ef4444;border-left-color:#ff6b6b;box-shadow:none;}
    .member-content{display:flex;flex-direction:column;gap:14px;min-width:0;}
    .member-section{display:none;padding:0;border:1px solid #e5e7eb;border-radius:0;background:#fff;box-shadow:none;overflow:hidden;}
    .member-section.active{display:block;}
    .member-overview-top{display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:0;border-bottom:1px solid #eee;background:#fff;}
    .member-overview-main{padding:18px 18px 10px;}
    .member-overview-side{position:relative;padding:22px 20px;border-left:1px solid #eee;display:flex;flex-direction:column;gap:18px;overflow:hidden;align-items:flex-start;}
    .member-last-login{color:#666;font-size:13px;padding-bottom:14px;}
    .member-contact-title{margin:18px 0 12px;font-size:14px;font-weight:900;color:#0f172a;}
    .member-verify-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:560px;}
    .member-verify-item{appearance:none;border:1px solid #e5edf7;background:#fff;border-radius:16px;padding:13px 10px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#666;font-size:12px;text-align:center;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;}
    .member-verify-item:hover{background:#f8fbff;border-color:#bfdbfe;box-shadow:0 8px 20px rgba(37,99,235,.08);transform:translateY(-1px);}
    .member-verify-icon{position:relative;width:46px;height:46px;border-radius:12px;border:1px solid #e5e7eb;background:#fafafa;display:flex;align-items:center;justify-content:center;font-size:22px;color:#b8bec7;}
    .member-verify-check{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.08);}
    .member-verify-check.yes{background:#22c55e;}
    .member-verify-check.no{background:#cbd5e1;}
    .member-verify-name{color:#111827;font-size:13px;font-weight:800;}
    .member-verify-status{font-size:12px;font-weight:800;color:#64748b;}
    .member-verify-status.ok{color:#16a34a;}
    .member-verify-value{max-width:100%;font-size:12px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .member-credit-row{display:flex;align-items:center;gap:14px;margin-top:18px;color:#666;flex-wrap:wrap;}
    .member-credit-tags{display:flex;gap:8px;flex-wrap:wrap;}
    .member-credit-tag{min-width:58px;padding:4px 12px;background:#c7c7c7;color:#fff;font-size:12px;font-weight:700;text-align:center;}
    .member-credit-tag.active{background:#e10600;}
    .member-side-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:14px;row-gap:8px;width:100%;}
    .member-side-actions .member-side-stat{min-width:0;width:100%;}
    .member-side-action-buttons{display:flex;justify-content:flex-end;gap:10px;flex-wrap:nowrap;align-self:start;flex:0 0 auto;}
    .member-side-action-buttons button{background:#fff;color:#ef4444;border:1px solid #f2b8b8;border-radius:8px;padding:6px 12px;min-height:32px;font-size:13px;line-height:1.1;box-shadow:none;white-space:nowrap;}
    .member-side-stat{display:grid;grid-template-columns:max-content max-content;align-items:center;justify-content:flex-start;column-gap:10px;color:#4b5563;font-size:14px;line-height:1;min-width:0;width:auto;max-width:100%;}
    .member-side-stat-left{display:flex;align-items:center;gap:12px;min-width:0;white-space:nowrap;}
    .member-side-icon{width:34px;height:34px;border-radius:999px;background:#f47d7d;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex:0 0 34px;}
    .member-side-icon svg{width:18px;height:18px;display:block;stroke:currentColor;fill:none;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;}
    .member-summary-icon svg{width:54px;height:54px;display:block;margin:0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
    .member-side-stat .v{font-size:20px;font-weight:400;color:#ef4444;display:block;min-width:0;text-align:left;white-space:nowrap;overflow:visible;justify-self:start;}
.member-side-actions .member-side-stat .v{margin-left:0;}
    .member-balance-panel{margin:18px;background:#fafafa;border:1px solid #f0f0f0;padding:22px 28px;display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:18px;}
    .member-balance-box{text-align:center;}
    .member-balance-box .label{color:#8b8b8b;font-size:13px;}
    .member-balance-box .value{margin-top:18px;font-size:26px;color:#111;font-weight:500;}
    .member-balance-box.available .value{color:#ef4444;}
    .member-balance-symbol{font-size:72px;line-height:1;color:#dedede;font-weight:300;}
    .member-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 18px 18px;}
    .member-summary-card{border:1px solid #eadfbe;background:#fff;}
    .member-summary-head{padding:12px 16px;color:#fff;font-size:18px;font-weight:800;}
    .member-summary-body{display:flex;align-items:center;gap:16px;padding:18px 16px;min-height:112px;}
    .member-summary-icon{font-size:54px;line-height:1;color:rgba(0,0,0,.12);min-width:70px;text-align:center;}
    .member-summary-card.points .member-summary-icon{width:58px;height:58px;min-width:58px;border-radius:999px;background:#f47d7d;color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;}
    .member-summary-card.points .member-summary-icon svg{width:28px;height:28px;display:block;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
    .member-summary-title{font-size:16px;font-weight:700;color:#111827;}
    .member-summary-text{margin-top:6px;color:#444;font-size:14px;line-height:1.7;}
    .member-summary-link{margin-top:8px;color:#2563eb;font-weight:700;display:inline-block;text-decoration:none;}
    .member-summary-card.level .member-summary-head{background:#b9b0e3;}
    .member-summary-card.service .member-summary-head{background:#77cad4;}
    .member-summary-card.points .member-summary-head{background:#e6b54c;}
    .member-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px;}
    .member-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;}
    .member-card-soft{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--soft);}
    .member-growth-card{min-width:0;max-width:100%;display:block;overflow:hidden;}
    .member-growth-title{font-size:15px;font-weight:800;color:#111827;line-height:1.4;}
    .member-growth-desc{margin-top:6px;line-height:1.8;}
    .member-growth-stats{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;}
    .member-growth-meta,.member-growth-percent{font-size:13px;color:#64748b;line-height:1.6;}
    .member-growth-percent b{color:#111827;}
    .member-growth-bar-track{margin-top:10px;height:12px;border-radius:999px;background:#eef2ff;overflow:hidden;width:min(88%,520px);max-width:100%;}
    .member-growth-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa);}
    .member-growth-note{margin-top:10px;font-size:12px;color:#64748b;line-height:1.8;max-width:100%;word-break:break-word;}
    .home-section-divider{border-top:1px dashed var(--line);margin:14px 0 12px;padding-top:0;height:0;}
    #view-membership .member-growth-card{box-sizing:border-box!important;width:auto!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;display:block!important;}
    .member-page-card{padding:0;overflow:hidden;border:1px solid #e5edf7;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05);}
    .member-page-head{padding:24px 26px;border-bottom:1px solid #e8eef7;background:linear-gradient(135deg,#f8fbff 0%,#ffffff 62%);display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;}
    .member-page-title{font-size:26px;font-weight:900;color:#0f172a;line-height:1.25;letter-spacing:-.02em;}
    .member-page-sub{margin-top:8px;color:#64748b;font-size:14px;line-height:1.8;}
    .member-page-body{padding:18px;display:grid;gap:16px;}
    .member-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
    .member-stat-card{padding:16px;border:1px solid #e5edf7;border-radius:18px;background:#fbfdff;min-width:0;}
    .member-stat-label{color:#64748b;font-size:12px;font-weight:800;letter-spacing:.02em;}
    .member-stat-value{margin-top:8px;color:#0f172a;font-size:18px;font-weight:900;line-height:1.35;word-break:break-all;}
    .member-stat-hint{margin-top:8px;color:#64748b;font-size:12px;line-height:1.7;}
    .member-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
    .member-module-card{padding:18px;border:1px solid #e5edf7;border-radius:20px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.035);min-width:0;}
    .member-module-card.wide{grid-column:1/-1;}
    .member-module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;}
    .member-module-title{font-size:17px;font-weight:900;color:#0f172a;line-height:1.35;}
    .member-module-desc{margin-top:5px;color:#64748b;font-size:12px;line-height:1.7;}
    .member-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
    .member-form-grid .full{grid-column:1/-1;}
    .member-form-field{display:flex;flex-direction:column;gap:7px;min-width:0;}
    .member-form-field label{font-size:13px;font-weight:800;color:#334155;}
    .member-form-field input{height:46px;border:1px solid #d7dfeb;border-radius:14px;padding:0 14px;font:inherit;min-width:0;background:#fff;}
    .member-form-field input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10);}
    .member-readonly{min-height:46px;border:1px solid #e5edf7;border-radius:14px;background:#f8fafc;padding:12px 14px;color:#0f172a;font-weight:800;word-break:break-all;}
    .member-action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;}
    .member-action-row .muted{line-height:1.6;}
    .member-preference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .member-preference-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e5edf7;border-radius:14px;background:#fbfdff;color:#334155;font-weight:700;}
    .member-security-log-list{display:grid;gap:10px;max-height:320px;overflow:auto;padding-right:2px;}
    .member-security-log-item{padding:12px 14px;border:1px solid #e6edf7;border-radius:14px;background:#fff;}
    .member-profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px;border:1px solid #e5edf7;border-radius:20px;background:linear-gradient(135deg,#f8fbff,#fff);}
    .member-profile-hero-main{min-width:0;}
    .member-profile-hero-name{font-size:20px;font-weight:900;color:#0f172a;line-height:1.35;word-break:break-all;}
    .member-profile-hero-meta{margin-top:6px;color:#64748b;font-size:13px;line-height:1.8;}
    @media (max-width: 1080px){.member-stat-grid,.member-module-grid,.member-form-grid,.member-preference-grid{grid-template-columns:1fr}.member-profile-hero{grid-template-columns:1fr}.member-profile-hero .member-avatar-large{justify-self:start}}
.member-benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 18px 18px;}
    .member-benefit-card{border:1px solid #e5e7eb;border-radius:16px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 10px rgba(15,23,42,.03);min-height:220px;}
    .member-benefit-card.current{border-color:#93c5fd;box-shadow:0 8px 22px rgba(37,99,235,.12);background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);}
    .member-benefit-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
    .member-benefit-badge{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:6px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;}
    .member-benefit-card.current .member-benefit-badge{background:#2563eb;color:#fff;}
    .member-benefit-title{font-size:18px;font-weight:900;color:#111827;line-height:1.35;}
    .member-benefit-threshold{margin-top:4px;color:#64748b;font-size:12px;}
    .member-benefit-fee{font-size:28px;font-weight:900;color:#111827;line-height:1;}
    .member-benefit-fee-sub{margin-top:4px;color:#64748b;font-size:12px;}
    .member-benefit-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;}
    .member-benefit-list li{display:flex;align-items:flex-start;gap:8px;color:#334155;font-size:13px;line-height:1.7;}
    .member-benefit-list li::before{content:"✓";flex:0 0 auto;color:#16a34a;font-weight:900;}
    .member-compare-wrap{padding:0 18px 18px;}
    .member-compare-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #dbe4f0;border-radius:16px;overflow:hidden;background:#fff;}
    .member-compare-table th,.member-compare-table td{padding:14px 12px;border-bottom:1px solid #e8eef7;text-align:center;font-size:13px;}
    .member-compare-table thead th{background:#f8fbff;color:#111827;font-weight:800;}
    .member-compare-table th:first-child,.member-compare-table td:first-child{text-align:left;font-weight:700;color:#334155;background:#fcfdff;}
    .member-compare-table tr:last-child td{border-bottom:0;}
    .member-compare-table .current-col{background:#eff6ff;}
    .member-compare-yes{color:#16a34a;font-weight:900;}
    .member-compare-no{color:#cbd5e1;font-weight:900;}
    .member-empty{margin:18px;padding:16px;border:1px dashed var(--line);border-radius:14px;background:var(--soft);color:var(--muted);}
    .wallet-page{display:grid;gap:16px;}
    .wallet-shell{border:1px solid #e6edf7;border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 1px 2px rgba(15,23,42,.03);overflow:hidden;}
    .wallet-shell-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 22px 14px;border-bottom:1px solid #edf2f7;background:linear-gradient(180deg,rgba(248,251,255,.95) 0%,rgba(255,255,255,.98) 100%);}
    .wallet-shell-title{display:flex;align-items:flex-start;gap:0;min-width:0;}
    .wallet-shell-icon{display:none;}
    .wallet-shell-title-text{margin-top:2px;font-size:20px;font-weight:800;color:#0f172a;line-height:1.35;}
    .wallet-shell-sub{margin-top:6px;color:#64748b;font-size:13px;line-height:1.85;max-width:820px;}
    .wallet-shell-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
    .wallet-shell-actions button{border-radius:14px;font-weight:800;min-height:42px;}
    .wallet-shell-body{padding:18px 22px 22px;display:grid;gap:16px;font-size:14px;color:#0f172a;}
    .wallet-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;}
    .wallet-summary-card{padding:14px 16px;border:1px solid #e6edf7;border-radius:18px;background:#fff;min-height:98px;display:flex;flex-direction:column;justify-content:center;}
    .wallet-summary-label{font-size:12px;font-weight:700;color:#64748b;}
    .wallet-summary-value{margin-top:10px;font-size:24px;font-weight:900;line-height:1.1;color:#374151 !important;font-variant-numeric:tabular-nums;font-family:system-ui,-apple-system,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;}
    .wallet-summary-value.negative{color:#374151 !important;}
    .wallet-summary-value.positive{color:#374151 !important;}
    .wallet-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid #e6edf7;border-radius:18px;background:#fff;}
    .wallet-toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;}
    .wallet-toolbar-title{font-size:15px;font-weight:800;color:#0f172a;}
    .wallet-toolbar-count{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:800;}
    .wallet-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
    .wallet-filter-chip{padding:7px 12px;border-radius:999px;border:1px solid #dbe4f0;background:#fff;color:#475569;font-size:12px;font-weight:800;cursor:pointer;transition:all .2s ease;}
    .wallet-filter-chip.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;box-shadow:0 6px 16px rgba(37,99,235,.08);}
    .wallet-toolbar-right{display:grid;grid-template-columns:repeat(2, 150px) minmax(112px,112px) minmax(300px,360px) minmax(96px,96px);gap:10px;align-items:center;margin-left:auto;}
    .wallet-search{display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px;border:1px solid #dbe4f0;border-radius:14px;background:#fff;}
    .wallet-search span{color:#94a3b8;font-size:14px;}
    .wallet-search input{border:0;background:transparent;height:42px;padding:0;width:100%;outline:none;font:14px/1.4 system-ui,-apple-system,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;}
    .wallet-date-field{position:relative;width:150px;min-width:0;}
    .wallet-date-input{width:100%;height:42px;padding:0 40px 0 12px;border:1px solid #dbe4f0;border-radius:14px;background:#fff;color:#475569;font-size:14px;font-weight:500;line-height:1.4;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif !important;letter-spacing:0;outline:none;cursor:pointer;}
    .wallet-date-field::after{content:"📅";position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:14px;color:#64748b;pointer-events:none;}
    .wallet-date-input::placeholder{color:#64748b;opacity:1;}
    .wallet-date-input:focus{border-color:#bfdbfe;box-shadow:0 0 0 3px rgba(37,99,235,.10);}
    .wallet-date-picker{position:fixed;z-index:12050;width:224px;border:1px solid #dbe4f0;border-radius:14px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.14);padding:8px 8px 7px;font-family:"SimHei","黑体","Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#111827;}
    .wallet-date-picker[hidden]{display:none !important;}
    .wallet-date-picker-head{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:5px;}
    .wallet-date-picker-title{font-size:13px;font-weight:700;color:#111827;letter-spacing:0;}
    .wallet-date-picker-nav{display:flex;align-items:center;gap:4px;}
    .wallet-date-picker-nav button{width:24px;height:24px;padding:0;border-radius:8px;border:1px solid #e5e7eb;background:#fff;color:#111827;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;}
    .wallet-date-picker-nav button:hover{background:#f8fafc;}
    .wallet-date-picker-week{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:3px;}
    .wallet-date-picker-week span{height:20px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#111827;}
    .wallet-date-picker-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;}
    .wallet-date-picker-day{height:26px;border:1px solid transparent;border-radius:8px;background:#fff;color:#111827;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
    .wallet-date-picker-day:hover{background:#f8fafc;border-color:#e5e7eb;}
    .wallet-date-picker-day.is-muted{color:#9ca3af;}
    .wallet-date-picker-day.is-today{border-color:#bfdbfe;background:#eff6ff;}
    .wallet-date-picker-day.is-selected{background:#1677ff;border-color:#1677ff;color:#fff;}
    .wallet-date-picker-foot{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:6px;}
    .wallet-date-picker-link{padding:0;border:0;background:transparent;color:#1677ff;font-size:12px;font-weight:700;cursor:pointer;font-family:"SimHei","黑体","Microsoft YaHei","PingFang SC",Arial,sans-serif;}

    .wallet-toolbar-btn{min-height:42px;padding:.68em .95em;border-radius:14px;font-weight:800;min-width:auto;}
    .wallet-table-wrap{overflow:hidden;border:1px solid #e6edf7;border-radius:18px;background:#fff;min-height:560px;display:flex;flex-direction:column;}
    .wallet-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;}
    .wallet-table thead th{position:sticky;top:0;background:#f8fbff;color:#64748b;font-size:13px;font-weight:800;letter-spacing:.01em;padding:10px 8px;border-bottom:1px solid #e6edf7;text-align:left;white-space:nowrap;}
    .wallet-table tbody td{padding:11px 8px;border-bottom:1px solid #edf2f7;vertical-align:middle;color:#0f172a;font-size:14px;line-height:1.6;}
    .wallet-table tbody tr:last-child td{border-bottom:0;}
    .wallet-table tbody tr:hover{background:#fafcff;}
.wallet-table th:nth-child(2),.wallet-table td:nth-child(2){white-space:nowrap;word-break:normal;font-variant-numeric:tabular-nums;}
.wallet-table td:nth-child(4){word-break:break-word;}
.wallet-table th:nth-child(4),.wallet-table td:nth-child(4){width:auto;}
.wallet-table th:nth-child(5),.wallet-table td:nth-child(5){width:98px!important;text-align:right;}
.wallet-table th:nth-child(6),.wallet-table td:nth-child(6){width:110px!important;text-align:right;}
.admin-list-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid #e6edf7;border-radius:14px;background:#fbfdff;color:#475569;font-size:12px;font-weight:800;}
.admin-list-pagination-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.admin-list-pagination-actions button{height:32px;padding:0 12px;border-radius:10px;border:1px solid #dbe7f6;background:#fff;color:#0f172a;font-weight:900;cursor:pointer;}
.admin-list-pagination-actions button:disabled{opacity:.45;cursor:not-allowed;background:#f8fafc;}
.admin-list-pagination-page{min-width:54px;text-align:center;color:#0f172a;}
.wallet-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-top:1px solid #edf2f7;background:#fff;flex-wrap:wrap;margin-top:auto;}
.wallet-pagination-info{font-size:13px;color:#64748b;}
.wallet-pagination-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.wallet-pagination-btn{min-width:88px;padding:.58em 1em;border-radius:12px;border:1px solid #dbe4f0;background:#fff;color:#0f172a;font-weight:700;cursor:pointer;}
.wallet-pagination-btn[disabled]{opacity:.45;cursor:not-allowed;}
.wallet-pagination-page{min-width:72px;text-align:center;font-size:13px;color:#334155;font-weight:700;}
    .wallet-record-main{display:flex;flex-direction:column;gap:4px;min-width:0;}
    .wallet-record-title{font-weight:800;color:#0f172a;word-break:break-word;}
    .wallet-record-sub{font-size:12px;color:#64748b;line-height:1.75;word-break:break-word;}
    .wallet-collection-row td{background:#fffdf8;}
    .wallet-collection-row:hover td{background:#fff7ed;}
    .wallet-collection-toggle{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #fed7aa;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap;}
    .wallet-collection-toggle:hover{background:#ffedd5;}
    .wallet-collection-toggle .wallet-toggle-mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:999px;background:#fdba74;color:#7c2d12;font-size:12px;line-height:1;}
    .wallet-collection-sub{display:block;margin-top:3px;font-size:12px;color:#64748b;font-weight:700;}
    .wallet-collection-child td{background:#fbfdff;color:#475569;font-size:13px;}
    .wallet-collection-child td:first-child{padding-left:24px;}
    .wallet-collection-child .wallet-child-prefix{color:#94a3b8;font-weight:900;margin-right:4px;}
    .wallet-type-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid #dbe4f0;background:#fff;color:#475569;white-space:nowrap;}
    .wallet-type-badge.is-recharge{background:#ecfdf3;border-color:#bbf7d0;color:#15803d;}
    .wallet-type-badge.is-consume{background:#fff7ed;border-color:#fed7aa;color:#c2410c;}
    .wallet-type-badge.is-service_fee{background:#fef2f2;border-color:#fecaca;color:#dc2626;}
    .wallet-type-badge.is-refund{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;}
    .wallet-type-badge.is-adjust{background:#f8fafc;border-color:#e2e8f0;color:#475569;}
    .wallet-amount{font-size:16px;font-weight:900;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;}
    .wallet-amount.positive{color:#15803d;}
    .wallet-amount.negative{color:#dc2626;}
    .wallet-balance{font-size:15px;font-weight:800;color:#374151;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;}
    .wallet-empty{padding:36px 18px;text-align:center;display:grid;justify-items:center;gap:12px;}
    .wallet-empty-icon{width:58px;height:58px;border-radius:18px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:900;box-shadow:inset 0 0 0 1px #dbeafe;}
    .wallet-empty-title{font-size:20px;font-weight:900;color:#0f172a;line-height:1.35;}
    .wallet-empty-text{max-width:680px;color:#64748b;font-size:13px;line-height:1.85;}
    .wallet-empty-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
    .wallet-empty-tag{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid #dbe4f0;background:#fff;color:#334155;font-size:12px;font-weight:700;}
    .wallet-empty-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
    .wallet-empty-actions button{border-radius:12px;font-weight:800;}
    .wallet-footnote{color:#64748b;font-size:12px;line-height:1.8;}
    @media (max-width: 1180px){
      .wallet-toolbar-right{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin-left:0;}
      .wallet-search{grid-column:1/-1;}
    }
    @media (max-width: 900px){
      .wallet-shell-head,.wallet-shell-body{padding-left:16px;padding-right:16px;}
      .wallet-toolbar-right{grid-template-columns:1fr;width:100%;margin-left:0;}
      .wallet-toolbar-btn,.wallet-date-input,.wallet-search{width:100%;}
    }
    .coupon-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 14px 0;}
    .coupon-tabs{display:flex;gap:6px;flex-wrap:wrap;}
    .coupon-tab{min-width:96px;padding:8px 12px;border:1px solid #9fd48d;border-radius:10px;background:#fff;color:#6fbe5b;font-weight:800;cursor:pointer;text-align:center;font-size:13px;}
    .coupon-tab.active{background:#79c662;color:#fff;border-color:#79c662;}
    .coupon-redeem{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:min(100%,620px);}
    .coupon-redeem label{font-size:13px;font-weight:700;color:#4b5563;white-space:nowrap;}
    .coupon-redeem input{flex:1 1 237px;min-width:180px;height:38px;}
    .coupon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;align-items:stretch;}
    .coupon-card{display:flex;flex-direction:column;height:206px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(15,23,42,.04);min-width:0;}
    .coupon-card.used,.coupon-card.expired,.coupon-card.revoked{filter:grayscale(.08);}
    .coupon-card-head{display:grid;grid-template-columns:minmax(0,1fr) 112px;position:relative;color:#fff;height:136px;background:linear-gradient(135deg,#7dcf68 0%,#5ab54b 100%);}
    .coupon-card.used .coupon-card-head,.coupon-card.expired .coupon-card-head,.coupon-card.revoked .coupon-card-head{background:linear-gradient(135deg,#c8c8c8 0%,#b7b7b7 100%);}
    .coupon-card-head::after{content:"";position:absolute;left:calc(100% - 112px);top:10px;bottom:10px;width:0;border-left:2px dashed rgba(255,255,255,.28);}
    .coupon-card-main{padding:12px 14px 10px;display:flex;flex-direction:column;min-width:0;justify-content:space-between;}
    .coupon-card-name{font-size:13px;font-weight:800;opacity:.96;line-height:1.35;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .coupon-card-amount{display:flex;align-items:flex-end;gap:3px;margin-top:8px;line-height:1;}
    .coupon-card-amount .currency{font-size:18px;font-weight:800;}
    .coupon-card-amount .value{font-size:34px;font-weight:900;letter-spacing:-0.4px;}
    .coupon-card-amount .unit{font-size:12px;font-weight:700;padding-bottom:4px;opacity:.95;}
    .coupon-card-desc{margin-top:8px;font-size:11px;line-height:1.55;opacity:.95;min-height:34px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
    .coupon-card-side{padding:12px 12px 10px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;text-align:right;}
    .coupon-card-side .label{font-size:12px;font-weight:700;opacity:.95;}
    .coupon-card-side .date{margin-top:4px;font-size:13px;font-weight:800;line-height:1.45;display:flex;flex-direction:column;gap:2px;}
    .coupon-card-side .date small{display:none;}
    .coupon-card-side .status{display:inline-flex;min-width:72px;justify-content:center;padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.92);color:#2f5f1f;font-size:12px;font-weight:800;}
    .coupon-card.used .coupon-card-side .status,.coupon-card.expired .coupon-card-side .status,.coupon-card.revoked .coupon-card-side .status{color:#666;}
    .coupon-card-body{padding:10px 14px 12px;background:#fff;height:70px;display:flex;align-items:center;flex:0 0 auto;}
    .coupon-card-body-title{display:none;}
    .coupon-card-meta{display:block;color:#374151;font-size:12px;line-height:1.6;}
    .coupon-card-meta span{display:none;}
    .coupon-card-code{margin-top:2px;color:#111827;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:800;letter-spacing:.04em;}
    .coupon-inline-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;}
    .coupon-inline-trigger .title{font-weight:700;}
    .coupon-inline-trigger .value{color:var(--muted);font-size:13px;text-align:right;}
    .coupon-select-list{display:flex;flex-direction:column;gap:10px;margin-top:14px;}
    .coupon-select-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;}
    .coupon-select-item.active{border-color:#8ecf7d;background:#f6fff3;box-shadow:0 0 0 1px rgba(121,198,98,.18) inset;}
    .coupon-select-item input{margin-top:2px;}
    .coupon-select-item .name{font-weight:800;}
    .coupon-select-item .desc{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.75;}
    @media (max-width: 960px){
      .coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    }
    @media (max-width: 640px){
      .coupon-grid{grid-template-columns:1fr;}
    }
    @media (max-width: 760px){
      .coupon-card-head{grid-template-columns:1fr;}
      .coupon-card-head::after{display:none;}
      .coupon-card-side{align-items:flex-start;text-align:left;padding-top:0;}
      .coupon-card-side .status{min-width:0;}
      .coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
      .coupon-tab{min-width:80px;padding:8px 10px;font-size:12px;}
    }
    .member-note-list{display:flex;flex-direction:column;gap:10px;padding:18px;}
    .member-note-item{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;min-width:0;max-width:100%;overflow:hidden;}
    .member-card-soft{min-width:0;max-width:100%;overflow:hidden;}
    .referral-code-text{margin-top:8px;font-size:28px;font-weight:800;line-height:1.25;overflow-wrap:anywhere;word-break:break-word;}
    .referral-link-box{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;max-width:100%;min-width:0;overflow:hidden;}
    .referral-link-label{color:#64748b;font-size:12px;font-weight:800;white-space:nowrap;}
    .referral-link-text{display:block;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-all;white-space:normal;line-height:1.55;color:#475569;}
    .referral-copy-btn{min-height:36px;border-radius:12px;padding:0 14px;background:#2563eb;color:#fff;border:0;font-size:13px;font-weight:800;white-space:nowrap;}
    .member-form-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:18px;}
    .member-form-inline input{flex:1 1 220px;min-width:0;}
    .support-stack{display:flex;flex-direction:column;gap:14px;padding:18px;}
    .support-list{display:flex;flex-direction:column;gap:10px;}
    .support-form-wrap{max-width:860px;margin:0 auto;width:100%;}
    .support-record-wrap{max-width:860px;margin:0 auto;width:100%;}
    .support-record-head{padding:14px 18px;border-bottom:1px solid var(--line);font-weight:800;text-align:center;}
    .support-item{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .support-record-grid{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;margin-top:10px;}
    .support-record-grid .label{color:var(--muted);font-size:12px;}
    .support-record-grid .value{color:var(--text);font-size:13px;line-height:1.7;word-break:break-word;}
    .support-record-result{margin-top:12px;padding:10px 12px;border-radius:12px;background:#f8fbff;border:1px dashed #d6e4ff;}
    .support-record-result .label{color:var(--muted);font-size:12px;margin-bottom:4px;}
    .support-order-hint{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.6;}
    .support-order-line{display:flex;align-items:center;gap:10px;width:100%;}
    .support-order-line #supportOrderId{flex:1 1 auto;min-width:0;}
    .support-order-none{height:44px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-weight:800;cursor:pointer;user-select:none;}
    .support-order-none input{width:auto!important;min-width:0!important;margin:0;accent-color:#2563eb;}
    .support-order-none.active{border-color:#2563eb;color:#2563eb;background:#eff6ff;}
    .support-form{display:grid;grid-template-columns:140px minmax(237px,1fr);gap:12px;align-items:center;padding:18px;}
    .support-form textarea,.support-form select{width:100%;padding:.75em .85em;border:1px solid #ddd;border-radius:12px;}
    .support-form textarea{min-height:120px;resize:vertical;}
    .field-label-required{display:inline-flex;align-items:center;gap:4px;font-weight:700;}
    .field-label-required .req-star{color:#ef4444;font-weight:800;}
    .support-group{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .support-group + .support-group{margin-top:12px;}
    .support-group-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px dashed var(--line);margin-bottom:10px;}
    .support-group-title{font-weight:800;}
    .support-group-meta{color:var(--muted);font-size:12px;}
    .support-submit-row{grid-column:1 / -1;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;}
    .support-quick-note{margin:0 18px 18px;padding:12px;border:1px dashed var(--line);border-radius:14px;background:var(--soft);color:var(--muted);}
    .refund-page{padding:16px;background:#f7f7f7;}
    .refund-topbar{padding:12px 16px;background:#eef5fb;border-bottom:1px solid #d9e7f2;color:#334155;font-weight:700;}
    .refund-topbar-link{margin-left:6px;color:#6b7280;font-size:12px;cursor:pointer;text-decoration:none;}
    .refund-topbar-link:hover{color:#2563eb;text-decoration:underline;}
    .member-notice-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
    .member-notice-tabs{display:flex;gap:8px;flex-wrap:wrap;}
    .member-notice-tab{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#111827;cursor:pointer;}
    .member-notice-tab.active{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border-color:transparent;}
    .member-notice-list{display:flex;flex-direction:column;gap:10px;}
    .member-notice-card{padding:14px;border:1px solid #dbe4f0;border-radius:14px;background:#fff;}
    .member-notice-card.unread{border-color:#bfdbfe;background:#f8fbff;}
    .member-notice-card.pinned{box-shadow:inset 3px 0 0 #2563eb;}
    .member-notice-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;}
    .member-notice-title{font-weight:800;font-size:15px;color:#111827;}
    .member-notice-summary{margin-top:6px;color:#475569;font-size:13px;line-height:1.7;}
    .member-notice-content{margin-top:8px;color:#334155;font-size:13px;line-height:1.85;white-space:pre-wrap;}
    .member-notice-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px dashed #dbe4f0;}
    .member-notice-tags{display:flex;gap:8px;flex-wrap:wrap;}
    .member-notice-tag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;border:1px solid #dbe4f0;background:#f8fbff;color:#334155;font-size:12px;font-weight:700;}
    .member-notice-actions{display:flex;gap:8px;flex-wrap:wrap;}
    .admin-notice-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:14px;align-items:start;}
    .admin-notice-list{display:flex;flex-direction:column;gap:10px;}
    .admin-notice-item{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;}
    .admin-notice-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .admin-notice-form .full{grid-column:1/-1;}
    .admin-notice-form textarea,.admin-notice-form select{width:100%;padding:.65em .8em;border:1px solid #ddd;border-radius:12px;background:#fff;font:inherit;}
    .marketing-card label.admin-settings-switch{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:0;padding-top:0;margin:0;font-weight:800;line-height:1.4;color:#111827;width:auto;max-width:100%;}
    .marketing-card label.admin-settings-switch input[type="checkbox"],.admin-settings-switch input[type="checkbox"]{width:16px!important;min-width:16px!important;height:16px!important;margin:0!important;padding:0!important;flex:0 0 16px;accent-color:#2563eb;}
    .admin-notice-settings-fields{gap:10px;}
    .admin-notice-toggle-field{padding:12px 14px;border:1px solid #e8edf5;border-radius:14px;background:#fbfdff;}
    .admin-notice-toggle-field .admin-settings-switch{width:max-content;}
    .admin-notice-section-title{grid-column:1/-1;margin:4px 0 0;font-size:13px;font-weight:900;color:#0f172a;}
    .admin-notice-rule-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .admin-notice-rule-item{min-width:0;padding:12px 14px;border:1px solid #e8edf5;border-radius:14px;background:#fff;display:grid;gap:6px;}
    .admin-notice-rule-item .admin-settings-switch{width:max-content;}
    .admin-notice-rule-item .admin-settings-hint{margin-top:0;padding-left:24px;}
    .admin-notice-history-tools{display:grid;gap:10px;margin:10px 0 12px;padding:12px;border:1px solid #e8edf5;border-radius:16px;background:#fbfdff;}
    .admin-notice-filter-grid{display:grid;grid-template-columns:minmax(220px,1.45fr) 132px 132px 132px 120px;gap:10px;align-items:end;}
    .admin-notice-filter-grid.secondary{grid-template-columns:132px 120px 132px auto;}
    .admin-notice-filter-field{display:grid;gap:5px;min-width:0;}
    .admin-notice-filter-field label{font-size:12px;font-weight:900;color:#475569;}
    .admin-notice-filter-field input,.admin-notice-filter-field select{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;color:#111827;font:inherit;font-size:13px;}
    .admin-notice-filter-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap;}
    .admin-notice-history-wrap{width:100%;overflow-x:auto;overflow-y:visible;padding-bottom:8px;scrollbar-gutter:stable;}
    .admin-notice-history-wrap::-webkit-scrollbar{height:10px;}
    .admin-notice-history-wrap::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;}
    .admin-notice-history-list{display:flex;flex-direction:column;gap:5px;width:max-content;min-width:1438px;}
    .admin-notice-history-row{display:grid;grid-template-columns:86px 74px 76px 46px 72px 72px 176px 112px 118px 146px 390px 54px;column-gap:2px;row-gap:0;align-items:center;padding:7px 6px;border:1px solid #e8edf5;border-radius:13px;background:#fff;min-width:1438px;width:1438px;box-sizing:border-box;}
    .admin-notice-history-row:not(.admin-notice-history-head){cursor:pointer;transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;}
    .admin-notice-history-row:not(.admin-notice-history-head):hover{border-color:#bfdbfe;background:#fbfdff;box-shadow:0 8px 20px rgba(15,23,42,.04);}
    .admin-notice-history-head{background:#f8fafc;color:#475569;font-size:12px;font-weight:900;border-radius:12px;position:sticky;top:0;z-index:1;}
    .admin-notice-history-head>div{min-width:0;overflow:visible;white-space:nowrap;padding:0 4px;}
    .admin-notice-history-cell{min-width:0;color:#111827;font-size:12px;line-height:1.45;padding:0 4px;}
    .admin-notice-history-cell.muted{color:#64748b;}
    .admin-notice-history-cell.nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .admin-notice-history-email{white-space:normal;overflow:visible;text-overflow:clip;word-break:break-all;color:#475569;}
    .admin-notice-history-order{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;}
    .admin-notice-history-time{display:grid;gap:2px;line-height:1.25;white-space:normal;}
    .admin-notice-history-time b{font-size:12px;color:#111827;white-space:nowrap;}
    .admin-notice-history-time span{font-size:11px;color:#64748b;white-space:nowrap;}
    .admin-notice-history-title{font-weight:800;white-space:normal;word-break:break-word;}
    .admin-notice-history-summary{color:#64748b;font-size:12px;white-space:normal;word-break:break-word;}
    .admin-notice-history-content{color:#334155;white-space:normal;word-break:break-word;overflow:visible;line-height:1.5;}
    .admin-notice-status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:46px;padding:3px 8px;border-radius:999px;border:1px solid #dbe4f0;background:#f8fafc;color:#334155;font-size:12px;font-weight:800;}
    .admin-notice-status-badge.unread{border-color:#bfdbfe;background:#eff6ff;color:#2563eb;}
    .admin-notice-detail-dialog .profile-dialog-card{width:min(820px,100%);}
    .admin-notice-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .admin-notice-detail-item{padding:10px 12px;border:1px solid #e8edf5;border-radius:12px;background:#fbfdff;min-width:0;}
    .admin-notice-detail-item.full{grid-column:1/-1;}
    .admin-notice-detail-label{font-size:12px;font-weight:900;color:#64748b;margin-bottom:5px;}
    .admin-notice-detail-value{font-size:13px;color:#111827;line-height:1.65;word-break:break-word;white-space:pre-wrap;}
    @media (max-width: 980px){ .admin-notice-layout{grid-template-columns:1fr;} .admin-notice-form{grid-template-columns:1fr;} .admin-notice-rule-grid{grid-template-columns:1fr;} .admin-notice-filter-grid,.admin-notice-filter-grid.secondary{grid-template-columns:1fr;} .admin-notice-history-list{min-width:1438px;} .admin-notice-history-row{min-width:1438px;width:1438px;grid-template-columns:86px 74px 76px 46px 72px 72px 176px 112px 118px 146px 390px 54px;column-gap:2px;row-gap:0;padding:7px 6px;} .admin-notice-detail-grid{grid-template-columns:1fr;} }
    .notice-dialog-mask{position:fixed;inset:0;background:rgba(0,0,0,.25);display:none;align-items:center;justify-content:center;padding:16px;z-index:70;}
    .notice-dialog-mask.show{display:flex;}
    .notice-dialog-card{width:min(720px,100%);background:#fff;border:1px solid #d9e1ea;box-shadow:0 18px 48px rgba(0,0,0,.18);}
    .notice-dialog-title{padding:14px 18px;border-bottom:1px solid #e5e7eb;font-size:15px;color:#444;font-weight:700;background:#f8f8f8;}
    .notice-dialog-body{padding:26px 28px 18px;color:#666;font-size:14px;line-height:2;}
    .notice-dialog-actions{display:flex;justify-content:flex-end;gap:12px;padding:0 28px 24px;}
    .notice-dialog-actions button{min-width:82px;border-radius:4px;}
    .notice-dialog-actions .ghost{border-color:#d1d5db;color:#444;}
    .pay-expired-mask{position:fixed;inset:0;background:rgba(15,23,42,.34);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:20px;z-index:88;}
    .pay-expired-mask.show{display:flex;}
    .pay-expired-card{width:min(460px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 24px 64px rgba(15,23,42,.20);overflow:hidden;}
    .pay-expired-head{display:flex;align-items:center;gap:12px;padding:22px 24px 8px;}
    .pay-expired-icon{width:40px;height:40px;border-radius:13px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:19px;font-weight:800;}
    .pay-expired-title{font-size:20px;line-height:1.3;font-weight:800;color:#0f172a;}
    .pay-expired-sub{margin-top:6px;color:#64748b;font-size:13px;line-height:1.7;}
    .pay-expired-sub:empty{display:none;}
    .pay-expired-body{padding:10px 24px 20px 76px;color:#334155;font-size:15px;line-height:1.8;}
    .pay-expired-body strong{font-weight:800;color:#0f172a;}
    .pay-requote-message{margin:0 0 10px;color:#334155;font-size:14px;font-weight:700;}
    .pay-requote-progress{position:relative;height:18px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin:0 0 14px;}
    .pay-requote-progress-bar{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#16a34a);transition:width .25s ease;}
    .pay-requote-progress-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#0f172a;line-height:18px;text-shadow:0 1px 0 rgba(255,255,255,.65);}
        .pay-requote-error{color:#b91c1c;font-weight:800;}
    .pay-requote-success{color:#047857;font-weight:800;}
    .order-pay-status{max-width:520px;}
    .order-pay-status-message{font-size:13px;line-height:1.6;color:#64748b;}
    .order-pay-progress{position:relative;height:16px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin-top:6px;max-width:360px;}
    .order-pay-progress-bar{height:100%;width:5%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#16a34a);transition:width .25s ease;}
    .order-pay-progress-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;color:#0f172a;line-height:16px;text-shadow:0 1px 0 rgba(255,255,255,.65);}
    .pay-expired-actions{display:flex;justify-content:flex-end;gap:10px;padding:0 24px 24px;}
    .pay-expired-actions .ghost{min-width:92px;padding:.7em 1.1em;border-radius:14px;border:1px solid #d7dfeb;background:#fff;color:#334155;font-weight:700;}
    .pay-expired-actions .primary{min-width:110px;padding:.7em 1.1em;border-radius:14px;border:0;background:#111827;color:#fff;font-weight:800;}
    @media (max-width: 640px){
      .pay-expired-card{border-radius:20px;}
      .pay-expired-head{padding:18px 18px 10px;}
      .pay-expired-body{padding:0 18px 18px 18px;}
      .pay-expired-actions{padding:0 18px 18px;}
    }
    .refund-balance-hero{display:flex;align-items:center;gap:12px;padding:18px 16px 8px;font-size:16px;}
    .refund-balance-hero .money{font-size:26px;font-weight:800;color:#ef4444;}
    .refund-panel{margin:0 16px 16px;border:1px solid #d8e7f3;background:#fff;}
    .refund-panel-title{padding:10px 14px;background:#eef8ff;border-bottom:1px solid #d8e7f3;font-weight:700;color:#2563eb;}
    .refund-summary-table{width:100%;border-collapse:collapse;}
    .refund-summary-table th,.refund-summary-table td{border-right:1px solid #e5edf5;border-bottom:1px solid #e5edf5;padding:10px 8px;text-align:center;}
    .refund-summary-table th:last-child,.refund-summary-table td:last-child{border-right:0;}
    .refund-tip{margin:0 16px 16px;padding:14px 16px;background:#fff8db;border:1px solid #f0e0a6;color:#ef4444;font-weight:700;}
    .refund-form-wrap{padding:16px;}
    .refund-form-grid{display:grid;grid-template-columns:160px minmax(260px,420px) 1fr;gap:14px 12px;align-items:center;}
    .refund-form-grid label{text-align:right;color:#666;font-weight:700;}
    .refund-form-grid .req{color:#ef4444;white-space:nowrap;}
    .refund-form-grid .refund-error{display:inline-block;margin-left:6px;font-size:12px;font-weight:700;color:#ef4444;}
    .refund-form-grid .hint{color:#ef4444;font-size:12px;}
    .refund-form-grid textarea{width:100%;min-height:150px;padding:.75em .85em;border:1px solid #ddd;border-radius:4px;resize:vertical;}
    .refund-submit-row{display:flex;justify-content:center;padding-top:12px;}
    .refund-submit-row button{min-width:120px;background:#7bb443;border-radius:6px;}
    .refund-history-empty{padding:18px;color:#64748b;}
    .refund-history-table{width:100%;border-collapse:collapse;}
    .refund-history-table th,.refund-history-table td{padding:10px 8px;border-bottom:1px solid #e5edf5;text-align:center;}
    .refund-history-table th{background:#f8fbff;}
    .change-pwd-panel{max-width:520px;}
    .change-pwd-fields{display:flex;flex-direction:column;gap:12px;max-width:420px;}
    .change-pwd-fields input{width:100%;}
    @media (max-width: 1080px){
      .member-shell{grid-template-columns:1fr;}
      .member-sidebar{position:static;}
      .member-overview-top{grid-template-columns:1fr;}
      .member-side-actions{display:flex;flex-direction:column;align-items:flex-start;}
      .member-side-action-buttons{justify-content:flex-start;flex-wrap:wrap;}
      .member-side-stat{grid-template-columns:auto auto;}
      .member-overview-side{border-left:0;border-top:1px solid #eee;}
      .member-balance-panel{grid-template-columns:1fr;}
      .member-balance-symbol{display:none;}
      .member-summary-grid,.member-grid-2,.member-grid-3,.member-benefit-grid{grid-template-columns:1fr;}
      .member-compare-wrap{overflow:auto;}
      .member-compare-table{min-width:640px;}
      .member-verify-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:none;}
      .refund-form-grid{grid-template-columns:1fr;}
      .refund-form-grid label{text-align:left;}
      header{padding:16px 14px;gap:10px;min-height:82px;}
      .brand{gap:12px;margin-right:18px;}
      .brand-logo{width:min(var(--site-brand-logo-width,72px),58px);height:min(var(--site-brand-logo-height,72px),58px);border-radius:14px;padding:0;}
      .brand-text{font-size:20px;line-height:1.18;padding-bottom:2px;}
      .announcement-bar{top:82px;}
    }
.admin-membership-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:14px;}
.admin-membership-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fbfdff;}
.admin-membership-card-head{font-weight:800;font-size:15px;color:#0f172a;margin-bottom:10px;}
@media (max-width: 1100px){.admin-membership-grid{grid-template-columns:1fr;}}


    .login-required-card{display:grid;gap:12px;justify-items:start;padding:22px 20px;border:1px solid #dbeafe;border-radius:20px;background:linear-gradient(180deg,#ffffff,#f8fbff);color:#334155;box-shadow:0 8px 22px rgba(15,23,42,.06);}
    .login-required-icon{width:46px;height:46px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;font-size:24px;}
    .login-required-title{font-size:18px;font-weight:900;color:#0f172a;line-height:1.35;}
    .login-required-sub{font-size:14px;line-height:1.8;color:#64748b;}
    .login-required-actions{display:flex;gap:10px;flex-wrap:wrap;width:100%;}
    .login-required-actions button{min-width:128px;}

    /* Customer mobile UI: bottom navigation + touch-friendly checkout flow */
    .mobile-guide{display:none;}
    @media (max-width: 780px){
      :root{--mobile-nav-h:74px;}
      html{-webkit-text-size-adjust:100%;scroll-padding-top:76px;}
      body{font-size:15px;line-height:1.6;padding-bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom,0px));background:#f6f8fb;}
      header{position:sticky;top:0;z-index:72;min-height:64px;padding:8px 12px;gap:8px;flex-wrap:nowrap;border-bottom:1px solid rgba(226,232,240,.9);box-shadow:0 6px 18px rgba(15,23,42,.05);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);}
      header .brand{min-width:0;flex:1 1 auto;margin-right:0;gap:10px;}
      header .brand-logo{width:min(var(--site-brand-logo-width,72px),42px);height:min(var(--site-brand-logo-height,72px),42px);border-radius:13px;flex:0 0 auto;}
      header .brand-text{font-size:17px;line-height:1.2;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw;}
      header>.right{margin-left:auto;gap:6px;flex:0 0 auto;flex-wrap:nowrap;}
      #btnLogin{min-height:40px;padding:.56em .78em;border-radius:12px;font-size:13px;font-weight:800;white-space:nowrap;}
      .top-notice-trigger{width:40px;height:40px;min-height:40px;border-radius:13px;}
      .top-notice-dropdown{position:fixed;top:64px;left:10px;right:10px;width:auto;max-width:none;}
      .top-notice-panel{max-height:min(70vh,520px);overflow:auto;}
      .account-trigger{min-height:40px;padding:5px 7px 5px 5px;border-radius:14px;gap:6px;}
      .account-avatar{width:30px;height:30px;font-size:12px;}
      .account-trigger-text{display:none;}
      .account-trigger-arrow{display:none;}
      .account-dropdown{position:fixed;top:64px;left:10px;right:10px;width:auto;max-width:none;}
      .account-dropdown-card{border-radius:18px;}
      .account-dropdown-actions{grid-template-columns:1fr 1fr;gap:8px;}
      .account-dropdown-btn{min-height:42px;border-radius:12px;}
      .nav{position:fixed;left:0;right:0;bottom:0;z-index:75;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:0;padding:6px max(6px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-right,0px));background:rgba(255,255,255,.98);border-top:1px solid #e5e7eb;box-shadow:0 -10px 26px rgba(15,23,42,.10);backdrop-filter:blur(12px);}
      .nav a{--nav-icon:none;--nav-icon-active:var(--nav-icon);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:56px;padding:4px 1px;border:0;border-radius:13px;background:transparent;color:#64748b;font-size:10px;line-height:1.15;font-weight:800;text-align:center;white-space:nowrap;letter-spacing:.1px;}
      .nav a::before{content:"";display:block;width:24px;height:24px;border-radius:9px;background-color:#f3f6fb;background-image:var(--nav-icon);background-repeat:no-repeat;background-position:center;background-size:18px 18px;box-shadow:inset 0 0 0 1px rgba(148,163,184,.16),0 4px 10px rgba(15,23,42,.06);}
      .nav a.active{background:#fff1f2;color:#e11d48;box-shadow:inset 0 0 0 1px #fecdd3;}
      .nav a.active::before{background-color:#ffe8ef;background-image:var(--nav-icon-active);box-shadow:inset 0 0 0 1px rgba(244,63,94,.16),0 6px 14px rgba(225,29,72,.10);}
      .nav a[data-route="landing"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5 12 4l8.5 6.5'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M9.5 20v-5.5h5V20'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5 12 4l8.5 6.5'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M9.5 20v-5.5h5V20'/%3E%3C/svg%3E");}
      .nav a[data-route="home"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='5.5'/%3E%3Cpath d='m16 16 3.5 3.5'/%3E%3Cpath d='M9 11h4'/%3E%3Cpath d='M11 9v4'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='5.5'/%3E%3Cpath d='m16 16 3.5 3.5'/%3E%3Cpath d='M9 11h4'/%3E%3Cpath d='M11 9v4'/%3E%3C/svg%3E");}
      .nav a[data-route="cart"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M4 5h2l1.3 8.2a1 1 0 0 0 1 .8h8.9a1 1 0 0 0 1-.76L20 8H7'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M4 5h2l1.3 8.2a1 1 0 0 0 1 .8h8.9a1 1 0 0 0 1-.76L20 8H7'/%3E%3C/svg%3E");}
      .nav a[data-route="orders"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 5.5h9l3 3V18a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2v-10.5l3-2z'/%3E%3Cpath d='M7.5 5.5v4h9v-4'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 5.5h9l3 3V18a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2v-10.5l3-2z'/%3E%3Cpath d='M7.5 5.5v4h9v-4'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");}
      .nav a[data-route="membership"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19a6.7 6.7 0 0 1 13 0'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19a6.7 6.7 0 0 1 13 0'/%3E%3C/svg%3E");}
      .nav a[data-route="help"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M9.3 9a2.7 2.7 0 1 1 4.4 2.1c-.86.68-1.45 1.17-1.45 2.4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M9.3 9a2.7 2.7 0 1 1 4.4 2.1c-.86.68-1.45 1.17-1.45 2.4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");}
      .nav a[data-route="admin"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355698a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='4.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13' y='4.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='4.5' y='13' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13' y='13' width='6.5' height='6.5' rx='1.5'/%3E%3C/svg%3E");--nav-icon-active:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='4.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13' y='4.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='4.5' y='13' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13' y='13' width='6.5' height='6.5' rx='1.5'/%3E%3C/svg%3E");}
      .nav-label-mobile{display:none;}
      .nav-label-full{display:inline;}
      .nav a[data-route="admin"] .nav-label-full{display:none;}
      .nav a[data-route="admin"] .nav-label-mobile{display:inline;}
      #cartBadge,#quoteBadge{position:absolute;top:2px;right:calc(50% - 22px);width:20px;height:20px;margin:0!important;padding:0!important;font-size:9px!important;}
      .global-notice-bar{margin:0;padding:9px 12px;border-left:0;border-right:0;border-radius:0;font-size:13px;}
      .announcement-bar{top:64px;}
      .announcement-bar-inner{padding:8px 12px;gap:6px;font-size:12px;}
      main{padding:10px 10px 0;}
      .grid{display:block;}
      .card{border-radius:18px;padding:14px;margin:0 0 10px;box-shadow:0 1px 2px rgba(15,23,42,.04);}
      h2{font-size:17px;line-height:1.35;}
      .muted.small,.small{font-size:12px;line-height:1.65;}
      input,textarea,select{font-size:16px;min-height:46px;border-radius:14px;}
      textarea{line-height:1.55;}
      button,.btn,.ghost,.secondary,.danger{min-height:44px;border-radius:14px;font-weight:800;}
      .mobile-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 12px;}
      .mobile-guide-step{display:grid;gap:4px;justify-items:center;text-align:center;padding:10px 6px;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);color:#334155;font-size:12px;line-height:1.35;}
      .mobile-guide-step b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#e11d48;color:#fff;font-size:13px;line-height:1;}
      .quote-single-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important;}
      .batch-submit-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important;}
      .quote-single-actions,.quote-batch-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;width:100%;}
      /* 手机端批量报价：工具按钮一行，主按钮单独占满一行，避免“批量报价”被挤成两行。 */
      .quote-batch-actions{grid-template-columns:repeat(3,minmax(0,1fr));}
      #btnBatchFetch{grid-column:1 / -1;white-space:nowrap;min-height:50px;font-size:16px;}
      #etsyUrl,.quote-url-input,#batchUrls,.quote-batch-input{width:100%;}
      #btnFetch,.quote-tool-btn{width:100%;font-size:15px;}
      #homeStatusBar{width:100%;justify-content:flex-start!important;}
      /* 手机端单品报价选择栏：全选 / 数量 / 删除 与批量报价任务里的选择栏保持一致。 */
      #singleActions.single-actions-toolbar{justify-content:flex-end!important;align-items:center!important;gap:0!important;margin-top:0!important;margin-bottom:8px!important;width:100%!important;}
      #singleActions .single-actions-toolbar-inner{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:8px!important;width:auto!important;max-width:100%!important;}
      #singleActions .single-actions-toolbar-inner>*{flex:0 0 auto!important;}
      #singleActions .cart-ck.cart-ck-inline{width:auto!important;min-height:0!important;align-items:center!important;padding-top:0!important;gap:6px!important;white-space:nowrap!important;margin:0!important;}
      #singleActions .cart-ck.cart-ck-inline .muted.small{white-space:nowrap!important;}
      #singleSelectRatio{min-width:auto!important;text-align:left!important;font-variant-numeric:tabular-nums!important;}
      #singleActions #btnSingleDeleteSelected{width:auto!important;min-width:0!important;padding:.65em 1em!important;border-radius:14px!important;line-height:1.2!important;}
      #batchActions{justify-content:space-between!important;align-items:stretch!important;gap:8px!important;}
      #batchActions>.row{width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;}
      #batchActions button{width:100%;}
      .item{gap:10px;padding:12px;border-radius:16px;background:#fff;border:1px solid #edf2f7;box-shadow:0 1px 2px rgba(15,23,42,.03);align-items:start;}
      .item:not(:has(> .cart-ck)){grid-template-columns:72px minmax(0,1fr);}
      .item:has(> .cart-ck){grid-template-columns:28px 72px minmax(0,1fr);}
      .item.cart-item{grid-template-columns:28px 72px minmax(0,1fr);}
      .item .thumb,.cart-item .thumb{width:72px;height:72px;border-radius:14px;object-fit:cover;}
      .cart-ck{width:28px;min-height:72px;padding-top:2px;align-items:flex-start;}
      .cart-ck input{width:22px;height:22px;}
      .ck-circle{width:22px;height:22px;border-width:2px;}
      .cart-ck input:checked + .ck-circle::after{width:7px;height:12px;}
      .cart-ck.cart-ck-inline{min-height:0;width:auto;align-items:center;padding-top:0;}
      .item>div{min-width:0;}
      .item a{word-break:break-all;}
      .item .row{gap:8px;}
      .item .row button,.item .row .ghost,.item .row .danger{flex:1 1 140px;}
      .item>.muted.small:last-child{grid-column:1/-1;justify-self:start;padding:2px 8px;border-radius:999px;background:#f8fafc;color:#94a3b8;}
      .item:has(> .cart-ck)>.muted.small:last-child{grid-column:2/-1;}
      @supports not selector(:has(*)){
        .item{grid-template-columns:72px minmax(0,1fr) auto;}
        .item.cart-item{grid-template-columns:28px 72px minmax(0,1fr);}
      }
      #cartCheckoutList{display:grid;gap:10px;}
      #cartCheckoutList>div{min-width:0;}
      #cartCheckoutList [style*="justify-content:flex-end"]{justify-content:space-between!important;}
      .cart-bar{position:sticky;bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom,0px) + 8px);z-index:55;margin:12px -14px -14px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-left:0;border-right:0;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -10px 28px rgba(15,23,42,.12);background:rgba(255,255,255,.98);backdrop-filter:blur(12px);}
      .cart-bar .left{width:100%;justify-content:space-between;}
      .cart-bar .right{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-left:0;align-items:center;}
      .cart-amount-box{min-width:0;align-items:flex-start;}
      .cart-amount-main{justify-content:flex-start;text-align:left;}
      .cart-amount-main b{font-size:22px;}
      .cart-discount-toggle{justify-content:flex-start;text-align:left;}
      #btnCreateOrder{min-width:118px;height:48px;border-radius:16px;font-size:15px;padding:.7em .9em;}
      .cart-summary-panel{grid-column:1/-1;margin-top:6px;}
      .cart-empty-state{padding:26px 16px;border-radius:18px;}
      .order-record-toolbar{display:grid;grid-template-columns:1fr;gap:10px;margin:8px 0 12px;}
      .order-record-toolbar #orderTabs{min-width:0;flex:none;}
      #orderTabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px!important;}
      #orderTabs button{width:100%;min-height:38px;padding:.45em .2em;font-size:11px;line-height:1.1;white-space:nowrap;}
      .order-tab-badge{top:-6px;right:-4px;width:20px;height:20px;padding:0;font-size:9px;}
      .order-record-search{width:100%;min-width:0;flex:none;margin-left:0;}
      .order-record-search-box{min-width:0;}
      .order-record-search-submit{min-width:72px;padding:0 12px;}
      .order-record-search-tip{text-align:left;}
      #ordersList{display:grid;gap:10px;}
      #ordersList>div{border:1px solid #edf2f7!important;border-radius:16px;padding:12px!important;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.03);}
      #ordersList>div>.row:first-child{display:grid!important;grid-template-columns:1fr;gap:6px!important;}
      .order-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important;}
      .order-actions button,.order-pay-wrap,.order-pay-btn{width:100%;}
      .order-item-action-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important;}
      .order-item-action-status{white-space:normal!important;}
      .order-item-action-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%!important;}
      .order-item-action-buttons > button{width:100%!important;min-width:0!important;}
      .order-pay-wrap{display:grid!important;grid-template-columns:1fr;gap:8px!important;align-items:stretch!important;}
      .order-pay-meta{align-items:flex-start!important;text-align:left!important;}
      .order-pay-amount{font-size:22px!important;}
      .order-delivery-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important;width:100%;}
      .help-center-grid{grid-template-columns:1fr;}
      .help-center-card{padding:16px;border-radius:18px;}
      .announcement-page-actions,.help-article-header{display:grid!important;grid-template-columns:1fr;gap:10px!important;align-items:start!important;}
      .member-shell{grid-template-columns:1fr;gap:10px;}
      .member-sidebar{position:static;border-radius:18px;overflow:hidden;}
      .member-sidebar-profile{padding:18px 14px;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;text-align:left;align-items:center;}
      .member-avatar{width:64px;height:64px;font-size:28px;border-width:3px;grid-row:1 / span 3;}
      .member-profile-line{margin-top:2px;font-size:12px;}
      .member-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;background:#fff;}
      .member-menu-btn{border:1px solid #e2e8f0;border-radius:14px;padding:10px 8px;min-height:42px;font-size:13px;}
      .member-menu-btn.active{border-color:#fecdd3;background:#fff1f2;}
      .member-section{border-radius:18px;}
      .member-overview-main,.member-overview-side,.member-grid-2,.member-grid-3,.member-benefit-grid,.member-note-list,.member-form-inline{padding:14px;}
      .member-grid-2>*,.member-grid-3>*,.member-benefit-grid>*{min-width:0;}
      .referral-link-box{grid-template-columns:1fr;align-items:stretch;gap:8px;padding:12px;}
      .referral-link-label{white-space:normal;}
      .referral-copy-btn{width:100%;min-height:42px;}
      .member-verify-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:none;}
      .member-verify-item{padding:10px 4px;border-radius:14px;gap:6px;min-width:0;}
      .member-verify-icon{width:36px;height:36px;border-radius:10px;font-size:18px;}
      .member-verify-name{font-size:11px;line-height:1.25;}
      .member-verify-value{font-size:11px;line-height:1.25;}
      .member-growth-stats{align-items:flex-start;justify-content:flex-start;gap:4px;flex-direction:column;}
      .member-growth-meta,.member-growth-percent{white-space:normal;}
      .member-growth-bar-track{width:100%;}
      .member-balance-panel{margin:14px;padding:14px;gap:10px;}
      .member-summary-grid{gap:10px;padding:0 14px 14px;}
      #view-membership .member-growth-card{width:auto!important;margin:14px!important;padding:14px!important;border-radius:16px!important;}
      .home-search-single-divider{margin:14px 0 12px!important;}
      .home-single-title-row{margin:8px 0 6px!important;}
      #homeStatusBar:empty{display:none!important;}
      .member-summary-body{padding:14px;min-height:0;}
      .member-side-action-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;}
      .member-side-action-buttons button{width:100%;min-height:38px;}
      .coupon-toolbar,.coupon-redeem{display:grid!important;grid-template-columns:1fr;align-items:stretch;width:100%;}
      .coupon-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
      .coupon-tab{min-width:0;width:100%;}
      .coupon-grid{grid-template-columns:1fr!important;padding:14px;}
      .refund-balance-hero{padding:14px 14px 4px;display:grid;grid-template-columns:1fr;gap:4px;}
      .refund-panel,.refund-tip{margin-left:14px;margin-right:14px;}
      .refund-summary-table,.refund-history-table{min-width:560px;}
      .refund-panel{overflow:auto;}
      .refund-form-wrap{padding:14px;}
      .admin-shell{grid-template-columns:1fr;}
      .admin-sidebar{position:static;border-radius:18px;}
      .admin-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;background:#fff;}
      .admin-nav-btn{border:1px solid #e2e8f0;border-radius:14px;padding:10px 8px;min-height:42px;font-size:13px;}
      .admin-nav-btn.active{border-color:#fecdd3;background:#fff1f2;}
      .admin-subnav{grid-column:1/-1;border:1px solid #eef2f7;border-radius:14px;overflow:hidden;padding:4px;}
      .admin-subnav-btn{padding:10px 12px;border-radius:10px;}
      .admin-detail-actions,.admin-actions,.admin-order-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important;width:100%;}
      .admin-detail-actions button,.admin-actions button,.admin-order-actions button{width:100%;}
      .admin-grid-2,.admin-main,.admin-config-grid,.admin-settings-fields,.admin-form-grid{grid-template-columns:1fr!important;}
      .admin-table-wrap,.member-compare-wrap{overflow:auto;-webkit-overflow-scrolling:touch;}
      .admin-table{min-width:720px;}
      .modal-mask,.auth-modal,.profile-dialog-mask{padding:10px;align-items:flex-start;}
      .modal-card,.auth-shell,.profile-dialog-card{width:100%;max-height:calc(100dvh - 20px);margin:10px auto;border-radius:22px;}
      .auth-shell{display:flex;overflow:hidden;}
      .auth-panel{padding:22px 18px;max-height:calc(100dvh - 20px);overflow:auto;-webkit-overflow-scrolling:touch;}
      .auth-actions{position:sticky;bottom:0;z-index:3;margin-left:-18px;margin-right:-18px;margin-bottom:-22px;padding:10px 18px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.98);border-top:1px solid #eef2f7;box-shadow:0 -8px 18px rgba(15,23,42,.06);}
      .auth-msg{position:sticky;bottom:74px;background:#fff;z-index:2;padding:4px 0;}
      .auth-panel-title{font-size:23px;}
      .login-required-card{align-items:stretch;justify-items:stretch;padding:22px 16px;border-radius:18px;text-align:left;}
      .login-required-icon{justify-self:start;}
      .login-required-actions{display:grid;grid-template-columns:1fr;gap:10px;}
      .login-required-actions button{width:100%;min-height:48px;}
      .profile-dialog-head{padding:18px 18px 10px;}
      .profile-dialog-body{padding:0 18px 18px;}
    }
    @media (max-width: 380px){
      .nav a{font-size:10px;}
      .nav a::before{font-size:19px;}
      .mobile-guide{gap:6px;}
      .mobile-guide-step{font-size:11px;padding:8px 4px;}
      #orderTabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px!important;}
      .order-item-action-buttons{gap:6px!important;}
      .order-item-action-buttons > button{font-size:12px!important;padding:0 8px!important;}
      #orderTabs button{font-size:10px;padding:.4em .1em;}
      .item:not(:has(> .cart-ck)){grid-template-columns:64px minmax(0,1fr);}
      .item:has(> .cart-ck),.item.cart-item{grid-template-columns:26px 64px minmax(0,1fr);}
      .item .thumb,.cart-item .thumb{width:64px;height:64px;}
    }


    /* v3 mobile responsive rescue: quote cards, personalization blocks, and admin pages */
    @media (max-width: 780px){
      *,*::before,*::after{box-sizing:border-box;}
      img,video,canvas,svg{max-width:100%;}
      .meta,.batch-row-main,#singleResult,#batchResults,#cartList,#ordersList,.admin-content,.admin-workspace,.admin-section,.admin-list-page,.admin-detail-page{min-width:0;max-width:100%;}
      .meta,.batch-row-main{overflow-wrap:anywhere;word-break:break-word;}
      .meta a,.batch-row-link,.item a[href],.admin-table a{overflow-wrap:anywhere;word-break:break-all;}

      /* Quoted product cards: override inline 4-column desktop grids on phones. */
      #singleResult .item,
      #batchResults .item{
        display:grid!important;
        grid-template-columns:28px 72px minmax(0,1fr)!important;
        gap:10px!important;
        align-items:start!important;
        width:100%!important;
        max-width:100%!important;
        overflow:hidden!important;
      }
      #singleResult .item>.cart-ck,
      #batchResults .item>.cart-ck{grid-column:1!important;grid-row:1!important;width:28px!important;min-height:72px!important;}
      #singleResult .item>img.thumb,
      #batchResults .item>img.thumb,
      #singleResult .item>.thumb,
      #batchResults .item>.thumb{grid-column:2!important;grid-row:1!important;width:72px!important;height:72px!important;}
      #singleResult .item>.meta,
      #batchResults .item>.meta{grid-column:3!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;}
      #singleResult .item>.meta>div,
      #batchResults .item>.meta>div{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
      #singleResult .item>div[style*="flex-direction:column"],
      #singleResult .item>div[style*="align-items:flex-end"],
      #batchResults .item>[data-role="batch-item-actions"]{
        grid-column:1 / -1!important;
        grid-row:auto!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        justify-items:stretch!important;
        align-items:stretch!important;
        margin-top:0!important;
      }
      #singleResult [data-role="fetch-item-actions"],
      #batchResults [data-role="batch-item-actions"]{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
        max-width:100%!important;
        justify-content:stretch!important;
        align-items:stretch!important;
      }
      #singleResult [data-role="fetch-item-actions"] button,
      #batchResults [data-role="batch-item-actions"] button{
        width:100%!important;
        min-width:0!important;
        justify-content:center!important;
      }

      /* Quote summary: prevent seller / product id / price / countdown from squeezing into one line. */
      .quote-summary-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:6px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        align-items:start!important;
      }
      .quote-summary-cell,
      .quote-summary-status{
        display:flex!important;
        align-items:flex-start!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        line-height:1.65!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
      }
      .quote-summary-cell>.muted{flex:0 0 auto!important;white-space:nowrap!important;}
      .quote-summary-cell>span:last-child,
      .quote-summary-cell>a,
      .quote-summary-cell span a{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
      .quote-summary-toggle{width:100%!important;min-height:38px!important;margin-top:2px!important;}
      [data-role="inline-quote-detail"]{max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;font-size:12px!important;}

      /* Personalization / abnormal warning blocks: remove desktop negative widths and absolute button layout. */
      #singleResult .batch-item-warning,
      #batchResults .batch-item-warning,
      #cartList .batch-item-warning,
      .item .batch-item-warning,
      .admin-order-item-content .batch-item-warning,
      .admin-order-item-card .batch-item-warning{
        grid-column:1 / -1!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:10px 0 0!important;
        padding:10px 12px!important;
        padding-right:12px!important;
        min-height:0!important;
        justify-self:stretch!important;
        align-self:stretch!important;
        overflow:visible!important;
        border-radius:14px!important;
      }
      .batch-item-warning [style*="display:flex"]{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
      }
      .batch-item-warning span{white-space:normal!important;min-width:0!important;}
      .admin-order-item-content .batch-item-warning,
      .admin-order-item-card .batch-item-warning{
        display:block!important;
        box-sizing:border-box!important;
      }
      .admin-order-item-content .batch-item-warning b,
      .admin-order-item-content .batch-item-warning div,
      .admin-order-item-content .batch-item-warning span,
      .admin-order-item-card .batch-item-warning b,
      .admin-order-item-card .batch-item-warning div,
      .admin-order-item-card .batch-item-warning span{
        white-space:normal!important;
        word-break:break-word!important;
        overflow-wrap:anywhere!important;
      }
      .batch-item-warning input[data-personalization-input="1"]{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        height:42px!important;
        line-height:42px!important;
        flex:1 1 auto!important;
      }
      .batch-item-warning button[data-personalization-confirm],
      .batch-item-warning .batch-inline-delete,
      .batch-inline-delete{
        position:static!important;
        right:auto!important;
        bottom:auto!important;
        width:100%!important;
        min-width:0!important;
        height:40px!important;
        line-height:40px!important;
        margin-top:8px!important;
        padding:0 12px!important;
      }

      /* Batch status rows generated with inline grid styles. */
      #batchResults [data-batch-row="1"]:not(.item){
        grid-template-columns:28px minmax(0,1fr)!important;
        gap:10px!important;
        width:100%!important;
        max-width:100%!important;
        overflow:hidden!important;
      }
      #batchResults [data-batch-row="1"]:not(.item) .row{
        display:grid!important;
        grid-template-columns:1fr!important;
        justify-content:stretch!important;
        width:100%!important;
      }
      #batchResults [data-batch-row="1"]:not(.item) .row button{width:100%!important;}

      /* Admin: make every management block fit a phone, while keeping tables scrollable. */
      .admin-shell,.admin-content,.admin-workspace,.admin-section,.admin-subcard,.admin-list-item,.admin-detail-head,.admin-user-head{min-width:0!important;max-width:100%!important;}
      .admin-section{padding:12px!important;overflow:hidden!important;border-radius:18px!important;}
      .admin-toolbar,
      .admin-section-header,
      .admin-detail-head,
      .admin-user-head,
      .admin-settings-toolbar,
      .admin-announcement-item-head,
      .admin-delivery-item-top,
      .admin-activity-top{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        align-items:stretch!important;
        justify-items:stretch!important;
      }
      .admin-section-heading,.admin-section-heading-title,.admin-detail-title{min-width:0!important;line-height:1.35!important;}
      .admin-detail-actions,.admin-actions,.admin-order-actions,.admin-delivery-actions,.admin-announcement-actions,.admin-overview-actions{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
        justify-content:stretch!important;
      }
      .admin-detail-actions button,.admin-actions button,.admin-order-actions button,.admin-delivery-actions button,.admin-announcement-actions button,.admin-overview-actions button,
      .admin-toolbar button,.admin-section-header button{width:100%!important;min-width:0!important;}
      .admin-searchbar,
      .admin-searchbar.simple,
      .admin-config-grid,
      .admin-form-grid,
      .admin-settings-fields,
      .admin-grid-2,
      .admin-main,
      .admin-overview-grid,
      .admin-overview-alerts,
      .admin-stat-grid,
      .admin-order-item-grid,
      .admin-order-finance-grid,
      .admin-delivery-grid,
      .admin-announcement-layout,
      .admin-notice-layout,
      .admin-membership-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        grid-template-areas:none!important;
        gap:10px!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
      }
      .admin-col-3,.admin-col-4,.admin-col-5,.admin-col-6,.admin-col-8,.admin-col-12{grid-column:1 / -1!important;}
      .admin-searchbar input,.admin-searchbar select,.admin-searchbar button,
      .admin-form-grid input,.admin-form-grid select,.admin-form-grid textarea,.admin-form-grid button,
      .admin-config-grid input,.admin-config-grid select,.admin-config-grid textarea,.admin-config-grid button{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
      }
      .admin-tabs,.admin-pills,.admin-sidebar-pills{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:8px!important;
        width:100%!important;
      }
      .admin-tab,.admin-pills .pill,.admin-sidebar-pills .pill{width:100%!important;text-align:center!important;justify-content:center!important;}
      .admin-table-wrap,
      .admin-recent-tx-wrap,
      .admin-user-wallet-wrap,
      .member-compare-wrap{
        width:100%!important;
        max-width:100%!important;
        overflow-x:auto!important;
        overflow-y:visible!important;
        -webkit-overflow-scrolling:touch!important;
      }
      .admin-table-wrap::before,
      .member-compare-wrap::before{
        content:"左右滑动查看更多";
        display:block;
        position:sticky;
        left:0;
        z-index:2;
        padding:7px 10px;
        background:#f8fafc;
        color:#64748b;
        font-size:12px;
        border-bottom:1px solid #e5e7eb;
      }
      .admin-table{min-width:720px!important;}
      .admin-table th,.admin-table td{white-space:nowrap!important;}
      .admin-order-item-card{padding:12px!important;overflow:hidden!important;}
      .admin-order-item-main{
        display:grid!important;
        grid-template-columns:72px minmax(0,1fr)!important;
        gap:10px!important;
        width:100%!important;
      }
      .admin-order-item-thumb{width:72px!important;height:72px!important;}
      .admin-order-item-title{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.45!important;}
      .admin-order-item-side{
        grid-column:1 / -1!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        align-items:stretch!important;
        justify-items:stretch!important;
        min-width:0!important;
        width:100%!important;
      }
      .admin-order-item-side button{width:100%!important;}
      .admin-overview-meta{grid-template-columns:1fr!important;gap:4px!important;}
      .admin-right{position:static!important;}
      .admin-notice-form,.admin-announcement-form{min-width:0!important;max-width:100%!important;}
    }
    @media (max-width: 420px){
      .admin-nav,.member-menu{grid-template-columns:1fr!important;}
      .admin-tabs,.admin-pills,.admin-sidebar-pills,.coupon-tabs{grid-template-columns:1fr!important;}
      #singleResult .item,#batchResults .item{grid-template-columns:26px 64px minmax(0,1fr)!important;}
      #singleResult .item>img.thumb,#batchResults .item>img.thumb,#singleResult .item>.thumb,#batchResults .item>.thumb{width:64px!important;height:64px!important;}
    }


    /* v4 mobile hard-fix: quote cards + admin tables/cards. This only changes display, not backend logic. */
    @media (max-width: 780px){
      html,body{max-width:100%;overflow-x:hidden;}
      main,.card,.panel,#home,#cart,#orders,#membership,#help,#admin,#productResult,#batchResults{max-width:100%!important;min-width:0!important;}

      /* Single quote result lives in #productResult, not #singleResult. Force the fourth action column onto a new full-width row. */
      #productResult .single-record,
      #productResult .single-record > div,
      #productResult .item[data-product-json],
      #batchResults .item[data-product-json]{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
      }
      #productResult .item[data-product-json],
      #batchResults .item[data-product-json]{
        display:grid!important;
        grid-template-columns:28px 72px minmax(0,1fr)!important;
        grid-auto-columns:0!important;
        gap:10px!important;
        align-items:start!important;
        position:relative!important;
        overflow:visible!important;
        padding:12px!important;
        border-radius:18px!important;
        background:#fff!important;
        border:1px solid #e5e7eb!important;
        box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
      }
      #productResult .item[data-product-json] > .cart-ck,
      #batchResults .item[data-product-json] > .cart-ck{
        grid-column:1!important;
        grid-row:1!important;
        width:28px!important;
        min-width:28px!important;
        min-height:72px!important;
        padding-top:4px!important;
        align-self:start!important;
      }
      #productResult .item[data-product-json] > img.thumb,
      #productResult .item[data-product-json] > .thumb,
      #batchResults .item[data-product-json] > img.thumb,
      #batchResults .item[data-product-json] > .thumb{
        grid-column:2!important;
        grid-row:1!important;
        width:72px!important;
        height:72px!important;
        max-width:72px!important;
        min-width:72px!important;
        object-fit:cover!important;
        border-radius:14px!important;
      }
      #productResult .item[data-product-json] > .meta,
      #batchResults .item[data-product-json] > .meta{
        grid-column:3!important;
        grid-row:1!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
        padding-right:0!important;
      }
      #productResult .item[data-product-json] > .meta > div,
      #batchResults .item[data-product-json] > .meta > div{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        overflow:visible!important;
        text-overflow:clip!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
      }
      #productResult .item[data-product-json] > .meta a[href],
      #batchResults .item[data-product-json] > .meta a[href]{
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:auto!important;
        max-width:100%!important;
        min-height:34px!important;
        padding:6px 10px!important;
        border:1px solid #dbe4f0!important;
        border-radius:12px!important;
        background:#f8fafc!important;
        color:#2563eb!important;
        text-decoration:none!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
      #productResult .item[data-product-json] > div[style*="flex-direction:column"],
      #productResult .item[data-product-json] > div[style*="align-items:flex-end"],
      #batchResults .item[data-product-json] > div[style*="flex-direction:column"],
      #batchResults .item[data-product-json] > div[style*="align-items:flex-end"],
      #batchResults .item[data-product-json] > [data-role="batch-item-actions"]{
        grid-column:1 / -1!important;
        grid-row:2!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        display:block!important;
        margin-top:8px!important;
        justify-self:stretch!important;
        align-self:stretch!important;
        position:static!important;
      }
      #productResult [data-role="fetch-item-actions"],
      #batchResults [data-role="batch-item-actions"]{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        justify-content:stretch!important;
        align-items:stretch!important;
      }
      #productResult [data-role="fetch-item-actions"] button,
      #batchResults [data-role="batch-item-actions"] button,
      #productResult [data-add-cart],
      #productResult [data-go-cart],
      #productResult [data-del-single]{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        min-height:44px!important;
        margin:0!important;
        border-radius:14px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        font-size:15px!important;
      }
      #productResult [data-role="price-summary"],
      #batchResults [data-role="price-summary"]{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-top:6px!important;
      }
      #productResult .quote-summary-row,
      #batchResults .quote-summary-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
      }
      #productResult .quote-summary-cell,
      #batchResults .quote-summary-cell,
      #productResult .quote-summary-status,
      #batchResults .quote-summary-status{
        display:flex!important;
        flex-wrap:wrap!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        line-height:1.6!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
      }
      #productResult .quote-summary-cell > .muted,
      #batchResults .quote-summary-cell > .muted{white-space:nowrap!important;flex:0 0 auto!important;}
      #productResult [data-role="inline-quote-detail"],
      #batchResults [data-role="inline-quote-detail"]{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;}

      /* Mobile cart: keep total price on one line and move countdown/button below it. */
      #view-cart .quote-summary-total-action{
        display:grid!important;
        grid-template-columns:auto auto!important;
        justify-content:start!important;
        align-items:center!important;
        column-gap:4px!important;
        row-gap:6px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
      }
      #view-cart .quote-summary-total-action>.muted{grid-column:1!important;white-space:nowrap!important;flex:0 0 auto!important;}
      #view-cart .quote-summary-total-action>.price-danger{grid-column:2!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;}
      #view-cart .quote-summary-total-action>.quote-summary-status{grid-column:1/-1!important;width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;}
      #view-cart .quote-summary-total-action>.quote-summary-toggle{grid-column:1/-1!important;width:100%!important;min-height:38px!important;margin-top:0!important;}

      /* Admin tables: replace desktop horizontal tables with readable phone cards. */
      .admin-table-wrap,
      .admin-recent-tx-wrap,
      .admin-user-wallet-wrap{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
        border:0!important;
        background:transparent!important;
      }
      .admin-table-wrap::before,
      .member-compare-wrap::before{content:none!important;display:none!important;}
      .admin-table,
      .admin-table.admin-recent-tx-table{
        display:block!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        table-layout:auto!important;
        border-collapse:separate!important;
        border-spacing:0!important;
        background:transparent!important;
      }
      .admin-table thead{display:none!important;}
      .admin-table tbody{display:block!important;width:100%!important;}
      .admin-table tr{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        margin:0 0 10px!important;
        padding:8px 10px!important;
        border:1px solid #e5e7eb!important;
        border-radius:16px!important;
        background:#fff!important;
        box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
      }
      .admin-table th{display:none!important;}
      .admin-table td,
      .admin-table.admin-recent-tx-table td{
        display:grid!important;
        grid-template-columns:88px minmax(0,1fr)!important;
        gap:8px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        padding:8px 0!important;
        border-top:0!important;
        border-bottom:1px solid #eef2f7!important;
        text-align:left!important;
        vertical-align:top!important;
        white-space:normal!important;
        word-break:break-word!important;
        overflow-wrap:anywhere!important;
        color:#0f172a!important;
        line-height:1.5!important;
      }
      .admin-table td:last-child{border-bottom:0!important;text-align:left!important;}
      .admin-table td::before{
        content:attr(data-label);
        display:block!important;
        min-width:0!important;
        color:#64748b!important;
        font-weight:800!important;
        font-size:12px!important;
        line-height:1.5!important;
        word-break:keep-all!important;
        white-space:normal!important;
      }
      .admin-table td:empty::after{content:'-';color:#94a3b8;}
      .admin-table td button,
      .admin-table td .ghost,
      .admin-table td .danger{
        width:100%!important;
        min-width:0!important;
        margin:3px 0!important;
      }
      .admin-table .tx-amount{white-space:normal!important;}
      .admin-section,.admin-subcard,.admin-overview-wide,.admin-overview-stack{overflow:visible!important;min-width:0!important;max-width:100%!important;}
    }



    /* v5 final mobile fix: product action buttons must never cover product text; admin overview transactions use phone cards. */
    .admin-recent-tx-card-list{display:none;}
    @media (max-width: 780px){
      #productResult .item[data-product-json],
      #batchResults .item[data-product-json]{
        display:grid!important;
        grid-template-columns:30px 74px minmax(0,1fr)!important;
        grid-auto-flow:row!important;
        grid-auto-rows:auto!important;
        column-gap:10px!important;
        row-gap:10px!important;
        align-items:start!important;
        overflow:hidden!important;
        isolation:isolate!important;
      }
      #productResult .item[data-product-json] > .cart-ck,
      #batchResults .item[data-product-json] > .cart-ck{grid-column:1!important;grid-row:1!important;z-index:1!important;}
      #productResult .item[data-product-json] > img.thumb,
      #productResult .item[data-product-json] > .thumb,
      #batchResults .item[data-product-json] > img.thumb,
      #batchResults .item[data-product-json] > .thumb{grid-column:2!important;grid-row:1!important;width:74px!important;height:74px!important;max-width:74px!important;min-width:74px!important;z-index:1!important;}
      #productResult .item[data-product-json] > .meta,
      #batchResults .item[data-product-json] > .meta{grid-column:3!important;grid-row:1!important;min-width:0!important;max-width:100%!important;width:100%!important;z-index:1!important;}
      #productResult .item[data-product-json] > :nth-child(n+4),
      #batchResults .item[data-product-json] > :nth-child(n+4),
      #productResult .item[data-product-json] > [data-role="quote-actions-shell"],
      #batchResults .item[data-product-json] > [data-role="batch-item-actions"]{
        grid-column:1 / -1!important;
        grid-row:auto!important;
        position:static!important;
        inset:auto!important;
        transform:none!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:4px 0 0!important;
        padding:0!important;
        z-index:0!important;
        align-self:stretch!important;
        justify-self:stretch!important;
      }
      #productResult .item[data-product-json] > [data-role="quote-actions-shell"]{display:block!important;}
      #productResult .item[data-product-json] [data-role="fetch-item-actions"],
      #batchResults .item[data-product-json] [data-role="batch-item-actions"]{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        justify-items:stretch!important;
        align-items:stretch!important;
      }
      #productResult .item[data-product-json] [data-role="fetch-item-actions"] button,
      #batchResults .item[data-product-json] [data-role="batch-item-actions"] button,
      #productResult .item[data-product-json] [data-add-cart],
      #productResult .item[data-product-json] [data-go-cart],
      #productResult .item[data-product-json] [data-del-single],
      #batchResults .item[data-product-json] [data-add-cart],
      #batchResults .item[data-product-json] [data-go-cart],
      #batchResults .item[data-product-json] [data-batch-item-del-inline]{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        min-height:46px!important;
        margin:0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        white-space:nowrap!important;
      }
      #productResult .item[data-product-json] .meta *,
      #batchResults .item[data-product-json] .meta *{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;}

      .admin-recent-tx-card-list{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;}
      .admin-recent-tx-wrap{display:none!important;}
      .admin-recent-tx-card{width:100%!important;max-width:100%!important;min-width:0!important;border:1px solid #e5e7eb!important;border-radius:16px!important;background:#fff!important;padding:12px!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;}
      .admin-recent-tx-card-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;border-bottom:1px solid #eef2f7!important;padding-bottom:8px!important;margin-bottom:8px!important;}
      .admin-recent-tx-card-head strong{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important;color:#0f172a!important;}
      .admin-recent-tx-card-row{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important;padding:6px 0!important;line-height:1.5!important;}
      .admin-recent-tx-card-row span{color:#64748b!important;font-weight:800!important;font-size:12px!important;}
      .admin-recent-tx-card-row b{min-width:0!important;color:#0f172a!important;font-weight:600!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
      .admin-recent-tx-card .tx-amount{white-space:nowrap!important;font-weight:800!important;}
    }



    /* v6 mobile fix: user detail recent wallet transactions become readable phone cards. */
    @media (max-width: 780px){
      #adminSelectedUserPanel,
      #adminSelectedUserPanel .admin-subcard{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;}
      #adminSelectedUserPanel .admin-subcard > .row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important;}
      #adminSelectedUserPanel .admin-subcard .admin-searchbar.simple{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
      #adminSelectedUserPanel .admin-subcard .admin-searchbar.simple input,
      #adminSelectedUserPanel .admin-subcard .admin-searchbar.simple button{width:100%!important;max-width:100%!important;min-width:0!important;}
      .admin-user-wallet-wrap{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;border:0!important;background:transparent!important;}
      .admin-user-wallet-wrap .wallet-table{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;background:transparent!important;}
      .admin-user-wallet-wrap .wallet-table thead{display:none!important;}
      .admin-user-wallet-wrap .wallet-table tbody{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;}
      .admin-user-wallet-wrap .wallet-table tr{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 10px!important;padding:10px 12px!important;border:1px solid #e5e7eb!important;border-radius:16px!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;}
      .admin-user-wallet-wrap .wallet-table td{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:7px 0!important;border:0!important;border-bottom:1px solid #eef2f7!important;text-align:left!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;line-height:1.5!important;font-size:14px!important;}
      .admin-user-wallet-wrap .wallet-table td:last-child{border-bottom:0!important;}
      .admin-user-wallet-wrap .wallet-table td::before{display:block!important;color:#64748b!important;font-weight:800!important;font-size:12px!important;line-height:1.5!important;white-space:nowrap!important;}
      .admin-user-wallet-wrap .wallet-table td:nth-child(1)::before{content:'时间';}
      .admin-user-wallet-wrap .wallet-table td:nth-child(2)::before{content:'流水号';}
      .admin-user-wallet-wrap .wallet-table td:nth-child(3)::before{content:'类型';}
      .admin-user-wallet-wrap .wallet-table td:nth-child(4)::before{content:'说明';}
      .admin-user-wallet-wrap .wallet-table td:nth-child(5)::before{content:'变动金额';}
      .admin-user-wallet-wrap .wallet-table td:nth-child(6)::before{content:'变动后余额';}
      .admin-user-wallet-wrap .wallet-table td.wallet-amount,
      .admin-user-wallet-wrap .wallet-table td.wallet-balance{text-align:left!important;white-space:normal!important;font-size:15px!important;}
      .admin-user-wallet-wrap .wallet-table .wallet-type-badge{max-width:100%!important;white-space:normal!important;justify-self:start!important;}
    }


    /* v7 mobile fix: order item delivery file picker must not be squeezed or clipped on phones. */
    @media (max-width: 780px){
      .admin-order-item-card{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      .admin-order-item-card .item{
        display:grid!important;
        grid-template-columns:72px minmax(0,1fr)!important;
        gap:10px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      .admin-order-item-card .item > img.thumb,
      .admin-order-item-card .item > .thumb{
        grid-column:1!important;
        grid-row:1!important;
        width:72px!important;
        height:72px!important;
        max-width:72px!important;
        min-width:72px!important;
        border-radius:14px!important;
        object-fit:cover!important;
      }
      .admin-order-item-card .item > img.thumb + div,
      .admin-order-item-card .item > .thumb + div{
        grid-column:1 / -1!important;
        grid-row:2!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      .admin-order-item-card .item > .muted.small:last-child{
        grid-column:1 / -1!important;
        grid-row:3!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-top:4px!important;
      }
      .admin-order-item-upload-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        align-items:stretch!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      .admin-order-item-upload-row button,
      .admin-order-item-upload-row input{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
      }
      .admin-order-item-upload-row input[type="file"],
      .admin-order-item-file-input{
        display:block!important;
        inline-size:100%!important;
        height:auto!important;
        min-height:48px!important;
        padding:8px!important;
        border:1px solid #d7dfeb!important;
        border-radius:14px!important;
        background:#fff!important;
        font-size:14px!important;
        line-height:1.5!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
        white-space:nowrap!important;
      }
      .admin-order-item-upload-row input[type="file"]::file-selector-button{
        min-height:34px!important;
        margin-right:8px!important;
        padding:0 12px!important;
        border:1px solid #cbd5e1!important;
        border-radius:10px!important;
        background:#f8fafc!important;
        color:#0f172a!important;
        font:inherit!important;
        font-weight:700!important;
      }
      .admin-order-item-title-input{
        min-height:48px!important;
        padding:.75em .9em!important;
        border-radius:14px!important;
      }
      .admin-order-item-open-btn,
      .admin-order-item-upload-btn{
        min-height:46px!important;
        border-radius:14px!important;
        justify-content:center!important;
      }

      .admin-order-item-content{grid-column:1 / -1!important;width:100%!important;min-width:0!important;overflow:visible!important;}
      .admin-order-item-side{grid-column:1 / -1!important;width:100%!important;align-items:stretch!important;min-width:0!important;}
      .admin-order-item-side .admin-order-item-open-btn{width:100%!important;min-height:46px!important;}
      .admin-item-delivery-manage-grid{grid-template-columns:1fr!important;gap:10px!important;}
      .admin-item-delivery-head{display:grid!important;grid-template-columns:1fr!important;}
      .admin-item-form-row{grid-template-columns:1fr!important;align-items:stretch!important;}
      .admin-delivery-file-row{grid-template-columns:1fr!important;}
      .admin-delivery-file-name{width:100%!important;min-height:46px!important;}
      .admin-item-form-row button{width:100%!important;min-height:46px!important;}
      .admin-item-form-row input{width:100%!important;max-width:100%!important;min-width:0!important;}
    }



    /* v8 mobile fix: order history item quote total must not be squeezed into vertical text. */
    @media (max-width: 780px){
      #view-orders #ordersList .item[data-order-id]{
        display:grid!important;
        grid-template-columns:74px minmax(0,1fr)!important;
        grid-auto-flow:row!important;
        grid-auto-rows:auto!important;
        column-gap:10px!important;
        row-gap:8px!important;
        align-items:start!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      #view-orders #ordersList .item[data-order-id] > img.thumb,
      #view-orders #ordersList .item[data-order-id] > .thumb{
        grid-column:1!important;
        grid-row:1!important;
        width:74px!important;
        height:74px!important;
        max-width:74px!important;
        min-width:74px!important;
        object-fit:cover!important;
        border-radius:14px!important;
      }
      #view-orders #ordersList .item[data-order-id] > img.thumb + div{
        grid-column:2!important;
        grid-row:1!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      #view-orders #ordersList .item[data-order-id] > .muted.small:last-child{
        grid-column:1 / -1!important;
        grid-row:auto!important;
        justify-self:start!important;
        width:auto!important;
        max-width:100%!important;
      }
      #view-orders #ordersList [data-role="price-summary"]{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-top:6px!important;
        overflow:visible!important;
      }
      #view-orders #ordersList .quote-summary-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
      }
      #view-orders #ordersList .quote-summary-cell:not(.quote-summary-total-action),
      #view-orders #ordersList .quote-summary-status{
        display:flex!important;
        flex-wrap:wrap!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        line-height:1.65!important;
        word-break:normal!important;
        overflow-wrap:break-word!important;
      }
      #view-orders #ordersList .quote-summary-cell:not(.quote-summary-total-action) > .muted{
        white-space:nowrap!important;
        word-break:keep-all!important;
        flex:0 0 auto!important;
      }
      #view-orders #ordersList .quote-summary-total-action{
        display:grid!important;
        grid-template-columns:max-content max-content!important;
        justify-content:start!important;
        align-items:center!important;
        column-gap:5px!important;
        row-gap:6px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
        line-height:1.65!important;
      }
      #view-orders #ordersList .quote-summary-total-action > .muted{
        grid-column:1!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
      #view-orders #ordersList .quote-summary-total-action > .price-danger{
        grid-column:2!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
        overflow-wrap:normal!important;
        font-variant-numeric:tabular-nums!important;
      }
      #view-orders #ordersList .quote-summary-total-action > .quote-summary-status{
        grid-column:1 / -1!important;
        display:block!important;
        width:100%!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:break-word!important;
      }
      #view-orders #ordersList .quote-summary-total-action > .quote-summary-status .countdown{
        display:inline-block!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
      #view-orders #ordersList .quote-summary-total-action > .quote-summary-toggle,
      #view-orders #ordersList .quote-summary-total-action > .pill{
        grid-column:1 / -1!important;
        justify-self:start!important;
        width:auto!important;
        max-width:100%!important;
        min-height:38px!important;
        margin-top:0!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
    }


    /* v9 mobile fix: admin order amount subline and admin order-detail item total. */
    @media (max-width: 780px){
      /* 订单管理列表：订单金额小字放到右侧金额下面，完整显示，不再被卡片列宽截断。 */
      .admin-orders-table td[data-label="订单金额"]{
        overflow:visible!important;
        align-items:start!important;
      }
      .admin-orders-table .admin-order-copyable-value{
        grid-column:2!important;
        width:auto!important;
        max-width:100%!important;
        padding-right:30px!important;
        justify-self:start!important;
      }
      .admin-orders-table td .admin-order-value-copy-btn{
        position:absolute!important;
        top:0!important;
        right:0!important;
        width:22px!important;
        min-width:22px!important;
        height:22px!important;
        margin:0!important;
        padding:0!important;
      }
      .admin-orders-table td[data-label="订单金额"] .admin-order-money-main,
      .admin-orders-table td[data-label="订单金额"] .admin-order-money-sub{
        grid-column:2!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        text-align:left!important;
      }
      .admin-orders-table td[data-label="订单金额"] .admin-order-money-sub{
        display:block!important;
        margin-top:2px!important;
        white-space:normal!important;
        overflow:visible!important;
        text-overflow:clip!important;
        word-break:keep-all!important;
        overflow-wrap:break-word!important;
        line-height:1.55!important;
      }

      /* 订单商品明细：总价金额固定横排，支付状态和计算按钮换到下一行。 */
      .admin-order-item-content [data-role="price-summary"]{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
      }
      .admin-order-item-content .quote-summary-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:6px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
      }
      .admin-order-item-content .quote-summary-total-action{
        display:grid!important;
        grid-template-columns:max-content max-content!important;
        justify-content:start!important;
        align-items:center!important;
        column-gap:6px!important;
        row-gap:6px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
        line-height:1.65!important;
      }
      .admin-order-item-content .quote-summary-total-action > .muted{
        grid-column:1!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
      .admin-order-item-content .quote-summary-total-action > .price-danger{
        grid-column:2!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
        overflow-wrap:normal!important;
        font-variant-numeric:tabular-nums!important;
      }
      .admin-order-item-content .quote-summary-total-action > .quote-summary-status{
        grid-column:1 / -1!important;
        display:block!important;
        width:100%!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:break-word!important;
      }
      .admin-order-item-content .quote-summary-total-action > .quote-summary-toggle{
        grid-column:1 / -1!important;
        justify-self:start!important;
        width:auto!important;
        max-width:100%!important;
        min-height:38px!important;
        margin-top:0!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
    }


    /* v10 mobile fix: keep quote total label + amount together. Avoid vertical price text on phones. */
    .quote-total-pair{
      display:inline-flex;
      align-items:center;
      gap:6px;
      width:auto;
      max-width:100%;
      min-width:max-content;
      white-space:nowrap;
      word-break:keep-all;
      overflow-wrap:normal;
      flex:0 0 auto;
      line-height:1.5;
    }
    .quote-total-pair > .muted,
    .quote-total-pair > .price-danger{
      display:inline-block;
      width:auto;
      min-width:max-content;
      white-space:nowrap;
      word-break:keep-all;
      overflow-wrap:normal;
    }
    @media (max-width: 780px){
      #view-cart .quote-summary-total-action,
      #view-orders #ordersList .quote-summary-total-action,
      .admin-order-item-content .quote-summary-total-action{
        display:flex!important;
        flex-wrap:wrap!important;
        align-items:center!important;
        justify-content:flex-start!important;
        gap:6px 10px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
        line-height:1.6!important;
      }
      #view-cart .quote-summary-total-action > .quote-total-pair,
      #view-orders #ordersList .quote-summary-total-action > .quote-total-pair,
      .admin-order-item-content .quote-summary-total-action > .quote-total-pair{
        display:inline-flex!important;
        flex:0 0 auto!important;
        width:auto!important;
        max-width:100%!important;
        min-width:max-content!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
        overflow-wrap:normal!important;
        gap:4px!important;
      }
      #view-cart .quote-summary-total-action > .quote-total-pair > .muted,
      #view-cart .quote-summary-total-action > .quote-total-pair > .price-danger,
      #view-orders #ordersList .quote-summary-total-action > .quote-total-pair > .muted,
      #view-orders #ordersList .quote-summary-total-action > .quote-total-pair > .price-danger,
      .admin-order-item-content .quote-summary-total-action > .quote-total-pair > .muted,
      .admin-order-item-content .quote-summary-total-action > .quote-total-pair > .price-danger{
        display:inline-block!important;
        width:auto!important;
        min-width:max-content!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
        overflow-wrap:normal!important;
      }
      #view-cart .quote-summary-total-action > .quote-summary-status,
      #view-orders #ordersList .quote-summary-total-action > .quote-summary-status,
      .admin-order-item-content .quote-summary-total-action > .quote-summary-status{
        flex:1 1 100%!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        display:block!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:break-word!important;
        margin-top:0!important;
      }
      #view-cart .quote-summary-total-action > .quote-summary-toggle,
      #view-orders #ordersList .quote-summary-total-action > .quote-summary-toggle,
      .admin-order-item-content .quote-summary-total-action > .quote-summary-toggle{
        flex:0 0 auto!important;
        width:auto!important;
        max-width:100%!important;
        min-height:38px!important;
        margin-top:2px!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
      #view-cart .quote-summary-total-action > .pill,
      #view-orders #ordersList .quote-summary-total-action > .pill,
      .admin-order-item-content .quote-summary-total-action > .pill{
        flex:0 0 auto!important;
        width:auto!important;
        max-width:100%!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
      }
    }


    /* v11 mobile fix: membership support page and admin actual purchase payment form. */
    @media (max-width: 780px){
      /* 防止会员中心/售后页面在手机上被固定两列撑出屏幕 */
      #view-membership,
      #view-membership .member-shell,
      #view-membership .member-content,
      #view-membership .member-section,
      #view-membership .support-stack,
      #view-membership .support-form-wrap,
      #view-membership .support-record-wrap,
      #view-membership .support-group,
      #view-membership .support-item{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
        overflow:visible!important;
      }
      #view-membership .support-stack{padding:12px!important;gap:12px!important;}
      #view-membership .support-record-head{padding:12px 14px!important;font-size:16px!important;line-height:1.35!important;}
      #view-membership .support-form{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        padding:14px!important;
        box-sizing:border-box!important;
        align-items:stretch!important;
      }
      #view-membership .support-form > label,
      #view-membership .support-form .field-label-required{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        text-align:left!important;
        justify-content:flex-start!important;
        line-height:1.45!important;
      }
      #view-membership .support-form input,
      #view-membership .support-form select,
      #view-membership .support-form textarea{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
      }
      #view-membership .support-form textarea{min-height:120px!important;}
      #view-membership .support-order-line{display:flex!important;align-items:center!important;gap:8px!important;}
      #view-membership .support-order-line #supportOrderId{width:auto!important;flex:1 1 auto!important;}
      #view-membership .support-order-none{width:auto!important;flex:0 0 auto!important;height:42px!important;padding:0 10px!important;}
      #view-membership .support-order-none input{width:auto!important;max-width:none!important;}
      #view-membership .support-submit-row{
        grid-column:1!important;
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:10px!important;
        justify-content:stretch!important;
        width:100%!important;
      }
      #view-membership .support-submit-row button{width:100%!important;min-width:0!important;}
      #view-membership .support-group{padding:10px!important;border-radius:16px!important;}
      #view-membership .support-group-head{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:6px!important;
        align-items:start!important;
      }
      #view-membership .support-group-title,
      #view-membership .support-group-meta{
        min-width:0!important;
        max-width:100%!important;
        overflow-wrap:anywhere!important;
        word-break:normal!important;
        line-height:1.5!important;
      }
      #view-membership .support-item{padding:12px!important;border-radius:16px!important;}
      #view-membership .support-item > .row:first-child{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        align-items:start!important;
      }
      #view-membership .support-item > .row:first-child > .row{
        justify-content:flex-start!important;
        width:100%!important;
      }
      #view-membership .support-record-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-top:10px!important;
      }
      #view-membership .support-record-grid .label{
        margin-top:8px!important;
        font-size:13px!important;
        font-weight:800!important;
        color:#64748b!important;
        white-space:normal!important;
      }
      #view-membership .support-record-grid .value,
      #view-membership .support-record-result .value{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        font-size:14px!important;
        line-height:1.75!important;
        white-space:pre-wrap!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
      }
      #view-membership .support-record-result{padding:10px!important;border-radius:14px!important;}

      /* 后台订单详情：实际采购付款维护在手机上改成单列，不再挤压重叠。 */
      .admin-finance-formula-list,
      .admin-finance-formula-row,
      .admin-finance-formula-expr,
      .admin-finance-formula-result{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
      }
      .admin-finance-formula-expr{
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:break-word!important;
        line-height:1.75!important;
      }
      .admin-actual-payment-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
        align-items:stretch!important;
      }
      .admin-actual-payment-grid .admin-finance-field,
      .admin-actual-payment-grid input,
      .admin-actual-payment-grid button{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
      }
      .admin-actual-payment-grid button{
        min-height:46px!important;
        height:auto!important;
        justify-content:center!important;
      }
    }
    @media (max-width: 380px){
      #view-membership .support-submit-row{grid-template-columns:1fr!important;}
    }


    /* v12 mobile fix: membership transaction details + support records should render as readable cards. */
    @media (max-width: 980px){
      #view-membership,
      #view-membership .member-shell,
      #view-membership .member-content,
      #view-membership .member-section,
      #view-membership .member-card-soft,
      #view-membership .wallet-shell,
      #view-membership .wallet-shell-body,
      #view-membership .wallet-table-wrap,
      #view-membership .support-stack,
      #view-membership .support-record-wrap,
      #view-membership .support-group,
      #view-membership .support-item{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
        overflow:visible!important;
      }
      #view-membership .wallet-shell{border-radius:18px!important;}
      #view-membership .wallet-shell-head,
      #view-membership .wallet-shell-body{padding-left:12px!important;padding-right:12px!important;}
      #view-membership .wallet-toolbar,
      #view-membership .wallet-toolbar-left,
      #view-membership .wallet-toolbar-right,
      #view-membership .wallet-filter-group{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        align-items:stretch!important;
      }
      #view-membership .wallet-filter-chip,
      #view-membership .wallet-toolbar-btn,
      #view-membership .wallet-date-field,
      #view-membership .wallet-date-input,
      #view-membership .wallet-search,
      #view-membership .wallet-search input{width:100%!important;max-width:100%!important;min-width:0!important;}
      #view-membership .wallet-table-wrap{border:0!important;background:transparent!important;min-height:0!important;display:block!important;}
      #view-membership .wallet-table{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;background:transparent!important;}
      #view-membership .wallet-table thead{display:none!important;}
      #view-membership .wallet-table tbody{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;}
      #view-membership .wallet-table tr{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 10px!important;padding:10px 12px!important;border:1px solid #e5e7eb!important;border-radius:16px!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;}
      #view-membership .wallet-table tr.wallet-collection-child{margin-top:-4px!important;margin-left:12px!important;width:calc(100% - 12px)!important;background:#fbfdff!important;border-style:dashed!important;}
      #view-membership .wallet-table td{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:7px 0!important;border:0!important;border-bottom:1px solid #eef2f7!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;line-height:1.55!important;font-size:14px!important;background:transparent!important;}
      #view-membership .wallet-table td:last-child{border-bottom:0!important;}
      #view-membership .wallet-table td::before{display:block!important;color:#64748b!important;font-weight:800!important;font-size:12px!important;line-height:1.55!important;white-space:nowrap!important;word-break:keep-all!important;}
      #view-membership .wallet-table td:nth-child(1)::before{content:'时间';}
      #view-membership .wallet-table td:nth-child(2)::before{content:'流水号';}
      #view-membership .wallet-table td:nth-child(3)::before{content:'类型';}
      #view-membership .wallet-table td:nth-child(4)::before{content:'说明';}
      #view-membership .wallet-table td:nth-child(5)::before{content:'变动金额';}
      #view-membership .wallet-table td:nth-child(6)::before{content:'变动后余额';}
      #view-membership .wallet-table .wallet-type-badge,
      #view-membership .wallet-table .wallet-collection-toggle{max-width:100%!important;white-space:normal!important;justify-self:start!important;}
      #view-membership .wallet-table .wallet-amount,
      #view-membership .wallet-table .wallet-balance{text-align:left!important;white-space:normal!important;font-size:15px!important;}
      #view-membership .wallet-collection-child td:first-child{padding-left:0!important;}

      #view-membership .support-record-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:4px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-top:10px!important;
      }
      #view-membership .support-record-grid .label{
        margin-top:8px!important;
        font-size:13px!important;
        font-weight:800!important;
        color:#64748b!important;
        white-space:normal!important;
      }
      #view-membership .support-record-grid .value,
      #view-membership .support-record-result .value{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        font-size:14px!important;
        line-height:1.75!important;
        white-space:pre-wrap!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
        text-align:left!important;
      }
      #view-membership .support-record-result{padding:10px!important;border-radius:14px!important;}
    }


    /* DEEP_MOBILE_PERF_PATCH: 手机端保留完整功能，但降低首屏绘制成本 */
    @media (max-width: 768px){
      *{scroll-behavior:auto!important;}
      body.auth-open{overflow:hidden;}
      .auth-modal{backdrop-filter:none!important;background:rgba(15,23,42,.26)!important;}
      .card,.item,.modal-card,.auth-shell,.account-dropdown,.top-notice-dropdown{box-shadow:none!important;}
      .top-notice-dropdown,.account-dropdown{max-height:70vh;overflow:auto;-webkit-overflow-scrolling:touch;}
      img{content-visibility:auto;}
      .item img,.product-img img,.quote-product-img img{contain:paint;}
      .mobile-defer-card{margin:10px 0;padding:12px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;text-align:center;}
      .mobile-defer-card button{min-height:42px;}
    }


    /* 日志与审计：专业上下版 */
    .admin-audit-page{display:flex;flex-direction:column;gap:10px;min-width:0;}
    .admin-audit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 2px;background:transparent;}
    .admin-audit-title{font-size:18px;font-weight:950;color:#0f172a;letter-spacing:.01em;}
    .admin-audit-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#64748b;font-size:12px;font-weight:800;}
    .admin-audit-chip{display:inline-flex;align-items:center;height:26px;padding:0 9px;border:1px solid #dbe7f6;border-radius:999px;background:#f8fafc;color:#334155;font-size:12px;font-weight:900;white-space:nowrap;}
    .admin-audit-filterbar{display:grid;grid-template-columns:minmax(260px,1.45fr) 128px 128px 140px 140px 94px 94px;gap:8px;align-items:end;padding:12px;border:1px solid #dbe7f6;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.03);min-width:0;}
    .admin-audit-filterbar .profile-dialog-field{gap:4px;min-width:0;}
    .admin-audit-filterbar .profile-dialog-field label{font-size:12px;color:#64748b;font-weight:900;}
    .admin-audit-filterbar input,.admin-audit-filterbar select{width:100%;height:38px;min-width:0;box-sizing:border-box;border:1px solid #d7e3f3;border-radius:10px;background:#fff;padding:0 10px;font:inherit;color:#0f172a;}
    .admin-audit-filterbar input:focus,.admin-audit-filterbar select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.10);}
    .admin-audit-filterbar button{height:38px;padding:0 12px;border-radius:10px;white-space:nowrap;}
    .admin-audit-main-grid{display:grid;grid-template-columns:1fr;gap:12px;align-items:start;min-width:0;}
    .admin-audit-side{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0;}
    .admin-audit-module-row{grid-template-columns:repeat(auto-fit,minmax(108px,1fr));}
    .admin-audit-stat[data-audit-filter-type]{cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease;}
    .admin-audit-stat[data-audit-filter-type]:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 5px 14px rgba(15,23,42,.04);}
    .admin-audit-stat.active{border-color:#2563eb;background:#eff6ff;}
    .admin-audit-side-card{padding:12px;border:1px solid #dbe7f6;border-radius:14px;background:#fff;min-width:0;box-shadow:0 6px 18px rgba(15,23,42,.025);}
    .admin-audit-side > .admin-audit-status{grid-column:1/-1;}
    .admin-audit-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#0f172a;font-size:14px;font-weight:950;}
    .admin-audit-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
    .admin-audit-stat{padding:10px 9px;border:1px solid #e5edf7;border-radius:12px;background:#f8fafc;min-width:0;}
    .admin-audit-stat .k{color:#64748b;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .admin-audit-stat .v{margin-top:5px;color:#0f172a;font-size:22px;font-weight:950;line-height:1;}
    .admin-audit-stat.danger .v{color:#b91c1c;}
    .admin-audit-breakdown{display:grid;gap:6px;}
    .admin-audit-breakdown-item{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;padding:7px 10px;border:1px solid #e5edf7;border-radius:10px;background:#fff;color:#334155;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease;}
    .admin-audit-breakdown-item[data-audit-filter-type]{cursor:pointer;}
    .admin-audit-breakdown-item[data-audit-filter-type]:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 5px 14px rgba(15,23,42,.04);}
    .admin-audit-breakdown-item.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;}
    .admin-audit-breakdown-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:850;}
    .admin-audit-breakdown-item b{color:#0f172a;font-size:13px;}
    .admin-audit-alert-list{display:grid;gap:7px;max-height:156px;overflow:auto;padding-right:2px;}
    .admin-audit-alert{padding:9px 10px;border:1px solid #fee2e2;border-radius:10px;background:#fff7f7;}
    .admin-audit-alert-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;color:#991b1b;font-size:12px;font-weight:950;}
    .admin-audit-alert-time{flex-shrink:0;color:#94a3b8;font-size:11px;font-weight:800;}
    .admin-audit-alert-detail{margin-top:4px;color:#475569;font-size:12px;line-height:1.6;}
    .admin-audit-table-card{border:1px solid #dbe7f6;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.025);min-width:0;}
    .admin-audit-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #e5edf7;background:#fff;}
    .admin-audit-table-title{font-weight:950;color:#0f172a;}
    #adminAuditTableWrap{border:0;border-radius:0;max-height:610px;overflow-y:auto;overflow-x:hidden;}
    #adminAuditTableWrap .admin-table{width:100%!important;min-width:0!important;table-layout:fixed;}
    #adminAuditTableWrap .admin-table th:nth-child(1){width:11%!important;}
    #adminAuditTableWrap .admin-table th:nth-child(2){width:7%!important;}
    #adminAuditTableWrap .admin-table th:nth-child(3){width:7%!important;}
    #adminAuditTableWrap .admin-table th:nth-child(4){width:30%!important;}
    #adminAuditTableWrap .admin-table th:nth-child(5){width:12%!important;}
    #adminAuditTableWrap .admin-table th:nth-child(6){width:19%!important;}
    #adminAuditTableWrap .admin-table th:nth-child(7){width:14%!important;}
    #adminAuditTableWrap .admin-table thead th{position:sticky;top:0;z-index:1;background:#f8fafc;}
    #adminAuditTableWrap .admin-table td,#adminAuditTableWrap .admin-table th{word-break:break-word;overflow-wrap:anywhere;vertical-align:top;white-space:normal;}
    #adminAuditTableWrap .admin-table td:last-child,#adminAuditTableWrap .admin-table th:last-child{text-align:left;}
    .admin-audit-event-title{font-weight:900;color:#0f172a;line-height:1.42;}
    .admin-audit-event-detail{margin-top:3px;color:#475569;font-size:12px;line-height:1.58;white-space:normal;}
    .admin-audit-event-meta{margin-top:5px;display:flex;flex-wrap:wrap;gap:5px;}
    .admin-audit-settings-card{padding:12px;border:1px solid #dbe7f6;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.025);}
    .admin-audit-settings-head{margin-bottom:9px;font-weight:950;color:#0f172a;}
    .admin-audit-settings-grid{display:grid;grid-template-columns:110px 110px 86px minmax(160px,1fr) 86px minmax(160px,1fr);gap:8px;align-items:end;}
    .admin-audit-settings-field{display:grid;gap:4px;min-width:0;}
    .admin-audit-settings-field label{font-size:12px;font-weight:900;color:#64748b;}
    .admin-audit-settings-field input{width:100%;height:38px;box-sizing:border-box;border:1px solid #d7e3f3;border-radius:10px;background:#fff;padding:0 10px;font:inherit;min-width:0;}
    .admin-audit-settings-field .admin-settings-switch{height:38px;min-height:0;padding:0 10px;border:1px solid #d7e3f3;border-radius:10px;background:#fff;display:flex;align-items:center;gap:6px;}
    @media (max-width: 1480px){.admin-audit-filterbar{grid-template-columns:minmax(220px,1.25fr) 116px 116px 132px 132px 90px 90px;}.admin-audit-side{grid-template-columns:repeat(2,minmax(0,1fr));}}
    @media (max-width: 1180px){.admin-audit-filterbar{grid-template-columns:repeat(3,minmax(0,1fr));}.admin-audit-filterbar button{width:100%;}.admin-audit-side{grid-template-columns:repeat(2,minmax(0,1fr));}.admin-audit-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.admin-audit-side-card:first-child,.admin-audit-side-card:last-child{grid-column:auto;}}
    @media (max-width: 860px){.admin-audit-head,.admin-audit-table-head{align-items:flex-start;flex-direction:column;}.admin-audit-filterbar,.admin-audit-side,.admin-audit-stats,.admin-audit-settings-grid{grid-template-columns:1fr;}#adminAuditTableWrap .admin-table th:nth-child(1){width:13%!important;}#adminAuditTableWrap .admin-table th:nth-child(2){width:8%!important;}#adminAuditTableWrap .admin-table th:nth-child(3){width:8%!important;}#adminAuditTableWrap .admin-table th:nth-child(4){width:32%!important;}#adminAuditTableWrap .admin-table th:nth-child(5){width:12%!important;}#adminAuditTableWrap .admin-table th:nth-child(6){width:17%!important;}#adminAuditTableWrap .admin-table th:nth-child(7){width:10%!important;}}

    /* 审计日志长文本换行，避免事件和操作人列压住重叠 */
    #adminAuditTableWrap .admin-table td, #adminAuditTableWrap .admin-table th{word-break:break-word;overflow-wrap:anywhere;vertical-align:top;}
    #adminAuditTableWrap .admin-table td:nth-child(5), #adminAuditTableWrap .admin-table td:nth-child(6){min-width:0;}

    .business-secret-input{-webkit-text-security:disc;text-security:disc;}

    /* 财务管理：订单利润表 */
    .admin-finance-ledger-page{display:flex;flex-direction:column;min-height:calc(100vh - 285px);}
    .admin-finance-ledger-head{border:1px solid #dbe7f6;border-radius:16px;background:#fff;padding:12px 16px;margin-bottom:10px;flex:0 0 auto;}
    .admin-finance-ledger-titleline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px;}
    .admin-finance-ledger-title{font-size:18px;font-weight:950;color:#0f172a;}
    .admin-finance-ledger-sub{display:none;}
    .admin-finance-ledger-head-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
    .admin-finance-ledger-view-switch{display:inline-flex;align-items:center;gap:6px;padding:4px;border:1px solid #dbe7f6;border-radius:999px;background:#fff;}
    .admin-finance-ledger-view-switch .view-label{padding:0 6px 0 8px;font-size:12px;font-weight:900;color:#64748b;white-space:nowrap;}
    .admin-finance-ledger-view-switch button{height:28px;padding:0 12px;border-radius:999px;border:1px solid transparent;background:transparent;color:#475569;font-weight:800;}
    .admin-finance-ledger-view-switch button.active{background:#2563eb;color:#fff;border-color:#2563eb;}
    .admin-finance-period-pill{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid #dbe7f6;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:900;}
    .admin-finance-ledger-presets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px;}
    .admin-finance-ledger-presets button{height:32px;padding:0 12px;border-radius:999px;background:#fff;color:#475569;border:1px solid #d7e3f3;font-weight:800;}
    .admin-finance-ledger-presets button.active{background:#2563eb;color:#fff;border-color:#2563eb;}
    .admin-finance-ledger-filters{display:grid;grid-template-columns:auto auto auto minmax(220px,1fr) auto;gap:10px;align-items:center;}
    .admin-finance-ledger-filters label{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;font-weight:800;white-space:nowrap;min-width:0;}
    .admin-finance-ledger-filters label>span{flex:0 0 auto;}
    .admin-finance-ledger-filters input,.admin-finance-ledger-filters select{height:36px;background:#fff;border-color:#d7e3f3;}
    .admin-finance-ledger-filters label:not(.grow) input{width:148px;min-width:148px;}
    .admin-finance-ledger-filters label:not(.grow) select{width:154px;min-width:154px;}
    .admin-finance-ledger-filters .admin-finance-date-field{width:148px;min-width:148px;}
    .admin-finance-ledger-filters .admin-finance-date-field input{width:100%;min-width:0;height:36px;cursor:pointer;padding:0 34px 0 10px;}
    .admin-finance-ledger-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;}
    .admin-finance-ledger-actions button{height:36px;padding:0 14px;border-radius:10px;white-space:nowrap;}
    .admin-finance-ledger-filters .grow{min-width:220px;}
    .admin-finance-ledger-filters .grow input{min-width:0;width:100%;}
    .admin-finance-ledger-actions{display:flex;gap:8px;align-items:center;justify-self:end;white-space:nowrap;}
    .admin-finance-ledger-wrap{border:1px solid #dbe7f6;border-radius:16px;background:#fff;overflow-x:auto;overflow-y:auto;flex:1 1 auto;height:calc(100vh - 300px);min-height:620px;max-width:100%;scrollbar-gutter:stable;}
    .admin-finance-totals-fixed{flex:0 0 auto;border:1px solid #cbd5e1;border-top:0;border-radius:0 0 16px 16px;background:#f8fafc;overflow:hidden;max-width:100%;}
    .admin-finance-totals-fixed .admin-finance-ledger-table{margin:0;}
    .admin-finance-totals-fixed td{background:#f8fafc!important;border-top:2px solid #cbd5e1!important;border-bottom:0!important;font-weight:950;color:#0f172a;}
    .admin-finance-ledger-wrap:has(+ .admin-finance-totals-fixed:not(:empty)){border-radius:16px 16px 0 0;}
    .admin-finance-ledger-page.compact-view{min-height:calc(100vh - 420px);}
    .admin-finance-ledger-page.compact-view .admin-finance-ledger-wrap{height:calc(100vh - 490px);min-height:360px;}
    /* 财务订单利润表：容器可以有固定高度并滚动，但 table/行/单元格绝不能 height:100% 或按容器高度均分。 */
    #adminFinanceOrdersWrap.admin-finance-ledger-wrap{align-items:flex-start!important;}
    #adminFinanceOrdersWrap .admin-finance-ledger-table{width:100%;min-width:0!important;table-layout:fixed;height:auto!important;min-height:0!important;max-height:none!important;border-collapse:separate;border-spacing:0;font-size:12.5px;}
    #adminFinanceOrdersWrap .admin-finance-ledger-table thead,
    #adminFinanceOrdersWrap .admin-finance-ledger-table tbody,
    #adminFinanceOrdersWrap .admin-finance-ledger-table tfoot,
    #adminFinanceOrdersWrap .admin-finance-ledger-table tr{height:auto!important;min-height:0!important;max-height:none!important;}
    #adminFinanceOrdersWrap .admin-finance-ledger-table th,
    #adminFinanceOrdersWrap .admin-finance-ledger-table td{height:auto!important;min-height:0!important;max-height:none!important;padding:9px 8px;border-bottom:1px solid #edf2f7;vertical-align:middle;min-width:0;overflow:hidden;line-height:1.45;}
    .admin-finance-ledger-table{width:100%;min-width:0!important;table-layout:fixed;height:auto!important;border-collapse:separate;border-spacing:0;font-size:12.5px;}
    .admin-finance-ledger-table tr{height:auto!important;}
    .admin-finance-ledger-table th,.admin-finance-ledger-table td{height:auto!important;padding:9px 8px;border-bottom:1px solid #edf2f7;vertical-align:middle;min-width:0;overflow:hidden;line-height:1.45;}
    .admin-finance-ledger-table thead th{background:#f8fafc;color:#334155;font-weight:950;text-align:left;white-space:nowrap;position:sticky;top:0;z-index:2;}
    .admin-finance-ledger-table tbody tr:hover{background:#fbfdff;}
    .admin-finance-ledger-table tfoot td{background:#f8fafc;border-top:2px solid #cbd5e1;border-bottom:0;font-weight:950;color:#0f172a;}
    .admin-finance-ledger-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
    .admin-finance-ledger-table .center{text-align:center;white-space:nowrap;}
    .admin-finance-ledger-table td:last-child,.admin-finance-ledger-table th:last-child{text-align:center;}
    .admin-finance-order-main{font-weight:950;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .admin-finance-sub{font-size:12px;color:#64748b;line-height:1.45;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .admin-finance-money-main{font-size:13px;font-weight:950;color:#0f172a;white-space:nowrap;}
    .admin-finance-ledger-table button.ghost{height:28px;padding:0 8px;font-size:12px;}
    .admin-finance-ledger-table thead th.admin-finance-resizable-th{padding-right:13px;}
    .admin-finance-col-resizer{position:absolute;right:-1px;top:0;width:9px;height:100%;cursor:col-resize;z-index:6;touch-action:none;}
    .admin-finance-col-resizer::after{content:'';position:absolute;right:4px;top:8px;bottom:8px;width:1px;background:#cbd5e1;opacity:.7;}
    .admin-finance-ledger-table thead th:hover .admin-finance-col-resizer::after,
    .admin-finance-col-resizer:hover::after{width:2px;right:3px;background:#2563eb;opacity:1;}
    body.admin-finance-col-resizing{cursor:col-resize!important;user-select:none!important;}
    body.admin-finance-col-resizing *{cursor:col-resize!important;}
    .admin-finance-reset-columns{height:30px!important;padding:0 10px!important;border-radius:999px!important;font-size:12px!important;}
    @media (max-width: 1180px){
      .admin-finance-ledger-titleline,.admin-finance-ledger-head-tools{align-items:flex-start;}
      .admin-finance-ledger-filters{grid-template-columns:1fr;}
      .admin-finance-ledger-actions{justify-self:start;}
      .admin-finance-ledger-filters .grow{min-width:0;}
      .admin-finance-ledger-filters label:not(.grow) input,
      .admin-finance-ledger-filters label:not(.grow) select{width:100%;min-width:0;}
    }
    .admin-finance-note{color:#475569;font-size:12px;line-height:1.5;}
    .admin-finance-risk-tags{display:flex;flex-wrap:wrap;gap:3px;}
    .admin-finance-risk-tag{display:inline-flex;align-items:center;border:1px solid #e2e8f0;background:#f8fafc;color:#475569;border-radius:999px;padding:2px 5px;font-size:11px;font-weight:850;white-space:nowrap;}
    .admin-finance-risk-tag.warn{border-color:#fed7aa;background:#fff7ed;color:#9a3412;}
    .admin-finance-risk-tag.bad{border-color:#fecaca;background:#fef2f2;color:#b91c1c;}
    .admin-finance-risk-tag.good{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
    .admin-finance-empty-row td{text-align:center;color:#64748b;padding:28px 12px;}
    .admin-finance-table-note{display:none;}
    .admin-finance-positive{color:#16a34a!important;font-weight:950;}
    .admin-finance-negative{color:#dc2626!important;font-weight:950;}
    .admin-finance-neutral{color:#475569!important;font-weight:900;}

    /* 极简版：总览经营总表 */
    .admin-overview-simple-page{display:grid;gap:12px;}
    .admin-overview-simple-section{border:1px solid #dbe7f6;border-radius:16px;background:#fff;padding:14px 16px;}
    .admin-overview-simple-title{font-size:18px;font-weight:950;color:#0f172a;}
    .admin-overview-simple-sub{margin-top:4px;color:#64748b;font-size:13px;line-height:1.5;}
    .admin-overview-simple-table{min-width:980px;font-size:13px;}
    .admin-overview-simple-table th{background:#f8fafc;white-space:nowrap;}
    .admin-overview-simple-table th,
    .admin-overview-simple-table td,
    .admin-overview-simple-table th:last-child,
    .admin-overview-simple-table td:last-child{text-align:left!important;}
    .admin-overview-simple-table .num{text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;}
    .admin-overview-simple-table .strong{font-weight:900;color:#0f172a;}
    .admin-overview-simple-table .muted-line{font-size:12px;color:#64748b;margin-top:3px;line-height:1.4;}


    .admin-user-quote-control-grid{display:grid;grid-template-columns:minmax(150px,190px) minmax(170px,220px) minmax(260px,1fr) auto;gap:14px;align-items:end;margin-top:14px;}
    .admin-user-quote-control-grid label{display:block;font-size:13px;font-weight:800;color:#475569;margin-bottom:7px;}
    .admin-user-quote-control-grid select,
    .admin-user-quote-control-grid input,
    .admin-user-quote-control-grid textarea{width:100%;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:12px;padding:10px 12px;background:#fff;font-size:14px;min-height:42px;}
    .admin-user-quote-control-grid textarea{height:42px;resize:vertical;min-height:42px;line-height:1.35;}
    .admin-user-quote-control-grid .quote-save-cell{display:flex;align-items:end;}
    .admin-user-quote-control-grid .quote-save-cell button{height:42px;white-space:nowrap;border-radius:12px;}
    .admin-user-quote-control-help{margin-top:8px;color:#64748b;font-size:12px;line-height:1.6;}
    @media (max-width:1100px){.admin-user-quote-control-grid{grid-template-columns:1fr 1fr;}.admin-user-quote-control-grid .quote-save-cell{align-items:stretch;}.admin-user-quote-control-grid .quote-save-cell button{width:100%;}}
    @media (max-width:720px){.admin-user-quote-control-grid{grid-template-columns:1fr;}}

  
    .admin-user-quote-control-grid{display:grid;grid-template-columns:minmax(170px,220px) minmax(190px,240px) minmax(320px,1fr) auto;gap:14px;align-items:end;margin-top:14px;}
    .admin-user-quote-control-grid label{display:block;font-size:13px;font-weight:800;color:#475569;margin-bottom:7px;}
    .admin-user-quote-control-grid select,
    .admin-user-quote-control-grid input,
    .admin-user-quote-control-grid textarea{width:100%;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:12px;padding:10px 12px;background:#fff;font-size:14px;min-height:42px;}
    .admin-user-quote-control-grid textarea{height:42px;resize:vertical;min-height:42px;line-height:1.35;}
    .admin-user-quote-control-grid .quote-save-cell{display:flex;align-items:end;}
    .admin-user-quote-control-grid .quote-save-cell button{height:42px;white-space:nowrap;border-radius:12px;}
    .admin-user-quote-control-help{margin-top:8px;color:#64748b;font-size:12px;line-height:1.6;}
    .quote-risk-scope-checks{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:12px;}
    .quote-risk-scope-checks label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#334155;background:#fff;border:1px solid #dbe3ef;border-radius:999px;padding:8px 12px;cursor:pointer;user-select:none;}
    .quote-risk-scope-checks input{width:15px;height:15px;margin:0;}
    @media (max-width:1200px){.admin-user-quote-control-grid{grid-template-columns:1fr 1fr;}.admin-user-quote-control-grid .quote-save-cell{align-items:stretch;}.admin-user-quote-control-grid .quote-save-cell button{width:100%;}}
    @media (max-width:760px){.admin-user-quote-control-grid{grid-template-columns:1fr;}}

  
    .admin-realtime-dashboard{overflow:hidden;}
    .admin-realtime-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px;}
    .admin-realtime-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px;}
    .admin-realtime-card{background:#fff;border:1px solid #dbe3ef;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.04);}
    .admin-realtime-card h3{margin:0;font-size:16px;color:#0f172a;display:flex;align-items:center;justify-content:space-between;gap:10px;}
    .admin-realtime-card-sub{font-size:12px;color:#64748b;font-weight:400;white-space:nowrap;}
    .admin-realtime-section-body{margin-top:10px;}
    .admin-realtime-stat-row{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin:0;}
    .admin-realtime-stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px 14px;width:150px;min-height:72px;box-sizing:border-box;}
    .admin-realtime-stat b{display:block;font-size:24px;line-height:1.1;color:#2563eb;margin-bottom:6px;}
    .admin-realtime-stat span{font-size:12px;color:#64748b;line-height:1.35;}
    .admin-realtime-table{width:100%;border-collapse:collapse;font-size:13px;}
    .admin-realtime-table th,.admin-realtime-table td{padding:10px 8px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top;}
    .admin-realtime-table th{font-size:12px;color:#64748b;background:#f8fafc;}
    .admin-realtime-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#22c55e;margin-right:6px;box-shadow:0 0 0 4px rgba(34,197,94,.12);}
    .admin-realtime-events{max-height:360px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding-right:4px;}
    .admin-realtime-event{border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;background:#fff;}
    .admin-realtime-event b{display:block;color:#0f172a;margin-bottom:4px;}
    .admin-realtime-event .meta{font-size:12px;color:#64748b;line-height:1.5;word-break:break-all;}
    .admin-realtime-url{max-width:640px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2563eb;}
    .admin-realtime-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#f8fbff;border:1px solid #dbeafe;border-radius:14px;padding:10px 12px;margin:6px 0 12px;color:#334155;font-size:13px;}
    .admin-realtime-filter-bar b{color:#1d4ed8;}
    .admin-realtime-filter-bar button{height:30px;border-radius:999px;padding:0 12px;}
    .admin-realtime-filter-help{background:#fffdf7;border-color:#fde68a;color:#92400e;}
    .admin-realtime-user-row{cursor:pointer;}
    .admin-realtime-user-row:hover td{background:#f8fbff;}
    .admin-realtime-user-row.is-selected td{background:#eff6ff;}
    .admin-realtime-user-row.is-selected:hover td{background:#e0f2fe;}
    .admin-realtime-user-row a.admin-link{cursor:pointer;}
    @media(max-width:1180px){.admin-realtime-dashboard-head{display:block}.admin-realtime-toolbar{justify-content:flex-start;margin-top:10px}.admin-realtime-stat{width:calc(50% - 5px);}}
    @media(max-width:760px){.admin-realtime-stat{width:100%;}.admin-realtime-filter-bar{align-items:flex-start;flex-direction:column;}.admin-realtime-card h3{align-items:flex-start;flex-direction:column;}}

    .admin-realtime-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px;}
    .admin-realtime-toolbar label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px;}
    .admin-realtime-toolbar input[type="number"]{width:72px;height:30px;border:1px solid #dbe3ef;border-radius:10px;padding:0 8px;background:#fff;color:#0f172a;}

  
    .admin-task-monitor-page{display:flex;flex-direction:column;gap:14px;}
    .admin-task-monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;}
    .admin-task-monitor-title{font-size:20px;font-weight:900;color:#0f172a;margin-bottom:4px;}
    .admin-task-monitor-sub{font-size:13px;color:#64748b;line-height:1.6;}
    .admin-task-monitor-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;}
    .admin-task-monitor-kpi{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:12px 14px;min-height:70px;}
    .admin-task-monitor-kpi b{display:block;font-size:24px;line-height:1.15;color:#2563eb;margin-bottom:6px;}
    .admin-task-monitor-kpi span{font-size:12px;color:#64748b;}
    .admin-task-monitor-grid{display:grid;grid-template-columns:1.05fr 1.45fr;gap:14px;align-items:start;}
    .admin-task-monitor-card{background:#fff;border:1px solid #dbe3ef;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.04);overflow:hidden;}
    .admin-task-monitor-card h3{margin:0 0 10px;font-size:16px;color:#0f172a;display:flex;align-items:center;justify-content:space-between;gap:10px;}
    .admin-task-monitor-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
    .admin-task-monitor-toolbar button{height:34px;border-radius:12px;padding:0 12px;}
    .admin-task-monitor-filter{height:34px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;padding:0 10px;}
    .admin-task-status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;border:1px solid #e2e8f0;background:#f8fafc;color:#475569;white-space:nowrap;}
    .admin-task-status-pill.online{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
    .admin-task-status-pill.offline{border-color:#fecaca;background:#fef2f2;color:#b91c1c;}
    .admin-task-status-pill.warn{border-color:#fde68a;background:#fffbeb;color:#92400e;}
    .admin-task-status-pill.bad{border-color:#fecaca;background:#fff1f2;color:#be123c;}
    .admin-task-monitor-table{width:100%;border-collapse:collapse;font-size:13px;}
    .admin-task-monitor-task-table{table-layout:fixed;}
    .admin-task-monitor-task-table th:nth-child(1),.admin-task-monitor-task-table td:nth-child(1){width:24%;}
    .admin-task-monitor-task-table th:nth-child(2),.admin-task-monitor-task-table td:nth-child(2){width:19%;}
    .admin-task-monitor-task-table th:nth-child(3),.admin-task-monitor-task-table td:nth-child(3){width:13%;}
    .admin-task-monitor-task-table th:nth-child(4),.admin-task-monitor-task-table td:nth-child(4){width:23%;}
    .admin-task-monitor-task-table th:nth-child(5),.admin-task-monitor-task-table td:nth-child(5){width:21%;}
    .admin-task-monitor-table th,.admin-task-monitor-table td{padding:9px 8px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top;}
    .admin-task-monitor-table th{font-size:12px;color:#64748b;background:#f8fafc;position:sticky;top:0;z-index:1;}
    .admin-task-monitor-table td .muted{line-height:1.45;}
    .admin-task-monitor-scroll{max-height:430px;overflow:auto;border:1px solid #eef2f7;border-radius:14px;}
    .admin-task-monitor-url{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2563eb;}
    .admin-task-kind{font-weight:900;color:#0f172a;}
    .admin-task-kind small{display:block;color:#64748b;font-weight:600;margin-top:3px;}
    @media(max-width:1180px){.admin-task-monitor-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}.admin-task-monitor-grid{grid-template-columns:1fr;}}
    @media(max-width:760px){.admin-task-monitor-kpis{grid-template-columns:1fr 1fr;}.admin-task-monitor-table{min-width:760px;}.admin-task-monitor-head{display:block}.admin-task-monitor-toolbar{margin-top:10px;}}

  

    /* V51 实时监控：统计方块、刷新控件同一行；点击行筛选、点击会员ID跳转。 */
    .admin-realtime-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px;}
    .admin-realtime-topline .admin-realtime-stat-row{flex:1 1 auto;margin:0;align-items:stretch;}
    .admin-realtime-control-area{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;flex:0 0 auto;min-width:420px;}
    .admin-realtime-control-area .admin-realtime-toolbar{margin:0;justify-content:flex-end;}
    .admin-realtime-updated{margin:0;text-align:right;white-space:nowrap;}
    .admin-realtime-stat{width:150px;min-height:72px;}
    .admin-realtime-filter-bar{margin:0 0 14px;}
    .admin-realtime-user-row{cursor:pointer;}
    .admin-realtime-user-row .admin-realtime-user-id-link{cursor:pointer;text-decoration:none;}
    .admin-realtime-user-row .admin-realtime-user-id-link:hover{text-decoration:underline;}
    @media(max-width:1320px){.admin-realtime-control-area{align-items:flex-start;min-width:0;width:100%;}.admin-realtime-control-area .admin-realtime-toolbar{justify-content:flex-start;}.admin-realtime-updated{text-align:left;}.admin-realtime-stat{width:calc(25% - 8px);min-width:135px;}}
    @media(max-width:760px){.admin-realtime-topline{display:block;}.admin-realtime-control-area{margin-top:10px;width:100%;}.admin-realtime-control-area .admin-realtime-toolbar{justify-content:flex-start;}.admin-realtime-stat{width:100%;}.admin-realtime-updated{white-space:normal;}}


    html[data-initial-route="home"] #view-landing{display:none!important;}
    html[data-initial-route="home"] #view-home{display:block!important;}
    html[data-initial-route="app"] #view-landing{display:none!important;}
    /* 营销首页 + 底部：沿用现有浅蓝白卡片风格，增强科技感与转化引导。 */
    .landing-card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden;}
    .landing-page{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 48%,#f8fbff 100%);border:1px solid #dbeafe;box-shadow:0 18px 56px rgba(37,99,235,.10);}
    .landing-page:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 8% 8%,rgba(96,165,250,.24),transparent 28%),radial-gradient(circle at 88% 12%,rgba(59,130,246,.16),transparent 28%),linear-gradient(rgba(37,99,235,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.045) 1px,transparent 1px);background-size:auto,auto,42px 42px,42px 42px;pointer-events:none;}
    .landing-inner{position:relative;z-index:1;display:grid;gap:28px;padding:34px;}
    .landing-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:28px;align-items:center;min-height:430px;}
    .landing-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #bfdbfe;border-radius:999px;background:rgba(255,255,255,.72);color:#1d4ed8;font-size:13px;font-weight:900;box-shadow:0 8px 24px rgba(37,99,235,.08);}
    .landing-title{margin:18px 0 0;font-size:clamp(34px,5vw,58px);line-height:1.08;letter-spacing:-1.8px;color:#0f172a;font-weight:950;}
    .landing-title span{background:linear-gradient(135deg,#1d4ed8,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent;}
    .landing-subtitle{max-width:680px;margin:18px 0 0;color:#475569;font-size:17px;line-height:1.9;}
    .landing-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:26px;}
    .landing-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:900;border:1px solid transparent;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;}
    .landing-btn:hover{transform:translateY(-1px);}
    .landing-btn.primary{color:#fff;background:linear-gradient(135deg,#2563eb,#38bdf8);box-shadow:0 14px 32px rgba(37,99,235,.24);}
    .landing-btn.secondary{color:#0f172a;background:rgba(255,255,255,.86);border-color:#dbeafe;box-shadow:0 8px 22px rgba(15,23,42,.06);}
    .landing-trust{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;color:#64748b;font-size:13px;}
    .landing-trust span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid #e2e8f0;}
    .landing-preview{position:relative;}
    .landing-preview-shell{position:relative;padding:16px;border-radius:28px;background:rgba(255,255,255,.66);border:1px solid rgba(191,219,254,.95);box-shadow:0 28px 64px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.85);backdrop-filter:blur(12px);}
    .landing-window{overflow:hidden;border-radius:22px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 34px rgba(15,23,42,.08);}
    .landing-window-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fbff);}
    .landing-dots{display:flex;gap:6px;}.landing-dots i{width:9px;height:9px;border-radius:999px;background:#cbd5e1;}.landing-dots i:nth-child(1){background:#60a5fa;}.landing-dots i:nth-child(2){background:#93c5fd;}.landing-dots i:nth-child(3){background:#bfdbfe;}
    .landing-window-title{font-size:12px;color:#64748b;font-weight:800;}
    .landing-search-mock{margin:16px;padding:13px;border-radius:16px;border:1px solid #bfdbfe;background:linear-gradient(180deg,#fffef7 0%,#eff6ff 100%);display:flex;align-items:center;justify-content:space-between;gap:12px;color:#0f172a;}
    .landing-search-mock strong{font-size:15px;}.landing-search-mock span{font-size:12px;color:#2563eb;font-weight:900;background:#dbeafe;border-radius:999px;padding:5px 9px;white-space:nowrap;}
    .landing-status-list{display:grid;gap:10px;padding:0 16px 16px;}
    .landing-status-item{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid #eef2f7;border-radius:16px;background:#fff;}
    .landing-status-icon{width:38px;height:38px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#2563eb;font-weight:950;}
    .landing-status-name{font-weight:900;color:#0f172a;}.landing-status-desc{font-size:12px;color:#64748b;margin-top:2px;}
    .landing-status-pill{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900;background:#ecfdf5;color:#047857;white-space:nowrap;}
    .landing-status-pill.wait{background:#fef9c3;color:#a16207;}.landing-status-pill.run{background:#dbeafe;color:#1d4ed8;}
    .landing-mini-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 16px 16px;}
    .landing-mini-kpi{padding:12px;border-radius:16px;background:#f8fbff;border:1px solid #e2e8f0;}.landing-mini-kpi b{display:block;font-size:20px;color:#0f172a;}.landing-mini-kpi span{font-size:12px;color:#64748b;}
    .landing-section{display:grid;gap:18px;}
    .landing-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;}
    .landing-section-title{font-size:26px;font-weight:950;color:#0f172a;letter-spacing:-.6px;}.landing-section-sub{max-width:650px;color:#64748b;line-height:1.8;}
    .landing-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
    .landing-feature-card{position:relative;overflow:hidden;padding:20px;border-radius:22px;background:rgba(255,255,255,.84);border:1px solid #e2e8f0;box-shadow:0 10px 26px rgba(15,23,42,.055);}
    .landing-feature-card:before{content:"";position:absolute;right:-32px;top:-32px;width:86px;height:86px;border-radius:999px;background:rgba(96,165,250,.13);}
    .landing-feature-icon{width:42px;height:42px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;font-weight:950;box-shadow:0 12px 24px rgba(37,99,235,.18);}
    .landing-feature-title{margin-top:16px;font-size:17px;font-weight:950;color:#0f172a;}.landing-feature-text{margin-top:8px;color:#64748b;line-height:1.75;font-size:14px;}
    .landing-pain-solution{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
    .landing-panel{padding:22px;border-radius:24px;background:rgba(255,255,255,.84);border:1px solid #e2e8f0;box-shadow:0 10px 26px rgba(15,23,42,.055);}
    .landing-panel-title{font-size:19px;font-weight:950;color:#0f172a;margin-bottom:12px;}.landing-list{display:grid;gap:10px;margin:0;padding:0;list-style:none;}.landing-list li{display:flex;gap:10px;align-items:flex-start;color:#475569;line-height:1.65;}.landing-list li:before{content:"";width:8px;height:8px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 4px #dbeafe;margin-top:8px;flex:0 0 auto;}
    .landing-process{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;counter-reset:step;}
    .landing-step{position:relative;padding:18px;border-radius:20px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 8px 22px rgba(15,23,42,.05);counter-increment:step;}
    .landing-step:before{content:counter(step);width:30px;height:30px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;font-weight:950;}.landing-step b{display:block;margin-top:12px;color:#0f172a;}.landing-step span{display:block;margin-top:6px;color:#64748b;font-size:13px;line-height:1.65;}
    .landing-cta{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:24px;border-radius:26px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;box-shadow:0 20px 46px rgba(37,99,235,.22);}
    .landing-cta-title{font-size:24px;font-weight:950;letter-spacing:-.5px;}.landing-cta-sub{margin-top:8px;color:#dbeafe;line-height:1.75;}.landing-cta .landing-btn.secondary{background:#fff;color:#1d4ed8;border-color:#fff;}
    .site-footer{margin:12px;padding:28px 28px 18px;border-radius:26px;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #dbe4f0;box-shadow:0 10px 34px rgba(15,23,42,.06);}
    .site-footer.hide{display:none;}
    .site-footer-grid{display:grid;grid-template-columns:1.45fr repeat(3,minmax(150px,1fr));gap:24px;align-items:start;}.site-footer-brand{font-size:18px;font-weight:950;color:#0f172a;}.site-footer-desc{margin-top:10px;color:#64748b;line-height:1.75;max-width:420px;}.site-footer-col-title{font-weight:950;color:#0f172a;margin-bottom:10px;}.site-footer-links{display:grid;gap:8px;}.site-footer a{color:#64748b;text-decoration:none;}.site-footer a:hover{color:#2563eb;}.site-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid #e2e8f0;color:#94a3b8;font-size:12px;}
    @media(max-width:1120px){.landing-hero{grid-template-columns:1fr;}.landing-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.landing-process{grid-template-columns:repeat(2,minmax(0,1fr));}.site-footer-grid{grid-template-columns:1fr 1fr;}}
    @media(max-width:720px){.landing-inner{padding:18px;}.landing-page{border-radius:20px;}.landing-title{font-size:34px;letter-spacing:-1px;}.landing-subtitle{font-size:15px;}.landing-preview-shell{padding:10px;border-radius:22px;}.landing-status-item{grid-template-columns:34px 1fr;}.landing-status-pill{grid-column:2}.landing-mini-kpis{grid-template-columns:1fr;}.landing-feature-grid,.landing-pain-solution,.landing-process,.landing-cta,.site-footer-grid{grid-template-columns:1fr;}.landing-section-title{font-size:22px;}.landing-cta{padding:20px}.site-footer{margin:12px;padding:22px 18px 16px;}.site-footer-bottom{align-items:flex-start;flex-direction:column;}}


/* === Homepage visual decorator === */
.homepage-decorator-open body{user-select:auto;}
.landing-page.hp-editing [data-hp-edit],
.site-footer.hp-editing [data-hp-edit],
.landing-preview-shell.hp-panel-editing [data-hp-edit]{outline:2px dashed rgba(37,99,235,.38);outline-offset:3px;border-radius:6px;cursor:text;}
.landing-preview-shell.hp-panel-editing{cursor:move;z-index:6;resize:both;overflow:auto;min-width:320px;min-height:260px;}
.landing-preview-shell.hp-panel-editing:after{content:"拖动面板标题栏可移动，右下角可调整大小";position:absolute;right:12px;bottom:8px;font-size:11px;color:#64748b;background:rgba(255,255,255,.8);border:1px solid #dbeafe;border-radius:999px;padding:4px 8px;pointer-events:none;}
.hp-carousel{padding:0 16px 16px;}
.hp-carousel-slide{display:none;animation:hpFade .25s ease;}
.hp-carousel-slide.active{display:block;}
@keyframes hpFade{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}
.hp-slide-hero{display:grid;grid-template-columns:88px 1fr;gap:12px;align-items:center;margin:16px 0;padding:14px;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#ffffff);border:1px solid #dbeafe;}
.hp-slide-img{width:88px;height:72px;border-radius:16px;background:linear-gradient(135deg,#dbeafe,#eff6ff);background-size:cover;background-position:center;display:grid;place-items:center;color:#2563eb;font-weight:950;overflow:hidden;}
.hp-slide-title{font-size:17px;font-weight:950;color:#0f172a;line-height:1.25;}
.hp-slide-sub{font-size:12px;color:#64748b;margin-top:5px;line-height:1.45;}
.hp-slide-search{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#0f172a;margin-bottom:12px;}
.hp-slide-search strong{font-size:14px;}.hp-slide-search span{font-size:12px;color:#2563eb;font-weight:900;background:#dbeafe;border-radius:999px;padding:5px 9px;white-space:nowrap;}
.hp-slide-items{display:grid;gap:10px;}
.hp-slide-item{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid #eef2f7;border-radius:16px;background:#fff;}
.hp-slide-item-ico{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#2563eb;font-weight:950;}
.hp-slide-item-name{font-weight:900;color:#0f172a;}.hp-slide-item-desc{font-size:12px;color:#64748b;margin-top:2px;}.hp-slide-pill{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900;background:#ecfdf5;color:#047857;white-space:nowrap;}
.hp-carousel-dots{display:flex;justify-content:center;gap:7px;margin-top:12px;}
.hp-carousel-dots button{width:8px;height:8px;border:0;border-radius:999px;background:#cbd5e1;padding:0;cursor:pointer;}
.hp-carousel-dots button.active{width:22px;background:#2563eb;}
.homepage-decorator-window{position:fixed;right:24px;bottom:24px;width:430px;height:560px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);z-index:2300;background:rgba(255,255,255,.97);border:1px solid #dbeafe;border-radius:22px;box-shadow:0 28px 80px rgba(15,23,42,.22);backdrop-filter:blur(14px);display:none;overflow:hidden;resize:both;}
.homepage-decorator-window.show{display:flex;flex-direction:column;}
.homepage-decorator-head{height:54px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px 0 16px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fbff);cursor:move;}
.homepage-decorator-title{font-weight:950;color:#0f172a;display:flex;align-items:center;gap:8px;}
.homepage-decorator-head-actions{display:flex;gap:6px;}
.homepage-decorator-head-actions button,.homepage-decorator-btn{border:0;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-weight:900;height:32px;padding:0 11px;cursor:pointer;}
.homepage-decorator-head-actions .primary,.homepage-decorator-btn.primary{background:#2563eb;color:#fff;}
.homepage-decorator-head-actions .danger{background:#fee2e2;color:#b91c1c;}
.homepage-decorator-body{min-height:0;flex:1;overflow:auto;padding:14px;}
.homepage-decorator-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.homepage-decorator-tabs button{height:34px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#334155;font-weight:900;padding:0 12px;cursor:pointer;}
.homepage-decorator-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb;}
.homepage-decorator-pane{display:none;}.homepage-decorator-pane.active{display:block;}
.homepage-decorator-field{margin-bottom:12px;}.homepage-decorator-field label{display:block;color:#334155;font-size:12px;font-weight:900;margin-bottom:6px;}
.homepage-decorator-field input[type="text"],.homepage-decorator-field input[type="number"],.homepage-decorator-field textarea,.homepage-decorator-field select{width:100%;border:1px solid #dbe3ef;border-radius:12px;padding:9px 10px;background:#fff;color:#0f172a;font-size:13px;box-sizing:border-box;}
.homepage-decorator-field textarea{min-height:72px;resize:vertical;line-height:1.55;}
.homepage-decorator-field input[type="range"]{width:100%;}
.homepage-decorator-hint{color:#64748b;font-size:12px;line-height:1.6;background:#f8fbff;border:1px solid #e2e8f0;border-radius:14px;padding:10px;margin-bottom:12px;}
.homepage-decorator-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.homepage-decorator-slide-card{border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-bottom:12px;background:#f8fbff;}
.homepage-decorator-footer-actions{position:sticky;bottom:-14px;background:linear-gradient(180deg,rgba(255,255,255,.7),#fff 35%);padding:12px 0 0;margin-top:10px;display:flex;gap:8px;justify-content:flex-end;}
.homepage-decorator-floating-button{position:fixed;right:24px;bottom:24px;z-index:2200;border:0;border-radius:999px;background:#2563eb;color:#fff;font-weight:950;height:44px;padding:0 18px;box-shadow:0 16px 38px rgba(37,99,235,.28);cursor:pointer;display:none;}
.homepage-decorator-floating-button.show{display:inline-flex;align-items:center;gap:8px;}
.hp-upload-float{position:absolute;z-index:20;display:none;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid #bfdbfe;box-shadow:0 12px 30px rgba(37,99,235,.12);color:#1d4ed8;font-size:12px;font-weight:900;cursor:move;}
.landing-page.hp-editing .hp-upload-float{display:inline-flex;}
.hp-upload-float input{max-width:136px;font-size:11px;}
.site-footer.hp-custom-height{overflow:hidden;}
@media(max-width:720px){.homepage-decorator-window{left:12px!important;right:auto!important;top:12px!important;bottom:auto!important;width:calc(100vw - 24px)!important;height:min(620px,calc(100vh - 24px))!important}.homepage-decorator-floating-button{right:14px;bottom:14px}.homepage-decorator-grid2{grid-template-columns:1fr}.hp-upload-float{display:none!important;}}


/* === advanced homepage decorator fix === */
.hp-adv-selected{outline:3px solid rgba(37,99,235,.75)!important;outline-offset:4px!important;box-shadow:0 0 0 6px rgba(37,99,235,.12)!important;position:relative!important}
.hp-adv-hidden{display:none!important}
.hp-adv-movable{cursor:move!important}
.hp-adv-toolbar{position:fixed;z-index:2800;display:none;gap:6px;align-items:center;padding:7px;border-radius:999px;background:#0f172a;box-shadow:0 18px 44px rgba(15,23,42,.24)}
.hp-adv-toolbar.show{display:flex}
.hp-adv-toolbar button{height:28px;border:0;border-radius:999px;background:#334155;color:#fff;font-size:12px;font-weight:900;padding:0 10px;cursor:pointer}
.hp-adv-toolbar button.primary{background:#2563eb}.hp-adv-toolbar button.danger{background:#ef4444}
.homepage-decorator-window.adv{width:560px;height:680px;min-width:420px;min-height:460px}
.homepage-decorator-window.adv .homepage-decorator-field input[type=color]{width:52px;height:36px;padding:0;border-radius:10px;border:1px solid #dbe3ef;background:#fff}
.homepage-decorator-window.adv .hp-row{display:flex;gap:8px;align-items:center}
.homepage-decorator-window.adv .hp-section{font-size:13px;color:#0f172a;font-weight:950;margin:14px 0 8px;padding-top:10px;border-top:1px solid #e2e8f0}
.homepage-decorator-window.adv .hp-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.homepage-decorator-window.adv .hp-list{display:grid;gap:8px}
.homepage-decorator-window.adv .hp-list-item{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fbff;padding:8px}
.homepage-decorator-window.adv .homepage-decorator-btn.red{background:#ef4444;color:#fff}.homepage-decorator-window.adv .homepage-decorator-btn.green{background:#059669;color:#fff}.homepage-decorator-window.adv .homepage-decorator-btn.gray{background:#64748b;color:#fff}
.landing-page.hp-adv-editing [data-hp-key], .site-footer.hp-adv-editing [data-hp-key], .hp-panel-editing [contenteditable=true]{outline:2px dashed rgba(37,99,235,.38);outline-offset:3px;border-radius:6px}
.landing-page.hp-adv-editing .landing-feature-card:hover,.landing-page.hp-adv-editing .landing-step:hover,.landing-page.hp-adv-editing .landing-panel:hover,.landing-page.hp-adv-editing .landing-cta:hover,.site-footer.hp-adv-editing:hover,.landing-page.hp-adv-editing .landing-preview-shell:hover{outline:2px solid rgba(37,99,235,.22);outline-offset:3px}
.site-footer.hp-adv-editing{resize:vertical;overflow:auto;min-height:110px}
.site-footer.hp-adv-editing:after{content:"页脚可拖拽调整高度，文字可编辑，选中模块可移动/删除";position:absolute;right:12px;bottom:8px;font-size:11px;color:#64748b;background:rgba(255,255,255,.88);border:1px solid #dbeafe;border-radius:999px;padding:4px 8px;pointer-events:none}
.hp-slide-img{cursor:pointer}
@media(max-width:720px){.homepage-decorator-window.adv{left:12px!important;top:12px!important;width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important}.hp-adv-toolbar{left:10px!important;right:10px!important;top:auto!important;bottom:76px!important;flex-wrap:wrap;justify-content:center;border-radius:18px}}


/* === homepage decorator v4 rich editor === */
.hp-v4-selected{outline:3px solid rgba(37,99,235,.78)!important;outline-offset:4px!important;box-shadow:0 0 0 6px rgba(37,99,235,.12)!important;position:relative!important;z-index:20!important}
.hp-v4-hidden{display:none!important}.hp-v4-movable{cursor:move!important}
.hp-v4-toolbar{position:fixed;z-index:2900;display:none;gap:6px;align-items:center;padding:7px;border-radius:999px;background:#0f172a;box-shadow:0 18px 44px rgba(15,23,42,.24)}.hp-v4-toolbar.show{display:flex}.hp-v4-toolbar button{height:28px;border:0;border-radius:999px;background:#334155;color:#fff;font-size:12px;font-weight:900;padding:0 10px;cursor:pointer}.hp-v4-toolbar button.primary{background:#2563eb}.hp-v4-toolbar button.danger{background:#ef4444}
.homepage-decorator-window.v4{width:620px;height:720px;min-width:440px;min-height:460px}.homepage-decorator-window.v4 .homepage-decorator-field input[type=color]{width:52px;height:36px;padding:0;border-radius:10px;border:1px solid #dbe3ef;background:#fff}.homepage-decorator-window.v4 .hp-row{display:flex;gap:8px;align-items:center}.homepage-decorator-window.v4 .hp-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.homepage-decorator-window.v4 .hp-section{font-size:13px;color:#0f172a;font-weight:950;margin:14px 0 8px;padding-top:10px;border-top:1px solid #e2e8f0}.homepage-decorator-window.v4 .hp-list{display:grid;gap:8px}.homepage-decorator-window.v4 .hp-list-item{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fbff;padding:8px}.homepage-decorator-window.v4 .homepage-decorator-btn.red{background:#ef4444;color:#fff}.homepage-decorator-window.v4 .homepage-decorator-btn.green{background:#059669;color:#fff}.homepage-decorator-window.v4 .homepage-decorator-btn.gray{background:#64748b;color:#fff}.homepage-decorator-window.v4 .homepage-decorator-btn.orange{background:#f59e0b;color:#fff}.homepage-decorator-window.v4 .hp-mini{font-size:12px;color:#64748b;line-height:1.6}
.landing-page.hp-v4-editing [data-hp-key],.site-footer.hp-v4-editing [data-hp-key],.hp-panel-editing [contenteditable=true]{outline:2px dashed rgba(37,99,235,.38);outline-offset:3px;border-radius:6px}.landing-page.hp-v4-editing .landing-feature-card:hover,.landing-page.hp-v4-editing .landing-step:hover,.landing-page.hp-v4-editing .landing-panel:hover,.landing-page.hp-v4-editing .landing-cta:hover,.site-footer.hp-v4-editing:hover,.landing-page.hp-v4-editing .landing-preview-shell:hover{outline:2px solid rgba(37,99,235,.22);outline-offset:3px}.site-footer.hp-v4-editing{resize:vertical;overflow:auto;min-height:0!important}.site-footer.hp-v4-editing:after{content:"页脚可拖拽调整高度，文字可编辑，选中模块可移动/删除";position:absolute;right:12px;bottom:8px;font-size:11px;color:#64748b;background:rgba(255,255,255,.88);border:1px solid #dbeafe;border-radius:999px;padding:4px 8px;pointer-events:none}.site-footer.hp-v4-custom-height{min-height:0!important;overflow:hidden!important}.hp-slide-img{cursor:pointer}.hp-v4-rich-mark{border-radius:4px;padding:0 1px}
@media(max-width:720px){.homepage-decorator-window.v4{left:12px!important;top:12px!important;width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important}.hp-v4-toolbar{left:10px!important;right:10px!important;top:auto!important;bottom:76px!important;flex-wrap:wrap;justify-content:center;border-radius:18px}}


/* 充值窗口重排：清除旧版多层样式冲突，统一组件尺寸 */
.recharge-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-width:760px!important;max-height:calc(100dvh - 32px);overflow-x:hidden;overflow-y:auto;padding:0!important;border-radius:16px!important}
.recharge-dialog *{box-sizing:border-box}
.recharge-top{padding:16px 24px 10px;display:flex;align-items:center;justify-content:space-between}
.recharge-top h2{margin:0;font-size:21px;line-height:1.35}
.recharge-eyebrow{font-size:10px}
.recharge-balance{margin:0 24px 12px;padding:12px 16px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:nowrap;background:#f1f5f9!important;border:1px solid #e2e8f0;border-radius:10px;color:#334155!important}
.recharge-balance-label{color:#475569!important;font-size:14px;white-space:nowrap}
.recharge-balance-value{color:#1d4ed8!important;font-size:21px;line-height:1.25;margin:0;font-weight:750;white-space:nowrap;letter-spacing:0}
.recharge-tabs{padding:0 24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.recharge-tab{min-width:0;padding:10px 4px;font-size:14px}
.recharge-panel{padding:14px 24px 18px;min-width:0}
.recharge-panel[hidden]{display:none!important}
.recharge-section-title{font-size:14px;margin:0 0 10px}
.recharge-wechat-grid{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);align-items:stretch;gap:12px;margin:0;width:100%}
.recharge-contact{min-width:0;border:1px solid #e2e8f0;border-radius:10px;padding:15px;background:#fff}
.recharge-contact-left{display:flex;flex-direction:column;align-items:flex-start}
.recharge-field-label{font-size:12px;color:#64748b}
.recharge-wechat-id{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin:6px 0 10px;font-size:16px}
.recharge-wechat-id b{overflow-wrap:anywhere}
.recharge-contact button.ghost{padding:5px 10px;font-size:12px;line-height:1.25;white-space:nowrap;flex-shrink:0}
.recharge-scan{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-top:0;min-width:0;text-align:left}
.recharge-scan .recharge-qr{display:block;width:112px;height:112px;max-width:112px;max-height:112px;object-fit:contain;padding:4px;border:1px solid #edf2f7;border-radius:7px;flex-shrink:0}
.recharge-scan span{margin:0;font-size:12px;color:#64748b}
.recharge-identity{display:flex;flex-direction:column;gap:12px;margin:12px 0 0;min-width:0}
.recharge-id-row{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;justify-content:start;gap:7px;min-width:0;font-size:12px}
.recharge-id-row span{color:#64748b;white-space:nowrap}
.recharge-id-row b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
.recharge-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px;margin:9px 0 12px}
.recharge-amount{min-height:46px;border-radius:8px}
.recharge-amount strong{font-size:17px}
.recharge-buy{padding:11px;font-size:14px;border-radius:8px}
.recharge-shop-alert{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;padding:9px 11px;background:#fff8ea;border:1px solid #f3d59b;border-radius:8px;font-size:12px;line-height:1.5;color:#79490c}
.recharge-shop-alert-icon{flex-shrink:0}
.recharge-divider{margin:12px 0 8px}
.recharge-code-label{margin:5px 0 5px}
.recharge-code-input{width:100%;min-height:52px;padding:8px 10px;resize:vertical}
.recharge-code-row{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.recharge-history{margin-top:12px;padding-top:9px}
@media(max-width:620px){.recharge-dialog{max-height:calc(100dvh - 16px)}.recharge-top{padding:12px 15px 9px}.recharge-balance{margin:0 15px 10px;padding:10px 12px}.recharge-balance-value{font-size:19px}.recharge-tabs{padding:0 15px;gap:4px}.recharge-tab{font-size:13px}.recharge-tab span{display:block;margin:2px 0 0}.recharge-panel{padding:12px 15px 16px}.recharge-wechat-grid{grid-template-columns:minmax(0,1fr)}.recharge-contact{padding:12px}.recharge-identity{margin-top:10px}.recharge-id-row{grid-template-columns:76px minmax(0,1fr) auto}.recharge-amounts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:365px){.recharge-tab{font-size:12px}.recharge-id-row{grid-template-columns:76px minmax(0,1fr) auto;gap:4px}.recharge-balance-label{font-size:12px}.recharge-balance-value{font-size:17px}}

/* Account recharge: layout refinement */
.recharge-dialog .recharge-wechat-id{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0 0 12px;font-size:15px;max-width:100%}
.recharge-dialog .recharge-wechat-id .recharge-field-label{flex:0 0 auto;white-space:nowrap;font-size:12px}
.recharge-dialog .recharge-wechat-id b{min-width:0;overflow-wrap:anywhere;font-size:15px}
.recharge-dialog .recharge-scan{display:flex;flex-direction:column;align-items:center;align-self:center;gap:6px;text-align:center;width:100%}
.recharge-dialog .recharge-scan .recharge-qr{width:128px;height:128px;max-width:100%;max-height:none}
.recharge-dialog .recharge-scan span{display:block;font-size:12px;margin:0;line-height:1.4}
.recharge-dialog .recharge-shop-alert{align-items:center;gap:8px;padding:9px 12px;flex-wrap:nowrap}
.recharge-dialog .recharge-shop-alert>span:last-child{display:inline;min-width:0;line-height:1.55}
.recharge-dialog .recharge-shop-alert strong{display:inline;font-weight:700;white-space:nowrap}
.recharge-dialog .recharge-redeem-line{display:flex;align-items:stretch;gap:10px;min-width:0;margin-top:6px}
.recharge-dialog .recharge-redeem-line .recharge-code-input{flex:1;min-width:0;min-height:48px;height:48px;max-height:120px;box-sizing:border-box;resize:vertical;margin:0}
.recharge-dialog .recharge-redeem-line button{flex:0 0 auto;min-width:112px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-weight:650;padding:0 17px;cursor:pointer}
.recharge-dialog .recharge-redeem-line button:hover{background:#1d4ed8}
.recharge-dialog .recharge-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 24px 10px;border-bottom:0}
.recharge-dialog .recharge-tab{border:1px solid #e2e8f0!important;border-radius:10px!important;background:#f8fafc!important;color:#475569!important;padding:12px 10px!important;box-shadow:none!important;transition:background .12s ease,border-color .12s ease}
.recharge-dialog .recharge-tab:hover{background:#f1f5f9!important;border-color:#cbd5e1!important}
.recharge-dialog .recharge-tab.active,.recharge-dialog .recharge-tab[aria-selected="true"]{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #60a5fa!important;box-shadow:inset 0 0 0 1px #93c5fd!important}
.recharge-dialog .recharge-tab:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:620px){.recharge-dialog .recharge-tabs{padding:0 15px 9px;gap:7px}.recharge-dialog .recharge-tab{padding:10px 6px!important}.recharge-dialog .recharge-redeem-line button{min-width:90px;padding:0 10px}.recharge-dialog .recharge-wechat-id{gap:6px}}
@media(max-width:390px){.recharge-dialog .recharge-shop-alert strong{white-space:normal}.recharge-dialog .recharge-redeem-line{gap:6px}.recharge-dialog .recharge-redeem-line button{min-width:82px;padding:0 8px}}
