    /* 对齐 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;
      --shadow: 0 2px 8px rgba(0, 0, 0, .06);
      --radius: 8px;
      --radius-sm: 4px;
      --sidebar-w: 220px;
      --sidebar-w-collapsed: 64px;
      --primary: var(--brand);
      --primary-hover: var(--brand-hover);
      --primary-soft: var(--brand-soft);
      --text2: var(--muted);
      --border: #f0f0f0;
    }
    * { 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;
      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; }
    a { color: var(--brand); text-decoration: none; cursor: pointer; }
    a:hover { color: var(--brand-hover); }
    .app { display: flex; flex: 1; min-height: 0; overflow: hidden; }

    .topbar {
      position: relative; flex-shrink: 0; height: 52px; z-index: 40;
      background: #fff; border-bottom: 1px solid #e0e0e0;
      display: flex; align-items: center; padding: 0 16px 0 20px; gap: 8px;
    }
    .brand-mark {
      width: 28px; height: 28px; border-radius: 6px;
      background: linear-gradient(135deg, #1976d2, #0d47a1);
      color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px;
      flex-shrink: 0;
    }
    .topbar .brand-title { margin: 0; font-size: 15px; font-weight: 700; color: #1f2937; flex-shrink: 0; white-space: nowrap; }
    .topbar .top-nav {
      display: flex; align-items: center; gap: 2px; margin-left: 12px; min-width: 0;
      flex: 1 1 auto; overflow: visible;
    }
    .topbar .top-nav-item {
      border: 0; background: transparent; color: #4b5563; cursor: pointer;
      height: 36px; padding: 0 12px; border-radius: 6px; font-size: 13px; white-space: nowrap;
      transition: color .15s, background .15s;
    }
    .topbar .top-nav-item:hover { color: var(--brand); background: #f0f5ff; }
    .topbar .top-nav-item.active { color: var(--brand); font-weight: 600; background: #f0f5ff; }
    .top-more { position: relative; flex-shrink: 0; }
    .top-more-btn {
      width: 36px; height: 36px; border: 0; background: transparent; border-radius: 6px;
      cursor: pointer; color: #4b5563; font-size: 18px; line-height: 1;
      display: grid; place-items: center;
    }
    .top-more-btn:hover, .top-more.open .top-more-btn { color: var(--brand); background: #f0f5ff; }
    .top-more-btn.active-mod { color: var(--brand); font-weight: 700; }
    .top-more-menu {
      display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 140px;
      background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
      box-shadow: 0 8px 24px rgba(15, 23, 42, .12); padding: 6px; z-index: 50;
    }
    .top-more.open .top-more-menu { display: block; }
    .top-more-menu button {
      display: block; width: 100%; text-align: left; border: 0; background: transparent;
      padding: 9px 12px; border-radius: 6px; cursor: pointer; color: #374151; font-size: 13px;
    }
    .top-more-menu button:hover { background: #f0f5ff; color: var(--brand); }
    .top-more-menu button.active { background: #e3f2fd; color: var(--brand); font-weight: 600; }
    .topbar .crumb { color: var(--muted); font-size: 12px; display: none; }
    .topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    .topbar .top-search {
      display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
      border: 1px solid #e5e7eb; border-radius: 16px; background: #f8fafc; color: #9ca3af; font-size: 12px;
      min-width: 120px;
    }
    .topbar .top-user { color: #4b5563; font-size: 12px; white-space: nowrap; }
    .proto-tag {
      background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2;
      padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600;
    }
    .nav-group { display: none; }
    .nav-group.show { display: block; }
    .order-status-tabs {
      display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
      border-bottom: 1px solid #f0f0f0; margin-bottom: 12px;
    }
    .order-status-tabs button {
      border: 0; background: transparent; height: 40px; padding: 0 14px;
      color: #606266; font-size: 13px; cursor: pointer; position: relative;
      white-space: nowrap;
    }
    .order-status-tabs button:hover { color: var(--brand); }
    .order-status-tabs button.active {
      color: var(--brand); font-weight: 600;
    }
    .order-status-tabs button.active::after {
      content: ''; position: absolute; left: 10px; right: 10px; bottom: 0;
      height: 2px; background: var(--brand); border-radius: 1px 1px 0 0;
    }
    .order-goods-cell { display: flex; gap: 10px; align-items: flex-start; min-width: 200px; }
    .order-goods-thumb {
      width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0;
      background: #f5f5f5;
    }
    .order-goods-meta { min-width: 0; }
    .order-goods-meta .name {
      font-size: 13px; color: #303133; line-height: 1.4;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .order-goods-meta .spec { font-size: 12px; color: #909399; margin-top: 2px; }
    .order-pay-cell, .order-buyer-cell {
      font-size: 12px; line-height: 1.55; color: #606266; min-width: 140px;
    }
    .order-pay-cell .amt { color: #303133; font-weight: 600; font-size: 13px; }
    .tag-ship { background: #fff7e6; color: #fa8c16; }
    .tag-pay { background: #e6f7ff; color: #1890ff; }
    .tag-recv { background: #f6ffed; color: #52c41a; }
    .tag-done { background: #f5f5f5; color: #8c8c8c; }
    .tag-close { background: #fff1f0; color: #f5222d; }
    .tag-order-wait { background: #f6ffed; color: #52c41a; }
    .tag-order-pay { background: #e6f7ff; color: #1890ff; }
    .tag-order-ship { background: #fff7e6; color: #fa8c16; }
    .tag-order-done { background: #f5f5f5; color: #8c8c8c; }
    .tag-order-cancel { background: #f5f5f5; color: #8c8c8c; }
    .order-buyer-cell .buyer-link { color: var(--brand); cursor: pointer; }
    .order-pay-cell .freight { color: #909399; }
    .th-sort { cursor: default; white-space: nowrap; }
    .th-sort .sort-ico { margin-left: 4px; color: #c0c4cc; font-size: 10px; }
    .filter-item-combo {
      display: flex; align-items: center; gap: 8px; min-width: 280px; flex: 0 1 320px;
    }
    .filter-item-combo > label {
      flex: 0 0 auto; color: var(--text); font-size: 14px; white-space: nowrap; min-width: 72px;
    }
    .filter-item-combo .combo-fields {
      flex: 1; min-width: 0; display: flex; gap: 0; border: 1px solid #d0d0d0;
      border-radius: var(--radius-sm); overflow: hidden; background: #fff; height: 34px;
    }
    .filter-item-combo .combo-fields .select {
      width: 96px; flex: 0 0 96px; border: 0; border-right: 1px solid #d0d0d0;
      border-radius: 0; height: 100%;
    }
    .filter-item-combo .combo-fields .input {
      flex: 1; border: 0; border-radius: 0; height: 100%; min-width: 0;
    }
    .link-expand {
      border: 0; background: transparent; color: var(--brand);
      cursor: pointer; font: inherit; padding: 0 4px;
    }
    .order-check-cell {
      vertical-align: middle;
      white-space: nowrap;
      width: 56px;
      padding-left: 8px !important;
      padding-right: 8px !important;
    }
    .order-check-cell .check-wrap {
      display: inline-flex;
      align-items: center;
      gap: 0;
    }
    .order-check-cell .caret-slot {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
    .order-check-cell .caret-btn {
      border: 0; background: transparent; color: #909399; cursor: pointer;
      padding: 0; width: 16px; height: 16px; font-size: 10px; line-height: 1;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .order-check-cell .caret-btn.collapsed { transform: rotate(-90deg); }
    .order-main-ft td {
      background: #f5f7fa; padding: 8px 12px; border-top: 0;
      font-size: 12px; color: #606266;
    }
    .order-main-ft .ft-inner {
      display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
    }
    .order-main-ft .ft-item { white-space: nowrap; }
    .order-main-ft .ft-item b { color: #303133; font-weight: 600; }
    .order-span-cell { vertical-align: top; }
    table.data .order-sub-row.hidden-sub { display: none; }
    .nav-sub {
      margin: 0; padding: 0 0 4px 0; list-style: none;
    }
    .nav-sub-toggle {
      display: flex; align-items: center; gap: 12px;
      width: 100%; height: 44px; border: 0; background: transparent;
      text-align: left; padding: 0 24px; color: #555; cursor: pointer;
    }
    .nav-sub-toggle:hover { background: #f0f5ff; color: var(--brand); }
    .nav-sub-toggle.active,
    .nav-sub.open .nav-sub-toggle {
      color: var(--brand); font-weight: 600; background: #f0f5ff;
    }
    .nav-sub-toggle .caret { margin-left: auto; font-size: 10px; color: #999; transition: transform .15s; }
    .nav-sub.open .nav-sub-toggle .caret { transform: rotate(180deg); }
    .nav-sub-list { display: none; padding: 0 0 6px; }
    .nav-sub.open .nav-sub-list { display: block; }
    .nav-sub-list .nav-item { height: 38px; padding-left: 42px; font-size: 12.5px; }

    .sidebar {
      width: var(--sidebar-w); flex-shrink: 0; background: #fff;
      border-right: 1px solid #e5e7eb;
      overflow-x: hidden; overflow-y: auto;
      padding: 12px 0 24px;
      transition: width .22s ease;
      align-self: stretch;
    }
    .sidebar.collapsed { width: var(--sidebar-w-collapsed); }
    .sidebar-hd {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 24px 12px; color: #999; font-size: 11px; font-weight: 600;
      letter-spacing: .04em; min-height: 34px;
      transition: padding .22s ease;
    }
    .sidebar.collapsed .sidebar-hd {
      justify-content: center; padding: 8px 0 12px;
    }
    .sidebar-hd .sidebar-title {
      white-space: nowrap; overflow: hidden;
      transition: opacity .15s ease, width .22s ease;
    }
    .sidebar.collapsed .sidebar-hd .sidebar-title {
      opacity: 0; width: 0; overflow: hidden;
    }
    .sidebar-hd .menu-ico {
      cursor: pointer; font-size: 16px; color: #999;
      width: 32px; height: 32px; border: 0; background: transparent;
      border-radius: 6px; display: grid; place-items: center; flex-shrink: 0;
      transition: color .15s, background .15s;
    }
    .sidebar-hd .menu-ico:hover { color: var(--brand); background: #f0f5ff; }
    .nav { padding: 0; }
    .nav-item {
      display: flex; align-items: center; gap: 12px;
      width: 100%; height: 44px; border: 0; background: transparent;
      text-align: left; padding: 0 24px; color: #555; cursor: pointer;
      border-right: 3px solid transparent; transition: all .15s;
      overflow: hidden; white-space: nowrap;
    }
    .sidebar.collapsed .nav-item {
      justify-content: center; padding: 0; gap: 0;
    }
    .sidebar.collapsed .nav-sub-toggle {
      justify-content: center; padding: 0; gap: 0;
    }
    .sidebar.collapsed .nav-sub-toggle .nav-label,
    .sidebar.collapsed .nav-sub-toggle .caret,
    .sidebar.collapsed .nav-sub-list { display: none; }
    .nav-item .nav-label {
      overflow: hidden; text-overflow: ellipsis;
      transition: opacity .15s ease, width .22s ease;
    }
    .sidebar.collapsed .nav-item .nav-label {
      opacity: 0; width: 0; overflow: hidden;
    }
    .nav-item:hover { background: #f0f5ff; color: var(--brand); }
    .nav-item.active {
      background: #f0f5ff; color: var(--brand); font-weight: 600;
      border-right-color: var(--brand);
    }
    .sidebar.collapsed .nav-item.active { border-right-color: transparent; }
    .nav-item .dot {
      width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55;
      flex-shrink: 0;
    }

    .main {
      flex: 1; min-width: 0; overflow: auto;
      display: flex; flex-direction: column; background: var(--main-bg);
    }
    .page-bar {
      min-height: 44px; background: #fff;
      display: flex; align-items: stretch; justify-content: flex-start;
      padding: 0; flex-shrink: 0; gap: 0;
      border-bottom: 1px solid #e8eaed;
    }
    .page-bar h1 { display: none; }
    .page-bar .close-x {
      display: none !important;
    }
    .ws-tabs {
      display: flex; align-items: stretch; gap: 0;
      overflow-x: auto; flex: 1; min-width: 0;
      padding: 0 8px;
      scrollbar-width: thin;
    }
    .ws-tab {
      position: relative;
      display: inline-flex; align-items: center; gap: 8px;
      height: 44px; padding: 0 14px; border: 0; background: transparent;
      color: #606266; font-size: 13px; cursor: pointer; white-space: nowrap;
      flex-shrink: 0; transition: color .15s;
    }
    .ws-tab:hover { color: var(--brand); }
    .ws-tab.active {
      color: var(--brand); font-weight: 600;
    }
    .ws-tab.active::after {
      content: ''; position: absolute; left: 10px; right: 10px; bottom: 0;
      height: 2px; background: var(--brand); border-radius: 1px 1px 0 0;
    }
    .ws-tab .ws-tab-x {
      width: 16px; height: 16px; border: 0; background: transparent;
      color: #c0c4cc; font-size: 14px; line-height: 1; border-radius: 50%;
      cursor: pointer; padding: 0; display: grid; place-items: center;
    }
    .ws-tab .ws-tab-x:hover { background: #f0f2f5; color: #909399; }
    .ws-tab.fixed .ws-tab-x { display: none; }
    .content { padding: 16px 24px 40px 48px; flex: 1; }

    .page { display: none; animation: fade .18s ease; }
    .page.active { display: block; }
    @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

    .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-icon {
      width: 34px; height: 34px; padding: 0; color: #fff;
      background: var(--brand); border-color: var(--brand); border-radius: var(--radius-sm);
    }
    .btn-icon:hover { background: var(--brand-hover); color: #fff; }
    .btn-icon.ghost {
      background: #fff; color: #555; border-color: #d0d0d0;
    }
    .btn-icon.ghost:hover { color: var(--brand); border-color: var(--brand); background: #f5f8ff; }
    .btn-danger-text { color: var(--danger); border-color: #ffcdd2; }
    .btn-danger-text:hover { background: #fce4ec; color: var(--danger); }
    .btn-danger-text[disabled] {
      color: #bfbfbf; border-color: #eee; background: #fff; cursor: not-allowed;
    }
    .btn-danger-text[disabled]:hover {
      color: #bfbfbf; border-color: #eee; background: #fff;
    }
    .del-lock-tip { display: inline-block; cursor: not-allowed; }
    .del-lock-tip > button { pointer-events: none; }
    .link {
      color: var(--brand); cursor: pointer; background: none; border: 0;
      padding: 0; font: inherit; font-weight: 500; font-size: 12.5px;
    }
    .link:hover { color: var(--brand-hover); }
    .link-danger { color: var(--danger); }
    .ops { display: flex; gap: 10px; flex-wrap: wrap; }

    .toolbar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
    }
    .toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

    /* 截图风格：筛选区 + 查询/重置 */
    .filter-panel {
      background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
      padding: 20px 20px 8px; margin-bottom: 16px;
    }
    .filter-grid {
      display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start;
    }
    .filter-item {
      display: flex; align-items: center; gap: 8px; min-width: 280px; flex: 0 1 320px;
    }
    .filter-item > label {
      flex: 0 0 auto; color: var(--text); font-size: 14px; white-space: nowrap; min-width: 72px;
    }
    .filter-item .input,
    .filter-item .select,
    .filter-item .date-range {
      flex: 1; min-width: 0; width: 100%;
    }
    .filter-actions {
      display: flex; gap: 8px; margin-left: auto; align-items: center;
      padding-bottom: 12px; align-self: flex-end;
    }
    .action-bar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
    }
    .action-bar .anchor-link-bar {
      display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
      max-width: min(560px, 100%);
    }
    .action-bar .hint-url {
      color: var(--muted); font-size: 12px;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      flex: 1; min-width: 0;
    }
    .action-bar .btn-copy {
      flex-shrink: 0; height: 28px; padding: 0 12px; font-size: 12px;
    }

    /* 创建时间 · 日期范围选择器 */
    .drp-wrap { position: relative; width: 100%; max-width: 320px; }
    .drp-input {
      display: flex; align-items: center; gap: 8px;
      height: 34px; padding: 0 10px;
      border: 1px solid #d0d0d0; border-radius: var(--radius-sm);
      background: #fff; cursor: pointer;
    }
    .drp-input:hover { border-color: #bdbdbd; }
    .drp-wrap.open .drp-input {
      border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 118, 210, .15);
    }
    .drp-icon { color: #999; font-size: 14px; line-height: 1; flex-shrink: 0; }
    .drp-input input {
      border: 0; outline: none; background: transparent; font: inherit;
      color: var(--text); flex: 1; min-width: 0; cursor: pointer; padding: 0;
    }
    .drp-panel {
      display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 50;
      background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 12px;
    }
    .drp-wrap.open .drp-panel { display: block; }
    .drp-calendars { display: flex; gap: 16px; }
    .drp-cal { width: 252px; user-select: none; }
    .drp-cal-hd {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #333;
    }
    .drp-cal-hd button {
      border: 0; background: none; cursor: pointer; color: #999;
      width: 24px; height: 24px; border-radius: 4px; font-size: 14px;
    }
    .drp-cal-hd button:hover { background: #f5f5f5; color: #333; }
    .drp-weekdays, .drp-days {
      display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    }
    .drp-weekdays span {
      text-align: center; font-size: 12px; color: #999; padding: 4px 0;
    }
    .drp-day {
      text-align: center; font-size: 12px; padding: 6px 0; border-radius: 4px;
      cursor: pointer; color: #333;
    }
    .drp-day.other { color: #ccc; }
    .drp-day:hover:not(.disabled) { background: #e3f2fd; }
    .drp-day.in-range { background: #e3f2fd; border-radius: 0; }
    .drp-day.start, .drp-day.end {
      background: var(--brand); color: #fff; border-radius: 50%;
    }
    .drp-day.start.in-range { border-radius: 50% 0 0 50%; }
    .drp-day.end.in-range { border-radius: 0 50% 50% 0; }
    .drp-day.start.end { border-radius: 50%; }
    .drp-ft {
      display: flex; justify-content: flex-end; gap: 8px;
      margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0;
    }
    .tag-outline {
      display: inline-flex; align-items: center; padding: 0 8px; height: 22px;
      border: 1px solid #91d5ff; background: #e6f7ff; color: #1890ff;
      border-radius: 2px; font-size: 12px; line-height: 20px;
    }
    .tag-outline.brand {
      border-color: #90caf9; background: #e3f2fd; color: #1565c0;
    }
    .tag-outline.discount {
      border-color: #b7eb8f; background: #f6ffed; color: #389e0d;
    }
    .status-muted { color: #999; }
    .status-ok-text {
      display: inline-flex; align-items: center; padding: 0 8px; height: 22px;
      background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a;
      border-radius: 2px; font-size: 12px;
    }
    .status-off-text {
      display: inline-flex; align-items: center; padding: 0 8px; height: 22px;
      background: #fff1f0; border: 1px solid #ffa39e; color: #cf1322;
      border-radius: 2px; font-size: 12px;
    }
    .nav-section-title {
      padding: 10px 16px 6px; font-size: 12px; color: #909399; font-weight: 600;
    }
    th.delta-col, td.delta-col {
      background: #e3f2fd !important;
      color: #0d47a1;
      font-weight: 600;
    }
    .filter-item.delta-filter label {
      color: #0d47a1;
      font-weight: 600;
    }
    .filter-item.delta-filter .select,
    .filter-item.delta-filter .input {
      border-color: #90caf9;
      background: #f5faff;
    }
    .ops-more {
      position: relative; display: inline-flex; align-items: center;
    }
    .ops-more > .link { display: inline-flex; align-items: center; gap: 2px; }
    /* 行内占位菜单默认隐藏；真正展示的是挂到 body 的 #opsMenuPortal */
    .ops-more .ops-menu { display: none !important; }
    #opsMenuPortal {
      display: none; position: absolute; z-index: 10050;
      background: #fff; border: 1px solid #e8e8e8; border-radius: 6px;
      box-shadow: 0 6px 16px rgba(0,0,0,.12); min-width: 108px; padding: 4px 0;
    }
    #opsMenuPortal.show { display: block; }
    #opsMenuPortal button {
      display: block; width: 100%; text-align: left; border: 0; background: none;
      padding: 8px 14px; cursor: pointer; color: var(--text); font-size: 13px;
    }
    #opsMenuPortal button:hover { background: #f5f8ff; color: var(--brand); }
    table.data th.col-check, table.data td.col-check { width: 48px; text-align: center; padding-left: 16px; padding-right: 8px; }
    table.data th.col-ops, table.data td.col-ops {
      position: sticky; right: 0; background: #fff; box-shadow: -6px 0 8px -6px rgba(0,0,0,.08);
      z-index: 2;
    }
    table.data th.col-ops { background: #f9fafb; z-index: 3; }
    table.data tr:hover td.col-ops { background: #f5f8ff; }
    .url-box {
      height: 34px; min-width: 360px; max-width: 520px; padding: 0 12px;
      border: 1px solid #d0d0d0; border-radius: var(--radius-sm);
      background: #fff; color: var(--muted); font-size: 12px;
      display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .input, .select {
      height: 34px; padding: 0 10px; border: 1px solid #d0d0d0;
      border-radius: var(--radius-sm); background: #fff; outline: none; min-width: 140px;
    }
    .input:focus, .select:focus, .textarea:focus {
      border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 118, 210, .15);
    }
    .input::placeholder { color: #bbb; }
    .select { min-width: 120px; color: var(--muted); }
    .more-filter {
      color: var(--brand); cursor: pointer; font-size: 13px;
      display: inline-flex; align-items: center; gap: 4px; user-select: none; font-weight: 500;
    }
    .date-range {
      display: inline-flex; align-items: center; border: 1px solid #d0d0d0;
      border-radius: var(--radius-sm); height: 34px; background: #fff; overflow: hidden;
      min-width: 260px;
    }
    .date-range input {
      border: 0; height: 32px; width: 120px; flex: 1; padding: 0 8px; outline: none;
      min-width: 0;
    }
    .date-range .sep { color: #999; padding: 0 4px; flex-shrink: 0; }

    .panel {
      background: var(--panel); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow: hidden;
    }
    .table-wrap { overflow-x: auto; }
    #page-coupons .table-wrap {
      max-height: calc(100vh - 300px);
      overflow: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    #page-coupons .table-wrap::-webkit-scrollbar { display: none; width: 0; height: 0; }
    table.data {
      width: 100%; border-collapse: collapse; min-width: 1100px;
    }
    table.data th, table.data td {
      padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
      text-align: left; vertical-align: middle; white-space: nowrap;
    }
    table.data th {
      background: #f9fafb; color: #666; font-weight: 600; font-size: 13px;
    }
    table.data tr:hover td { background: #f5f8ff; }
    table.data td { color: var(--text); font-size: 13px; }
    .empty {
      text-align: center; color: #999; padding: 48px 16px; font-size: 13px;
    }

    .host-cell { display: flex; align-items: center; gap: 10px; }
    .avatar {
      width: 36px; height: 36px; border-radius: 50%; background: #90caf9;
      display: grid; place-items: center; color: #fff; font-size: 12px; flex-shrink: 0;
      font-weight: 600;
    }
    .avatar.blue { background: linear-gradient(135deg, #64b5f6, #1976d2); }
    .avatar.green { background: linear-gradient(135deg, #81c784, #2e7d32); }
    .host-meta { line-height: 1.4; font-size: 12px; color: #555; }
    .host-meta .id { color: #999; }
    .prod-cell { display: flex; align-items: center; gap: 8px; }
    .thumb {
      width: 40px; height: 40px; border-radius: 6px; background: #f5f5f5;
      border: 1px solid #eee; flex-shrink: 0;
    }
    .tag {
      display: inline-flex; align-items: center; padding: 2px 8px;
      border-radius: 10px; font-size: 11px; font-weight: 500; border: 0;
      background: #e3f2fd; color: #1565c0;
    }
    .tag-on { background: #e8f5e9; color: #2e7d32; }
    .tag-off { background: #fce4ec; color: #c62828; }
    .tag-end { background: #f5f5f5; color: #757575; }
    .tag-wait { background: #e3f2fd; color: #1565c0; }
    .tag-live { background: #fce4ec; color: #c62828; }
    .tag-ok { background: #e8f5e9; color: #2e7d32; }
    .status-on { color: var(--brand); font-weight: 500; }
    .status-off { color: var(--danger); font-weight: 500; }
    .status-end { color: #757575; }
    .status-wait { color: #1565c0; }
    .status-live { color: #c62828; font-weight: 600; }
    .editable { display: inline-flex; align-items: center; gap: 4px; }
    .editable .pen { color: var(--brand); cursor: pointer; font-size: 12px; }

    .pager {
      display: flex; align-items: center; justify-content: flex-end; gap: 8px;
      padding: 14px 16px; 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: 1px solid #d0d0d0;
      background: #fff; border-radius: var(--radius-sm); cursor: pointer;
      display: grid; place-items: center; padding: 0 6px;
    }
    .pager .pg.active, .pager .pg:hover {
      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 { min-width: 90px; }

    .metrics {
      display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
      margin-bottom: 16px;
    }
    .metrics.metrics-dash {
      grid-template-columns: repeat(5, 1fr);
    }
    .dashboard-funnel-wrap {
      margin-bottom: 16px;
    }
    .dashboard-funnel-wrap .chart-card {
      max-width: 520px;
    }
    .metric {
      padding: 20px; background: #fff; border-radius: var(--radius);
      box-shadow: var(--shadow); transition: all .15s;
    }
    .metric:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
    .metric .label {
      color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px;
    }
    .metric .label .info {
      width: 14px; height: 14px; border-radius: 50%; border: 1px solid #bbb;
      color: #999; font-size: 10px; display: grid; place-items: center; cursor: help;
      flex-shrink: 0; position: relative; z-index: 2;
    }
    .chart-card h3 .info {
      width: 14px; height: 14px; border-radius: 50%; border: 1px solid #bbb;
      color: #999; font-size: 10px; display: inline-grid; place-items: center;
      cursor: help; vertical-align: middle; flex-shrink: 0; position: relative; z-index: 2;
    }
    .info-tip-pop {
      position: fixed; z-index: 9999; max-width: 280px;
      padding: 8px 10px; border-radius: 6px;
      background: rgba(0, 0, 0, .82); color: #fff;
      font-size: 12px; line-height: 1.5; font-weight: 400;
      box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
      pointer-events: none; white-space: normal; word-break: break-word;
    }
    .info-tip-pop[hidden] { display: none !important; }
    .metric .val { font-size: 28px; font-weight: 700; margin-top: 6px; color: #1f2937; }

    .charts {
      display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
    }
    .chart-card {
      background: #fff; border-radius: var(--radius); padding: 18px 20px 14px;
      min-height: 280px; box-shadow: var(--shadow);
    }
    .chart-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #1f2937; }
    .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;
    }
    .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;
    }
    .chart-y {
      position: absolute; left: 8px; top: 8px; bottom: 24px; display: flex;
      flex-direction: column; justify-content: space-between; color: #999; font-size: 12px;
    }
    .chart-x {
      position: absolute; left: 36px; right: 16px; bottom: 6px; text-align: center;
      color: #999; font-size: 12px;
    }
    .legend {
      display: flex; justify-content: center; gap: 20px; margin-top: 10px; font-size: 12px; color: #666;
    }
    .legend span::before {
      content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
      margin-right: 6px; vertical-align: middle;
    }
    .legend .c1::before { background: #1976d2; }
    .legend .c2::before { background: #c62828; }
    .legend .c3::before { background: #e65100; }
    .funnel {
      height: 200px; display: flex; align-items: center; justify-content: center; gap: 24px;
      padding: 16px;
    }
    .funnel-labels {
      display: flex; flex-direction: column; justify-content: space-around; height: 160px;
      color: #666; font-size: 13px; text-align: right;
    }
    .funnel-viz {
      width: 220px; height: 160px; display: flex; flex-direction: column;
      justify-content: space-between; align-items: center;
    }
    .funnel-viz i {
      display: block; height: 42px; background: linear-gradient(90deg, #64b5f6, #1976d2);
      border-radius: 6px; opacity: .9;
    }
    .funnel-viz i:nth-child(1) { width: 80px; }
    .funnel-viz i:nth-child(2) { width: 140px; opacity: .75; }
    .funnel-viz i:nth-child(3) { width: 200px; opacity: .55; }

    .back-link {
      color: var(--brand); cursor: pointer; font-size: 13px; margin-bottom: 8px;
      display: inline-flex; align-items: center; gap: 4px;
    }
    .back-link:hover { color: var(--brand-hover); }
    .anchor-info-card,
    .live-info-card {
      background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
      padding: 16px 20px; margin-bottom: 16px;
      display: flex; align-items: center; gap: 16px;
    }
    .live-cover-wrap {
      width: 120px; height: 80px; flex-shrink: 0; position: relative;
    }
    .live-cover {
      width: 120px; height: 80px; border-radius: 6px;
      background: linear-gradient(135deg, #64b5f6, #1976d2);
    }
    .live-cover-wrap .cover-status {
      position: absolute; left: 6px; top: 6px; margin: 0;
      font-size: 11px; padding: 1px 6px; border-radius: 4px;
      background: rgba(0,0,0,.45); color: #fff; z-index: 1;
    }
    .live-cover-wrap .cover-status.live { background: #c62828; }
    .live-cover-wrap .cover-status.ended { background: rgba(0,0,0,.45); }
    .live-cover-wrap .cover-status.cancelled { background: #757575; }
    .live-info-meta { min-width: 0; flex: 1; }
    .live-info-meta h2 {
      margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1f2937;
    }
    .live-info-sub {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
      color: var(--muted); font-size: 13px;
    }
    .live-info-sub .meta-item strong { color: var(--text); font-weight: 500; }
    .anchor-avatar-wrap {
      width: 96px; height: 96px; flex-shrink: 0; position: relative;
    }
    .anchor-avatar-lg {
      width: 96px; height: 96px; border-radius: 8px;
      display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 700;
      background: linear-gradient(135deg, #64b5f6, #1976d2);
    }
    .anchor-avatar-lg.blue { background: linear-gradient(135deg, #64b5f6, #1976d2); }
    .anchor-avatar-lg.green { background: linear-gradient(135deg, #81c784, #2e7d32); }
    .anchor-avatar-wrap .cover-status {
      position: absolute; left: 6px; top: 6px; margin: 0;
      font-size: 11px; padding: 1px 6px; border-radius: 4px;
      background: rgba(0,0,0,.45); color: #fff; z-index: 1;
    }
    .anchor-avatar-wrap .cover-status.live { background: #c62828; }
    .anchor-info-meta { min-width: 0; flex: 1; }
    .anchor-info-meta .anchor-id-line { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
    .anchor-info-meta h2 {
      margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1f2937;
    }
    .anchor-info-sub {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
      color: var(--muted); font-size: 13px;
    }
    .anchor-info-sub .meta-item strong { color: var(--text); font-weight: 500; }
    .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);
    }
    .chart-x-labels {
      position: absolute; left: 36px; right: 16px; bottom: 6px;
      display: flex; justify-content: space-between; color: #999; font-size: 11px;
    }
    .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; }
    .prod-detail-cell .info { line-height: 1.5; }
    .prod-detail-cell .name { font-weight: 500; color: var(--text); }
    .prod-detail-cell .spec { color: #999; font-size: 12px; }
    .prod-detail-cell .price { color: #c62828; font-size: 12px; }
    .tag-settled { background: #e8f5e9; color: #2e7d32; }
    .tag-pending { background: #fff3e0; color: #e65100; }
    .member-id { color: #999; font-size: 12px; }
    .order-yes { color: var(--ok); font-weight: 500; }
    .order-no { color: #999; }

    .tabs {
      display: flex; gap: 4px; border-bottom: 1px solid #e0e0e0;
      padding: 0 12px; background: #fff;
    }
    .tab {
      height: 46px; line-height: 46px; border: 0; background: none; cursor: pointer;
      color: #555; position: relative; padding: 0 16px; margin-bottom: -1px;
      border-bottom: 2px solid transparent; transition: all .15s;
    }
    .tab:hover { color: var(--brand); }
    .tab.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
    .tab.active::after { display: none; }

    .settings, .live-form-page, .mkt-form-page {
      background: #fff; padding: 24px 32px 40px; border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .mkt-form-page .form-block + .form-block {
      margin-top: 28px; padding-top: 28px; border-top: 1px solid #f0f0f0;
    }
    .mkt-form-page .form-actions {
      display: flex; justify-content: center; gap: 8px;
      margin-top: 28px; padding-top: 20px;
    }
    .mkt-form-page .form-row > label.flabel { width: 140px; }
    .mkt-form-page .form-row .fctrl { max-width: 720px; }
    .mkt-form-page .radio-col { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
    .mkt-form-page .radio-line {
      display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    }
    .mkt-form-page .input-sm { width: 100px; min-width: 80px; max-width: 120px; }
    .mkt-form-page .input-md { width: 160px; min-width: 120px; max-width: 200px; }
    .mkt-form-page .rule-inline {
      display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
    }
    .mkt-form-page .name-wrap { position: relative; max-width: 420px; }
    .mkt-form-page .name-wrap .input { width: 100%; padding-right: 64px; }
    .mkt-form-page .char-count {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      font-size: 12px; color: #999; pointer-events: none;
    }
    .mkt-form-page .textarea {
      width: 100%; max-width: 560px; min-height: 120px; padding: 10px 12px;
      border: 1px solid #d0d0d0; border-radius: var(--radius-sm); resize: vertical;
      outline: none; line-height: 1.5;
    }
    .mkt-form-page .seg-group { display: inline-flex; gap: 0; padding-top: 2px; }
    .mkt-form-page .seg-btn {
      height: 32px; padding: 0 14px; border: 1px solid #d0d0d0; background: #fff;
      color: #606266; cursor: pointer; font-size: 13px;
    }
    .mkt-form-page .seg-btn:first-child { border-radius: 4px 0 0 4px; }
    .mkt-form-page .seg-btn:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
    .mkt-form-page .seg-btn.active {
      background: var(--brand); border-color: var(--brand); color: #fff; z-index: 1;
    }
    .mkt-form-page .claim-tag {
      display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
      border-radius: 4px; background: #e3f2fd; color: #1565c0; font-size: 12px;
    }
    .mkt-form-page.is-detail .seg-btn { pointer-events: none; }
    .mkt-form-page.is-detail input:disabled,
    .mkt-form-page.is-detail textarea:disabled {
      color: #333; background: #fafafa; cursor: default; opacity: 1;
    }
    .mkt-form-page .delta-box {
      margin-top: 0; padding: 10px 12px; border-radius: 6px;
      background: #e3f2fd; color: #0d47a1; font-size: 13px; line-height: 1.55;
      border-left: 3px solid #1976d2;
    }
    .live-form-page .form-block + .form-block { margin-top: 8px; }
    .settings-block + .settings-block {
      margin-top: 36px; padding-top: 36px; border-top: 1px solid #f0f0f0;
    }
    .live-form-page .form-actions {
      display: flex; justify-content: flex-end; gap: 8px;
      margin-top: 28px; padding-top: 20px; border-top: 1px solid #f0f0f0;
    }
    .live-form-page.is-readonly input:disabled,
    .live-form-page.is-readonly textarea:disabled,
    .live-form-page.is-readonly select:disabled {
      color: #333; background: #fafafa; cursor: default; opacity: 1;
    }
    .live-form-page.is-readonly .radio { cursor: default; color: #666; }
    .live-form-page.is-readonly .upload { cursor: default; pointer-events: none; }
    .live-form-page.is-readonly .upload .del { display: none; }
    .live-form-page.is-readonly .form-actions { display: none; }
    .sec-title {
      font-size: 16px; font-weight: 600; margin: 0 0 20px; padding-left: 10px;
      border-left: 4px solid var(--brand); color: #1f2937;
    }
    .sec-title + .sec-title, .form-block + .sec-title { margin-top: 36px; }
    .form-row {
      display: flex; align-items: flex-start; margin-bottom: 22px; gap: 16px;
    }
    .form-row > label.flabel {
      width: 180px; flex-shrink: 0; text-align: right; padding-top: 5px; color: var(--text);
    }
    .form-row .fctrl { flex: 1; max-width: 480px; }
    .form-row .hint { color: #999; font-size: 12px; margin-top: 6px; line-height: 1.5; }
    .req::before { content: "*"; color: var(--danger); margin-right: 4px; }
    .radio-group { display: flex; gap: 24px; padding-top: 5px; }
    .radio {
      display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text);
    }
    .radio input { accent-color: var(--brand); }
    .switch {
      position: relative; width: 44px; height: 22px; border-radius: 100px;
      background: #bdbdbd; cursor: pointer; transition: .2s; border: 0; padding: 0;
      margin-top: 5px;
    }
    .switch::after {
      content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
      border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
    }
    .switch.on { background: var(--brand); }
    .switch.on::after { left: 24px; }
    .fctrl .input { width: 100%; max-width: 420px; }
    .input-with-btn {
      display: flex; align-items: stretch; width: 100%; max-width: 560px; gap: 0;
    }
    .input-with-btn .input {
      flex: 1; max-width: none; border-top-right-radius: 0; border-bottom-right-radius: 0;
      background: #fafafa; color: #666;
    }
    .input-with-btn .btn-copy-inline {
      flex-shrink: 0; height: auto; min-height: 34px; padding: 0 14px;
      border: 1px solid #d0d0d0; border-left: 0;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      background: #fff; color: var(--brand); font-size: 13px; cursor: pointer;
      white-space: nowrap;
    }
    .input-with-btn .btn-copy-inline:hover { background: #f5f9ff; }

    .settings-sub {
      font-size: 13px; font-weight: 600; color: #64748b;
      margin: 4px 0 16px; padding-bottom: 8px; border-bottom: 1px dashed #e5e7eb;
    }
    .settings-sub:not(:first-child) { margin-top: 28px; }
    .secret-zone-hint {
      margin: 0 0 18px; padding: 10px 12px; border-radius: 6px;
      background: #fff7ed; color: #9a3412; font-size: 12.5px; line-height: 1.55;
      border-left: 3px solid #f97316;
    }
    .settings .name-wrap { position: relative; width: 320px; max-width: 100%; }
    .settings .name-wrap .input { width: 100%; padding-right: 64px; }
    .settings .char-count {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      font-size: 12px; color: #999; pointer-events: none; white-space: nowrap;
    }
    .upload img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .pwd-wrap {
      position: relative; display: inline-flex; align-items: center; width: 100%; max-width: 420px;
    }
    .pwd-wrap .input { padding-right: 64px; }
    .pwd-toggle {
      position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
      border: 0; background: transparent; color: #64748b; font-size: 12px;
      cursor: pointer; padding: 4px 6px; border-radius: 4px; line-height: 1;
    }
    .pwd-toggle:hover { color: var(--brand); background: #eff6ff; }
    .secret-input::placeholder { color: #64748b; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

    .modal-mask {
      position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 100;
      display: none; align-items: flex-start; justify-content: center;
      padding: 48px 16px; overflow-y: auto;
    }
    .modal-mask.show { display: flex; }
    .modal {
      background: #fff; border-radius: 12px; width: 920px; max-width: 100%;
      box-shadow: 0 8px 32px rgba(0,0,0,.2); animation: pop .15s ease;
    }
    .modal.sm { width: 720px; }
    .modal.lg { width: 1000px; }
    @keyframes pop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
    .modal-hd {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 24px; border-bottom: 1px solid #f0f0f0;
    }
    .modal-hd h2 { margin: 0; font-size: 18px; font-weight: 600; color: #1f2937; }
    .modal-hd .close-x {
      width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer;
      color: #999; font-size: 20px; border-radius: 6px;
    }
    .modal-hd .close-x:hover { background: #f0f5ff; color: var(--brand); }
    .modal-bd { padding: 24px; max-height: calc(100vh - 180px); overflow-y: auto; }
    .modal-ft {
      padding: 12px 16px; border-top: 1px solid #f0f0f0;
      display: flex; justify-content: flex-end; gap: 8px;
    }
    .form-item {
      display: flex; align-items: flex-start; margin-bottom: 20px; gap: 12px;
    }
    .form-item > .flabel {
      width: 100px; flex-shrink: 0; text-align: right; padding-top: 5px; font-weight: 500;
    }
    .form-item .fctrl { flex: 1; }
    .form-item .input { width: 320px; max-width: 100%; }
    .live-form-page .name-wrap { position: relative; width: 320px; max-width: 100%; }
    .live-form-page .name-wrap .input { width: 100%; padding-right: 64px; }
    .live-form-page .char-count {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      font-size: 12px; color: #999; pointer-events: none; white-space: nowrap;
    }
    .upload {
      width: 104px; height: 104px; border: 1px dashed #d0d0d0; border-radius: 8px;
      display: grid; place-items: center; color: #999; cursor: pointer;
      background: #fafafa; position: relative; overflow: hidden;
    }
    .upload:hover { border-color: var(--brand); color: var(--brand); background: #f5f8ff; }
    .upload .plus { font-size: 28px; line-height: 1; font-weight: 300; }
    .upload.has-img { border-style: solid; padding: 0; }
    .upload .del {
      position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
      border-radius: 50%; background: var(--brand); color: #fff; border: 0;
      font-size: 12px; cursor: pointer; display: grid; place-items: center; line-height: 1;
    }
    .selected-host { margin-top: 8px; color: #555; font-size: 13px; }
    .selected-host .host-cell { margin-top: 8px; }
    .fctrl .date-range { max-width: 320px; width: 100%; }
    .fctrl .date-range input { width: 100%; }
    .fctrl > .hint { color: #999; font-size: 12px; margin-top: 6px; line-height: 1.5; }
    .store-all-tip {
      margin-top: 8px; padding: 10px 14px; background: #e6f7ff; border: 1px solid #91d5ff;
      border-radius: 6px; color: #0958d9; font-size: 13px;
    }
    .store-partial-box { margin-top: 12px; }
    .cert-ok {
      display: inline-flex; align-items: center; padding: 0 8px; height: 22px;
      background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a;
      border-radius: 2px; font-size: 12px;
    }
    .cert-no {
      display: inline-flex; align-items: center; padding: 0 8px; height: 22px;
      background: #fff7e6; border: 1px solid #ffd591; color: #d46b08;
      border-radius: 2px; font-size: 12px;
    }
    .stock-link {
      color: var(--brand); cursor: pointer; background: none; border: 0;
      padding: 0; font: inherit; text-decoration: none;
    }
    .stock-link:hover { text-decoration: underline; }
    .prod-spec { color: #999; font-size: 12px; margin-top: 2px; }
    .cat-cascader { display: inline-flex; gap: 6px; flex-wrap: wrap; }
    .cat-cascader .select { min-width: 100px; width: auto; }
    table.mini { min-width: 980px; }
    table.mini th, table.mini td { padding: 10px 8px; font-size: 13px; }
    table.mini .tiny { width: 56px; height: 28px; padding: 0 6px; }
    table.mini .pct { width: 70px; }
    table.mini .price-inp { width: 88px; }
    .pct-wrap { display: inline-flex; align-items: center; gap: 4px; }
    .toast {
      position: absolute; top: 20px; right: 20px; left: auto; transform: none;
      background: #1976d2; color: #fff; padding: 12px 20px; border-radius: 8px;
      z-index: 200; display: none; font-size: 14px;
      box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }
    .toast.show { display: block; animation: pop .15s ease; }
    .placeholder-page {
      background: #fff; padding: 80px 24px; text-align: center; color: #999;
      border-radius: var(--radius); box-shadow: var(--shadow);
    }
    .placeholder-page h3 { color: #555; margin: 0 0 8px; font-weight: 600; }
    /* 我的应用 */
    .apps-page { padding: 0 0 24px; }
    .apps-filter {
      background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
      padding: 16px 18px; margin-bottom: 20px;
    }
    .apps-filter .filter-grid {
      grid-template-columns: minmax(220px, 320px) auto;
      align-items: end;
    }
    .apps-cat { margin-bottom: 28px; }
    .apps-cat + .apps-cat {
      padding-top: 24px;
      border-top: 1px solid #eceff3;
    }
    .apps-cat-title {
      margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #303133;
    }
    .apps-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px 20px;
    }
    .app-card {
      position: relative;
      display: flex; align-items: center; gap: 14px;
      background: #fff; border: 1px solid #eef0f3;
      border-radius: 10px; padding: 18px 16px 18px 18px;
      min-height: 88px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
      cursor: default; text-align: left;
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    .app-card.is-link { cursor: pointer; }
    .app-card.is-link:hover {
      border-color: #cfe2f8; box-shadow: 0 4px 12px rgba(25,118,210,.12);
    }
    .app-card .app-ico {
      width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
      display: grid; place-items: center; overflow: hidden;
    }
    .app-card .app-ico svg { width: 28px; height: 28px; display: block; }
    .app-card .app-meta { flex: 1; min-width: 0; padding-right: 8px; }
    .app-card .app-name {
      font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.3;
      margin: 0 0 4px;
    }
    .app-card .app-desc {
      margin: 0; font-size: 12px; color: #9ca3af; line-height: 1.4;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .app-card .app-more {
      position: absolute; right: 10px; bottom: 8px;
      width: 24px; height: 24px; border: 0; background: transparent;
      color: #c0c4cc; font-size: 18px; line-height: 1; cursor: pointer;
      border-radius: 4px; padding: 0;
    }
    .app-card .app-more:hover { color: #909399; background: #f5f7fa; }
    @media (max-width: 1280px) {
      .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 960px) {
      .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .dash-overview {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px;
    }
    .dash-group {
      background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
    }
    .dash-group h4 {
      margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #374151;
      padding-bottom: 8px; border-bottom: 1px solid #f0f0f0;
    }
    .dash-group .items { display: flex; flex-direction: column; gap: 10px; }
    .dash-group .item {
      display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    }
    .dash-group .item .lbl { color: var(--muted); font-size: 13px; }
    .dash-group .item .val { font-size: 20px; font-weight: 700; color: #1f2937; white-space: nowrap; }
    .charts.dash-trend { grid-template-columns: 1fr; }
    .dash-ranks {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px;
    }
    .dash-rank-card {
      background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
    }
    .dash-rank-card .hd {
      padding: 14px 16px; font-size: 15px; font-weight: 600; border-bottom: 1px solid #f0f0f0;
    }
    .dash-rank-card table.data { min-width: 0; }
    .dash-rank-card table.data th,
    .dash-rank-card table.data td { padding: 10px 14px; white-space: normal; }
    .dash-rank-card .rank-no {
      width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
      font-size: 12px; font-weight: 700; background: #f5f5f5; color: #666;
    }
    .dash-rank-card .rank-no.top { background: #e3f2fd; color: #1565c0; }
    .check { width: 16px; height: 16px; accent-color: var(--brand); }
    .price-red { color: #c62828; font-weight: 500; }
    .filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
    .filter-row .input { min-width: 160px; }
    .rule {
      background: #E3F2FD; border: 1px solid #90CAF9; border-left: 4px solid #1976D2;
      color: #1565c0; border-radius: 6px; padding: 10px 14px; font-size: 12px; margin: 0 0 16px;
    }
    @media (max-width: 1200px) {
      .metrics { grid-template-columns: repeat(3, 1fr); }
      .metrics.metrics-dash { grid-template-columns: repeat(3, 1fr); }
      .charts { grid-template-columns: 1fr; }
      .url-box { min-width: 220px; }
    }

    /* ── 水滴形标注系统 ── */
    :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; }
    .modal-mask:not(.show) .anno-drop { display: none; }
    .modal-bd.anno-pad { padding-left: 44px; }
    .modal .anno-anchor .anno-drop { left: 8px; top: 10px; }
    .modal .modal-ft.anno-anchor { padding-left: 44px; position: relative; }
    .modal .modal-ft.anno-anchor .anno-drop { top: 50%; margin-top: -13px; left: 12px; }
    .anno-drop {
      position: absolute; top: 16px; left: -38px; z-index: 12;
      width: 26px; height: 26px; padding: 0; border: 0; background: none;
      cursor: pointer; outline: none;
    }
    .action-bar.anno-anchor .anno-drop,
    .form-actions.anno-anchor .anno-drop {
      top: 50%; margin-top: -13px;
    }
    .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; }
    .anno-tbl tr.delta-row td,
    .anno-tbl th.delta-cell,
    .anno-tbl td.delta-cell {
      background: #e3f2fd !important;
      color: #0d47a1;
      font-weight: 600;
    }
    .anno-tbl tr.delta-row td:first-child {
      box-shadow: inset 3px 0 0 #1976d2;
    }
    .delta-label {
      display: inline-block;
      padding: 0 6px;
      border-radius: 4px;
      background: #e3f2fd;
      color: #0d47a1;
      font-weight: 700;
    }
    .rev-new {
      color: #6d28d9;
      background: #f3e8ff;
      font-weight: 600;
    }
    .rev-y {
      color: #854d0e;
      background: #fef9c3;
      font-weight: 600;
    }
    .anno-tbl tr.rev-row td {
      background: #f3e8ff !important;
      color: #6d28d9;
      font-weight: 600;
    }
    .anno-tbl tr.rev-row td:first-child {
      box-shadow: inset 3px 0 0 #7c3aed;
    }
    .anno-tbl .anno-inline {
      display: inline-flex; align-items: center; gap: 6px;
    }
    .anno-tbl .anno-mini {
      display: inline-flex; align-items: center; justify-content: center;
      width: 18px; height: 18px; position: relative; flex-shrink: 0;
    }
    .anno-tbl .anno-mini::before {
      content: ''; position: absolute; inset: 0;
      background: var(--anno-teal); border-radius: 50% 50% 50% 2px;
      transform: rotate(-45deg);
    }
    .anno-tbl .anno-mini b {
      position: relative; z-index: 1; color: #fff; font-size: 9px; font-weight: 700;
    }
    .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); }
