/* =========================================================
   页面级样式：工作台 / 通知 / 团务 / 通讯录 / 考勤 / 日程 / 智慧团建
   ========================================================= */

/* =========================================================
   工作台 · 问候区
   ========================================================= */
.hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.hello-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.hello-date .dot-sep {
  background: #bdb5a7;
}

.hello h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}
.hello h1 .hello-name {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hello h1 .stop {
  color: var(--red);
}
.hello-sub {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.hello-sub strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.hello-sub .accent {
  color: var(--red);
  font-family: var(--font-number);
  font-weight: 600;
}

.hello-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 3px;
}

.week-spotlight {
  position: relative;
  width: 252px;
  flex: 0 0 auto;
  padding: 17px 18px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #20252a, #171b1f);
  color: #fff;
  box-shadow: 0 18px 36px -24px rgba(23, 27, 31, 0.75);
  overflow: hidden;
}
.week-spotlight::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.025), 0 0 0 40px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}
.ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8f979f;
  font-size: 10px;
  letter-spacing: 0.13em;
}
.ws-head svg {
  width: 14px;
  height: 14px;
  color: #c56b5e;
}
.ws-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
  font-family: var(--font-number);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ws-value small {
  font-size: 10px;
  font-weight: 500;
  color: #9ba3aa;
  letter-spacing: 0.06em;
}
.ws-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f979f;
  font-size: 9.5px;
  line-height: 1.55;
}
.ws-foot .avatar {
  border-color: rgba(255, 255, 255, 0.12);
}

/* 数据横栏 */
.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}
.stat-cell {
  position: relative;
  padding: 18px 22px 16px;
  border-left: 1px solid #eee9e1;
  min-width: 0;
}
.stat-cell:first-child {
  border-left: 0;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.stat-label svg {
  width: 14px;
  height: 14px;
  color: #a29b8f;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 33px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.stat-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-foot .up {
  color: var(--green);
  font-family: var(--font-number);
  font-weight: 600;
}
.stat-foot .warn {
  color: var(--amber);
  font-family: var(--font-number);
  font-weight: 600;
}
.spark-bars {
  position: absolute;
  right: 20px;
  bottom: 19px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  opacity: 0.7;
}
.spark-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--red);
  opacity: 0.55;
}
.spark-bars i:nth-child(2n) { opacity: 0.32; }
.spark-bars i:last-child { opacity: 1; }

/* 工作台布局 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.dashboard-main { grid-column: span 7; display: flex; flex-direction: column; gap: 16px; }
.dashboard-side { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }

/* 组织图表 */
.org-chart {
  position: relative;
  padding: 8px 2px 0;
}
.chart-scale {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.chart-scale span {
  position: relative;
  font-family: var(--font-number);
  font-size: 8.5px;
  color: #b0a99e;
}
.chart-scale span::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 0;
  top: 50%;
  height: 1px;
  background: #f0ece4;
}
.chart-scale span:last-child::after {
  background: #e6e0d6;
}
.bar-cols {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 4px;
  margin-left: 24px;
  padding-top: 10px;
}
.bar-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 176px;
  cursor: default;
}
.bar-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.bar-value {
  position: absolute;
  bottom: calc(var(--h) * 1% + 5px);
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.bar-col:hover .bar-value {
  opacity: 1;
}
.bar {
  width: 62%;
  max-width: 25px;
  min-width: 8px;
  height: calc(var(--h) * 1%);
  border-radius: 3px 3px 0 0;
  background: var(--red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform-origin: bottom;
  animation: bar-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.03s);
  transition: filter 0.18s ease;
}
.bar-col:hover .bar {
  filter: brightness(1.08);
}
@keyframes bar-grow {
  from { transform: scaleY(0); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}
.bar-label {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  transform: scale(0.92);
  transform-origin: top center;
}
.bar-col:hover .bar-label {
  color: var(--ink);
  font-weight: 600;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0ece4;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9.5px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--red);
}
.legend-dot.l2 { opacity: 0.78; }
.legend-dot.l3 { opacity: 0.56; }
.legend-dot.l4 { opacity: 0.36; }

.org-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.org-foot-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid #f0ece4;
}
.org-foot-item span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}
.org-foot-item strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.org-foot-item strong em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.org-empty .empty {
  padding: 28px 20px 24px;
}
.org-empty .empty .btn {
  margin-top: 12px;
}

/* 近期日程 */
.agenda-list {
  padding: 2px 22px 6px;
}
.agenda-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #f1ede5;
  cursor: pointer;
}
.agenda-item:last-child {
  border-bottom: 0;
}
.agenda-item:hover .agenda-title {
  color: var(--red-deep);
}
.date-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  flex: 0 0 auto;
  overflow: hidden;
}
.date-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}
.date-tile.today {
  border-color: rgba(181, 53, 43, 0.26);
  background: var(--red-wash);
}
.date-tile.today::before {
  background: var(--red);
}
.date-tile .dt-month {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.date-tile .dt-day {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.date-tile.today .dt-day,
.date-tile.today .dt-month {
  color: var(--red-deep);
}
.agenda-body {
  flex: 1;
  min-width: 0;
}
.agenda-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.16s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}
.agenda-meta svg {
  width: 11px;
  height: 11px;
  color: #a8a196;
}
.agenda-right {
  flex: 0 0 auto;
  text-align: right;
}
.agenda-right .badge {
  font-size: 9.5px;
  height: 19px;
}

/* 交办任务 */
.task-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.due-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: #f3efe8;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}
.due-chip svg {
  width: 11px;
  height: 11px;
}
.due-chip.urgent {
  background: var(--red-wash);
  color: var(--red-deep);
  font-weight: 600;
}
.due-chip.soon {
  background: var(--amber-wash);
  color: var(--amber);
}
.task-title {
  display: flex;
  align-items: center;
  gap: 7px;
}
.priority-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}
.priority-dot.low {
  background: #b9b1a4;
}

