/* 工作管理 — 样式 */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e6e8ec;
  --line-strong: #d6d9e0;
  --text: #14181f;
  --text-2: #5b6472;
  --text-3: #8b93a1;
  --accent: #2563eb;
  --accent-weak: #eef2ff;
  --danger: #dc2626;
  --danger-weak: #fef2f2;
  --warn: #b45309;
  --warn-weak: #fffbeb;
  --ok: #059669;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .16);
  --topbar-h: 56px;
}

* { box-sizing: border-box; }

/* 关键：.drawer/.modal/.btn 等自带 display，会覆盖 [hidden] 的默认 display:none，
   导致抽屉和弹窗实际从未隐藏。这里统一兜底。 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: #dbeafe; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #4f8cff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.brand-name { font-weight: 650; letter-spacing: .2px; }

.tabs { display: flex; gap: 4px; padding: 3px; background: #f1f2f5; border-radius: 9px; }
.tab {
  padding: 5px 14px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 13px;
  transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.topbar-stats { display: flex; gap: 14px; margin-left: 6px; }
.stat { font-size: 12.5px; color: var(--text-3); display: flex; align-items: baseline; gap: 4px; }
.stat b { font-size: 14px; color: var(--text-2); font-weight: 650; }
.stat-warn b, .stat-warn { color: var(--danger); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn-danger-ghost { color: var(--danger); border-color: #f3d0d0; background: #fff; }
.btn-danger-ghost:hover { background: var(--danger-weak); }
.btn-sm { height: 27px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; height: 38px; }

.icon-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: none; border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
}
.icon-btn:hover { background: #f1f2f5; color: var(--text); }

/* ---------- 菜单 ---------- */
.menu { position: relative; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 38px;
  min-width: 150px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}
