* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", system-ui, sans-serif; background: #f2f5f7; color: #22313f; }
a { color: #1e6fb8; text-decoration: none; }
button { cursor: pointer; }
.btn { border: none; border-radius: 6px; padding: 9px 18px; font-size: 14px; background: #1e6fb8; color: #fff; }
.btn:hover { background: #175a97; }
.btn.gray { background: #8a9baa; } .btn.gray:hover { background: #748594; }
.btn.green { background: #2e9e5b; } .btn.green:hover { background: #26854c; }
.btn.red { background: #d9534f; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
input, select, textarea { border: 1px solid #cfd8e0; border-radius: 6px; padding: 9px 10px; font-size: 14px; width: 100%; background: #fff; }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; accent-color: #1e6fb8; }
textarea { resize: vertical; }
label.f { display: block; font-size: 13px; color: #5a6b7b; margin: 10px 0 4px; }

.topbar { background: #14456f; color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .logo { font-size: 17px; font-weight: bold; }
.topbar .role-tag { font-size: 12px; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 12px; }
.topbar .spacer { flex: 1; }
.topbar button { background: rgba(255,255,255,.15); border: none; color: #fff; border-radius: 6px; padding: 7px 14px; font-size: 13px; }

.nav { display: flex; gap: 4px; background: #fff; border-bottom: 1px solid #e3e9ee; padding: 0 16px; overflow-x: auto; }
.nav button { border: none; background: none; padding: 13px 16px; font-size: 14px; color: #5a6b7b; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav button.on { color: #1e6fb8; border-bottom-color: #1e6fb8; font-weight: bold; }

.wrap { max-width: 1080px; margin: 18px auto; padding: 0 14px; }
.card { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(20,60,90,.07); }
.card h3 { font-size: 15px; margin-bottom: 12px; color: #14456f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; }
.grid .full { grid-column: 1 / -1; }

table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { background: #eef3f7; text-align: left; padding: 8px 10px; }
table.list td { padding: 8px 10px; border-top: 1px solid #eef1f4; vertical-align: top; }
table.list tr:hover td { background: #f7fafc; }
.tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 10px; }
.tag.warn { background: #fff4e0; color: #b26b00; }
.tag.ok { background: #e3f6ea; color: #1e7a42; }
.tag.blue { background: #e3effa; color: #1e6fb8; }
.tag.gray { background: #eceff2; color: #6b7885; }
.tag.red { background: #fdeaea; color: #b02a2a; }
.tag.orange { background: #fff0e0; color: #c2670a; }

.login-box { max-width: 420px; margin: 8vh auto; background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 24px rgba(20,60,90,.12); }
.login-box h2 { text-align: center; color: #14456f; margin-bottom: 4px; }
.login-box .sub { text-align: center; font-size: 12px; color: #8a99a8; margin-bottom: 18px; }
.tabs2 { display: flex; margin-bottom: 16px; border-bottom: 1px solid #e3e9ee; }
.tabs2 button { flex: 1; border: none; background: none; padding: 10px; font-size: 14px; color: #5a6b7b; }
.tabs2 button.on { color: #1e6fb8; border-bottom: 2px solid #1e6fb8; font-weight: bold; }
.err { background: #fdecec; color: #b03a38; border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-top: 10px; }
.msg { background: #e3f6ea; color: #1e7a42; border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-top: 10px; }

.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid #dde5ec; }
.photo-add { width: 120px; height: 90px; border: 1.5px dashed #a9bac8; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #6b7885; font-size: 26px; cursor: pointer; background: #fafcfe; }
.photo-add.wm-re { flex-direction: column; gap: 2px; font-size: 20px; border-color: #7ea9cc; color: #1e6fb8; }
.photo-add.wm-re span { font-size: 11px; }
/* 单张照片：改时间按钮 + 单独时间标签 */
.ph-time { position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 50%; background: rgba(30,111,184,.92); color: #fff; font-size: 12px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ph-time:hover { background: #1e6fb8; transform: scale(1.08); }
.ph-tag { position: absolute; left: 4px; bottom: 4px; max-width: 112px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0,0,0,.62); color: #fff; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tag.builtin { background: rgba(30,122,66,.9); }
.ph-tag.own { background: rgba(196,110,20,.92); }
/* 「照片已带水印」开关 */
.wm-switch { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 9px 11px;
  border: 1px solid #d8e4ee; border-radius: 7px; background: #fff; cursor: pointer; user-select: none; }
.wm-switch.on { border-color: #7cc79a; background: #f2fbf6; }
.wm-sw { flex: 0 0 auto; width: 34px; height: 19px; border-radius: 10px; background: #c9d4de; position: relative; transition: background .16s; margin-top: 2px; }
.wm-sw i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .16s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.wm-switch.on .wm-sw { background: #38b06a; }
.wm-switch.on .wm-sw i { left: 17px; }
.wm-switch b { display: block; font-size: 13px; color: #14456f; }
.wm-switch em { display: block; font-style: normal; font-size: 11.5px; color: #7b8b9a; margin-top: 2px; line-height: 1.5; }
.photo-add.raw { border-color: #7cc79a; color: #1e7a42; background: #f4fcf7; }
/* 水印设置面板 */
.wm-panel { margin-top: 14px; border: 1px solid #d8e4ee; background: #f6fafd; border-radius: 8px; padding: 12px 14px 14px; }
.wm-head { font-size: 13px; font-weight: bold; color: #14456f; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wm-panel .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 2px; }
.wm-panel .grid input { padding: 7px 9px; font-size: 13px; }
.wm-preview { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wm-preview canvas { width: 300px; max-width: 100%; border-radius: 6px; border: 1px solid #dde5ec; display: block; }
.drug-row { display: grid; grid-template-columns: 2fr 1.1fr 1.35fr 1.3fr 34px; gap: 6px; margin-bottom: 6px; align-items: start; }
.drug-row .dg-cell { display: flex; flex-direction: column; gap: 4px; }
.drug-row .dg-name-other { font-size: 13px; padding: 6px 9px; }
.drug-row .dg-conc-wrap { position: relative; }
.drug-row .dg-conc-wrap input { padding-right: 24px; }
.drug-row .dg-suffix { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #5a6b7b; pointer-events: none; }
@media (max-width: 640px) { .drug-row { grid-template-columns: 1fr 1fr; } }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 4px rgba(20,60,90,.07); }
.stat .n { font-size: 26px; font-weight: bold; color: #1e6fb8; }
.stat .t { font-size: 12px; color: #8a99a8; }
.empty { text-align: center; color: #9aa8b5; padding: 30px 0; font-size: 13px; }
.muted { color: #8a99a8; font-size: 12px; }
section.view { display: none; } section.view.on { display: block; }
@media (max-width: 640px) { .wrap { margin: 10px auto; } .card { padding: 13px; } }

/* ==================== 顶部加载条 / 提示条 ==================== */
#loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, #2e9e5b, #4fd18b); opacity: 0; transition: width .18s ease, opacity .2s; }
#loadbar.on { opacity: 1; width: 72%; }
#loadbar.on::after { content: ''; position: absolute; right: 0; top: 0; width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, #fff); animation: lb .9s linear infinite; }
@keyframes lb { 0% { opacity: .2 } 50% { opacity: 1 } 100% { opacity: .2 } }
.wrap { transition: opacity .12s; } .wrap.dim { opacity: .45; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 14px); z-index: 9998;
  background: #14456f; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 22px;
  box-shadow: 0 6px 22px rgba(20,60,90,.28); opacity: 0; pointer-events: none; transition: all .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==================== 上传进度浮层（右下角） ==================== */
#up-prog { position: fixed; right: 22px; bottom: 22px; z-index: 9997; width: 330px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #e3ebf2; border-radius: 12px; padding: 12px 15px 11px;
  box-shadow: 0 12px 34px rgba(16,48,74,.18); opacity: 0; transform: translateY(14px);
  transition: opacity .2s, transform .24s; }
#up-prog.on { opacity: 1; transform: translateY(0); }
#up-prog .up-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #16324a; }
#up-prog .up-head b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#up-prog .up-head span { font-weight: 700; color: #2e9e5b; font-variant-numeric: tabular-nums; }
#up-prog .up-bar { height: 7px; border-radius: 5px; background: #eef3f8; margin: 9px 0 7px; overflow: hidden; }
#up-prog .up-bar i { display: block; height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, #2e9e5b, #4fd18b); transition: width .18s ease; }
#up-prog .up-sub { font-size: 11.5px; color: #8a99a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#up-prog.done .up-bar i { background: linear-gradient(90deg, #1f8a4c, #6fdc9e); }
/* 浏览器/代理未上报总量时的“不确定进度”滚动条 */
#up-prog.indet .up-bar i { width: 38% !important; transition: none; animation: upIndet 1.15s ease-in-out infinite; }
@keyframes upIndet { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
#up-prog.err .up-head span { color: #d9453d; }
#up-prog.err .up-bar i { background: linear-gradient(90deg, #d9453d, #f08a84); }
#up-prog.err .up-sub { color: #d9453d; }
@media (max-width: 640px) { #up-prog { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ==================== 概览仪表盘 ==================== */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; border-radius: 14px; padding: 22px 26px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(120deg, #14456f 0%, #1e6fb8 62%, #2b8ac9 100%);
  box-shadow: 0 6px 22px rgba(20,60,90,.20); }
.hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-hi { font-size: 21px; font-weight: bold; letter-spacing: .5px; }
.hero-sub { font-size: 12.5px; opacity: .82; margin-top: 4px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hpill { font-size: 12px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22);
  padding: 4px 11px; border-radius: 20px; }
.hpill b { font-size: 14px; margin-left: 2px; }
.hpill.warn { background: rgba(255,196,86,.24); border-color: rgba(255,196,86,.6); }
.hero-r { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.hero-r .ring { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 9; }
.ring-fg { fill: none; stroke: #5fe0a0; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-txt b { font-size: 22px; line-height: 1; }
.ring-txt span { font-size: 10.5px; opacity: .8; margin-top: 3px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 15px 16px;
  box-shadow: 0 1px 4px rgba(20,60,90,.07); border-left: 4px solid #1e6fb8; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,60,90,.12); }
.kpi .ki { font-size: 22px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; background: #eef4fa; }
.kpi .kn { font-size: 23px; font-weight: bold; color: #14456f; line-height: 1.1; }
.kpi .kt { font-size: 12px; color: #8a99a8; margin-top: 2px; }
.kpi.c-green { border-left-color: #2e9e5b; } .kpi.c-green .ki { background: #e8f7ee; }
.kpi.c-orange { border-left-color: #e59a2f; } .kpi.c-orange .ki { background: #fdf3e3; }
.kpi.c-teal { border-left-color: #16a3a3; } .kpi.c-teal .ki { background: #e5f7f7; }

/* 阶段分布柱状 */
.funnel { display: flex; align-items: flex-end; gap: 10px; height: 146px; margin-top: 6px; }
.fun-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; cursor: pointer; }
.fun-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.fun-bar { width: 60%; max-width: 54px; min-height: 6px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #6cb3e8, #1e6fb8); position: relative; transition: filter .15s, transform .15s; }
.fun-bar.done { background: linear-gradient(180deg, #6fd6a0, #2e9e5b); }
.fun-bar span { position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: bold; color: #14456f; }
.fun-col:hover .fun-bar { filter: brightness(1.1); transform: scaleY(1.03); }
.fun-lab { font-size: 11px; color: #7b8b9a; text-align: center; line-height: 1.45; margin-top: 6px; white-space: nowrap; }

/* 概览两列 */
.dash-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.dash-cols > div > .card:last-child { margin-bottom: 16px; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } .hero { flex-direction: column; align-items: flex-start; } }

/* 项目卡片 */
.proj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pcard { border: 1px solid #e3eaf1; border-radius: 11px; padding: 14px; background: #fff; cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.pcard:hover { box-shadow: 0 6px 18px rgba(20,60,90,.12); transform: translateY(-2px); border-color: #c3d9ec; }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pcard-name { font-size: 14px; font-weight: bold; color: #14456f; line-height: 1.35; }
.pcard-meta { font-size: 11.5px; margin-bottom: 10px; }
.pcard-note { font-size: 12px; color: #4b5f70; margin: 8px 0 9px; min-height: 17px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 进度条 */
.pbar-line { display: flex; align-items: center; gap: 8px; }
.pbar-line .pbar { flex: 1; min-width: 0; }
.pbar-num { font-size: 11px; color: #7b8b9a; min-width: 32px; text-align: right; flex: 0 0 auto; }
.pbar { position: relative; height: 9px; border-radius: 6px; background: #eaeff4; }
.pbar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4aa3e0, #1e6fb8); transition: width .6s ease; }
.pbar.done .pbar-fill { background: linear-gradient(90deg, #4fd18b, #2e9e5b); }
.pbar.warn .pbar-fill { background: linear-gradient(90deg, #f5c063, #e59a2f); }
.pbar.sm { height: 7px; }
/* 7 段刻度进度条 */
.pbar.steps { height: 8px; background: transparent; display: flex; gap: 3px; overflow: visible; margin-top: 4px; }
.pbar-seg { flex: 1; border-radius: 3px; background: #e6ecf2; overflow: hidden; }
.pbar-seg i { display: block; height: 100%; width: 0; background: #7fb8e4; transition: width .35s; }
.pbar-seg.on i { width: 100%; background: linear-gradient(90deg, #4aa3e0, #1e6fb8); }
.pbar-seg.cur i { width: 100%; background: linear-gradient(90deg, #7fc8f5, #4aa3e0); animation: pulse 1.8s ease-in-out infinite; }
.pbar.steps.done .pbar-seg.on i { background: linear-gradient(90deg, #4fd18b, #2e9e5b); }
.pbar.steps.warn .pbar-seg.cur i { background: linear-gradient(90deg, #f7cf82, #e59a2f); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .58 } }

/* 阶段筛选 chips */
.stage-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid #d9e3ec; background: #fff; color: #5a6b7b; border-radius: 16px;
  padding: 5px 12px; font-size: 12px; transition: all .14s; }
.chip b { color: #14456f; margin-left: 2px; }
.chip:hover { border-color: #a9c8e2; color: #1e6fb8; }
.chip.on { background: #1e6fb8; border-color: #1e6fb8; color: #fff; }
.chip.on b { color: #fff; }

/* 待办 / 时间线 */
.todo-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f6; cursor: pointer; }
.todo-row:last-child { border-bottom: none; }
.todo-row:hover { background: #f8fbfd; }
.todo-dot { width: 7px; height: 7px; border-radius: 50%; background: #e59a2f; flex: 0 0 auto; }
.todo-row b { font-size: 13px; color: #14456f; }
.todo-row .muted { font-size: 11.5px; }
.todo-go { margin-left: auto; font-size: 12px; color: #1e6fb8; white-space: nowrap; }
.tl { padding-left: 4px; }
.tl-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef1f4; }
.tl-row:last-child { border-bottom: none; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: #4aa3e0; margin-top: 6px; flex: 0 0 auto; }
.tl-main { font-size: 12.5px; color: #33475b; line-height: 1.5; }
.tl-main b { color: #14456f; }

/* 项目详情：进度卡片 / 步骤条 */
.prog-card { background: linear-gradient(180deg, #fbfdff, #fff 60%); }
.stepper { display: flex; align-items: flex-start; gap: 0; margin: 6px 0 16px; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; position: relative; }
.step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e4ebf2; z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: linear-gradient(90deg, #4fd18b, #2e9e5b); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: #eef2f6; color: #93a4b3;
  display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; z-index: 1;
  border: 2px solid #e4ebf2; transition: all .2s; }
.step.done .step-dot { background: #2e9e5b; border-color: #2e9e5b; color: #fff; font-size: 15px; }
.step.cur .step-dot { background: #fff; border-color: #1e6fb8; box-shadow: 0 0 0 4px rgba(30,111,184,.14); }
.step-name { font-size: 11px; color: #8a99a8; margin-top: 6px; text-align: center; white-space: nowrap; }
.step.done .step-name { color: #2e9e5b; }
.step.cur .step-name { color: #1e6fb8; font-weight: bold; }
.prog-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prog-now { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.prog-now b { font-size: 15px; color: #14456f; }
.prog-head .pbar-line { flex: 0 0 260px; max-width: 46%; }
.prog-note { font-size: 12.5px; color: #4b5f70; background: #f5f9fc; border-radius: 7px; padding: 9px 12px; margin-top: 12px; }
.prog-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cert-box { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 11px 13px;
  border-radius: 9px; border: 1px dashed #e0b158; background: #fffaf0; }
.cert-box.ok { border-style: solid; border-color: #a7dcbe; background: #f4fcf7; }
.cert-box .cert-ico { font-size: 22px; }
.cert-box .cert-main { flex: 1; min-width: 160px; }
.cert-box .cert-main b { font-size: 13px; color: #14456f; }
.cert-box .cert-main .muted { font-size: 11.5px; margin-top: 2px; }
.cert-box .cert-act { display: flex; gap: 6px; flex-wrap: wrap; }
.prog-logs { margin-top: 14px; }
.prog-logs summary { cursor: pointer; font-size: 12.5px; color: #1e6fb8; outline: none; }

/* ==================== 项目管理：工具条 / 提醒条 / 紧凑卡片 ==================== */
.ptool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ptool .btn { white-space: nowrap; }
.ptool-search { display: flex; gap: 6px; flex: 1; min-width: 240px; max-width: 440px; }
.ptool-search input { flex: 1; padding: 8px 12px; font-size: 13px; }
.pt-form { margin-bottom: 14px; }
.pt-form h3 { position: relative; }
.pt-close { float: right; font-size: 12px; font-weight: normal; color: #8a99a8; background: none;
  border: none; cursor: pointer; padding: 2px 4px; border-radius: 5px; }
.pt-close:hover { color: #1e6fb8; background: #eef4fa; }

.alert-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; margin-bottom: 14px;
  border-radius: 10px; background: #fff8ec; border: 1px solid #f2d49b; cursor: pointer; transition: all .15s; }
.alert-bar:hover { background: #fff3de; }
.alert-bar.on { background: #fdeedc; border-color: #e59a2f; }
.ab-ico { width: 20px; height: 20px; border-radius: 50%; background: #e59a2f; color: #fff; font-size: 13px;
  font-weight: bold; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; }
.ab-txt { flex: 1; font-size: 13px; color: #7a5520; }
.ab-txt b { color: #b5691a; font-size: 15px; margin-right: 2px; }
.ab-act { font-size: 12.5px; color: #b5691a; white-space: nowrap; }

.pt-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }
.pt-count { font-size: 12px; color: #8a99a8; white-space: nowrap; }
.row-overdue { background: #fffafa; }

.proj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 12px; }
.pcard2 { position: relative; background: #fff; border: 1px solid #e5ecf3; border-left: 4px solid #cdd9e4;
  border-radius: 10px; padding: 13px 14px 11px; cursor: pointer;
  transition: transform .14s, box-shadow .14s, border-color .14s; }
.pcard2:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,60,90,.11); border-color: #bcd5e9; }
.pcard2.st-init { border-left-color: #b4b2a9; }
.pcard2.st-verify { border-left-color: #4aa3e0; }
.pcard2.st-building { border-left-color: #1e6fb8; }
.pcard2.st-built { border-left-color: #1d9e75; }
.pcard2.st-inspecting { border-left-color: #e59a2f; }
.pcard2.st-cert_wait { border-left-color: #d9762f; }
.pcard2.st-done { border-left-color: #2e9e5b; }
.pcard2.is-overdue { border-left-color: #e05c4b; background: #fffafa; }
.pc2-r1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.pc2-r1 .tag { flex: 0 0 auto; }
.pc2-name { font-size: 14px; font-weight: bold; color: #14456f; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc2-sub { font-size: 11.5px; color: #8a99a8; margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc2-prog { margin-bottom: 9px; }
.pc2-idle { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 9px;
  border-radius: 7px; background: #f5f8fa; color: #5a6b7b; margin-bottom: 9px;
  overflow: hidden; white-space: nowrap; }
.pc2-dot { width: 6px; height: 6px; border-radius: 50%; background: #9bb0c2; flex: 0 0 auto; }
.pc2-idle-t { font-weight: bold; flex: 0 0 auto; }
.pc2-last { color: #8a99a8; overflow: hidden; text-overflow: ellipsis; font-weight: normal; }
.pc2-idle.idle-ok { background: #f1f9f4; color: #2e7d52; }
.pc2-idle.idle-ok .pc2-dot { background: #46b37a; }
.pc2-idle.idle-warn { background: #fdf7e9; color: #9a6b16; }
.pc2-idle.idle-warn .pc2-dot { background: #e5a02f; }
.pc2-idle.idle-bad { background: #fdeeed; color: #b03a2e; }
.pc2-idle.idle-bad .pc2-dot { background: #e05c4b; animation: pulse 1.8s ease-in-out infinite; }
.pc2-idle.idle-none { background: #f4f6f8; color: #8a99a8; }
.pc2-idle.idle-none .pc2-dot { background: #b9c6d1; }
.pc2-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 9px; border-top: 1px solid #f0f3f6; }
.pc2-foot .muted { font-size: 11.5px; }
.pc2-btns { display: flex; gap: 6px; }

.idle-tag { display: inline-block; padding: 2px 8px; border-radius: 11px; font-size: 11.5px; white-space: nowrap; }
.idle-tag.idle-ok { background: #eaf7ef; color: #2e7d52; }
.idle-tag.idle-warn { background: #fdf3e0; color: #9a6b16; }
.idle-tag.idle-bad { background: #fdeeed; color: #b03a2e; font-weight: bold; }
.idle-tag.idle-none { background: #f0f3f6; color: #8a99a8; }

@media (max-width: 640px) {
  .ptool-search { max-width: none; width: 100%; order: 3; }
  .proj-cards { grid-template-columns: 1fr; }
}
.todo-dot.red { background: #e05c4b; box-shadow: 0 0 0 3px rgba(224,92,75,.16); }

/* ---------- 施工记录两个板块（白蚁防治 / 四害防治）切换条 ---------- */
.rec-seg { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.rec-seg .seg button { padding: 6px 16px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #4a5b6c; }
.rec-seg .seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16,42,67,.12); }
.rec-seg-tip { font-size: 12px; color: #8b98a5; letter-spacing: .5px; }
