    /* 对齐 pencil-designer：主色 #1976d2、浅色后台、Material 标签、圆角卡片 */
    :root {
      --bg: #f0f2f5;
      --main-bg: #e8ecf1;
      --panel: #ffffff;
      --text: #1f2937;
      --muted: #666666;
      --text3: #999999;
      --line: #e5e7eb;
      --border2: #d0d0d0;
      --brand: #1976d2;
      --brand-hover: #1565c0;
      --brand-soft: #e3f2fd;
      --brand-deep: #0d47a1;
      --danger: #c62828;
      --warn: #e65100;
      --ok: #2e7d32;
      --live: #d32f2f;
      --shadow: 0 2px 8px rgba(0, 0, 0, .06);
      --radius: 8px;
      --radius-sm: 4px;
      --topbar-h: 52px;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: 13px;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: row;
      height: 100vh;
      overflow: hidden;
    }
    .proto-stage {
      flex: 1 1 auto;
      min-width: 0;
      height: 100vh;
      overflow: hidden;
      position: relative;
      display: flex;
      flex-direction: column;
      background: var(--bg);
    }
    button, input, select, textarea { font: inherit; color: inherit; }
    button { cursor: pointer; }
    a { color: var(--brand); text-decoration: none; }
    a:hover { color: var(--brand-hover); }
    .hidden { display: none !important; }

    #toast {
      position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
      background: #1976d2; color: #fff; padding: 12px 20px; border-radius: 8px;
      opacity: 0; pointer-events: none; z-index: 200;
      transition: .2s; box-shadow: 0 4px 16px rgba(25,118,210,.35);
    }
    #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .modal-mask {
      position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 150;
      display: none; align-items: center; justify-content: center; padding: 20px;
    }
    .modal-mask.show { display: flex; }
    #goodsStockMask.show { z-index: 160; }
    .modal-mask.show.anno-behind .anno-drop { display: none !important; }
    .modal {
      width: min(420px, 100%); background: #fff; border: 1px solid var(--line);
      border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }
    .modal h3 { margin: 0 0 10px; font-size: 16px; }
    .modal p { margin: 0 0 18px; color: var(--muted); }
    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
    /* 确认弹窗：可选信息图标（仅 withIcon 的确认显示，不影响其它确认） */
    .confirm-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .confirm-hd h3 { margin: 0; }
    .confirm-ico {
      display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
      background: #1976d2; color: #fff; font-size: 14px; font-weight: 700; font-style: normal;
      align-items: center; justify-content: center; flex-shrink: 0;
    }
    .confirm-ico[hidden] { display: none; }
    /* 确认弹窗需浮在优惠券弹窗（.modal-mask z-index:150）之上 */
    #confirmMask.show { z-index: 170; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      height: 34px; padding: 0 14px; border: 1px solid #d0d0d0;
      background: #fff; border-radius: var(--radius-sm); cursor: pointer;
      transition: all .15s; white-space: nowrap; color: var(--text);
    }
    .btn:hover { color: var(--brand); border-color: var(--brand); background: #f5f8ff; }
    .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
    .btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
    .btn-danger { background: #fff; border-color: #ffcdd2; color: var(--danger); }
    .btn-danger:hover { background: #fce4ec; color: var(--danger); }
    .btn-danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
    .btn-danger.solid:hover { background: #b71c1c; color: #fff; }
    .btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
    .btn-ghost:hover { color: var(--brand); background: #f5f8ff; }
    .btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
    .btn:disabled { opacity: .45; cursor: not-allowed; }

    /* Login — 左右分栏，对齐参考截图 */
    #view-login {
      min-height: 0; height: 100%; flex: 1; display: flex; padding: 0;
      background: #eef2f7; position: relative;
    }
    .login-visual {
      flex: 1.35; min-width: 0; position: relative; overflow: hidden;
      background-color: #e8eee8;
      background-image: url("pc-login-ref.png");
      background-repeat: no-repeat;
      background-size: 172% 100%;
      background-position: left center;
    }
    .login-visual::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(90deg, transparent 72%, #eef2f7 100%);
      pointer-events: none;
    }
    .login-form-wrap {
      flex: 1; min-width: 380px; max-width: 560px;
      display: flex; align-items: center; justify-content: center;
      padding: 40px 36px; background: #eef2f7;
    }
    .login-card {
      width: min(400px, 100%); background: #fff; border: none;
      border-radius: 20px; padding: 40px 36px 32px;
      box-shadow: 0 12px 40px rgba(31, 45, 80, .08);
    }
    .login-card .logo {
      width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
      background: linear-gradient(135deg, #4f6bff, #a855f7);
      color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px;
      overflow: hidden;
    }
    .login-card .logo svg { width: 30px; height: 30px; display: block; }
    .login-card .logo.has-img { background: #fff; box-shadow: inset 0 0 0 1px #eef1f5; }
    .login-card .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .login-card h1 {
      margin: 0 0 28px; font-size: 20px; color: #1a1a1a;
      text-align: center; font-weight: 700; letter-spacing: .04em;
    }
    .login-field { margin-bottom: 14px; position: relative; }
    .login-field .ico {
      position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
      width: 18px; height: 18px; color: #8aa0b8; pointer-events: none;
    }
    .login-field input {
      width: 100%; height: 48px; padding: 0 44px 0 46px;
      border-radius: 24px; border: none; outline: none;
      background: #eaf2ff; color: var(--text); font-size: 14px;
    }
    .login-field input:focus { box-shadow: 0 0 0 3px rgba(47, 107, 243, .22); }
    .login-field .eye {
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      width: 32px; height: 32px; border: 0; background: transparent;
      color: #8aa0b8; cursor: pointer; display: grid; place-items: center;
    }
    .login-field .eye:hover { color: var(--brand); }
    .login-remember {
      display: flex; align-items: center; gap: 8px;
      margin: 8px 4px 18px; font-size: 13px; color: #555; cursor: pointer; user-select: none;
    }
    .login-remember input { accent-color: #2f6bf3; width: 16px; height: 16px; }
    .btn-login {
      width: 100%; height: 48px; border: 0; border-radius: 24px;
      background: #2f6bf3; color: #fff; font-size: 16px; font-weight: 600;
      box-shadow: 0 8px 18px rgba(47, 107, 243, .28);
    }
    .btn-login:hover { background: #2560e8; }
    .login-hint { margin-top: 14px; font-size: 12px; color: var(--text3); text-align: center; }
    .field { margin-bottom: 14px; }
    .field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
    .field input, .field select,
    .filter-box input, .filter-box select {
      width: 100%; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
      border: 1px solid #d0d0d0; background: #fff; color: var(--text); outline: none;
    }
    .field input:focus, .field select:focus,
    .filter-box input:focus, .filter-box select:focus {
      border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 118, 210, .15);
    }
    @media (max-width: 860px) {
      .login-visual { display: none; }
      .login-form-wrap { max-width: none; flex: 1; }
    }

    /* App shell — top nav like pencil Material */
    #view-app { display: none; min-height: 0; height: 100%; flex: 1; flex-direction: column; background: var(--main-bg); }
    #view-app.show { display: flex; }
    #view-app.living-mode { background: #1a1a1a; }
    .topbar {
      height: var(--topbar-h); flex-shrink: 0;
      display: flex; align-items: center; gap: 12px; padding: 0 20px;
      background: #fff; border-bottom: 1px solid #e0e0e0;
      position: sticky; top: 0; z-index: 40;
    }
    .brand-mark {
      width: 28px; height: 28px; border-radius: 6px;
      background: linear-gradient(135deg, #4f6bff, #a855f7);
      color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px;
      overflow: hidden;
    }
    .brand-mark svg { width: 17px; height: 17px; display: block; }
    .brand-mark.has-img { background: #fff; box-shadow: inset 0 0 0 1px #eef1f5; }
    .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .topbar .brand { font-size: 15px; font-weight: 700; color: #1f2937; margin-right: 8px; white-space: nowrap; }
    .top-nav { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; }
    .top-nav button {
      height: 36px; padding: 0 14px; border: 0; background: transparent; color: #555;
      border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    }
    .top-nav button:hover { color: var(--brand); background: #f0f5ff; }
    .top-nav button.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
    .top-nav .ico { opacity: .7; font-size: 14px; }
    .topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
    .proto-tag {
      background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2;
      padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600;
    }
    .user-chip {
      display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
      border-radius: 20px; background: #f5f5f5; border: 1px solid var(--line);
    }
    .avatar {
      width: 28px; height: 28px; border-radius: 50%;
      background: linear-gradient(135deg, #64b5f6, #1976d2);
      color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px;
    }
    .avatar.lg { width: 56px; height: 56px; font-size: 22px; }

    .main { flex: 1; min-height: 0; overflow: auto; padding: 16px 24px 40px; max-width: 1400px; width: 100%; margin: 0 auto; }
    .page { display: none; animation: fade .18s ease; }
    .page.active { display: block; }
    @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

    /* Home */
    .home-layout {
      display: grid; grid-template-columns: 1fr 360px; gap: 16px;
      height: calc(100vh - 120px); min-height: 520px;
    }
    @media (max-width: 960px) { .home-layout { grid-template-columns: 1fr; } }
    .home-stage {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow);
      display: flex; flex-direction: column; min-height: 520px; position: relative; overflow: hidden;
    }
    .home-stage .center {
      flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
      color: var(--muted); background: #fafbfc; padding: 24px 20px;
    }
    .home-stage .center .cam-ico {
      width: 72px; height: 72px; border-radius: 16px; background: var(--brand-soft);
      color: var(--brand); display: grid; place-items: center; font-size: 32px;
    }
    .home-stage .center h2 { margin: 0; color: #1f2937; font-size: 22px; font-weight: 700; }
    .home-preview-card {
      width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    }
    .home-preview-cover {
      width: 160px; height: 160px; border-radius: 12px; position: relative; overflow: hidden;
      box-shadow: 0 8px 24px rgba(25, 118, 210, .18);
    }
    .home-preview-cover .badge {
      position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 4px;
      font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45);
    }
    .home-preview-cover .badge.live { background: #c62828; }
    .home-preview-cover .badge.soon { background: #1565c0; }
    .home-preview-meta .name { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
    .home-preview-meta .time { font-size: 13px; color: var(--text3); }
    .home-stage .footer-user {
      display: flex; align-items: center; gap: 12px; padding: 16px 20px;
      border-top: 1px solid var(--line); background: #fff;
    }
    .home-stage .footer-user .meta .name { font-weight: 600; }
    .home-stage .footer-user .meta .id { color: var(--text3); font-size: 12px; }
    .copy-id { border: 0; background: transparent; color: var(--muted); padding: 0 4px; cursor: pointer; }
    .copy-id:hover { color: var(--brand); }

    .side-panel {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px;
      min-height: 0; overflow: hidden;
    }
    .side-panel h3 { margin: 0 0 4px; font-size: 14px; flex-shrink: 0; }
    .side-panel .session-list {
      flex: 1; min-height: 0; overflow-y: auto;
      display: flex; flex-direction: column; gap: 10px;
    }
    .side-foot { flex-shrink: 0; text-align: center; color: var(--text3); font-size: 12px; padding: 8px 0 4px; }
    .session-card {
      display: flex; gap: 10px; padding: 10px; border-radius: var(--radius);
      background: #fafbfc; border: 1px solid var(--line); transition: .15s;
    }
    .session-card.actionable:hover { border-color: var(--brand); background: #f0f5ff; }
    .session-card .thumb {
      width: 72px; height: 72px; border-radius: 6px; flex-shrink: 0; position: relative;
      background: linear-gradient(135deg, #64b5f6, #1976d2); overflow: hidden;
    }
    .session-card .thumb .badge {
      position: absolute; inset: 0; display: grid; place-items: center;
      background: rgba(0,0,0,.4); font-size: 11px; font-weight: 600; color: #fff;
    }
    .session-card .thumb .badge.live { background: rgba(211,47,47,.55); }
    .session-card .thumb .badge.wait { background: rgba(25,118,210,.55); }
    .session-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
    .session-card .info .t { font-weight: 600; font-size: 13px; line-height: 1.3; }
    .session-card .info .s { color: var(--text3); font-size: 12px; }
    .session-card .info .soon-tag {
      display: inline-block; align-self: flex-start; margin-top: 2px;
      padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600;
      color: #1565c0; background: #e3f2fd; border: 1px solid #90caf9;
    }
    .session-card .card-actions {
      display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; justify-content: center;
    }
    .session-card .card-actions .btn { padding: 4px 10px; font-size: 12px; min-width: 52px; }

    /* Prepare / Living */
    .split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
    @media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
    .panel {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 16px;
    }
    .panel-hd {
      display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
    }
    .panel-hd h3 { margin: 0; font-size: 15px; }
    .preview-box {
      position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
      background: #111827; border: 1px solid var(--line);
    }
    .preview-box video {
      width: 100%; height: 100%; object-fit: cover; background: #000; display: block;
    }
    .preview-placeholder {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 8px; color: #9ca3af; text-align: center; padding: 16px;
    }
    .status-pill {
      display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px;
      font-size: 12px; font-weight: 600; background: #f5f5f5; color: var(--muted); border: 1px solid var(--line);
    }
    .status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); }
    .status-pill.live { background: #ffebee; color: var(--live); border-color: #ffcdd2; }
    .status-pill.live .dot { background: var(--live); box-shadow: 0 0 0 3px rgba(211,47,47,.2); animation: pulse 1.2s infinite; }
    .status-pill.ok { background: #e8f5e9; color: var(--ok); border-color: #c8e6c9; }
    .status-pill.ok .dot { background: var(--ok); }
    .status-pill.warn { background: #fff3e0; color: var(--warn); border-color: #ffe0b2; }
    .status-pill.warn .dot { background: var(--warn); }
    @keyframes pulse { 50% { opacity: .5; } }

    .kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
    @media (max-width: 800px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
    .kpi {
      background: #fafbfc; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
    }
    .kpi .l { color: var(--muted); font-size: 12px; }
    .kpi .n { font-size: 20px; font-weight: 700; margin-top: 4px; color: #1f2937; }

    .device-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .info-list { margin: 0; padding: 0; list-style: none; }
    .info-list li {
      display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
      border-bottom: 1px solid var(--line); color: var(--muted);
    }
    .info-list li span:last-child { color: var(--text); text-align: right; font-weight: 500; }
    .actions-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
    .hint-text { margin: 14px 0 0; color: var(--text3); font-size: 12px; }

    .tabs {
      display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
    }
    .tabs button {
      border: 0; background: transparent; color: var(--muted); padding: 10px 14px;
      border-bottom: 2px solid transparent; margin-bottom: -1px;
    }
    .tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
    .tab-pane { display: none; }
    .tab-pane.active { display: block; }

    .prod-item, .coupon-item {
      display: flex; gap: 10px; align-items: center; padding: 10px;
      border-radius: var(--radius); border: 1px solid var(--line); background: #fafbfc; margin-bottom: 8px;
    }
    .prod-item .pic { width: 48px; height: 48px; border-radius: 6px; flex-shrink: 0; }
    .prod-item .body { flex: 1; min-width: 0; }
    .prod-item .body .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .prod-item .body .price { color: var(--warn); font-size: 12px; margin-top: 2px; font-weight: 600; }
    .tag {
      display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-left: 4px;
    }
    .tag.explain { background: #ffebee; color: #c62828; }
    .tag.off { background: #f5f5f5; color: #999; }
    .tag.sold { background: #fff3e0; color: #e65100; }

    .chat-box {
      height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius);
      padding: 10px; background: #fafbfc; margin-bottom: 8px;
    }
    .chat-line { margin-bottom: 8px; font-size: 12.5px; }
    .chat-line .u { color: var(--brand); font-weight: 600; margin-right: 6px; }
    .chat-line .sys { color: var(--warn); }
    .chat-line .host { color: var(--live); font-weight: 600; margin-right: 6px; }

    /* 直播中控：左右铺满，状态栏与画面贴合、风格统一；进入中控隐藏主播中心顶栏 */
    #view-app.living-mode .topbar { display: none; }
    #view-app.living-mode .main {
      max-width: none;
      width: 100%;
      margin: 0;
      padding: 0;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    #view-app.living-mode #page-living.active {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      height: 100vh;
      padding: 0;
      margin: 0;
      animation: none;
    }
    #page-living {
      display: none;
      flex-direction: column;
      min-height: 0;
      position: relative;
    }
    .living-statusbar {
      display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
      background: #1f1f1f; color: #e8e8e8;
      border: 0; border-bottom: 1px solid #333; border-radius: 0;
      padding: 12px 20px 12px 48px; margin: 0; box-shadow: none; flex-shrink: 0;
    }
    .living-statusbar .left, .living-statusbar .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .living-statusbar #livingTitle { color: #fff; font-size: 15px; font-weight: 600; }
    .living-statusbar .anno-drop { top: 50%; margin-top: -13px; left: 12px; }
    .living-statusbar .right { flex-wrap: nowrap; }
    .living-statusbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .living-stat-entry { position: relative; display: inline-flex; align-items: center; }
    .living-stat-entry .anno-drop { top: 50%; margin-top: -13px; left: -4px; }
    .btn-living-ghost {
      height: 28px; padding: 0 12px; font-size: 12px; border-radius: var(--radius-sm);
      background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
      color: #ddd; cursor: pointer; white-space: nowrap;
    }
    .btn-living-ghost:hover { color: #fff; border-color: rgba(25,118,210,.6); background: rgba(25,118,210,.22); }
    .living-online-btn {
      display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
      border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm);
      background: rgba(255,255,255,.06); color: #cfcfcf; font-size: 12px; cursor: pointer;
    }
    .living-online-btn:hover { color: #fff; border-color: rgba(25,118,210,.6); background: rgba(25,118,210,.18); }
    .living-online-btn svg {
      width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
    }
    .living-online-btn strong { color: #fff; font-weight: 700; }
    .living-host { display: flex; align-items: center; gap: 8px; color: #cfcfcf; }
    .living-host .av {
      width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
      display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
    }
    .btn-living-back {
      display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px;
      border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm);
      background: rgba(255,255,255,.06); color: #ddd; font-size: 12px; cursor: pointer; white-space: nowrap;
    }
    .btn-living-back:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
    .btn-living-close {
      width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm);
      background: rgba(255,255,255,.06); color: #ddd; font-size: 18px; line-height: 1; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center; padding: 0;
    }
    .btn-living-close:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
    .living-end-overlay {
      display: none; position: absolute; inset: 0; z-index: 20;
      background: #000;
      flex-direction: column; align-items: center; justify-content: center;
      padding: 40px 24px; color: #fff;
    }
    .living-end-overlay.show { display: flex; }
    .living-end-overlay .end-title {
      font-size: 28px; font-weight: 700; margin-bottom: 10px; letter-spacing: .02em; color: #fff;
    }
    .living-end-overlay .end-dur {
      font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 32px;
    }
    .living-end-overlay .end-card {
      width: min(420px, 100%);
      background: #2a2a2e;
      border: 0;
      border-radius: 12px;
      padding: 22px 24px 20px;
      box-sizing: border-box;
    }
    .living-end-overlay .end-card .lab {
      font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px;
    }
    .living-end-overlay .end-card .val {
      font-size: 36px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px;
    }
    .living-end-overlay .end-card .peak {
      font-size: 13px; color: rgba(255,255,255,.5);
    }
    .living-end-overlay .end-actions { margin-top: 28px; }
    .living-end-overlay .end-actions .btn {
      min-width: 120px; height: 40px; border-radius: 8px; font-size: 15px;
    }
    .living-end-overlay > .anno-drop { top: 16px; left: 16px; }
    .living-end-overlay:not(.show) .anno-drop { display: none !important; }
    .live-stats-modal.anno-pad { position: relative; }
    .live-stats-hd.anno-anchor { position: relative; padding-left: 44px; }
    .live-stats-hd .anno-drop { top: 14px; left: 10px; }
    .viewer-modal.anno-pad { position: relative; }
    .viewer-modal-hd.anno-anchor { position: relative; padding-left: 44px; }
    .viewer-modal-hd .anno-drop { top: 14px; left: 10px; }
    .live-stats-modal {
      width: min(420px, 92vw); padding: 0; overflow: hidden;
      background: #2a2a2e; border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.45); color: #fff;
    }
    .live-stats-hd {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
      padding: 16px 16px 12px 18px; border-bottom: 0;
    }
    .live-stats-top {
      flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
      flex-wrap: wrap; min-width: 0; padding-right: 4px;
    }
    .live-stats-top .item { font-size: 13px; color: rgba(255,255,255,.72); white-space: nowrap; }
    .live-stats-top .item strong {
      margin-left: 2px; font-size: 13px; font-weight: 600; color: #fff;
      font-variant-numeric: tabular-nums;
    }
    .live-stats-modal .modal-close-x {
      width: 28px; height: 28px; flex-shrink: 0; color: rgba(255,255,255,.45);
      margin-top: -2px;
    }
    .live-stats-modal .modal-close-x:hover { color: #fff; background: rgba(255,255,255,.1); }
    .viewer-modal-hd {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 20px 12px; border-bottom: 1px solid var(--line);
    }
    .viewer-modal-hd h3 { margin: 0; font-size: 16px; font-weight: 600; }
    .modal-close-x {
      width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted);
      font-size: 22px; line-height: 1; cursor: pointer; border-radius: 6px;
    }
    .modal-close-x:hover { color: var(--text); background: #f5f5f5; }
    .live-stats-body { padding: 4px 8px 18px; }
    .live-stats-grid {
      display: grid; grid-template-columns: 1fr 1fr 1fr;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .live-stats-cell {
      text-align: center; padding: 14px 8px 6px;
      border-right: 1px solid rgba(255,255,255,.1);
    }
    .live-stats-cell:last-child { border-right: 0; }
    .live-stats-cell .lab {
      display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 8px;
    }
    .live-stats-cell .val {
      display: block; font-size: 18px; font-weight: 700; color: #fff;
      font-variant-numeric: tabular-nums; letter-spacing: .01em;
    }
    .viewer-modal { width: min(520px, 100%); max-height: 80vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
    .viewer-modal-toolbar { padding: 12px 20px 0; flex-shrink: 0; }
    .viewer-modal-toolbar input {
      width: 100%; height: 34px; padding: 0 12px; border-radius: var(--radius-sm);
      border: 1px solid #d0d0d0; outline: none;
    }
    .viewer-modal-toolbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25,118,210,.12); }
    .viewer-tabs {
      display: none;
    }
    .viewer-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 16px; }
    .viewer-row {
      display: flex; align-items: center; gap: 10px; padding: 10px 8px;
      border-bottom: 1px solid #f5f5f5;
    }
    .viewer-row:last-child { border-bottom: 0; }
    .viewer-av {
      width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
      display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
    }
    .viewer-info { flex: 1; min-width: 0; }
    .viewer-info .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .viewer-empty { text-align: center; color: var(--text3); padding: 32px 12px; font-size: 13px; }
    .living-shell {
      flex: 1; min-height: 0;
      display: grid; grid-template-columns: 72px 1fr 300px; gap: 0;
      background: #1a1a1a; border-radius: 0; overflow: hidden; border: 0;
    }
    @media (max-width: 1100px) {
      .living-shell { grid-template-columns: 64px 1fr; }
      .living-tools-col { grid-column: 1 / -1; min-height: 280px; }
    }
    .living-dock {
      display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
      gap: 14px; padding: 20px 10px; background: #141414; border-right: 1px solid #2a2a2a;
      position: relative;
    }
    .living-dock .op-btn {
      width: 56px; border: 0; background: transparent; color: #bbb;
      display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
      gap: 6px; padding: 0; flex-shrink: 0; cursor: pointer;
    }
    .living-dock .op-btn .op-ico {
      position: relative; width: 48px; height: 48px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
      color: #e0e0e0; transition: background .15s, border-color .15s, color .15s;
    }
    .living-dock .op-btn .op-ico svg {
      width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round;
    }
    .living-dock .op-btn .op-name { font-size: 11px; line-height: 1.2; text-align: center; color: #9a9a9a; }
    .living-dock .op-btn.on .op-ico { background: rgba(25,118,210,.85); border-color: rgba(25,118,210,.9); color: #fff; }
    .living-dock .op-btn.on .op-name { color: #90caf9; }
    .living-dock .op-btn.off .op-ico { background: rgba(255,255,255,.08); color: #888; }
    .living-dock .op-btn.off .op-ico::after {
      content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 28px;
      background: #ef5350; border-radius: 1px; transform: translate(-50%, -50%) rotate(-45deg);
      pointer-events: none;
    }
    .living-dock .op-btn:disabled { opacity: .4; cursor: not-allowed; }
    .living-dock .anno-drop { top: 12px; left: 50%; margin-left: -13px; }
    .living-preview-wrap {
      min-width: 0; min-height: 0; position: relative;
      display: flex; flex-direction: column; background: #0d0d0d;
    }
    .living-preview-wrap .preview-box {
      flex: 1; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0;
      background: #111; position: relative; display: flex; flex-direction: row; overflow: hidden;
    }
    .living-preview-wrap .preview-media { flex: 1; display: flex; flex-direction: row; min-width: 0; min-height: 0; width: 100%; }
    .living-preview-wrap .preview-pane { flex: 1; min-width: 0; position: relative; overflow: hidden; }
    .living-preview-wrap .preview-pane-host video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .living-preview-wrap .preview-pane-guest {
      display: none; background: linear-gradient(180deg, #1b4332, #081c15);
      align-items: center; justify-content: center;
    }
    .living-preview-wrap .preview-box.mic-split .preview-pane-guest { display: flex; flex-direction: column; }
    .living-preview-wrap .guest-voice-slot { text-align: center; z-index: 1; }
    .living-preview-wrap .guest-voice-slot .g-av {
      width: 48px; height: 48px; border-radius: 8px; margin: 0 auto;
      background: rgba(255,255,255,.15); display: grid; place-items: center;
      font-size: 18px; font-weight: 700; color: #fff;
    }
    .living-preview-wrap .guest-voice-slot .g-nm { font-size: 12px; margin-top: 6px; font-weight: 600; color: #fff; }
    .living-preview-wrap .guest-video-slot {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; display: none; background: #081c15;
    }
    .living-preview-wrap .preview-pane-guest.video-on .guest-video-slot { display: block; }
    .living-preview-wrap .preview-pane-guest.video-on .guest-voice-slot { display: none; }
    .living-preview-wrap .preview-placeholder { color: #8a8a8a; }
    .living-preview-wrap > .anno-drop { top: 12px; left: 12px; }
    .living-guest-pip {
      position: absolute; right: 16px; bottom: 16px; min-width: 140px; max-width: 180px;
      padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35);
      background: rgba(0,0,0,.72); color: #fff;
      display: none; flex-direction: column; align-items: flex-start; justify-content: center;
      font-size: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.45); z-index: 2; gap: 6px;
    }
    .living-guest-pip .pip-tit { font-size: 10px; opacity: .75; }
    .living-guest-pip .pip-nm { font-weight: 600; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .living-guest-pip.show { display: flex; }
    .living-tools-col {
      min-width: 0; min-height: 0; height: 100%; overflow: hidden;
      display: flex; flex-direction: column;
      background: #242424; color: #e8e8e8; border-left: 1px solid #333;
    }
    .living-tools-col .panel {
      background: transparent; border: 0; box-shadow: none; border-radius: 0;
      padding: 14px 14px 10px; flex-shrink: 0;
    }
    .living-tools-col .panel-hd h3 { color: #f0f0f0; font-size: 14px; }
    .living-tool-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px;
    }
    .living-tool-item.anno-anchor {
      position: relative; display: flex; flex-direction: column; align-items: center;
      padding-top: 18px;
    }
    .living-tool-item .anno-drop {
      top: 0; left: 50%; margin-left: -13px; z-index: 14;
    }
    .living-tool-grid .tool-btn {
      display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
      padding: 0; border: 0; border-radius: 0; background: transparent;
      font-size: 11px; color: #bdbdbd; min-height: 0; width: 100%;
    }
    .living-tool-grid .tool-btn .tool-ico {
      width: 48px; height: 48px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: #e0e0e0; background: #2c2c2c; border: 1px solid #3a3a3a;
      transition: background .15s, border-color .15s, color .15s;
    }
    .living-tool-grid .tool-btn .tool-ico svg {
      width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round;
    }
    .living-tool-grid .tool-btn .tool-name {
      line-height: 1.25; text-align: center; max-width: 56px;
      word-break: keep-all; white-space: nowrap;
    }
    .living-tool-grid .tool-btn:hover .tool-ico { border-color: #555; background: #333; color: #fff; }
    .living-tool-grid .tool-btn:hover .tool-name { color: #fff; }
    .living-tool-grid .tool-btn.active .tool-ico { border-color: #1976d2; color: #90caf9; background: #1a2a3a; }
    .living-tool-grid .tool-btn.active .tool-name { color: #90caf9; }
    .living-tool-grid .tool-btn:disabled { opacity: .4; cursor: not-allowed; }
    .living-tool-item { position: relative; }
    .living-tool-item .tool-badge {
      position: absolute; top: 0; right: 8px; min-width: 16px; height: 16px; z-index: 2;
      background: #e53935; border-radius: 8px; font-size: 10px; line-height: 16px;
      padding: 0 4px; font-weight: 700; color: #fff; display: none; pointer-events: none;
    }
    .living-tool-item .tool-badge.show { display: block; }
    .living-mic-panel {
      display: none; flex: 1; min-height: 0; flex-direction: column;
      overflow: hidden;
      border-top: 1px solid #333; margin: 0 !important; padding: 12px 14px 14px !important;
      background: transparent;
    }
    .living-mic-panel.open { display: flex; }
    .living-mic-body {
      display: none; flex: 1; min-height: 0; flex-direction: column; overflow: auto;
      gap: 12px;
    }
    .living-mic-panel.body-open .living-mic-body { display: flex; }
    .living-mic-panel .panel-hd {
      margin-bottom: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .living-mic-panel:not(.body-open) .panel-hd { margin-bottom: 0; }
    .living-mic-panel .panel-hd h3 { margin: 0; color: #f0f0f0; font-size: 14px; }
    .mic-enable-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 0; border-bottom: 1px solid #333; flex-shrink: 0;
    }
    .mic-enable-row .lab { color: #e8e8e8; font-size: 13px; }
    .pc-mic-switch {
      position: relative; width: 42px; height: 22px; border-radius: 11px; border: 0;
      background: #555; cursor: pointer; padding: 0;
    }
    .pc-mic-switch.on { background: #4caf50; }
    .pc-mic-switch::after {
      content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
      border-radius: 50%; background: #fff; transition: left .15s;
    }
    .pc-mic-switch.on::after { left: 22px; }
    .mic-sec-title { color: #bbb; font-size: 12px; font-weight: 600; margin: 4px 0 8px; }
    .mic-empty { color: #777; font-size: 12px; padding: 12px 0; text-align: center; }
    .living-chat-panel {
      display: none; flex: 1; min-height: 0; flex-direction: column;
      overflow: hidden;
      border-top: 1px solid #333; margin: 0 !important; padding: 12px 14px 14px !important;
    }
    .living-chat-panel.open { display: flex; }
    .living-chat-body {
      display: none; flex: 1; min-height: 0; flex-direction: column; overflow: hidden;
    }
    .living-chat-panel.body-open .living-chat-body { display: flex; }
    .living-chat-panel .panel-hd {
      margin-bottom: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .living-chat-panel:not(.body-open) .panel-hd { margin-bottom: 0; }
    .living-chat-panel .panel-hd h3 { margin: 0; color: #f0f0f0; }
    .living-chat-panel .panel-hd .chat-count { color: #888; font-size: 12px; font-weight: 400; margin-left: 6px; }
    .living-chat-panel .btn-ghost { color: #aaa; }
    .living-chat-panel .chat-box {
      flex: 1 1 0; min-height: 0; width: 100%;
      overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
      margin-bottom: 10px; padding: 10px 6px 10px 10px;
      background: #1a1a1a; border: 1px solid #333; border-radius: 8px; color: #ddd;
      scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #666 #252525;
    }
    .living-chat-panel .chat-box::-webkit-scrollbar { width: 8px; }
    .living-chat-panel .chat-box::-webkit-scrollbar-thumb {
      background: #666; border-radius: 4px; border: 2px solid #252525;
    }
    .living-chat-panel .chat-box::-webkit-scrollbar-thumb:hover { background: #888; }
    .living-chat-panel .chat-box::-webkit-scrollbar-track { background: #252525; border-radius: 4px; }
    .living-chat-panel .chat-line {
      margin-bottom: 8px;
    }
    .living-chat-panel .chat-line:last-child { margin-bottom: 0; }
    .chat-pill {
      display: inline-flex; align-items: flex-start; flex-wrap: wrap; gap: 6px;
      max-width: 100%; padding: 8px 12px; border-radius: 20px;
      background: #2b2b2b; font-size: 12.5px; line-height: 1.5;
      word-break: break-word; overflow-wrap: anywhere; color: #e8e8e8;
    }
    .chat-pill--sys { background: #2b2b2b; }
    .chat-av {
      width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 10px; font-weight: 700; color: #fff; margin-top: 1px;
    }
    .chat-tag {
      display: inline-flex; align-items: center; flex-shrink: 0;
      padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600;
      line-height: 1.45; margin-top: 1px;
    }
    .chat-tag.tag-notice { background: #3d3d3d; color: #ccc; }
    .chat-tag.tag-host { background: rgba(239,154,154,.18); color: #ef9a9a; }
    .chat-tag.tag-fan { background: rgba(255,255,255,.1); color: #d4c9a8; }
    .chat-user {
      color: #e0e0e0; font-weight: 600; flex-shrink: 0;
    }
    .chat-text { color: #e8e8e8; }
    .living-chat-panel .chat-empty {
      color: #777; font-size: 12px; text-align: center; padding: 28px 12px;
    }
    .living-chat-input {
      flex-shrink: 0; position: relative;
    }
    .chat-input-bar {
      display: flex; align-items: center; gap: 0;
      background: #2b2b2b; border: 1px solid #3a3a3a; border-radius: 22px;
      padding: 0 4px 0 14px; min-height: 40px;
    }
    .chat-input-bar input {
      flex: 1; min-width: 0; height: 38px; border: 0; background: transparent;
      padding: 0; color: #eee; font-size: 13px; outline: none;
    }
    .chat-input-bar input::placeholder { color: #777; }
    .chat-input-bar input:disabled { opacity: .5; cursor: not-allowed; }
    .chat-btn-icon {
      width: 32px; height: 32px; border: 0; border-radius: 50%;
      background: transparent; color: #aaa; cursor: pointer; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: color .15s, background .15s;
    }
    .chat-btn-icon:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.08); }
    .chat-btn-icon:disabled { opacity: .4; cursor: not-allowed; }
    .chat-btn-icon svg {
      width: 20px; height: 20px; fill: none; stroke: currentColor;
      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    }
    .chat-input-sep {
      width: 1px; height: 18px; background: #444; flex-shrink: 0; margin: 0 2px;
    }
    .chat-btn-send {
      border: 0; background: transparent; color: #888; font-size: 13px;
      padding: 0 14px; height: 38px; cursor: pointer; flex-shrink: 0;
      transition: color .15s;
    }
    .chat-btn-send:hover:not(:disabled) { color: #fff; }
    .chat-btn-send:disabled { opacity: .4; cursor: not-allowed; }
    .emoji-panel {
      position: absolute; bottom: calc(100% + 6px); right: 0; left: 0;
      background: #2b2b2b; border: 1px solid #3a3a3a; border-radius: 12px;
      padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
      max-height: 160px; overflow-x: hidden; overflow-y: auto;
      box-shadow: 0 4px 16px rgba(0,0,0,.45); z-index: 10;
      scrollbar-width: none; -ms-overflow-style: none;
    }
    .emoji-panel::-webkit-scrollbar { display: none; }
    .emoji-panel[hidden] { display: none; }
    .emoji-panel button {
      border: 0; background: transparent; font-size: 20px; line-height: 1;
      padding: 6px; border-radius: 6px; cursor: pointer;
    }
    .emoji-panel button:hover { background: rgba(255,255,255,.1); }
    .status-pill.idle { background: #e3f2fd; color: var(--brand); border-color: #bbdefb; }
    .status-pill.idle .dot { background: var(--brand); }
    .status-pill.ended { background: #f5f5f5; color: var(--muted); border-color: var(--line); }
    .status-pill.ended .dot { background: var(--text3); }
    .modal.wide { width: min(640px, 100%); max-height: 80vh; display: flex; flex-direction: column; }
    .modal.wide .modal-scroll { overflow-y: auto; flex: 1; min-height: 0; margin: 8px 0 12px; }
    .goods-modal .modal { background: #24252d; color: #e8e8e8; border: 1px solid #3a3b46; }
    .goods-modal .modal.goods-modal-inner {
      max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
    }
    .goods-modal-hd {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      flex-shrink: 0; margin-bottom: 12px;
    }
    .goods-modal-hd h3 { color: #fff; margin: 0; }
    .goods-modal-close {
      border: 0; background: transparent; color: #888; font-size: 22px; line-height: 1;
      cursor: pointer; padding: 2px 6px; flex-shrink: 0;
    }
    .goods-modal-close:hover { color: #fff; }
    .goods-search-row { margin-bottom: 12px; flex-shrink: 0; }
    .goods-search-wrap {
      display: flex; align-items: center; height: 36px;
      background: #33343f; border-radius: 18px; padding: 0 4px 0 12px; gap: 8px;
    }
    .goods-search-wrap input {
      flex: 1; border: 0; background: transparent; color: #eee; font-size: 13px; outline: none; min-width: 0;
    }
    .goods-search-wrap input::placeholder { color: #888; }
    .goods-search-icon { color: #888; font-size: 14px; flex-shrink: 0; }
    .goods-search-divider { width: 1px; height: 18px; background: #555; flex-shrink: 0; }
    .goods-search-btn {
      border: 0; background: transparent; color: #c9b8ff; font-size: 13px; padding: 0 12px; cursor: pointer; flex-shrink: 0;
    }
    .goods-search-btn:hover { color: #e0d4ff; }
    .goods-list-dark { background: transparent; }
    .goods-list-dark .prod-card {
      display: flex; gap: 10px; align-items: stretch; padding: 10px;
      border-radius: 10px; background: #33343f; margin-bottom: 10px;
    }
    .goods-list-dark .pic-wrap { position: relative; flex-shrink: 0; width: 72px; }
    .goods-list-dark .pic {
      width: 72px; height: 72px; border-radius: 8px; background: #555;
    }
    .goods-list-dark .commission-badge {
      position: absolute; top: 0; left: 0; max-width: 100%;
      background: linear-gradient(135deg, #7c4dff, #536dfe);
      color: #fff; font-size: 10px; line-height: 1.2; padding: 2px 5px;
      border-radius: 8px 0 6px 0; white-space: nowrap;
    }
    .goods-list-dark .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
    .goods-list-dark .body .name-row {
      display: flex; align-items: center; gap: 8px; min-width: 0;
    }
    .goods-list-dark .body .name {
      flex: 1; min-width: 0;
      font-weight: 600; color: #fff; font-size: 14px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .goods-list-dark .body .sort-no {
      flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px;
      border-radius: 10px; background: rgba(124,77,255,.25); color: #c9b8ff;
      font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
    }
    .goods-list-dark .price-row { font-size: 12px; color: #aaa; }
    .goods-list-dark .price-row.live { color: #fff; font-size: 15px; font-weight: 700; margin-top: 2px; }
    .goods-list-dark .price-row.stock { color: #8fd19e; margin-top: 2px; }
    .goods-list-dark .prod-actions {
      display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex-shrink: 0; min-width: 72px;
    }
    .goods-list-dark .prod-act-btn {
      border: 1px solid #7c4dff; background: transparent; color: #c9b8ff;
      border-radius: 16px; padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap;
    }
    .goods-list-dark .prod-act-btn.primary {
      background: linear-gradient(135deg, #7c4dff, #536dfe); color: #fff; border-color: transparent;
    }
    .goods-list-dark .prod-act-btn:disabled { opacity: .45; cursor: not-allowed; }
    .goods-list-dark .prod-act-btn.stock-btn { font-size: 11px; line-height: 1.3; }
    .goods-list-dark .prod-act-btn.stock-btn .sub { display: block; font-size: 10px; color: #aaa; margin-top: 1px; }
    .goods-list-end { text-align: center; color: #666; font-size: 12px; padding: 8px 0 4px; }
    .goods-modal-body {
      flex: 1; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto;
      margin: 0 0 12px; -webkit-overflow-scrolling: touch; touch-action: pan-y;
      overscroll-behavior: contain;
      scrollbar-width: thin; scrollbar-color: #555 #2a2b33;
    }
    /* 覆盖全局 .anno-anchor { overflow: visible }，否则列表无法滚动 */
    .goods-modal-body.anno-anchor { overflow-x: hidden; overflow-y: auto; min-height: 0; }
    .goods-modal-body::-webkit-scrollbar { width: 6px; }
    .goods-modal-body::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
    .goods-modal-body::-webkit-scrollbar-track { background: #2a2b33; }
    .goods-modal-ft {
      flex-shrink: 0; border-top: 1px solid #3a3b46; padding-top: 12px; margin-top: 0;
    }
    .goods-list-dark .prod-sort {
      display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; align-self: center;
    }
    .goods-list-dark .prod-sort-btn {
      width: 26px; height: 22px; border: 1px solid #555; background: #2a2b33;
      color: #ccc; border-radius: 4px; font-size: 12px; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }
    .goods-list-dark .prod-sort-btn:hover:not(:disabled) { border-color: #7c4dff; color: #c9b8ff; }
    .goods-list-dark .prod-sort-btn:disabled { opacity: .35; cursor: not-allowed; }
    .goods-modal .modal-actions .btn { background: #33343f; color: #ccc; border-color: #555; }

    /* 优惠券弹窗 — 深色卡片，对齐发券参考截图 */
    .coupon-modal .modal { background: #1e1c2e; color: #e8e8e8; border: 1px solid #3d3658; }
    .coupon-modal .modal.coupon-modal-inner {
      width: min(520px, 100%); max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
    }
    .coupon-modal-hd {
      display: flex; align-items: center; justify-content: center; position: relative;
      padding: 4px 36px 14px; flex-shrink: 0;
    }
    .coupon-modal-hd h3 { color: #fff; margin: 0; font-size: 17px; font-weight: 600; }
    .coupon-modal-close {
      position: absolute; right: 0; top: 0; border: 0; background: transparent;
      color: #888; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px;
    }
    .coupon-modal-close:hover { color: #fff; }
    .coupon-modal-body {
      flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px;
    }
    /* 覆盖全局 .anno-anchor { overflow: visible }，否则列表无法滚动 */
    .coupon-modal-body.anno-anchor { overflow-x: hidden; overflow-y: auto; min-height: 0; }
    .coupon-modal-body::-webkit-scrollbar { width: 6px; }
    .coupon-modal-body::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
    .coupon-modal-body::-webkit-scrollbar-track { background: #2a2740; }
    .coupon-card {
      display: flex; align-items: center; gap: 12px; padding: 14px 16px;
      border-radius: 12px; border: 1px solid rgba(156, 120, 255, .35);
      background: rgba(42, 38, 68, .65); margin-bottom: 12px;
    }
    .coupon-card:last-child { margin-bottom: 0; }
    .coupon-card .coupon-val {
      flex-shrink: 0; width: 88px; text-align: center;
    }
    .coupon-card .coupon-val .face {
      font-size: 26px; font-weight: 800; color: #fff; line-height: 1.15;
    }
    .coupon-card .coupon-val .threshold {
      font-size: 11px; color: #b8b0d0; margin-top: 4px; line-height: 1.3;
    }
    .coupon-card .coupon-info { flex: 1; min-width: 0; }
    .coupon-card .coupon-info .name {
      font-size: 14px; font-weight: 600; color: #fff;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .coupon-card .coupon-info .validity {
      font-size: 11px; color: #8a849e; margin-top: 4px;
    }
    .coupon-act {
      flex-shrink: 0; min-width: 72px; height: 32px; padding: 0 14px;
      border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer;
      white-space: nowrap;
    }
    .coupon-act.issue {
      background: linear-gradient(135deg, #7c4dff, #b24bf3); color: #fff;
    }
    .coupon-act.issue:hover { filter: brightness(1.08); }
    .coupon-act.issue:disabled {
      background: linear-gradient(135deg, #4a4560, #4a4560); color: #8a849e;
      cursor: not-allowed; filter: none;
    }
    .coupon-act.distributing {
      background: linear-gradient(135deg, #5c4db0, #7a4db8); color: #d4c8ff;
      cursor: default;
    }
    .coupon-act.stop {
      background: linear-gradient(135deg, #ff8a3d, #f4632a); color: #fff;
    }
    .coupon-act.stop:hover { filter: brightness(1.08); }
    .coupon-act.done, .coupon-act.disabled {
      background: linear-gradient(135deg, #4a4560, #3d3855); color: #7a758a;
      cursor: not-allowed;
    }
    .coupon-modal-ft {
      flex-shrink: 0; border-top: 1px solid #3d3658; padding-top: 12px; margin-top: 12px;
    }
    .coupon-modal .modal-actions .btn { background: #333043; color: #ccc; border-color: #555; }
    .coupon-modal .empty { color: #8a849e; text-align: center; padding: 24px 0; }

    .modal-hd-row {
      display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
    }
    .modal-hd-row h3 { margin: 0; }
    .modal-close-x {
      border: 0; background: transparent; color: #999; font-size: 22px; line-height: 1;
      cursor: pointer; padding: 2px 6px; flex-shrink: 0;
    }
    .modal-close-x:hover { color: #333; }
    .stock-status-out { color: #c62828; font-weight: 600; }
    .goods-stock-modal-inner {
      max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
    }
    .goods-stock-top { flex-shrink: 0; }
    .goods-stock-name {
      font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 12px; flex-shrink: 0;
    }
    .goods-stock-body {
      flex: 1; min-height: 120px; max-height: 260px;
      overflow-y: scroll; margin: 0 0 12px; padding-right: 2px;
      scrollbar-width: auto; scrollbar-color: #7a7a7a #e4e4e4;
    }
    .goods-stock-body::-webkit-scrollbar { width: 10px; }
    .goods-stock-body::-webkit-scrollbar-thumb {
      background: #7a7a7a; border-radius: 5px; min-height: 40px;
    }
    .goods-stock-body::-webkit-scrollbar-thumb:hover { background: #5c5c5c; }
    .goods-stock-body::-webkit-scrollbar-track {
      background: #e4e4e4; border-radius: 5px; margin: 2px 0;
    }
    .goods-stock-body.anno-anchor { overflow-y: scroll; }
    .goods-stock-ft {
      flex-shrink: 0; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 0;
    }
    .stock-sku-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .stock-sku-table th, .stock-sku-table td {
      border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
    }
    .stock-sku-table th { background: #f5f7fa; font-weight: 600; }
    .stock-sku-cell { display: flex; flex-direction: column; gap: 4px; }
    .stock-sku-line { display: flex; justify-content: space-between; gap: 8px; }
    .stock-sku-line .spec { color: var(--muted); }
    .stock-sku-line .qty { font-weight: 600; }
    .store-info-mini { display: flex; align-items: center; gap: 8px; }
    .store-info-mini .av {
      width: 32px; height: 32px; border-radius: 6px; background: #91d5ff; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #1565c0;
    }
    .store-info-mini .meta { font-size: 12px; line-height: 1.4; }
    .store-info-mini .meta .phone { color: var(--muted); font-size: 11px; }
    .chat-pill .prod-share {
      display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 2px;
      padding: 6px 8px; background: rgba(0,0,0,.25); border-radius: 8px; font-size: 12px; color: #ddd;
    }
    .chat-pill--block { flex-wrap: wrap; }
    .chat-pill-head { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; width: 100%; }
    .chat-pill .prod-share .thumb {
      width: 36px; height: 36px; border-radius: 4px; flex-shrink: 0;
    }
    .mic-req {
      display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line);
      border-radius: var(--radius); margin-bottom: 8px; background: #fafbfc;
    }
    .mic-req .av {
      width: 36px; height: 36px; border-radius: 50%; background: #90caf9; color: #0d47a1;
      display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
    }
    .mic-req .body { flex: 1; min-width: 0; }

    .page-title-row {
      display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
    }
    .page-title-row h2 { margin: 0; font-size: 22px; font-weight: 700; color: #1f2937; }
    .seg {
      display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px;
      box-shadow: var(--shadow);
    }
    .seg button {
      border: 0; background: transparent; color: var(--muted); height: 30px; padding: 0 14px; border-radius: var(--radius-sm);
    }
    .seg button.active { background: var(--brand); color: #fff; font-weight: 600; }

    .metrics {
      display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 14px; margin-bottom: 16px;
    }
    @media (max-width: 1100px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
    @media (max-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
    .metrics .m .l { color: var(--muted); font-size: 11px; }
    .metrics .m .n { font-size: 18px; font-weight: 700; margin-top: 4px; color: #1f2937; }

    .charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
    @media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
    .chart-card {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 14px; min-height: 200px;
    }
    .chart-card h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
    .chart-svg { width: 100%; height: 140px; }
    .chart-card .info-tip {
      display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px;
      border-radius: 50%; background: #e3f2fd; color: var(--brand); font-size: 11px; font-weight: 700;
      cursor: help; vertical-align: middle;
    }
    .funnel-insight {
      display: flex; align-items: center; gap: 8px;
      background: #e6f7ff; border: 1px solid #91d5ff; border-radius: 6px;
      padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: #0958d9;
    }
    .funnel-insight .ico {
      width: 16px; height: 16px; border-radius: 50%; background: #1976d2; color: #fff;
      font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
    }
    .conv-funnel {
      display: flex; align-items: center; justify-content: center; gap: 16px;
      min-height: 180px; padding: 8px 0;
    }
    .conv-funnel-body { display: flex; align-items: stretch; gap: 10px; }
    .conv-funnel-stages {
      display: flex; flex-direction: column; align-items: center; gap: 6px; width: 280px;
    }
    .conv-funnel-stages .stage {
      height: 44px; display: grid; place-items: center; color: #fff;
      font-size: 13px; font-weight: 500; border-radius: 4px;
    }
    .conv-funnel-stages .stage:nth-child(1) {
      width: 100%; background: linear-gradient(90deg, #64b5f6, #1976d2);
      clip-path: polygon(4% 0, 96% 0, 88% 100%, 12% 100%);
    }
    .conv-funnel-stages .stage:nth-child(2) {
      width: 72%; background: linear-gradient(90deg, #4db6ac, #00897b);
      clip-path: polygon(6% 0, 94% 0, 86% 100%, 14% 100%);
    }
    .conv-funnel-stages .stage:nth-child(3) {
      width: 44%; background: linear-gradient(90deg, #ffb74d, #f57c00);
      clip-path: polygon(8% 0, 92% 0, 84% 100%, 16% 100%);
    }
    .conv-funnel-step-rates {
      display: flex; flex-direction: column; justify-content: space-between;
      padding: 38px 0; min-width: 88px;
    }
    .step-rate {
      display: flex; align-items: center; gap: 6px; color: var(--brand);
      font-size: 13px; font-weight: 600; white-space: nowrap;
    }
    .step-rate .bracket {
      width: 14px; height: 22px; border: 2px solid var(--brand);
      border-left: 0; border-radius: 0 4px 4px 0; flex-shrink: 0;
    }
    .step-rate .arrow-down {
      width: 0; height: 0;
      border-left: 5px solid transparent; border-right: 5px solid transparent;
      border-top: 7px solid var(--brand); flex-shrink: 0;
    }
    .conv-funnel-arrow {
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
      color: var(--brand); font-size: 12px; text-align: center; max-width: 90px;
      align-self: stretch; padding: 8px 0;
    }
    .conv-funnel-arrow .line {
      flex: 1; width: 2px; min-height: 80px; background: var(--brand); position: relative;
    }
    .conv-funnel-arrow .line::before,
    .conv-funnel-arrow .line::after {
      content: ""; position: absolute; left: 50%; transform: translateX(-50%);
      border-left: 5px solid transparent; border-right: 5px solid transparent;
    }
    .conv-funnel-arrow .line::before { top: -2px; border-bottom: 7px solid var(--brand); }
    .conv-funnel-arrow .line::after { bottom: -2px; border-top: 7px solid var(--brand); }
    .audience-chart-area {
      height: 200px; border: 1px solid #f0f0f0; border-radius: 6px; position: relative;
      background:
        linear-gradient(#fafafa 1px, transparent 1px) 0 0 / 100% 20%,
        linear-gradient(90deg, #fafafa 1px, transparent 1px) 0 0 / 10% 100%,
        #fff;
    }
    .audience-chart-line {
      position: absolute; inset: 24px 16px 28px 36px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpolyline fill='none' stroke='%231976d2' stroke-width='2' points='0,100 40,90 80,95 120,70 160,75 200,50 240,55 280,35 320,40 360,20 400,30'/%3E%3Cpolyline fill='none' stroke='%23c62828' stroke-width='2' points='0,110 40,100 80,105 120,85 160,90 200,70 240,75 280,60 320,65 360,50 400,55'/%3E%3Cpolyline fill='none' stroke='%23e65100' stroke-width='2' points='0,105 40,98 80,100 120,92 160,88 200,80 240,78 280,70 320,72 360,65 400,60'/%3E%3C/svg%3E") center/100% 100% no-repeat;
    }
    .audience-chart-y {
      position: absolute; left: 8px; top: 8px; bottom: 24px; display: flex;
      flex-direction: column; justify-content: space-between; color: #999; font-size: 12px;
    }
    .audience-chart-x {
      position: absolute; left: 36px; right: 16px; bottom: 6px;
      display: flex; justify-content: space-between; color: #999; font-size: 11px;
    }
    .audience-legend {
      display: flex; justify-content: center; gap: 20px; margin-top: 10px; font-size: 12px; color: #666;
    }
    .audience-legend span::before {
      content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
      margin-right: 6px; vertical-align: middle;
    }
    .audience-legend .c1::before { background: #1976d2; }
    .audience-legend .c2::before { background: #c62828; }
    .audience-legend .c3::before { background: #e65100; }
    #page-analytics .charts.audience-funnel-row { margin-left: 24px; }
    #page-analytics .charts.audience-funnel-row .chart-card { margin-left: 0; min-height: 280px; }
    #page-analytics .charts.audience-funnel-row .chart-card h4 {
      margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #1f2937;
    }
    #page-analytics #analyticsFunnelCard h4,
    #page-analytics #analyticsAudienceCard h4 {
      margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #1f2937;
    }

    .filter-box {
      display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 16px 16px 12px; margin-bottom: 14px;
    }
    .filter-box .f { min-width: 180px; flex: 1; }
    .filter-box .f label { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; }
    .filter-box .f.f-status { max-width: 180px; flex: 0 0 180px; }
    .filter-box .f.f-time { min-width: 280px; flex: 1.4; position: relative; }
    .filter-box .btns { display: flex; gap: 8px; }
    .filter-box select option[value=""] { color: #999; }

    .prod-detail-cell { display: flex; align-items: flex-start; gap: 10px; white-space: normal; min-width: 200px; }
    .prod-detail-cell .thumb { width: 48px; height: 48px; border-radius: 6px; flex-shrink: 0; }
    .prod-detail-cell .info { line-height: 1.5; }
    .prod-detail-cell .name { font-weight: 500; }
    .prod-detail-cell .spec { color: #999; font-size: 12px; }
    .prod-detail-cell .price { color: #c62828; font-size: 12px; }
    .store-cell .sub, .member-cell .sub { color: var(--text3); font-size: 11px; }
    .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
    .tag-settled { background: #e8f5e9; color: #2e7d32; }
    .tag-pending { background: #fff3e0; color: #e65100; }

    .dt-trigger {
      width: 100%; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
      border: 1px solid #d0d0d0; background: #fff; display: flex; align-items: center;
      cursor: pointer; user-select: none;
    }
    .dt-trigger:hover, .dt-trigger.open { border-color: var(--brand); }
    .dt-trigger .dt-text { color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dt-trigger .dt-text.placeholder { color: #999; }

    .dt-panel {
      display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 80;
      width: 640px; max-width: min(640px, calc(100vw - 48px));
      background: #1c1c28; color: #fff; border-radius: 10px;
      box-shadow: 0 12px 40px rgba(0,0,0,.4); padding: 14px 16px 12px;
    }
    .dt-panel.show { display: block; }
    .dt-top {
      display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px;
    }
    .dt-top input {
      height: 32px; border: 0; border-radius: 8px; background: #2a2a3a; color: #fff;
      padding: 0 10px; width: 100%; outline: none;
    }
    .dt-top input::placeholder { color: #8b8b9e; }
    .dt-cals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .dt-cal-hd {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 8px; font-weight: 600; font-size: 14px;
    }
    .dt-cal-hd .nav { display: flex; gap: 2px; }
    .dt-cal-hd button {
      width: 26px; height: 26px; border: 0; background: transparent; color: #cfcfe0;
      border-radius: 4px; font-size: 12px;
    }
    .dt-cal-hd button:hover { background: #2e2e40; color: #fff; }
    .dt-week, .dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
    .dt-week span { color: #8b8b9e; font-size: 12px; padding: 4px 0; }
    .dt-grid button {
      height: 32px; border: 0; background: transparent; color: #fff; border-radius: 6px;
      font-size: 13px; position: relative;
    }
    .dt-grid button.muted { color: #5c5c70; }
    .dt-grid button:hover:not(.muted) { background: #2e2e40; }
    .dt-grid button.in-range { background: rgba(168, 85, 247, .18); }
    .dt-grid button.start, .dt-grid button.end { background: #a855f7; color: #fff; }
    .dt-grid button.today::after {
      content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px;
      margin-left: -2px; border-radius: 50%; background: #a855f7;
    }
    .dt-foot {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 12px; padding-top: 10px; border-top: 1px solid #2e2e40; gap: 8px; flex-wrap: wrap;
    }
    .dt-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; }
    .dt-shortcuts button, .dt-foot .dt-clear {
      height: 30px; padding: 0 12px; border: 0; border-radius: 6px;
      background: #3a3a4a; color: #fff; font-size: 12px;
    }
    .dt-shortcuts button:hover, .dt-foot .dt-clear:hover { background: #4a4a5c; }
    .dt-foot .dt-ok {
      height: 30px; padding: 0 18px; border: 0; border-radius: 6px;
      background: #a855f7; color: #fff; font-weight: 600;
    }
    .dt-foot .dt-ok:hover { background: #9333ea; }

    .table-wrap {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow: auto;
    }
    .orders-list-panel {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); margin-left: 24px; overflow: hidden;
    }
    .orders-list-panel .table-scroll-x {
      overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch;
      max-width: 100%; border: 0; box-shadow: none; border-radius: 0; background: transparent;
    }
    .orders-list-panel .orders-pager-wrap { border-top: 1px solid var(--line); position: relative; }
    .orders-list-panel .pager { padding: 14px 16px; margin: 0; }
    table.data { width: 100%; border-collapse: collapse; min-width: 900px; }
    #page-orders table.data { min-width: 1680px; }
    table.data th, table.data td {
      padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle;
    }
    table.data th { color: var(--muted); font-weight: 600; background: #fafbfc; white-space: nowrap; }
    table.data tr:hover td { background: #f5f8ff; }
    .member-cell { display: flex; align-items: center; gap: 8px; }
    .member-cell .avatar { width: 32px; height: 32px; }
    .empty { text-align: center; color: var(--text3); padding: 40px !important; }

    .pager {
      display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 0 0; flex-wrap: wrap;
      color: var(--muted); font-size: 13px;
    }
    .pager .total { margin-right: 8px; }
    .pager .pages { display: flex; gap: 4px; align-items: center; }
    .pager .pg {
      min-width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid #d0d0d0;
      background: #fff; color: var(--muted); display: grid; place-items: center; padding: 0 6px;
    }
    .pager .pg.active, .pager .pg:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
    .pager .pg.active { background: #fff; font-weight: 600; }
    .pager .pg:disabled { opacity: .4; cursor: not-allowed; }
    .pager .goto { display: inline-flex; align-items: center; gap: 6px; }
    .pager .goto input {
      width: 48px; height: 32px; text-align: center; border: 1px solid #d0d0d0;
      border-radius: var(--radius-sm); outline: none;
    }
    .pager select {
      height: 32px; min-width: 90px; border: 1px solid #d0d0d0; border-radius: var(--radius-sm); background: #fff; padding: 0 8px;
    }

    .history-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
    }
    .hist-card {
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow: hidden;
    }
    .hist-card .cover {
      height: 150px; position: relative;
      background: linear-gradient(135deg, #64b5f6, #1976d2);
    }
    .hist-card .body { padding: 14px; }
    .hist-card .title { font-weight: 700; margin-bottom: 10px; }
    .hist-card .stats {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--muted);
    }
    .hist-card .stats b { color: var(--text); font-weight: 600; }
    .hist-card .time { margin-top: 12px; color: var(--text3); font-size: 12px; }

    /* ── 水滴形标注系统（对齐商城后台原型） ── */
    :root {
      --anno-width: 420px;
      --anno-teal: #26c6da;
      --anno-teal-dark: #00838f;
      --anno-teal-soft: #e0f7fa;
    }
    .anno-anchor { position: relative; overflow: visible; }
    .page:not(.active) .anno-drop { display: none; }
    #view-login:not(.active-view) .anno-drop { display: none; }
    .modal-mask:not(.show) .anno-drop { display: none; }
    .modal.anno-pad { padding-left: 44px; position: relative; }
    .modal .anno-anchor .anno-drop { left: 8px; top: 10px; }
    .modal .modal-actions.anno-anchor { padding-left: 44px; position: relative; }
    .modal .modal-actions.anno-anchor .anno-drop { top: 50%; margin-top: -13px; left: 12px; }
    .anno-drop {
      position: absolute; top: 12px; left: -38px; z-index: 12;
      width: 26px; height: 26px; padding: 0; border: 0; background: none;
      cursor: pointer; outline: none;
    }
    .page-title-row.anno-anchor .anno-drop { top: 50%; margin-top: -13px; left: -36px; }
    .filter-box.anno-anchor, .table-wrap.anno-anchor, .metrics.anno-anchor, .charts.anno-anchor,
    .orders-list-panel.anno-anchor, .orders-pager-wrap.anno-anchor { position: relative; }
    .metrics.anno-anchor .anno-drop, .charts.anno-anchor .anno-drop { top: 12px; left: -38px; }
    .login-card.anno-anchor { margin-left: 0; }
    .login-card.anno-anchor .anno-drop { top: 18px; left: -10px; }
    .orders-list-panel.anno-anchor .anno-drop { top: 14px; left: -38px; }
    .orders-pager-wrap.anno-anchor .anno-drop { top: 50%; margin-top: -13px; left: -36px; }
    .side-panel.anno-anchor .anno-drop { top: 14px; left: auto; right: 10px; }
    .anno-drop::before {
      content: ''; position: absolute; inset: 0;
      background: var(--anno-teal);
      border-radius: 50% 50% 50% 4px;
      transform: rotate(-45deg);
      box-shadow: 0 2px 8px rgba(0, 131, 143, .35);
      transition: transform .15s, box-shadow .15s, background .15s;
    }
    .anno-drop:hover::before { transform: rotate(-45deg) scale(1.08); background: #00acc1; }
    .anno-drop.active::before {
      background: var(--anno-teal-dark);
      box-shadow: 0 0 0 3px rgba(38, 198, 218, .45);
    }
    .anno-drop .num {
      position: relative; z-index: 1;
      display: flex; align-items: center; justify-content: center;
      width: 100%; height: 100%;
      color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
      pointer-events: none;
    }
    .anno-sidebar {
      position: relative;
      flex: 0 0 var(--anno-width);
      width: var(--anno-width);
      height: 100vh;
      z-index: 50;
      background: #fff;
      border-left: 1px solid #b2ebf2;
      box-shadow: -4px 0 16px rgba(0, 0, 0, .06);
      display: flex; flex-direction: column;
      overflow: hidden;
      transition: flex-basis .22s ease, width .22s ease;
    }
    .anno-sidebar.collapsed {
      flex-basis: 0 !important;
      width: 0 !important;
      border-left: 0;
      box-shadow: none;
      pointer-events: none;
    }
    .anno-sidebar.dragging { transition: none; }
    .anno-resizer {
      position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
      cursor: col-resize; z-index: 2; background: transparent;
    }
    .anno-resizer:hover, .anno-resizer.dragging { background: rgba(38, 198, 218, .25); }
    .anno-hd {
      flex-shrink: 0; height: 44px;
      background: linear-gradient(180deg, #e0f7fa, #b2ebf2);
      border-bottom: 1px solid #80deea;
      display: flex; align-items: center; justify-content: center;
      position: relative; padding: 0 40px;
    }
    .anno-hd h2 { margin: 0; font-size: 15px; font-weight: 700; color: #006064; letter-spacing: .06em; }
    .anno-hd .anno-close {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      width: 28px; height: 28px; border: 0; background: rgba(255,255,255,.6);
      border-radius: 6px; cursor: pointer; color: #006064; font-size: 16px; line-height: 1;
    }
    .anno-hd .anno-close:hover { background: #fff; }
    .anno-bd { flex: 1; overflow-y: auto; padding: 16px 18px 32px; font-size: 12.5px; line-height: 1.65; color: #374151; }
    .anno-section {
      margin-bottom: 20px; scroll-margin-top: 12px;
      border: 1px solid #e0f2f1; border-radius: 8px; overflow: hidden;
      transition: box-shadow .2s;
    }
    .anno-section.flash { box-shadow: 0 0 0 3px rgba(38, 198, 218, .35); }
    .anno-sec-hd {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px; background: #f0fdff; border-bottom: 1px solid #e0f2f1;
    }
    .anno-sec-hd h3 { margin: 0; font-size: 14px; font-weight: 700; color: #006064; }
    .anno-badge { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
    .anno-badge::before {
      content: ''; position: absolute; inset: 0; background: var(--anno-teal);
      border-radius: 50% 50% 50% 3px; transform: rotate(-45deg);
    }
    .anno-badge span {
      position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
      width: 100%; height: 100%; color: #fff; font-size: 11px; font-weight: 700;
    }
    .anno-sec-bd { padding: 12px 14px; }
    .anno-sec-bd p { margin: 0 0 10px; color: #555; }
    .anno-sec-bd p:last-child { margin-bottom: 0; }
    .anno-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
    .anno-tbl th, .anno-tbl td { border: 1px solid #e0e0e0; padding: 7px 10px; text-align: left; vertical-align: top; }
    .anno-tbl th { background: #fafafa; color: #666; font-weight: 600; white-space: nowrap; }
    .anno-tbl td { color: #444; }
    .rev-new {
      color: #6d28d9;
      background: #f3e8ff;
      font-weight: 600;
    }
    .anno-empty { text-align: center; color: #999; padding: 40px 16px; font-size: 13px; }
    .anno-tab {
      position: fixed; top: 50%; right: 0; transform: translateY(-50%);
      z-index: 60; writing-mode: vertical-rl;
      background: var(--anno-teal); color: #fff; border: 0;
      padding: 12px 8px; border-radius: 8px 0 0 8px;
      cursor: pointer; font-size: 12px; font-weight: 600;
      letter-spacing: .12em; box-shadow: -2px 2px 8px rgba(0,131,143,.3);
      transition: background .15s, opacity .2s;
    }
    .anno-tab:hover { background: #00acc1; }
    body.anno-open .anno-tab { opacity: 0; pointer-events: none; }
    .topbar .anno-toggle-btn {
      border: 1px solid #80deea; background: #e0f7fa; color: #00838f;
      padding: 4px 10px; border-radius: 14px; font-size: 11px; font-weight: 600;
      cursor: pointer; transition: all .15s;
    }
    .topbar .anno-toggle-btn:hover { background: #b2ebf2; }
    .topbar .anno-toggle-btn.on { background: var(--anno-teal); color: #fff; border-color: var(--anno-teal); }
    #view-login .anno-toggle-login {
      position: absolute; top: 16px; right: 16px; z-index: 45;
      border: 1px solid #80deea; background: #e0f7fa; color: #00838f;
      padding: 6px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; cursor: pointer;
    }
    body.app-on #annoLoginToggle { display: none; }
    .home-layout { padding-left: 8px; }
    .split { padding-left: 24px; }
    .page-title-row, .filter-box, .table-wrap, .metrics, .charts { margin-left: 24px; }
    #page-history .page-title-row, #page-analytics .page-title-row { margin-left: 24px; }
    #page-history .history-grid, #page-history .history-pager-wrap { margin-left: 24px; }
    #page-analytics > .chart-card { margin-left: 24px; margin-bottom: 14px; }
    #page-analytics > .chart-card.anno-anchor .anno-drop { top: 12px; left: -38px; }
    #page-history .history-pager-wrap { margin-top: 16px; }

