/* ------------------------------------------------------------------
   V10 页面层：在模板视觉规范之上补齐业务组件
   ------------------------------------------------------------------ */

/* ---------- 基础 ---------- */
.mono { font-family: var(--mono); }
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-amber { color: #B07414; }
.text-danger { color: var(--danger); }
.hidden { display: none !important; }

body { min-height: 100vh; }

.hero-logo,
.admin-logo {
  position: absolute;
  right: -34px;
  top: -26px;
  width: 190px;
  height: 190px;
  object-fit: contain;
  opacity: .14;
  pointer-events: none;
  user-select: none;
  transform: rotate(8deg);
  filter: brightness(0) invert(1);
}

.hero-store-row { display: flex; align-items: center; gap: 8px; min-width: 0; }

.hero-back {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero-back .icon { width: 17px; height: 17px; }

.hero-actions { display: flex; align-items: center; gap: 9px; flex: none; }

.avatar-sm,
.avatar-xs,
.avatar-lg,
.avatar {
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.avatar-sm { width: 34px; height: 34px; font-size: 12px; border: 1px solid rgba(255, 255, 255, .35); }
.avatar-xs { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 54px; height: 54px; font-size: 20px; }
.avatar { width: 40px; height: 40px; font-size: 14px; }

/* ---------- 内容层补充 ---------- */
.sheet-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
}

.card-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.card-note-inline { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ---------- 公告轮播条 ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 11px 7px 8px;
  border-radius: var(--radius-md);
  background: #FFFDFB;
  border: 1px solid #F4E7E3;
  box-shadow: 0 8px 22px -22px rgba(160, 40, 20, .55);
  margin-bottom: 12px;
}

.notice-bar-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-tile);
}
.notice-bar-badge .icon { width: 17px; height: 17px; }

.notice-bar-track { position: relative; flex: 1; min-width: 0; height: 18px; overflow: hidden; }

