/* ============================================================
   天工录 · 运营控制台 设计系统
   与小程序 app.wxss 共用色板：深靛蓝 #101B3D / 认证金 #DDA52A
   ============================================================ */
:root {
  --ink: #101b3d;
  --ink-2: #1b2a5b;
  --ink-3: #2c3e78;
  --gold: #dda52a;
  --gold-2: #f2ce6b;
  --gold-soft: rgba(221, 165, 42, 0.14);
  --bg: #f4f5f9;
  --card: #ffffff;
  --line: #eceef5;
  --line-2: #e0e3ee;
  --text: #1a1f36;
  --text-2: #5b6076;
  --muted: #8a90a6;
  --green: #1fa971;
  --blue: #1e3a8a;
  --red: #e5433f;
  --violet: #7c5cf0;
  --orange: #f97316;
  --shadow: 0 6px 24px rgba(16, 27, 61, 0.06);
  --shadow-lg: 0 24px 60px rgba(16, 27, 61, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 236px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d3d7e4; border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b9bfd2; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view { flex: 1; padding: 22px 26px 60px; min-width: 0; }

/* ---------------- 侧边栏 ---------------- */
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #101b3d 0%, #16224b 60%, #101b3d 100%);
  color: #fff; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #f4d071, #dda52a);
  color: #2b1d00; font-weight: 800; font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(221, 165, 42, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: 0.5px; }
.brand-text span { font-size: 11px; color: rgba(255, 255, 255, 0.5); letter-spacing: 2px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-color: transparent; }
.nav-group {
  font-size: 11px; color: rgba(255, 255, 255, 0.36);
  letter-spacing: 1.5px; padding: 16px 10px 7px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 11px; cursor: pointer;
  color: rgba(255, 255, 255, 0.74); font-size: 13.5px;
  transition: background .16s, color .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-item.active {
  background: rgba(242, 206, 107, 0.14);
  color: #f2ce6b; font-weight: 600;
  box-shadow: inset 2px 0 0 #f2ce6b;
}
.nav-item .ni-icon { width: 18px; text-align: center; font-size: 15px; }
.nav-item .ni-text { flex: 1; }
.nav-item .ni-badge {
  min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center;
}
.nav-item .ni-badge.mute { background: rgba(255, 255, 255, 0.16); color: rgba(255,255,255,.8); }

.side-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.env {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-radius: 11px; background: rgba(255, 255, 255, 0.06); margin-bottom: 12px;
}
.env .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #35d07f; flex: none;
  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.18);
}
.env div { display: flex; flex-direction: column; line-height: 1.35; }
.env strong { font-size: 12px; }
.env span { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }
.operator { display: flex; align-items: center; gap: 10px; }
.operator img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #2c3e78; }
.operator div { display: flex; flex-direction: column; line-height: 1.35; }
.operator strong { font-size: 12.5px; }
.operator span { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px; background: rgba(244, 245, 249, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.tb-title { flex: 1; min-width: 0; }
.tb-title h1 { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.tb-title p { font-size: 12.5px; color: var(--muted); }
.tb-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); cursor: pointer; font-size: 16px;
  display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--ink); }
.only-mobile { display: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 15px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; background: #fff; font-size: 13px; font-weight: 500;
  color: var(--ink); transition: all .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #f4d071, #dda52a);
  color: #2b1d00; font-weight: 600;
  box-shadow: 0 8px 18px rgba(221, 165, 42, 0.26);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: rgba(229, 67, 63, .1); color: #c9332f; }
.btn-danger:hover { background: #e5433f; color: #fff; }
.btn-ok { background: rgba(31, 169, 113, .12); color: #14784f; }
.btn-ok:hover { background: var(--green); color: #fff; }
.btn-sm { height: 29px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 卡片 / 面板 ---------------- */
.panel {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  overflow: hidden;
}
.panel + .panel, .panel + .grid, .grid + .panel { margin-top: 18px; }
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.panel-head .ph-sub { font-size: 12px; color: var(--muted); }
.panel-head .ph-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 18px; }
.panel-body.tight { padding: 0; }
.bar-mark {
  width: 3px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, #f2ce6b, #d99f22);
}
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.c1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* ---------------- KPI ---------------- */
.kpi {
  background: var(--card); border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 76px; height: 76px;
  border-radius: 50%; background: var(--gold-soft);
}
.kpi .k-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 27px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; line-height: 1.15; }
.kpi .k-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .k-foot { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi.clickable { cursor: pointer; transition: all .16s; }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #dfe3f0; }
.trend-up { color: var(--green); font-weight: 600; }
.trend-down { color: var(--red); font-weight: 600; }
.kpi.accent { background: linear-gradient(135deg, #16224b, #101b3d); border-color: transparent; }
.kpi.accent .k-label, .kpi.accent .k-foot { color: rgba(255,255,255,.6); }
.kpi.accent .k-value { color: #fff; }
.kpi.accent::after { background: rgba(242,206,107,.18); }

/* ---------------- 标签 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 7px; font-size: 11.5px;
  font-weight: 500; white-space: nowrap;
}
.badge.gold { background: var(--gold-soft); color: #a9781a; }
.badge.blue { background: rgba(30, 58, 138, 0.1); color: #1e3a8a; }
.badge.green { background: rgba(31, 169, 113, 0.12); color: #1a8f60; }
.badge.red { background: rgba(229, 67, 63, 0.12); color: #c9332f; }
.badge.grey { background: #f0f1f5; color: #6b7280; }
.badge.violet { background: rgba(124, 92, 240, 0.12); color: #5b3fd1; }
.badge.orange { background: rgba(249, 115, 22, 0.12); color: #c2560b; }
.badge.dark { background: var(--ink); color: #f2ce6b; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #1b2a5b, #101b3d);
  color: #f2ce6b; font-size: 10.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; letter-spacing: .6px;
}

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--muted);
  padding: 11px 14px; background: #fafbfe; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: #fafbff; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl .cell-main { font-weight: 600; color: var(--ink); }
table.tbl .cell-sub { font-size: 11.5px; color: var(--muted); }
.t-right { text-align: right; }
.t-nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-2); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.link { color: var(--blue); cursor: pointer; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------------- 筛选 / 表单 ---------------- */
.toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fff;
}
.toolbar .spacer { flex: 1; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 31px; padding: 0 13px; border-radius: 16px; cursor: pointer;
  background: #f4f5f9; color: var(--text-2); font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent; transition: all .14s;
}
.chip:hover { background: #ecedf5; }
.chip.active { background: var(--ink); color: #f2ce6b; font-weight: 600; }
.chip .c-count { font-size: 11px; opacity: .65; }
.input, .select, .textarea {
  height: 34px; padding: 0 11px; border-radius: 9px; font-size: 13px;
  background: #fff; border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(221, 165, 42, .14);
}
.textarea { height: auto; min-height: 90px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input.search { min-width: 230px; padding-left: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a90a6' stroke-width='2.4'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>");
  background-repeat: no-repeat; background-position: 10px center; }
.select { cursor: pointer; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
label.field > span i { color: var(--red); font-style: normal; margin-left: 3px; }
label.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
label.field .input, label.field .select, label.field .textarea { width: 100%; }

/* ---------------- 列表项 ---------------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 13px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #fafbff; }
.li-thumb {
  width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none;
  background: linear-gradient(135deg, #e9edf8, #dde3f3);
}
.li-body { flex: 1; min-width: 0; }
.li-title { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.li-desc { font-size: 12px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-side { display: flex; align-items: center; gap: 9px; flex: none; }

/* ---------------- 看板 ---------------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; align-items: start; }
.kb-col { background: #eff1f7; border-radius: 14px; padding: 11px; min-height: 120px; }
.kb-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
.kb-head strong { font-size: 12.5px; color: var(--ink); }
.kb-head .kb-count {
  margin-left: auto; font-size: 11px; color: var(--muted);
  background: #fff; border-radius: 7px; padding: 1px 7px;
}
.kb-card {
  background: #fff; border-radius: 11px; padding: 11px 12px; margin-bottom: 9px;
  box-shadow: 0 3px 10px rgba(16, 27, 61, .07); cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
}
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,27,61,.14); border-color: var(--gold); }
.kb-card .kc-title { font-size: 12.8px; font-weight: 600; color: var(--ink); margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card .kc-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kb-empty { text-align: center; font-size: 11.5px; color: var(--muted); padding: 14px 0; }

/* ---------------- 进度条 ---------------- */
.progress { height: 7px; border-radius: 4px; background: #eff0f6; overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #f4d071, #dda52a); transition: width .4s;
}
.progress.blue > i { background: linear-gradient(90deg, #4d6bd8, #1e3a8a); }
.progress.green > i { background: linear-gradient(90deg, #4fd39b, #1fa971); }
.progress-thin { height: 5px; }

/* ---------------- 图表 ---------------- */
.chart-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 150px; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.legend-row .sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend-row .lg-name { flex: 1; color: var(--text-2); }
.legend-row .lg-val { font-weight: 600; color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 168px; padding-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-col .bc-val { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.bar-col .bc-bar {
  width: 100%; max-width: 40px; border-radius: 7px 7px 3px 3px; min-height: 4px;
  background: linear-gradient(180deg, #4d6bd8, #1e3a8a); transition: height .5s;
}
.bar-col.gold .bc-bar { background: linear-gradient(180deg, #f4d071, #dda52a); }
.bar-col .bc-x { font-size: 11px; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------------- 抽屉 / 弹层 ---------------- */
.drawer-mask, .modal-mask {
  position: fixed; inset: 0; background: rgba(16, 27, 61, .38);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 60;
}
.drawer-mask.show, .modal-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 560px; max-width: 94vw;
  background: var(--bg); z-index: 61; transform: translateX(102%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.show { transform: none; }
.drawer-head {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 16px; font-weight: 700; color: var(--ink); }
.drawer-head .dh-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.drawer-head .close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 9px; flex: none;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--muted);
}
.drawer-head .close:hover { color: var(--red); border-color: var(--red); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 26px; }
.drawer-foot {
  padding: 13px 20px; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 9px; flex-wrap: wrap;
}
.drawer-foot .spacer { flex: 1; }

.modal {
  position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97);
  width: 520px; max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: all .2s;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { padding: 18px 20px 12px; }
.modal-head h2 { font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 4px 20px 8px; overflow-y: auto; }
.modal-foot { padding: 14px 20px 18px; display: flex; gap: 9px; justify-content: flex-end; }

/* ---------------- Toast ---------------- */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 11px;
  font-size: 13px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px;
  animation: toast-in .22s ease-out; max-width: 360px;
}
.toast.ok { background: #10603f; }
.toast.err { background: #7f2320; }
.toast.gold { background: #6b4c07; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- 详情块 ---------------- */
.kv { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .kv-k { width: 108px; flex: none; color: var(--muted); font-size: 12.5px; }
.kv .kv-v { flex: 1; color: var(--text); word-break: break-word; }
.section-title {
  display: flex; align-items: center; gap: 8px; margin: 20px 0 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.section-title:first-child { margin-top: 4px; }
.section-title .st-line { flex: 1; height: 1px; background: var(--line); }

.note {
  background: #fff8e6; border: 1px solid #f5e2ac; border-radius: 12px;
  padding: 11px 13px; font-size: 12.5px; color: #9a7420; line-height: 1.65;
  display: flex; gap: 8px;
}
.note.info { background: #eef3ff; border-color: #d5e0ff; color: #3552a8; }
.note.danger { background: #fdeeee; border-color: #f6d2d1; color: #a8322e; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 11px; padding-bottom: 14px; position: relative; }
.tl-item:not(:last-child)::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0;
  width: 1px; background: var(--line-2);
}
.tl-dot {
  width: 25px; height: 25px; border-radius: 50%; flex: none; font-size: 12px;
  display: grid; place-items: center; background: #eef1f8; color: var(--ink-2);
}
.tl-dot.official { background: var(--ink); color: #f2ce6b; }
.tl-dot.me { background: var(--gold-soft); color: #a9781a; }
.tl-body { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; }
.tl-body .tl-text { font-size: 12.8px; color: var(--text); }
.tl-body .tl-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

.check-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; margin-bottom: 8px;
  cursor: pointer; transition: all .14s;
}
.check-row:hover { border-color: #cfd6e8; }
.check-row.done { background: #f8fbf9; border-color: #d8ecdf; }
.check-row input { margin-top: 2px; width: 15px; height: 15px; accent-color: #1fa971; cursor: pointer; flex: none; }
.check-row .cr-text { flex: 1; font-size: 12.8px; }
.check-row.done .cr-text { color: var(--muted); text-decoration: line-through; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .e-icon { font-size: 34px; opacity: .55; }
.empty .e-title { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-top: 9px; }
.empty .e-desc { font-size: 12px; margin-top: 4px; }

.log-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.log-item:last-child { border-bottom: none; }
.log-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: none; }
.log-text { flex: 1; }
.log-text b { color: var(--ink); font-weight: 600; }
.log-time { color: var(--muted); font-size: 11.5px; }

.copy-inline { display: flex; align-items: center; gap: 7px; }
.copy-inline .code {
  font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; letter-spacing: .5px;
  background: #f4f6fb; border: 1px dashed var(--line-2); padding: 4px 9px; border-radius: 8px;
}
.pager { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line); }
.pager .pg-info { font-size: 12.5px; color: var(--muted); margin-right: auto; }

.stat-mini { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-mini .sm { display: flex; flex-direction: column; }
.stat-mini .sm b { font-size: 18px; color: var(--ink); }
.stat-mini .sm span { font-size: 11.5px; color: var(--muted); }

.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .grid.c3, .grid.c2-1, .grid.c1-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .only-mobile { display: grid; }
  .sidebar {
    position: fixed; z-index: 70; left: 0; top: 0;
    transform: translateX(-102%); transition: transform .24s;
  }
  .sidebar.show { transform: none; }
  .view { padding: 16px 14px 50px; }
  .topbar { padding: 12px 14px; }
  .grid.c2 { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
}