/* 待办清单 */
.todo-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--red-wash);
  color: var(--red-deep);
  font-family: var(--font-number);
  font-size: 9.5px;
  font-weight: 600;
}
.todo-list {
  padding: 3px 22px 8px;
}
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f1ede5;
}
.todo-item:last-child {
  border-bottom: 0;
}
.todo-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.16s ease;
}
.todo-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.todo-check svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.todo-check:has(input:checked) {
  background: var(--red);
  border-color: var(--red);
}
.todo-check:has(input:checked) svg {
  opacity: 1;
}
.todo-text {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
  transition: color 0.16s ease;
}
.todo-text small {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 9.5px;
}
.todo-item.done .todo-text {
  color: var(--faint);
  text-decoration: line-through;
}
.todo-item.done .todo-text small {
  text-decoration: none;
}
.todo-text.is-editable {
  cursor: pointer;
}
.todo-text.is-editable:hover {
  color: var(--red);
}
.all-todo-list {
  max-height: 52vh;
  overflow-y: auto;
  padding: 8px 22px 10px;
}
.all-todo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #f1ede5;
}
.all-todo-row:last-child {
  border-bottom: 0;
}
.all-todo-row.done .todo-text {
  color: var(--faint);
  text-decoration: line-through;
}
.all-todo-row.done .todo-text small {
  text-decoration: none;
}

.todo-progress-btn {
  flex: none;
  height: 24px;
  margin-top: 1px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.todo-progress-btn:hover {
  border-color: var(--red-soft);
  background: var(--red-wash);
  color: var(--red);
}

/* 待办提交进度 */
.todo-progress-panel {
  padding: 16px 22px 18px;
}

.todo-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.todo-progress-head strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

.todo-progress-head span {
  flex: none;
  color: var(--muted);
  font-size: 10.5px;
}

.todo-progress-panel > .progress {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.todo-progress-label {
  margin: 16px 0 4px;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.todo-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 通知速览 */
.brief-list {
  padding: 2px 22px 8px;
}
.brief-item {
  display: block;
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid #f1ede5;
  text-align: left;
}
.brief-item:last-child {
  border-bottom: 0;
}
.brief-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.brief-cat {
  color: var(--red);
  font-size: 9.5px;
  font-weight: 600;
}
.brief-title {
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.16s ease;
}
.brief-item:hover .brief-title {
  color: var(--red-deep);
}
.brief-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.brief-foot .progress {
  flex: 1;
}
.brief-foot span {
  font-family: var(--font-number);
  font-size: 9px;
  color: var(--muted);
}
.unread-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}

/* =========================================================
   通知公告
   ========================================================= */
.notice-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.notice-main { grid-column: span 8; min-width: 0; }
.notice-side { grid-column: span 4; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }

.notice-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.notice-tabs button {
  height: 30px;
  padding: 0 11px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.notice-tabs button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.notice-tabs button.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notice-item {
  position: relative;
  display: block;
  padding: 17px 20px 15px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}
.notice-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--red);
}
.notice-item.cat-huodong::before { background: var(--gold); }
.notice-item.cat-pingyou::before { background: var(--green); }
.notice-item.cat-gongshi::before { background: var(--slate); }
.notice-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.notice-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notice-cat {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--red-wash);
  color: var(--red-deep);
  font-size: 9.5px;
  font-weight: 600;
}
.notice-cat.cat-huodong {
  background: var(--gold-wash);
  color: #7e5f26;
}
.notice-cat.cat-pingyou {
  background: var(--green-wash);
  color: var(--green);
}
.notice-cat.cat-gongshi {
  background: var(--slate-wash);
  color: var(--slate);
}
.notice-top .tag {
  height: 19px;
  font-size: 9px;
  color: var(--muted);
}
.notice-top .pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-size: 9.5px;
}
.notice-top .pin svg {
  width: 11px;
  height: 11px;
}
.notice-top .scheduled {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--slate);
  font-size: 9.5px;
}
.notice-top .scheduled svg {
  width: 11px;
  height: 11px;
}
.notice-title {
  margin-top: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.012em;
  transition: color 0.16s ease;
}
.notice-item:hover .notice-title {
  color: var(--red-deep);
}
.notice-excerpt {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #f2eee6;
}
.notice-foot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9.5px;
}
.notice-foot-meta svg {
  width: 12px;
  height: 12px;
}
.notice-read {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.notice-read .progress {
  width: 84px;
}
.notice-read span {
  font-family: var(--font-number);
  font-size: 9.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.notice-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.notice-actions .btn {
  height: 27px;
  padding: 0 8px;
  font-size: 10.5px;
  gap: 4px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}
.notice-actions .btn:hover {
  background: var(--paper);
  color: var(--ink);
}
.notice-actions .btn svg {
  width: 12px;
  height: 12px;
}
.notice-actions .btn.confirm-hint {
  color: var(--red);
}
.notice-actions .btn.confirm-hint:hover {
  background: var(--red-wash);
}

/* 侧栏卡 */
.side-card {
  border-radius: var(--radius);
}
.read-overview {
  padding: 18px 20px;
}
.read-ring-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.read-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), #efeae1 0);
  flex: 0 0 auto;
}
.read-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.read-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--font-number);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.read-ring span small {
  font-size: 9px;
  color: var(--muted);
  margin-left: 1px;
}
.read-ring-info {
  flex: 1;
  min-width: 0;
}
.read-ring-info strong {
  display: block;
  font-family: var(--font-number);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.read-ring-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.read-legend {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ece4;
}
.read-legend div {
  flex: 1;
}
.read-legend span {
  color: var(--muted);
  font-size: 9px;
}
.read-legend strong {
  display: block;
  margin-top: 1px;
  font-family: var(--font-number);
  font-size: 15px;
  color: var(--ink);
}

.follow-list {
  padding: 4px 20px 8px;
}
.follow-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1ede5;
}
.follow-item:last-child {
  border-bottom: 0;
}
.follow-title {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.follow-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}
.follow-meta .progress {
  flex: 1;
}
.follow-meta span {
  font-family: var(--font-number);
  font-size: 9px;
  color: var(--muted);
}

/* 通知详情 */
.notice-detail-head {
  padding: 2px 0 14px;
  border-bottom: 1px solid #f0ece4;
  margin-bottom: 16px;
}
.notice-detail-head .notice-cat {
  height: 22px;
  font-size: 10px;
}
.notice-detail-title {
  margin-top: 9px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.notice-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}