.menu-item:hover { background: #f5f6f8; }
.menu-danger { color: var(--danger); }
.menu form { margin: 0; }

/* ---------- 页面容器 ---------- */
.page { padding: 18px 20px 40px; }

/* ---------- 看板 ---------- */
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
}
.fchip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.fchip:hover { border-color: var(--line-strong); }
.fchip.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.hint { margin-left: auto; font-size: 12px; color: var(--text-3); }

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.col {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 10px;
  background: #eef0f3;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.col.drag-over { border-color: #93b4f7; background: #e8eefc; }

.col-head { display: flex; align-items: center; gap: 7px; padding: 3px 4px 9px; }
.col-head h2 { font-size: 13px; letter-spacing: .3px; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-todo { background: #94a3b8; }
.dot-doing { background: #2563eb; }
.dot-done { background: #10b981; }
.col-count {
  padding: 0 6px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #dfe3e9;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.col-add {
  margin-left: auto;
  width: 24px; height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1;
}
.col-add:hover { background: #fff; color: var(--text); }

.col-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }

.card {
  position: relative;
  padding: 11px 12px 10px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: box-shadow .15s, transform .1s, opacity .15s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card:active { cursor: grabbing; }
.card.is-dragging { opacity: .45; transform: rotate(1.2deg); }
.card-title { font-size: 13.5px; font-weight: 550; line-height: 1.45; word-break: break-word; }
.card-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; flex-wrap: wrap; }

.prio-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 9px 0 0 9px;
}
.prio-bar.p1 { background: #ef4444; }
.prio-bar.p2 { background: #f59e0b; }
.prio-bar.p3 { background: #cbd5e1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 7px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c) 10%, #fff);
  color: color-mix(in srgb, var(--c) 78%, #000);
  font-size: 11.5px;
  font-weight: 500;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.due { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.due.is-overdue { color: var(--danger); font-weight: 600; }
.due.is-today { color: var(--warn); font-weight: 600; }

.col-empty {
  padding: 18px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

/* ---------- 列表 ---------- */
.listbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.listbar .spacer { flex: 1; }
.field-inline { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.field-inline > span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.search {
  height: 30px;
  min-width: 180px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  outline: none;
}
.search:focus { border-color: #9dbaf7; background: #fff; box-shadow: 0 0 0 3px var(--accent-weak); }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f1f4;
  vertical-align: middle;
  font-size: 13px;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfc; }
.col-title { width: 42%; }
.col-op { width: 70px; text-align: right; }
.row { cursor: pointer; }
.row-title { display: block; font-weight: 500; }
.row-sub { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; }
.empty { padding: 40px; text-align: center; color: var(--text-3); }

.status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}
.status-todo { background: #f1f2f5; color: #5b6472; }
.status-doing { background: #e8f0fe; color: #1d4ed8; }
.status-done { background: #e7f6ef; color: #047857; }

.prio-tag { font-size: 12px; font-weight: 600; }
.prio-tag.p1 { color: var(--danger); }
.prio-tag.p2 { color: #b45309; }
.prio-tag.p3 { color: var(--text-3); }

/* ---------- 抽屉 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 24, 40, .32);
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }

.drawer {
  position: fixed;
  z-index: 60;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: slide .2s cubic-bezier(.22, .61, .36, 1);
}
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 15px; }
.drawer-body { flex: 1; display: flex; flex-direction: column; gap: 13px; padding: 16px; overflow-y: auto; }

.field { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.field > span { font-size: 12px; color: var(--text-3); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #9dbaf7;
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field-row { display: flex; gap: 12px; }

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  margin-top: auto;
  padding-bottom: 4px;
}
.drawer-actions .spacer { flex: 1; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  z-index: 70;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop .16s ease;
}
@keyframes pop { from { transform: translate(-50%, -48%) scale(.98); opacity: 0; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 15px; }
.modal-body { padding: 12px 16px; overflow-y: auto; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); }

.proj-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.proj-row input[type="color"] {
  width: 26px; height: 26px;
  padding: 0; border: 1px solid var(--line);
  border-radius: 6px; background: none; cursor: pointer;
}
.proj-row input[type="text"] {
  flex: 1;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font: inherit; font-size: 13px;
  outline: none;
}
.proj-row input[type="text"]:focus { border-color: #9dbaf7; background: #fff; }
.proj-new { border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: calc(100vh - var(--topbar-h) - 40px);
  display: grid;
  place-items: center;
}
.login-card {
  width: min(340px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-mark {
  width: 44px; height: 44px;
  margin: 0 auto 4px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f8cff);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.login-card h1 { font-size: 18px; }
.login-sub { margin: -6px 0 8px; color: var(--text-3); font-size: 12.5px; }
.login-card .field { text-align: left; }
.alert {
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--danger-weak);
  color: #b91c1c;
  font-size: 12.5px;
  text-align: left;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 9px;
  background: #14181f;
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: fade .15s ease;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .brand-name { display: none; }
  .topbar-stats { display: none; }
  .page { padding: 12px 12px 30px; }
  .board {
    grid-template-columns: repeat(3, minmax(248px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .col { scroll-snap-align: start; }
  .hint { display: none; }
  .col-title { width: auto; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
  .drawer { width: 100vw; }
  .field-row { flex-direction: column; gap: 13px; }
}

/* ---------- 总览 ---------- */
.dash { display: flex; flex-direction: column; gap: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sc-label { font-size: 12px; color: var(--text-3); }
.sc-num { font-size: 27px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.sc-num i { font-size: 14px; font-style: normal; margin-left: 1px; color: var(--text-2); }
.sc-sub { font-size: 11.5px; color: var(--text-3); }
.stat-card.is-alert {
  border-color: #f5c9c9;
  background: linear-gradient(180deg, #fff8f8, #fff);
}
.stat-card.is-alert .sc-num { color: var(--danger); }
.stat-card.is-alert .sc-sub { color: #b91c1c; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 14px; }
.panel-link { font-size: 12.5px; color: var(--text-3); }
.panel-link:hover { color: var(--accent); }
.panel-empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.9;
}
.panel-empty span { color: var(--text-3); font-size: 12px; }
.panel-note {
  margin: 0;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-3);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(226px, 1fr));
  gap: 1px;
  background: var(--line);
}
.pp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  transition: background .15s;
}
.pp:hover { background: #fafbfc; }
.pp-top { display: flex; align-items: center; justify-content: space-between; }
.pp-num { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pp-bar { height: 6px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: 4px; transition: width .35s ease; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; min-height: 17px; }
.pp-ov { font-size: 11.5px; color: var(--danger); font-weight: 600; }

.dash-cols { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: start; }

.due-list, .done-list { list-style: none; margin: 0; padding: 0; }
.due-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 18px;
  border-bottom: 1px solid #f2f3f6;
  cursor: pointer;
  transition: background .15s;
}
.due-item:last-child { border-bottom: none; }
.due-item:hover { background: #fafbfc; }
.di-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.di-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.di-title.is-done { color: var(--text-3); text-decoration: line-through; }
.di-meta { display: flex; gap: 6px; align-items: center; }
.done-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f2f3f6;
}
.done-list li:last-child { border-bottom: none; }
.tick {
  flex: none;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #e7f6ef;
  color: var(--ok);
  font-size: 11px;
}
.due.is-soon { color: var(--warn); font-weight: 600; }
.due.is-clear { color: var(--ok); }

/* 抽屉底部操作条固定在可视区底部 */
.drawer-actions {
  position: sticky;
  bottom: 0;
  margin: auto -16px -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-num { font-size: 23px; }
  .stat-card { padding: 12px 13px; }
  .dash-cols { grid-template-columns: 1fr; gap: 12px; }
  .proj-grid { grid-template-columns: 1fr; }
  .due-item { padding: 12px 14px 12px 16px; }
  .dash { gap: 12px; }
  .panel-head { padding: 11px 13px; }
  .tabs { gap: 2px; }
  .tab { padding: 5px 11px; }
}

/* 项目行：任务数 + 删除按钮（两步确认） */
.proj-count {
  flex: none;
  font-size: 11.5px;
  color: var(--text-3);
  padding: 0 2px;
  min-width: 34px;
  text-align: right;
}
.proj-del {
  flex: none;
  padding: 4px 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  transition: background .15s, color .15s;
}
.proj-del:hover { background: var(--danger-weak); color: var(--danger); }
.proj-del.is-confirm { background: var(--danger); color: #fff; }

/* 移动端：看板列接近满屏，便于单手持握浏览 */
@media (max-width: 900px) {
  .board {
    grid-template-columns: repeat(3, 84vw);
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
  }
  .col { scroll-snap-align: start; }
}

/* ---------- 一句话录入 ---------- */
.quick-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px 12px;
  border: 1px solid #dbe5fb;
  background: linear-gradient(180deg, #f7faff, #fbfcff);
  border-radius: 10px;
}
.quick-head { display: flex; align-items: baseline; gap: 8px; }
.quick-label { font-size: 12.5px; font-weight: 650; color: #1d4ed8; letter-spacing: .2px; }
.quick-hint { font-size: 11.5px; color: var(--text-3); }
#quick-text {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d8e2f7;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#quick-text:focus { border-color: #9dbaf7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.quick-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quick-tip { font-size: 11.5px; color: var(--text-3); }

.parse-report {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px dashed #d8e2f7;
}
.report-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-2);
}
.report-chips.is-empty { color: var(--text-3); }
.rchip { padding: 2px 9px; border-radius: 20px; background: #e8f0ff; color: #1e40af; }
.rchip b { font-weight: 650; }
.report-issues { display: flex; flex-direction: column; gap: 3px; }
.ri { margin: 0; font-size: 12px; line-height: 1.65; }
.ri.info { color: var(--text-3); }
.ri.warn { color: var(--warn); }
.ri.error { color: var(--danger); }

.field.is-warn input,
.field.is-warn select,
.field.is-warn textarea { border-color: #efb96f; background: #fffdf7; }
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: #e9a1a1; background: #fff9f9; }
.field-hint { margin-top: 2px; font-size: 11.5px; font-style: normal; color: var(--warn); }
.field-hint.is-error { color: var(--danger); }

/* 抽屉里的字段不要纵向撑开（.field 默认 flex:1 是给横向排列用的） */
.drawer-body > .field { flex: 0 0 auto; }

/* ---------- 负责人 ---------- */
.avatar {
  flex: none;
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f0ff;
  color: #1e40af;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}
.card .avatar { margin-left: auto; }
.who { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.who.is-none { color: var(--text-3); }
.board-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fselect {
  height: 28px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b93a1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--text-2);
  font-size: 12.5px;
  appearance: none;
  cursor: pointer;
}
.fselect:focus { outline: none; border-color: #9dbaf7; }
@media (max-width: 900px) {
  .board-right .hint { display: none; }
  .board-right { gap: 6px; }
  .fselect { height: 26px; font-size: 12px; }
}

/* 筛选栏：标签与选择框同一行（.field 的列布局会覆盖 .field-inline，需提高优先级） */
.listbar .field-inline { flex-direction: row; align-items: center; }
