/* ============ 维修端 ============ */
.m-hero.staff {
  background:
    radial-gradient(120% 120% at 92% 0%, #0fb5a6 0%, #0b5d63 34%, #0b2545 64%, #07182e 100%);
}
.staff-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 6px; background: rgba(94, 234, 212, 0.16); border: 1px solid rgba(94, 234, 212, 0.28);
  color: #7ff0dd; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
}
.staff-greet { margin-top: 22px; }
.staff-greet .hi { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.staff-greet h1 { font-size: 23px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }
.staff-greet .sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.58); margin-top: 6px; }
.staff-stats {
  position: relative; z-index: 2; margin: -36px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: 16px; padding: 13px 4px; box-shadow: var(--shadow);
}
.staff-stats > div { text-align: center; position: relative; }
.staff-stats > div + div::before { content: ""; position: absolute; left: 0; top: 16%; height: 68%; width: 1px; background: var(--line); }
.staff-stats b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.staff-stats b.warn { color: var(--amber); }
.staff-stats b.teal { color: #0a9c8d; }
.staff-stats span { font-size: 10.5px; color: var(--muted); }

/* 任务卡 */
.task-card {
  position: relative; background: #fff; border-radius: 15px; padding: 15px 15px 12px 17px;
  border: 1px solid rgba(15, 29, 51, 0.045); box-shadow: var(--shadow-sm); overflow: hidden;
  cursor: pointer; transition: transform 0.18s var(--ease);
}
.task-card + .task-card { margin-top: 10px; }
.task-card:active { transform: scale(0.988); }
.task-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.task-card.urgent::before { background: var(--amber); }
.task-card.critical::before { background: var(--red); }
.task-card.signing::before { background: var(--purple); }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-title { font-size: 14.5px; font-weight: 700; margin-top: 8px; line-height: 1.45; }
.tc-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.tc-sub .ico { width: 12px; height: 12px; color: #a8b5c7; }
.tc-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--soft); margin-top: 8px; }
.tc-meta .ico { width: 12px; height: 12px; }
.tc-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 11px;
  padding-top: 10px; border-top: 1px dashed var(--line-2);
}
.tc-action { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; font-weight: 600; }
.tc-action .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.tc-go { font-size: 12px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 2px; }

/* 项目行 */
.proj-row {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 15px; padding: 14px;
  border: 1px solid rgba(15, 29, 51, 0.045); box-shadow: var(--shadow-sm); cursor: pointer;
}
.proj-row + .proj-row { margin-top: 9px; }
.proj-row .pr-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--teal-50); color: #0a9c8d;
}
.proj-row .pr-main { flex: 1; min-width: 0; }
.proj-row .pr-name { font-size: 13.5px; font-weight: 700; }
.proj-row .pr-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.proj-row .pr-progress { width: 54px; text-align: right; }
.proj-row .pr-progress b { font-size: 13px; }
.proj-row .pr-progress span { display: block; font-size: 10px; color: var(--soft); }