.notice-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.notice-detail-meta svg {
  width: 12px;
  height: 12px;
  color: #a8a196;
}
.rich-text {
  color: #3f454b;
  font-size: 12.5px;
  line-height: 1.9;
}
.rich-text p + p {
  margin-top: 10px;
}
.rich-text .rich-sign {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  text-align: right;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}
.rich-text strong {
  color: var(--ink);
}
.attach-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ece4;
}
.attach-list-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.attach-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.attach-item svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex: 0 0 auto;
}
.attach-item span {
  flex: 1;
}
.attach-item small {
  color: var(--faint);
  font-family: var(--font-number);
  font-size: 9px;
}
.attach-item .icon-action {
  width: 24px;
  height: 24px;
}
.attach-item .icon-action svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.receipt-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #f0ece4;
  border-radius: 9px;
  background: var(--surface-soft);
}
.receipt-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.receipt-box-head strong {
  font-size: 11.5px;
}
.receipt-box-head span {
  font-family: var(--font-number);
  font-size: 10px;
  color: var(--muted);
}
.receipt-stats {
  display: flex;
  gap: 20px;
  margin-top: 9px;
}
.receipt-stats div span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.receipt-stats div strong {
  display: block;
  font-family: var(--font-number);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}
.receipt-stats div strong.read {
  color: var(--green);
}
.receipt-stats div strong.unread {
  color: var(--red);
}

/* 回执名单 */
.receipt-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.receipt-tabs button {
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
}
.receipt-tabs button.active {
  border-color: var(--red);
  background: var(--red-wash);
  color: var(--red-deep);
  font-weight: 600;
}
.receipt-list {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.receipt-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid #f2eee6;
  background: #fff;
}
.receipt-row:last-child {
  border-bottom: 0;
}
.receipt-row .avatar {
  width: 27px;
  height: 27px;
  font-size: 10px;
}
.receipt-row-info {
  flex: 1;
  min-width: 0;
}
.receipt-row-info strong {
  display: block;
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.4;
}
.receipt-row-info span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}
.receipt-row-state {
  color: var(--green);
  font-size: 9.5px;
}
.receipt-row-state.unread {
  color: var(--red);
}
.receipt-more {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
}

/* 公示专区 */
.public-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff, #fbf8f2);
}
.public-intro-text strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.public-intro-text strong svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.public-intro-text p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.public-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}
.public-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.public-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 125, 59, 0.42);
  border-radius: 50%;
  color: rgba(141, 106, 49, 0.78);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  transform: rotate(-9deg);
  opacity: 0.8;
  pointer-events: none;
}
.public-card .badge {
  margin-bottom: 9px;
}
.public-title {
  max-width: calc(100% - 50px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9.5px;
}
.public-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #f2eee6;
}
.public-foot .period {
  color: var(--muted);
  font-size: 9.5px;
}
.public-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 9.5px;
}
.public-tag svg {
  width: 11px;
  height: 11px;
}

.trace-list {
  position: relative;
  padding-left: 16px;
}
.trace-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.trace-item {
  position: relative;
  padding: 0 0 16px 12px;
}
.trace-item:last-child {
  padding-bottom: 0;
}
.trace-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line-strong);
}
.trace-item.done::before {
  border-color: var(--green);
  background: var(--green);
}
.trace-item.current::before {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.trace-date {
  color: var(--faint);
  font-family: var(--font-number);
  font-size: 9px;
  letter-spacing: 0.03em;
}
.trace-title {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.trace-desc {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

/* =========================================================
   团务管理
   ========================================================= */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.metric-item {
  padding: 13px 17px;
  background: var(--surface);
  min-width: 0;
}
.metric-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}
.metric-item strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}
.metric-item strong small {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
}
.metric-item .metric-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  font-size: 9px;
  color: var(--muted);
}
.metric-item .metric-note.up {
  color: var(--green);
}

.data-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.data-card .table-wrap {
  border-radius: 0;
}

.branch-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.branch-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
}
.branch-cell strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.branch-cell span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.member-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid #eee9e1;
}
.member-search-row .toolbar-end {
  margin-left: auto;
}
.member-cell {
  min-width: 0;
}
.member-cell strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.member-cell span {
  display: block;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* 异动 */
.transfer-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}
.transfer-note svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex: 0 0 auto;
  margin-top: 2px;
}

/* 推优 */
.promo-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.promo-main { grid-column: span 7; min-width: 0; }
.promo-side { grid-column: span 5; }

.stage-flow {
  display: flex;
  align-items: center;
  gap: 0;
}
.stage-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  flex: 0 0 auto;
}
.stage-node.done {
  border-color: var(--green);
  background: var(--green-wash);
}
.stage-node.done::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.stage-node.current {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red-wash);
}
.stage-line {
  width: 15px;
  height: 1px;
  background: var(--line);
  flex: 0 0 auto;
}
.stage-line.done {
  background: rgba(47, 115, 87, 0.4);
}
.stage-text {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.stage-text.current {
  color: var(--red);
  font-weight: 600;
}
.stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stage-caption {
  display: flex;
  align-items: center;
}
.stage-caption .stage-col {
  align-items: flex-start;
}

.quota-list {
  padding: 6px 20px 12px;
}
.quota-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f2eee6;
}
.quota-row:last-child {
  border-bottom: 0;
}
.quota-name {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quota-bar {
  width: 55px;
  flex: 0 0 auto;
}
.quota-num {
  width: 38px;
  text-align: right;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 9.5px;
  flex: 0 0 auto;
}

.application-table .stage-cell {
  min-width: 128px;
}
.stage-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}
.stage-cell .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.stage-cell .dot.done { background: var(--green); }
.stage-cell .dot.current { background: var(--red); }
.stage-cell span {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}
.stage-cell span.current {
  color: var(--red);
  font-weight: 600;
}

/* 团费 */
.fee-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.fee-kpi {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.fee-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 3px;
  height: 24px;
  background: var(--red);
  border-radius: 0 3px 3px 0;
}
.fee-kpi span {
  color: var(--muted);
  font-size: 10px;
}
.fee-kpi strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
  font-family: var(--font-number);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.25;
}
.fee-kpi strong small {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
}
.fee-kpi .fee-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

/* =========================================================
   团干通讯录
   ========================================================= */
