
    :root{--bg:#f4f7f5;--panel:#fff;--ink:#17221b;--muted:#68756d;--line:#e1e8e3;--green:#19734d;--green2:#dff1e6;--red:#b64242;--shadow:0 12px 36px rgba(27,60,41,.08);--motion-ease:cubic-bezier(.22,1,.36,1);--motion-ease-soft:cubic-bezier(.4,0,.2,1);--motion-fast:160ms;--motion-medium:420ms}

  /* ================= 设计令牌（排版统一） =================
     为什么统一：原先字号 40 种、间距 105 种、圆角 20 种散乱使用，
     同一层级的元素大小不一，视觉上显得杂乱。这里收敛成一套梯度。
     改的时候只调这里，全局生效。 */
  :root{
    /* 字号：6 级梯度（原 40 种 → 6 种） */
    --fs-xs:11px;      /* 辅助说明、表格小字 */
    --fs-sm:12px;      /* 次要信息、标签 */
    --fs-base:13px;    /* 正文、表格 */
    --fs-md:14px;      /* 强调正文、按钮 */
    --fs-lg:16px;      /* 小标题 */
    --fs-xl:20px;      /* 页面标题 */
    --fs-2xl:26px;     /* 数据大数字 */

    /* 间距：7 级梯度（原 105 种 → 7 种） */
    --sp-1:4px;
    --sp-2:6px;
    --sp-3:8px;
    --sp-4:12px;
    --sp-5:16px;
    --sp-6:22px;
    --sp-7:32px;

    /* 圆角：5 级（原 20 种 → 5 种） */
    --r-sm:8px;        /* 小控件 */
    --r-md:10px;       /* 按钮、输入框 */
    --r-lg:14px;       /* 卡片内元素 */
    --r-xl:18px;       /* 卡片 */
    --r-pill:99px;     /* 标签、徽章 */

    /* 行高：3 级（原 15 种 → 3 种） */
    --lh-tight:1.3;    /* 标题 */
    --lh-base:1.6;     /* 正文 */
    --lh-loose:1.75;   /* 长段落 */

    /* 语义色（统一色板） */
    --c-ok:#19734d;      /* 成功/主色 */
    --c-ok-bg:#dff1e6;
    --c-warn:#a8620a;    /* 警告 */
    --c-warn-bg:#fdf4e3;
    --c-err:#b64242;     /* 错误/危险 */
    --c-err-bg:#fbeaea;
    --c-info:#1f7ae0;    /* 信息 */
    --c-info-bg:#eef6fc;
    --c-muted:#68756d;   /* 次要文字 */
    --c-line:#e1e8e3;    /* 分隔线 */
    --c-bg:#f4f7f5;      /* 页面底色 */
    --c-card:#fff;       /* 卡片底 */

    /* 过渡 */
    --tr-fast:160ms cubic-bezier(.22,1,.36,1);
    --tr-base:260ms cubic-bezier(.22,1,.36,1);
  }

    *{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
    button,input,select,textarea{font:inherit} button{cursor:pointer;border:0} .hidden{display:none!important}
    .wrap{max-width:1180px;margin:0 auto;padding:28px 18px 60px}.login-wrap{max-width:430px;margin:10vh auto;padding:18px}
    .brand{display:flex;align-items:center;gap:var(--sp-4)}.brand-mark{width:40px;height:40px;border-radius:var(--r-lg);background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800;font-size:var(--fs-xl)}.brand h1{font-size:var(--fs-xl);margin:0}.brand p{margin:0;color:var(--muted);font-size:var(--fs-sm)}
    .card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--shadow);padding:var(--sp-6);margin-top:18px}.login-card{padding:30px}
    .topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.user-pill{display:flex;align-items:center;gap:var(--sp-4);color:var(--muted)}.avatar{width:34px;height:34px;border-radius:50%;background:var(--green2);color:var(--green);display:grid;place-items:center;font-weight:800}
    .nav{display:flex;gap:var(--sp-3);flex-wrap:wrap;margin:0 0 18px}.nav button,.button{background:#eef3ef;color:var(--ink);padding:var(--sp-3) var(--sp-5);border-radius:var(--r-md);font-weight:700}.nav button.active,.button.primary{background:var(--green);color:#fff}.button.danger{background:#fff0f0;color:var(--red)}.button.small{padding:var(--sp-3) var(--sp-4);font-size:var(--fs-sm)}
    h2{font-size:20px;margin:0 0 3px} h3{font-size:var(--fs-md);margin:0 0 10px}.sub{color:var(--muted);margin:0 0 16px}.section-head{display:flex;justify-content:space-between;align-items:start;gap:var(--sp-5);flex-wrap:wrap}
    .grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-5)}.metric{padding:17px;border:1px solid var(--line);border-radius:var(--r-lg);background:#fbfdfb}.metric b{display:block;font-size:var(--fs-2xl);margin-top:2px}.metric span{color:var(--muted);font-size:var(--fs-sm)}
    .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-weight:700;font-size:var(--fs-sm)}.field small{color:var(--muted);font-weight:400}.field input,.field select,.field textarea{width:100%;border:1px solid #ccd8cf;border-radius:var(--r-md);background:#fff;padding:var(--sp-4) var(--sp-4);outline:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green2)}.form-actions{display:flex;justify-content:flex-end;gap:var(--sp-3);margin-top:15px}
    .table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:540px}.table th,.table td{text-align:left;padding:var(--sp-4) var(--sp-3);border-bottom:1px solid var(--line);vertical-align:top}.table th{font-size:var(--fs-sm);color:var(--muted);font-weight:700}.table td small{display:block;color:var(--muted)}.table-tools{display:flex;gap:var(--sp-3);align-items:center;flex-wrap:wrap;margin:0 0 12px}.table-tools input{flex:1;min-width:220px;border:1px solid #ccd8cf;border-radius:var(--r-md);padding:var(--sp-3) var(--sp-4);outline:0}.table-tools input:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green2)}.quick-actions{display:flex;gap:var(--sp-3);flex-wrap:wrap}.quick-actions .button{min-width:120px}.tag{display:inline-flex;align-items:center;border-radius:var(--r-pill);padding:3px var(--sp-3);font-size:var(--fs-xs);background:var(--green2);color:var(--green)}.tag.off{background:#f2f3f2;color:var(--muted)}.log-box{margin:0;background:#18221c;color:#e5f6e9;border-radius:var(--r-lg);padding:15px;max-height:420px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
    .notice{border-radius:var(--r-md);padding:var(--sp-4) var(--sp-4);margin:var(--sp-4) 0}.notice.ok{background:var(--green2);color:#245b40}.notice.err{background:#fff0f0;color:var(--red)}.empty{padding:28px;text-align:center;color:var(--muted)}.right{display:flex;justify-content:flex-end}.muted{color:var(--muted)}
    @media(max-width:760px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.wrap{padding:var(--sp-6) var(--sp-4) 50px}.card{padding:17px}}
  
  /* 用户面板里程概览 */
  .ur-hero{display:flex;align-items:center;justify-content:space-between;
    gap:18px;flex-wrap:wrap;margin:0 0 16px;padding:var(--sp-6) var(--sp-6);
    border-radius:var(--r-xl);color:#fff;
    background:linear-gradient(135deg,#0b1726,#173c2c 70%,#1f5a3a);}
  .ur-hero-km{font-size:44px;font-weight:900;line-height:var(--lh-tight);
    letter-spacing:-.03em;color:#d8f36a;
    font-variant-numeric:tabular-nums;}
  .ur-hero-km small{font-size:var(--fs-lg);font-weight:700;color:#a9c68a;
    margin-left:4px;}
  .ur-hero-label{margin-top:6px;font-size:var(--fs-base);font-weight:700;
    color:rgba(255,255,255,.62);}
  .ur-hero-right{display:flex;flex-direction:column;align-items:flex-end;
    gap:var(--sp-3);}
  .ur-hero-right .button{background:#d8f36a;color:#0b1726;border:0;
    font-weight:800;text-decoration:none;}
  .ur-hero-tip{font-size:var(--fs-xs);color:rgba(255,255,255,.5);}
  @media (max-width:560px){
    .ur-hero{padding:var(--sp-5) 18px;}
    .ur-hero-km{font-size:34px;}
    .ur-hero-right{align-items:flex-start;width:100%;}
  }

  /* 里程流水 */
  .ur-txn-tag { display: inline-block; padding:2px var(--sp-3); border-radius:var(--r-pill);
    font-size:var(--fs-xs); font-weight: 800; white-space: nowrap;
    background: rgba(11,23,38,.07); color: var(--ink-soft); }
  .ur-txn-tag.redeem { background: rgba(25,115,77,.14); color: #19734d; }
  .ur-txn-tag.order_deduct { background: rgba(255,118,88,.16); color: #b64242; }
  .ur-txn-tag.order_refund { background: rgba(145,187,255,.22); color: #2b5fa8; }
  .ur-txn-tag.admin_adjust { background: rgba(168,98,10,.14); color: #a8620a; }
  .ur-txn-km { font-weight: 800; font-variant-numeric: tabular-nums;
    white-space: nowrap; }
  .ur-txn-km.is-in { color: #19734d; }
  .ur-txn-km.is-out { color: #b64242; }
  #ur-txn-details summary:hover { color: var(--ink); }

  /* 人脸检测结果详情 */
  .uf-detail { margin-top: 10px; padding:var(--sp-4) var(--sp-4); border-radius:var(--r-lg);
    background: rgba(11,23,38,.04); font-size:var(--fs-sm); }
  .uf-row { display: flex; justify-content: space-between; padding: 3px 0;
    line-height:var(--lh-loose); }
  .uf-row span { color: var(--muted); }
  .uf-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
  .uf-tips { margin-top: 10px; padding:var(--sp-4) var(--sp-4); border-radius:var(--r-lg);
    background: rgba(145,187,255,.10); }

  /* 管理端批量与人脸缩略图 */
  .pr-face-holder { display: inline-block; padding:2px var(--sp-3);
    border-radius:var(--r-pill); font-size:var(--fs-xs); font-weight: 700;
    background: rgba(25,115,77,.14); color: #19734d; cursor: pointer; }
  .pr-face-holder:hover { background: rgba(25,115,77,.24); }

  /* 账号提交状态 */
  .ua-row { display: flex; gap:var(--sp-4); align-items: center;
    font-size:var(--fs-sm); padding: 4px 0; line-height:var(--lh-loose);
    border-bottom: 1px dashed rgba(11,23,38,.06); }
  .ua-row-l { color: var(--muted); min-width: 78px; }
  .ua-row-u { flex: 1; font-weight: 600; }
  .ua-row-s { white-space: nowrap; }
  .ua-reason { font-size:var(--fs-sm); color: #b64242; padding: 2px 0 8px 88px;
    line-height:var(--lh-loose); }

  /* ================= 全站自适应（多断点） ================= */
  /* 基础：内容区默认流体撑满，不做固定居中 */
  .app-shell { width: 100%; max-width: 100%; }
  .app-shell > .main, .app-shell > section { min-width: 0; }

  main#view { width: 100%; max-width: none; }

  /* 卡片与表格容器默认流体 */
  #view > .card, #view > .panel, #view > section { width: 100%; }

  /* --- 超宽屏（≥1920）：充分利用横向空间 --- */
  @media (min-width: 1920px) {
    .app-shell { grid-template-columns: 260px minmax(0, 1fr); }
    main#view { padding-left: 40px; padding-right: 40px; }
    /* 卡片内的栅格拉宽 */
    .mk-form { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .kpi-grid, .stat-grid, .card-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
  }

  /* --- 巨屏（1600~1919） --- */
  @media (min-width: 1600px) and (max-width: 1919px) {
    main#view { padding-left: 32px; padding-right: 32px; }
    .mk-form { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  }

  /* --- 大屏（1280~1599）：默认态，内容撑满 --- */
  @media (min-width: 1280px) and (max-width: 1599px) {
    main#view { padding-left: 26px; padding-right: 26px; }
  }

  /* --- 桌面（1024~1279） --- */
  @media (min-width: 1024px) and (max-width: 1279px) {
    .app-shell { grid-template-columns: 216px minmax(0, 1fr); }
    main#view { padding-left: 20px; padding-right: 20px; }
    .mk-form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  }

  /* --- 平板（768~1023）：侧栏收窄 --- */
  @media (min-width: 768px) and (max-width: 1023px) {
    .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
    .app-shell .sidebar-head .brand-copy,
    .app-shell .sidebar-role span:not(.status-dot):not(.role-chip),
    .app-shell .sidebar-foot-copy { display: none; }
    .app-shell .side-nav button { justify-content: center; padding:var(--sp-4) 6px; }
    .app-shell .nav-label-full { display: none; }
    .app-shell .nav-label-short { display: inline; }
    main#view { padding-left: 18px; padding-right: 18px; }
    .mk-form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  }

  /* --- 小屏（≤767）：单列，侧栏抽屉 --- */
  @media (max-width: 767px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    main#view { padding-left: 14px; padding-right: 14px; }
    .mk-form { grid-template-columns: minmax(0, 1fr); }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { min-width: 560px; }
  }

  /* --- 超小屏（≤480） --- */
  @media (max-width: 480px) {
    main#view { padding-left: 10px; padding-right: 10px; }
    .card { padding:var(--sp-5); border-radius:var(--r-lg); }
    .button { min-height: 42px; }
  }

  /* 表格在窄容器里允许横向滚动（不撑破布局） */
  .table-wrap { max-width: 100%; overflow-x: auto; }

  /* 长文本不撑破卡片 */
  .card, .panel, td, th, .route-help, .sub {
    overflow-wrap: anywhere; word-break: break-word;
  }

  /* 侧栏固定滚动，主内容独立滚动 */
  .sidebar { overflow-y: auto; overscroll-behavior: contain; }

  /* ================= 自适应修正：取消 workspace 固定上限 ================= */
  /* 原因：原来 .workspace { max-width: 1640px }，
     在 2560px 屏上右侧留白 900px。改为流体撑满。 */
  section.workspace {
    max-width: none !important;
    width: 100%;
    min-width: 0;
  }

  /* 超宽屏：内容铺满，但给侧栏留出呼吸区 */
  @media (min-width: 1920px) {
    section.workspace { padding-left: 36px; padding-right: 36px; }
  }
  @media (min-width: 2400px) {
    section.workspace { padding-left: 56px; padding-right: 56px; }
  }

  /* 表格在超宽屏下也不无限拉伸（避免一行太长难读） */
  @media (min-width: 1920px) {
    .table-wrap { max-width: 100%; }
  }

  /* --- 侧栏：≤1023 全部改抽屉，不再占位 --- */
  @media (max-width: 1023px) {
    .app-shell { grid-template-columns: minmax(0, 1fr) !important; }
    .sidebar {
      position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
      width: min(286px, 84vw) !important;
      transform: translateX(-100%);
      transition: transform .22s ease;
    }
    .app-shell.is-sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay {
      position: fixed; inset: 0; z-index: 55; background: rgba(11,23,38,.42);
      opacity: 0; pointer-events: none; transition: opacity .2s;
    }
    .app-shell.is-sidebar-open .sidebar-overlay {
      opacity: 1; pointer-events: auto;
    }
    .mobile-nav { display: flex; }
    main#view { padding-left: 16px !important; padding-right: 16px !important; }
  }

  /* ================= 超宽屏视觉优化 ================= */
  /* 主内容区至少撑满视口高度，避免"上半有内容、下半空白" */
  @media (min-width: 1600px) {
    main#view {
      min-height: calc(100vh - 180px);
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    /* KPI / 统计卡：加大留白，视觉更饱满 */
    .kpi-grid, .stat-grid, .metric-grid, .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 18px;
    }
    .kpi-grid > *, .stat-grid > *, .metric-grid > * {
      padding:var(--sp-6) var(--sp-6);
    }
    /* 卡片内部字号随宽度略微放大（超宽屏不显空） */
    .card { padding:var(--sp-6) var(--sp-6); }
    .card h2 { font-size:var(--fs-2xl); }
    .card h3 { font-size:var(--fs-lg); }
    /* 表格行高加大，填满横向空间 */
    .table td, .table th { padding-top: 12px; padding-bottom: 12px; }
  }

  /* 2400+ 再放大一档 */
  @media (min-width: 2400px) {
    .card { padding: 26px 30px; }
    .kpi-grid > *, .stat-grid > *, .metric-grid > * {
      padding: 26px 30px;
    }
    .table td, .table th { padding-top: 14px; padding-bottom: 14px; }
  }

  /* 操作卡/入口卡：超宽屏排成一行（原本会换行浪费空间） */
  @media (min-width: 1600px) {
    .action-grid, .entry-grid, .quick-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap:var(--sp-5);
    }
  }

  /* ================= 总览看板 ================= */
  .hs-grid { display: grid; grid-template-columns: repeat(auto-fit,
    minmax(360px, 1fr)); gap:var(--sp-5); margin:var(--sp-5) 0; }
  .hs-card { min-width: 0; }
  .hs-chart { display: flex; align-items: flex-end; gap:var(--sp-3);
    height: 190px; padding: 26px 4px 34px; margin-top: 10px;
    position: relative; }
  .hs-bar { flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end; height: 100%;
    position: relative; min-width: 0; }
  .hs-bar-fill { width: 100%; max-width: 52px; border-radius:var(--r-sm) 8px 3px 3px;
    background: linear-gradient(180deg, #2f6b53, #1c4b39);
    transition: height .4s ease; min-height: 2px; position: relative; }
  .hs-bar-fill.is-act { background: linear-gradient(180deg, #6f8fb8, #46628a); }
  .hs-bar-v { position: absolute; font-size:var(--fs-xs); font-weight: 800;
    color: var(--ink-soft); white-space: nowrap;
    /* 贴在柱子顶端上方 4px（用 bottom 百分比自适应） */ }
  .hs-bar-x { position: absolute; bottom: -30px; font-size:var(--fs-xs);
    color: var(--muted); white-space: nowrap; }
  .hs-todos { display: grid; grid-template-columns: repeat(auto-fit,
    minmax(200px, 1fr)); gap:var(--sp-4); }
  .hs-todo { display: flex; flex-direction: column; gap: 2px; text-align: left;
    padding: 13px 15px; border-radius:var(--r-lg); cursor: pointer;
    border: 1px solid rgba(182,66,66,.22); background: rgba(182,66,66,.06);
    font: inherit; transition: background .18s; }
  .hs-todo:hover { background: rgba(182,66,66,.12); }
  .hs-todo b { font-size:20px; color: #b64242; line-height:var(--lh-tight); }
  .hs-todo span { font-size:var(--fs-base); font-weight: 700; color: var(--ink); }
  .hs-todo small { font-size:var(--fs-xs); color: var(--muted); }
  .hs-ok { padding:var(--sp-5); border-radius:var(--r-lg); font-size:var(--fs-base);
    font-weight: 700; color: #19734d; background: rgba(25,115,77,.10); }
  .hs-stock { display: flex; flex-wrap: wrap; gap:var(--sp-4); align-items: center;
    margin-top: 8px; }
  .hs-stock-item { display: flex; flex-direction: column; align-items: center;
    min-width: 74px; padding:var(--sp-4) 13px; border-radius:var(--r-lg);
    background: rgba(11,23,38,.04); }
  .hs-stock-item b { font-size:20px; line-height:var(--lh-tight); }
  .hs-stock-item span { font-size:var(--fs-xs); color: var(--muted); }
  .hs-stock-item em { font-style: normal; font-size:var(--fs-sm); font-weight: 700;
    margin-top: 3px; }
  .hs-stock-item.is-low { background: rgba(182,66,66,.08); }
  .hs-stock-item.is-low em { color: #b64242; }
  .hs-stock-item small { font-size:11px; color: #b64242; }
  .hs-stock-total { font-size:var(--fs-sm); color: var(--muted); padding-left: 6px; }
  .hs-stock-total b { font-size:var(--fs-lg); color: var(--ink); }
  .hs-kv { display: grid; grid-template-columns: repeat(auto-fit,
    minmax(120px, 1fr)); gap:var(--sp-4); margin-top: 8px; }
  .hs-kv > div { display: flex; flex-direction: column; gap: 3px; }
  .hs-kv span { font-size:var(--fs-xs); color: var(--muted); }
  .hs-kv b { font-size:var(--fs-xl); font-weight: 800; }
  .hs-todocard { border-left: 3px solid rgba(182,66,66,.45); }

  /* 数值标签：贴在柱子上方，用 flex 避免重叠 */
  .hs-bar { position: relative; }
  .hs-bar > .hs-bar-v { top: -18px; }
  .hs-bar-wrap { display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end; height: 100%; }

  /* ================= 页面功能说明 ================= */
  .page-help { margin: 0 0 16px; padding:var(--sp-5) 18px;
    border-radius:var(--r-lg); background: rgba(11,23,38,.035);
    border: 1px solid rgba(11,23,38,.06); }
  .page-help-main { display: grid; gap:var(--sp-4);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .page-help-main b { display: block; font-size:var(--fs-xs);
    font-weight: 800; letter-spacing: .06em; color: #2f6b53;
    margin-bottom: 5px; }
  .page-help-main p { margin: 0; font-size:var(--fs-base);
    line-height:var(--lh-loose); color: var(--ink-soft); }
  .page-help-more { margin-top: 12px; }
  .page-help-more summary { cursor: pointer; font-size:var(--fs-sm);
    font-weight: 700; color: var(--muted); list-style: none; }
  .page-help-more summary::-webkit-details-marker { display: none; }
  .page-help-more summary::before { content: '▸ '; }
  .page-help-more[open] summary::before { content: '▾ '; }
  .page-help-more ul { margin:var(--sp-3) 0 0; padding-left: 20px;
    display: grid; gap: 5px; grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr)); }
  .page-help-more li { font-size:var(--fs-sm); line-height:var(--lh-loose);
    color: var(--ink-soft); }

  /* ================= 订单时间线 + 提醒条 ================= */
  .order-timeline { display: flex; align-items: center;
    gap: 0; min-width: 320px; }
  .otl-node { display: flex; align-items: center; gap: 5px;
    position: relative; }
  .otl-node small { font-size:11px; color: var(--muted);
    white-space: nowrap; }
  .otl-dot { width: 9px; height: 9px; border-radius: 50%;
    background: rgba(11,23,38,.18); flex-shrink: 0; }
  .otl-node.is-done .otl-dot { background: #19734d;
    box-shadow: 0 0 0 3px rgba(25,115,77,.18); }
  .otl-node.is-done small { color: #19734d; font-weight: 700; }
  .otl-line { display: block; width: 22px; height: 2px;
    background: rgba(11,23,38,.12); margin: 0 4px; }
  .otl-line.is-done { background: #19734d; }
  .otl-cell { padding-top: 14px !important; }

  .ur-reminders { display: grid; gap:var(--sp-3); margin-bottom: 14px; }
  .ur-reminder { display: flex; align-items: center;
    justify-content: space-between; gap:var(--sp-5);
    padding:13px var(--sp-5); border-radius:var(--r-lg);
    border: 1px solid rgba(11,23,38,.08); }
  .ur-reminder.is-warn { background: rgba(200,69,47,.06);
    border-color: rgba(200,69,47,.22); }
  .ur-reminder.is-info { background: rgba(70,98,138,.06);
    border-color: rgba(70,98,138,.18); }
  .ur-reminder b { display: block; font-size:var(--fs-base);
    margin-bottom: 3px; }
  .ur-reminder span { font-size:var(--fs-sm); color: var(--muted); }
  .ur-reminder .button { flex-shrink: 0; }

  .sidebar-home-link { display: flex; align-items: center; gap:var(--sp-3);
    margin: 0 14px 10px; padding:var(--sp-3) 13px; border-radius:var(--r-md);
    font-size:var(--fs-base); font-weight: 700; color: var(--muted);
    text-decoration: none; background: rgba(255,255,255,.05);
    transition: background .18s, color .18s; }
  .sidebar-home-link:hover { color: #fff;
    background: rgba(255,255,255,.11); }
  .app-shell.is-collapsed .sidebar-home-link span:last-child
  { display: none; }

  /* ============ 去掉导航重复 ============ */
  /* 桌面端：侧栏已足够，隐藏顶部横向导航 */
  @media (min-width: 1024px) {
    .mobile-nav { display: none !important; }
  }
  /* 移动端：侧栏是抽屉，保留横向导航 */
  @media (max-width: 1023px) {
    .mobile-nav { display: flex !important;
      position: sticky; top: 0; z-index: 30; }
  }

  /* ============ 说明块紧凑化 ============ */
  .page-help { margin: 0 0 14px; padding:var(--sp-4) 15px;
    border-radius:var(--r-lg); background: rgba(11,23,38,.03);
    border: 1px solid rgba(11,23,38,.055); }
  /* 主行：图标 + 一句话，横排 */
  .ph-row { display: flex; align-items: center; gap:var(--sp-4);
    flex-wrap: wrap; }
  .ph-icon { width: 22px; height: 22px; border-radius:var(--r-sm);
    background: rgba(47,107,83,.12); color: #2f6b53;
    display: grid; place-items: center; font-size:var(--fs-sm);
    font-weight: 800; flex-shrink: 0; }
  .ph-what { font-size:var(--fs-base); font-weight: 600;
    color: var(--ink); line-height:var(--lh-base); }
  .ph-when { font-size:var(--fs-sm); color: var(--muted);
    line-height:var(--lh-base); }
  .ph-sep { color: rgba(11,23,38,.18); }
  .ph-toggle { margin-left: auto; border: 0; cursor: pointer;
    background: rgba(11,23,38,.05); color: var(--ink-soft);
    font: inherit; font-size:var(--fs-xs); font-weight: 700;
    min-height: 34px; padding:var(--sp-3) var(--sp-5); border-radius:var(--r-pill);
    display: inline-flex; align-items: center; gap: 5px;
    flex-shrink: 0; transition: background .16s; }
  .ph-toggle:hover { background: rgba(11,23,38,.10); }
  .ph-toggle i { font-style: normal; transition: transform .2s;
    display: inline-block; }
  .page-help.is-open .ph-toggle i { transform: rotate(180deg); }
  .ph-more { display: none; margin-top: 11px;
    padding-top: 11px; border-top: 1px dashed rgba(11,23,38,.10); }
  .page-help.is-open .ph-more { display: block; }
  .ph-more ul { margin: 0; padding-left: 19px; display: grid;
    gap: 5px; grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr)); }
  .ph-more li { font-size:var(--fs-sm); line-height:var(--lh-base);
    color: var(--ink-soft); }
  @media (max-width: 640px) {
    .ph-when { display: none; }
    .ph-sep { display: none; }
  }

  /* ============ 交互目标最小尺寸 ============
     易点击标准：至少 34px 高 */
  .button.small, .ph-toggle, .sidebar-close, .icon-button
  { min-height: 34px; }
  @media (max-width: 767px) {
    .button, .button.small, .ph-toggle { min-height: 40px; }
  }

  /* ============ 说明块移动端布局修正 =============
     窄屏时按钮不要独占一行，与文字并排或靠右 */
  @media (max-width: 767px) {
    .page-help { padding:var(--sp-4) 13px; }
    .ph-row { gap:var(--sp-3); align-items: flex-start; }
    .ph-what { flex: 1 1 auto; min-width: 0; font-size:var(--fs-sm); }
    .ph-sep { display: none; }
    .ph-when { display: none; }
    .ph-toggle { margin-left: 0; flex: 0 0 auto;
      min-height: 32px; padding:6px var(--sp-4); font-size:var(--fs-xs); }
    .ph-icon { width: 20px; height: 20px; font-size:var(--fs-xs); }
  }
  @media (max-width: 400px) {
    .ph-toggle { padding:6px var(--sp-3); }
  }

  /* ================= 下一步引导条 ================= */
  .ur-next { display: flex; align-items: center; gap:var(--sp-5);
    padding: 15px 18px; border-radius:var(--r-lg); margin-bottom: 13px;
    background: linear-gradient(135deg, rgba(47,107,83,.09),
    rgba(47,107,83,.03));
    border: 1px solid rgba(47,107,83,.22); }
  .ur-next-num { width: 30px; height: 30px; border-radius: 50%;
    background: #2f6b53; color: #fff; display: grid;
    place-items: center; font-size:var(--fs-md); font-weight: 800;
    flex-shrink: 0; }
  .ur-next-body { flex: 1; min-width: 0; }
  .ur-next-body b { display: block; font-size: 14.5px;
    margin-bottom: 3px; }
  .ur-next-body span { font-size:var(--fs-sm); color: var(--muted);
    line-height:var(--lh-base); }
  .ur-next .button { flex-shrink: 0; }
  @media (max-width: 640px) {
    .ur-next { flex-wrap: wrap; gap:var(--sp-4); padding:13px var(--sp-5); }
    .ur-next-body { flex: 1 1 100%; order: 2; }
    .ur-next .button { order: 3; width: 100%; }
    .ur-next-num { order: 1; }
  }

  .page-help{margin:0 0 12px;padding:0;border:0;background:transparent;color:var(--muted)}
  .page-help>summary{cursor:pointer;list-style:none;font-size:12px;font-weight:750;color:#557064}
  .page-help>summary::-webkit-details-marker{display:none}
  .page-help>summary::before{content:"＋ ";color:var(--green)}
  .page-help[open]>summary::before{content:"− ";}
  .page-help-content{margin-top:8px;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:#fff}
  .page-help-content p{margin:0 0 8px;font-size:13px;line-height:1.6}
  .page-help-content ul{margin:0;padding-left:19px;display:grid;gap:5px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
  .page-help-content li{font-size:12px;line-height:1.55}

/* ===== 长表格滑动浏览 =====
   为什么：用户资料页的表格可能几百行，整页拉得很长，
   找一条数据要滚半天。这里给表格套限高容器：
     · 表头 sticky —— 滚动时始终可见
     · 主体限高 62vh —— 一屏看完，不用滚整页
     · 横向可滚 —— 列多时不挤压
*/
.pr-scroll {
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(11, 23, 38, .10);
  border-radius: 10px;
  background: #fff;
  scrollbar-width: thin;
}
.pr-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.pr-scroll::-webkit-scrollbar-track {
  background: rgba(11, 23, 38, .04);
  border-radius: 10px;
}
.pr-scroll::-webkit-scrollbar-thumb {
  background: rgba(11, 23, 38, .22);
  border-radius: 10px;
}
.pr-scroll::-webkit-scrollbar-thumb:hover { background: rgba(11, 23, 38, .34); }
.pr-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fb;
  box-shadow: inset 0 -1px 0 rgba(11, 23, 38, .10);
}
.pr-scroll table, .pr-scroll .table { margin: 0; }

/* 表格条数徽标 */
.pr-count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(11, 23, 38, .55);
}
.pr-count b { color: rgba(11, 23, 38, .85); }

/* 分区标题带重要度圆点 */
.pr-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 7px; vertical-align: middle;
}
.pr-dot.p1 { background: #1f9d55; }
.pr-dot.p2 { background: #d97706; }
.pr-dot.p3 { background: rgba(11, 23, 38, .28); }

/* 跑步要求折叠区 */
.pr-fold > summary {
  cursor: pointer; padding: 12px 14px; font-weight: 600;
  list-style: none; display: flex; align-items: center;
  gap: 8px; user-select: none;
}
.pr-fold > summary::-webkit-details-marker { display: none; }
.pr-fold > summary::after {
  content: "▾"; margin-left: auto; transition: transform .18s;
  color: rgba(11, 23, 38, .45);
}
.pr-fold[open] > summary::after { transform: rotate(180deg); }
.pr-fold > summary:hover { background: rgba(11, 23, 38, .03); }

/* 表格行悬停高亮（长表格里好定位） */
.pr-scroll tbody tr:hover { background: rgba(31, 157, 85, .06); }



    button:disabled{cursor:not-allowed;opacity:.5}
    .toast{position:fixed;right:22px;bottom:22px;z-index:20;min-width:260px;max-width:min(420px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(27,60,41,.18);animation:toast-in .2s ease-out}.toast.ok{border-color:#b7dfc5}.toast.err{border-color:#efbcbc}.toast.info{border-color:#b9d7eb}.toast strong{display:block;font-size:12px}.toast span{display:block;flex:1;color:var(--muted);font-size:13px;line-height:1.45}.toast button{background:transparent;color:var(--muted);font-size:18px;line-height:1;padding:0 2px}.notice.info{background:#eef6fc;color:#2a5670}.log-tools{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:12px 0 8px}.log-tools .toolbar{display:flex;gap:7px;flex-wrap:wrap}.log-box{min-height:180px;max-height:55vh;overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-y}.route-preview{display:grid;grid-template-columns:minmax(230px,.4fr) minmax(0,1fr);gap:16px;align-items:stretch}.route-canvas-wrap{position:relative;min-height:330px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#edf3ee}.route-canvas{display:block;width:100%;height:100%;min-height:330px}.route-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:var(--muted);padding:30px}.route-empty p{margin:0 0 5px;font-weight:700;color:var(--ink)}.route-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.route-meta div{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb}.route-meta strong{display:block;font-size:17px}.route-meta small{color:var(--muted)}.route-help{color:var(--muted);font-size:12px;margin-top:10px}.basemap-switch{display:flex;gap:8px;margin-bottom:12px}.basemap-switch .button.active{background:var(--green);color:#fff;border-color:var(--green)}.route-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;color:var(--green);font-weight:700}.route-badge i{width:8px;height:8px;border-radius:50%;background:var(--green)}.china-canvas-wrap{border:1px solid var(--line);border-radius:14px;background:#f7fbf7;padding:8px;margin-bottom:12px}.china-canvas{display:block;width:100%;height:170px}.china-canvas-wrap small{display:block;color:var(--muted);padding:4px 4px 0}
    .notice.info{background:#eef6fc;color:#2a5670}.amap-map{position:absolute;inset:0;min-height:330px;background:#eef7f8}.amap-map.hidden{display:none}.route-canvas.hidden{display:none}.button:has(input[data-face-role="user"]){display:none}
    @keyframes toast-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
    @keyframes panel-enter{from{opacity:.86;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
    @keyframes progress-flow{from{transform:translateX(-110%)}to{transform:translateX(260%)}}
    @keyframes loading-shimmer{from{background-position:140% 0}to{background-position:-40% 0}}
    #view[data-motion-ready="1"]{animation:panel-enter 170ms var(--motion-ease) both}
    .button,.nav button,.field input,.field select,.field textarea,.table tbody tr{transition:transform var(--motion-fast) var(--motion-ease-soft),box-shadow var(--motion-fast) var(--motion-ease-soft),border-color var(--motion-fast) var(--motion-ease-soft),background-color var(--motion-fast) var(--motion-ease-soft)}
    .button:not(:disabled):hover,.nav button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(27,60,41,.11)}.button:not(:disabled):active,.nav button:not(:disabled):active{transform:translateY(1px) scale(.985);box-shadow:none}.button:focus-visible,.nav button:focus-visible{outline:3px solid var(--green2);outline-offset:2px}
    .table tbody tr:hover{background:#fbfdfb}.table td:last-child{min-width:0}.row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.row-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}.row-actions .button.danger{color:var(--red)}.one-click-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:11px 12px;border:1px solid #cfe5d5;border-radius:12px;background:#f7fcf8;margin:10px 0 12px}.one-click-bar .muted{font-size:12px}.progress-track{position:relative;overflow:hidden;height:6px;margin-top:7px;border-radius:999px;background:#e7efe9}.progress-fill{position:relative;display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#19734d,#42a66f);transition:width 420ms var(--motion-ease)}.progress-fill.running::after{content:"";position:absolute;inset:0;width:36%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent);animation:progress-flow 1.4s linear infinite}.progress-track.compact{width:92px;min-width:92px;margin-top:4px}.motion-loading{background:linear-gradient(100deg,#eef6fc 30%,#f9fcff 45%,#eef6fc 60%);background-size:220% 100%;animation:loading-shimmer 1.7s var(--motion-ease-soft) infinite}
    .topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.topbar-buttons{display:flex;gap:7px}.role-chip{display:inline-flex;align-items:center;min-height:30px;padding:4px 10px;border:1px solid #b7dfc5;border-radius:99px;background:var(--green2);color:var(--green);font-size:12px;font-weight:800}.user-pill{padding:5px 8px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.72)}
    .nav-shell{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:6px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.72);box-shadow:0 6px 18px rgba(27,60,41,.04)}.nav-primary{display:flex;gap:8px;flex-wrap:wrap}.nav-context{padding:0 8px;color:var(--muted);font-size:12px;white-space:nowrap}.nav-primary>*{animation:card-enter 320ms var(--motion-ease) both}.nav-primary>*:nth-child(2){animation-delay:35ms}.nav-primary>*:nth-child(3){animation-delay:70ms}.nav-primary>*:nth-child(4){animation-delay:105ms}.nav-primary>*:nth-child(5){animation-delay:140ms}
    .dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.quick-actions .button{width:100%;min-width:0}.card>h3{padding-bottom:8px;border-bottom:1px solid var(--line)}.table-wrap{border:1px solid var(--line);border-radius:12px;background:#fff}.table thead th{position:sticky;top:0;background:var(--panel);z-index:1}.table-tools{padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfdfb}
    .agent-school-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #cfe5d5;border-radius:12px;background:#f7fcf8}.agent-school-summary strong{display:block;font-size:17px}.agent-school-summary small{display:block;color:var(--muted);margin-top:3px}.readonly-field{min-height:42px;display:flex;align-items:center;padding:10px 11px;border:1px dashed #b7cdbd;border-radius:10px;background:#f7faf7;color:var(--ink);font-weight:700}
    .filter-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;width:100%;margin-top:9px}.filter-label{color:var(--muted);font-size:12px;font-weight:700;margin-right:2px}.filter-chip{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12px;font-weight:700}.filter-chip b{min-width:16px;color:var(--ink);font-size:11px}.filter-chip.active{border-color:#b7dfc5;background:var(--green2);color:var(--green)}.filter-chip.active b{color:var(--green)}.is-busy{position:relative;cursor:wait!important}.is-busy::after{content:"";display:inline-block;width:11px;height:11px;margin-left:5px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:busy-spin .7s linear infinite}.empty small{display:block;margin-top:5px;color:var(--muted)}@keyframes busy-spin{to{transform:rotate(360deg)}}
    @media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.progress-fill.running::after{display:none!important}}
    .account-edit-dialog{width:min(620px,calc(100vw - 24px));max-width:620px;border:1px solid var(--line);border-radius:18px;padding:0;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(12,35,22,.26)}.account-edit-dialog::backdrop{background:rgba(8,24,15,.42)}.account-edit-dialog form{padding:22px}.account-edit-dialog h3{margin:0}.account-edit-dialog .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:15px;border-bottom:1px solid var(--line)}.account-edit-dialog .dialog-close{width:36px;height:36px;border-radius:10px;background:#eef3ef;color:var(--muted);font-size:20px}.account-edit-dialog .dialog-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
    @media(max-width:760px){.topbar-actions{width:100%;justify-content:space-between}.nav-shell{align-items:stretch;flex-direction:column}.nav-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.nav-primary button{width:100%}.nav-context{padding:3px 2px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.table-tools input{min-width:0}.form-actions{justify-content:stretch}.form-actions .button{flex:1}.mobile-nav{position:sticky;top:8px;z-index:12;background:rgba(255,255,255,.92);backdrop-filter:blur(10px)}.icon-button{width:44px;height:44px}.account-edit-dialog .dialog-foot{position:sticky;bottom:0;padding-top:12px;background:#fff}.account-edit-dialog form{padding:16px}.account-edit-dialog .dialog-foot .button{flex:1}}
    @media(max-width:760px){.filter-row{gap:6px}.filter-chip{flex:1;justify-content:center;min-width:72px;padding-left:7px;padding-right:7px}.toast{right:12px;bottom:12px}.route-preview{grid-template-columns:1fr}.route-canvas-wrap{min-height:280px}.route-canvas{min-height:280px}.table-wrap{position:relative;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.table thead th:last-child,.table tbody td:last-child{position:sticky;right:0;background:#fff;box-shadow:-10px 0 14px rgba(27,60,41,.10);z-index:2}.table thead th:last-child{background:var(--panel);z-index:3}.table tbody tr:hover td:last-child{background:#fbfdfb}.table td:last-child{min-width:130px}.row-actions{flex-direction:column;align-items:stretch}.row-actions .button{width:100%;min-width:74px}}
    .agent-manage>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:6px 10px;font-size:12px;white-space:nowrap}.agent-manage>summary::-webkit-details-marker{display:none}.agent-manage-menu{display:grid;gap:5px;min-width:112px;padding:8px 0}.agent-manage-menu .button{width:100%}
  

    :root{--sidebar:#13271d;--sidebar-muted:#a9c0b2;--sidebar-line:rgba(255,255,255,.12);--sidebar-active:#2e9b67;--canvas:#f4f7f5}
    body{background:var(--canvas)}
    .app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);transition:grid-template-columns 220ms var(--motion-ease-soft)}
    .sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:22px 14px;background:var(--sidebar);color:#fff;overflow:hidden;z-index:30}.sidebar-close{display:none}
    .sidebar-head{display:flex;align-items:center;gap:10px;padding:2px 8px}.sidebar-head .brand-mark{width:38px;height:38px;background:#47bd82;color:#102219}.sidebar-head h1{color:#fff;font-size:16px}.sidebar-head p{color:var(--sidebar-muted)}
    .sidebar-role{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid var(--sidebar-line);border-radius:12px;color:var(--sidebar-muted);font-size:12px}.sidebar-role .role-chip{margin-left:auto;border-color:rgba(255,255,255,.24);background:rgba(71,189,130,.18);color:#baf2d0}.status-dot{width:7px;height:7px;border-radius:50%;background:#61dc97;box-shadow:0 0 0 4px rgba(97,220,151,.12)}
    .side-nav{display:grid;gap:5px}.side-nav button{width:100%;display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--sidebar-muted);font-weight:700;text-align:left}.side-nav button::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.45}.side-nav button:hover{background:rgba(255,255,255,.08);color:#fff}.side-nav button.active{background:var(--sidebar-active);color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.14)}.side-nav button.active::before{opacity:1;background:#d9ffe7}
    .sidebar-foot{display:flex;align-items:center;gap:9px;margin-top:auto;padding:11px 8px;border-top:1px solid var(--sidebar-line);color:#fff}.sidebar-foot .avatar{flex:0 0 auto;background:#d7f3e3;color:var(--green)}.sidebar-foot-copy{min-width:0;display:grid;gap:1px}.sidebar-foot-copy b,.sidebar-foot-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-foot-copy small{color:var(--sidebar-muted);font-size:11px}.sidebar-collapse{margin-left:auto;padding:6px 8px;border:1px solid var(--sidebar-line);border-radius:8px;background:transparent;color:var(--sidebar-muted)}.sidebar-collapse:hover{color:#fff;background:rgba(255,255,255,.08)}
    .workspace{min-width:0;width:100%;max-width:1440px;padding:26px clamp(18px,3vw,42px) 64px}.topbar.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px;padding:0}.topbar-leading{display:flex;align-items:center;gap:12px;min-width:0}.topbar-copy{min-width:0}.page-eyebrow{color:var(--green);font-size:11px;font-weight:800;letter-spacing:.04em}.topbar-title{margin:1px 0 0;font-size:25px;line-height:1.2;letter-spacing:-.02em}.topbar-sub{margin:3px 0 0;color:var(--muted);font-size:12px}.topbar-actions{flex:0 0 auto}.sync-state{color:var(--muted);font-size:12px;white-space:nowrap}.sync-state::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#38a86c}.icon-button{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:18px}.sidebar .sidebar-close{display:none}.mobile-only,.mobile-nav{display:none}.sidebar-overlay{display:none}
    .app-shell.is-collapsed{grid-template-columns:76px minmax(0,1fr)}.app-shell.is-collapsed .sidebar-head{justify-content:center}.app-shell.is-collapsed .sidebar-head .brand-copy{display:none}.app-shell.is-collapsed .sidebar-role{justify-content:center;padding:10px 0;border-color:transparent}.app-shell.is-collapsed .sidebar-role .role-chip{display:none}.app-shell.is-collapsed .sidebar-role span:not(.status-dot),.app-shell.is-collapsed .side-nav button{font-size:0}.app-shell.is-collapsed .side-nav button{justify-content:center}.app-shell.is-collapsed .side-nav button::before{width:8px;height:8px;opacity:1}.app-shell.is-collapsed .sidebar-foot-copy{display:none}.app-shell.is-collapsed .sidebar-foot{justify-content:center;gap:5px}.app-shell.is-collapsed .sidebar-collapse{display:grid;place-items:center;width:28px;height:28px;margin:0;padding:0;font-size:18px;line-height:1}
    .workspace .section-head{padding:0 2px 2px}.workspace .section-head h2{font-size:21px}.workspace .card{box-shadow:0 10px 28px rgba(27,60,41,.06)}
    @media(max-width:900px){
      .app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(286px,86vw);transform:translateX(-105%);transition:transform 220ms var(--motion-ease-soft);box-shadow:18px 0 50px rgba(9,26,16,.28)}.sidebar .sidebar-close{display:grid}.app-shell.is-sidebar-open .sidebar{transform:translateX(0)}.sidebar-overlay{display:block;position:fixed;inset:0;z-index:20;border:0;background:rgba(6,18,11,.35);opacity:0;pointer-events:none;transition:opacity 220ms ease}.app-shell.is-sidebar-open .sidebar-overlay{opacity:1;pointer-events:auto}.workspace{padding:18px 12px 50px}.topbar.page-toolbar{align-items:flex-start;margin-bottom:16px}.mobile-only{display:grid}.topbar-title{font-size:21px}.topbar-sub{max-width:54vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions>.sync-state{display:none}.topbar-actions{gap:6px}.topbar-actions .user-pill{display:none}.mobile-nav{display:flex;gap:6px;margin:0 -2px 16px;padding:4px;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.72);scrollbar-width:none}.mobile-nav::-webkit-scrollbar{display:none}.mobile-nav button{flex:0 0 auto;white-space:nowrap;padding:8px 12px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:13px}.metric b{font-size:22px}.app-shell.is-collapsed{grid-template-columns:1fr}.app-shell.is-collapsed .sidebar{transform:translateX(-105%)}
    }
    @media(prefers-reduced-motion:reduce){.app-shell,.sidebar,.sidebar-overlay{transition:none}}
  

    .nav-label-short{display:none}
    .account-card-list,.job-card-list{display:none}
    .account-table-wrap .table th,.account-table-wrap .table td,.job-table-wrap .table th,.job-table-wrap .table td{padding-top:9px;padding-bottom:9px}
    .account-table-wrap .table{min-width:930px}.account-state-stack,.account-flow-stack{display:grid;gap:6px;min-width:135px}.account-state-stack .tag{width:max-content}.account-flow-stack .sync-state{min-width:150px}.account-result{max-width:190px}.account-result small{overflow-wrap:anywhere}
    .account-submit-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}.account-submit-panel>summary::-webkit-details-marker{display:none}.account-submit-panel>summary b{display:block;font-size:15px}.account-submit-panel>summary small{display:block;color:var(--muted);font-size:12px;font-weight:400}.account-submit-panel>summary::after{content:"＋";display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eef3ef;color:var(--green);font-size:18px;font-weight:700}.account-submit-panel[open]>summary::after{content:"－"}.account-submit-panel[open]>summary{padding-bottom:10px;border-bottom:1px solid var(--line)}.account-submit-body{padding-top:13px}
    .account-card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px;box-shadow:none}
    .account-card-head{display:flex;align-items:flex-start;gap:9px;min-width:0}.account-card-title{display:grid;gap:1px;min-width:0;flex:1}.account-card-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.account-card-title small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.account-select{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;white-space:nowrap}.account-card-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px;padding:9px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.account-card-status>div{min-width:0}.account-card-status>div>small{display:block;margin-bottom:3px;color:var(--muted);font-size:10px}.account-card-status .sync-state{min-width:0}.account-card-status .sync-state>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-card-details{margin-top:7px;color:var(--muted);font-size:12px}.account-card-details summary,.account-more-actions summary{cursor:pointer;list-style:none}.account-card-details summary::-webkit-details-marker,.account-more-actions summary::-webkit-details-marker{display:none}.account-card-details summary::before{content:"＋";display:inline-block;margin-right:4px;color:var(--green);font-weight:800}.account-card-details[open] summary::before{content:"－"}.account-card-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:7px;padding:9px;border-radius:9px;background:#f7faf7}.account-card-secondary>div{display:grid;gap:1px;min-width:0}.account-card-secondary small{color:var(--muted);font-size:10px}.account-card-secondary b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.account-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.account-primary-actions{display:flex;gap:6px;min-width:0}.account-more-actions{position:relative;margin-left:auto}.account-more-actions>summary{padding:7px 10px;border-radius:9px;background:#eef3ef;color:var(--ink);font-size:12px;font-weight:700}.account-more-actions[open] .account-secondary-actions{display:flex}.account-secondary-actions{display:none;position:absolute;right:0;bottom:calc(100% + 6px);z-index:5;gap:6px;min-width:max-content;padding:7px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(27,60,41,.16)}
    .job-card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px}.job-card-head{display:flex;align-items:flex-start;gap:9px}.job-card-title{display:grid;gap:1px;min-width:0;flex:1}.job-card-title b,.job-card-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.job-card-title small{color:var(--muted);font-size:11px}.job-card-progress{margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}.job-card-progress-row{display:flex;justify-content:space-between;gap:10px;font-size:12px}.job-card-phase{margin-top:6px;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.job-card-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:9px}
    @media(max-width:760px){
      .nav-label-full{display:none}.nav-label-short{display:inline}.mobile-nav{margin-bottom:12px;padding:3px}.mobile-nav button{padding:7px 11px;font-size:13px}.page-eyebrow{display:none}.topbar-title{font-size:19px}.topbar-sub{font-size:11px}.workspace .section-head{margin-bottom:9px}.section-head h2{font-size:17px}.section-head .sub{max-width:100%;margin-bottom:0;font-size:11px;line-height:1.45}.card{margin-top:12px;padding:14px;border-radius:14px}.card>h3{font-size:13px}
      .account-table-wrap,.job-table-wrap{display:none!important}.account-card-list,.job-card-list{display:grid;gap:8px}.account-submit-panel{padding:12px 14px}.account-submit-panel>summary b{font-size:14px}.account-submit-panel>summary small{font-size:11px}.account-submit-body{padding-top:11px}.agent-school-summary{align-items:flex-start;padding:11px}.agent-school-summary strong{font-size:14px}.agent-school-summary small{font-size:10px}.account-card-status .sync-state>small{display:none}.account-card-status .sync-state .button{margin-top:4px;padding:5px 7px}.account-primary-actions .button{width:auto!important;min-width:68px;padding:7px 10px}.filter-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.filter-label{flex:0 0 auto;white-space:nowrap}.filter-chip{flex:0 0 auto;min-width:max-content}.table-tools{gap:7px;padding:8px}.table-tools [data-account-clear]{padding-left:8px;padding-right:8px}
    }
    @media(min-width:761px){.account-card-list,.job-card-list{display:none!important}}
  

    :root{--touch:44px;--bg:#f2f5f3;--panel:#fff;--ink:#102219;--muted:#66756c;--line:#dbe4de;--green:#126b4f;--green2:#e1f0e9;--red:#a93f3f;--shadow:0 8px 28px rgba(16,45,31,.065)}
    body{background:#f2f5f3;letter-spacing:.01em}.workspace{max-width:1640px}.page-toolbar{border-bottom-color:#dfe7e2;background:rgba(242,245,243,.96)}
    .sidebar{background:#0c281d;border-right:1px solid rgba(255,255,255,.08)}.sidebar .brand-mark{background:#d9a94e;color:#102219}.side-nav button{border-radius:9px}.side-nav button.active{background:#fff;color:#123528;box-shadow:0 6px 18px rgba(0,0,0,.14)}
    .card{border-radius:14px;box-shadow:var(--shadow)}.metric{border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(16,45,31,.04)}.metric b{font-variant-numeric:tabular-nums}.topbar-title{font-size:24px;letter-spacing:-.02em}.section-head h2{font-size:24px;letter-spacing:-.025em}.section-head h3{letter-spacing:-.01em}
    .button{min-height:38px;border:1px solid transparent;transition:transform var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{box-shadow:0 6px 14px rgba(18,107,79,.18)}.button.danger{border-color:#f0d0d0}.table-wrap{border:1px solid var(--line);border-radius:11px}.table thead{background:#f7f9f8}.table th{position:sticky;top:0;z-index:1;background:#f7f9f8}.table tbody tr:hover{background:#f8faf9}.table tbody tr:last-child td{border-bottom:0}
    .table-tools{padding:10px;border:1px solid var(--line);border-radius:11px;background:#f8faf9}.table-tools select{min-height:38px;border:1px solid #ccd8cf;border-radius:9px;background:#fff;padding:7px 30px 7px 10px}.table-meta{margin-right:auto;color:var(--muted);font-size:12px;white-space:nowrap}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.pager-info{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.pager-actions{display:flex;gap:7px}.pager .button{min-width:72px}
    .school-card-list,.audit-card-list{display:none}.school-card,.audit-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px}.school-card-head,.audit-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.school-card-title,.audit-card-title{min-width:0;display:grid;gap:2px}.school-card-title b,.audit-card-title b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.school-card-title small,.audit-card-title small{color:var(--muted);font-size:11px}.school-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0;padding:10px;background:#f7f9f8;border-radius:9px}.school-card-grid div{min-width:0}.school-card-grid small{display:block;color:var(--muted);font-size:10px}.school-card-grid span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.school-card-actions{display:flex;gap:7px;overflow-x:auto}.audit-card-detail{margin-top:9px;color:#33463c;overflow-wrap:anywhere}.audit-card-target{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
    .route-preview-panel{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.route-preview-panel>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:14px 18px;cursor:pointer}.route-preview-panel>summary::-webkit-details-marker{display:none}.route-preview-summary{display:grid;gap:2px}.route-preview-summary b{font-size:14px}.route-preview-summary small{color:var(--muted)}.route-preview-panel>summary:after{content:"展开预览";color:var(--green);font-weight:700;font-size:12px}.route-preview-panel[open]>summary{border-bottom:1px solid var(--line)}.route-preview-panel[open]>summary:after{content:"收起预览"}.route-preview-panel .route-preview-body{padding:18px}.route-preview-panel .card{margin:0;padding:0;border:0;box-shadow:none}
    .panel-dialog,.account-edit-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 34px);border:1px solid var(--line);border-radius:14px;padding:0;background:#fff;color:var(--ink);box-shadow:0 28px 80px rgba(8,31,21,.28)}.panel-dialog::backdrop,.account-edit-dialog::backdrop{background:rgba(8,25,17,.48);backdrop-filter:blur(2px)}.panel-dialog form,.account-edit-dialog form{padding:20px}.dialog-head{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}.dialog-head h3{font-size:18px;margin:0}.dialog-close{min-width:var(--touch);min-height:var(--touch)}.dialog-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.copy-token{width:100%;min-height:120px;border:1px solid #ccd8cf;border-radius:10px;padding:11px;resize:vertical;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
    .user-run-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:12px 0;padding:16px 18px;border:1px solid #d7e7db;border-radius:16px;background:linear-gradient(115deg,#f5fbf6,#fff)}.user-run-tools>div:first-child{display:grid;gap:4px}.user-run-tools strong{color:var(--ink);font-size:15px}.user-run-tools span{color:var(--muted);font-size:12px}.schedule-advanced{margin-top:14px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fbfcfb}.schedule-advanced summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:800}.schedule-advanced[open] summary{margin-bottom:10px;color:var(--ink)}.schedule-layout{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:16px;align-items:start}.schedule-form-card{position:sticky;top:88px}.weekday-picker{display:flex;flex-wrap:wrap;gap:7px}.weekday-picker label{display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#f8faf9;font-size:12px}.schedule-table{min-width:900px}.schedule-card-list{display:none}.schedule-rule{display:grid;gap:2px}.schedule-rule small{color:var(--muted)}.schedule-timeline{display:grid;gap:8px;margin-top:12px}.schedule-run{display:grid;grid-template-columns:64px 12px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.schedule-run:last-child{border-bottom:0}.schedule-run-time{font-weight:800;font-variant-numeric:tabular-nums}.schedule-run-dot{width:10px;height:10px;border-radius:50%;background:#9aa8a0}.schedule-run-dot.succeeded{background:#16805b}.schedule-run-dot.failed{background:#b34242}.schedule-run-dot.pending,.schedule-run-dot.queued{background:#d39b31}.schedule-stats{display:flex;flex-wrap:wrap;gap:7px}.schedule-stats .tag{font-variant-numeric:tabular-nums}
    @media(max-width:760px){
      button,.button,.mobile-nav button,.icon-button,.field input,.field select,.field textarea,.table-tools input,.table-tools select{min-height:var(--touch)}.filter-chip{min-height:var(--touch)}
      input[type="checkbox"]{width:20px;height:20px}.workspace{padding:0 10px 40px}.page-toolbar{margin:0 -10px 10px;padding:10px}.topbar-title{font-size:20px}.section-head h2{font-size:20px}.card{padding:13px;margin-top:10px}.school-table-wrap,.audit-table-wrap,.schedule-table-wrap{display:none!important}.school-card-list,.audit-card-list,.schedule-card-list{display:grid;gap:8px}.table-tools{display:grid;grid-template-columns:1fr 1fr}.table-tools input{grid-column:1/-1;min-width:0}.table-tools .table-meta{grid-column:1/-1}.table-tools .button{width:100%}.pager{align-items:stretch}.pager-actions{flex:1}.pager .button{flex:1;min-height:var(--touch)}.route-preview-panel>summary{min-height:var(--touch);padding:12px 13px}.route-preview-panel .route-preview-body{padding:12px}.route-preview{grid-template-columns:1fr}.school-card-actions .button{flex:0 0 auto;min-height:var(--touch)}.schedule-layout{grid-template-columns:1fr}.schedule-form-card{position:static}.schedule-run{grid-template-columns:52px 10px minmax(0,1fr)}.schedule-run .tag{grid-column:3}.weekday-picker label{flex:1 0 27%;justify-content:center}
    }
  






@media(max-width:900px){
  /* 用家长限定提高特异性，压过所有早前的 overflow-x:auto */
  .card .filter-row,.table-tools .filter-row,.account-card-list .filter-row,
  div.filter-row{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    mask-image:none!important;
    -webkit-mask-image:none!important;
    width:100%!important;
    gap:6px!important;
    row-gap:7px!important;
  }
  .card .filter-chip,.table-tools .filter-chip,div.filter-chip{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:none!important;
    width:auto!important;
    white-space:nowrap!important;
    justify-content:center!important;
    padding:6px 12px!important;
    font-size:12px!important;
    min-height:34px!important;
  }
  .card .filter-label,div.filter-label{
    flex:0 0 auto!important;white-space:nowrap!important;
  }
}
@media(max-width:480px){
  .card .filter-chip,.table-tools .filter-chip,div.filter-chip{
    padding:6px 10px!important;font-size:11.5px!important;
  }
}
/* ===== 移动端修复（2026-09-24 第四轮）===== */
/* ① iPad 768px 也在内：断点提到 900px */
@media(max-width:900px){
  .table{min-width:600px!important}
  .table th:nth-child(1),.table td:nth-child(1){min-width:110px}
  .table th:nth-child(2),.table td:nth-child(2){min-width:130px}
  .table th:nth-child(3),.table td:nth-child(3){min-width:130px}
  .school-table th:nth-child(1),.school-table td:nth-child(1){min-width:140px}
  .account-table th:nth-child(2),.account-table td:nth-child(2){min-width:140px}
  /* ② 筛选 chip：清除 min-width，允许换行 */
  .filter-row{flex-wrap:wrap!important;overflow:visible!important}
  .filter-chip{
    flex:0 0 auto!important;min-width:0!important;max-width:none!important;
    white-space:nowrap;padding:6px 12px;
  }
  .filter-label{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:600px){
  .filter-chip{padding:6px 10px;font-size:12px}
  .filter-row{gap:6px}
}
/* ===== 移动端优化（2026-09-24 第三轮）===== */
@media(max-width:760px){
  /* ① 筛选 chip 换行显示，全部可见（不依赖横滑） */
  .filter-row{
    flex-wrap:wrap!important;overflow:visible!important;
    mask-image:none!important;-webkit-mask-image:none!important;
    gap:6px;
  }
  .filter-chip{
    flex:0 1 auto!important;min-width:0!important;
    padding:6px 11px;min-height:34px;font-size:12px;
  }
  /* ③ 表格关键列的最小宽度，避免被压成单字 */
  .table th:nth-child(1),.table td:nth-child(1){min-width:104px}
  .table th:nth-child(2),.table td:nth-child(2){min-width:120px}
  .table th:nth-child(3),.table td:nth-child(3){min-width:120px}
  .school-table th:nth-child(1),.school-table td:nth-child(1){min-width:132px}
  .account-table th:nth-child(2),.account-table td:nth-child(2){min-width:130px}
  .table{min-width:640px!important}
}
@media(max-width:380px){
  /* ② 只有更窄的屏才让下拉整行 */
  .table-tools select{flex:1 1 100%}
}

@media(max-width:760px){
  .table-tools{display:flex;flex-wrap:wrap;gap:8px;padding:9px}
  .table-tools input{
    flex:1 1 100%!important;min-width:0!important;width:100%!important;
    box-sizing:border-box;
  }
  .table-tools select{
    flex:1 1 calc(50% - 4px);min-width:0;box-sizing:border-box;
  }
  .table-tools .button,.table-tools [data-account-clear]{
    flex:1 1 auto;min-width:0;
  }
  .table-tools input,.table-tools select,.table-tools .button{
    min-height:44px!important;height:auto;
    line-height:1.35;font-size:15px;
  }
  .filter-row{
    flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    padding-bottom:2px;margin-top:8px;gap:7px;
    mask-image:linear-gradient(90deg,transparent 0,#000 8px,
              #000 calc(100% - 8px),transparent 100%);
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,
              #000 calc(100% - 8px),transparent 100%);
  }
  .filter-row::-webkit-scrollbar{display:none;height:0}
  .filter-chip{
    flex:0 0 auto!important;min-width:0!important;white-space:nowrap;
    padding:6px 12px;min-height:34px;font-size:12px;
  }
  .filter-label{flex:0 0 auto;white-space:nowrap}
  .topbar{
    flex-direction:row!important;flex-wrap:wrap;align-items:center!important;
    gap:8px 10px!important;margin-bottom:14px;
  }
  .topbar-copy{flex:1 1 auto;min-width:0;order:1}
  .topbar-leading{order:0}
  .topbar-actions{
    order:2;width:auto!important;flex:0 0 auto;
    justify-content:flex-end!important;gap:6px;
  }
  .topbar-actions .topbar-buttons{display:flex;gap:6px}
  .topbar .button,.topbar-buttons .button{
    min-height:40px!important;padding:8px 12px!important;
    font-size:13px;white-space:nowrap;
  }
}
@media(max-width:380px){
  .table-tools select{flex:1 1 100%}
  .topbar .button,.topbar-buttons .button{
    min-height:38px!important;padding:7px 10px!important;font-size:12px;
  }
}
/* ===== 移动端适配补充：表格宽度收敛 ===== */
@media(max-width:900px){
  body .table-wrap{max-width:100%!important;width:100%!important;
                   margin-left:0!important;margin-right:0!important}
  body .table-wrap .table,
  body table.table{min-width:540px!important}
  body .school-table-wrap>table,
  body .account-table-wrap>table,
  body .job-table-wrap>table,
  body .audit-table-wrap>table,
  body .schedule-table-wrap>table{min-width:540px!important}
  body .table td:last-child,
  body .table th:last-child{min-width:120px!important}
}
@media(max-width:560px){
  body .table-wrap .table,
  body table.table{min-width:460px!important}
  body .table td:last-child,
  body .table th:last-child{min-width:100px!important}
}
/* ===== 移动端适配（2026-09-24）===== */
/* ① 标签栏（.mobile-nav）可横向滚动，隐藏滚动条 */
.mobile-nav{
  display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  -ms-overflow-style:none;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  mask-image:linear-gradient(90deg,transparent 0,#000 10px,
            #000 calc(100% - 10px),transparent 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,
            #000 calc(100% - 10px),transparent 100%);
}
.mobile-nav::-webkit-scrollbar{display:none;height:0}
.mobile-nav>button{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap}
/* ② 顶部栏：按钮组不占整行 */
@media(max-width:760px){
  .topbar{flex-wrap:wrap;gap:8px;align-items:flex-start}
  .topbar-copy{flex:1 1 auto;min-width:0}
  .topbar-actions{flex:0 0 auto;gap:6px}
  .topbar-buttons{display:flex;gap:6px}
  .topbar .button,.topbar-buttons .button{
    min-height:40px;padding:8px 12px;font-size:13px;white-space:nowrap;
  }
  /* ③ 表格：wrap 唯一滚动容器，表格最小宽降到 560 */
  .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table{min-width:560px}
  /* ④ 触摸目标 */
  .button{min-height:42px}
  .button.small{min-height:38px;padding:7px 11px}
  input,select,textarea{font-size:16px;min-height:42px}
  /* ⑤ 地图自适应高度 */
  .route-canvas-wrap,.amap-map,.route-canvas{min-height:46vh}
  .china-canvas-wrap{display:none}
  /* ⑥ 表单与卡片 */
  .card{padding:14px}
  .form-grid{grid-template-columns:1fr}
  .basemap-switch{width:100%}
  .basemap-switch .button{flex:1}
  /* ⑦ 侧栏抽屉铺满高度 */
  .sidebar{max-width:86vw}
}
@media(max-width:400px){
  .topbar-title{font-size:18px}
  .topbar-sub{font-size:10px}
  .mobile-nav button{padding:7px 9px;font-size:12px}
  .route-meta{grid-template-columns:1fr}
}
@media(max-width:900px){
  .table-wrap{max-width:100%}
}
/* 触摸设备：去掉 hover、加点击反馈 */
@media(hover:none){
  .button:active{transform:scale(.98)}
  .table tbody tr:hover td{background:inherit}
}
/* iPhone 安全区 */
@supports(padding:max(0px)){
  body{padding-left:env(safe-area-inset-left);
       padding-right:env(safe-area-inset-right)}
  .sidebar{padding-bottom:env(safe-area-inset-bottom)}
  .topbar{padding-top:max(8px,env(safe-area-inset-top))}
}




/* ===== 轨迹编辑器 v2（完整版）===== */
.te-mask{position:fixed;inset:0;background:rgba(10,18,13,.62);z-index:80;display:flex;align-items:center;justify-content:center;padding:12px}
.te-wrap{background:#fff;border-radius:16px;width:min(1360px,100%);max-height:96vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 26px 70px rgba(0,0,0,.38)}
.te-head{display:flex;align-items:center;gap:9px;padding:10px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.te-head b{font-size:15px}
.te-head .sp{flex:1}
.te-body{display:grid;grid-template-columns:318px minmax(0,1fr);flex:1;min-height:0}
.te-side{padding:11px;overflow:auto;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:9px}
.te-map{position:relative;min-height:560px;background:#eef7f8}
.te-foot{padding:9px 14px;border-top:1px solid var(--line);display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap;align-items:center}
.te-row{display:flex;gap:7px;align-items:center}
.te-row label{flex:0 0 66px;font-size:12px;color:var(--muted);font-weight:700}
.te-row input[type=range]{flex:1;min-width:0}
.te-row output{flex:0 0 58px;text-align:right;font-size:11.5px;font-variant-numeric:tabular-nums;color:var(--ink)}
.te-num{width:100%;padding:5px 7px;border:1px solid var(--line);border-radius:7px;font-size:12.5px;font-variant-numeric:tabular-nums}
.te-tabs{display:flex;gap:5px}
.te-tabs .button.active{background:var(--green);color:#fff;border-color:var(--green)}
.te-hint{font-size:11.5px;color:var(--muted);line-height:1.5;background:#f7fbf7;border:1px solid var(--line);border-radius:8px;padding:7px 8px;margin:0}
.te-hint b{color:var(--ink)}
.te-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--green)}
.te-sec{border:1px solid var(--line);border-radius:9px;padding:8px;display:flex;flex-direction:column;gap:7px;background:#fcfdfc}
.te-sec>summary{font-size:12px;font-weight:700;color:var(--ink);cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px}
.te-sec>summary::-webkit-details-marker{display:none}
.te-sec>summary::before{content:"▸";font-size:10px;color:var(--muted);transition:transform .15s}
.te-sec[open]>summary::before{transform:rotate(90deg)}
.te-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;width:132px}
.te-pad button{padding:6px 0;font-size:13px;border:1px solid var(--line);border-radius:7px;background:#fff;cursor:pointer}
.te-pad button:hover{background:#eef7f0;border-color:var(--green)}
.te-pad button.mid{background:#f4f8f4;font-size:11px;font-weight:700;color:var(--muted)}
.te-2{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.te-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.te-chk{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--ink)}
.te-list{max-height:168px;overflow:auto;border:1px solid var(--line);border-radius:8px;font-size:11.5px}
.te-list div{padding:5px 8px;border-bottom:1px solid #f0f3f0;display:flex;align-items:center;gap:6px;cursor:pointer}
.te-list div:last-child{border-bottom:0}
.te-list div:hover{background:#f5faf6}
.te-list div.on{background:#e8f5ec;font-weight:700}
.te-list .n{margin-left:auto;color:var(--muted);font-size:10.5px}
.te-tip{position:absolute;left:10px;bottom:10px;background:rgba(0,0,0,.62);color:#fff;font-size:11.5px;padding:5px 9px;border-radius:7px;pointer-events:none;z-index:5}
.te-scale{position:absolute;right:12px;bottom:12px;background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:7px;padding:4px 8px;font-size:11px;color:#333;z-index:5;display:flex;align-items:center;gap:6px}
.te-scale i{display:block;height:7px;border-left:2px solid #333;border-right:2px solid #333;border-bottom:2px solid #333}
@media(max-width:860px){
  .te-wrap{max-height:100vh;border-radius:0;width:100%}
  .te-body{grid-template-columns:1fr}
  .te-side{border-right:0;border-bottom:1px solid var(--line);max-height:40vh}
  .te-map{min-height:46vh}
}

/* ===== 轨迹编辑器 审核工作流 ===== */
.te-rev{display:flex;align-items:center;gap:9px;padding:7px 12px;background:linear-gradient(90deg,#f2f9f4,#fbfdfb);border-bottom:1px solid var(--line);flex-wrap:wrap}
.te-rev .bar{flex:1;min-width:120px;height:8px;background:#e3ebe5;border-radius:99px;overflow:hidden;position:relative}
.te-rev .bar i{display:block;height:100%;background:linear-gradient(90deg,#28c76f,#12a35c);width:0;transition:width .25s}
.te-rev .bar u{display:block;height:100%;background:repeating-linear-gradient(45deg,#f0b429,#f0b429 4px,#ffd97a 4px,#ffd97a 8px);position:absolute;top:0;left:0;width:0}
.te-rev .num{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.te-rev .lg{display:flex;gap:9px;font-size:11px;color:var(--muted);flex-wrap:wrap}
.te-rev .lg span{display:inline-flex;align-items:center;gap:4px}
.te-rev .lg i{width:9px;height:9px;border-radius:50%;display:block}
.te-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.te-nav .button{padding:8px 0;font-size:13px}
.te-main{display:grid;grid-template-columns:1fr;gap:6px}
.te-main .button{padding:9px 0;font-size:13.5px;font-weight:700}
.te-main .button.ok{background:var(--green);color:#fff;border-color:var(--green)}
.te-main .button.ok:hover{filter:brightness(1.06)}
.te-main .button.next{background:#1f7ae0;color:#fff;border-color:#1f7ae0}
.te-st{display:flex;align-items:center;gap:5px;font-size:11.5px;padding:5px 8px;border-radius:8px;background:#f4f8f4;border:1px solid var(--line)}
.te-st .dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
.te-st.s0 .dot{background:#c9d3cc}
.te-st.s1 .dot{background:#28c76f}
.te-st.s2 .dot{background:#1f7ae0}
.te-st.s3 .dot{background:#f0b429}
.te-st .tx{color:var(--muted);margin-left:auto;font-size:10.5px}
.te-mini{display:flex;gap:4px;flex-wrap:wrap}
.te-mini button{flex:1;min-width:64px;padding:5px 6px;font-size:11.5px;border:1px solid var(--line);border-radius:7px;background:#fff;cursor:pointer}
.te-mini button:hover{background:#eef7f0}
.te-mini button.on{background:#e8f5ec;border-color:var(--green);font-weight:700}
.te-jump{max-height:150px;overflow:auto;border:1px solid var(--line);border-radius:8px;font-size:11.5px}
.te-jump div{padding:5px 8px;border-bottom:1px solid #f0f3f0;display:flex;align-items:center;gap:6px;cursor:pointer}
.te-jump div:last-child{border-bottom:0}
.te-jump div:hover{background:#f5faf6}
.te-jump div.cur{background:#e8f5ec;font-weight:700}
.te-jump div .d{width:7px;height:7px;border-radius:50%;background:#c9d3cc;flex:0 0 7px}
.te-jump div.s1 .d{background:#28c76f}
.te-jump div.s2 .d{background:#1f7ae0}
.te-jump div.s3 .d{background:#f0b429}
.te-jump div .i{margin-left:auto;color:var(--muted);font-size:10.5px}
.te-ov{display:flex;gap:5px;font-size:11px;color:var(--muted);align-items:center;flex-wrap:wrap}
.te-ov label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}



    .wallet-balance-panel{border:1px solid var(--line);border-top:4px solid #b9eb37;background:#fff}
    .wallet-balance-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
    .wallet-balance-copy{min-width:210px}
    .wallet-balance-copy small,.wallet-denomination small{display:block;color:var(--muted);line-height:1.55}
    .wallet-balance-amount{display:block;margin-top:5px;color:#17583d;font-size:clamp(2rem,5vw,2.8rem);font-weight:850;letter-spacing:-.04em}
    .wallet-denomination-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
    .wallet-denomination{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:60px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa;color:var(--ink);text-decoration:none}
    .wallet-denomination:hover{border-color:#70a787;background:#f5faf6}
    .wallet-denomination:focus-visible,.wallet-action:focus-visible{outline:3px solid #8ab9ff;outline-offset:2px}
    .wallet-denomination strong{font-size:16px}
    .wallet-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:16px;margin-top:16px}
    .wallet-ledger .table-wrap{overflow-x:auto}
    .wallet-action{white-space:nowrap}
    .wallet-empty{padding:14px 0;color:var(--muted)}
    .wallet-credit{color:#16834b;font-weight:800}.wallet-debit{color:#b42318;font-weight:800}
    .wallet-intro{max-width:720px;line-height:1.65;color:var(--muted)}
    .wallet-admin-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
    .wallet-admin-tools textarea{width:100%;min-height:150px;resize:vertical}
    .wallet-admin-denoms{display:grid;gap:9px}
    .wallet-admin-denom{display:grid;grid-template-columns:1.1fr .7fr 1.3fr .6fr;gap:8px;padding:11px 0;border-bottom:1px solid var(--line);align-items:center}
    @media(max-width:760px){.wallet-denomination-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-columns,.wallet-admin-tools{grid-template-columns:1fr}.wallet-admin-denom{grid-template-columns:1fr 1fr}.wallet-admin-denom>*:nth-child(3){grid-column:1/-1}}
    @media(max-width:420px){.wallet-denomination-grid{grid-template-columns:1fr}.wallet-balance-row{align-items:flex-start}.wallet-action{width:100%}}
  
/* ===== 里程卡密 ===== */
.mk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px;margin:10px 0}
.mk-card{border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff}
.mk-card .n{font-size:20px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.mk-card .l{font-size:11.5px;color:var(--muted);margin-top:2px}
.mk-card .p{font-size:11px;color:var(--green);font-weight:700;margin-top:3px}
.mk-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;align-items:end}
.mk-out{width:100%;min-height:160px;font:12px/1.55 ui-monospace,Consolas,monospace;
  border:1px solid var(--line);border-radius:9px;padding:9px;background:#fbfdfb;
  white-space:pre;overflow:auto;box-sizing:border-box}
.mk-row{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:8px}
.mk-tag{display:inline-block;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:700}
.mk-tag.face{background:#e8f0ff;color:#1f5fbf}
.mk-tag.noface{background:#fff3e0;color:#a8620a}


/* ===== 注册 / 验证 ===== */
.reg-links{display:flex;justify-content:space-between;align-items:center;
  margin-top:10px;font-size:12.5px}
.reg-links a{color:var(--green);cursor:pointer;font-weight:600;text-decoration:none}
.reg-links a:hover{text-decoration:underline}
.reg-code{letter-spacing:.28em;font:700 20px/1 ui-monospace,Consolas,monospace;
  text-align:center;padding:11px;background:#f4f8f5;border:1px dashed var(--line);
  border-radius:9px;margin:9px 0;user-select:all;cursor:text}
.reg-hint{font-size:11.5px;color:var(--muted);line-height:1.65}
.reg-ts{margin:9px 0;min-height:0}
.reg-steps{display:flex;gap:6px;margin-bottom:11px}
.reg-steps span{flex:1;height:3px;border-radius:2px;background:#e3e9e4}
.reg-steps span.on{background:var(--green)}


    /* ===== 移动端适配（375~900px）===== */
    @media (max-width:900px){
      /* 容器收缩：让 grid/flex 子元素能被压缩，避免溢出传递 */
      .app-shell,#view,.wrap,.card,.table-wrap,.account-table-wrap,
      .route-preview,.route-canvas-wrap,.mk-grid,.mk-form,.mk-out,
      .grid,.form-grid,.log-tools,.quick-actions,.one-click-bar,
      .row-actions,.section-head{min-width:0;max-width:100%}
      #view{overflow-x:hidden}
      .card{overflow-x:auto;overscroll-behavior-x:contain}

      /* 表格：缩小内边距 + 滚动提示 */
      .table{min-width:520px}
      .table th,.table td{padding:9px 7px;font-size:12.5px;white-space:nowrap}
      .table td:last-child{min-width:0}
      .table-wrap,.account-table-wrap{
        overflow-x:auto;-webkit-overflow-scrolling:touch;
        overscroll-behavior-x:contain;
        /* 右侧渐隐，提示可横滑 */
        mask-image:linear-gradient(90deg,#000 92%,transparent);
        -webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);
      }

      /* 里程卡密 / 注册防盗：卡片与小屏表单 */
      .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .mk-form{grid-template-columns:1fr}
      .mk-out{min-height:130px;font-size:11.5px}
      .mk-card{padding:9px}
      .mk-card .n{font-size:17px}
      .mk-row{flex-direction:column;align-items:stretch}
      .mk-row .button{width:100%}

      /* 兑换卡 */
      #ur-card .mk-form{grid-template-columns:1fr}
      #ur-card .mk-card .n{font-size:16px}

      /* 注册页 */
      .reg-links{flex-direction:row;gap:12px;align-items:center;flex-wrap:wrap}
      .reg-links a{white-space:nowrap}
      .reg-code{font-size:17px;letter-spacing:.2em}

      /* 编辑器：侧栏与地图上下排 */
      .te-body{grid-template-columns:1fr!important}
      .te-side{max-height:none!important;order:2}
      .te-map-wrap,.te-map{min-height:320px!important}
      .te-wrap{width:100%!important;max-width:100%!important;
        height:100%!important;max-height:100%!important;border-radius:0!important}
      .te-head{flex-wrap:wrap;gap:6px}
      .te-sec .te-nav,.te-sec .te-mini{flex-wrap:wrap}
      .te-tabs .button{min-width:0}
      .te-mask{padding:0!important}

      /* 顶部与侧栏 */
      .topbar{flex-wrap:wrap;gap:9px}
      .sidebar{max-width:82vw}
      .sidebar-overlay{display:block}
      .form-actions{flex-wrap:wrap}
      .form-actions .button{flex:1;min-width:110px}
      .toast{right:11px;left:11px;bottom:11px;min-width:0;max-width:none}
      .log-box{max-height:45vh}
      .route-meta{grid-template-columns:1fr}
      .grid{grid-template-columns:1fr}
      .detail-grid,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      h1{font-size:20px}h2{font-size:17px}h3{font-size:15px}
      .card{padding:15px}
      .wrap{padding:16px 11px 44px}
    }

    /* 超小屏（≤400px，iPhone SE 等）*/
    @media (max-width:400px){
      .mk-grid{grid-template-columns:1fr}
      .table{min-width:460px}
      .table th,.table td{padding:8px 6px;font-size:12px}
      .detail-grid,.stat-grid{grid-template-columns:1fr}
      .te-3{grid-template-columns:1fr!important}
    }

    /* 触摸设备：加大点击区 */
    @media (hover:none) and (pointer:coarse){
      .button,.te-nav .button,.mk-row .button{min-height:38px}
      .sidebar nav a,.sidebar a{padding-top:11px;padding-bottom:11px}
      .table td .button{min-height:34px}
      input,select,textarea{font-size:16px}  /* 防 iOS 自动缩放 */
    }

  
    /* 表格首列固定（横滑时能看住是谁） */
    @media (max-width:900px){
      .table-wrap .table th:first-child,
      .table-wrap .table td:first-child{
        position:sticky;left:0;z-index:2;
        background:#fff;
        box-shadow:1px 0 0 var(--line);
      }
      .table-wrap .table thead th:first-child{background:#fbfdfb}
    }

  
    /* ===== 移动端：进度条与长文本 ===== */
    @media (max-width:900px){
      /* 进度类元素跟随容器 */
      .progress,.progress-bar,.run-progress,[class*="progress"],
      .progress-track,.progress-fill,.progress span,.progress small{
        min-width:0!important;max-width:100%!important
      }
      .progress,.progress-track{width:100%!important;overflow:hidden}
      .progress-fill{
        display:block;max-width:100%!important;
        transition:width .3s ease;
      }
      /* 进度行整体可换行 */
      .progress-line,.run-line,.job-line{
        display:flex;flex-wrap:wrap;gap:4px;min-width:0
      }
      /* 状态里的说明文字（small）截断 */
      .table small,.account small,.progress small,.run-progress small,
      td small,[class*="progress"] small{
        display:block;max-width:100%;
        overflow:hidden;text-overflow:ellipsis;white-space:nowrap
      }
      /* b/strong 不撑宽 */
      .table b,.progress b,[class*="progress"] b,td b{
        max-width:100%;overflow-wrap:anywhere
      }
      /* 执行页的状态条整体收缩 */
      .account-run,.run-state,.job-state{
        min-width:0;flex:1 1 100%;
      }
      /* 详情展开区 */
      .detail-panel,.job-detail,.run-detail{
        min-width:0;max-width:100%;overflow-x:auto
      }
      /* 任何 inline-flex 行都能换行 */
      .meta-row,.tag-row,.badge-row{
        display:flex;flex-wrap:wrap;gap:5px;min-width:0
      }
      /* 防止 pre/code 撑破 */
      pre,code,.mono{
        max-width:100%;overflow-x:auto;display:block;
        white-space:pre-wrap;word-break:break-all
      }
    }
    @media (max-width:400px){
      .progress small,[class*="progress"] small{font-size:11px}
    }

  
    /* 兜底：任何直接子元素都不超过视口 */
    @media (max-width:900px){
      #view{max-width:100vw;overflow-x:hidden}
      #view > *{max-width:100%;min-width:0}
      #view *{box-sizing:border-box}
      /* 表格里的操作列改为竖排 */
      .table td:last-child{white-space:normal}
      .table td .button{margin:2px 0}
    }

  
    /* ===== 移动端：任务队列进度行紧凑化 ===== */
    @media (max-width:900px){
      /* 任务卡：标题行换行，徽章右浮 */
      .job-card,.task-card,.run-card{
        display:flex;flex-wrap:wrap;gap:6px;min-width:0
      }
      .job-card > *,.task-card > *,.run-card > *{min-width:0}
      /* 进度行：标签左、百分比右、条独占下一行 */
      .job-card .progress-line,
      .task-card .progress-line,
      [class*="job"] [class*="progress"],
      [class*="task"] [class*="progress"]{
        display:flex;flex-wrap:wrap;align-items:center;
        gap:5px;width:100%;min-width:0
      }
      /* 进度条本体：占满剩余宽度，不超出 */
      .progress-bar,.progress-track,.bar{
        flex:1 1 auto;min-width:60px;max-width:100%;
        height:6px;border-radius:99px;overflow:hidden
      }
      /* 填充条：只用百分比 */
      .progress-fill,.bar > i,.progress-bar > i{
        display:block;height:100%;max-width:100%!important;
        width:auto;min-width:0
      }
      /* 百分比数字不换行 */
      .progress-line b,.progress-line strong,
      [class*="progress"] > b,[class*="progress"] > strong{
        flex:0 0 auto;font-variant-numeric:tabular-nums
      }
      /* 两条进度（数据/执行）竖排 */
      .dual-progress,.progress-pair{
        display:grid!important;grid-template-columns:1fr!important;
        gap:8px!important
      }
      /* 状态说明整行 */
      .progress-line small,[class*="progress"] > small{
        flex:1 1 100%;min-width:0
      }
      /* 任务 ID 等长串可断行 */
      .job-id,.task-id,.mono-id{
        word-break:break-all;overflow-wrap:anywhere;max-width:100%
      }
    }

  
    

    /* ---------- 设计令牌（移动端）---------- */
    @media (max-width:900px){
      :root{
        --m-fs-xs:12.5px;      /* 次要文字（原 11~11.5）*/
        --m-fs-sm:13.5px;      /* 说明文字 */
        --m-fs-base:15px;      /* 正文 */
        --m-fs-lg:17px;        /* 小标题 */
        --m-fs-xl:21px;        /* 大数字 */
        --m-gap:10px;
        --m-gap-sm:7px;
        --m-radius:12px;
        --m-touch:44px;        /* iOS 最小点击区 */
      }
    }

    @media (max-width:900px){
      /* ---------- 触摸优化（pico 做法）---------- */
      a,button,input,label,select,summary,textarea,[tabindex],
      [role="button"],[data-tab],[data-te-base],[data-te-mode]{
        touch-action:manipulation;
      }
      /* 消除移动端点击高亮块 */
      *{-webkit-tap-highlight-color:transparent}
      /* 文本不被自动放大 */
      body{-webkit-text-size-adjust:100%;text-size-adjust:100%}

      /* ---------- 字号统一（令牌驱动）---------- */
      body,button,input,select,textarea{
        font-size:var(--m-fs-base);
      }
      .sub,.route-help,.reg-hint,.muted,.l,.mk-card .l{
        font-size:var(--m-fs-xs)!important;
        line-height:1.55;
      }
      .mk-card .p,.mk-tag,.tag{font-size:var(--m-fs-xs)!important}
      .table th,.table td{font-size:var(--m-fs-sm)}
      .table small,.account small,td small{font-size:var(--m-fs-xs)}
      h1{font-size:22px}h2{font-size:18px}h3{font-size:16px}
      .mk-card .n{font-size:var(--m-fs-xl)}
      code,kbd,.mono,pre{font-size:var(--m-fs-xs)}

      /* ---------- 统计卡：2 列（省一半高度）---------- */
      .mk-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:var(--m-gap-sm);
        margin:var(--m-gap-sm) 0
      }
      .mk-card{
        padding:11px 12px;
        border-radius:var(--m-radius);
        /* 卡片内边距收紧，数字更突出 */
        display:flex;flex-direction:column;justify-content:center;
        min-height:70px
      }
      .mk-card .n{line-height:1.1;margin-bottom:2px}
      /* 单数字卡（面值卡只有几个字）不要太高 */
      #mk-by-denom .mk-card{min-height:64px}

      /* ---------- 表格：移动端卡片化（AdminLTE/Tabler 常用做法）---------- */
      .table-wrap .table{
        min-width:0!important;width:100%;
        border-collapse:separate;border-spacing:0
      }
      .table-wrap .table thead{display:none}   /* 表头隐藏 */
      .table-wrap .table tbody tr{
        display:block;
        border:1px solid var(--line);
        border-radius:var(--m-radius);
        padding:10px 12px;
        margin-bottom:var(--m-gap-sm);
        background:#fff;
        /* 去掉 sticky 首列（卡片模式不需要）*/
      }
      .table-wrap .table tbody td{
        display:flex;justify-content:space-between;
        align-items:flex-start;gap:10px;
        border:none!important;
        padding:5px 0!important;
        font-size:var(--m-fs-sm);
        text-align:right;
        min-width:0!important;width:auto!important;
        white-space:normal!important
      }
      /* 第一列当卡片标题 */
      .table-wrap .table tbody td:first-child{
        font-weight:700;font-size:var(--m-fs-base);
        padding-bottom:8px!important;
        border-bottom:1px solid var(--line)!important;
        margin-bottom:5px;
        text-align:left;
        position:static!important;
        box-shadow:none!important
      }
      /* 值左对齐，标签右对齐时更易读 */
      .table-wrap .table tbody td:not(:first-child){
        /* 空值不显示标签 */
      }
      .table-wrap .table tbody td:not(:first-child)::before{
        content:attr(data-mlabel);
        color:var(--muted);
        font-size:var(--m-fs-xs);
        font-weight:600;
        text-align:left;
        flex:0 0 auto;
        padding-right:8px
      }
      /* 表格里的按钮全宽、好点 */
      .table-wrap .table td .button{
        width:100%;min-height:var(--m-touch);
        font-size:var(--m-fs-sm)
      }
      .table-wrap .table td:last-child{
        flex-direction:column;align-items:stretch;padding-top:8px!important
      }
      .table-wrap .table td:last-child::before{display:none}

      /* ---------- 顶部导航：吸顶 + 滚动提示 ---------- */
      .mobile-nav,.nav-scroll{
        position:sticky;top:0;z-index:30;
        background:rgba(255,255,255,.96);
        backdrop-filter:saturate(1.6) blur(9px);
        -webkit-backdrop-filter:saturate(1.6) blur(9px);
        padding:7px 0;
        /* 右侧渐隐，暗示可横滑 */
        mask-image:linear-gradient(90deg,#000 88%,transparent 99%);
        -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent 99%)
      }
      .mobile-nav::-webkit-scrollbar,.nav-scroll::-webkit-scrollbar{
        display:none
      }

      /* ---------- 表单与按钮：紧凑化 ---------- */
      .field label{margin-bottom:5px;font-size:var(--m-fs-sm)}
      .field input,.field select,.field textarea{
        min-height:var(--m-touch);
        font-size:16px!important;   /* ≥16px 防 iOS 自动缩放 */
        border-radius:var(--m-radius)
      }
      .form-actions{gap:var(--m-gap-sm);margin-top:12px}
      .button{
        min-height:var(--m-touch);
        border-radius:var(--m-radius);
        font-size:var(--m-fs-base)
      }
      .button.small{min-height:38px;font-size:var(--m-fs-sm)}
      .section-head{
        flex-wrap:wrap;gap:var(--m-gap-sm);
        margin-bottom:var(--m-gap)
      }
      .section-head h3{margin-bottom:2px}
      .card{padding:15px;border-radius:14px;margin-bottom:var(--m-gap)}
      .mk-form{gap:var(--m-gap-sm)}
      .mk-row{gap:var(--m-gap-sm);margin-top:var(--m-gap-sm)}
      .mk-out{
        min-height:120px;font-size:var(--m-fs-xs);
        border-radius:var(--m-radius)
      }

      /* ---------- 列表项（待审/账号）触感 ---------- */
      #te-jump > div,[data-tl-go]{
        min-height:42px;display:flex;align-items:center;
        border-radius:9px;padding:0 10px!important
      }
      #te-jump > div:active,[data-tl-go]:active{background:#eaf5ee}

      /* ---------- 点击反馈（pico 用 :active 代替 hover）---------- */
      .button:active{transform:scale(.98)}
      .card:active,.mk-card:active{background:#fbfdfb}

      /* ---------- 安全区（iPhone 刘海/底部横条）---------- */
      .wrap,.app-shell{
        padding-left:max(11px,env(safe-area-inset-left));
        padding-right:max(11px,env(safe-area-inset-right))
      }
      .toast{bottom:max(11px,env(safe-area-inset-bottom))}
      .sidebar{padding-bottom:env(safe-area-inset-bottom)}
    }

    /* ---------- 超小屏 ---------- */
    @media (max-width:400px){
      .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .mk-card{padding:10px}
      .mk-card .n{font-size:19px}
      h1{font-size:20px}
      .card{padding:13px}
    }

    /* ---------- 深色模式（跟随系统）---------- */
    @media (max-width:900px) and (prefers-color-scheme:dark){
      :root{
        --ink:#e8efe9;
        --muted:#9fb0a6;
        --line:#2e3a33;
      }
      body{background:#141a16;color:var(--ink)}
      .card,.mk-card,.table-wrap .table tbody tr{
        background:#1b2320;border-color:#2e3a33
      }
      .mobile-nav,.nav-scroll{
        background:rgba(20,26,22,.96)
      }
      .table-wrap .table tbody td:first-child{border-bottom-color:#2e3a33}
      .mk-out{background:#161d19;color:var(--ink);border-color:#2e3a33}
      .topbar,.sidebar{background:#121814}
    }

  
    @media (max-width:900px){
      /* 所有 .button.small 提到 44px（含 section-head 里的刷新）*/
      .button.small,.section-head .button.small,
      .mk-row .button.small{min-height:var(--m-touch)!important}

      /* 顶部导航：滚动条 + 渐隐提示更明显 */
      .mobile-nav,.nav-scroll{
        display:flex;gap:6px;overflow-x:auto;
        scroll-snap-type:x proximity;
        -webkit-overflow-scrolling:touch;
        padding:8px 12px;
        border-bottom:1px solid var(--line)
      }
      .mobile-nav > *,.nav-scroll > *{
        scroll-snap-align:start;flex:0 0 auto;
        min-height:40px;display:inline-flex;align-items:center;
        padding:0 14px;border-radius:99px;
        background:#f3f7f4;font-size:var(--m-fs-sm);
        font-weight:600;white-space:nowrap
      }
      .mobile-nav > *.active,.nav-scroll > *.active{
        background:var(--green);color:#fff
      }

      /* 徽章/状态标签不换行 */
      .tag,.mk-tag{white-space:nowrap}

      /* 卡片标题行更紧凑 */
      .section-head > div:first-child{min-width:0;flex:1 1 100%}
      .section-head .button{flex:0 0 auto}

      /* 折叠区 summary 可点高度 */
      details > summary{
        min-height:var(--m-touch);
        display:flex;align-items:center;
        font-size:var(--m-fs-base)
      }

      /* 表格里 flex 排布在窄屏时标签换行 */
      .table-wrap .table tbody td{
        flex-wrap:wrap
      }
      .table-wrap .table tbody td::before{
        max-width:52%;overflow-wrap:anywhere
      }
    }

  

    /* Account cards keep the owner, state, result, and actions readable at desktop widths. */
    .account-card{min-width:0;padding:16px 18px;border-color:#d7e2da}
    .account-card-title b{font-size:16px}
    .account-card-title small{font-size:12px;white-space:normal;overflow-wrap:anywhere}
    .account-card-status{gap:14px;padding:13px 0;margin-top:13px}
    .account-card-status .sync-state{white-space:normal;line-height:1.45}
    .account-card-status .sync-state>small{display:block;white-space:normal;overflow-wrap:anywhere}
    .account-card-status .progress-track{width:100%;min-width:0}
    .account-card-outcome{display:grid;gap:3px;min-width:0;margin-top:12px}
    .account-card-outcome small{color:var(--muted);font-size:11px}
    .account-card-outcome strong{font-size:13px;font-weight:700;overflow-wrap:anywhere}
    .account-card-error{font-size:12px;color:var(--red);overflow-wrap:anywhere}
    .account-card-details{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
    .account-card-actions{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
    .account-primary-actions{flex-wrap:wrap}
    .account-primary-actions .button{min-width:86px}
    .home-command{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:23px 26px;border:1px solid #bdd8c8;border-left:5px solid var(--green);border-radius:14px;background:#fff}
    .home-command-label{color:var(--green);font-size:12px;font-weight:700}
    .home-command h3{margin:5px 0;font-size:21px;line-height:1.3}
    .home-command p{margin:0;color:var(--muted);font-size:13px}
    .home-command .button{flex:0 0 auto}
    .home-metrics{margin-top:16px}
    .home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
    .home-actions button{display:grid;gap:5px;min-width:0;min-height:88px;padding:14px;text-align:left;border:1px solid var(--line);border-radius:11px;background:#f8faf8;color:var(--ink);cursor:pointer}
    .home-actions button:hover,.home-actions button:focus-visible{border-color:var(--green);background:#f0f8f2;outline:none}
    .home-actions b{font-size:14px}
    .home-actions small{color:var(--muted);font-size:12px;line-height:1.4}
    @media(min-width:761px){
      .account-table-wrap{display:none!important}
      .account-card-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}
    }
    @media(max-width:1100px){.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:760px){.home-command{align-items:stretch;flex-direction:column;padding:18px}.home-command .button{width:100%}.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.account-card{padding:14px}}
    @media(max-width:440px){.home-actions{grid-template-columns:1fr}.account-card-status{gap:8px}}
  
  /* ================= 组件排版规范（统一层） =================
     放在样式表末尾，用设计令牌统一各组件排版。
     改这里就能全局生效，不用去翻散落的 274 条规则。 */

  /* 卡片：统一圆角、内边距、标题间距 */
  .card{
    border-radius:var(--r-xl);
    padding:var(--sp-6);
    margin-top:var(--sp-5);
  }
  .card > h3,
  .card > .section-head > div > h3{
    font-size:var(--fs-lg);
    line-height:var(--lh-tight);
    margin:0 0 var(--sp-2);
    font-weight:700;
  }
  .card > h3 + .sub,
  .card > .section-head + *{margin-top:var(--sp-3)}

  /* 区块标题 */
  .section-head{
    gap:var(--sp-4);
    margin-bottom:var(--sp-4);
  }
  .section-head h2{
    font-size:var(--fs-xl);
    line-height:var(--lh-tight);
    margin:0 0 var(--sp-2);
    font-weight:750;
  }
  .section-head .sub,
  .sub{
    font-size:var(--fs-sm);
    line-height:var(--lh-base);
    color:var(--c-muted);
    margin:0;
  }
  .page-eyebrow{
    font-size:var(--fs-xs);
    letter-spacing:.06em;
    text-transform:none;
  }

  /* 表格：统一行高与内边距 */
  .table th{
    font-size:var(--fs-sm);
    font-weight:650;
    padding:var(--sp-3) var(--sp-3);
    color:var(--c-muted);
    white-space:nowrap;
  }
  .table td{
    font-size:var(--fs-base);
    padding:var(--sp-3) var(--sp-3);
    line-height:var(--lh-base);
  }
  .table tr:last-child td{border-bottom:none}
  .table tbody tr{transition:background var(--tr-fast)}
  .table tbody tr:hover{background:#fafcfb}

  /* 按钮：统一尺寸与圆角 */
  .button{
    border-radius:var(--r-md);
    font-size:var(--fs-md);
    padding:var(--sp-3) var(--sp-5);
    line-height:1.2;
    font-weight:600;
    transition:background var(--tr-fast),border-color var(--tr-fast),
               color var(--tr-fast),transform var(--tr-fast);
  }
  .button:active{transform:translateY(1px)}
  .button.small{
    font-size:var(--fs-sm);
    padding:var(--sp-2) var(--sp-4);
    border-radius:var(--r-sm);
  }
  .button.primary{border-color:var(--c-ok);background:var(--c-ok);color:#fff}
  .button.primary:hover{filter:brightness(1.08)}
  .button.danger{
    border-color:var(--c-err);
    color:var(--c-err);
    background:transparent;
  }
  .button.danger:hover{background:var(--c-err);color:#fff}

  /* 表单：统一字段间距与输入框 */
  .form-grid{gap:var(--sp-4)}
  .field{gap:var(--sp-2)}
  .field label{
    font-size:var(--fs-sm);
    font-weight:600;
    color:var(--ink);
  }
  .field label small{
    font-size:var(--fs-xs);
    font-weight:400;
    color:var(--c-muted);
  }
  .field input,.field select,.field textarea,
  .table-tools input,.table-tools select{
    border-radius:var(--r-md);
    font-size:var(--fs-base);
    padding:var(--sp-3) var(--sp-4);
    transition:border-color var(--tr-fast),box-shadow var(--tr-fast);
  }
  .field input:focus,.field select:focus,.field textarea:focus,
  .table-tools input:focus,.table-tools select:focus{
    outline:none;
    border-color:var(--c-ok);
    box-shadow:0 0 0 3px rgba(25,115,77,.12);
  }

  /* 标签与徽章 */
  .tag{
    font-size:var(--fs-xs);
    padding:2px var(--sp-3);
    border-radius:var(--r-pill);
    line-height:1.6;
    font-weight:600;
  }

  /* 数据卡：统一数字与说明 */
  .metric{
    border-radius:var(--r-lg);
    padding:var(--sp-5);
  }
  .metric b{
    font-size:var(--fs-2xl);
    line-height:1.1;
    margin-top:var(--sp-1);
    font-variant-numeric:tabular-nums;
  }
  .metric span{
    font-size:var(--fs-sm);
    color:var(--c-muted);
  }

  /* 工具条 */
  .table-tools{
    gap:var(--sp-3);
    margin:0 0 var(--sp-4);
  }
  .table-tools input{min-width:200px}

  /* 空状态：统一文案层级 */
  .empty{
    padding:var(--sp-7) var(--sp-5);
    text-align:center;
    font-size:var(--fs-base);
    color:var(--c-muted);
    line-height:var(--lh-base);
  }
  .empty small{
    display:block;
    margin-top:var(--sp-2);
    font-size:var(--fs-sm);
    opacity:.8;
  }

  /* 首页快捷卡片 */
  .home-actions{gap:var(--sp-4)}
  .home-actions button{
    border-radius:var(--r-lg);
    padding:var(--sp-5);
    min-height:92px;
    gap:var(--sp-1);
    transition:border-color var(--tr-fast),box-shadow var(--tr-fast),
               transform var(--tr-fast);
  }
  .home-actions button:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(27,60,41,.09);
  }
  .home-actions button b{
    font-size:var(--fs-md);
    line-height:var(--lh-tight);
  }
  .home-actions button small{
    font-size:var(--fs-xs);
    line-height:var(--lh-base);
    color:var(--c-muted);
  }

  /* 顶部横幅 */
  .home-command{
    border-radius:var(--r-xl);
    padding:var(--sp-6);
    gap:var(--sp-6);
  }
  .home-command h3{
    font-size:var(--fs-lg);
    line-height:var(--lh-tight);
    margin:var(--sp-1) 0 var(--sp-2);
  }
  .home-command p{
    font-size:var(--fs-base);
    line-height:var(--lh-base);
    margin:0;
  }

  /* 表格内的操作按钮组 */
  .row-actions{
    display:flex;
    gap:var(--sp-2);
    flex-wrap:wrap;
    align-items:center;
  }

  /* 列表行的小字说明 */
  .table td small{
    display:block;
    font-size:var(--fs-xs);
    color:var(--c-muted);
    margin-top:2px;
    line-height:var(--lh-base);
  }

  /* 分页 */
  .pager,.pagination{gap:var(--sp-2)}
  .pager button,.pagination button{border-radius:var(--r-sm)}

  /* 侧栏分组（把入口按业务流归拢） */
  .nav-group{margin:0 0 14px}
  .nav-group:last-child{margin-bottom:0}
  .nav-group-title{
    padding:0 10px 6px;
    font-size:var(--fs-xs);
    font-weight:650;
    letter-spacing:.08em;
    color:rgba(255,255,255,.52);
  }
  .nav-group-body{display:flex;flex-direction:column;gap:2px}
  /* 侧栏滚动修复：flex 子项要能滚动必须给 flex:1 + min-height:0，
     否则按内容撑高 → 被 .sidebar 的 overflow:hidden 裁掉
     （实测：系统组 5 个入口在 950px 高的屏幕上完全看不到） */
  .side-nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.22) transparent;
  }
  .side-nav::-webkit-scrollbar{width:6px}
  .side-nav::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.22);border-radius:3px
  }
  .side-nav::-webkit-scrollbar-track{background:transparent}
  /* 底部固定项不被压缩 */
  .sidebar-home-link,.sidebar-foot{flex:0 0 auto}
  .sidebar-head,.sidebar-role{flex:0 0 auto}
  /* 收起态只留短标签 */
  .app-shell.is-collapsed .nav-group-title{display:none}
  .app-shell.is-collapsed .nav-group{margin-bottom:8px}

  /* ===== 侧栏紧凑化 =====
     为什么：15 个入口在 950px 高的屏幕上要滚动才看得全，
     侧栏是导航，应该一屏放得下。
     实测数据：紧凑前内容高 833px（可视 599px）。 */
  .sidebar{gap:12px;padding:16px 12px}
  .sidebar-head{gap:8px}
  .sidebar-role{padding:6px 8px}
  .side-nav{gap:1px}
  .nav-group{margin:0 0 6px}
  .nav-group-title{padding:0 9px 2px;font-size:10px;letter-spacing:.05em}
  .nav-group-body{gap:1px}
  .side-nav button{
    min-height:0;
    padding:6px 10px;
    border-radius:9px;
    font-size:12.5px;
    line-height:1.3;
  }
  .sidebar-home-link{padding:6px 10px;margin-top:2px;font-size:12.5px}
  .sidebar-foot{padding:7px 8px;gap:7px}
  .sidebar-foot small{font-size:10px}
  /* 矮屏（≤940）再压一档 —— 实测 900/800 高度需要 */
  @media(max-height:940px){
    .sidebar{gap:9px;padding:12px 10px}
    .sidebar-head{gap:6px}
    .nav-group{margin-bottom:5px}
    .side-nav button{padding:5px 9px;font-size:12px}
    .sidebar-role{padding:5px 7px;font-size:11.5px}
  }
  @media(max-height:830px){
    .sidebar{gap:7px;padding:10px 9px}
    .nav-group{margin-bottom:4px}
    .nav-group-title{font-size:9.5px;padding-bottom:1px}
    .side-nav button{padding:4px 8px;font-size:11.5px}
    .sidebar-home-link{padding:5px 9px;font-size:12px}
    .sidebar-foot{padding:6px}
  }

  /* ===== 侧栏交互（折叠 / 收藏 / 搜索） ===== */
  .nav-item{position:relative;display:flex;align-items:center}
  .nav-item > button[data-tab]{flex:1 1 auto;min-width:0;text-align:left}
  .nav-star{
    position:absolute;right:2px;top:50%;transform:translateY(-50%);
    width:20px;height:20px;padding:0;line-height:1;
    display:none;align-items:center;justify-content:center;
    border:none;border-radius:6px;background:transparent;
    color:rgba(255,255,255,.45);font-size:12px;cursor:pointer;
  }
  .nav-item:hover .nav-star{display:flex}
  .nav-item.is-starred .nav-star{display:flex;color:#f0b429}
  .nav-star:hover{background:rgba(255,255,255,.14);color:#fff}
  .app-shell.is-collapsed .nav-star{display:none !important}
  button.nav-group-title{
    display:flex;align-items:center;gap:5px;width:100%;
    padding:4px 9px 3px;
    border:none;background:transparent;cursor:pointer;
    font-size:10px;font-weight:650;letter-spacing:.05em;
    color:rgba(255,255,255,.52);text-align:left;font-family:inherit;
  }
  button.nav-group-title:hover{color:rgba(255,255,255,.78)}
  .nav-group-caret{font-size:9px;opacity:.85}
  .nav-group.is-folded .nav-group-body{display:none}
  .app-shell.is-collapsed .nav-group-caret{display:none}
  .nav-search{position:relative;margin:0 0 8px}
  .nav-search input{
    width:100%;box-sizing:border-box;padding:6px 24px 6px 9px;
    border:1px solid rgba(255,255,255,.14);border-radius:8px;
    background:rgba(255,255,255,.06);color:#fff;
    font-size:12px;font-family:inherit;
  }
  .nav-search input::placeholder{color:rgba(255,255,255,.38)}
  .nav-search input:focus{
    outline:none;border-color:rgba(255,255,255,.34);
    background:rgba(255,255,255,.1);
  }
  .nav-search-clear{
    position:absolute;right:4px;top:50%;transform:translateY(-50%);
    width:18px;height:18px;padding:0;line-height:1;
    border:none;border-radius:5px;background:transparent;
    color:rgba(255,255,255,.42);font-size:13px;cursor:pointer;
    display:none;align-items:center;justify-content:center;
  }
  .nav-search.has-value .nav-search-clear{display:flex}
  .nav-search-clear:hover{background:rgba(255,255,255,.16);color:#fff}
  .app-shell.is-collapsed .nav-search{display:none}
  .nav-empty{
    padding:14px 10px;text-align:center;
    font-size:11.5px;color:rgba(255,255,255,.4);display:none;
  }

  /* ===== 覆盖行内散乱值（不改 HTML，避免破坏 JS 模板拼接） =====
     行内样式实测分布：color 38 处、margin-top 34 处、font-size 16 处。
     这些数值散乱（13px/14px/11.5px…），用 CSS 统一收敛。 */
  [style*="font-size:11.5px"]{font-size:var(--fs-xs) !important}
  [style*="font-size:12.5px"]{font-size:var(--fs-sm) !important}
  [style*="font-size:13.5px"]{font-size:var(--fs-md) !important}
  [style*="margin-top:12px"]{margin-top:var(--sp-4) !important}
  [style*="margin-top:13px"]{margin-top:var(--sp-4) !important}
  [style*="margin-top:14px"]{margin-top:var(--sp-4) !important}
  [style*="margin-top:15px"]{margin-top:var(--sp-4) !important}
  /* 输入框统一 */
  input[type=search],input[type=text],input[type=email],
  input[type=password],input[type=number],select,textarea{
    font-size:var(--fs-base);
    border-radius:var(--r-md);
  }
  input:focus,select:focus,textarea:focus{
    outline:none;border-color:var(--c-ok);
    box-shadow:0 0 0 3px rgba(25,115,77,.1);
  }
  /* 按钮统一尺寸感 */
  button{font-family:inherit}
  .button{font-size:var(--fs-base) !important}
  .button.small{font-size:var(--fs-sm) !important}

  /* ================= 视觉规范层 v3（针对性修复） =================
     依据 DOM 实测：
       .page-help > summary 仍是 list-item（默认样式没被覆盖）
       .account-card 是 block，内部高度不对齐
       卡片内 4 条分割线，视觉碎片化 */

  /* ---- ① 「本页怎么用」变成小徽章 ---- */
  details.page-help{
    display:inline-block !important;
    margin:0 0 14px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    width:auto !important;
  }
  details.page-help > summary{
    display:inline-flex !important;
    align-items:center !important;
    gap:6px !important;
    width:auto !important;
    min-height:0 !important;
    padding:4px 12px 4px 8px !important;
    margin:0 !important;
    border:1px solid var(--line) !important;
    border-radius:99px !important;
    background:#fff !important;
    font-size:11px !important;
    line-height:1.3 !important;
    color:var(--c-muted) !important;
    cursor:pointer !important;
    list-style:none !important;
    box-shadow:none !important;
    transition:border-color .16s ease, color .16s ease,
               background .16s ease;
  }
  details.page-help > summary::-webkit-details-marker{display:none !important}
  details.page-help > summary::marker{content:"" !important}
  details.page-help > summary::before{
    content:"?";
    display:inline-flex;align-items:center;justify-content:center;
    width:15px;height:15px;border-radius:50%;
    background:#e8f1ea;color:var(--c-ok);
    font-size:10px;font-weight:700;flex:0 0 auto;
  }
  details.page-help > summary:hover{
    border-color:var(--c-ok) !important;color:var(--c-ok) !important;
  }
  details.page-help[open] > summary{
    border-color:var(--c-ok) !important;
    color:var(--c-ok) !important;
    background:#f4faf6 !important;
  }
  details.page-help .page-help-content{
    display:block !important;
    width:auto !important;
    max-width:760px;
    margin:10px 0 0 !important;
    padding:14px 18px !important;
    border:1px solid var(--line) !important;
    border-radius:14px !important;
    background:#fbfdfb !important;
    font-size:13px !important;
    line-height:1.7 !important;
    color:var(--ink) !important;
  }
  details.page-help .page-help-content p{margin:0 0 8px !important}
  details.page-help .page-help-content ul{
    margin:0 !important;padding-left:18px !important;
  }
  details.page-help .page-help-content li{
    margin-bottom:3px !important;color:var(--c-muted) !important;
    font-size:12.5px !important;
  }

  /* ---- ② 账号卡片：flex 列布局 + 状态区等高 ---- */
  .account-card-list{
    display:grid !important;
    grid-template-columns:repeat(auto-fill,minmax(330px,1fr)) !important;
    gap:14px !important;
    align-items:stretch !important;
  }
  article.account-card{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    padding:16px 16px 14px !important;
    border:1px solid var(--line) !important;
    border-radius:14px !important;
    background:#fff !important;
    transition:border-color .16s ease, box-shadow .16s ease;
  }
  article.account-card:hover{
    border-color:#c9dcd0 !important;
    box-shadow:0 4px 14px rgba(27,60,41,.06) !important;
  }
  /* 状态区等高：给个最小高度，避免卡片参差 */
  .account-card-status{
    min-height:64px !important;
    align-content:start !important;
  }
  /* 结果区也等高 */
  .account-card-outcome{min-height:48px !important}
  /* 操作按钮固定贴底 */
  .account-card-actions{
    margin-top:auto !important;
    padding-top:12px !important;
    border-top:1px solid #f0f4f1 !important;
  }

  /* ---- ③ 减少卡片内的分割线（4 条 → 2 条） ---- */
  .account-card-status,
  .account-card-outcome,
  .account-card-details{
    border-top:0 !important;
    border-bottom:0 !important;
  }
  .account-card-details > summary{
    border-top:1px dashed #eef2ef !important;
    padding-top:8px !important;
    margin-top:4px !important;
  }
  .account-card-head{
    padding-bottom:8px !important;
    border-bottom:1px solid #f2f6f3 !important;
  }

  /* ---- ④ 状态徽章统一（卡片里的「数据/执行」标签） ---- */
  .account-card-status .tag,
  .account-card-outcome .tag{
    font-size:11px !important;
    padding:2px 9px !important;
  }
  /* 卡片里的小标题（数据 / 执行） */
  .account-card-status > div > span:first-child,
  .account-card-outcome > div > span:first-child{
    font-size:11px !important;
    color:var(--c-muted) !important;
    font-weight:600;
  }

  /* ---- ⑤ 表格更清爽 ---- */
  .table-wrap{
    border:1px solid var(--line);
    border-radius:14px !important;
    overflow:hidden;
    background:#fff;
  }
  .table th{
    background:#fafcfb !important;
    padding:10px 12px !important;
  }
  .table td{padding:11px 12px !important}

  /* ---- ⑥ 批量操作条：无选择时不占视觉重量 ---- */
  .account-bulk,
  .bulk-toolbar,
  [class*="bulk-bar"]{
    border-radius:12px !important;
  }

  /* ================= 视觉规范层 v4（收尾） ================= */

  /* 卡片列数：1030px 容器要放 3 列 → minmax 不能超 320px */
  .account-card-list{
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr)) !important;
    gap:14px !important;
  }
  .school-card-list{
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr)) !important;
    gap:14px !important;
  }

  /* 卡片内的「账号资料」折叠：与底部按钮区间距收一点 */
  .account-card-details{
    margin-top:auto !important;
    padding-top:10px !important;
    border-top:0 !important;
  }
  .account-card-details > summary{
    border-top:0 !important;
    padding-top:0 !important;
    margin-top:0 !important;
    font-size:12px !important;
    color:var(--c-muted) !important;
    cursor:pointer;
  }
  .account-card-details[open] > summary{
    margin-bottom:8px !important;
  }

  /* 批量操作条：无选择时视觉弱化 */
  .account-bulk-bar,
  .bulk-bar{
    background:#fbfdfb !important;
    border:1px dashed var(--line) !important;
  }

  /* 表格容器顶角不对称问题（8px 8px 3px 3px） */
  .table-wrap{border-radius:14px !important}
  .school-table-wrap{border-radius:14px !important}

  /* 筛选项（全部 24 / 待同步 22 …）统一成 pill */
  .filter-chip,
  [class*="filter-chip"]{
    border-radius:99px !important;
    font-size:12px !important;
    padding:4px 12px !important;
  }

  /* 卡片头部「选择」勾选框与名字对齐 */
  .account-card-head{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
  }

  /* 卡片状态行（数据 / 执行）两列等宽 */
  .account-card-status{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px 14px !important;
  }
  .account-card-outcome{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px 14px !important;
  }

  /* 进度条更细更克制 */
  .progress,
  [class*="progress-bar"]{
    height:5px !important;
    border-radius:99px !important;
    background:#eef3ef !important;
  }

  /* ================= 视觉规范层 v5（修正错位） =================
     v4 里我把 .account-card-status / -outcome 强设成两列网格，
     结果「标签 + 值」被拆到两列、文字右对齐 —— 布局反而更乱。
     这里撤掉列定义，只保留等高。 */

  /* 撤回 v4 的错误列定义 */
  .account-card-status{
    display:block !important;
    grid-template-columns:none !important;
  }
  .account-card-outcome{
    display:block !important;
    grid-template-columns:none !important;
  }

  /* 状态区：内部用两列但只放"标签+值"的成对单元 */
  .account-card-status > div,
  .account-card-outcome > div{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    margin-bottom:5px !important;
  }
  .account-card-status > div > *:last-child,
  .account-card-outcome > div > *:last-child{
    margin-left:0 !important;
  }

  /* 结果文字回到左对齐 */
  .account-card-outcome,
  .account-card-outcome *{
    text-align:left !important;
  }
  .account-card-status,
  .account-card-status *{
    text-align:left !important;
  }

  /* 「最近结果」这一行：标签与值同一行 */
  .account-card-outcome > b,
  .account-card-outcome > strong{
    display:block;
    text-align:left !important;
    margin-bottom:3px;
  }

  /* 等高只靠 min-height，不动列 */
  .account-card-status{min-height:60px !important}
  .account-card-outcome{min-height:44px !important}

  /* ================= 视觉规范层 v6（卡片布局定稿） =================
     前几轮我反复改卡片内部布局，越改越乱。这轮回到原则：
       · 不改内部元素排列（那是原设计的语义）
       · 只做"卡片等高 + 内容不溢出"
       · 长内容折叠，不撑高卡片 */

  /* 撤回 v5 对 > div 的 flex 强制 */
  .account-card-status > div,
  .account-card-outcome > div{
    display:block !important;
    margin-bottom:6px !important;
  }

  /* 卡片随内容增高，保留完整操作与错误信息。 */
  article.account-card{
    display:flex !important;
    flex-direction:column !important;
    min-height:300px !important;
    max-height:none !important;
    height:auto !important;
    overflow:visible !important;
  }

  /* 状态和结果不裁切，详情展开时由网格自然增高。 */
  .account-card-status{
    flex:0 0 auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .account-card-outcome{
    flex:0 0 auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }

  /* 错误原因完整换行显示。 */
  .account-card-outcome{
    display:block;
    -webkit-line-clamp:unset;
  }

  /* 「账号资料」折叠吃掉剩余空间 */
  .account-card-details{
    margin-top:auto !important;
    flex:0 0 auto !important;
  }

  /* 按钮区贴底 */
  .account-card-actions{
    margin-top:auto !important;
    flex:0 0 auto !important;
  }

  /* 卡片头部：确保名字不被挤压 */
  .account-card-head{
    flex:0 0 auto !important;
    align-items:flex-start !important;
  }

  /* 长文本省略（避免撑破） */
  .account-card-status *,
  .account-card-outcome *{
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* ================= 侧栏定稿样式 =================
     DOM 实测的问题：
       .nav-search-clear  h=18 w=223（宽度被拉伸）
       .nav-star          display=flex（常显，位置不贴右）
       nav-group 间距 6px 但视觉松散
     这里用一条完整规则集覆盖，所有值显式给出，不依赖继承。 */

  /* 容器 */
  .side-nav{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    padding:0 2px 0 0 !important;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.2) transparent;
  }
  .side-nav::-webkit-scrollbar{width:5px}
  .side-nav::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.2);border-radius:3px;
  }
  .side-nav::-webkit-scrollbar-track{background:transparent}

  /* 搜索框 */
  .nav-search{
    position:relative !important;
    display:block !important;
    margin:0 0 12px !important;
    padding:0 !important;
    flex:0 0 auto !important;
  }
  .nav-search input{
    display:block !important;
    width:100% !important;
    box-sizing:border-box !important;
    padding:7px 26px 7px 10px !important;
    border:1px solid rgba(255,255,255,.13) !important;
    border-radius:9px !important;
    background:rgba(255,255,255,.055) !important;
    color:#fff !important;
    font-size:12px !important;
    line-height:1.35 !important;
    font-family:inherit !important;
    outline:none !important;
  }
  .nav-search input::placeholder{color:rgba(255,255,255,.34) !important}
  .nav-search input:focus{
    border-color:rgba(255,255,255,.3) !important;
    background:rgba(255,255,255,.09) !important;
  }
  /* 清空按钮：给死尺寸，不再被拉伸 */
  .nav-search-clear{
    position:absolute !important;
    right:5px !important;
    top:50% !important;
    left:auto !important;
    transform:translateY(-50%) !important;
    width:16px !important;
    height:16px !important;
    min-width:0 !important;
    max-width:16px !important;
    padding:0 !important;
    margin:0 !important;
    border:none !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.14) !important;
    color:rgba(255,255,255,.7) !important;
    font-size:11px !important;
    line-height:1 !important;
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
  }
  .nav-search.has-value .nav-search-clear{display:flex !important}
  .nav-search-clear:hover{
    background:rgba(255,255,255,.28) !important;color:#fff !important;
  }

  /* 分组 */
  .nav-group{
    display:block !important;
    margin:0 0 10px !important;
    padding:0 !important;
    flex:0 0 auto !important;
  }
  .nav-group:last-of-type{margin-bottom:2px !important}
  .nav-group-body{
    display:flex !important;
    flex-direction:column !important;
    gap:1px !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* 组标题（可点折叠） */
  button.nav-group-title,
  .nav-group-title{
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    width:100% !important;
    box-sizing:border-box !important;
    padding:3px 9px 4px !important;
    margin:0 !important;
    border:none !important;
    background:transparent !important;
    cursor:pointer !important;
    font-family:inherit !important;
    font-size:10px !important;
    font-weight:650 !important;
    letter-spacing:.06em !important;
    line-height:1.35 !important;
    color:rgba(255,255,255,.46) !important;
    text-align:left !important;
    border-radius:6px !important;
  }
  button.nav-group-title:hover{
    color:rgba(255,255,255,.75) !important;
    background:rgba(255,255,255,.04) !important;
  }
  .nav-group-caret{
    font-size:8px !important;
    width:9px !important;
    display:inline-block !important;
    opacity:.8;
  }
  .nav-group.is-folded .nav-group-body{display:none !important}
  .app-shell.is-collapsed .nav-group-caret{display:none !important}
  .app-shell.is-collapsed button.nav-group-title{justify-content:center !important}

  /* 导航项 */
  .nav-item{
    display:block !important;
    position:relative !important;
    margin:0 !important;
    padding:0 !important;
  }
  .side-nav button[data-tab]{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    box-sizing:border-box !important;
    min-height:0 !important;
    padding:6px 10px !important;
    margin:0 !important;
    border:none !important;
    border-radius:8px !important;
    background:transparent !important;
    color:rgba(255,255,255,.8) !important;
    font-family:inherit !important;
    font-size:12.5px !important;
    font-weight:500 !important;
    line-height:1.35 !important;
    text-align:left !important;
    cursor:pointer !important;
    transition:background .14s ease,color .14s ease;
  }
  .side-nav button[data-tab]:hover{
    background:rgba(255,255,255,.07) !important;
    color:#fff !important;
  }
  .side-nav button[data-tab].active{
    background:var(--sidebar-active) !important;
    color:#fff !important;
    font-weight:600 !important;
    box-shadow:none !important;
  }
  .nav-label-full{display:inline !important}
  .nav-label-short{display:none !important}
  .app-shell.is-collapsed .nav-label-full{display:none !important}
  .app-shell.is-collapsed .nav-label-short{display:inline !important}
  .app-shell.is-collapsed .side-nav button[data-tab]{
    justify-content:center !important;
    padding:7px 4px !important;
  }

  /* 隐藏残留的星标（功能已移除） */
  .nav-star{display:none !important}

  /* 空状态 */
  .nav-empty{
    display:none;
    padding:16px 10px !important;
    text-align:center !important;
    font-size:11.5px !important;
    color:rgba(255,255,255,.36) !important;
  }

  /* ================= 优化层 v2 =================
     审计发现：
       · 顶部 eyebrow「云运动·管理后台」与侧栏品牌重复
       · h1「工作台」+ sub「当前页面：管理总览」说同一件事
       · 首页「待处理」只有 1 条却占 204px
     这里做视觉收口。 */

  /* 顶部：去掉 eyebrow 后的间距补偿 */
  .topbar-copy{gap:2px}
  .topbar-title{
    font-size:20px !important;
    font-weight:730;
    letter-spacing:-.015em;
    line-height:1.25;
    margin:0;
  }
  .topbar-sub{
    font-size:12px !important;
    color:var(--c-muted);
    margin:0;
    line-height:1.4;
  }
  .topbar{align-items:center;padding-bottom:14px;margin-bottom:16px}
  .topbar .page-eyebrow{display:none}

  /* 首页待处理卡：内容少时自动收紧 */
  .hs-todocard{
    padding:calc(var(--sp-6) - 4px) !important;
  }
  .hs-todocard .hs-todo-item{
    padding:10px 14px !important;
    border-radius:12px !important;
  }
  /* 待处理项：数字与说明同一行，省高度 */
  .hs-todo-item{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }
  .hs-todo-item > *:first-child{
    flex:0 0 auto;
    font-size:22px !important;
    line-height:1;
  }
  .hs-todo-item > *:nth-child(2){
    flex:1 1 auto;
    font-size:13px !important;
    line-height:1.4;
  }
  .hs-todo-item > *:nth-child(3){
    flex:0 0 auto;
    font-size:11px !important;
    color:var(--c-muted);
  }

  /* 首页图表卡统一高度 */
  .hs-grid > .card{
    display:flex !important;
    flex-direction:column !important;
    min-height:280px;
  }

  /* 统计卡更紧凑 */
  .dashboard-grid.home{
    gap:12px !important;
  }
  .dashboard-grid.home .metric{
    padding:14px 16px !important;
    min-height:80px;
    justify-content:center;
  }
  .dashboard-grid.home .metric b{
    font-size:24px !important;
  }

  /* 首页命令横幅：收紧 */
  .home-command{
    padding:18px 22px !important;
    gap:16px;
  }
  .home-command h3{
    font-size:15px !important;
    margin:2px 0 3px;
  }
  .home-command p{
    font-size:12.5px !important;
  }

  /* ===== 日志实时区 ===== */
  .log-meta{
    display:flex;align-items:center;gap:8px;
    padding:8px 2px 10px;
    font-size:11.5px;color:var(--c-muted);
  }
  .log-live-dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--c-ok);
    box-shadow:0 0 0 0 rgba(25,115,77,.5);
    animation:logPulse 1.6s ease-out infinite;
  }
  @keyframes logPulse{
    0%{box-shadow:0 0 0 0 rgba(25,115,77,.45)}
    70%{box-shadow:0 0 0 6px rgba(25,115,77,0)}
    100%{box-shadow:0 0 0 0 rgba(25,115,77,0)}
  }
  .log-count{
    margin-left:auto;
    padding:1px 8px;border-radius:99px;
    background:#f0f5f2;color:var(--c-muted);
    font-variant-numeric:tabular-nums;
  }
  /* 日志框：等宽字体 + 行号感 */
  .log-box{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:12px;line-height:1.65;
    tab-size:4;
  }

  /* ===== 体验优化层 ===== */

  /* 空状态：加图标，视觉上明确"这里本来就是空的" */
  /* 表单标签：必填加星号 */
  .field > label{
    display:block;margin-bottom:5px;
    font-size:12px;font-weight:600;color:var(--ink);
  }
  .field > label small{
    font-weight:400;color:var(--c-muted);font-size:10.5px;
  }
  .field:has(> *[required]) > label::after{
    content:" *";color:#c0392b;font-weight:400;
  }

  /* 任务行按钮层级 */
  [data-job-retry]{
    background:var(--c-ok) !important;
    border-color:var(--c-ok) !important;
    color:#fff !important;
  }
  [data-job-retry]:hover{background:#1a8256 !important}
  [data-job-fixface]{
    background:#fff8e6 !important;
    border-color:#f0d590 !important;
    color:#96690b !important;
  }
  [data-job-fixface]:hover{background:#fdf3d9 !important}

  /* 全选按钮：次级样式 */
  [data-select-all],[data-select-none]{
    background:transparent !important;
    border-color:var(--line) !important;
    color:var(--c-muted) !important;
  }
  [data-select-all]:hover,[data-select-none]:hover{
    border-color:var(--c-ok) !important;color:var(--c-ok) !important;
  }

  /* ===== 增长中心补充样式 ===== */
  .funnel-warn{color:#c0392b}
  .funnel-drop{
    display:inline-block;padding:1px 7px;border-radius:99px;
    background:#fdeceb;color:#b23a30;font-size:11.5px;
    font-variant-numeric:tabular-nums;
  }
  .growth-metric small.muted,.muted{color:var(--c-muted)}

  /* ===== 加载骨架屏 =====
     为什么要做：原先切页面只显示"正在读取…"一行字，内容区一片空白。
     骨架屏先画出结构（灰块 + 微光），让人知道"页面在准备、数据在填"。 */
  .skeleton{
    background:linear-gradient(90deg,#eef2ef 25%,#f6f9f7 37%,#eef2ef 63%);
    background-size:400% 100%;
    animation:loading-shimmer 1.4s ease-in-out infinite;
    border-radius:6px;display:block;
  }
  .skeleton-row{height:14px;margin:9px 0}
  .skeleton-title{height:18px;width:38%;margin:0 0 14px}
  .skeleton-card{
    padding:var(--sp-6);border:1px solid var(--line);
    border-radius:var(--r-xl);background:#fff;margin-bottom:var(--sp-5);
  }
  @media (prefers-reduced-motion: reduce){
    .skeleton{animation:none;background:#eef2ef}
  }

  /* ===== 可排序表头 ===== */
  .th-sort{
    cursor:pointer;user-select:none;white-space:nowrap;
    transition:color .14s ease,background .14s ease;
  }
  .th-sort:hover{color:var(--c-ok);background:#f7fbf8}
  .th-sort:focus-visible{
    outline:2px solid var(--c-ok);outline-offset:-2px;
  }
  .th-sort .sort-mark{
    display:inline-block;min-width:9px;
    font-size:9px;color:var(--c-ok);margin-left:2px;
  }

  /* 空状态：只留文字，不加装饰图标。
     原先这里放了一个字符图标，但它在不同语义下（没有数据/没有匹配/
     权限不足）都是同一个符号，反而让人困惑。简洁的留白更好。 */
  .empty::before{content:none}
  .empty{
    display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:6px;
    padding:var(--sp-7) var(--sp-5);
    text-align:center;color:#7a8a80;
  }
  .empty small{color:#9aa8a0;font-size:12.5px;line-height:1.6}

  /* 执行页：任务日志排在任务队列之前。
     为什么：任务多的时候（实测 32 个）队列很长，日志被挤到屏幕外，
     用户"看不到日志在更新"必须手动往下滚。把日志提到上面，
     提交任务后立刻就能看到实时输出。 */
  [data-execution-queue]{display:flex;flex-direction:column;gap:var(--sp-5)}
  [data-execution-queue] > .card:nth-child(1){order:2}
  [data-execution-queue] > .card:nth-of-type(n+2){order:1}
  [data-execution-queue] > *{order:3}

  .log-follow{
    display:inline-flex;align-items:center;gap:5px;
    margin-left:10px;font-size:11.5px;color:#5b7268;cursor:pointer;
    user-select:none;
  }
  .log-follow input{width:13px;height:13px;accent-color:var(--c-ok);cursor:pointer}

  /* 登录失败：抖动 + 输入框标红。
     为什么：错误条原来就存在，但它在密码框下方靠右，用户视线还在输入框上，
     经常"没看到"。加一点动静把注意力带过去。 */
  @keyframes loginShake{
    0%,100%{transform:translateX(0)}
    20%{transform:translateX(-6px)}
    40%{transform:translateX(5px)}
    60%{transform:translateX(-3px)}
    80%{transform:translateX(2px)}
  }
  .login-err-shake{animation:loginShake .5s ease}
  .login-input-err{
    border-color:#d9534f !important;
    box-shadow:0 0 0 3px rgba(217,83,79,.16) !important;
    transition:border-color .2s,box-shadow .2s;
  }
  @media (prefers-reduced-motion: reduce){
    .login-err-shake{animation:none}
  }

  /* ===== 渲染性能优化 =====
     为什么要做：面板在任务多/列表长时会卡。原因是所有卡片与表格行
     都在同一帧里构建和布局，即使它们在屏幕外看不见。

     content-visibility:auto 让浏览器**跳过屏外元素的渲染与布局**，
     滚动到才渲染。这是零风险的纯收益优化。

     配套 contain-intrinsic-size 是给浏览器一个尺寸预估，
     避免滚动条跳动（值取元素的大致高度）。 */
  .card,
  .account-card,
  .job-card,
  .school-card,
  .table-wrap,
  .metric {
    content-visibility: auto;
  }
  .account-card{contain-intrinsic-size: auto 260px}
  .job-card{contain-intrinsic-size: auto 190px}
  .school-card{contain-intrinsic-size: auto 200px}
  .card{contain-intrinsic-size: auto 320px}
  .metric{contain-intrinsic-size: auto 110px}

  /* 表格行很多时也跳过屏外行 */
  .table tbody tr{content-visibility: auto;
                  contain-intrinsic-size: auto 46px}

  /* 滚动容器加 GPU 合成层，滚动更顺 */
  .side-nav,
  .table-wrap,
  .log-box{
    transform: translateZ(0);
    will-change: scroll-position;
  }

  /* ===== 学校选择器（可搜索 + 可下拉）=====
     交互参考主流 autocomplete：
       输入即过滤 → 列表实时更新 → 点击/回车选中 → 输入框显示名称
     隐藏字段保存 school_id，提交时读它。 */
  .school-picker{position:relative}
  .school-picker input[type=text]{
    width:100%;box-sizing:border-box;
    padding:9px 12px;border:1px solid var(--line);border-radius:var(--r-md);
    background:#fff;font-size:14px;color:var(--ink);
  }
  .school-picker input[type=text]:focus{
    outline:none;border-color:var(--c-ok);
    box-shadow:0 0 0 3px rgba(31,138,90,.12);
  }
  .school-picker-list{
    position:absolute;left:0;right:0;top:calc(100% + 4px);
    max-height:260px;overflow-y:auto;z-index:60;
    background:#fff;border:1px solid var(--line);
    border-radius:var(--r-md);box-shadow:0 10px 28px rgba(11,23,38,.13);
    display:none;
  }
  .school-picker.open .school-picker-list{display:block}
  .school-picker-item{
    padding:9px 13px;cursor:pointer;font-size:13.5px;
    display:flex;justify-content:space-between;gap:10px;align-items:center;
  }
  .school-picker-item:hover,
  .school-picker-item.active{background:#f2f8f4}
  .school-picker-item b{font-weight:600}
  .school-picker-item small{color:var(--muted);font-size:11.5px;
                             font-family:ui-monospace,Consolas,monospace}
  .school-picker-item.on{background:#e8f5ee}
  .school-picker-empty{
    padding:11px 13px;color:var(--muted);font-size:13px;text-align:center;
  }

    /* ===== 移动端顶部导航 =====
     背景
     ----
     .mobile-nav 装着「分组容器」（nav-group = 标题 + 纵向按钮列表）。
     手机上 flex 横排时每个分组被压成 66×186 的竖条，
     整条导航撑到 206px，占掉首屏一大块（实测）。

     上一版没生效的原因：display/flex-direction 被后续样式覆盖，
     而同一条 @media 里的 max-height 却生效了 —— 优先级竞争。
     这里对关键声明加 !important 直接压过去。 */
  @media (max-width: 1023px) {
    .mobile-nav {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 6px !important;
      max-height: 52px !important;
      height: auto !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scrollbar-width: none !important;
      -webkit-overflow-scrolling: touch !important;
    }
    .mobile-nav::-webkit-scrollbar { display: none !important; height: 0 !important; }

    .mobile-nav .nav-group {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 6px !important;
      flex: 0 0 auto !important;
      margin: 0 !important;
      padding: 0 !important;
      min-height: 0 !important;
      max-height: 40px !important;
      height: auto !important;
    }
    .mobile-nav .nav-group-body {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 6px !important;
      margin: 0 !important;
      padding: 0 !important;
      min-height: 0 !important;
      max-height: 40px !important;
      height: auto !important;
    }
    .mobile-nav .nav-group-title { display: none !important; }
    .mobile-nav .nav-item {
      display: block !important;
      flex: 0 0 auto !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    .mobile-nav .nav-item > button,
    .mobile-nav .nav-group-body > button,
    .mobile-nav button[data-tab] {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex: 0 0 auto !important;
      width: auto !important;
      min-width: 0 !important;
      height: 34px !important;
      min-height: 34px !important;
      max-height: 34px !important;
      padding: 0 12px !important;
      margin: 0 !important;
      font-size: 13px !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
    }
  }

  /* 刷新健康度指示器（8px 圆点） */
  .health-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 6px; vertical-align: middle;
    background: #b6c2ba; transition: background .3s;
  }
  .health-dot[data-level="ok"] { background: #1f8a5a; }
  .health-dot[data-level="slow"] { background: #d9a94e; }
  .health-dot[data-level="stuck"] { background: #c0533f;
    animation: health-pulse 1.2s ease-in-out infinite; }
  .health-dot[data-level="idle"] { background: #b6c2ba; }
  @keyframes health-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
  }

  /* ===== 用户端账号健康度 ===== */
  .ur-health{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
    margin:0 0 14px;padding:11px 15px;border-radius:12px;
    border:1px solid var(--line);background:#fff;font-size:13px}
  .ur-health-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
  .ur-health-dot.ok{background:#19734d}
  .ur-health-dot.bad{background:#b64242}
  .ur-health-dot.warn{background:#d99020}
  .ur-health-dot.off{background:#9aa5a0}
  .ur-health-item{display:inline-flex;align-items:center;gap:6px;
    color:var(--ink-soft)}
  .ur-health-item b{font-weight:800;font-variant-numeric:tabular-nums}
  .ur-health-spacer{flex:1 1 auto}
  .ur-health-time{font-size:11.5px;color:var(--muted);
    font-variant-numeric:tabular-nums}
  /* 卡片上的「上次探测」行 */
  .ur-last-check{display:flex;align-items:center;gap:6px;margin-top:6px;
    font-size:11.5px;color:var(--muted);line-height:1.5}
  .ur-last-check .ur-health-dot{width:7px;height:7px}
  .ur-last-check b{font-weight:700;color:var(--ink-soft)}
  .ur-last-check.bad b{color:#b64242}
  .ur-last-check.ok b{color:#19734d}

  /* ===== 人脸缩略图 ===== */
  .uf-thumb{display:flex;align-items:center;gap:12px;margin-top:10px;
    padding:10px 12px;border-radius:12px;border:1px solid var(--line);
    background:#fafcfa}
  .uf-thumb img{width:64px;height:64px;object-fit:cover;border-radius:10px;
    border:1px solid var(--line);background:#fff;flex:0 0 auto}
  .uf-thumb-body{flex:1 1 auto;min-width:0}
  .uf-thumb-body b{display:block;font-size:13px;font-weight:800;
    color:#19734d}
  .uf-thumb-body span{display:block;font-size:11.5px;color:var(--muted);
    margin-top:2px;word-break:break-all}

  /* ===== 新用户引导步骤条 ===== */
  .ur-steps{display:flex;align-items:stretch;gap:0;margin:0 0 16px;
    padding:14px 16px;border-radius:14px;border:1px solid var(--line);
    background:#fff;overflow-x:auto;scrollbar-width:none}
  .ur-steps::-webkit-scrollbar{display:none}
  .ur-step{display:flex;align-items:center;gap:9px;flex:1 1 0;
    min-width:150px;padding-right:8px}
  .ur-step-dot{width:26px;height:26px;border-radius:50%;flex:0 0 auto;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;font-weight:800;
    background:#eef2ef;color:#8a978f;border:1px solid var(--line)}
  .ur-step.done .ur-step-dot{background:#19734d;color:#fff;border-color:#19734d}
  .ur-step.now .ur-step-dot{background:#d8f36a;color:#0b1726;
    border-color:#c6e055}
  .ur-step-body{min-width:0}
  .ur-step-body b{display:block;font-size:12.5px;font-weight:700;
    color:var(--ink-soft);white-space:nowrap}
  .ur-step.now .ur-step-body b{color:var(--ink)}
  .ur-step-body span{display:block;font-size:11px;color:var(--muted);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ur-step-line{flex:0 0 18px;height:1px;background:var(--line);
    align-self:center;margin-right:8px}
  .ur-step.done + .ur-step-line{background:#19734d}

  /* ===== 用户端账号卡片的操作按钮 =====
     问题：窄卡片（320px）里「资料仅供查看」+ 两个 86px 按钮放不下，
     绿色按钮被裁切；而且用户看不懂"资料仅供查看"想表达什么。

     改法：用户端去掉占位文字，按钮横向铺满、每个等分宽度。
     管理端保持原样（那里"资料仅供查看"是有意义的角色说明）。 */
  .account-card-actions .user-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    width: 100%;
  }
  .account-card-actions .user-actions .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  /* 只有一行按钮时，两张按钮各占一半 */
  .account-card-actions .user-actions:has(.button:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
  }
  /* 窄屏再收紧一点，保证不裁切 */
  @media (max-width: 400px) {
    .account-card-actions .user-actions {
      grid-template-columns: 1fr 1fr;
    }
    .account-card-actions .user-actions .button {
      padding-left: 8px; padding-right: 8px; font-size: 12.5px;
    }
  }
  /* 用户端卡片底部不要再 space-between —— 按钮已经铺满 */
  .account-card-actions:has(.user-actions) {
    justify-content: stretch;
  }

  /* 窄卡片时内边距收紧，给按钮留地方 */
  @media (max-width: 400px) {
    article.account-card { padding: 12px 12px !important; }
    .account-card-actions { margin-top: 10px; padding-top: 10px; }
  }

  /* ===== 用户端账号卡片：删除按钮的排布修正 =====
     问题：.user-actions 是 grid，删除按钮包在 .account-secondary-actions
     里作为第三个 grid 项 —— 卡片窄时它被挤到下一行并压成 0 宽（不可见）。

     修法：让次要操作区横跨整行（grid-column: 1/-1），自带 flex 右对齐。 */
  .account-card-actions .user-actions .account-secondary-actions,
  .account-card-actions .user-actions .user-secondary {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
  }
  .account-card-actions .user-actions .account-secondary-actions .button,
  .account-card-actions .user-actions .user-secondary .button {
    width: auto;
    min-width: 0;
    padding: 5px 14px;
    font-size: 12.5px;
  }
  /* 保证删除按钮本身可见 */
  [data-user-del-aid] {
    display: inline-flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1;
  }

  /* 键盘光标行 —— 让用户看清键盘选中的是哪一行。
     用 outline 而不是 border：outline 不占布局空间，
     不会让表格行高跳动。 */
  .kb-cursor {
    outline: 2px solid rgba(31,138,90,.6);
    outline-offset: -2px;
  }
  .kb-cursor > td,
  .kb-cursor > th {
    background: rgba(31,138,90,.07) !important;
  }
  .account-card.kb-cursor,
  .school-card.kb-cursor,
  .job-card.kb-cursor,
  .audit-card.kb-cursor {
    border-color: rgba(31,138,90,.55) !important;
    box-shadow: 0 0 0 2px rgba(31,138,90,.18);
  }

  /* 统一空态：主标题加粗，与副文案有层级 */
  .empty b { display: block; font-weight: 650; font-size: 14px;
             color: var(--ink); margin-bottom: 3px; }
  .empty small { display: block; color: var(--muted); font-size: 12.5px;
                 line-height: 1.6; }

  .spark { display: block; margin-top: 4px; }

  .views-bar { display: flex; align-items: center; gap: 6px;
               flex-wrap: wrap; margin: 8px 0; }
  .view-chip { display: inline-flex; align-items: center;
               border: 1px solid var(--line); border-radius: var(--r-pill);
               background: #fff; overflow: hidden; }
  .view-chip button { border: 0; background: transparent; cursor: pointer;
                      padding: 4px 9px; font-size: 12.5px;
                      color: var(--ink); }
  .view-chip button:hover { background: rgba(31,138,90,.08); }
  .view-chip-x { padding: 4px 7px !important; color: var(--muted) !important;
                 font-size: 14px !important; line-height: 1; }
  .view-chip-x:hover { background: rgba(192,83,63,.1) !important;
                       color: #c0533f !important; }

  /* 命令面板 */
  #cmdk {
    border: 0; padding: 0; border-radius: 14px;
    width: min(560px, 92vw); max-height: 70vh;
    box-shadow: 0 24px 60px rgba(11,23,38,.28);
    background: #fff; overflow: hidden;
  }
  #cmdk::backdrop { background: rgba(11,23,38,.35);
                    backdrop-filter: blur(2px); }
  .cmdk-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  #cmdk-input {
    width: 100%; border: 0; outline: 0; font-size: 15px;
    padding: 6px 2px; background: transparent; color: var(--ink);
  }
  #cmdk-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
  .cmdk-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 9px 11px; border-radius: 9px; cursor: pointer;
  }
  .cmdk-item b { font-weight: 600; font-size: 14px; }
  .cmdk-item small { color: var(--muted); font-size: 12px; }
  .cmdk-item.on, .cmdk-item:hover { background: rgba(31,138,90,.09); }
  .cmdk-empty { padding: 22px; text-align: center; color: var(--muted);
                font-size: 13px; }
  .cmdk-foot { padding: 8px 13px; border-top: 1px solid var(--line);
               font-size: 11.5px; color: var(--muted);
               display: flex; gap: 12px; }
  .cmdk-kbd { display: inline-block; padding: 1px 5px; border-radius: 4px;
              border: 1px solid var(--line); background: rgba(11,23,38,.04);
              font-family: ui-monospace, Consolas, monospace; font-size: 11px; }

  /* 账号健康度条 */
  .health-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 9px 13px; margin: 8px 0; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; font-size: 13px;
  }
  .health-bar[data-tone="ok"] { border-color: rgba(31,138,90,.35);
                                background: rgba(31,138,90,.05); }
  .health-bar[data-tone="warn"] { border-color: rgba(168,98,10,.3);
                                  background: rgba(168,98,10,.05); }
  .health-bar[data-tone="err"] { border-color: rgba(192,83,63,.3);
                                 background: rgba(192,83,63,.05); }
  .health-label { font-weight: 650; color: var(--ink); }
  .health-parts { color: var(--muted); flex: 1 1 auto; }
  .health-parts b { font-variant-numeric: tabular-nums; }

  .face-thumb {
    display: inline-block; width: 32px; height: 32px;
    border-radius: 6px; object-fit: cover; cursor: pointer;
    border: 1px solid var(--line); vertical-align: middle;
    background: rgba(11,23,38,.04);
  }
  .face-thumb.empty-thumb {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--muted); cursor: default;
  }
  .face-thumb:not(.empty-thumb):hover {
    border-color: rgba(31,138,90,.5);
    box-shadow: 0 0 0 2px rgba(31,138,90,.15);
  }
  .face-view-dialog {
    border: 0; padding: 0; border-radius: 14px;
    width: min(420px, 92vw); background: #fff;
    box-shadow: 0 24px 60px rgba(11,23,38,.3);
  }
  .face-view-dialog::backdrop { background: rgba(11,23,38,.4); }


:root{--experience-line:#e2e9e5}
.workspace .card{border-color:var(--experience-line);box-shadow:0 4px 18px rgba(24,55,41,.035)}
.topbar-title{letter-spacing:-.03em}.sidebar-head .brand-copy h1{letter-spacing:-.04em}
.table th{font-size:12px;letter-spacing:.025em}.table td{line-height:1.65;vertical-align:top}
.table tbody tr:hover{background:rgba(24,112,81,.025)}
.job-table-wrap .table td:first-child{min-width:160px}.job-table-wrap .table td:nth-child(4){min-width:190px;max-width:360px;white-space:normal}
.job-table-wrap small{display:block;overflow-wrap:anywhere}.job-table-wrap .row-actions{gap:8px}
[data-job-card-more]{margin:16px 0 0;width:100%;min-height:42px}
.log-box{line-height:1.8;tab-size:2}.log-meta{flex-wrap:wrap;gap:10px}
.panel-dialog .field label{line-height:1.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #187652;outline-offset:3px}
@media(min-width:1100px){.workspace{padding:28px 32px}.workspace .card{padding:24px}.table td,.table th{padding:16px 14px}.page-toolbar{margin-bottom:24px}.section-head{gap:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


.user-dashboard{max-width:1480px;margin-inline:auto;min-width:0}
.user-panel-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);gap:24px;align-items:start;margin-top:22px}
.user-panel-main,.user-panel-setup{min-width:0;display:grid;gap:18px}
.user-dashboard .user-panel-grid .card{margin-top:0!important;min-width:0}
.user-dashboard .user-run-tools{margin:0;align-items:flex-start;padding:20px;background:#f3f8f4}
.user-dashboard .user-run-tools>div:first-child{max-width:48ch}
.user-dashboard .user-run-tools .row-actions{width:100%;justify-content:flex-start}
.user-dashboard .user-setup-intro{padding:4px 2px 0}
.user-dashboard .user-setup-intro h3{font-size:16px;margin:0 0 7px}
.user-dashboard .user-setup-intro p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.user-dashboard .ur-hero-right{display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;max-width:400px}.user-dashboard .ur-hero-right .button{width:auto!important;min-height:44px}
.user-dashboard .ur-hero-tip{width:100%;line-height:1.6}
.user-dashboard .mk-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.user-dashboard .mk-form>div:last-child:not(.field){grid-column:1/-1}
.user-dashboard .field,.user-dashboard input,.user-dashboard select{min-width:0;max-width:100%}
.user-dashboard .ua-row{flex-wrap:wrap;gap:8px 12px;line-height:1.6}
.user-dashboard .ua-row-s{white-space:normal}
.user-dashboard .section-head{align-items:flex-start;gap:12px}
.user-dashboard .section-head .tag{flex-shrink:0}
.user-dashboard .account-card-list{grid-template-columns:minmax(0,1fr)!important}
.user-dashboard #ur-card,.user-dashboard #ur-profile-card{scroll-margin-top:100px}
.user-dashboard button:focus-visible,.user-dashboard a:focus-visible{outline:2px solid #19734d;outline-offset:3px}
@media(max-width:1180px){.user-panel-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:18px}.user-dashboard .mk-form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:980px){.user-panel-grid{grid-template-columns:minmax(0,1fr)}.user-dashboard[data-has-accounts="0"] .user-panel-setup{order:-1}.user-dashboard .user-panel-setup{border-top:1px solid var(--line);padding-top:18px}.user-dashboard .user-run-tools span{font-size:13px}}
@media(max-width:760px){.user-panel-grid{margin-top:16px;gap:20px}.user-panel-main,.user-panel-setup{gap:14px}.user-dashboard .card{padding:18px 16px}.user-dashboard .ur-hero-right{max-width:none;justify-content:flex-start}.user-dashboard .ur-hero-tip{text-align:left}.user-dashboard input:not([type="checkbox"]),.user-dashboard select{font-size:16px;min-height:44px}.user-dashboard .button,.user-dashboard summary{min-height:44px}.user-dashboard .account-card-actions{flex-wrap:wrap}.user-dashboard .account-primary-actions{flex:1;flex-wrap:wrap}.user-dashboard .account-primary-actions .button{min-height:44px}.user-dashboard .section-head .tag{flex-shrink:1;white-space:normal}.user-dashboard .ur-step-body{min-width:0}.user-dashboard .ur-step-body b,.user-dashboard .ur-step-body span{white-space:normal}}
@media(max-width:420px){.user-dashboard .section-head{flex-wrap:wrap}.user-dashboard .user-run-tools .row-actions{display:grid;grid-template-columns:1fr}.user-dashboard .user-run-tools .button{width:100%}.user-dashboard .account-card-status{grid-template-columns:minmax(0,1fr);gap:12px}.user-dashboard .ur-hero{gap:18px}}
@media(prefers-reduced-motion:reduce){.user-dashboard *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* SuperHub administrative workspace. Role scope protects the customer layout. */
.app-shell[data-role="admin"] .workspace{max-width:1680px}
.app-shell[data-role="admin"] #view>.section-head h2{display:none}
.app-shell[data-role="admin"] .card{border-radius:14px;box-shadow:0 2px 10px rgba(16,44,31,.025)}
.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.admin-tabs .button{border:1px solid var(--line)}
.admin-tabs .primary{border-color:var(--green)}
.admin-dialog{width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#17372b;overflow:auto;box-shadow:0 24px 90px rgba(10,35,23,.25)}
.admin-dialog::backdrop{background:rgba(8,28,18,.48)}
.admin-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.admin-dialog>header h2{font-size:20px;margin:0}
.admin-dialog .card{padding:0;margin:0;border:0;box-shadow:none}
.admin-dialog .form-actions{position:sticky;bottom:-24px;background:#fff;padding:16px 0;margin-top:16px}
.admin-dialog .field input,.admin-dialog .field select{width:100%}
.admin-filter-tools{margin-bottom:12px;border-bottom:1px solid var(--line);padding-bottom:10px}
.admin-filter-tools>summary,.admin-batch-more>summary,.account-more-actions>summary{cursor:pointer;font-weight:600;min-height:36px;display:flex;align-items:center;gap:6px}
.admin-filter-tools>summary::after,.admin-batch-more>summary::after,.account-more-actions>summary::after{content:'＋';margin-left:auto}
.admin-filter-tools[open]>summary::after,.admin-batch-more[open]>summary::after,.account-more-actions[open]>summary::after{content:'−'}
.admin-filter-tools .table-tools{margin-top:10px}
.admin-search-row{display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto;gap:8px;margin:12px 0 8px;align-items:center}
.admin-search-row input,.admin-search-row select{min-width:0;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.admin-list-mode{display:flex;justify-content:flex-end}
.admin-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#f2f7f4;border:1px solid var(--line);border-radius:10px;margin-bottom:14px}
.admin-selection-bar>span{font-size:12px;color:var(--muted)}
.admin-batch-more{position:relative}
.admin-batch-more[open]{flex-basis:100%;padding:10px;border:1px solid var(--line);border-radius:10px}
.admin-batch-more .row-actions{margin:8px 0}
.admin-batch-more small{color:var(--muted);font-size:12px}
.app-shell[data-role="admin"] .admin-account-table{display:block!important;overflow:auto}
.app-shell[data-role="admin"] .admin-account-table table{min-width:830px;width:100%;table-layout:auto}
.admin-account-table th,.admin-account-table td{padding:12px 10px;vertical-align:top;white-space:normal}
.admin-account-table th:nth-child(2){width:25%}
.admin-account-table td small{display:block;font-size:11px;color:var(--muted);line-height:1.55;overflow-wrap:anywhere}
.admin-account-table .account-state-stack{flex-direction:row;gap:4px;margin-top:6px}
.admin-account-table .action-cell{min-width:150px}
.admin-account-table .sync-state{white-space:normal}
.admin-account-table .account-secondary-actions{flex-wrap:wrap;padding:8px 0}
.admin-account-table details>summary{font-size:12px;color:var(--green);min-height:32px}
.app-shell[data-role="admin"] .admin-account-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))!important}
.app-shell[data-role="admin"] .account-card{display:flex;flex-direction:column}
.app-shell[data-role="admin"] .account-card-actions{order:1;margin-top:10px}
.app-shell[data-role="admin"] .account-card-status{order:2;margin-top:14px}
.app-shell[data-role="admin"] .account-card-outcome{order:3}
.app-shell[data-role="admin"] .account-card-details{order:4}
.app-shell[data-role="admin"] .account-card .ur-last-check{order:5}
.app-shell[data-role="admin"] .admin-plan-list .schedule-table{min-width:850px}
.app-shell[data-role="admin"] .hs-ok{padding:6px 0;margin:0}
.app-shell[data-role="admin"] .hs-card:has(.hs-ok) .section-head{margin-bottom:5px}
.execution-split{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.execution-split:has(.task-log-panel){grid-template-columns:minmax(450px,1fr) minmax(330px,.8fr)}
.task-log-panel{position:sticky;top:16px;min-width:0}
.task-log-panel .log-box{max-height:60vh;min-height:180px}
.task-log-panel .section-head{gap:8px}
.task-log-panel .log-meta{flex-wrap:wrap}
.task-log-panel .log-refresh-error{margin:10px 0}
@media(max-width:1150px){.execution-split:has(.task-log-panel){grid-template-columns:minmax(0,1fr)}.task-log-panel{position:static}}
@media(max-width:900px){
  .app-shell[data-role="admin"] .mobile-nav{display:none!important}
  .app-shell[data-role="admin"] .topbar.page-toolbar{flex-wrap:wrap;gap:10px}
  .app-shell[data-role="admin"] .workspace{padding:16px 12px 48px}
  .app-shell[data-role="admin"] .admin-list-mode{display:none}
  .admin-search-row{grid-template-columns:minmax(0,1fr) auto}
  .admin-search-row input{min-height:44px;font-size:14px}
  .app-shell[data-role="admin"] .account-submit-panel{padding:12px}
  .app-shell[data-role="admin"] .admin-account-cards{grid-template-columns:minmax(0,1fr)!important}
  .app-shell[data-role="admin"] .admin-account-cards article{width:100%;min-width:0!important;max-width:100%;box-sizing:border-box}
  .app-shell[data-role="admin"] .account-card-actions{flex-wrap:wrap}
  .app-shell[data-role="admin"] .account-primary-actions{display:flex!important;flex-direction:row!important;flex:1;gap:6px}
  .app-shell[data-role="admin"] .account-primary-actions>.button{width:auto!important;min-width:0!important;flex:1!important;padding:8px 10px}
  .app-shell[data-role="admin"] .account-more-actions{margin-left:0}
  .admin-selection-bar>.row-actions{display:flex;flex-direction:row!important;flex-wrap:wrap}
  .admin-selection-bar>.row-actions>button{width:auto!important;flex:0 0 auto!important}
  .admin-selection-bar>.row-actions>.admin-batch-more:not([open]){flex:1;min-width:0}
  .app-shell[data-role="admin"] #view>.section-head .sub{font-size:12px;line-height:1.5}
  .admin-selection-bar{padding:8px;gap:6px}
  .admin-selection-bar>.row-actions{width:100%;justify-content:flex-start}
  .admin-tabs .button,.admin-filter-tools>summary,.admin-batch-more>summary,.account-more-actions>summary{min-height:44px}
  .admin-dialog{padding:18px;max-height:calc(100dvh - 20px)}
  .admin-dialog .form-actions{bottom:-18px}
  .admin-dialog .form-grid{grid-template-columns:minmax(0,1fr)}
}
/* Repair all existing panel controls in the already-supported system dark mode. */
@media(max-width:900px) and (prefers-color-scheme:dark){
  :root{--c-muted:#adbbb2;--c-ink:#e8efe9}
  .app-shell .button,.app-shell button,.app-shell .icon-button{color:#e8efe9;background:#26392e;border-color:#50675a}
  .app-shell .button.primary,.app-shell button.primary{color:#fff;background:#197653;border-color:#30976f}
  .app-shell .button.danger,.app-shell button.danger{color:#ffcac3;background:#492724}
  .app-shell .button:disabled,.app-shell button:disabled{color:#b2beb7;background:#253029;opacity:1}
  .app-shell .table-tools,.app-shell .admin-selection-bar,.app-shell .one-click-bar,.app-shell .filter-row,.app-shell .admin-dialog{background:#1b2320;color:#e8efe9;border-color:#465a4e}
  .app-shell input:not([type=checkbox]):not([type=radio]),.app-shell select,.app-shell textarea{color:#e8efe9;background:#202d25;border-color:#50675a}
  .app-shell input::placeholder,.app-shell textarea::placeholder{color:#adbbb2}
  .app-shell .filter-chip.active,.app-shell .mobile-nav button.active{color:#d9f8e8;background:#245c41;border-color:#528a6b}
  .app-shell .filter-chip{color:#e8efe9!important;background:#26392e!important;border-color:#50675a!important}
  .app-shell .filter-chip.active{color:#d9f8e8!important;background:#245c41!important}
  .app-shell .page-help>summary,.app-shell .page-help-content{background:#26392e!important;color:#e8efe9!important;border-color:#50675a!important}
  .app-shell .tag,.app-shell .mk-tag{color:#d4f5e3;background:#244e3a}
  .app-shell .tag.off,.app-shell .mk-tag.noface{color:#f5dfb8;background:#493a27}
  .app-shell .admin-dialog .form-actions{background:#1b2320}
  .app-shell .notice.info{color:#d4e8db;background:#253b2e;border-color:#50675a}
  .app-shell .notice.err{color:#ffcbc5;background:#472a28;border-color:#85514b}
  .app-shell .notice.ok{color:#d4f5e3;background:#244e3a;border-color:#4f8369}
  .app-shell .account-submit-panel,.app-shell article.account-card,.app-shell .job-card{background:#1b2320!important;border-color:#465a4e!important}
  .app-shell [data-select-all],.app-shell [data-select-none]{color:#e8efe9!important;border-color:#50675a!important}
  .app-shell .account-card-secondary,.app-shell .account-secondary-actions,.app-shell .account-more-actions>summary{background:#26392e;color:#e8efe9;border-color:#50675a}
  .panel-dialog,.account-edit-dialog,#cmdk{background:#1b2320;color:#e8efe9;border-color:#50675a}
  .panel-dialog .button,.account-edit-dialog .button{background:#26392e;color:#e8efe9;border-color:#50675a}
  .panel-dialog .button.primary,.account-edit-dialog .button.primary{background:#197653;color:#fff}
  .panel-dialog input,.panel-dialog select,.panel-dialog textarea,.account-edit-dialog input,.account-edit-dialog select,.account-edit-dialog textarea{background:#202d25;color:#e8efe9;border-color:#50675a}
  .panel-dialog .dialog-foot,.account-edit-dialog .dialog-foot{background:#1b2320}
}
@media(prefers-reduced-motion:reduce){.admin-dialog,.admin-tabs,.app-shell[data-role="admin"] .card{animation:none!important;transition:none!important}}


.panel-read-warning{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:16px 18px;border:1px solid #ddbb70;border-radius:12px;background:#fff8e8;color:#604710}
.panel-read-warning strong{font-size:14px}.panel-read-warning p{margin:5px 0 0;font-size:13px;line-height:1.65;max-width:65ch}.panel-read-warning .button{flex-shrink:0}
.admin-table-settings{margin:0 0 14px;border-bottom:1px solid var(--line);padding:0 0 10px}.admin-table-settings>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-size:13px;font-weight:600;gap:8px}.admin-table-settings>summary::after{content:'＋';margin-left:auto}.admin-table-settings[open]>summary::after{content:'−'}
.admin-table-settings-body{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 0}.admin-table-settings-body fieldset{display:flex;gap:12px;flex-wrap:wrap;margin:0;padding:8px 12px 10px;border:1px solid var(--line);border-radius:8px}.admin-table-settings-body legend{font-size:12px;color:var(--muted);padding:0 4px}.admin-table-settings-body label{display:flex;align-items:center;gap:6px;font-size:13px}.admin-table-settings-body input{accent-color:var(--green);width:16px;height:16px}.admin-density-label select{padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink);min-width:85px}.admin-table-settings-body>small{width:100%;font-size:12px;color:var(--muted)}
.admin-account-table [data-admin-column][hidden]{display:none!important}
/* Scoped importance overrides the legacy global .table td padding rule. */
.app-shell[data-role="admin"] .admin-account-table[data-density="comfortable"] .table td,.app-shell[data-role="admin"] .admin-account-table[data-density="comfortable"] .table th{padding:14px 12px!important;line-height:1.65}
.app-shell[data-role="admin"] .admin-account-table[data-density="compact"] .table td,.app-shell[data-role="admin"] .admin-account-table[data-density="compact"] .table th{padding:8px 12px!important;line-height:1.45}.admin-account-table[data-density="compact"] .account-state-stack{gap:3px;margin-top:5px}
.app-shell[data-role="admin"] .admin-account-table[data-visible-columns="4"] table{min-width:740px!important}.app-shell[data-role="admin"] .admin-account-table[data-visible-columns="3"] table{min-width:600px!important}.app-shell[data-role="admin"] .admin-account-table[data-visible-columns="2"] table{min-width:460px!important}
.wallet-customer-link{background:transparent;padding:4px 0;text-align:left;font:inherit;font-weight:600;color:var(--green);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.wallet-ledger td>small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.wallet-customer-summary{margin:0;display:grid;gap:12px}.wallet-customer-summary>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--line);padding-bottom:12px}.wallet-customer-summary dt{font-size:13px;color:var(--muted)}.wallet-customer-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere}
@media(max-width:900px){.admin-table-settings{display:none}.panel-read-warning{align-items:flex-start;flex-direction:column}.panel-read-warning .button,.wallet-customer-link{min-height:44px}.wallet-customer-summary>div{grid-template-columns:80px minmax(0,1fr)}}
@media(max-width:900px) and (prefers-color-scheme:dark){.panel-read-warning{background:#302719;border-color:#756036;color:#f1d597}#admin-wallet-customer,#admin-wallet-customer .form-actions{background:#1b2320;color:#e8efe9}#admin-wallet-customer dt{color:#adbbb2}#admin-wallet-customer .button{background:#26392e;color:#e8efe9}#admin-wallet-customer .button.primary{background:#197653;color:#fff}}


.user-dashboard .ur-balance-placeholder{font-size:22px;color:var(--muted)}
.user-dashboard .ur-balance-feedback{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--muted);max-width:42ch}
.user-dashboard .ur-next-action{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin:12px 0;background:#f0f6f1;border:1px solid #d7e7db;border-radius:12px;font-size:13px}
.user-dashboard .ur-next-action>div{display:grid;gap:5px}.user-dashboard .ur-next-action span{color:var(--muted);line-height:1.7}
.user-dashboard .user-setup-summary{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.user-dashboard .user-setup-summary dl{margin:0;display:grid;gap:12px}.user-dashboard .user-setup-summary dl>div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px}.user-dashboard .user-setup-summary dt{font-size:12px;color:var(--muted)}.user-dashboard .user-setup-summary dd{margin:0;font-size:13px;overflow-wrap:anywhere}
.user-dashboard #user-setup-details>summary{padding:16px 18px;cursor:pointer;border:1px solid var(--line);border-radius:12px;background:#f7faf7;color:var(--ink);font-size:14px;font-weight:700}
.user-dashboard .user-setup-fields{display:grid;gap:18px;margin-top:16px}
.user-dashboard #ur-card,.user-dashboard #ur-profile-card,.user-dashboard #ur-acct-card,.user-dashboard #user-account-list,.user-dashboard #ua-face{scroll-margin-top:100px}
.user-dashboard .ur-next-action .button{flex-shrink:0;min-height:44px}
.app-shell[data-role="user"] .schedule-preview{margin-top:18px;padding:12px 14px;background:#f0f6f1;border:1px solid #d7e7db;border-radius:10px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:760px){.user-dashboard .ur-next-action{align-items:stretch;flex-direction:column}.user-dashboard .ur-next-action .button{width:100%}.user-dashboard .ur-steps{gap:8px;flex-wrap:wrap}.user-dashboard .ur-step{flex:1 1 140px}.user-dashboard .ur-step-line{display:none}.user-dashboard .user-setup-summary dl>div{grid-template-columns:68px minmax(0,1fr)}}
@media(max-width:900px) and (prefers-color-scheme:dark){.user-dashboard .user-setup-summary,.user-dashboard #user-setup-details>summary{background:#1b2320;color:#e8efe9}.user-dashboard .ur-next-action,.app-shell[data-role="user"] .schedule-preview{background:#20362a;border-color:#476a53;color:#e8efe9}.user-dashboard .ur-next-action span,.user-dashboard .user-setup-summary dt{color:#adbbb2}}


/* Role review: scoped fixes, shared theme and readable records. */
.detail-photo{display:flex;align-items:center;gap:8px}
.customer-detail-block{border-top:1px solid var(--line);padding:16px 0}
.customer-detail-block h4{margin:0 0 10px}.customer-detail-block p{overflow-wrap:anywhere}
.customer-account-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}
.user-history-orders>summary{cursor:pointer;font-weight:700;padding:4px 0}
.user-history-body{padding-top:14px}.user-history-body .section-head h3{display:none}
.ops-responsive,.ops-card{--ops-surface:#fff;--ops-ink:var(--ink)}
body .ops-card .metric{background:var(--ops-surface);color:var(--ops-ink)}
body .ops-responsive .table td,body .ops-responsive .table th{background:var(--ops-surface);color:var(--ops-ink)}
@media(prefers-color-scheme:dark){
 .ops-responsive,.ops-card{--ops-surface:#1b2320;--ops-ink:#e8efe9}
 body .ops-card .metric b{color:var(--ops-ink)!important}
 #ops-detail .modal,#admin-wallet-customer{background:#1b2320;color:#e8efe9}
}
@media(max-width:900px){
 body .ops-card{padding:16px}
 body .ops-card>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body .ops-card .metric{min-width:0;padding:12px}
 body .ops-card .metric b{font-size:24px}
 body .ops-card .table-tools{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 body .ops-card .table-tools input{width:100%;min-width:0}
 body .ops-card .table-tools>.row-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px}
 body .ops-card .table-tools .button{width:auto!important;flex:0 0 auto!important;min-height:36px;padding:8px 12px}
 body .ops-responsive{overflow:visible;mask-image:none;-webkit-mask-image:none;border:0;min-width:0;width:100%}
 body .ops-responsive .table{display:block;min-width:0!important;width:100%!important;table-layout:auto}
 body .ops-responsive .table thead{display:none}
 body .ops-responsive .table tbody{display:grid;gap:12px;width:100%}
 body .ops-responsive .table tr{display:block;width:100%;margin:0;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--ops-surface)}
 body .ops-responsive .table td{display:grid;grid-template-columns:minmax(64px,28%) minmax(0,1fr);gap:10px;width:100%!important;min-width:0!important;position:static!important;padding:7px 0;border:0;white-space:normal!important;overflow:visible;text-align:left!important;box-shadow:none!important;overflow-wrap:anywhere;background:var(--ops-surface)!important;color:var(--ops-ink)}
 body .ops-responsive .table td:before{content:attr(data-mlabel);display:block!important;position:static;width:auto;color:var(--muted);font-size:12px;font-weight:500}
 body .ops-responsive .table td>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .one-click-bar .row-actions{width:100%;display:grid;grid-template-columns:1fr}.one-click-bar .button{width:100%;min-height:44px}
}


/* ═══════════════════════════════════════════════════════════
   移动端触控目标（_touch44_v1）
   ═══════════════════════════════════════════════════════════
   实测问题：
     「立即注册」   高度 22px
     「已有账号登录」 高度 22px
     「复制联系人」   高度 34px
   都低于 Apple HIG / Material Design 建议的 44px 最小触控目标，
   手指容易点不中（尤其小屏手机）。

   放在文件末尾 = 优先级最高，覆盖前面所有同名规则。
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  /* 登录页的切换链接 */
  .auth-link,
  .auth-switch a,
  .auth-switch button,
  .auth-tab,
  [data-auth-mode],
  [data-auth-toggle] {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 6px !important;
  }

  /* 复制类按钮 */
  [data-copy-contact],
  [data-copy],
  [data-copy-wechat],
  .copy-btn,
  button[data-copy],
  .contact-copy {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
  }

  /* 纯文字链接按钮 */
  a.link,
  button.link,
  .text-link,
  .brand-link {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 2px !important;
  }

  /* 底部导航 / 页脚小链接 */
  footer a,
  .footer a,
  .site-footer a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}


/* ===== 移动端可点目标尺寸（_tap_target_v1） =====
   实测 iPhone 375px 下，面板登录页的「忘记密码？」h=21、
   「立即注册」h=21，低于 Apple HIG 的 44px 建议值，手指容易点空。
   ------------------------------------------------------ */
@media (max-width: 767px) {
  .home-auth-inline,
  .home-auth-inline:link,
  .home-auth-inline:visited,
  .forgot-password,
  a.forgot-password,
  .brand-link,
  .text-link,
  button.button-outline,
  .button.button-outline,
  a[href="/panel/?register=1"],
  .login-links a,
  .reg-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  a.visual-next {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  footer a, .footer a, .site-footer a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* ===== 注册页隐私政策复选框（_reg_agree_css） ===== */
.reg-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 23, 38, .12);
  border-radius: 10px;
  background: rgba(11, 23, 38, .02);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.reg-agree input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #19734d;
  cursor: pointer;
}
.reg-agree a {
  color: #19734d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reg-agree a:hover { opacity: .8; }
@media (max-width: 767px) {
  .reg-agree { min-height: 44px; align-items: center; }
}

/* ===== 手机端排版修（_mobile_layout_fix_v1） =====
   实测 390px 宽（iPhone 12/13/14）下有两处问题：

   ① 首页「总览」的卡片网格溢出错位
      .hs-grid 里的 .hs-card 宽 360px，但容器可用 ~358px，
      右边超出 9px（right=399 vs vw=390）

   ② 执行进度页的任务标题被截成省略号
      .job-card-title 里的文字 274px 缩到 189px，加上
      ellipsis/nowrap → 用户看不到完整任务名
   ------------------------------------------------------ */
@media (max-width: 767px) {
  /* ① 卡片网格改成单列，宽度跟着容器走 */
  .hs-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hs-card,
  .hs-grid > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ② 任务标题允许换行，不再省略 */
  .job-card-title {
    min-width: 0;
  }
  .job-card-title b,
  .job-card-title small,
  .job-card-title span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  /* 通用兜底：所有网格在小屏都单列 */
  .grid,
  .status-grid,
  .growth-grid,
  .service-grid,
  .school-picker {
    grid-template-columns: 1fr !important;
  }
  /* 卡片不许超出容器 */
  .card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* 表格容器允许横向滚动（不是溢出） */
  .table-wrap,
  .table-responsive {
    overflow-x: auto !important;
    max-width: 100% !important;
  }
}

/* Audit clarity: existing surfaces share an explicit foreground/background pair. */
:root{--audit-surface:#fff;--audit-ink:#102219;--audit-muted:#66756c;--audit-attention-bg:#fdf4e3;--audit-attention-ink:#714b13;--audit-attention-border:#d5b77d}
.app-shell .metric,.app-shell .mk-card{background:var(--audit-surface);color:var(--audit-ink)}
.app-shell .metric b,.app-shell .mk-card .n{color:var(--audit-ink)}
.app-shell .metric span,.app-shell .growth-metric small,.app-shell .mk-card .l,.app-shell .mk-card .p{color:var(--audit-muted)}
.app-shell .home-command,.app-shell .hs-todo,.app-shell .attention-item{background:var(--audit-attention-bg);color:var(--audit-attention-ink);border-color:var(--audit-attention-border)}
.app-shell .home-command h3,.app-shell .home-command-label,.app-shell .home-command p,.app-shell .hs-todo b,.app-shell .hs-todo span,.app-shell .hs-todo small,.app-shell .attention-item strong,.app-shell .attention-item small{color:var(--audit-attention-ink)}
.admin-disclosure{margin:16px 0;border:1px solid var(--line);border-radius:12px;background:var(--audit-surface);color:var(--audit-ink)}
.admin-disclosure>summary{padding:12px 16px;min-height:44px;cursor:pointer;font-weight:700;color:var(--ink)}
.admin-disclosure[open]>summary{border-bottom:1px solid var(--line)}
.admin-disclosure>.sub{padding:0 16px}
.admin-disclosure>.card,.admin-disclosure>.hs-grid{margin:12px}
.admin-disclosure.danger-disclosure{border-color:var(--audit-attention-border)}
.danger-disclosure>summary{color:var(--audit-attention-ink);background:var(--audit-attention-bg);border-radius:12px}
.reconciliation-reference{overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
.reconciliation-attestation{display:flex;gap:8px;align-items:flex-start;margin:16px 0;font-weight:600}
.reconciliation-attestation input{flex:0 0 auto;margin-top:6px;width:18px;height:18px;accent-color:var(--green)}
.panel-dialog .field+.field{margin-top:12px}
.reconciliation-table td{overflow-wrap:anywhere;max-width:300px}
.mileage-reconciliation .section-head{align-items:flex-start}
.app-shell :is(button,a,input,select,textarea,summary):focus-visible,.panel-dialog :is(button,input,select,textarea):focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:900px) and (prefers-color-scheme:dark){
 :root{--audit-surface:#1b2320;--audit-ink:#e8efe9;--audit-muted:#adbbb2;--audit-attention-bg:#302719;--audit-attention-ink:#f1d597;--audit-attention-border:#756036;--bg:#141a16;--panel:#1b2320;--green2:#244e3a;--c-bg:#141a16;--c-card:#1b2320;--c-muted:#adbbb2;--c-ink:#e8efe9}
 .app-shell .hs-stock-item,.app-shell .hs-kv>div,.app-shell .account-health-item,.app-shell .growth-funnel{background:var(--audit-surface);color:var(--audit-ink);border-color:var(--line)}
 .app-shell .hs-stock-item b,.app-shell .hs-stock-item em,.app-shell .hs-kv b{color:var(--audit-ink)}
 .app-shell .hs-stock-item span,.app-shell .hs-kv span,.app-shell .route-help{color:var(--audit-muted)}
 .app-shell .hs-stock-item.is-low{background:var(--audit-attention-bg);border-color:var(--audit-attention-border)}
 .app-shell .hs-stock-item.is-low small{color:var(--audit-attention-ink)}
 .app-shell .hs-ok{color:#a7e3c4}
 .app-shell .job-card-phase{white-space:normal;overflow-wrap:anywhere}
 .app-shell .metric b,.app-shell .mk-card .n{color:var(--audit-ink)!important}
 .panel-dialog .notice.err{color:#ffcbc5;background:#472a28}
 .app-shell[data-role="user"] .ur-steps,.app-shell[data-role="user"] .user-run-tools,.app-shell[data-role="user"] .table-wrap{background:var(--audit-surface);color:var(--audit-ink);border-color:var(--line)}
 .app-shell[data-role="user"] .ur-step-body b,.app-shell[data-role="user"] .user-run-tools strong{color:var(--audit-ink)}
 .app-shell[data-role="user"] .ur-step-body span,.app-shell[data-role="user"] .user-run-tools span{color:var(--audit-muted)}
}
@media(prefers-reduced-motion:reduce){.app-shell .metric,.app-shell .hs-todo,.app-shell .home-command,.app-shell .log-live-dot{animation:none!important;transition:none!important}}

/* ===== 余额分模式展示（_km_split_v1） =====
   刷脸卡（¥0.50/km）和不刷脸卡（¥0.25/km）价格与用途不同，
   余额分开显示，用户一眼能看出各有多少。
   ------------------------------------------ */
.ur-km-split {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.ur-km-split .ur-km-item {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.ur-km-split .ur-km-item b {
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ur-km-split .ur-km-item small {
  margin-left: 3px;
  font-size: 0.5em;
  font-weight: 500;
  opacity: .72;
}
/* 两个数字之间加一条细竖线，区分两种里程 */
.ur-km-split .ur-km-item + .ur-km-item {
  padding-left: 18px;
  border-left: 1px solid currentColor;
  border-left-color: rgba(127, 127, 127, .3);
}
@media (max-width: 560px) {
  .ur-km-split { gap: 10px; }
  .ur-km-split .ur-km-item + .ur-km-item { padding-left: 10px; }
  .ur-km-split .ur-km-item b { font-size: 1.25em; }
}

/* ===== 面板：两个独立余额区块（_two_blocks_panel_css_v1） =====
   刷脸里程和不刷脸里程各自一块卡片，
   价格不同（¥0.50 vs ¥0.25）且不能互相抵，所以要分清。
   ------------------------------------------------------------ */
.ur-km-blocks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}
.ur-km-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 152px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
}
.ur-km-block-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .82;
}
.ur-km-block-value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ur-km-block-value i {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  opacity: .62;
  margin-left: 2px;
}
.ur-km-block-hint {
  font-size: 11px;
  opacity: .52;
}
/* 余额为 0 的那块弱化，但保留 —— 让用户知道有这一类 */
.ur-km-block.is-empty { opacity: .6; }
.ur-km-block.is-empty .ur-km-block-value { font-weight: 700; }

@media (max-width: 760px) {
  .ur-km-blocks { gap: 10px; width: 100%; }
  .ur-km-block {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .ur-km-block-value { font-size: 26px; }
  .ur-km-block-hint { font-size: 10px; }
}
@media (max-width: 420px) {
  .ur-km-blocks { flex-direction: column; }
  .ur-km-block { width: 100%; }
}

/* ===== 轨迹来源标记（_track_kind_css_v1） =====
   轨迹目录里混着两类文件：
     edited_*.json    我编辑的（在轨迹编辑器里画的/保存的）
     tasklist_*.json  抓包的（从客户端历史记录抓来的）
   用徽章区分，并标出执行时会用哪一条。
   ------------------------------------------------ */
.te-kind-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}
/* 我编辑的 —— 主色高亮（这是执行时优先采用的） */
.te-kind-badge.is-edited {
  background: rgba(25, 115, 77, .14);
  color: #17614c;
  border: 1px solid rgba(25, 115, 77, .35);
}
/* 抓包的 —— 灰色弱化 */
.te-kind-badge.is-captured {
  background: rgba(120, 120, 120, .12);
  color: #6b7280;
  border: 1px solid rgba(120, 120, 120, .28);
}

/* 执行时会用哪一条 */
.te-autopick {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(25, 115, 77, .07);
  border: 1px solid rgba(25, 115, 77, .22);
  font-size: 12.5px;
  line-height: 1.7;
}
.te-autopick b {
  font-weight: 700;
  word-break: break-all;
}
.te-autopick.is-warn {
  background: rgba(200, 120, 0, .08);
  border-color: rgba(200, 120, 0, .28);
  color: #8a5a00;
}

@media (max-width: 760px) {
  .te-autopick {
    font-size: 12px;
    padding: 7px 10px;
  }
  .te-kind-badge {
    font-size: 10.5px;
    padding: 1px 6px;
  }
}

/* ===== 用户端引导 + 诊断（_ux_v1）===== */
.ur-onb-mask{position:fixed;inset:0;background:rgba(16,28,24,.55);z-index:9998;
  display:flex;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(2px)}
.ur-onb-box{background:#fff;border-radius:16px;max-width:520px;width:100%;
  max-height:86vh;overflow:auto;padding:24px 24px 18px;
  box-shadow:0 24px 60px rgba(0,0,0,.24)}
.ur-onb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ur-onb-head h3{margin:0;font-size:20px;line-height:1.3;color:#0f2e26}
.ur-onb-x{border:0;background:transparent;font-size:26px;line-height:1;
  color:#7c8a86;cursor:pointer;padding:0 4px}
.ur-onb-lead{margin:10px 0 16px;color:#5b6b66;font-size:13.5px;line-height:1.65}
.ur-onb-steps{display:flex;flex-direction:column;gap:12px}
.ur-onb-step{display:flex;gap:12px;align-items:flex-start}
.ur-onb-step i{flex:0 0 26px;height:26px;border-radius:50%;background:#0f2e26;color:#fff;
  font-style:normal;font-weight:700;font-size:13px;display:flex;align-items:center;
  justify-content:center;margin-top:1px}
.ur-onb-step b{display:block;font-size:14px;color:#12261f;margin-bottom:2px}
.ur-onb-step span{display:block;font-size:12.5px;color:#63736e;line-height:1.6}
.ur-onb-tip{margin-top:16px;padding:10px 12px;border-radius:10px;background:#f3f7f5;
  color:#4c5f59;font-size:12.5px;line-height:1.6}
.ur-onb-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}

.ur-diag{margin:0 0 18px;border-radius:12px;background:#f6f8f7;
  border:1px solid #e2e8e5;padding:12px 14px}
.ur-diag.bad{background:#fff6f4;border-color:#f3cfc7}
.ur-diag-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ur-diag-badge{font-size:11.5px;font-weight:700;letter-spacing:.02em;color:#b4361a;
  background:#fde4dd;border-radius:999px;padding:2px 9px}
.ur-diag-ok{font-size:12.5px;color:#5f6f6a}
.ur-diag-row b{font-size:14px;color:#1a2f28}
.ur-diag-time{font-size:12px;color:#7b8a85}
.ur-diag-spacer{flex:1 1 auto}
.ur-diag-msg{margin:8px 0 0;font-size:12.5px;color:#8a3b24;line-height:1.6;
  word-break:break-word}
.ur-diag-hint{margin:8px 0 0;font-size:12px;color:#798783;line-height:1.6}

.ur-ux-toast{position:fixed;left:50%;bottom:36px;transform:translate(-50%,14px);
  background:#12302a;color:#fff;font-size:13px;padding:10px 18px;border-radius:999px;
  opacity:0;pointer-events:none;transition:.22s;z-index:9999;max-width:86vw;text-align:center}
.ur-ux-toast.show{opacity:1;transform:translate(-50%,0)}
.ur-ux-toast.bad{background:#8d2a14}

/* ===== 圈数提示（_lap_hint_v1）===== */
.lap-hint{margin:6px 0 0;font-size:12.5px;line-height:1.6;color:#5f6f6a}
.lap-hint b{color:#12261f}

/* ===== 使用引导悬浮按钮（_guide_v2）===== */
.ur-guide-fab{position:fixed;right:22px;bottom:22px;z-index:9000;
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 17px;border:0;border-radius:999px;cursor:pointer;
  background:#12302a;color:#fff;font-size:13.5px;font-weight:600;
  box-shadow:0 10px 26px rgba(10,40,33,.28);transition:.18s}
.ur-guide-fab:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(10,40,33,.34)}
.ur-guide-fab-ico{display:inline-flex;align-items:center;justify-content:center;
  width:19px;height:19px;border-radius:50%;background:#c8f169;color:#12302a;
  font-size:12.5px;font-weight:800;line-height:1}
@media (max-width:640px){
  .ur-guide-fab{right:14px;bottom:14px;padding:10px 14px;font-size:12.5px}
}

.app-shell .topbar-copy h1 { letter-spacing: -.026em; line-height: 1.2; }
.app-shell .sidebar .nav button[aria-current="page"] {
  border-color: #92bc9d;
  background: #28513c;
  color: #f6fcf7;
  box-shadow: inset 3px 0 #b8dbc0;
}
.app-shell #view > .card { border-radius: 15px; }
.app-shell #view :is(button, input, select, a):focus-visible {
  outline: 2px solid var(--panel-focus, #27724b);
  outline-offset: 3px;
}
@media (min-width: 901px), (prefers-color-scheme: light) {
  .app-shell .workspace { background: #f2f5f2; }
  .app-shell .page-toolbar { border-bottom: 1px solid #dce5dd; color: #162d21; }
  .app-shell .topbar-copy .topbar-sub,
  .app-shell #view .section-head .sub { color: #4d6254; }
  .app-shell #view > .card { border-color: #dbe5dc; box-shadow: 0 6px 20px #203c2b08; }
  .app-shell #view .table-tools { border-color: #d5e1d6; background: #f4f8f4; }
  .app-shell #view .table th { color: #334e3e; }
  .app-shell #view [data-audit-results] > .empty { color: #435a4b; }
  .app-shell #view [data-audit-results] > .empty small { color: #556a5b; }
  .app-shell #view .notice.err { border-color: #e5bcb4; }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) {
  .app-shell { --panel-focus: #98d3ad; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell #view[data-motion-ready="1"] { animation: none; }
  .app-shell .sidebar { transition: none; }
}

/* _cardnet_a7ui 运营看板 */
.hs-ops{margin:12px 0}
.hs-alertbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}
.hs-alertbar.is-clear{color:var(--muted);font-size:12px}
.hs-alert{border:1px solid var(--line);border-radius:999px;padding:5px 12px;
  font-size:12px;font-weight:700;background:#fff;color:var(--ink);cursor:pointer}
.hs-alert.is-warn{border-color:#e7c98a;background:#fff8e9;color:#8a6318}
.hs-alert.is-err{border-color:#efbcbc;background:#fff1f1;color:#a13333}
.hs-alert.is-info{border-color:#b9d7eb;background:#eef6fc;color:#2a5670}
.hs-ops-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px}
.hs-mx{width:100%;border-collapse:collapse;font-size:12px}
.hs-mx th,.hs-mx td{border:1px solid var(--line);padding:6px 9px;text-align:center}
.hs-mx thead th{background:#f7f9f8;font-weight:700}
.hs-mx tbody th{background:#fbfdfb;font-weight:700;text-align:left}
.hs-mx-cell.is-low{background:#fff1f1;color:#a13333;font-weight:700}
.hs-mx-cell small{display:block;font-size:10px;font-weight:400;color:#a13333}
.hs-mx-empty{color:var(--muted)}
.hs-ops-kv{display:flex;justify-content:space-between;gap:10px;padding:8px 0;
  border-bottom:1px solid var(--line);font-size:12px}
.hs-ops-kv b{font-weight:700;text-align:right}
.hs-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
@media(max-width:900px){.hs-ops-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.hs-alert{transition:none!important;animation:none!important}}

/* _fab_avoid_v1：移动端 FAB 原坐标 (269,786) 正好压在
   #user-onboarding (y=657,h=423) 的第 2/3 步文字上。
   窄屏把 FAB 改成贴底细条，并给引导卡留右内边距。 */
.ur-diag-host { margin: 0 0 12px; }
.home-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 767px) {
  #user-onboarding { padding-right: 6px; }
  #ur-guide-fab.ur-guide-fab {
    position: fixed; right: 12px; bottom: 12px; left: auto; top: auto;
    width: auto; height: 36px; padding: 0 14px; border-radius: 18px;
    font-size: 12.5px; box-shadow: 0 4px 14px rgba(16,34,25,.18);
    opacity: .92;
  }
  #ur-guide-fab.ur-guide-fab:hover { opacity: 1; }
  .home-actions { gap: 6px; }
}
