/* 综合运营岗「今天的事」（web/ops_home.js；预览：设计总纲/综合运营岗_改前改后预览_20261109）。
   总纲：字阶 13/16/20（问候 40）、字重 400/600、间距 4 的倍数、圆角 8/12/999、点击区 桌面≥32 触屏≥44、一个强调色（品牌蓝）、语义色只做小胶囊；一屏只有一个主动作（结论带里的主按钮）。
   ★ 每条规则都以 html.sh-on 开头：这一页只在新外壳 + 综合运营岗里出现，壳关（?shell=0）必须与旧页零差异（tests/test_ops_home_css_scoping.py 锁死）。
   挂在 #ovApp 里（总览所在容器），按钮/标题/表格的全局规则要靠 #ovApp 前缀压住。颜色全取 .ov 上的令牌（--ink/--ink2/--blue/--blue-soft/--warn/--warn-bg/--ok/--ok-bg/--line/--surface）。 */
html.sh-on .oh{--bg2:#f4f6f9}
html.sh-on .oh *{box-sizing:border-box}
html.sh-on .oh :where(h1,h2,p,ol,ul){margin:0;padding:0}
html.sh-on .oh :where(ol,ul){list-style:none}

/* 结论带 + 今天要办（一屏一个主动作 = .oh-btn.primary） */
html.sh-on .oh-today[hidden],html.sh-on .oh-region[hidden]{display:none}
html.sh-on .oh-concl{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0 0 4px}
html.sh-on #ovApp .oh-concl h2{margin:0;font-size:20px;line-height:28px;font-weight:600}
html.sh-on #ovApp .oh-concl h2 b{font-weight:600}
html.sh-on .oh-sums{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
html.sh-on #ovApp .oh-sum{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
html.sh-on #ovApp .oh-sum b{font-size:16px;font-weight:600}
html.sh-on #ovApp .oh-sum.hot b{color:#c2410c}
html.sh-on #ovApp .oh-sum:hover{border-color:var(--ink)}
html.sh-on .oh-stat .oh-v.hot{color:#c2410c}   /* 暖橙：20px/600 不算大字，要 ≥4.5:1（#ff7a1a=2.3、#e8590c=3.1 都不够；#c2410c≈4.5）；只给「要尽快」「逾期欠费」这两个数 */
html.sh-on #ovApp .oh-btn.primary{border-color:var(--blue);background:var(--blue);color:#fff;min-height:44px;padding:0 16px;font-size:16px;line-height:24px}
html.sh-on #ovApp .oh-btn.primary:hover{filter:brightness(.92)}
html.sh-on .oh-today .oh-picks{margin-top:12px}
html.sh-on .oh-today .oh-fold{margin-top:8px}
html.sh-on .oh-when{flex:none;padding:0 8px;border-radius:999px;background:var(--bg2);font-size:13px;line-height:20px;font-weight:600;color:var(--ink2);white-space:nowrap}
html.sh-on .oh-when.hot{background:var(--warn-bg);color:var(--warn)}
/* 一级区域：行政与人事 / 招商与运营 */
html.sh-on .oh-region{margin:24px 0 0}
html.sh-on #ovApp .oh-region-h{margin:0 0 12px;font-size:20px;line-height:28px;font-weight:600}
html.sh-on .oh-blocks{display:flex;flex-wrap:wrap;gap:16px}
html.sh-on .oh-blocks>.oh-area{flex:1 1 360px;margin:0}
html.sh-on .oh-blocks>.oh-area.wide{flex-basis:100%}
html.sh-on #ovApp .oh-area-h h3{margin:0;font-size:16px;line-height:24px;font-weight:600}

/* 今天先办（旧名，仍给结论带内部用） */
html.sh-on .oh-band{margin:16px 0 0;padding:16px;border-radius:12px;background:var(--blue-soft)}
html.sh-on .oh-band.ok{background:var(--ok-bg)}
html.sh-on .oh-dim{font-size:13px;line-height:20px;color:var(--ink2);overflow-wrap:anywhere}
html.sh-on .oh-picks{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}   /* 网格列默认 min-content：胶囊 nowrap 后会把整列撑出右缘，列宽要能收缩（手机端 UI ⑤） */
html.sh-on #ovApp .oh-pick{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:16px;line-height:24px;text-align:left;cursor:pointer}
html.sh-on #ovApp .oh-pick:hover{border-color:#b6cdea}
html.sh-on .oh-n{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:var(--ink);color:#fff;font-size:13px;line-height:20px;font-weight:600}
html.sh-on .oh-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
html.sh-on .oh-main b{font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}
html.sh-on .oh-tag{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;font-size:13px;line-height:20px;font-weight:600}
html.sh-on .oh-tag.warn{color:var(--warn);background:var(--warn-bg);border:1px solid #fedf89}
html.sh-on .oh-tag.info{color:var(--ink2);background:#eef1f5;border:1px solid var(--line)}

/* 区块 */
html.sh-on .oh-area{margin:16px 0 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
html.sh-on .oh-area[hidden]{display:none}
html.sh-on .oh-area-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
html.sh-on .oh-sub{margin:12px 0 8px;font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .oh-sub:first-of-type{margin-top:0}
html.sh-on .oh-sub b{color:var(--ink);font-weight:600}
html.sh-on .oh-date{font-family:-apple-system,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-variant-numeric:tabular-nums}   /* 日期 2026-11-02：数字和 ASCII 连字符用拉丁字体（PingFang SC 的连字符偏宽，看着像长横线） */
html.sh-on .oh-ok{margin:8px 0 0;font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .oh-note{margin:12px 0 0;font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .oh-more{margin:8px 0 0}

/* 按钮 */
html.sh-on #ovApp .oh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 12px;border:1px solid var(--blue);border-radius:8px;background:transparent;color:var(--blue);font-size:13px;line-height:20px;font-weight:600;cursor:pointer}
html.sh-on #ovApp .oh-btn:hover{background:var(--blue-soft)}
html.sh-on #ovApp .oh-link{min-height:32px;padding:0;border:0;background:transparent;color:var(--blue);font-size:13px;line-height:20px;text-align:left;cursor:pointer}
html.sh-on #ovApp .oh-link:hover{text-decoration:underline}

/* 会议事项列表 */
html.sh-on .oh-list{display:block}
html.sh-on .oh-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
html.sh-on .oh-row:first-child{border-top:0}
html.sh-on .oh-t{font-size:16px;line-height:24px;overflow-wrap:anywhere}
html.sh-on .oh-end{flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:45%}
html.sh-on .oh-pill{display:inline-block;padding:0 8px;border:1px solid transparent;border-radius:999px;font-size:13px;line-height:20px;font-weight:600;white-space:nowrap}
html.sh-on .oh-pill.warn{background:var(--warn-bg);color:var(--warn);border-color:#fedf89}
html.sh-on .oh-pill.co{background:var(--blue-soft);color:var(--blue);border-color:#b6cdea}
html.sh-on #ovApp .oh-stale{min-height:32px;padding:0 8px;border:1px dashed var(--warn);border-radius:8px;background:var(--warn-bg);color:var(--warn);font-size:13px;line-height:20px;cursor:pointer}
html.sh-on #ovApp .oh-fold{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:12px 0 0;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg2);color:var(--ink);font-size:13px;line-height:20px;text-align:left;cursor:pointer}
html.sh-on #ovApp .oh-fold .oh-ico{transition:transform .25s cubic-bezier(.2,0,0,1)}
html.sh-on #ovApp .oh-fold[aria-expanded="true"] .oh-ico{transform:rotate(180deg)}
html.sh-on .oh-earlier{margin-top:8px}
html.sh-on .oh-ico{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* 合同 / 总部基地 */
html.sh-on .oh-stat{display:flex;align-items:baseline;gap:12px;margin:0 0 12px}
html.sh-on .oh-k{font-size:13px;line-height:20px;color:var(--ink2)}
html.sh-on .oh-v{font-size:20px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums}
html.sh-on .oh-v2,html.sh-on .oh-v2b{font-size:16px;line-height:24px;font-weight:600;font-variant-numeric:tabular-nums}
html.sh-on .oh-v2.plain{font-weight:400}
html.sh-on .oh-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
html.sh-on .oh-chip{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--bg2);font-size:13px;line-height:20px}
html.sh-on .oh-chip b{font-weight:600}
html.sh-on .oh-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;padding:8px 0;border-top:1px solid var(--line)}
html.sh-on .oh-line.warn .oh-v2{color:var(--warn)}
html.sh-on .oh-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.sh-on .oh-facts>div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px;border-radius:8px;background:var(--bg2)}
html.sh-on .oh-todo{display:inline-block;padding:0 8px;border:1px dashed var(--ink2);border-radius:999px;font-size:13px;line-height:20px;font-weight:600;color:var(--ink2);background:var(--surface)}   /* 「待录入」：虚线空胶囊，一眼和真数字分开，不写成 0 / 满租 */

/* 部分读取失败提示 */
html.sh-on .oh-partial{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin:8px 0 0;padding:12px;border-radius:8px;background:var(--warn-bg);color:var(--ink);font-size:13px;line-height:20px}


/* 园区概况（折叠，里面是原来的五张卡） */
html.sh-on .oh-park{padding:0;border:0;background:transparent}
html.sh-on #ovApp .oh-fold-big{margin:0;min-height:48px;background:var(--surface);font-size:16px;line-height:24px;font-weight:600}
html.sh-on #ovApp #ohParkBody{margin-top:16px}
html.sh-on .oh-fold-d{margin-left:auto;font-weight:400}
html.sh-on .oh .ov-embed{max-width:none;padding:0}   /* 嵌在折叠区里的原值守台：不再自带页边距（外面 .oh 已给） */
html.sh-on .oh .ov-embed .ov-head{margin-bottom:16px}

/* 四态：加载 / 空 / 出错（没权限 = 整块不出现，不写「没有权限查看」） */
html.sh-on .oh-skel i{display:block;height:20px;margin:12px 0;border-radius:8px;background:linear-gradient(90deg,#eef1f5,#e4e7ec,#eef1f5)}
html.sh-on .oh-skel i:first-child{margin-top:0}
html.sh-on .oh-empty{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border-radius:8px;background:var(--bg2);color:var(--ink2);font-size:13px;line-height:20px}
html.sh-on .oh-empty b{font-size:16px;line-height:24px;font-weight:600;color:var(--ink)}
html.sh-on .oh-empty .oh-btn{margin-top:8px}

@media (max-width:900px){
  html.sh-on #ovApp .oh-pick{min-height:64px}
  html.sh-on .oh-fold-d{display:none}
  html.sh-on #ovApp .oh-btn.primary{width:100%}
  html.sh-on #ovApp .oh-sum{min-height:44px}
  html.sh-on .oh-row{flex-wrap:wrap}
  html.sh-on .oh-end{max-width:none;width:100%;justify-content:flex-start}
  html.sh-on #ovApp .oh-btn,html.sh-on #ovApp .oh-link,html.sh-on #ovApp .oh-stale{min-height:44px}
  html.sh-on .oh-facts{gap:8px}
  html.sh-on .oh-facts>div{padding:8px}
}
@media (prefers-reduced-motion:reduce){html.sh-on .oh *{transition:none!important;animation:none!important}}

/* ===== 手机端（§3C，11/14 本地起草，zc-fast）：今天要办 ===== */
@media (max-width:900px){
  /* 取消外层白卡边框与内边距，让蓝底结论块直接成为页面顶部 */
  html.sh-on .oh-area{margin:0;padding:0;border:0;border-radius:0}
  html.sh-on .oh-band{margin:0 0 16px;border-radius:12px}

  /* 结论块内分类按钮：改为 2 列网格，每格等宽，文字允许换行 */
  html.sh-on .oh-sums{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 0}
  html.sh-on #ovApp .oh-sum{min-height:44px;padding:0 12px;font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere;text-align:left}
  html.sh-on #ovApp .oh-sum b{font-size:16px;font-weight:600} /* number sits right via space-between below */

  /* 块标题行右侧按钮：nowrap，点击区 44 */
  html.sh-on #ovApp .oh-area-h .oh-btn,html.sh-on #ovApp .oh-area-h .oh-link{white-space:nowrap;min-height:44px;padding:0 12px}

  /* 列表行布局：右侧按钮不被压窄，块间距 16 */
  html.sh-on .oh-today .oh-fold{margin-top:16px}
  html.sh-on .oh-row{flex-wrap:nowrap;gap:8px}
  html.sh-on .oh-end{flex:none;max-width:none;width:auto;justify-content:flex-end}
  html.sh-on #ovApp .oh-btn{min-height:44px;padding:0 12px;white-space:nowrap}
  /* hand fixes: today-card has its own border (card inside card); sum count never wraps; the long dynamic main-button label wraps instead of being cut */
  html.sh-on #ovApp section.oh-today{border:0;padding:0;background:transparent;border-radius:0;box-shadow:none}
  html.sh-on #ovApp .oh-sum b{flex:none;white-space:nowrap}
  html.sh-on #ovApp .oh-sum{justify-content:space-between}
  html.sh-on #ovApp .oh-link{min-width:44px;justify-content:center}
  html.sh-on #ovApp .oh-band .oh-btn.primary{margin-top:12px;display:flex;align-items:center;justify-content:center;width:100%;height:auto;white-space:normal;padding:8px 12px;line-height:24px;text-align:center}
}

/* ===== 手机端第二轮（11/14 线上规模）：结论带只留 2 个关键数（总纲 §3C.2「≤2 个关键数」）；其余类别已在下面的列表 / 「还有 N 件」里，点击即达；桌面不变 ===== */
@media (max-width:900px){
  html.sh-on #ovApp .oh-sums .oh-sum:nth-child(n+3){display:none}
}
@media (min-width:901px){ html.sh-on #ovApp .oh-btn.primary,html.sh-on #ovApp .oh-fold{min-height:40px} }   /* 闸20：桌面按钮高 32–40；手机仍 44 */