.privacy-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #20252a, #171b1f);
  color: #d3d6d8;
  overflow: hidden;
  position: relative;
}
.privacy-banner::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -34px;
  width: 150px;
  height: 110px;
  background: radial-gradient(circle, rgba(181, 53, 43, 0.2), transparent 68%);
  pointer-events: none;
}
.privacy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cf9f60;
  flex: 0 0 auto;
}
.privacy-icon svg {
  width: 16px;
  height: 16px;
}
.privacy-banner p {
  font-size: 10.5px;
  line-height: 1.65;
  color: #9ca2a8;
}
.privacy-banner p strong {
  color: #f1efeb;
  font-size: 11.5px;
  margin-right: 5px;
}
.privacy-banner .badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #b8bec4;
  flex: 0 0 auto;
}

.contact-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.contact-toolbar .search-field {
  min-width: 250px;
}

.org-section {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.org-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid #eee9e1;
  background: linear-gradient(90deg, #fbf9f5, #fff);
}
.org-section-head .org-index {
  font-family: var(--font-number);
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.org-section-head h3 {
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.org-section-head .badge {
  margin-left: 2px;
}
.org-section-head .org-count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 9.5px;
}
.org-section-body {
  padding: 14px 18px 16px;
}
.org-dept + .org-dept {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #f1ede5;
}
.org-dept-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.org-dept-head h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.org-dept-head span {
  color: var(--faint);
  font-size: 9px;
}
.org-dept-head .line {
  flex: 1;
  height: 1px;
  background: #f1ede5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.contact-card:hover {
  border-color: var(--line-strong);
  background: #fdfcf9;
}
.contact-card.is-me {
  border-color: rgba(181, 53, 43, 0.22);
  background: #fefaf8;
}
.contact-card.is-archived {
  opacity: 0.68;
}
.contact-body {
  flex: 1;
  min-width: 0;
}
.contact-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-name-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.contact-name-row .tag {
  height: 17px;
  padding: 0 5px;
  font-size: 8.5px;
  color: var(--red);
  border-color: rgba(181, 53, 43, 0.2);
  background: var(--red-wash);
}
.contact-role {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}
.phone-link {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.phone-link:hover {
  color: var(--red);
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.contact-actions .icon-action {
  width: 24px;
  height: 24px;
}
.contact-actions .icon-action svg {
  width: 12px;
  height: 12px;
}
.contact-empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

/* =========================================================
   值班考勤
   ========================================================= */
.week-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.week-switcher {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.week-switcher button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease;
}
.week-switcher button:hover {
  background: var(--paper);
  color: var(--ink);
}
.week-switcher button svg {
  width: 14px;
  height: 14px;
}
.week-switcher-label {
  padding: 0 11px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 32px;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}
.week-switcher-label strong {
  font-family: var(--font-number);
  font-size: 12px;
  margin: 0 2px;
}
.week-toolbar .toolbar-end {
  margin-left: auto;
}

.timetable-wrap {
  overflow-x: auto;
  padding: 0 0 2px;
}
.timetable {
  display: grid;
  grid-template-columns: 92px repeat(7, minmax(112px, 1fr));
  min-width: 900px;
  border-top: 1px solid var(--line);
}
.tt-head {
  padding: 10px 8px;
  border-right: 1px solid #f1ede5;
  border-bottom: 1px solid var(--line);
  background: #fbf9f5;
  text-align: center;
}
.tt-head:first-child {
  border-left: 0;
}
.tt-head:last-child {
  border-right: 0;
}
.tt-head span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}
.tt-head strong {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 600;
}
.tt-head.today {
  background: var(--red-wash);
}
.tt-head.today strong,
.tt-head.today span {
  color: var(--red-deep);
}
.tt-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 10px 12px;
  border-right: 1px solid #f1ede5;
  border-bottom: 1px solid #f1ede5;
  background: #fcfbf8;
}
.tt-time strong {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tt-time span {
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.tt-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 71px;
  padding: 8px;
  border-right: 1px solid #f5f1e9;
  border-bottom: 1px solid #f1ede5;
  background: #fff;
  transition: background 0.16s ease;
}
.tt-cell:last-child {
  border-right: 0;
}
.tt-cell.today {
  background: #fefaf8;
}
.tt-cell:hover {
  background: #fcfaf6;
}
.tt-cell.empty {
  color: var(--faint);
  font-size: 9px;
  text-align: center;
  cursor: pointer;
}
.duty-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 4px;
  background: var(--surface-soft);
  border: 1px solid #f0ece4;
}
.duty-chip .avatar {
  width: 17px;
  height: 17px;
  font-size: 7.5px;
  border: 0;
}
.duty-chip span {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duty-chip span em {
  display: block;
  font-style: normal;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.3;
}
.duty-chip.is-online {
  background: var(--green-wash);
  border-color: #d3e6da;
}
.duty-chip .duty-online {
  flex: none;
  margin-left: auto;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 7.5px;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.duty-chip.is-extra span em { color: var(--green); }
.tt-cell .add-duty {
  position: absolute;
  right: 6px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}
.tt-cell:hover .add-duty {
  opacity: 1;
}
.tt-cell .add-duty:hover {
  background: var(--red-wash);
  color: var(--red);
}
.tt-cell .add-duty svg {
  width: 11px;
  height: 11px;
}
.timetable-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--muted);
  font-size: 9px;
}
.timetable-foot .legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.timetable-foot .legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.timetable-foot .legend-dot.online { background: var(--green); }

.attendance-table .method {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
}
.attendance-table .method svg {
  width: 12px;
  height: 12px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.status-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.status-dot.green { color: var(--green); }
.status-dot.green::before { background: var(--green); }
.status-dot.amber { color: var(--amber); }
.status-dot.amber::before { background: var(--amber); }
.status-dot.red { color: var(--red); }
.status-dot.red::before { background: var(--red); }
.status-dot.slate { color: var(--slate); }
.status-dot.slate::before { background: var(--slate); }

/* 二维码签到 */
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 2px;
}
.qr-frame {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 5px #fff;
}
.qr-frame svg {
  width: 188px;
  height: 188px;
  display: block;
}
.qr-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--red);
  border-style: solid;
}
.qr-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.qr-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.qr-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.qr-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }
.qr-caption {
  margin-top: 12px;
  text-align: center;
}
.qr-caption strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
.qr-caption span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}
.checkin-code {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
}
.countdown strong {
  font-family: var(--font-number);
  font-size: 11px;
  color: var(--red);
}
.qr-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  max-width: 280px;
}
.qr-actions .btn {
  flex: 1;
  height: 34px;
  font-size: 11.5px;
}