/* 详情 */
.staff-hero {
  border-radius: 18px; padding: 17px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #0fb5a6 0%, #0b4f5c 38%, #0b2545 72%, #07182e 100%);
}
.staff-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.32;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 90% at 90% 0%, #000, transparent 72%);
}
.staff-hero > * { position: relative; }
.staff-hero .dh-title { font-size: 17.5px; }
.staff-hero .dh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.staff-hero .dh-code { font-size: 11px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.05em; }
.staff-hero .dh-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, 0.64); margin-top: 6px; }
.staff-hero .dh-meta { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.staff-hero .dh-meta div { font-size: 10.5px; color: rgba(255, 255, 255, 0.55); }
.staff-hero .dh-meta b { display: block; font-size: 12.5px; color: #fff; font-weight: 600; margin-top: 2px; }
.chip.glass { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }

.steps-wrap { background: #fff; border-radius: 14px; padding: 15px 12px 12px; border: 1px solid rgba(15, 29, 51, 0.045); margin-top: 12px; }
.steps-wrap .step .label { font-size: 10.5px; }

.action-panel {
  border-radius: 16px; padding: 16px; margin-top: 12px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 60%, #fff 100%);
  border: 1px solid #dfe9fb; display: flex; align-items: center; gap: 12px;
}
.action-panel.teal { background: linear-gradient(135deg, #e9fbf9, #f8fffe); border-color: #d6f2ee; }
.action-panel.amber { background: linear-gradient(135deg, #fff8ec, #fffdf8); border-color: #fbecd2; }
.action-panel.purple { background: linear-gradient(135deg, #f4f0ff, #fdfbff); border-color: #e7dfff; }
.ap-ic {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(27, 91, 247, 0.12);
}
.action-panel.teal .ap-ic { color: #0a9c8d; box-shadow: 0 4px 12px rgba(15, 181, 166, 0.14); }
.action-panel.amber .ap-ic { color: var(--amber); }
.action-panel.purple .ap-ic { color: var(--purple); }
.ap-main { flex: 1; min-width: 0; }
.ap-main b { font-size: 13.5px; }
.ap-main p { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.action-panel .btn { flex: none; }

.section-bar { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; }
.section-bar h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.section-bar h3 .ico { color: var(--brand); width: 16px; height: 16px; }
.section-bar .extra { font-size: 11.5px; color: var(--muted); }

.log-line { position: relative; padding: 0 0 16px 18px; border-left: 2px solid #eef2f8; margin-left: 4px; }
.log-line:last-child { border-left-color: transparent; padding-bottom: 0; }
.log-line::before {
  content: ""; position: absolute; left: -5px; top: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px #eef4ff;
}
.log-line .lt { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.log-line .lm { font-size: 10.5px; color: var(--soft); margin-top: 4px; }
.log-line .photo-grid { grid-template-columns: repeat(4, 1fr); margin-top: 7px; }

/* 签收方式 */
.mode-grid { display: grid; gap: 9px; }
.mode-opt {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: 13px;
  border: 1.5px solid var(--line); background: #fbfcff; cursor: pointer; transition: all 0.18s;
}
.mode-opt.on { border-color: var(--brand); background: var(--brand-50); }
.mode-opt .mo-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--brand); flex: none; border: 1px solid var(--line); }
.mode-opt b { display: block; font-size: 13px; }
.mode-opt span { font-size: 11.5px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; }

/* 进度卡 */
.day-card {
  background: #fff; border-radius: 15px; border: 1px solid rgba(15, 29, 51, 0.045);
  padding: 14px 15px; box-shadow: var(--shadow-sm);
}
.day-card + .day-card { margin-top: 10px; }
.day-card .dc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-card .dc-date { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.day-card .dc-date .ico { width: 14px; height: 14px; color: var(--teal); }
.day-card .dc-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-top: 8px; }
.day-card .dc-meta { display: flex; gap: 12px; font-size: 10.5px; color: var(--soft); margin-top: 8px; }
.day-card .dc-actions { display: flex; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.day-card .dc-actions .btn { flex: 1; }
.day-card .dc-done { margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: #f5faf7; color: #1d6b47; font-size: 11.5px; }
.day-card .dc-done.warn { background: #fff8ee; color: #96631a; }

/* 物料申请 */
.mat-card {
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcff;
  padding: 12px 13px; margin-top: 10px;
}
.mat-card:first-of-type { margin-top: 0; }
.mat-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.mat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.mat-line em { font-style: normal; color: var(--soft); font-size: 10.5px; margin-left: 4px; }
.mat-line > span:last-child { color: var(--muted); white-space: nowrap; font-size: 11.5px; }
.mat-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 10.5px; color: var(--soft); }
.mat-total b { font-size: 14px; color: var(--ink); }
.mat-tip { margin-top: 8px; font-size: 11px; color: var(--muted); background: #f2f6fc; border-radius: 8px; padding: 7px 9px; line-height: 1.5; }
.mat-tip.done { background: var(--green-50); color: #0b7d49; }
.mat-tip.reject { background: var(--red-50); color: var(--red); }
.mat-list { display: flex; flex-direction: column; gap: 6px; }
.mat-pick { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mat-pick b { font-size: 12.5px; display: block; }
.mat-pick span { font-size: 10.5px; color: var(--soft); display: block; margin-top: 1px; }
.mat-use-list { display: flex; flex-direction: column; }
.mat-use-row { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.mat-use-row:last-child { border-bottom: 0; }
.mat-use-row .grow b { display: block; font-size: 13px; }
.mat-use-row .grow span { display: block; font-size: 10.5px; color: var(--soft); margin-top: 2px; }
.mat-use-row .input { width: 76px; flex: none; text-align: center; }
.mat-use-cancel { display: flex; align-items: center; gap: 4px; flex: none; font-size: 10.5px; color: var(--muted); }
.mat-use-cancel input { accent-color: var(--brand); }
.check-list { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.check-row:last-child { border-bottom: 0; }
.check-row input { margin-top: 3px; accent-color: var(--brand); flex: none; }

/* 我的 */
.me-skills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.me-skills .chip { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.14); }
.me-row { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.me-row .avatar { width: 56px; height: 56px; font-size: 19px; border: 2px solid rgba(255, 255, 255, 0.4); }
.me-name { font-size: 19px; font-weight: 700; color: #fff; }
.me-unit { font-size: 12px; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }
.me-stats {
  margin: -42px 16px 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: 16px; padding: 14px 6px; box-shadow: 0 12px 30px rgba(15, 29, 51, 0.12);
}
.me-stats > div { text-align: center; position: relative; }
.me-stats > div + div::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: var(--line); }
.me-stats b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.me-stats span { font-size: 10.5px; color: var(--muted); }
.menu-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(15, 29, 51, 0.045); }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 14px 15px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; background: #fff; width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #f4f7fc; color: #5b7091; }
.menu-item b { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.menu-item .ico.chev { width: 15px; height: 15px; color: #c3cfe0; }
.menu-item:active { background: #fafcff; }

/* 登录 */
.staff-login {
  min-height: 100dvh; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column;
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 90% at 10% 0%, #0fb5a6 0%, #0b4f5c 32%, #0b2545 62%, #07182e 100%);
}
.staff-login::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(80% 60% at 20% 0%, #000, transparent 70%);
}
.staff-login .login-brand { position: relative; padding-top: calc(72px + env(safe-area-inset-top)); text-align: center; }
.staff-login .login-brand .logo-tile { margin: 0 auto 16px; width: 58px; height: 58px; border-radius: 17px; }
.staff-login .login-brand h1 { font-size: 25px; font-weight: 700; letter-spacing: 0.04em; }
.staff-login .login-brand p { font-size: 11.5px; color: rgba(255, 255, 255, 0.54); margin-top: 6px; letter-spacing: 0.1em; }
.staff-login .login-card {
  position: relative; margin-top: 30px; background: #fff; border-radius: 22px; padding: 22px 20px;
  color: var(--ink); box-shadow: 0 30px 70px rgba(3, 15, 33, 0.4);
}
.staff-login .login-card h2 { font-size: 18px; font-weight: 700; }
.staff-login .login-card .lead { font-size: 12px; color: var(--muted); margin-top: 4px; margin-bottom: 18px; }
.staff-login .login-card .field + .field { margin-top: 13px; }
.staff-login .login-card .btn-block { margin-top: 18px; }
.staff-login .login-or { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: #b3bfd0; font-size: 11px; }
.staff-login .login-or::before, .staff-login .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.staff-login .login-tip { text-align: center; font-size: 10.5px; color: var(--soft); margin-top: 12px; line-height: 1.7; }
.staff-login .login-foot { position: relative; margin-top: auto; padding-top: 22px; text-align: center; font-size: 10px; color: rgba(255, 255, 255, 0.34); }
.role-note { display: flex; gap: 7px; align-items: center; font-size: 11px; color: #0a9c8d; background: var(--teal-50); border-radius: 9px; padding: 9px 11px; margin-top: 14px; }

/* 现场杂费录入 */
.exp-row { display: grid; grid-template-columns: 1.6fr .7fr .6fr 1fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.exp-row .input { height: 36px; min-width: 0; }
.exp-row .btn { height: 30px; padding: 0 7px; }
.labor-row { display: grid; grid-template-columns: 1.2fr 1fr .65fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.labor-row .input, .labor-row .select { height: 36px; min-width: 0; }
.labor-row .btn { height: 30px; padding: 0 7px; }
.group-reminder { display: flex; gap: 8px; align-items: flex-start; background: #fff1f0; border: 1px solid #ffb4ad; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.7; }
.group-reminder svg { flex: none; margin-top: 2px; }
.group-reminder b { color: #b42318; }
.group-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #b42318; cursor: pointer; }
.group-check input { width: 16px; height: 16px; accent-color: #e5484d; }
.group-check .req { color: #e5484d; font-weight: 700; }
