/* ============ G7 海外销售管理 · 设计系统 ============ */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #eef1f4;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-weak: #eef2ff;
  --green: #079455;
  --green-weak: #ecfdf3;
  --amber: #b54708;
  --amber-weak: #fffaeb;
  --red: #d92d20;
  --red-weak: #fef3f2;
  --purple: #6941c6;
  --purple-weak: #f4f3ff;
  --dark: #0b1b2b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --sidebar: 232px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; }
p { margin: 0; }
button { font-family: inherit; }
.ic { flex: 0 0 auto; }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: var(--dark);
  color: #c7d2de;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 18px 14px 14px;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #fff; font-weight: 800; font-size: 15px;
  display: grid; place-items: center; letter-spacing: -0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { color: #fff; font-size: 14px; }
.brand-text span { font-size: 10.5px; color: #6b7c8f; letter-spacing: 0.4px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  color: #a9b8c8; font-size: 13.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: #1d4ed8; color: #fff; }
.nav-item .ic { opacity: 0.9; }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.me { display: flex; align-items: center; gap: 9px; padding: 6px 4px; }
.me-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.me-info b { font-size: 12.5px; color: #fff; font-weight: 600; }
.me-info span { font-size: 10.5px; color: #7d8ea0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout { margin-left: auto; font-size: 11px; color: #7d8ea0; }
.logout:hover { color: #fff; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; flex: 0 0 auto;
}
.avatar.lg { width: 42px; height: 42px; font-size: 16px; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

.main { flex: 1; min-width: 0; }
.content { max-width: 1280px; margin: 0 auto; padding: 26px 34px 80px; }

/* ---------------- 页头 ---------------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; letter-spacing: -0.2px; }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2); gap: 12px;
}
.card-hd h3 { font-size: 14.5px; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.card-bd { padding: 16px 18px; }
.card-bd.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.grid-2e { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ---------------- KPI ---------------- */
.kpi {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow);
}
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value {
  font-size: 26px; font-weight: 700; color: var(--ink);
  line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi-value em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi-green .kpi-value { color: var(--green); }
.kpi-red .kpi-value { color: var(--red); }
.kpi-amber .kpi-value { color: var(--amber); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 8px;
  font-size: 13px; font-weight: 550; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: #f9fafb; border-color: #d0d5dd; }
.btn-soft { background: var(--primary-weak); color: var(--primary); }
.btn-soft:hover { background: #e0e7ff; }
.btn-danger { background: #fff; border-color: #fda29b; color: var(--red); }
.btn-danger:hover { background: var(--red-weak); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------- 徽标 ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 550; white-space: nowrap;
  background: #f2f4f7; color: #475467;
}
.chip-sm { height: 20px; padding: 0 7px; font-size: 11px; }
.chip-green { background: var(--green-weak); color: #067647; }
.chip-amber { background: var(--amber-weak); color: var(--amber); }
.chip-red { background: var(--red-weak); color: #b42318; }
.chip-blue { background: var(--primary-weak); color: var(--primary); }
.chip-purple { background: var(--purple-weak); color: var(--purple); }
.chip-gray { background: #f2f4f7; color: #475467; }

.temp {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 5px;
  font-size: 11px; font-weight: 700; flex: 0 0 auto;
}
.temp-hot { background: #fee4e2; color: #b42318; }
.temp-warm { background: #fef0c7; color: #b54708; }
.temp-cold { background: #e0f2fe; color: #026aa2; }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot-green { background: #12b76a; }
.dot-amber { background: #f79009; }
.dot-red { background: #f04438; }
.dot-gray { background: #d0d5dd; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: #fcfcfd; white-space: nowrap;
}
.table td { padding: 12px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfcfd; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .main-cell { font-weight: 550; color: var(--ink); }

/* ---------------- 列表 ---------------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--line-2); align-items: flex-start;
}
.list-item:last-child { border-bottom: none; }
.list-item.click:hover { background: #fbfcfd; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; color: var(--ink); font-size: 13.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.list-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.tl-dot.visit { border-color: var(--primary); }
.tl-dot.plan { border-color: #d0d5dd; }
.tl-dot.task { border-color: var(--amber); }
.tl-date { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- AI 复盘卡 ---------------- */
.review { border-radius: var(--radius); overflow: hidden; border: 1px solid #dbe3f7; }
.review-hd {
  background: linear-gradient(120deg, #eef2ff, #f8f9ff 60%);
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #e3e8f8;
}
.review-hd h3 { font-size: 14px; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 20px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600;
}
.ai-badge.rule { background: #98a2b3; }
.rev-verdict { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.rev-sec { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.rev-sec:last-child { border-bottom: none; }
.rev-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.6px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.rev-text { font-size: 13.5px; color: var(--text); line-height: 1.7; }
.rev-text .guess { color: #b54708; }
.risk-list { margin: 0; padding: 0; list-style: none; }
.risk-list li {
  position: relative; padding-left: 16px; margin-bottom: 7px;
  font-size: 13.5px; line-height: 1.6;
}
.risk-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: #f04438;
}
.gap-list { counter-reset: g; margin: 0; padding: 0; list-style: none; }
.gap-list li {
  counter-increment: g; position: relative; padding-left: 26px;
  margin-bottom: 8px; font-size: 13.5px;
}
.gap-list li::before {
  content: counter(g); position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-weak); color: var(--primary);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.action-card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; background: #fcfcfd;
}
.action-card:last-child { margin-bottom: 0; }
.action-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.action-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.action-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.script {
  margin-top: 9px; padding: 9px 12px; border-left: 3px solid var(--primary);
  background: #fff; border-radius: 0 6px 6px 0;
  font-size: 12.5px; color: var(--text); line-height: 1.6;
}
.script::before { content: "开场话术 "; font-size: 10.5px; font-weight: 700; color: var(--primary); }

/* ---------------- 表单 ---------------- */
.form-narrow { max-width: 900px; }
.form-narrow-sm { max-width: 620px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13.5px; color: var(--ink);
  background: #fff; font-family: inherit; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.7; }
textarea.tall { min-height: 220px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }
.chips-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; cursor: pointer; background: #fff;
}
.pick input { display: none; }
.pick:has(input:checked) { border-color: var(--primary); background: var(--primary-weak); color: var(--primary); font-weight: 600; }

/* ---------------- 提示条 ---------------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; font-size: 13px;
  margin-bottom: 14px; border: 1px solid transparent;
}
.alert-amber { background: var(--amber-weak); border-color: #fedf89; color: #93370d; }
.alert-red { background: var(--red-weak); border-color: #fecdca; color: #912018; }
.alert-blue { background: var(--primary-weak); border-color: #c7d7fe; color: #1e40af; }
.alert b { font-weight: 650; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 38px 20px; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.empty-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }

/* ---------------- 周切换 ---------------- */
.weeknav {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px;
}
.wk-btn {
  width: 28px; height: 30px; display: grid; place-items: center;
  border-radius: 7px; color: var(--muted); font-size: 16px;
}
.wk-btn:hover { background: #f2f4f7; color: var(--ink); }
.wk-label { display: flex; flex-direction: column; align-items: center; padding: 0 10px; line-height: 1.25; }
.wk-label b { font-size: 12.5px; color: var(--ink); }
.wk-label span { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-today { font-size: 11.5px; color: var(--primary); padding: 0 8px; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(circle at 20% 10%, #1e3a8a 0%, #0b1b2b 45%, #0b1b2b 100%);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 380px; background: #fff;
  border-radius: 16px; padding: 32px 30px; box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 19px; margin-bottom: 4px; }
.login-card p { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.login-tip {
  margin-top: 18px; padding: 10px 12px; background: #f9fafb;
  border-radius: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.65;
}

/* ---------------- 移动端 ---------------- */
.tabbar { display: none; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar { display: none; }
  body { overflow-x: hidden; }
  .list-item { flex-wrap: wrap; }
  .list-side { width: 100%; align-items: flex-start; margin-left: 58px; }
  .content { padding: 16px 14px 96px; }
  .page-head h1 { font-size: 19px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-2e { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .card-bd { padding: 14px; }
  .card-hd { padding: 12px 14px; }
  .list-item { padding: 12px 14px; }
  .kpi-value { font-size: 22px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 50;
  }
  .tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10px; color: var(--muted); padding: 4px 0;
  }
  .tab-item.active { color: var(--primary); font-weight: 600; }
  .weeknav { width: 100%; justify-content: space-between; }
  .table th, .table td { padding: 9px 8px; font-size: 12.5px; }
  .btn { height: 32px; }
}

/* ---------------- 杂项 ---------------- */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: slideDown 0.25s ease; max-width: 90vw;
}
.toast-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.toast-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -8px); } }

.divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.progress { height: 6px; background: #eef1f4; border-radius: 20px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 20px; }
.progress.green > i { background: var(--green); }
.progress.amber > i { background: #f79009; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.mono { font-variant-numeric: tabular-nums; }
.link { color: var(--primary); font-weight: 550; }
.link:hover { text-decoration: underline; }
.sep { color: #d0d5dd; margin: 0 6px; }

/* 移动端快捷操作条 */
.quick-actions { display: flex; gap: 8px; }
.quick-actions .btn { flex: 1; }

/* 打印：报告页 */
@media print {
  .sidebar, .tabbar, .page-actions, .no-print { display: none !important; }
  .content { padding: 0; max-width: none; }
  .card { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}

/* ---------------- 补充组件 ---------------- */
.text-red { color: var(--red); }
.text-green { color: var(--green); }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; width: fit-content; }
.tab { padding: 6px 14px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.tab.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }

.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; }

/* 计划列表的日期块 */
.day-badge {
  width: 46px; flex: 0 0 46px; text-align: center;
  background: #f8f9fb; border-radius: 8px; padding: 5px 0;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  line-height: 1.35; font-variant-numeric: tabular-nums;
}
.day-badge span { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.list-item.overdue .day-badge { background: var(--red-weak); color: var(--red); }

/* 内联小表单 */
.mini { position: relative; display: inline-block; }
.mini > summary { list-style: none; }
.mini > summary::-webkit-details-marker { display: none; }
.mini-form {
  position: absolute; right: 0; top: 32px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; display: flex; gap: 6px; width: 250px;
  box-shadow: var(--shadow-lg);
}
.mini-form .input { padding: 6px 9px; font-size: 12.5px; }

/* 任务勾选 */
.tick {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #d0d5dd;
  background: #fff; cursor: pointer; margin-top: 2px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; color: #fff; padding: 0;
}
.tick:hover { border-color: var(--primary); }
.tick-done { background: var(--green); border-color: var(--green); }

/* 有序列表 */
ul.num-list { margin: 0; padding-left: 18px; }
ul.num-list li { font-size: 13.5px; line-height: 1.7; margin-bottom: 7px; color: var(--text); }
ul.num-list li::marker { color: var(--primary); font-weight: 700; }
.card ul.risk-list li { font-size: 13.5px; }
.card ul:not(.num-list):not(.risk-list):not(.gap-list) { margin: 0; padding-left: 18px; }
.card ul:not(.num-list):not(.risk-list):not(.gap-list) li { font-size: 13.5px; line-height: 1.7; margin-bottom: 7px; }

/* 商机看板 */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kanban-col { background: #fbfcfd; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kanban-hd { padding: 11px 12px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1px; background: #fff; }
.kanban-hd b { font-size: 13px; color: var(--ink); }
.kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.kanban-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; transition: box-shadow .15s, transform .15s; }
.kanban-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

@media (max-width: 980px) {
  .kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .kanban { grid-template-columns: 1fr; }
  .mini-form { width: 210px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }
}

/* 离线提示条 */
.offline-bar {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  background: #422006; color: #fef3c7; padding: 8px 16px; border-radius: 20px;
  font-size: 12px; z-index: 90; box-shadow: var(--shadow-lg); white-space: nowrap;
}
@media (min-width: 861px) { .offline-bar { bottom: 20px; } }
#draftBadge { display: none; }

/* 导航未读徽标 */
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #f04438; color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