/* 排班识别 */
.parse-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px 0;
}
.parse-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  opacity: 0.55;
}
.parse-step.active {
  border-color: rgba(181, 53, 43, 0.25);
  background: var(--red-wash);
  opacity: 1;
}
.parse-step.done {
  opacity: 1;
}
.parse-step-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  flex: 0 0 auto;
}
.parse-step.active .parse-step-icon {
  background: var(--red);
  color: #fff;
}
.parse-step.done .parse-step-icon {
  background: var(--green-wash);
  color: var(--green);
}
.parse-step-icon svg {
  width: 13px;
  height: 13px;
}
.parse-step-text {
  flex: 1;
  font-size: 11px;
  color: var(--ink-soft);
}
.parse-step-state {
  font-size: 9.5px;
  color: var(--muted);
}
.parse-step.active .parse-step-state {
  color: var(--red);
}
.parse-step.done .parse-step-state {
  color: var(--green);
}
.progress-track {
  height: 4px;
  border-radius: 99px;
  background: var(--paper);
  overflow: hidden;
  margin-top: 10px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 0.4s ease;
  border-radius: inherit;
}
.parse-result-stats {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}
.parse-result-stats div span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.parse-result-stats div strong {
  display: block;
  font-family: var(--font-number);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}

/* =========================================================
   日程安排
   ========================================================= */
.schedule-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.calendar-card { grid-column: span 7; }
.day-card { grid-column: span 5; position: sticky; top: 88px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #eee9e1;
}
.cal-month {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.cal-month strong {
  font-family: var(--font-number);
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cal-month span {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}
.cal-nav button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
}
.cal-nav button:hover {
  background: var(--paper);
  color: var(--ink);
}
.cal-nav button svg {
  width: 14px;
  height: 14px;
}
.cal-today-btn {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9.5px;
  margin-left: 3px;
}
.cal-today-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.cal-weekdays span {
  padding: 7px 4px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  letter-spacing: 0.08em;
}
.cal-weekdays span.weekend {
  color: #a18562;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-cell {
  position: relative;
  min-height: 84px;
  padding: 6px 5px;
  border-right: 1px solid #f3efe8;
  border-bottom: 1px solid #f3efe8;
  background: #fff;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}
.cal-cell:nth-child(7n) {
  border-right: 0;
}
.cal-cell:last-child,
.cal-cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}
.cal-cell:hover {
  background: #fcfaf6;
}
.cal-cell.outside {
  background: #fbfaf7;
  color: var(--faint);
}
.cal-cell.outside .cal-daynum {
  color: #b9b2a6;
}
.cal-cell.today .cal-daynum {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.cal-cell.selected {
  box-shadow: inset 0 0 0 1.5px rgba(181, 53, 43, 0.55);
  background: #fffbf9;
  z-index: 1;
}
.cal-daynum {
  display: inline-block;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 600;
  line-height: 19px;
}
.cal-events {
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-event {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 1px 3px;
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--red-wash);
}
.cal-event::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}
.cal-event.gold {
  background: var(--gold-wash);
}
.cal-event.gold::before { background: var(--gold); }
.cal-event.slate {
  background: var(--slate-wash);
}
.cal-event.slate::before { background: var(--slate); }
.cal-event.green {
  background: var(--green-wash);
}
.cal-event.green::before { background: var(--green); }
.cal-more {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 8px;
  padding-left: 5px;
}

.day-head {
  padding: 17px 20px 13px;
  border-bottom: 1px solid #eee9e1;
}
.day-head .day-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.day-head .day-label strong {
  font-family: var(--font-number);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.2;
}
.day-head .day-label span {
  color: var(--muted);
  font-size: 10px;
}
.day-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}
.day-agenda {
  padding: 8px 20px 14px;
}
.day-event {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 11px 0 11px 0;
  border-bottom: 1px solid #f2eee6;
}
.day-event:last-child {
  border-bottom: 0;
}
.day-event-time {
  width: 42px;
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  line-height: 1.5;
  padding-top: 1px;
}
.day-event-time em {
  display: block;
  font-style: normal;
  color: var(--faint);
  font-size: 8.5px;
}
.day-event-body {
  flex: 1;
  min-width: 0;
  border-left: 2px solid var(--red-wash);
  padding-left: 10px;
}
.day-event-body.gold { border-color: var(--gold-wash); }
.day-event-body.slate { border-color: var(--slate-wash); }
.day-event-body.green { border-color: var(--green-wash); }
.day-event-title {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}
.day-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.day-event-meta svg {
  width: 10px;
  height: 10px;
}

