/* ============================================================
   团队看板 · Team Trello 样式
   ============================================================ */
:root {
  --bg: #f7f8f9;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --surface-3: #e9ebef;
  --text: #172b4d;
  --text-2: #44546f;
  --muted: #626f86;
  --border: #dcdfe4;
  --border-strong: #b6bcc7;
  --accent: #0c66e4;
  --accent-hover: #0055cc;
  --accent-weak: #e9f2ff;
  --danger: #c9372c;
  --danger-weak: #ffedeb;
  --success: #1f845a;
  --success-weak: #dcfff1;
  --warning: #b38600;
  --warning-weak: #fff7d6;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 1px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .24);
  --shadow-2: 0 8px 12px rgba(9, 30, 66, .15), 0 0 1px rgba(9, 30, 66, .31);
  --shadow-3: 0 12px 24px rgba(9, 30, 66, .22), 0 0 1px rgba(9, 30, 66, .31);
  --topbar-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.icon.fill { fill: currentColor; stroke: none; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(9, 30, 66, .22); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(9, 30, 66, .38); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- boot ---------------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; gap: 16px; grid-auto-flow: row; background: var(--bg); }
.boot-logo { width: 64px; height: 64px; color: var(--accent); }
.boot-logo .icon { width: 64px; height: 64px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: var(--radius);
  background: rgba(9, 30, 66, .06); color: var(--text-2);
  font-weight: 500; transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: rgba(9, 30, 66, .12); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #ae2e24; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(9, 30, 66, .08); }
.btn.on-dark { background: rgba(255, 255, 255, .24); color: #fff; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .34); }
.btn.block { width: 100%; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 38px; padding: 0 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.icon-only { width: 32px; padding: 0; }
.btn.icon-only.sm { width: 28px; }

/* ---------------- top bar ---------------- */
.topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: linear-gradient(90deg, #1d2125, #23272f);
  color: #dfe1e6; position: relative; z-index: 60;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border-radius: 6px; color: #fff; font-weight: 700; letter-spacing: .2px; }
.topbar .brand:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.topbar .brand .icon { width: 22px; height: 22px; color: #579dff; }
.topbar .spacer { flex: 1; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border-radius: 6px; color: #dfe1e6; font-size: 13.5px; font-weight: 500;
}
.tb-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tb-btn.active { background: rgba(255, 255, 255, .18); color: #fff; }
.search-wrap { position: relative; width: 240px; max-width: 32vw; }
.search-box {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border-radius: 6px; background: rgba(255, 255, 255, .14); border: 1px solid transparent;
  color: #cfd3da; transition: background .15s, border-color .15s;
}
.search-box:focus-within { background: #fff; color: var(--text); border-color: var(--accent); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: inherit; }
.search-box input::placeholder { color: inherit; opacity: .8; }
.search-panel {
  position: absolute; top: 40px; left: 0; width: 460px; max-width: 92vw; max-height: 70vh; overflow: auto;
  background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 8px; z-index: 80;
}
.search-group-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px 4px; }
.search-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.search-item:hover { background: var(--surface-2); }
.search-item .si-title { font-weight: 500; }
.search-item .si-meta { font-size: 12px; color: var(--muted); }
.search-empty { padding: 20px; text-align: center; color: var(--muted); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700; flex: none; user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.avatar.lg { width: 36px; height: 36px; font-size: 14px; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.ring { box-shadow: 0 0 0 2px #fff; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -6px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .18); }
.avatar-stack .avatar:first-child { margin-left: 0; }

.notif-dot {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #f87168; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #23272f;
}
.bell-wrap { position: relative; }

.popover {
  position: absolute; top: 40px; right: 0; width: 340px; max-width: 92vw;
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); z-index: 90; overflow: hidden;
}
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; }
.popover-body { max-height: 60vh; overflow: auto; }
.notif-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f0f1f3; cursor: pointer; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--accent-weak); }
.notif-item .ni-text { font-size: 13px; line-height: 1.45; }
.notif-item .ni-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* user menu */
.menu {
  min-width: 220px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  padding: 6px; z-index: 95;
}
.menu-section { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 8px 10px 4px; letter-spacing: .3px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border-radius: 6px; text-align: left; color: var(--text-2); font-weight: 500;
}
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-weak); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-user { display: flex; gap: 10px; align-items: center; padding: 10px; }
.menu-user .mu-name { font-weight: 700; }
.menu-user .mu-meta { font-size: 12px; color: var(--muted); }

/* ---------------- layout ---------------- */
#app { height: 100%; display: flex; flex-direction: column; }
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------------- login ---------------- */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #dbeafe 0%, #f7f8f9 55%);
  padding: 24px; overflow: auto;
}
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-3); padding: 32px; }
.login-logo { display: flex; justify-content: center; margin-bottom: 14px; color: var(--accent); }
.login-logo .icon { width: 44px; height: 44px; }
.login-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 13.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.input, .textarea, .select {
  width: 100%; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 8px 10px; outline: none; background: #fafbfc; transition: border-color .15s, background .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); background: #fff; }
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.login-err { background: var(--danger-weak); color: var(--danger); border-radius: var(--radius); padding: 8px 10px; font-size: 13px; margin-bottom: 12px; }
.demo-hint { margin-top: 18px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; line-height: 1.7; }
.demo-hint b { color: var(--text-2); }
.login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------- home ---------------- */
.home { flex: 1; overflow: auto; background: linear-gradient(180deg, #f8fafc, #f1f4f9 220px); }
.home-inner { max-width: 1180px; margin: 0 auto; padding: 26px 24px 60px; }
.home-hero { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.home-hero h1 { font-size: 26px; letter-spacing: -.3px; }
.home-hero p { color: var(--muted); margin-top: 6px; }
.home-hero .grow { flex: 1; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.section-head h2 { font-size: 16px; font-weight: 700; }
.section-head .count { font-size: 12px; color: var(--muted); background: var(--surface-3); border-radius: 10px; padding: 2px 8px; }
.section-head .grow { flex: 1; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.board-tile {
  position: relative; height: 108px; border-radius: var(--radius-lg); padding: 10px 12px;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-1); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .12s, box-shadow .12s;
}
.board-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.board-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .34)); z-index: -1; }
.board-tile .bt-title { font-weight: 700; font-size: 15px; line-height: 1.3; word-break: break-word; }
.board-tile .bt-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; opacity: .92; }
.board-tile .bt-star { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .15s; }
.board-tile:hover .bt-star, .board-tile .bt-star.on { opacity: 1; }
.board-tile .bt-star button { color: #fff; padding: 4px; border-radius: 4px; display: grid; place-items: center; }
.board-tile .bt-star button:hover { background: rgba(0, 0, 0, .25); }
.board-tile .bt-kind {
  align-self: flex-start; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  background: rgba(255, 255, 255, .26); border-radius: 4px; padding: 1px 6px; text-transform: uppercase;
}
.board-tile.empty {
  border: 2px dashed var(--border-strong); background: rgba(255, 255, 255, .55); color: var(--text-2);
  align-items: center; justify-content: center; flex-direction: row; gap: 8px; font-weight: 600; box-shadow: none;
}
.board-tile.empty::after { display: none; }
.board-tile.empty:hover { background: #fff; border-color: var(--accent); color: var(--accent); }
.board-tile.add-new { background: #fff; color: var(--accent); }

.empty-state { text-align: center; color: var(--muted); padding: 30px; background: #fff; border-radius: var(--radius-lg); border: 1px dashed var(--border); }

/* ---------------- board ---------------- */
.board-page { flex: 1; min-height: 0; display: flex; flex-direction: column; color: var(--text); }
.board-bg { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.board-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); pointer-events: none; }

.board-header {
  position: relative; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; color: #fff; flex-wrap: wrap;
}
.board-header .bh-title {
  font-size: 19px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: -.2px;
  max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board-header .bh-title.editing { background: #fff; color: var(--text); outline: 2px solid var(--accent); cursor: text; }
.board-header .bh-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .22); color: #fff; font-weight: 500; font-size: 13.5px; backdrop-filter: blur(2px);
}
.board-header .bh-btn:hover { background: rgba(255, 255, 255, .34); }
.board-header .bh-btn.icon-only { width: 32px; padding: 0; justify-content: center; }
.board-header .grow { flex: 1; }
.board-header .bh-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, .35); margin: 0 4px; }
.bh-title-input {
  font-size: 19px; font-weight: 700; border-radius: 6px; border: none; outline: none; padding: 3px 8px;
  background: #fff; color: var(--text); min-width: 200px; max-width: 50vw;
}

.board-canvas {
  flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 12px;
  overflow-x: auto; overflow-y: hidden; padding: 4px 12px 14px; scroll-behavior: smooth;
  position: relative; z-index: 1;
}

.list {
  width: 276px; flex: none; max-height: 100%; display: flex; flex-direction: column;
  background: #f1f2f4; border-radius: 12px; box-shadow: var(--shadow-1);
  max-height: calc(100vh - var(--topbar-h) - 70px);
}
.list.drag-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.list.dragging { opacity: .45; transform: rotate(1.5deg); }
.list-header {
  display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px 12px; flex: none;
}
.list-header h3 { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.list-header .count { font-size: 12px; color: var(--muted); font-weight: 600; }
.list-header .lh-btn { padding: 4px; border-radius: 4px; color: var(--text-2); display: grid; place-items: center; }
.list-header .lh-btn:hover { background: rgba(9, 30, 66, .1); }
.list-cards { overflow-y: auto; overflow-x: hidden; padding: 0 8px; flex: 1; min-height: 10px; }
.list-cards::-webkit-scrollbar { width: 8px; }
.list-footer { padding: 6px 8px 10px; flex: none; }
.add-card-btn {
  width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius);
  color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px;
}
.add-card-btn:hover { background: rgba(9, 30, 66, .08); color: var(--text); }
.composer { padding: 4px 0 8px; }
.composer textarea {
  width: 100%; border: 2px solid var(--accent); border-radius: var(--radius); padding: 8px 10px; min-height: 62px;
  resize: none; outline: none; background: #fff; box-shadow: var(--shadow-1); line-height: 1.45;
}
.composer textarea.plain { border: 2px solid transparent; background: #fff; }
.composer-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.composer-actions .btn.ghost { width: 32px; padding: 0; }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
  margin-bottom: 8px; cursor: pointer; position: relative; overflow: hidden;
  transition: box-shadow .12s, transform .12s;
  border: 1px solid transparent;
}
.card:hover { box-shadow: var(--shadow-2); border-color: #dfe3ea; }
.card.dragging { opacity: .4; }
.card .cover { height: 34px; }
.card .cover.img { height: 120px; background-size: cover; background-position: center; }
.card .card-body { padding: 8px 10px 10px; }
.card .card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.card .card-labels .label-pill { height: 8px; min-width: 36px; border-radius: 4px; }
.card .card-title { font-size: 13.5px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.card .card-title.done { text-decoration: line-through; color: var(--muted); }
.card .card-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.card .meta-item { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.card .meta-item.due { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); }
.card .meta-item.due.soon { background: var(--warning-weak); color: #7a5c00; }
.card .meta-item.due.overdue { background: var(--danger-weak); color: var(--danger); }
.card .meta-item.due.complete { background: var(--success-weak); color: var(--success); }
.card .card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card .card-members { display: flex; }
.card .card-members .avatar { margin-left: -5px; box-shadow: 0 0 0 1.5px #fff; }
.card .card-members .avatar:first-child { margin-left: 0; }
.card-placeholder { height: 48px; border-radius: var(--radius); background: rgba(9, 30, 66, .12); margin-bottom: 8px; }

.add-list { width: 276px; flex: none; }
.add-list-btn {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .26); color: #fff; font-weight: 600; backdrop-filter: blur(4px);
}
.add-list-btn:hover { background: rgba(255, 255, 255, .38); }
.add-list .composer { background: #f1f2f4; border-radius: 12px; padding: 10px; }

/* filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px 2px; color: #fff;
  position: relative; z-index: 1;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .24); color: #fff; font-size: 12.5px; font-weight: 600;
}
.filter-chip .x { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; }
.filter-chip .x:hover { background: rgba(0, 0, 0, .25); }

/* ---------------- background gradients ---------------- */
.gradient-blue { background-image: linear-gradient(135deg, #0079bf 0%, #003f6b 100%); }
.gradient-green { background-image: linear-gradient(135deg, #3f9142 0%, #1b5e20 100%); }
.gradient-orange { background-image: linear-gradient(135deg, #d29034 0%, #8a5314 100%); }
.gradient-red { background-image: linear-gradient(135deg, #b04632 0%, #6b2216 100%); }
.gradient-purple { background-image: linear-gradient(135deg, #89609e 0%, #4b2c5e 100%); }
.gradient-pink { background-image: linear-gradient(135deg, #cd5a91 0%, #7d2b54 100%); }
.gradient-dark { background-image: linear-gradient(135deg, #2c3e50 0%, #0f171e 100%); }
.gradient-sky { background-image: linear-gradient(135deg, #00aec9 0%, #006b81 100%); }
.gradient-teal { background-image: linear-gradient(135deg, #00a089 0%, #005e51 100%); }
.gradient-sand { background-image: linear-gradient(135deg, #b6a48f 0%, #6f6151 100%); }

/* ---------------- overlay / modal ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(9, 30, 66, .54); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto;
  animation: fadein .12s ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

.modal {
  width: 100%; max-width: 620px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); animation: pop .14s ease-out; overflow: hidden; position: relative;
}
.modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 6px; }
.modal-head h2 { flex: 1; font-size: 18px; line-height: 1.35; }
.modal-body { padding: 6px 20px 18px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 12px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; }
.modal .close-btn { padding: 6px; border-radius: 6px; color: var(--muted); display: grid; place-items: center; }
.modal .close-btn:hover { background: var(--surface-2); color: var(--text); }

/* card modal */
.card-modal { max-width: 800px; }
.cm-wrap { display: flex; gap: 20px; padding: 4px 20px 20px; }
.cm-main { flex: 1; min-width: 0; }
.cm-side { width: 180px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.cm-side-title { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin: 10px 0 4px; }
.cm-list-label { font-size: 12px; color: var(--muted); font-weight: 600; padding-left: 4px; }
.cm-title {
  font-size: 20px; font-weight: 700; line-height: 1.35; padding: 4px 8px; margin: 2px 0 10px -8px;
  border-radius: 6px; word-break: break-word; cursor: text; border: 2px solid transparent;
}
.cm-title:hover { background: var(--surface-2); }
.cm-title-input {
  width: 100%; font-size: 20px; font-weight: 700; line-height: 1.35; padding: 4px 8px; margin: 2px 0 10px -8px;
  border: 2px solid var(--accent); border-radius: 6px; outline: none; resize: none; overflow: hidden;
}
.cm-section { margin-bottom: 18px; }
.cm-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cm-section-head h4 { font-size: 14px; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 6px; }
.side-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border-radius: 6px;
  color: var(--text-2); font-weight: 500; font-size: 13px; text-align: left;
}
.side-btn:hover { background: var(--surface-2); color: var(--text); }
.side-btn.danger { color: var(--danger); }
.side-btn.danger:hover { background: var(--danger-weak); }
.side-item { padding: 6px 0 10px; }
.side-item-label { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }

.desc-box { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; line-height: 1.6; color: var(--text-2); cursor: pointer; min-height: 44px; }
.desc-box.empty { color: var(--muted); }
.desc-edit textarea { width: 100%; min-height: 96px; border: 2px solid var(--accent); border-radius: 8px; padding: 10px; outline: none; resize: vertical; line-height: 1.55; }

.label-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.label-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600; color: #fff; max-width: 100%;
}
.label-chip .icon { width: 13px; height: 13px; }
.label-pill { display: inline-block; border-radius: 4px; min-width: 40px; height: 24px; }
.label-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.label-option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; border: 2px solid transparent; width: 100%; text-align: left; font-size: 12.5px; font-weight: 600; }
.label-option:hover { filter: brightness(.95); }
.label-option.on { border-color: var(--text); }
.label-option .tick { margin-left: auto; }

.checklist-block { border-radius: 8px; }
.checklist-head { display: flex; align-items: center; gap: 8px; }
.checklist-head h5 { font-size: 13.5px; font-weight: 700; flex: 1; }
.progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--success); border-radius: 4px; transition: width .2s; }
.progress-meta { font-size: 11.5px; color: var(--muted); }
.cl-item { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 6px; }
.cl-item:hover { background: var(--surface-2); }
.cl-item input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; cursor: pointer; }
.cl-item .cl-text { flex: 1; font-size: 13px; line-height: 1.45; word-break: break-word; }
.cl-item .cl-text.done { text-decoration: line-through; color: var(--muted); }
.cl-item .cl-del { opacity: 0; color: var(--muted); padding: 2px; border-radius: 4px; }
.cl-item:hover .cl-del { opacity: 1; }
.cl-item .cl-del:hover { background: var(--danger-weak); color: var(--danger); }
.cl-add { display: flex; gap: 6px; margin-top: 4px; }

.attach-list { display: flex; flex-direction: column; gap: 6px; }
.attach-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--surface-2); }
.attach-item .ai-name { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-item .ai-size { font-size: 11px; color: var(--muted); }
.attach-item .ai-btn { color: var(--muted); padding: 3px; border-radius: 4px; }
.attach-item .ai-btn:hover { background: rgba(9, 30, 66, .1); color: var(--text); }

.cover-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.cover-swatch { width: 30px; height: 22px; border-radius: 4px; border: 2px solid transparent; }
.cover-swatch:hover { border-color: var(--border-strong); }
.cover-swatch.on { border-color: var(--text); }
.cover-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cover-thumb { width: 64px; height: 40px; border-radius: 4px; background-size: cover; background-position: center; border: 2px solid transparent; }
.cover-thumb.on { border-color: var(--accent); }

/* activity */
.act-item { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; line-height: 1.5; }
.act-item .act-text { flex: 1; min-width: 0; word-break: break-word; }
.act-item .act-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.act-item .act-actions { display: flex; gap: 4px; opacity: 0; }
.act-item:hover .act-actions { opacity: 1; }
.act-item .act-actions button { padding: 3px; border-radius: 4px; color: var(--muted); display: grid; place-items: center; }
.act-item .act-actions button:hover { background: var(--surface-2); color: var(--text); }
.act-item .comment-body { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; }
.act-item.is-comment .comment-body { background: var(--surface-2); border-color: transparent; }
.comment-form textarea { width: 100%; border: 2px solid var(--border); border-radius: 8px; padding: 8px 10px; outline: none; resize: vertical; min-height: 64px; background: var(--surface-2); }
.comment-form textarea:focus { border-color: var(--accent); background: #fff; }
.comment-form .cf-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ---------------- board menu / drawer ---------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 92vw; background: #fff;
  box-shadow: var(--shadow-3); z-index: 120; display: flex; flex-direction: column;
  animation: slidein .16s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { flex: 1; font-size: 16px; font-weight: 700; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 16px 24px; }
.drawer-section { margin-bottom: 20px; }
.drawer-section h3 { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.bg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bg-tile { height: 44px; border-radius: 6px; border: 2px solid transparent; }
.bg-tile:hover { border-color: var(--text); }
.bg-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-weak); }
.member-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 6px; }
.member-row:hover { background: var(--surface-2); }
.member-row .mr-name { font-weight: 600; font-size: 13.5px; }
.member-row .mr-meta { font-size: 11.5px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.tag.admin { background: var(--accent-weak); color: var(--accent); }
.tag.member { background: #f1f2f4; color: var(--muted); }
.tag.off { background: var(--danger-weak); color: var(--danger); }
.tag.group { background: #e6f7ee; color: var(--success); }
.tag.personal { background: #eef2ff; color: #5b4bcd; }

/* ---------------- admin ---------------- */
.admin { flex: 1; overflow: auto; }
.admin-inner { max-width: 1100px; margin: 0 auto; padding: 26px 24px 60px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-1); }
.stat-card .sc-value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.stat-card .sc-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.table th, .table td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.table th { background: #f7f8f9; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfc; }
.wrap-scroll { overflow-x: auto; }
.badge-num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------------- toast ---------------- */
.toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #1d2125; color: #fff; border-radius: 8px; padding: 10px 16px; font-size: 13.5px;
  box-shadow: var(--shadow-2); animation: toastin .16s ease-out; max-width: 86vw;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- misc ---------------- */
.dropdown-anchor { position: relative; }
.context-menu {
  position: fixed; background: #fff; border-radius: 8px; box-shadow: var(--shadow-3); padding: 5px; z-index: 200; min-width: 190px;
}
.context-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border-radius: 5px; font-size: 13px; color: var(--text-2); text-align: left; }
.context-menu button:hover { background: var(--surface-2); color: var(--text); }
.context-menu button.danger { color: var(--danger); }
.context-menu button.danger:hover { background: var(--danger-weak); }
.context-menu .menu-sep { margin: 4px 2px; }

.confirm-box { max-width: 440px; }
.confirm-box .modal-body { color: var(--text-2); line-height: 1.6; }

.due-form { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 8px; padding: 8px; box-shadow: var(--shadow-1); }
.due-form input[type="date"] { width: 100%; border: 2px solid var(--border); border-radius: 6px; padding: 6px 8px; outline: none; }
.due-form input[type="date"]:focus { border-color: var(--accent); }

.member-picker { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.member-option { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; text-align: left; width: 100%; }
.member-option:hover { background: var(--surface-2); }
.member-option .mo-check { margin-left: auto; color: var(--accent); }

.empty-hint { text-align: center; color: var(--muted); padding: 24px 10px; font-size: 13px; }

/* ---------------- responsive ---------------- */
@media (max-width: 820px) {
  .cm-wrap { flex-direction: column; gap: 8px; padding: 0 12px 16px; }
  .cm-main { order: 1; }
  .cm-side { width: 100%; order: 2; flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .cm-side-title { display: none; }
  .cm-side .side-btn { width: auto; }
  .card-modal { max-height: 94vh; overflow: auto; }
  .modal-head { padding: 14px 14px 4px; }
  .modal-body { padding: 4px 14px 16px; }
  .overlay { padding: 16px 8px; }
  .home-inner, .admin-inner { padding: 18px 14px 50px; }
  .board-header .bh-title { max-width: 46vw; font-size: 16px; }
  .board-header { padding: 8px; }
  .board-canvas { padding: 0 8px 10px; }
  .list { width: 84vw; }
  .add-list { width: 84vw; }
  .search-wrap { width: 40px; }
  .search-wrap .search-box input { display: none; }
  .search-wrap.open { width: 100%; position: absolute; left: 8px; right: 8px; top: 8px; z-index: 70; }
  .search-wrap.open .search-box { background: #fff; color: var(--text); }
  .search-wrap.open .search-box input { display: block; }
  .topbar .brand span { display: none; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .board-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .board-tile { height: 92px; }
  .login-card { padding: 24px 18px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) { .hide-sm { display: none; } }

/* ---------------- 我的任务 ---------------- */
.meta-item { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.meta-item.due { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); }
.meta-item.due.soon { background: var(--warning-weak); color: #7a5c00; }
.meta-item.due.overdue { background: var(--danger-weak); color: var(--danger); }
.meta-item.due.complete { background: var(--success-weak); color: var(--success); }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-row {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px;
  padding: 12px 14px; box-shadow: var(--shadow-1); cursor: pointer; border: 1px solid transparent;
  transition: box-shadow .12s, border-color .12s, transform .12s;
}
.task-row:hover { border-color: var(--border); box-shadow: var(--shadow-2); }
.task-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.task-dot { width: 8px; height: 34px; border-radius: 4px; flex: none; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; font-size: 14px; line-height: 1.4; word-break: break-word; }
.task-meta { display: flex; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; align-items: center; }
.task-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .task-badges { flex-direction: column; align-items: flex-end; gap: 4px; }
  .task-dot { height: 44px; }
}

/* ============================================================
   第二轮优化：动效、完成勾选、列表收起、多色背景、图片背景
   ============================================================ */

/* ---------- 修复菜单：一律竖排，不再左右分栏 ---------- */
.menu { display: flex; flex-direction: column; gap: 1px; min-width: 210px; }
.menu .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px;
  text-align: left; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.menu .menu-item span { flex: 1; }
.menu .menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu .menu-item.danger { color: var(--danger); }
.menu .menu-item.danger:hover { background: var(--danger-weak); }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card { transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease, opacity .16s ease; }
  .card:hover { transform: translateY(-1px); }
  .card:active { transform: scale(.985); }
  .card.dragging { opacity: .92; transform: rotate(1.4deg) scale(1.03); box-shadow: var(--shadow-3); }
  .card.card-enter { animation: cardIn .32s cubic-bezier(.2, .9, .3, 1.25); }
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(-8px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
  .card-placeholder { animation: phPulse 1.1s ease-in-out infinite; }
  @keyframes phPulse {
    0%, 100% { background: rgba(9, 30, 66, .10); }
    50% { background: rgba(9, 30, 66, .22); }
  }
  .list { transition: width .2s cubic-bezier(.2, .8, .3, 1), box-shadow .16s, opacity .16s; }
  .list.dragging { transform: rotate(1.2deg); box-shadow: var(--shadow-3); opacity: .9; }
  .menu { animation: menuIn .14s ease-out; transform-origin: top center; }
  @keyframes menuIn {
    from { opacity: 0; transform: scale(.96) translateY(-4px); }
    to { opacity: 1; transform: none; }
  }
  .popover, .search-panel { animation: menuIn .16s ease-out; }
  .drawer { animation: slidein .2s cubic-bezier(.2, .8, .3, 1); }
  .overlay { animation: fadein .16s ease-out; }
  .modal { animation: pop .18s cubic-bezier(.2, .9, .3, 1.1); }
  .card-check .icon { transition: transform .18s ease; }
  .card.completed .card-check .icon { animation: tickPop .32s cubic-bezier(.2, .9, .3, 1.4); }
  @keyframes tickPop {
    0% { transform: scale(.3) rotate(-18deg); }
    60% { transform: scale(1.25) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
  }
  .notif-dot { animation: dotPop .3s cubic-bezier(.2, .9, .3, 1.4); }
  @keyframes dotPop { from { transform: scale(.3); } to { transform: scale(1); } }
  .toast { animation: toastin .18s ease-out; }
  .composer textarea, .cl-item, .attach-item, .notif-item, .task-row { transition: background .15s, transform .15s; }
  .list.collapsed .list-collapsed-bar { animation: collapseIn .2s ease-out; }
  @keyframes collapseIn { from { opacity: .3; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 卡片完成勾选 ---------- */
.card-row { display: flex; align-items: flex-start; }
.card-check {
  margin: 9px 0 0 7px; width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 2px solid var(--border-strong); background: #fff; color: transparent;
  display: grid; place-items: center; padding: 0; transition: border-color .15s, background .15s, color .15s;
}
.card-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.card-check:hover { border-color: var(--success); color: var(--success); background: var(--success-weak); }
.card.completed .card-check { background: var(--success); border-color: var(--success); color: #fff; }
.card.completed .card-check:hover { background: #196c4a; border-color: #196c4a; }
.card.pending .card-check { border-color: #d8a200; color: #b38600; background: var(--warning-weak); }
.card.pending .card-check:hover { background: #ffe8a3; }
.card .card-row .card-body { flex: 1; min-width: 0; padding-left: 6px; }
.card.completed .card-title { color: var(--muted); }
.card.completed .card-labels { padding-right: 26px; }
.card .card-quick {
  position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; border-radius: 6px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--muted);
  box-shadow: var(--shadow-1); opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.card.completed .card-quick { opacity: 1; }
.card .card-quick:hover { background: var(--danger-weak); color: var(--danger); }
.card .pending-note {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700;
  color: #7a5c00; background: var(--warning-weak); border-radius: 4px; padding: 1px 5px;
}

/* ---------- 列表收起 / 展开 ---------- */
.list.collapsed { width: 54px; min-width: 54px; padding: 6px 5px; align-items: stretch; }
.list.collapsed .list-collapsed-bar {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 100%; padding: 10px 0; border-radius: 8px; color: var(--text-2); height: 100%;
}
.list.collapsed .list-collapsed-bar:hover { background: rgba(9, 30, 66, .09); color: var(--text); }
.list.collapsed .collapsed-title {
  writing-mode: vertical-rl; text-orientation: mixed; font-weight: 700; font-size: 13.5px;
  letter-spacing: 1px; max-height: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list.collapsed .collapsed-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-3); border-radius: 8px; padding: 1px 6px; }
.list.collapsed .list-collapsed-bar .icon { width: 15px; height: 15px; opacity: .75; }
.list .list-header .lh-btn.collapse-btn { opacity: .55; }
.list:hover .list-header .lh-btn.collapse-btn { opacity: 1; }
.list-header h3[data-dblclick] { cursor: text; }
.list-name-input {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 700; border: 2px solid var(--accent);
  border-radius: 6px; padding: 3px 6px; outline: none; background: #fff;
}

/* ---------- 多色渐变背景 ---------- */
.gradient-aurora   { background-image: linear-gradient(135deg, #00c6ff 0%, #0072ff 45%, #7b2ff7 100%); }
.gradient-sunset   { background-image: linear-gradient(135deg, #ff9a44 0%, #f76b6b 50%, #b721ff 100%); }
.gradient-candy    { background-image: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 45%, #a18cd1 100%); }
.gradient-ocean    { background-image: linear-gradient(135deg, #2af598 0%, #009efd 100%); }
.gradient-dusk     { background-image: linear-gradient(135deg, #4facfe 0%, #7367f0 55%, #b621fe 100%); }
.gradient-coral    { background-image: linear-gradient(135deg, #ffd86f 0%, #fc6262 55%, #a445b2 100%); }
.gradient-forest   { background-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 50%, #0ba360 100%); }
.gradient-galaxy   { background-image: linear-gradient(135deg, #8e2de2 0%, #4a00e0 50%, #00c9ff 100%); }
.gradient-midnight { background-image: linear-gradient(135deg, #232526 0%, #414345 55%, #1c1c2e 100%); }

.board-bg.bg-image::before { background: rgba(0, 0, 0, .34); }
.board-bg.bg-image .board-header { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }

/* ---------- 背景选择器中的图片区 ---------- */
.bg-preview { height: 74px; border-radius: 8px; background-size: cover; background-position: center; box-shadow: var(--shadow-1); }
.bg-tile.img { background-size: cover; background-position: center; background-color: var(--surface-2); }
.bg-upload-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bg-upload-row .input { flex: 1; min-width: 140px; }
.recurring-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f0f1f3; }
.recurring-row:last-child { border-bottom: none; }
.recurring-row .rr-main { flex: 1; min-width: 0; }
.recurring-row .rr-title { font-weight: 600; font-size: 13.5px; word-break: break-word; }
.recurring-row .rr-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.recurring-row .rr-actions { display: flex; gap: 4px; align-items: center; }
.recurring-form { background: var(--surface-2); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.recurring-form .field { margin-bottom: 10px; }
.recurring-form .form-row { display: flex; gap: 8px; }
.recurring-form .form-row > .field { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--muted); }
.completion-banner { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid transparent; }
.completion-banner.pending { background: var(--warning-weak); border-color: #f5cd47; color: #7a5c00; }
.completion-banner.done { background: var(--success-weak); border-color: #4bce97; color: var(--success); }
.completion-banner .btn { height: 26px; padding: 0 10px; font-size: 12.5px; }
.side-btn:disabled { cursor: default; }
.board-bg.bg-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.topbar .tb-btn { white-space: nowrap; }
@media (max-width: 820px) {
  .card-check { width: 22px; height: 22px; }
  .card { }
}

/* ---------------- 批量导入 ---------------- */
.import-modal { max-width: 920px; }
.import-help-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.import-help-row .btn { padding: 0 8px; }
.import-source .textarea { font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 12.5px; min-height: 150px; white-space: pre; line-height: 1.5; }
.import-summary { display: flex; gap: 8px; align-items: center; margin: 14px 0 8px; flex-wrap: wrap; }
.import-meta { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-size: 12px;
  color: var(--text-2); display: flex; flex-direction: column; gap: 3px; }
.import-table-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 10px; }
.import-table { box-shadow: none; }
.import-table th { position: sticky; top: 0; z-index: 1; background: #f7f8f9; }
.import-table td { vertical-align: top; font-size: 12px; padding: 6px 8px; }
.import-table tr.has-error td { background: #fff5f4; }
.import-table .it-title { font-weight: 600; font-size: 12.5px; line-height: 1.35; }
.import-table .it-desc { margin-top: 2px; }
.import-err { color: var(--danger); margin-top: 3px; }
.import-warn { color: #7a5c00; margin-top: 3px; }
.import-modal code, .modal code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
@media (max-width: 820px) {
  .import-modal { max-width: 100%; }
  .import-table-wrap { max-height: 45vh; }
}
.import-table th { white-space: nowrap; }
.import-table td:nth-child(1) { width: 36px; color: var(--muted); }
.import-table td:nth-child(3), .import-table td:nth-child(5) { white-space: nowrap; }
.import-table .tag { white-space: nowrap; }

/* ---------------- 个人看板：来自团队看板的聚合列 ---------------- */
.list.ghost { background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.list.ghost .list-header h3 { color: var(--text-2); }
.list.ghost .lane-source { font-size: 10.5px; color: var(--muted); margin-bottom: 4px; line-height: 1.3; }
.list.ghost .card { cursor: pointer; }
.list.ghost .card:hover { box-shadow: var(--shadow-2); }
.list.ghost .card .card-body { padding: 9px 10px 10px; }
.list.ghost .lane-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.list.ghost .card-title { font-size: 13px; }