.notice-rot-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #5A2A22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.notice-rot-item.active { opacity: 1; transform: none; }
.notice-bar-go { flex: none; color: #C5BDB4; }
.notice-bar-go .icon { width: 16px; height: 16px; }

/* ---------- 提醒条 ---------- */
.alert + .alert { margin-top: -4px; }
.alert strong { display: block; font-size: 12px; font-weight: 700; }
.alert em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: #8A4A41; line-height: 1.5; }
.alert.alert-danger { background: #FDECEA; border-color: #F7CFC9; color: #8C1B12; }
.alert.alert-danger .alert-icon { background: var(--danger); }

/* ---------- 卡片内金额 ---------- */
.sum-value {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
}
button.sum-value {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
button.sum-value:hover { color: var(--brand); }

/* ---------- 到期 / 健康证列表 ---------- */
.due-list { margin-top: 2px; }
.due-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
.due-row + .due-row { border-top: 1px dashed var(--line); }
.due-name { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }
.due-name span { flex: none; }
.due-time { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ink); }

/* ---------- 标签补充 ---------- */
.tag.plain { background: var(--bg-2); color: var(--ink-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-tile); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #E2D8CE; color: var(--ink); }
.btn-danger-ghost { background: #fff; border-color: #F0D1CB; color: var(--danger); }
.btn-danger-ghost:hover { background: #FDF1EF; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 12px; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .icon { width: 16px; height: 16px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea.input { height: auto; padding: 11px 13px; line-height: 1.6; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9A9289 50%), linear-gradient(135deg, #9A9289 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus { border-color: #E9B2AC; box-shadow: 0 0 0 3px rgba(215, 25, 32, .09); }
.input:disabled { background: var(--bg-2); color: var(--muted); }
.input::placeholder { color: #B8B0A6; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 13px; color: #A79E93; pointer-events: none; }
.input-wrap .input { padding-left: 37px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-span { grid-column: span 2; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.form-hint { font-size: 11px; color: var(--muted); }

/* ---------- 分段 / 筛选 ---------- */
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #EDE7E0;
}
.seg-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.seg-tab.active { background: #fff; color: var(--brand); box-shadow: 0 6px 16px -14px rgba(80, 40, 20, .5); }
.seg-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: 9.5px;
  display: inline-grid;
  place-items: center;
}

.filter-row { display: flex; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.chip-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip-filter b { font-family: var(--mono); font-size: 10.5px; font-weight: 700; }
.chip-filter.active { background: var(--brand-soft); border-color: #F3CFCA; color: var(--brand-deep); }

/* ---------- 任务 ---------- */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
  background: #fff;
  border: 1px solid rgba(24, 20, 16, .035);
  border-radius: var(--radius-lg);
  padding: 14px 15px 12px;
  box-shadow: var(--shadow-card);
}
.task-card.is-done { opacity: .72; }
.task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-title-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.task-title-row h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.task-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--brand); }
.task-dot.amber { background: var(--amber); }
.task-dot.green { background: var(--green); }
.task-desc { margin: 7px 0 9px; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }
.task-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-due { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.task-due .icon { width: 13px; height: 13px; }
.task-due.is-overdue { color: var(--danger); font-weight: 700; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.task-actions { display: flex; align-items: center; gap: 7px; }
.task-done-text { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--green); }
.task-assignee { font-size: 10.5px; color: var(--muted); }

.empty-card { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 34px 20px; text-align: center; }
.empty-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.empty-card .check-badge { width: 30px; height: 30px; }
.empty-card .check-badge .icon { width: 16px; height: 16px; }

/* ---------- 效期 ---------- */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.summary-grid strong { display: block; font-family: var(--mono); font-size: 24px; font-weight: 800; color: var(--ink); }
.summary-grid span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted); }

.expiry-list { display: flex; flex-direction: column; gap: 9px; }
.expiry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(24, 20, 16, .04);
  box-shadow: var(--shadow-card);
}
.expiry-item.is-done { opacity: .68; }
.expiry-main { min-width: 0; }
.expiry-name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.expiry-meta { margin-top: 4px; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.expiry-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.expiry-side b { font-family: var(--mono); font-size: 11.5px; }
.expiry-actions { display: flex; gap: 6px; }
.expiry-actions form { display: contents; }

/* ---------- 排班 ---------- */
.day-cell.today { box-shadow: inset 0 0 0 1.5px var(--brand); }
.week-legend { display: flex; align-items: center; gap: 12px; margin-top: 11px; font-size: 10.5px; color: var(--muted); }
.week-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
.legend-dot.muted { background: #D6CDC3; }
.week-legend-hint { margin-left: auto; font-family: var(--mono); }

.shift-list { display: flex; flex-direction: column; }
.shift-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.shift-row + .shift-row { border-top: 1px dashed var(--line); }
.shift-date { width: 52px; flex: none; text-align: center; }
.shift-date b { display: block; font-family: var(--mono); font-size: 12px; }
.shift-date span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.shift-main { flex: 1; min-width: 0; }
.shift-main strong { display: block; font-family: var(--mono); font-size: 13px; }
.shift-main span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }

.leave-list { display: flex; flex-direction: column; }
.leave-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.leave-row + .leave-row { border-top: 1px dashed var(--line); }
.leave-row strong { display: block; font-size: 12.5px; font-weight: 600; }
.leave-row span:not(.tag) { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.leave-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- 我的 ---------- */
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-text { flex: 1; min-width: 0; }
.profile-text strong { display: block; font-size: 17px; font-weight: 800; }
.profile-text span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.profile-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.profile-meta div { min-width: 0; }
.profile-meta span { display: block; font-size: 10px; color: var(--muted); }
.profile-meta b { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; font-weight: 700; }

.menu-list { display: flex; flex-direction: column; }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.menu-row + .menu-row { border-top: 1px dashed var(--line); }
.menu-ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.menu-ico .icon { width: 17px; height: 17px; }
.menu-text { flex: 1; min-width: 0; }
.menu-text strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.menu-text span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.menu-row .chevron { width: 15px; height: 15px; color: #C5BDB4; }

.admin-entry { display: flex; align-items: center; gap: 10px; }
.admin-entry .menu-text strong { font-size: 13px; }

.logout-form { margin-top: 13px; }
.logout-form .btn { color: var(--ink-3); }

/* ---------- 通知 ---------- */
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-card {
  position: relative;
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(24, 20, 16, .04);
  box-shadow: var(--shadow-card);
}
.notice-card.is-read { opacity: .72; }
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-type {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep);
  font-size: 9.5px; font-weight: 700;
}
.notice-time { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: auto; }
.notice-card h3 { margin: 9px 0 5px; font-size: 14px; font-weight: 700; }
.notice-card p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.notice-action { margin-top: 9px; }
.notice-read-text { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 10.5px; color: var(--green); }

/* ---------- 通讯录 ---------- */
.contact-list { display: flex; flex-direction: column; }
.contact-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.contact-row + .contact-row { border-top: 1px dashed var(--line); }
.contact-main { min-width: 0; flex: 1; }
.contact-main strong { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.contact-main > span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }

/* ---------- 薪资 ---------- */
.pay-card { background: linear-gradient(135deg, #FFFDFB, #FDF0ED); }
.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pay-label { display: block; font-size: 11px; color: var(--ink-3); }
.pay-value { display: block; margin-top: 6px; font-family: var(--mono); font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-deep); }
.pay-list { display: flex; flex-direction: column; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12.5px; color: var(--ink-2); }
.pay-row + .pay-row { border-top: 1px dashed var(--line); }
.pay-row b { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.pay-total { margin-top: 2px; font-weight: 700; color: var(--ink); }
.pay-total b { font-size: 13px; }

/* ---------- 量化分 ---------- */
.score-card { display: flex; align-items: center; gap: 18px; }
.score-ring {
  width: 92px; height: 92px; flex: none;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #fff, var(--brand-soft));
  border: 3px solid var(--brand);
  color: var(--brand-deep);
}
.score-ring strong { font-family: var(--mono); font-size: 30px; font-weight: 800; line-height: 1; }
.score-ring span { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); margin-top: 3px; }
.score-info p { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); }
.score-info .tag { height: 22px; }

.score-list { display: flex; flex-direction: column; gap: 12px; }
.score-row-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); }
.score-row-head b { font-family: var(--mono); font-size: 11px; }
.score-bar { height: 7px; margin-top: 6px; border-radius: 999px; background: #F0EAE3; overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); }

.adjust-list { display: flex; flex-direction: column; }
.adjust-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.adjust-row + .adjust-row { border-top: 1px dashed var(--line); }
.adjust-row strong { display: block; font-size: 12.5px; font-weight: 600; }
.adjust-row span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.adjust-row b { font-family: var(--mono); font-size: 12.5px; }

/* ---------- 二级页列表 ---------- */
.simple-sections { display: flex; flex-direction: column; }
.simple-list { display: flex; flex-direction: column; }
.simple-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12.5px; color: var(--ink-2); }
.simple-row + .simple-row { border-top: 1px dashed var(--line); }
.simple-row b { font-weight: 600; color: var(--ink); text-align: right; }
.simple-row b.tag { font-weight: 600; }
.simple-form { margin-top: 2px; }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .12) 0 16%, transparent 16.4% 100%),
    radial-gradient(120% 80% at 100% 0%, rgba(255, 132, 96, .45), transparent 58%),
    radial-gradient(90% 60% at 0% 100%, rgba(120, 6, 2, .55), transparent 60%),
    linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
}

.login-wrap { width: min(100%, 380px); position: relative; z-index: 2; }

.login-brand { text-align: center; margin-bottom: 20px; color: #fff; }
.login-stamp {
  width: 58px; height: 58px; margin: 0 auto;
  border-radius: 17px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--brand);
  font-size: 28px; font-weight: 800;
  box-shadow: 0 18px 38px -22px rgba(60, 0, 0, .8);
}
.login-brand h1 { margin: 13px 0 0; font-size: 27px; font-weight: 800; letter-spacing: .16em; text-indent: .16em; }
.login-brand p { margin: 5px 0 0; font-size: 11px; letter-spacing: .18em; color: rgba(255, 255, 255, .72); }

.login-card {
  background: #FFFDFB;
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: 0 30px 70px -34px rgba(50, 0, 0, .7);
}
.login-card-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.login-card-head p { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.login-form { margin-top: 18px; display: flex; flex-direction: column; gap: 13px; }
.login-form .btn { margin-top: 4px; height: 46px; }
.pass-toggle {
  position: absolute; right: 6px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: transparent; color: #A79E93;
  display: grid; place-items: center; cursor: pointer;
}
.pass-toggle:hover { background: var(--bg-2); color: var(--ink-2); }
.pass-toggle .icon { position: static; }

.form-error {
  display: flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 9px 11px;
  border-radius: 10px; background: #FDECEA; border: 1px solid #F7CFC9;
  color: #8C1B12; font-size: 11.5px;
}

.login-demo {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 16px; padding: 9px 11px;
  border-radius: 10px; background: var(--bg-2); border: 1px dashed var(--line);
  font-size: 10.5px; color: var(--muted);
}
.login-demo strong { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.login-demo span { font-family: var(--mono); }

.login-switch {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 14px; font-size: 11.5px; color: var(--brand);
  font-weight: 600;
}
.login-switch .icon { width: 14px; height: 14px; }

.login-foot { margin: 20px 0 0; text-align: center; font-size: 10px; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }

.error-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.error-card .state-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.error-card .state-icon.danger { background: #FDECEA; color: var(--danger); }
.error-card h2 { margin: 6px 0 0; font-size: 18px; }
.error-card p { margin: 0 0 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- 管理端补充 ---------- */
.admin-logo { right: -50px; top: -40px; width: 260px; height: 260px; }

.mobile-menu-btn {
  display: none;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.mobile-menu-btn .icon { width: 18px; height: 18px; }

.side-logout { margin-left: auto; }
.side-logout button {
  width: 30px; height: 30px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
.side-logout button:hover { background: var(--bg-2); color: var(--danger); }
.side-logout .icon { width: 16px; height: 16px; }

.drawer-mask { display: none; }

.filter-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-bar .chip-filters { flex: 1; }
.search-wrap { flex: 1; min-width: 180px; max-width: 340px; }
.search-wrap .input { padding-left: 36px; }

.cell-user { display: flex; align-items: center; gap: 8px; }

.table-empty { padding: 22px 10px !important; text-align: center; color: var(--muted); font-size: 12px; }

.approval-list { display: flex; flex-direction: column; gap: 11px; }
.approval-card { margin-bottom: 0; }
.approval-head { display: flex; align-items: center; gap: 8px; }
.approval-time { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.approval-card h3 { margin: 9px 0 4px; font-size: 14px; font-weight: 700; }
.approval-card p { margin: 0; font-size: 12px; color: var(--ink-3); }
.approval-actions { display: flex; gap: 8px; margin-top: 12px; }

.publish-form { margin-top: 2px; }

.notice-admin-list { display: flex; flex-direction: column; }
.notice-admin-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; }
.notice-admin-row + .notice-admin-row { border-top: 1px dashed var(--line); }
.notice-admin-main { min-width: 0; flex: 1; }
.notice-admin-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.notice-admin-head strong { font-size: 12.5px; }
.notice-admin-main p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.notice-admin-row .notice-time { flex: none; }

.settings-form { display: flex; flex-direction: column; gap: 11px; }
.settings-form .btn { margin-top: 4px; align-self: flex-start; }

.module-list { display: flex; flex-direction: column; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; }
.module-row + .module-row { border-top: 1px dashed var(--line); }
.module-row strong { display: block; font-size: 12.5px; font-weight: 600; }
.module-row span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

.switch {
  appearance: none;
  width: 42px; height: 24px; border-radius: 999px;
  background: #E6DED6; position: relative; flex: none;
  cursor: pointer; transition: background-color .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- 提示 ---------- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 32px);
}
.toast {
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(24, 20, 16, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { background: rgba(38, 122, 66, .94); }
.toast.error { background: rgba(160, 38, 30, .94); }

/* ---------- 响应式 ---------- */
@media (min-width: 900px) {
  .bottom-nav { left: 50%; }
}

@media (max-width: 899px) {
  .admin-side {
    display: flex;
    transform: translateX(-104%);
    transition: transform .22s ease;
    box-shadow: 0 20px 60px -30px rgba(60, 20, 10, .5);
  }
  body.drawer-open .admin-side { transform: none; }
  body.drawer-open .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(24, 20, 16, .38);
    backdrop-filter: blur(2px);
  }
  .mobile-menu-btn { display: grid; }
  .admin-logo { right: -70px; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .profile-meta { grid-template-columns: 1fr 1fr; }
  .task-assignee { display: none; }
}

@media (max-width: 420px) {
  .hero { padding-top: 16px; }
  .hero-logo { width: 150px; height: 150px; right: -40px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .summary-grid strong { font-size: 21px; }
  .pay-value { font-size: 27px; }
  .score-ring { width: 82px; height: 82px; }
  .score-ring strong { font-size: 26px; }
}

@media (max-width: 359px) {
  .grid-2 { grid-template-columns: 1fr; }
  .notice-bar { padding-right: 8px; }
  .task-meta .tag:nth-child(2) { display: none; }
}