.meeting-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.meeting-section-head h2 {
  font-size: 17px;
  letter-spacing: -0.015em;
}
.meeting-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}
.meeting-tabs button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10.5px;
}
.meeting-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.meeting-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.meeting-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.meeting-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.meeting-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.meeting-date.today {
  background: var(--red-wash);
  border-color: rgba(181, 53, 43, 0.22);
}
.meeting-date span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.meeting-date strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 19px;
  line-height: 1.1;
}
.meeting-date.today strong,
.meeting-date.today span {
  color: var(--red-deep);
}
.meeting-info {
  min-width: 0;
}
.meeting-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.meeting-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.meeting-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}
.meeting-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meeting-meta svg {
  width: 11px;
  height: 11px;
  color: #a8a196;
}
.meeting-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.rsvp-row {
  display: flex;
  gap: 5px;
}
.rsvp-row .btn {
  height: 26px;
  padding: 0 8px;
  font-size: 10px;
}
.meeting-attendees {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

/* 会议参与人选择 */
.attendee-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.attendee-group {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.attendee-group:has(input:checked) {
  border-color: rgba(181, 53, 43, 0.3);
  background: var(--red-wash);
}
.attendee-group input {
  margin-top: 2px;
  accent-color: var(--red);
  flex: 0 0 auto;
}
.attendee-group-info strong {
  display: block;
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.attendee-group-info span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
}

/* =========================================================
   智慧团建
   ========================================================= */
.league-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
}
.league-meta .badge {
  font-size: 9.5px;
}
.league-meta .dot-sep {
  background: #c6beaf;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.pipeline-stage {
  position: relative;
  padding: 15px 18px;
  border-left: 1px solid #f0ece4;
}
.pipeline-stage:first-child {
  border-left: 0;
}
.pipeline-stage::after {
  content: "→";
  position: absolute;
  right: -5px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
  line-height: 1;
  transform: translateY(-50%);
}
.pipeline-stage:last-child::after {
  display: none;
}
.pipeline-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}
.pipeline-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.pipeline-stage:nth-child(1) .pipeline-label::before { background: var(--slate); }
.pipeline-stage:nth-child(2) .pipeline-label::before { background: var(--green); }
.pipeline-stage:nth-child(3) .pipeline-label::before { background: var(--amber); }
.pipeline-stage:nth-child(4) .pipeline-label::before { background: var(--red); }
.pipeline-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  font-family: var(--font-number);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.pipeline-value small {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
}
.pipeline-note {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.compare-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 15px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #1e2327;
  color: #d3d7da;
  overflow: hidden;
  position: relative;
}
.compare-banner::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -40px;
  width: 180px;
  height: 140px;
  background: radial-gradient(circle, rgba(181, 53, 43, 0.25), transparent 70%);
  pointer-events: none;
}
.compare-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d28b5c;
  flex: 0 0 auto;
}
.compare-icon svg {
  width: 16px;
  height: 16px;
}
.compare-text {
  flex: 1;
  min-width: 200px;
}
.compare-text strong {
  display: block;
  color: #f2f0ec;
  font-size: 12.5px;
  line-height: 1.5;
}
.compare-text span {
  display: block;
  color: #979ea5;
  font-size: 9.5px;
  margin-top: 2px;
}
.compare-nums {
  display: flex;
  gap: 18px;
}
.compare-nums div span {
  display: block;
  color: #8f979e;
  font-size: 8.5px;
}
.compare-nums div strong {
  display: block;
  color: #f1efeb;
  font-family: var(--font-number);
  font-size: 18px;
  line-height: 1.3;
}
.compare-nums div strong.red {
  color: #e7897b;
}
.compare-banner .btn {
  height: 29px;
  font-size: 10.5px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e6e3de;
}
.compare-banner .btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.diff-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9.5px;
}
.diff-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.diff-legend .mark {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--red-wash);
  border: 1px solid rgba(181, 53, 43, 0.3);
}
.diff-value-old {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(181, 53, 43, 0.5);
}
.diff-value-new {
  color: var(--red-deep);
  font-weight: 600;
}
.diff-field {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--amber-wash);
  color: var(--amber);
  font-size: 9px;
  white-space: nowrap;
}

