/* 钻探工作量日报系统 —— 共享样式（首页定稿配色） */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --ink:#0f172a;--muted:#64748b;--line:#e6eaf1;--bg:#eef1f6;--card:#fff;
  --primary:#2456e6;--primary-dark:#173da6;--danger:#dc2626;--ok:#059669;
}
html{-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",sans-serif;background:#d8dee9;color:var(--ink);-webkit-font-smoothing:antialiased}
button{font-family:inherit}
input,select,textarea{font-family:inherit;font-size:14px;color:var(--ink)}
.app{position:relative;display:flex;flex-direction:column;max-width:430px;margin:0 auto;min-height:100vh;background:var(--bg);box-shadow:0 0 48px rgba(15,23,42,.18)}
.wide{max-width:1080px}

/* ---- 顶栏 ----
   渐变跟电脑版 /web/ 同一个口径（黑蓝 → 蓝），手机和电脑看起来是一套东西。
   2026-11-12 改：原来是亮蓝三段，跟上来的后台不搭。
   角度用 90deg（纯横向）而不是 120deg：个人中心的头部要跟顶栏无缝接成一块，
   两者宽度相同、色停相同，横向渐变才能保证任意 x 处颜色完全一致。 */
.topbar{position:sticky;top:0;z-index:20;background:linear-gradient(90deg,#14224a 0%,#1b3a86 52%,#2456e6 100%);box-shadow:0 1px 0 rgba(255,255,255,.06),0 6px 18px rgba(8,13,26,.18);color:#fff;padding:12px 16px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.topbar h1{font-size:18px;letter-spacing:.5px}
.topbar .sub{font-size:12px;opacity:.85;margin-top:2px}
.userchip{display:flex;align-items:center;gap:7px;font-size:12px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:4px 10px 4px 4px;border-radius:999px;white-space:nowrap}
.uavatar{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.28);border:1px solid rgba(255,255,255,.45);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:none}
.menu{position:relative}
.menu>summary{list-style:none;cursor:pointer}
.menu>summary::-webkit-details-marker{display:none}
.menu-pop{position:absolute;right:0;top:calc(100% + 8px);background:#fff;color:var(--ink);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.2);min-width:132px;overflow:hidden;border:1px solid var(--line)}
.menu-pop button{display:block;width:100%;text-align:left;padding:10px 14px;font-size:13px;background:#fff;border:none;cursor:pointer}
.menu-pop button:hover{background:#f1f5f9}
.menu-pop button.danger{color:var(--danger)}

/* ---- 汇总卡片 ---- */
.summary{margin:12px 12px 0;background:var(--card);border-radius:16px;padding:14px 16px;box-shadow:0 10px 30px rgba(23,61,166,.10)}
.sum-top{display:flex;align-items:flex-end;justify-content:space-between}
.sum-main b{font-size:32px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.sum-main small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.badge-day{font-size:11px;color:#0f766e;background:#ccfbf1;border-radius:999px;padding:4px 9px;font-weight:600}
.sum-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.sum-grid div{text-align:center}
.sum-grid b{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.sum-grid i{font-style:normal;font-size:9px;color:var(--muted);margin-left:2px;vertical-align:1px}
.sum-grid span{display:block;font-size:11px;color:var(--muted);margin-top:2px}

/* ---- 筛选 chips ---- */
.chips{display:flex;gap:8px;padding:14px 12px 2px;overflow-x:auto}
.chip{flex:none;border:1px solid var(--line);background:var(--card);color:var(--muted);font-size:12px;padding:6px 12px;border-radius:999px;cursor:pointer}
.chip.active{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff;font-weight:600}

/* ---- 时间流 ---- */
.group{padding:0 0 4px}
.ghead{display:flex;align-items:center;gap:10px;padding:16px 16px 8px;color:var(--muted);font-size:12px;font-weight:700}
.ghead b{color:var(--primary)}
.ghead::after{content:"";flex:1;height:1px;background:var(--line)}
.ghead em{font-style:normal;font-weight:500;color:#94a3b8}
.feed{padding:0 12px;display:flex;flex-direction:column;gap:10px}
.entry{background:var(--card);border-radius:16px;padding:12px;display:flex;gap:10px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
.avatar{flex:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;overflow:hidden}
.avatar img,.nav-avatar img,.dw-avatar img,.uavatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.entry .body{flex:1;min-width:0}
.e-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.e-top b{font-size:14px}
.chip-rig{font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;white-space:nowrap}
.deleg{font-size:10px;color:#b45309;background:#fef3c7;padding:2px 6px;border-radius:6px}
.e-top .tag{margin-left:auto}
.e-foot{display:flex;justify-content:flex-end;margin-top:8px}
.e-foot time{font-size:11px;color:var(--muted);white-space:nowrap;line-height:1}
.e-proj{font-size:11px;color:var(--muted);margin-top:2px}
.e-meters{margin-top:8px;display:flex;align-items:baseline;gap:5px}
.e-meters small{font-size:11px;color:var(--muted)}
.e-meters b{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.e-meters b.zero{color:#94a3b8}
.e-meters i{font-style:normal;font-size:12px;color:var(--muted)}
.tag{font-size:10px;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap;border:1px solid transparent}
.e-meters .tag{margin-left:auto;align-self:center}
.e-meta{margin-top:7px;font-size:11px;color:var(--muted);line-height:1.5}
.note{margin-top:7px;font-size:11px;border-radius:8px;padding:6px 9px;line-height:1.5}
.n-amber{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.n-gray{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}
.n-blue{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
/* 状态色（文字 / 底色） */
.st-钻进中{color:#047857;background:#d1fae5}
.st-终孔{color:#6d28d9;background:#ede9fe}
.st-设备检修{color:#b45309;background:#fef3c7}
.st-下管止水{color:#1d4ed8;background:#dbeafe}
.st-待料停工{color:#475569;background:#e2e8f0}
.st-完工验收{color:#6d28d9;background:#ede9fe}
.st-default{color:#475569;background:#e2e8f0}
.empty{text-align:center;color:#94a3b8;font-size:13px;padding:40px 0}

/* ---- 底部悬浮导航（首页 / 发布工作量 / 个人中心） ---- */
html{overflow-x:clip}
.bottomnav{position:sticky;bottom:10px;margin:auto 12px 12px;z-index:30;display:flex;align-items:flex-end;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 30px rgba(15,23,42,.18);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
.bn-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0 2px;color:#94a3b8;font-size:10px;text-decoration:none}
.bn-item svg{width:22px;height:22px}
.bn-item.active{color:var(--primary-dark);font-weight:700}
.bn-pub{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:-24px;color:#94a3b8;font-size:10px;text-decoration:none}
.bn-pub .bnc{width:52px;height:52px;border-radius:50%;background:linear-gradient(140deg,#173da6,#3b74f0);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(23,61,166,.45);border:3px solid #fff}
.bn-pub svg{width:24px;height:24px}
.bn-pub.active{color:var(--primary-dark);font-weight:700}
.bn-pub.active .bnc{box-shadow:0 0 0 3px #eef4ff,0 8px 20px rgba(23,61,166,.45)}

/* ---- 个人中心 ---- */
.prof-head{display:flex;flex-direction:column;align-items:center;text-align:center;background:linear-gradient(160deg,#173da6,#3b74f0);color:#fff;border-radius:16px;padding:24px 16px 18px}
.prof-av{width:88px;height:88px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:800;position:relative;cursor:pointer;overflow:visible;border:3px solid rgba(255,255,255,.55)}
.prof-av>span:not(.prof-cam){width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden}
.prof-av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.prof-cam{position:absolute;right:-2px;bottom:2px;width:26px;height:26px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(15,23,42,.3)}
.prof-head h2{font-size:19px;margin-top:12px}
.prof-head p{font-size:12px;opacity:.88;margin-top:3px}
.prof-head .hint{color:rgba(255,255,255,.75);margin-top:8px}
.prof-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:16px 0}
.prof-stats div{text-align:center}
.prof-stats b{font-size:17px;font-variant-numeric:tabular-nums}
.prof-stats span{display:block;font-size:11px;color:var(--muted);margin-top:3px}

/* ---- 个人中心头部（2026-11-12 重做：App 版式）----
   渐变从顶栏顺着延伸下来（同色系横向渐变，接缝看不出），头像压在中间，
   统计卡上浮 32px 盖住渐变下沿，做出层次。
   .prof-head 那套留给 person.html（看别人主页）继续用，这里另起 .me-*，互不干扰。 */
.me-hero{background:linear-gradient(90deg,#14224a 0%,#1b3a86 52%,#2456e6 100%);color:#fff;padding:4px 16px 46px;text-align:center}
/* 顶栏自带的 1px 白线和向下投影，在这一页会把「一整块头部」切成两截，
   所以个人中心单独去掉——滚动后顶栏还是深蓝压在白卡上，不缺分隔感 */
.pf-page .topbar{box-shadow:none}
.me-av{width:78px;height:78px;border-radius:50%;margin:0 auto;background:rgba(255,255,255,.16);border:2.5px solid rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;position:relative;cursor:pointer;box-shadow:0 8px 22px rgba(6,12,28,.3)}
.me-av>span:not(.me-cam){width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden}
.me-av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.me-cam{position:absolute;right:-3px;bottom:-1px;width:24px;height:24px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(15,23,42,.32)}
.me-hero h2{font-size:19px;font-weight:700;margin:11px 0 0;letter-spacing:.3px}
.me-meta{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:7px}
.me-chip{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:2px 10px;font-size:11.5px;line-height:1.5}
.me-uid{font-size:11.5px;color:rgba(255,255,255,.62)}
/* 特异性要压过 .page-pad / .card，所以带上父类 */
.page-pad.me-body{padding-top:0}
.card.me-card{margin-top:-32px;position:relative;z-index:1;padding:2px 0;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.1)}
.menu-card{padding:0;overflow:hidden}
.mi{display:flex;align-items:center;width:100%;background:#fff;border:none;border-bottom:1px solid #f1f5f9;padding:14px 16px;font-size:14px;cursor:pointer;text-align:left;color:var(--ink)}
.mi:last-child{border-bottom:none}
.mi .arr{margin-left:auto;color:#cbd5e1;font-size:16px}
.mi.danger{color:var(--danger)}

/* ---- 表单 ---- */
.page-pad{padding:14px 12px 30px}
.card{background:var(--card);border-radius:16px;padding:16px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
.card+.card{margin-top:12px}
.card h2{font-size:15px;margin-bottom:12px}
.field{margin-bottom:12px}
.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.field label i{font-style:normal;color:var(--danger)}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(36,86,230,.12)}
/* 复选框/单选框不能被上面的 width:100% 拉伸（否则会把同行文字挤成竖排） */
input[type=checkbox],input[type=radio]{width:auto;height:auto;min-width:0;flex:none;padding:0;margin:0;border-radius:3px}
.field textarea{resize:vertical;min-height:64px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* iOS Safari：清除 button 原生外观，避免背景被拉伸/叠加成大块渐变 */
button{-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.btn{display:inline-block;border:none;border-radius:10px;padding:12px 18px;font-size:14px;font-weight:600;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:none;background-clip:padding-box}
.btn.primary{background:linear-gradient(140deg,#173da6,#2456e6);color:#fff;width:100%}
.btn.primary:disabled{opacity:.6}
.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--muted);font-weight:500;padding:8px 12px;font-size:12px}
.btn.danger{background:#fff;border:1px solid #fecaca;color:var(--danger);font-weight:500;padding:8px 12px;font-size:12px}
.btn.sm{padding:6px 10px;font-size:12px;border-radius:8px}
.hint{font-size:11px;color:#94a3b8;margin-top:8px;line-height:1.6}
.pill-target{display:flex;align-items:center;gap:8px;background:#f1f5f9;border-radius:10px;padding:10px 12px;font-size:13px;margin-bottom:12px}
.pill-target b{font-size:14px}

/* ---- 登录页 ---- */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(160deg,#173da6,#2456e6 60%,#3b74f0)}
.login-card{width:100%;max-width:360px;background:#fff;border-radius:20px;padding:26px 22px;box-shadow:0 24px 60px rgba(9,20,60,.4)}
.login-card h1{font-size:19px;text-align:center;margin-bottom:2px}
.login-card .sub{text-align:center;font-size:12px;color:var(--muted);margin-bottom:18px}
.seg{display:flex;background:#f1f5f9;border-radius:10px;padding:4px;margin-bottom:16px}
.seg button{flex:1;border:none;background:transparent;padding:8px;border-radius:8px;font-size:13px;color:var(--muted);cursor:pointer;font-weight:600}
.seg button.active{background:#fff;color:var(--primary-dark);box-shadow:0 1px 4px rgba(15,23,42,.12)}

/* ---- 站长后台 ---- */
.wide{margin:0 auto;box-shadow:0 0 48px rgba(15,23,42,.18)}
.tabs{display:flex;gap:8px;padding:14px 12px 2px;flex-wrap:wrap}
.tabbar{background:var(--card);border-radius:16px;margin:12px;padding:16px}
.tabbar h2{font-size:15px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
table.tbl{width:100%;border-collapse:collapse;font-size:13px}
.tbl th{text-align:left;font-size:11px;color:var(--muted);font-weight:600;padding:8px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:9px 8px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.tbl tr:last-child td{border-bottom:none}
.tbl .av{width:30px;height:30px;border-radius:50%;object-fit:cover;display:block}
.tbl .num{font-variant-numeric:tabular-nums}
.status-pill{font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px}
.pill-on{color:#047857;background:#d1fae5}
.pill-off{color:#94a3b8;background:#e2e8f0}
.filters{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.filters .field{margin:0;min-width:130px}
.actions{display:flex;gap:6px;flex-wrap:wrap}
.invite-code{font-family:Consolas,monospace;font-size:20px;font-weight:700;letter-spacing:3px;color:var(--primary-dark);background:#eef4ff;border:1px dashed var(--primary);border-radius:10px;padding:12px;text-align:center;margin:10px 0}
.tblwrap{overflow-x:auto}
/* 用户管理表格：宽屏(>640px)下姓名/ID/用户名不折行，表格自适应窗口宽度；窄屏走卡片模式，均不产生横向滚动 */
@media (min-width:641px){#userTbl td,#userTbl th{white-space:nowrap}}
.checks{display:flex;gap:10px;flex-wrap:wrap}
.checks label{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ink);background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:6px 10px;cursor:pointer}
footer{text-align:center;font-size:11px;color:#94a3b8;padding:16px 0 8px}

/* ---- 首页顶栏：返回 | 标题居中 | 铃铛（2026-11-12 改：头像去掉了，
   底栏已经有「个人中心」，顶栏再放一个头像纯属重复；铃铛挪到最右）----
   按钮一律不用磨砂圆底，直接白图标贴在渐变上，按下才给一点淡底 */
/* 顶栏三个图标按钮（返回 / ＋ / 铃铛）统一 40×40、纯白图标、无底色。
   尺寸必须一致：之前媒体查询里把返回键单独盖回 38×38，铃铛 40，左右就差 1px。
   底色一律不给（2026-11-12 定稿）：只给一边会歪，两边都给又太重，纯图标最干净。
   间距靠 margin 负值吃掉 padding，左右各距屏 5px、图标中心各距屏 25px。 */
.nav-back{width:40px;height:40px;border-radius:12px;border:none;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0;margin-left:-7px;transition:background .15s}
.nav-back svg{width:24px;height:24px}
.nav-back:active{background:rgba(255,255,255,.14)}
/* 顶栏右侧的方形图标按钮（材料页那个「＋」）
   margin-left:auto 把它顶到右边；紧跟着的铃铛就不要再 auto 了，
   否则两个 auto 分空间，「＋」会跑到中间 */
.nav-ico{width:40px;height:40px;border-radius:12px;border:none;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0;margin-left:auto;transition:background .15s}
.nav-ico svg{width:24px;height:24px}
.nav-ico:active{background:rgba(255,255,255,.14)}
.nav-ico + .nav-bell{margin-left:6px}
.nav-avatar{width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.22);color:#fff;font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.tb-title{position:absolute;left:52px;right:52px;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;text-align:center;pointer-events:none}
.tb-title h1{font-size:18px;letter-spacing:.5px;margin:0}
.tb-title .sub{font-size:12px;opacity:.85;margin-top:2px}
/* ---- 顶栏铃铛（消息入口）----
   由 common.js 自动挂到顶栏最右，所以标题两边要对称让位。
   .has-bell 是 common.js 加的，留着标记「这页有铃铛」，样式上已不需要区分左右 */
.nav-bell{position:relative;width:40px;height:40px;border-radius:12px;border:none;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0;margin-left:auto;margin-right:-7px;transition:background .15s}
.nav-bell svg{width:24px;height:24px}
.nav-bell:active{background:rgba(255,255,255,.14)}
/* 未读角标（2026-11-12 重做）
   原来 16px 圆点 + 2px 实色描边 #1b3a86：数字只剩 12px 内径，10px 字挤成一团；
   而按钮其实压在渐变的浅蓝段（#2456e6 附近），深色描边对不上色，看着像糊了一圈黑边。
   现在：放大到 17px、字给到 11px/700、去掉实色描边，改用柔和投影让它浮在铃铛上。 */
.nav-bell .nb-dot{position:absolute;top:-2px;right:0;min-width:17px;height:17px;border-radius:999px;background:#f5222d;color:#fff;font-style:normal;font-size:11px;font-weight:700;line-height:17px;text-align:center;padding:0 4px;letter-spacing:0;text-shadow:0 1px 1px rgba(120,0,0,.28);box-shadow:0 1px 4px rgba(0,0,0,.3)}

/* ---- 日期导航（单行不换行） ---- */
.datenav{display:flex;align-items:center;gap:6px;padding:14px 16px 8px;flex-wrap:nowrap;white-space:nowrap}
.dn-left{display:flex;align-items:baseline;gap:5px;min-width:0;overflow:hidden}
.datenav b{color:var(--primary);font-size:13px;flex:none}
.datenav .dn-date{font-size:12px;color:var(--muted);flex:none}
.datenav em{font-style:normal;font-size:11px;color:#94a3b8;flex:none}
.dn-btns{margin-left:auto;display:flex;gap:5px;flex:none}
.dnbtn{border:1px solid var(--line);background:#fff;color:var(--primary-dark);font-size:11px;font-weight:600;padding:5px 9px;border-radius:999px;cursor:pointer;flex:none}
.dnbtn:active{background:#eef4ff}

/* ---- 工程分栏 ---- */
.psec{margin:12px 12px 0;background:var(--card);border-radius:16px;box-shadow:0 2px 10px rgba(15,23,42,.05);overflow:hidden}
.psec-h{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line)}
.psec-h .bar{width:4px;height:16px;border-radius:2px;flex:none}
.psec-h b{font-size:14px}
.psec-h .cnt{margin-left:auto;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none}
.psec .feed{padding:10px}
.psec .entry{background:#fff;box-shadow:0 0 6px rgba(15,23,42,.11)}
#sections{padding-bottom:16px}


/* ---- 弹窗（跨浏览器居中） ---- */
dialog{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;width:fit-content;height:fit-content;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;border:none;border-radius:16px;padding:0;background:#fff;color:var(--ink);box-shadow:0 24px 60px rgba(9,20,60,.35)}
dialog::backdrop{background:rgba(15,23,42,.42)}
.dialog-card{width:min(92vw,400px);padding:22px}
.dialog-card.dlg-wide{width:min(92vw,470px)}
.dialog-card h3{font-size:16px;margin-bottom:16px;line-height:1.4}
.dialog-card .field{margin-bottom:13px}
.dialog-card .field label{line-height:1.5;overflow-wrap:anywhere}
.dialog-card .row2{gap:12px}
.dialog-card .checks{gap:8px}
.dialog-card .checks>label{align-items:flex-start;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.dialog-card .checks>label>input[type=checkbox]{flex:none;margin-top:2px}
#groupChecks>label{align-items:center;padding:6px 9px}
#groupChecks>label>input[type=checkbox]{margin-top:0}
@media (max-width:430px){
  .dialog-card{width:min(92vw,400px);padding:18px}
  .dialog-card.dlg-wide{width:min(92vw,470px)}
  .dialog-card h3{font-size:15px}
  /* 同样避开 :has()：移动端弹窗内的两列字段直接改为单列 */
  .dialog-card .row2{grid-template-columns:1fr 1fr}
}

/* ---- 工程明细弹窗 ---- */
.chip-title{font-size:10px;font-weight:700;color:#fff;padding:2px 8px;border-radius:6px;white-space:nowrap;border:1px solid transparent;vertical-align:middle;line-height:1.5}
.name-link{cursor:pointer;color:inherit;text-decoration:none}
.name-link:hover{text-decoration:none;opacity:.78}
.ddpage-sub{font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:12px 12px 0;line-height:1.7}
.stat-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 12px 0}
.stat-tile{display:block;background:var(--card);border-radius:14px;padding:14px 8px;text-align:center;text-decoration:none;color:var(--ink);box-shadow:0 2px 10px rgba(15,23,42,.05)}
.stat-tile b{font-size:19px;font-variant-numeric:tabular-nums;display:block}
.stat-tile span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.stat-tile:hover{box-shadow:0 6px 18px rgba(23,61,166,.15)}

/* ---- 工程明细弹窗 ---- */
.dlg-detail{width:min(96vw,560px)}
.dd-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:linear-gradient(140deg,#173da6,#2456e6);color:#fff;border-radius:16px 16px 0 0}
.dd-head b{font-size:15px}
.dd-head small{display:block;font-size:10px;opacity:.82;margin-top:2px;font-weight:400}
.dd-x{background:rgba(255,255,255,.18);border:none;color:#fff;width:28px;height:28px;border-radius:50%;font-size:13px;cursor:pointer;flex:none}
.dd-filters{display:flex;gap:6px;padding:12px 14px;flex-wrap:wrap;align-items:center;border-bottom:1px solid var(--line)}
.dd-filters select,.dd-filters input{border:1px solid var(--line);border-radius:8px;padding:7px 8px;font-size:12px;background:#fff;color:var(--ink);font-family:inherit}
.dd-btn{border:1px solid var(--primary);background:#eef4ff;color:var(--primary-dark);border-radius:8px;padding:7px 10px;font-size:12px;cursor:pointer;font-weight:600;font-family:inherit}
.dd-btn.ghost{border-color:var(--line);background:#fff;color:var(--muted);font-weight:500}
.dd-rows{max-height:54vh;overflow-y:auto;padding:10px 14px 14px}
.dd-rows .num{font-variant-numeric:tabular-nums}
.dd-empty{text-align:center;color:#94a3b8;font-size:12px;padding:24px 0}
.p-sub{display:block;font-size:10px;color:#94a3b8;margin-top:2px;font-weight:400}
.psec-name{background:none;border:none;font:inherit;color:inherit;cursor:pointer;display:flex;align-items:center;gap:4px;padding:0;text-align:left;text-decoration:none;flex:1 1 auto;min-width:0}
.psec-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
.psec-name:hover{color:var(--primary-dark)}
.psec-name i{font-style:normal;color:#cbd5e1;font-size:12px;flex:0 0 auto}

/* ---- 轻提示 ---- */
#toast{position:fixed;left:50%;bottom:96px;z-index:9999;transform:translateX(-50%);background:rgba(15,23,42,.85);color:#fff;font-size:13px;padding:10px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .25s;z-index:99;max-width:86vw;text-align:center}
#toast.show{opacity:1}

/* ---- 身份管理：昵称预览 / 成员名单 / 颜色行 ---- */
.npv{margin-left:6px;font-size:13px;font-weight:700}
.dlg-members{width:min(92vw,430px)}
.projsec{background:var(--card);border-radius:14px;box-shadow:0 2px 10px rgba(15,23,42,.05);overflow:hidden;margin-bottom:12px}
.projsec-h{display:flex;align-items:center;gap:8px;padding:11px 13px;border-bottom:1px solid var(--line)}
.projsec-h .bar{width:4px;height:16px;border-radius:2px;flex:none}
.projsec-h b{font-size:13.5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.projsec-h .cnt{font-size:11px;color:var(--muted);flex:none;font-variant-numeric:tabular-nums}
.projsec-sub{padding:7px 13px;font-size:11px;color:#94a3b8;background:#f8fafc;border-bottom:1px solid var(--line)}
.mem-list{max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.mem-row{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:9px 11px}
.mem-row .av{width:30px;height:30px;border-radius:50%;background:#e2e8f0;color:#475569;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;overflow:hidden;flex:none}
.mem-row .av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.mem-row .nm{display:block;font-size:13px;font-weight:700}
.mem-row .un{display:block;font-size:11px;color:#94a3b8;font-family:Consolas,monospace;margin-top:1px}
.mem-row .pj{margin-left:auto;font-size:11px;color:var(--muted);text-align:right;line-height:1.5;flex:none}
.mem-empty{text-align:center;color:#94a3b8;font-size:12px;padding:22px 0}
.colorline{display:flex;align-items:center;gap:8px}
.colorline input[type=color]{flex:1;min-width:0;width:auto;height:42px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff}
.minichk{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);white-space:nowrap;cursor:pointer}

/* ================= 手机端适配（≤640px） ================= */
*{-webkit-tap-highlight-color:transparent}
button,.chip,.mi,.bn-item,.bn-pub,.stat-tile,a{touch-action:manipulation}

@media (max-width:640px){
  /* 顶栏：标题不被挤压 */
  .topbar{padding:10px 12px 12px}
  /* 左右各让出 44px：返回和铃铛都是 38 宽的方按钮，足够对称 */
  .tb-title{left:44px;right:44px}
  .tb-title h1{font-size:16px}
  .tb-title .sub{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* 顶栏图标按钮的尺寸/图标大小见上方 .nav-back 注释，这里不再重复覆盖——
     之前这里写了 40、后面又单独把返回键盖回 38，就是左右不对称的来源 */

  /* 表单控件 16px：避免 iOS 聚焦时整页被放大 */
  .field input,.field select,.field textarea,.filters input,.filters select,.dd-filters input,.dd-filters select{font-size:16px}

  /* 触控尺寸 */
  .chip{padding:8px 14px;font-size:12.5px}
  .btn.sm{padding:9px 12px}
  .dnbtn{padding:8px 12px;font-size:12px}
  .dd-x{width:34px;height:34px;font-size:15px}
  .mi{padding:15px 14px}

  /* 后台页签：横向滑动，不换行占屏 */
  .tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:12px 12px 6px}
  .tabs::-webkit-scrollbar{display:none}
  .tabs .chip{flex:none}

  /* 后台区块：标题与按钮分两行，按钮拉满 */
  .tabbar{margin:10px;padding:13px 12px;border-radius:14px}
  .tabbar h2{flex-direction:column;align-items:stretch;gap:9px;font-size:14px}
  /* 用 flex 代替 grid + :has()：iOS 15.4 以下不支持 :has()，单按钮会只占半宽而变形 */
  .tabbar h2 .actions{display:flex;flex-wrap:wrap;gap:8px}
  .tabbar h2 .actions .btn,.tabbar h2>button{flex:1 1 calc(50% - 4px);width:auto;padding:10px}
  .hint{font-size:11.5px}

  /* 筛选行：两列网格，按钮独占一行 */
  .filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
  .filters .field{min-width:0!important;margin:0}
  .filters .btn{grid-column:1/-1;width:100%;padding:11px}

  /* 表格 → 卡片（字段名由 common.js 自动标注的 data-th 提供） */
  .tblwrap{overflow-x:visible}
  table.tbl{display:block;width:100%}
  /* tbody/thead 也要转块，否则每行会被套进匿名表格、按内容收缩，卡片宽度就只占左边一截 */
  table.tbl thead,table.tbl tbody{display:block}
  table.tbl tr{display:block}
  table.tbl tr:first-child{display:none}
  table.tbl tr{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:9px}
  table.tbl tr:last-child{margin-bottom:0}
  table.tbl td{display:flex;flex-wrap:wrap;align-items:flex-start;gap:1px 8px;padding:3px 0;border:none;text-align:left;white-space:normal;overflow-wrap:anywhere;max-width:none!important}
  table.tbl td::before{flex:0 0 var(--th-w,5.4em)}
  /* 值区按行内流排：标签/胶囊/名字/数字各自贴合自身内容——网格会把它们横向拉满、纵向撑高（文字就不居中了） */
  table.tbl td>*{flex:0 1 auto;min-width:0}
  table.tbl td>span.p-sub{flex-basis:100%}
  table.tbl td>span.npv{margin-left:0}
  table.tbl td[data-th]::before{content:attr(data-th);color:var(--muted);font-size:12px;line-height:1.7}
  table.tbl td:not([data-th]){display:block}
  table.tbl td[data-th="头像"]{display:none}
  table.tbl td[data-th="操作"]{display:block;margin-top:8px;padding-top:9px;border-top:1px dashed var(--line)}
  table.tbl td[data-th="操作"]::before{display:none}
  table.tbl td[data-th="操作"] .actions{gap:7px}
  .tbl .av{width:34px;height:34px}
  .projsec table.tbl tr{background:#f8fafc;border-color:#eef2f7}

  /* 首页 / 个人资料：数字与卡片更紧凑 */
  .summary{margin:6px 10px 0;padding:13px 14px}
  .sum-main b{font-size:28px}
  .sum-grid b{font-size:15px}
  .feed{padding:0 10px}
  .entry{padding:11px}
  .e-meters b{font-size:20px}
  .e-foot time{font-size:10px}
  .psec{margin:10px 10px 0}
  .stat-tiles{gap:8px;margin:10px 10px 0}
  .stat-tile{padding:12px 6px}
  .stat-tile b{font-size:17px}
  .prof-av{width:76px;height:76px;font-size:30px}
  .prof-head{padding:20px 14px 16px}
  .prof-stats b{font-size:16px}
  .page-pad{padding:12px 10px 26px}
  .card{padding:14px;border-radius:14px}
  .datenav{padding:12px 12px 6px}
  .dn-left{overflow:hidden}

  /* 弹窗：贴边留白、内容可滚动 */
  dialog{max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:14px}
  .dialog-card,.dialog-card.dlg-wide,.dlg-members,.dlg-detail{width:calc(100vw - 20px);max-width:100%}
  .dialog-card{padding:16px}
  .dialog-card h3{font-size:15px;margin-bottom:12px}
  .dialog-card .field{margin-bottom:11px}
  .checks-scroll{max-height:30vh;overflow-y:auto;padding-right:2px}
  .dd-rows{max-height:50vh}
  .dd-filters{gap:7px;padding:10px 12px}
  .invite-code{font-size:18px;letter-spacing:2px}
}

@media (max-width:380px){
  .dialog-card{padding:14px}
  .tb-title h1{font-size:15px}
  .sum-main b{font-size:26px}
  .tabbar{padding:12px 10px}
}

/* ---- 第十一轮：只读工程、多孔关卡、确认弹窗 ---- */
#targetPick .pill-target{margin-bottom:0}
body.cap-view .pill-target{color:#94a3b8;background:#f8fafc}
body.cap-view .pill-target b{color:#94a3b8;font-weight:600}
body.cap-view #projBox{color:#94a3b8}
.name-row{margin-top:12px}
.name-row h2{margin-top:0}
.sec-div{display:flex;align-items:center;gap:8px;margin:16px 0 12px;font-size:12px;font-weight:700;color:var(--muted)}
.sec-div::before,.sec-div::after{content:'';flex:1;height:1px;background:var(--line)}
.cf-miss{font-style:normal;color:#94a3b8;font-weight:400}
.ro-box{padding:11px 12px;border-radius:12px;background:#f1f5f9;border:1px dashed var(--line);font-weight:600;font-size:13px;overflow-wrap:anywhere}
.hole-sec{margin-bottom:12px}
.hole-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--muted);margin:2px 0 7px}
.hole-title::after{content:'';flex:1;height:1px;background:var(--line)}
.hole-sec:nth-child(n+2) .hole-title{color:var(--primary)}
.hole-gate{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0 0;padding:9px 12px;border-radius:12px;background:#f1f5f9;border:1px dashed var(--line)}
.hole-gate span{font-size:12px;color:var(--muted)}
.cf-body{margin-bottom:10px}
.cf-row{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}
.cf-row:last-child{border-bottom:none}
.cf-row>span{flex:0 0 auto;min-width:74px;padding-right:6px;color:var(--muted);white-space:nowrap}
.cf-row>b{flex:1;font-weight:600;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:400px){.hole-gate{flex-direction:column;align-items:flex-start;gap:8px}}
/* ---- 第十轮：多孔填报行 ---- */
.row3{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:8px}
.hole-row{margin-bottom:2px}
.hole-sec .field label{white-space:nowrap}
/* ---- 第八轮：数字 ID 显示（贴在昵称旁边） ---- */
.name-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.prof-uid,.p-uid{display:inline-block;padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.2);font-size:11px;font-weight:600;letter-spacing:.4px;white-space:nowrap}

/* ---- 第七轮：个人中心 / 他人资料排版优化 ---- */
.prof-stats div{padding:0 4px}
.prof-stats div + div{border-left:1px solid rgba(15,23,42,.08)}
/* 个人中心：身份/权限做成胶囊，和姓名拉开层次 */
.prof-head p.role-pill{display:inline-block;margin-top:9px;padding:3px 12px 4px;border-radius:999px;background:rgba(255,255,255,.2);font-size:11px;font-weight:600;opacity:1}
/* 他人资料：所属工程 / 最后活跃 / 注册时间 / 当前 IP 排成 2×2 信息格 */
.p-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;width:100%;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.22);text-align:left}
.p-meta-grid>div{min-width:0}
.p-meta-grid .pm-k{display:block;font-size:10px;opacity:.72;margin-bottom:2px}
.p-meta-grid .pm-v{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}

/* 覆盖提示卡头（提交确认弹窗顶部） */
.cf-head{display:flex;gap:9px;align-items:flex-start;margin:0 0 13px;padding:11px 12px;border-radius:12px;background:#fffbeb;border:1px solid #fde68a}
.cf-hi{flex:0 0 auto;width:18px;height:18px;border-radius:50%;background:#fde68a;color:#92400e;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;font-style:normal;line-height:1}
.cf-head>div{min-width:0}
.cf-head>b{display:block;font-size:13px;color:#92400e;line-height:1.4}
.cf-head span{display:block;margin-top:2px;font-size:12.5px;color:#a16207;line-height:1.5;overflow-wrap:anywhere}
/* 逐行对比：旧值 → 新值，未变的整行灰显 */
.cf-ar{margin:0 7px;color:#94a3b8;font-style:normal;font-weight:400}
.cf-row.same>span,.cf-row.same>b{color:#cbd5e1}
.cf-row.same .cf-ar{color:#e2e8f0}
.cf-row.same .cf-miss{color:#cbd5e1;font-weight:400}
.cf-row.chg>b{color:#0f172a}
.cf-row.chg>b em{font-style:normal;color:#0d8f65;font-weight:700}
.cf-row>b{overflow-wrap:anywhere}

/* 数量输入框：单位收进框内右侧，框本身收窄，避免占一整行 */
.qty-box{position:relative;max-width:118px}
.qty-box input{width:100%;padding-right:40px}
.qty-box .qty-unit{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted);font-weight:400;pointer-events:none}

/* ---- 工程行展开：在场人员 ---- */
.pexp{display:inline-block;width:16px;color:#94a3b8;cursor:pointer;user-select:none;font-size:12px}
.pexp:hover{color:#2456e6}
.pcnt{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:999px;background:#eef4ff;color:#2456e6;font-size:11px;font-weight:600}
.pmem>td{padding:0 0 10px!important;border-top:none!important}
.p-membox{padding:10px 12px;background:#f8fafc;border:1px solid #e8eef7;border-radius:10px}
.p-memrow{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px dashed #e8eef7;flex-wrap:wrap}
.p-memrow:last-of-type{border-bottom:none}
.p-mn{font-weight:600;color:#0f172a;font-size:13px}
.p-mt{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600}
.p-mdate{color:#94a3b8;font-size:12px}
.p-memrow .btn{margin-left:auto}
.p-mempty{color:#94a3b8;font-size:13px;padding:4px 0}

/* ---- 工程配置：栏目列表 ---- */
.cfglist{display:flex;flex-direction:column;gap:8px}
.cfgitem{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:13px 15px;cursor:pointer;font-family:inherit;transition:border-color .15s,background .15s}
.cfgitem:hover{border-color:#c7d6ee;background:#f5f9ff}
.cfgtx{display:block;min-width:0}
.cfgtx>b{display:block;font-size:14px;font-weight:600;color:#0f172a}
.cfgtx .hint{margin:3px 0 0}
.cfgar{margin-left:auto;color:#94a3b8;font-size:20px;line-height:1;flex:0 0 auto}

/* ---- 工程配置：一级悬停下拉 ---- */
.cfgdock{position:relative;display:inline-block}
.cfgpop{position:absolute;top:100%;right:0;z-index:80;min-width:268px;padding-top:6px;display:none}
.cfgdock:hover .cfgpop{display:block}
.cfgpop.on{display:block}
.cfgpop-bd{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 36px rgba(15,23,42,.16);padding:8px}
.cfgitem{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#f8fafc;border:1px solid var(--line);border-radius:9px;padding:8px 12px;cursor:pointer;font-family:inherit;transition:border-color .15s,background .15s}
.cfgitem:hover{border-color:#c7d6ee;background:#f5f9ff}
.cfgtx{display:block;min-width:0}
.cfgtx>b{display:block;font-size:13.5px;font-weight:600;color:#0f172a;line-height:1.3}
.cfgar{margin-left:auto;color:#cbd5e1;font-size:17px;line-height:1;flex:0 0 auto}
/* 顶栏长文本单行省略（2026-10-13） */
.tb-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-title .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 首页卡片：昵称行与头像居中、进尺行间距（2026-10-13，2026-10-15 间距收紧） */
.e-top{min-height:32px}
.e-meters{margin-top:6px}
/* 状态标签与操作列按钮不折行（2026-10-13） */
.status-pill{white-space:nowrap;display:inline-block}
td .actions{flex-wrap:nowrap}
td .actions .btn{white-space:nowrap;flex:0 0 auto}
/* ===== 我的工时独立页 · 2026-10-14 重构 ===== */
/* 页面骨架：flex 三段（头卡 / 胶囊 / 明细）+ 底部总账 */
/* ===== 我的工时独立页 · 2026-10-14 重构 ===== */
/* 整页滚动 + 上下栏吸顶吸底，这样内容才会从栏下滑过 */
.hrs-page{position:fixed;top:0;left:0;right:0;bottom:0;max-width:430px;margin:0 auto;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;min-height:0;height:100vh;height:100dvh;background:var(--bg);scrollbar-width:thin;scrollbar-color:#d5dce6 transparent}
.hrs-page::-webkit-scrollbar{width:6px}
.hrs-page::-webkit-scrollbar-thumb{background:#d5dce6;border-radius:999px}
.hrs-page::-webkit-scrollbar-track{background:transparent}

/* 顶栏：吸顶（仅本页，不动全站 .topbar） */
/* 顶部整块（标题栏 + 头卡 + 标签栏）一起吸顶，避免互相盖住 */
/* 整块背板：淡灰，比头卡/标签弱（避免内容从标签栏下面透出来） */
.hrs-sticky{flex:none;position:sticky;top:0;z-index:20;background:var(--bg)}
.hrs-page .topbar{flex:none;position:relative;background:linear-gradient(140deg,#173da6,#2456e6 55%,#3b74f0)}
.hrs-page .topbar h1{font-weight:400}

/* 1 汇总头：白底卡片 + 与顶栏留空 */
/* 1 汇总头：白色浮动卡片 */
.hrs-hero{flex:none;position:static;display:flex;align-items:flex-start;margin:11px 12px 10px;padding:13px 15px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 4px 16px rgba(15,23,42,.08)}
/* 左栏：头像 + 昵称 + 金额 */
.hrs-hero-l{flex:1;min-width:0}
.hrs-who{display:flex;align-items:center;margin-bottom:9px}
.hrs-av{width:32px;height:32px;border-radius:50%;flex:none;margin-right:9px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#2456e6,#3b74f0);color:#fff;font-size:14px}
.hrs-av img{width:100%;height:100%;object-fit:cover;display:block}
.hrs-who-t{min-width:0}
.hrs-nm{font-size:13.5px;color:#0f172a;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hrs-dt{font-size:11px;color:var(--muted);margin-top:2px;font-weight:400}
.hrs-hero-main{display:flex;align-items:baseline}
.hrs-hero-main .lbl{font-size:12px;color:var(--muted);margin-right:9px;font-weight:400}
.hrs-hero-main .val{font-size:30px;font-weight:400;color:var(--primary);font-variant-numeric:tabular-nums;letter-spacing:-1.1px;line-height:1.05}
.hrs-hero-main .unit{font-size:11.5px;color:var(--muted);margin-left:5px;font-weight:400}
.hrs-hero-sub{font-size:11.5px;color:var(--muted);margin-top:6px;font-weight:400}
.hrs-hero-sub b{color:#334155;font-variant-numeric:tabular-nums;font-weight:400}
/* 右栏：正常 / 误工 胶囊竖排（等宽、整组在卡片里垂直居中） */
.hrs-hero-r{flex:none;margin-left:10px;width:96px;display:flex;flex-direction:column;align-self:center}
.hrs-pill{display:flex;align-items:center;width:100%;box-sizing:border-box;font-size:10.5px;line-height:1.2;color:#475569;background:#f4f6fa;border:1px solid rgba(15,23,42,.05);border-radius:999px;padding:3px 9px;white-space:nowrap;margin-bottom:6px}
.hrs-pill:last-child{margin-bottom:0}
.hrs-pill .dot{width:5px;height:5px;border-radius:50%;margin-right:6px;flex:none}
.hrs-pill .dot.ok{background:var(--primary)}
.hrs-pill .dot.idle{background:#f59e0b}
.hrs-pill .k{flex:none}
.hrs-pill .v{margin-left:auto;color:#334155;font-variant-numeric:tabular-nums}
.hrs-pill .u{flex:none;width:11px;text-align:right;margin-left:1px}

/* 2 视角胶囊 */
.hrs-chips{flex:none;position:static;display:flex;padding:0 12px 9px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.hrs-chips::-webkit-scrollbar{display:none}
.hrs-chips{scrollbar-width:none}
.hrs-chip{flex:none;border:1px solid #dbe3ee;background:#fff;border-radius:999px;padding:7px 14px;font-size:12.5px;color:#475569;font-family:inherit;cursor:pointer;margin-right:7px}
.hrs-chip:last-child{margin-right:0}
.hrs-chip i{font-style:normal;font-size:11px;color:#c2410c;margin-left:3px}
.hrs-chip.on{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:400}
.hrs-chip.on i{color:#fde68a}

/* 3 明细区 */
.hrs-body{flex:none;padding:0 12px 16px}
.hrs-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 13px;margin-bottom:8px}
.hrs-c-top{display:flex;align-items:flex-start;justify-content:space-between}
.hrs-c-name{font-size:13.5px;font-weight:400;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;margin-right:10px}
.hrs-c-day{flex:none;align-self:center;text-align:right}
.hrs-c-day b{font-size:19px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--primary);letter-spacing:-.5px}
.hrs-c-day span{font-size:10.5px;color:var(--muted);margin-left:2px;font-weight:400}
.hrs-c-meta{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5;word-break:break-all}
.inlink{border-bottom:1px dashed #94a3b8;cursor:pointer;padding-bottom:1px}
.hrs-tag{display:inline-block;border-radius:999px;padding:2px 8px;font-size:10.5px;margin-right:6px}
.hrs-tag.idle{background:#fff7ed;color:#c2410c}
.hrs-tag.adv{background:#fef2f2;color:#dc2626}
.hrs-tag.wage{background:#f0fdf4;color:#16a34a}
.hrs-tag.short{background:#eff6ff;color:var(--primary)}
.hrs-tag.ok{background:#dcfce7;color:#15803d}
.hrs-tag.np{background:#e2e8f0;color:#64748b}
.hrs-c-amt{flex:none;align-self:center;font-size:15px;font-weight:400;font-variant-numeric:tabular-nums;margin-left:10px}
.hrs-empty,.hrs-load{font-size:12.5px;color:var(--muted);text-align:center;padding:26px 0}

/* 4 底部总账 */
/* 底栏：吸底 */
.hrs-foot{flex:none;margin-top:auto;position:sticky;bottom:0;z-index:20;background:#fff;border-top:1px solid var(--line);padding:0 12px 12px;box-shadow:0 -4px 14px rgba(15,23,42,.06)}
.hrs-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.hrs-sum{display:flex;align-items:center;padding:11px 2px}
.hrs-sum>span{font-size:12.5px;color:var(--muted);font-weight:400}
.hrs-sum>b{margin-left:auto;font-size:19px;font-weight:400;color:var(--primary);font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.hrs-more{margin-left:10px;padding:4px 11px;border:1px solid #dbe3ee;border-radius:999px;background:#fff;color:#64748b;font-size:11px;font-family:inherit;cursor:pointer;white-space:nowrap;font-weight:400}
.hrs-pay{display:none;padding:0 2px 4px}
.hrs-pay.open{display:block}
.hrs-pay .r{display:flex;align-items:baseline;font-size:13px;padding:7px 0;border-top:1px solid #f1f5f9}
.hrs-pay .r>span{color:var(--muted);font-size:12px;font-weight:400}
.hrs-pay .r>b{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:400;color:#0f172a}
.hrs-pay .r-note{font-size:11px;color:#94a3b8;padding:0 0 7px;line-height:1.4}

/* 年结补发：已结区块与「结算后老账被改动」提醒 */
.hrs-settle{border-color:#c7d2fe;background:#f5f7ff}
.hrs-settle .hrs-c-meta b{color:#2456e6}
/* 年结锁定后的老账改动，只在后台「操作记录」里看，机长视角不展示 */
/* 操作记录（后台预支/发放）：一条条往下排，改前改后分行显示 */
.plogitem{padding:9px 0;border-bottom:1px solid #f1f5f9}
.plogitem:last-child{border-bottom:0}
.ploghd{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:3px}
.plogact{margin-right:8px}
.plogwho{margin-right:8px;color:#334155}
.plogat{color:#94a3b8;font-size:12px}
.plogbody{color:#0f172a;font-size:13px;line-height:1.5}
.plogdiff{margin-top:4px;padding:5px 8px;border-radius:6px;background:#f8fafc;font-size:12px;color:#475569;line-height:1.6}
.plogrow{margin:1px 0}

/* 数字输入框：去掉浏览器自带的上下微调箭头（全站生效） */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* 个人主页：统计改成一排小标签 */
.stat-line{display:flex;gap:8px;margin:10px 12px 0;overflow-x:auto;padding-bottom:2px}
.stat-line .sl{flex:none;font-size:12px;color:var(--muted);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:5px 11px;white-space:nowrap}
.stat-line .sl.on{border-color:#2456e6;color:#2456e6;background:#eef4ff}
.stat-line .sl b{font-size:13px;color:inherit;font-weight:600;margin:0 1px}
/* 个人主页表格：日期列不换行 */
.projsec table.tbl td.num{white-space:nowrap}

/* ---- 孔号齿轮（改孔号）：跟 label 同字号，颜色跟孔号一致的黑，不抢注意力 ---- */
/* 对齐靠 label 的 flex + align-items:center，不用 vertical-align。
   原因：vertical-align:middle 是「元素中线对齐 基线 + 半个 x-height」，
   而中文的视觉中线在基线上方约 0.38em，两者差 0.6em 左右 —— 齿轮永远偏低一截，
   换字号还会漂。flex 的 align-items:center 是按盒子中线对齐，跟字形无关。 */
.hole-sec .field label{display:flex;align-items:center;gap:3px}
.h-gear{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;margin-left:1px;padding:0;border:0;background:none;color:var(--ink);font-size:12px;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
.h-gear svg{display:block}
.h-gear:hover{color:var(--primary)}
.h-gear:active{color:var(--primary-dark)}
/* 改名弹框里的影响范围提示 */
.rn-scope{margin:0 0 14px}
.rn-ok,.rn-warn,.rn-bad{font-size:12.5px;line-height:1.65;padding:9px 11px;border-radius:10px;margin-bottom:8px;overflow-wrap:anywhere}
.rn-ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.rn-warn{background:#fffbeb;border:1px solid #fde68a;color:#a16207}
.rn-bad{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}

/* ---- 菜单里的笔数角标（2026-11-12）----
   审批入口后面的红点：有笔数才出现，零就整颗不露。
   紧跟在文字后面、不抢 .arr 的位置，右边箭头依然靠最右。 */
.mi .badge{margin-left:7px;background:#f5222d;color:#fff;font-size:11px;font-weight:700;line-height:17px;min-width:17px;height:17px;padding:0 5px;border-radius:999px;text-align:center;font-style:normal;box-shadow:0 1px 4px rgba(0,0,0,.18)}
/* ---- 材料页顶部的「待你确认」条 ---- */
.apvbar{display:flex;align-items:center;justify-content:space-between;margin:10px 16px 0;padding:12px 14px;border-radius:12px;background:#eef3ff;color:#2a4fbf;font-size:13px;text-decoration:none}
.apvbar b{font-size:15px;font-variant-numeric:tabular-nums}
.apvbar .arr{opacity:.65}
.apvbar:active{background:#e3ebff}