.completion-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 92px;
}
.completion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.completion-top span {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 9px;
}
.issue-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 9.5px;
  font-weight: 600;
}
.issue-link:hover {
  text-decoration: underline;
}
.issue-link svg {
  width: 11px;
  height: 11px;
}
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #f3ded9;
  border-radius: 7px;
  background: #fdf5f3;
}
.issue-row .issue-name {
  min-width: 76px;
  color: var(--red-deep);
  font-size: 10.5px;
  font-weight: 600;
}
.issue-row .issue-reason {
  flex: 1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.issue-row .issue-state {
  font-size: 9px;
  color: var(--faint);
}

/* =========================================================
   全局搜索
   ========================================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 82px 20px 20px;
  background: rgba(20, 24, 27, 0.44);
  backdrop-filter: blur(4px);
  animation: fade-in 0.16s ease both;
}
.search-panel {
  width: 680px;
  max-width: 100%;
  max-height: min(74vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in 0.22s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.search-input-row > svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex: 0 0 auto;
}
.search-input-row input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.search-input-row input::placeholder {
  color: #aaa49a;
}
.search-input-row .esc-key {
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--font-number);
  font-size: 9px;
  line-height: 18px;
}
.search-results {
  padding: 8px;
  overflow-y: auto;
}
.search-hint {
  padding: 12px 14px 8px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.search-group-label {
  padding: 10px 14px 5px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 7px;
  text-align: left;
}
.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-soft);
  outline: none;
}
.search-result-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  flex: 0 0 auto;
}
.search-result-icon svg {
  width: 14px;
  height: 14px;
}
.search-result-text {
  flex: 1;
  min-width: 0;
}
.search-result-text strong {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-text span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-type {
  color: var(--faint);
  font-size: 9px;
  flex: 0 0 auto;
}
.search-empty {
  padding: 38px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.search-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--faint);
  font-size: 9px;
  flex: 0 0 auto;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1240px) {
  .dashboard-main { grid-column: span 7; }
  .dashboard-side { grid-column: span 5; }
  .notice-side { top: 80px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .notice-main, .dashboard-main, .dashboard-side,
  .promo-main, .promo-side, .calendar-card, .day-card {
    grid-column: span 12;
  }
  .notice-side, .day-card {
    position: static;
  }
  .notice-layout { row-gap: 14px; }
  .promo-layout { row-gap: 14px; }
  .schedule-layout { row-gap: 14px; }
  .hello { flex-wrap: wrap; }
  .week-spotlight { width: 100%; }
  .week-spotlight::after { right: 10px; bottom: -60px; }
  .bar-cols { gap: 2px; }
  .bar-label { font-size: 7.5px; }
  .fee-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hello { gap: 18px; margin-bottom: 18px; }
  .hello h1 { font-size: 27px; }
  .hello-actions { width: 100%; }
  .hello-actions .btn { flex: 1; }
  .week-spotlight { width: 100%; }
  .stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cell { padding: 14px 15px; }
  .stat-cell:nth-child(3) { border-left: 0; border-top: 1px solid #eee9e1; }
  .stat-cell:nth-child(4) { border-top: 1px solid #eee9e1; }
  .stat-value { font-size: 26px; }
  .spark-bars { display: none; }
  .bar-cols {
    gap: 0;
    margin-left: 18px;
    height: 140px;
  }
  .bar-col { height: 140px; }
  .chart-scale { bottom: 38px; }
  .bar { width: 55%; min-width: 5px; }
  .bar-label { font-size: 6.5px; }
  .chart-scale span::after { left: 16px; }
  .org-foot { grid-template-columns: 1fr; }
  .org-foot-item { display: flex; align-items: center; justify-content: space-between; }
  .org-foot-item strong { margin-top: 0; }
  .notice-item { padding: 14px 15px 13px 19px; }
  .notice-title { font-size: 13.5px; }
  .notice-read { margin-left: 0; width: 100%; }
  .notice-read .progress { width: auto; flex: 1; }
  .notice-foot { gap: 8px; }
  .public-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-item { padding: 11px 14px; }
  .metric-item strong { font-size: 20px; }
  .metric-item:nth-child(3), .metric-item:nth-child(4) { border-top: 1px solid #eee9e1; }
  .fee-summary { grid-template-columns: 1fr; gap: 10px; }
  .fee-kpi { padding: 14px 16px; }
  .contact-toolbar .search-field { min-width: 100%; }
  .contact-toolbar .toolbar-end { margin-left: 0; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .privacy-banner { align-items: flex-start; }
  .privacy-banner .badge { display: none; }
  .meeting-row { grid-template-columns: 48px minmax(0, 1fr); padding: 11px 13px; }
  .meeting-date { width: 46px; height: 48px; }
  .meeting-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-stage:nth-child(2)::after { display: none; }
  .pipeline-stage:nth-child(3) { border-left: 0; border-top: 1px solid #f0ece4; }
  .pipeline-stage:nth-child(4) { border-top: 1px solid #f0ece4; }
  .compare-banner { align-items: flex-start; }
  .compare-banner .compare-nums { width: 100%; }
  .pipeline-stage { padding: 12px 14px; }
  .pipeline-value { font-size: 22px; }
  .org-section-body { padding: 12px 13px 14px; }
  .org-section-head { padding: 11px 13px; }
  .stage-flow { overflow-x: auto; padding-bottom: 2px; }
  .callout { padding: 11px 14px; }
  .search-overlay { padding: 14px 10px; align-items: flex-start; }
  .search-panel { max-height: calc(100vh - 28px); }
  .day-card { position: static; }
  .cal-cell { min-height: 66px; }
  .cal-event { font-size: 7px; padding: 0 2px; }
  .timetable { grid-template-columns: 76px repeat(7, minmax(104px, 1fr)); min-width: 830px; }
  .attendance-table .btn { height: 24px; font-size: 9.5px; }
  .notice-side { gap: 12px; }
}

@media (max-width: 480px) {
  .notice-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .notice-tabs button { flex: 0 0 auto; }
  .public-card { padding: 16px; }
  .public-stamp { width: 36px; height: 36px; font-size: 9px; }
  .public-title { max-width: calc(100% - 42px); }
  .read-ring { width: 68px; height: 68px; }
  .read-ring span { font-size: 18px; }
  .read-ring::after { inset: 7px; }
  .read-ring-row { gap: 13px; }
  .org-section-head .org-count { display: none; }
  .meeting-title { font-size: 12px; }
  .cal-cell { min-height: 58px; padding: 4px 3px; }
  .cal-event { display: none; }
  .cal-daynum { font-size: 9px; }
  .cal-more { display: block; }
  .stage-cell { min-width: 110px; }
}

/* =========================================================
   模块补充样式
   ========================================================= */
.search-overlay[hidden] { display: none; }

.role-popover-foot .role-reset {
  display: block;
  margin-top: 5px;
  padding: 0;
  font-size: 10.5px;
}

.cell-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cell-person strong {
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 16px;
  align-items: start;
}
.attendance-main { min-width: 0; }
.attendance-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 84px;
}
.attendance-side .mt-16 { margin-top: 14px; }

.duty-absent {
  position: absolute;
  top: 4px;
  right: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--red-wash);
  color: var(--red);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.transfer-stage {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 150px;
}
.transfer-stage .stage-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: 0 0 auto;
}
.transfer-stage .stage-dot.done { background: var(--green); }
.transfer-stage .stage-dot.current { background: var(--red); box-shadow: 0 0 0 2px var(--red-wash); }
.transfer-stage span {
  margin-left: 3px;
  color: var(--ink-soft);
  font-size: 9.5px;
  white-space: nowrap;
}

tr.diff-row-marked {
  background: linear-gradient(90deg, rgba(181, 53, 43, 0.045), transparent 62%);
}

.meeting-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.meeting-detail-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 68px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  flex: 0 0 auto;
}
.meeting-detail-date strong {
  font-family: var(--font-number);
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
}
.meeting-detail-date span {
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1240px) {
  .attendance-layout { grid-template-columns: minmax(0, 1fr) 292px; }
}
@media (max-width: 1060px) {
  .attendance-layout { grid-template-columns: minmax(0, 1fr); }
  .attendance-side { position: static; }
}
@media (max-width: 720px) {
  .meeting-detail-head { align-items: flex-start; gap: 12px; }
  .meeting-detail-date { width: 56px; height: 62px; }
  .meeting-detail-date strong { font-size: 21px; }
}

/* 设置页 */
.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.setting-row:first-of-type {
  border-top: 0;
}
.setting-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--red-wash);
  color: var(--red);
  flex: 0 0 auto;
}
.setting-row-icon svg {
  width: 17px;
  height: 17px;
}
.setting-row-icon.neutral {
  background: var(--surface-soft);
  color: var(--muted);
}
.setting-row-body {
  flex: 1;
  min-width: 0;
}
.setting-row-body strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.setting-row-body span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.setting-row > .btn {
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .setting-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 16px 18px;
  }
  .setting-row-body {
    flex: 1 1 calc(100% - 52px);
  }
  .setting-row > .btn {
    width: 100%;
    margin-left: 52px;
  }
}

/* ---------- 团支部管理 ---------- */
.bar-col[href] {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.task-table tbody tr[data-task-edit] {
  cursor: pointer;
}
.task-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-delete {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: var(--faint);
  transition: background 0.16s ease, color 0.16s ease;
}
.task-table tbody tr:hover .row-delete,
.row-delete:focus-visible {
  color: var(--ink-soft);
}
.row-delete:hover {
  background: var(--red-wash);
  color: var(--red);
}
.row-delete svg {
  width: 12px;
  height: 12px;
}
.todo-edit,
.todo-delete {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--faint);
  transition: background 0.16s ease, color 0.16s ease;
}
.todo-edit {
  margin-left: auto;
}
.todo-item:hover .todo-edit,
.todo-item:hover .todo-delete,
.todo-edit:focus-visible,
.todo-delete:focus-visible {
  opacity: 1;
}
.todo-edit:hover,
.todo-delete:hover {
  background: var(--red-wash);
  color: var(--red);
}
.todo-edit svg,
.todo-delete svg {
  width: 13px;
  height: 13px;
}
.branch-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.16s ease;
}
.branch-link:hover {
  background: var(--red-wash);
}
.branch-link:hover strong {
  color: var(--red);
}

.branch-page {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.branch-list-card {
  overflow: hidden;
}
.branch-list {
  max-height: 620px;
  overflow-y: auto;
}
.branch-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.16s ease;
}
.branch-list-item:last-child {
  border-bottom: 0;
}
.branch-list-item:hover {
  background: var(--surface-soft);
}
.branch-list-item.is-active {
  background: var(--red-wash);
}
.branch-list-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}
.branch-list-text strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.branch-list-text span {
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.branch-list-count {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 10.5px;
}
.branch-list-item.is-active .branch-list-count {
  color: var(--red-deep);
}

.branch-detail .card-body {
  padding-top: 18px;
}
.branch-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: 10px;
}
.branch-fact {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  min-width: 0;
}
.branch-fact span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}
.branch-fact strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-all;
}
.branch-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.branch-members-head .t-muted {
  font-size: 9.5px;
  font-weight: 400;
}

@media (max-width: 980px) {
  .branch-page {
    grid-template-columns: 1fr;
  }
  .branch-list {
    max-height: 280px;
  }
}



/* =========================================================
   工作台 · 团务文件（入口页实名提交，实时同步）
   ========================================================= */
.file-share-card {
  margin-top: 18px;
}

.file-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}

.file-sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-soft);
  box-shadow: 0 0 0 3px var(--red-wash);
  animation: fileSyncPulse 1.8s ease-in-out infinite;
}

@keyframes fileSyncPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.file-share-body {
  padding: 8px 20px 12px;
}

.file-share-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "Manrope", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.file-meta {
  flex: 1;
  min-width: 0;
}

.file-meta strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-dl {
  flex: none;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.file-dl:hover {
  border-color: var(--red-soft);
  background: var(--red-wash);
  color: var(--red);
}

@media (max-width: 640px) {
  .file-share-body {
    padding: 6px 14px 10px;
  }
  .file-meta strong {
    font-size: 11.5px;
  }
  .file-meta span {
    font-size: 9.5px;
  }
  .file-dl {
    padding: 0 11px;
  }
}

/* =========================================================
   定位签到 · 校园地图选点
   ========================================================= */
.loc-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  min-height: 322px;
}

.loc-map {
  position: relative;
  overflow: hidden;
  min-height: 322px;
  background: #f5f0e6;
  cursor: crosshair;
}

.loc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loc-spot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.loc-spot i {
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transform: rotate(-45deg);
  transition: background 0.18s ease, transform 0.18s ease;
}

.loc-spot span {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #5d564b;
  font-size: 9px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.loc-spot:hover i,
.loc-spot.is-active i {
  background: #1f8a72;
  transform: rotate(-45deg) scale(1.18);
}

.loc-spot.is-active span {
  background: #1f8a72;
  color: #fff;
}

.loc-pin {
  position: absolute;
  width: 15px;
  height: 15px;
  margin: -15px 0 0 -7.5px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #1f8a72;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
  pointer-events: none;
  animation: locDrop 0.28s ease;
}

.loc-pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

@keyframes locDrop {
  from { transform: rotate(-45deg) translateY(-7px); opacity: 0; }
  to { opacity: 1; }
}

.loc-north {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #7d7468;
  font-size: 10px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.loc-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-left: 1px solid var(--line);
  background: #fbfaf7;
}

.loc-label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.loc-side strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.loc-side p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.loc-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.loc-quick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 10.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.loc-quick-btn svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--red);
}

.loc-quick-btn:hover {
  border-color: var(--red-soft);
}

.loc-quick-btn.is-active {
  border-color: #1f8a72;
  background: rgba(31, 138, 114, 0.1);
  color: #1f8a72;
}

.loc-quick-btn.is-active svg {
  color: #1f8a72;
}

.loc-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.loc-hint svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: #1f8a72;
}

.method-address {
  display: block;
  max-width: 160px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .loc-picker {
    grid-template-columns: 1fr;
  }
  .loc-map {
    min-height: 240px;
  }
  .loc-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ---------------------------------------------------------
   排班人员选择（团员 / 团干搜索）
   --------------------------------------------------------- */
.duty-picker {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.duty-picker > label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.duty-search {
  min-width: 0;
}

.duty-search .input {
  height: 38px;
  font-size: 12.5px;
}

.duty-candidates {
  max-height: 246px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
}

.duty-person-group + .duty-person-group {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px dashed var(--line);
}

.duty-person-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px 4px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.duty-person-label b {
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.duty-person {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.duty-person + .duty-person {
  margin-top: 2px;
}

.duty-person:hover {
  background: var(--surface);
}

.duty-person.is-selected {
  border-color: var(--red);
  background: var(--red-wash);
}

.duty-person.is-added {
  opacity: 0.5;
  cursor: default;
}

.duty-person-info {
  flex: 1;
  min-width: 0;
}

.duty-person-info strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.duty-person-info em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duty-person-kind {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.duty-person.is-selected .duty-person-kind {
  border-color: var(--red-soft);
  color: var(--red-deep);
}

.duty-person-flag {
  flex: none;
  color: var(--green);
  font-size: 9px;
}

.duty-person-check {
  display: inline-flex;
  flex: none;
  color: var(--red);
}

.duty-person-check svg {
  width: 13px;
  height: 13px;
}

.duty-person-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.duty-person-empty svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--faint);
}

.duty-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.duty-picker-foot #dutyPickState {
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .duty-candidates {
    max-height: 210px;
  }
  .duty-picker-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
