:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #d9e3ef;
  --text: #10203a;
  --muted: #6c7b93;
  --blue: #2463eb;
  --blue-strong: #174bc2;
  --blue-soft: #eaf1ff;
  --green: #14866d;
  --shadow: 0 18px 42px rgba(22, 42, 77, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(36, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--text);
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #6aa6ff 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand h1,
.topbar h2,
.section-head h3,
.card h3,
.tree-panel h3,
.note-card h4 {
  margin: 0;
}

.brand p,
.topbar p,
.empty,
.meta,
.mini,
.task-help {
  margin: 0;
  color: var(--muted);
}

.project-switch {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button,
.ghost-btn,
.primary-btn,
.subtle-btn,
.chip,
.task-item button,
.tree-actions button,
.note-actions button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.nav button {
  text-align: left;
  padding: 13px 14px;
  background: transparent;
  color: var(--text);
}

.nav button.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.main {
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.ghost-btn,
.primary-btn,
.subtle-btn {
  padding: 11px 16px;
}

.ghost-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-btn {
  background: var(--blue);
  color: #fff;
}

.subtle-btn {
  background: var(--blue-soft);
  color: var(--blue);
}

.page {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.data-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.field-wide {
  grid-column: 1 / -1;
}

.card,
.panel,
.tree-panel,
.note-card,
.task-block {
  background: var(--panel);
  border: 1px solid rgba(217, 227, 239, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card,
.panel,
.tree-panel,
.task-block {
  padding: 18px;
}

.stat {
  display: grid;
  gap: 10px;
}

.stat .value {
  font-size: 28px;
  font-weight: 700;
}

.stat .value.small {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.stat .label {
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(560px, 0.95fr);
  gap: 18px;
}

.two-col > *,
.panel,
.card {
  min-width: 0;
}

.dashboard-main-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list,
.task-list,
.report-list,
.knowledge-list,
.memo-grid,
.tree-list {
  display: grid;
  gap: 12px;
}

.task-history-list {
  display: grid;
  gap: 12px;
}

.task-item,
.report-item,
.knowledge-item {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border: 1px solid #edf2f8;
  border-radius: 14px;
}

.report-item,
.knowledge-item {
  display: flex;
  justify-content: space-between;
}

.knowledge-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  background: #fbfdff;
}

.knowledge-content-field {
  grid-column: 1 / -1;
}

.knowledge-content-field textarea {
  min-height: 130px;
  resize: vertical;
}

.knowledge-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.task-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border: 1px solid #edf2f8;
  border-radius: 14px;
}

.task-history-main {
  display: grid;
  gap: 4px;
}

.task-item {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) 90px;
  min-height: 84px;
  text-align: center;
}

.task-check {
  justify-self: center;
  width: auto;
  margin: 0;
}

.task-title {
  justify-self: center;
  max-width: 720px;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
}

.task-item button {
  justify-self: end;
  min-width: 82px;
}

.task-item.done .task-title {
  text-decoration: line-through;
  color: var(--muted);
}

.task-form,
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .field {
  min-width: 160px;
  flex: 1;
}

.field {
  display: grid;
  gap: 8px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.danger-btn {
  border: 1px solid #f1b8bd;
  background: #fff5f5;
  color: #c83542;
}

.mind-map-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mind-map-title-row h3 {
  margin-right: 4px;
}

.mind-map-title-row select {
  min-width: 180px;
  height: 36px;
}

.mind-map-record {
  margin: 0 0 10px;
}

.progress-line {
  display: grid;
  gap: 10px;
}

.progress-text {
  font-size: 14px;
  color: var(--muted);
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e7eef9;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2463eb 0%, #5f96ff 100%);
}

.mind-mini-wrap {
  border: 1px solid #e5edf8;
  border-radius: 16px;
  background-color: #fbfdff;
  background-image: radial-gradient(#d7e3f2 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 16px;
  overflow: auto;
  min-height: 360px;
  max-height: 460px;
  width: 100%;
  box-sizing: border-box;
}

.mind-mini-svg {
  display: block;
  min-width: 760px;
  min-height: 300px;
}

.mind-mini-text {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #10203a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
  white-space: pre-wrap;
}

.chart-panel {
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9ff 100%);
}

.chart-wrap {
  border: 1px solid #e5edf8;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  overflow-x: auto;
}

.chart-svg {
  min-width: 920px;
  width: 100%;
  height: 320px;
  display: block;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
  font-size: 14px;
}

.history-table th {
  color: var(--muted);
  font-weight: 600;
}

.tree-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.tree-list button {
  text-align: left;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.tree-list button.active {
  background: var(--blue-soft);
  border-color: #c9dcff;
  color: var(--blue);
}

.tree-actions,
.note-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tree-preview {
  display: grid;
  gap: 12px;
}

.mind-canvas-wrap {
  overflow: auto;
  border: 1px solid #e5edf8;
  border-radius: 16px;
  background-color: #fbfdff;
  background-image: radial-gradient(#d7e3f2 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 18px;
}

.mind-canvas {
  position: relative;
  min-width: 100%;
}

.mind-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mind-svg path {
  fill: none;
  stroke: #b9c9e4;
  stroke-width: 2;
}

.mind-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1.5px solid #b7c7dd;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(23, 44, 82, 0.08);
  cursor: pointer;
  user-select: none;
}

.mind-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.mind-card-link:hover {
  background: #dceaff;
}

.mind-card.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 14px 30px rgba(37, 99, 235, 0.12);
}

.mind-card:active {
  cursor: grabbing;
}

.mind-card.dragging {
  opacity: 0.55;
}

.mind-card.drag-over {
  border-color: #14866d;
  box-shadow: 0 0 0 3px rgba(20, 134, 109, 0.18), 0 14px 26px rgba(20, 134, 109, 0.12);
}

.mind-card-text {
  display: block;
  width: 100%;
  min-height: 24px;
  outline: none;
  text-align: center;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.mind-card-text:focus {
  border-radius: 6px;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px #c5d8ff;
}

.mind-card-actions {
  position: absolute;
  top: -42px;
  left: 50%;
  z-index: 5;
  display: flex;
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 35, 60, 0.16);
}

.mind-card-actions button {
  width: 36px;
  height: 34px;
  border: 0;
  border-right: 1px solid #edf2f8;
  background: #fff;
  color: #22314a;
  font-weight: 700;
  cursor: pointer;
}

.mind-card-actions button:last-child {
  border-right: 0;
}

.mind-card-actions button:hover {
  background: #eef5ff;
  color: #2563eb;
}

.mind-head {
  align-items: center;
}

.mind-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mind-editor {
  margin-top: 14px;
}

.mind-link-editor {
  display: flex;
  gap: 8px;
}

.mind-link-editor input {
  min-width: 0;
  flex: 1;
}

.mind-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

.tree-node {
  padding: 12px 14px;
  border: 1px solid #dde7f4;
  border-radius: 14px;
  background: #fff;
}

.tree-node.selected-node {
  border-color: #9bbcff;
  box-shadow: inset 0 0 0 1px #c9dcff;
}

.tree-node.depth-0 {
  background: linear-gradient(135deg, #edf4ff 0%, #ffffff 100%);
}

.tree-node.depth-1 {
  margin-left: 18px;
}

.tree-node.depth-2 {
  margin-left: 36px;
}

.tree-node.depth-3,
.tree-node.depth-4,
.tree-node.depth-5 {
  margin-left: 54px;
}

.memo-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.note-card {
  padding: 16px;
}

.note-card textarea {
  min-height: 130px;
  resize: vertical;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ebf8f3;
  color: var(--green);
  font-size: 12px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .two-col,
  .tree-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: #f3f6fb;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #f7fbff;
  }

  .brand {
    gap: 10px;
    margin: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
  }

  .brand h1 {
    font-size: 28px;
    line-height: 1;
  }

  .brand p,
  .project-switch span {
    display: none;
  }

  .project-switch {
    margin: 0;
    font-size: 14px;
  }

  .project-switch select {
    height: 44px;
    border-radius: 14px;
    background: #fff;
  }

  .nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    overflow-x: auto;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 30px rgba(22, 42, 77, 0.1);
    backdrop-filter: blur(16px);
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 10px 12px;
    text-align: center;
    white-space: nowrap;
    border-radius: 16px;
  }

  .main {
    padding: 14px 12px 24px;
  }

  .topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .topbar h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .topbar p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
  }

  #refreshBtn {
    width: 100%;
  }

  .page {
    gap: 14px;
  }

  .grid,
  .grid.cards,
  .data-form-grid,
  .dashboard-main-grid,
  .memo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card,
  .panel,
  .tree-panel,
  .task-block,
  .note-card {
    border-radius: 16px;
    padding: 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-head .toolbar,
  .chart-filter,
  .mind-toolbar {
    width: 100%;
  }

  .task-form,
  .toolbar,
  .note-actions,
  .tree-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .task-item {
    grid-template-columns: 42px minmax(0, 1fr) 70px;
    min-height: 72px;
    padding: 10px;
  }

  .task-title {
    max-width: 100%;
    font-size: 15px;
  }

  .task-item button {
    min-width: 64px;
    padding: 9px 10px;
  }

  .chart-wrap,
  .mind-mini-wrap,
  .mind-canvas-wrap {
    margin-right: -4px;
    margin-left: -4px;
    border-radius: 14px;
  }

  .chart-svg {
    min-width: 780px;
    height: 300px;
  }

  .history-table {
    min-width: 760px;
  }

  .mind-mini-wrap {
    min-height: 320px;
    max-height: 420px;
  }

  .mind-mini-svg {
    min-width: 720px;
  }

  .tree-layout {
    display: grid;
    gap: 12px;
  }

  .tree-panel:first-child {
    order: 2;
  }

  .tree-panel:last-child {
    order: 1;
  }

  .mind-canvas-wrap {
    min-height: 430px;
  }

  .mind-card-actions {
    top: -38px;
  }

  .mind-card-actions button {
    width: 34px;
    height: 32px;
  }

  .report-item,
  .knowledge-item {
    display: grid;
    gap: 10px;
  }

  .knowledge-form {
    grid-template-columns: 1fr;
  }
}
/* 顶部循环提醒与知识库日记 */
.wisdom-ticker { position: sticky; top: 0; z-index: 100; width: 100%; height: 38px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.18); background: linear-gradient(90deg,#0f327b 0%,#155eef 45%,#174bc2 100%); color: #fff; box-shadow: 0 6px 18px rgba(15,50,123,.16); }
.wisdom-track { display: flex; align-items: center; gap: 24px; width: max-content; height: 100%; padding-left: 24px; animation: wisdom-scroll 28s linear infinite; font-size: 14px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; will-change: transform; }
.wisdom-track i { color: #a9c8ff; font-style: normal; }
.wisdom-ticker:hover .wisdom-track { animation-play-state: paused; }
@keyframes wisdom-scroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .wisdom-track { animation-duration: 80s; } }
.shell { min-height: calc(100vh - 38px); }
.knowledge-tabs { display: inline-flex; gap: 5px; margin-bottom: 18px; padding: 5px; border: 1px solid #dce6f4; border-radius: 14px; background: #f2f6fc; }
.knowledge-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.knowledge-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 5px 16px rgba(28,70,140,.11); }
.knowledge-tabs button span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; place-items: center; border-radius: 999px; background: var(--blue-soft); font-size: 12px; }
.diary-heading { align-items: flex-start; }
.diary-heading h3 { margin: 0 0 5px; }
.diary-count { padding: 7px 11px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 13px; font-weight: 700; }
.diary-form { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 14px; padding: 18px; border: 1px solid #dce8f8; border-radius: 16px; background: linear-gradient(145deg,#fbfdff 0%,#f4f8ff 100%); }
.diary-content-field { grid-column: 1 / -1; }
.diary-content-field textarea { min-height: 190px; resize: vertical; line-height: 1.75; }
.diary-list-section { min-width: 0; }
.diary-list { display: grid; gap: 14px; }
.diary-card { padding: 20px; border: 1px solid rgba(217,227,239,.95); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(22,42,77,.06); }
.diary-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.diary-card time { display: inline-block; margin-bottom: 7px; color: var(--blue); font-size: 13px; font-weight: 700; }
.diary-card h4 { margin: 0; font-size: 19px; }
.diary-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.diary-delete-btn { padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.diary-content { margin: 16px 0 10px; color: #283c5b; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.diary-updated { padding-top: 10px; border-top: 1px dashed #e2e9f3; font-size: 12px; }
.diary-history { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border: 1px solid #dce7f6; border-radius: 14px; background: #f7faff; }
.diary-history-title,.diary-history-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.diary-history-title span,.diary-history-meta span { color: var(--muted); font-size: 12px; }
.diary-history-item { display: grid; gap: 9px; padding: 14px; border: 1px solid #e1e9f4; border-radius: 12px; background: #fff; }
.diary-history-item p { margin: 0; color: #3b4d69; line-height: 1.65; white-space: pre-wrap; }
.diary-history-item .subtle-btn { justify-self: end; }
.history-date { margin-right: 10px; color: var(--blue); font-size: 13px; font-weight: 700; }
.diary-empty { padding: 54px 20px; border: 1px dashed #cfdced; border-radius: 18px; background: rgba(255,255,255,.72); }
.diary-history-empty { padding: 20px; }
@media (max-width:760px) {
  .wisdom-ticker { height: 34px; }
  .wisdom-track { gap: 18px; font-size: 13px; }
  .shell { min-height: calc(100vh - 34px); }
  .knowledge-tabs { display: flex; width: 100%; }
  .knowledge-tabs button { flex: 1; padding: 0 10px; }
  .diary-form { grid-template-columns: 1fr; padding: 14px; }
  .diary-card { padding: 15px; }
  .diary-card-top { display: grid; grid-template-columns: 1fr; }
  .diary-actions { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
  .diary-actions button { padding: 10px 6px; }
}
/* 日记密码锁 */
.diary-lock-card { max-width: 560px; margin: 34px auto 18px; padding: 34px; border: 1px solid #dbe6f5; border-radius: 22px; background: linear-gradient(145deg,#ffffff 0%,#f4f8ff 100%); box-shadow: 0 22px 56px rgba(25,56,110,.1); text-align: center; }
.diary-lock-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 18px; place-items: center; border-radius: 22px; background: linear-gradient(135deg,#174bc2,#4f8cff); color: #fff; box-shadow: 0 12px 28px rgba(36,99,235,.28); font-size: 20px; font-weight: 800; }
.diary-lock-copy { max-width: 440px; margin: 0 auto; }
.diary-lock-copy h3 { margin: 5px 0 10px; font-size: 25px; }
.diary-lock-copy > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.diary-lock-eyebrow { margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.diary-lock-form { display: grid; gap: 13px; margin-top: 24px; text-align: left; }
.diary-lock-form .primary-btn { width: 100%; margin-top: 3px; }
.diary-lock-error { margin: 0; padding: 10px 12px; border: 1px solid #ffc7cc; border-radius: 11px; background: #fff1f2; color: #b8293b; font-size: 13px; line-height: 1.5; }
.diary-lock-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.build-version { position: fixed; right: 12px; bottom: 10px; z-index: 999; padding: 5px 9px; border: 1px solid #cfe0ff; border-radius: 999px; background: rgba(255,255,255,.92); color: #155eef; font-size: 11px; font-weight: 800; box-shadow: 0 6px 18px rgba(21,94,239,.12); }
.memo-workspace-heading { align-items: flex-start; }
.memo-workspace-heading h3 { margin: 0 0 5px; }
.memo-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.memo-summary span { padding: 7px 10px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 12px; font-weight: 800; }
.knowledge-memo-form { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(320px,1.3fr); gap: 14px; padding: 18px; border: 1px solid #dce8f8; border-radius: 16px; background: linear-gradient(145deg,#fbfdff 0%,#f4f8ff 100%); }
.knowledge-memo-form .form-actions { grid-column: 1 / -1; }
.knowledge-memo-content-field textarea { min-height: 96px; resize: vertical; }
.memo-record-section { min-width: 0; }
.memo-record-list { display: grid; gap: 12px; }
.memo-record-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid #dce5f0; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(22,42,77,.05); }
.memo-record-card.is-pinned { border-color: #b8d0ff; background: linear-gradient(145deg,#ffffff,#f2f7ff); }
.memo-record-card.is-completed { background: #f8fafc; box-shadow: none; }
.memo-record-copy { min-width: 0; flex: 1; }
.memo-record-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.memo-record-title strong { font-size: 17px; }
.memo-record-copy p { margin: 9px 0 12px; color: #3b4d69; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.memo-record-card.is-completed .memo-record-copy strong,.memo-record-card.is-completed .memo-record-copy p { color: #77869a; }
.memo-pin-badge,.memo-done-badge { padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.memo-pin-badge { background: #fff2cc; color: #9a6500; }
.memo-done-badge { background: #e6f7ee; color: #18794e; }
.memo-record-actions { display: flex; flex: 0 0 auto; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.memo-complete-btn { padding: 9px 12px; }
@media (max-width:760px) {
  .knowledge-memo-form { grid-template-columns: 1fr; padding: 14px; }
  .knowledge-memo-form .form-actions { grid-column: auto; }
  .memo-workspace-heading,.memo-record-card { display: grid; grid-template-columns: 1fr; }
  .memo-record-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
}
.diary-heading-actions { display: flex; align-items: center; gap: 9px; }
.diary-heading-actions .ghost-btn { padding: 8px 12px; color: var(--blue); }
@media (max-width:760px) {
  .diary-lock-card { margin: 18px auto 4px; padding: 24px 16px; border-radius: 18px; }
  .diary-lock-icon { width: 58px; height: 58px; border-radius: 18px; }
  .diary-lock-copy h3 { font-size: 22px; }
  .diary-heading-actions { width: 100%; justify-content: space-between; }
}

/* 直播日报：计划、执行与数据结果 */
.report-editor-panel { padding: 24px; overflow: hidden; }
.report-page-heading { align-items: flex-start; }
.report-page-heading h3,.report-history-section h3 { margin: 0 0 5px; }
.report-count { padding: 7px 11px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.report-form { display: grid; gap: 20px; }
.report-date-field { max-width: 260px; }
.report-plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.report-text-field { padding: 18px; border: 1px solid #dbe7f7; border-radius: 16px; background: linear-gradient(145deg,#fbfdff,#f4f8ff); }
.report-text-field label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.report-text-field textarea { min-height: 132px; resize: vertical; line-height: 1.7; background: #fff; }
.report-step-number { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 900; vertical-align: middle; }
.report-result-editor { padding: 18px; border: 1px solid #dce7f5; border-radius: 17px; background: #fff; }
.report-result-editor h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font-size: 16px; }
.report-table-scroll { width: 100%; overflow-x: auto; border: 1px solid #e1e9f3; border-radius: 13px; background: #fff; }
.report-result-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.report-result-table th { padding: 11px 10px; border-bottom: 1px solid #dfe8f3; background: #f5f8fc; color: #53657e; font-size: 12px; font-weight: 800; text-align: left; white-space: nowrap; }
.report-result-table td { padding: 9px 8px; border-bottom: 1px solid #edf2f8; color: #31445f; font-size: 13px; vertical-align: top; }
.report-result-table tbody tr:last-child td { border-bottom: 0; }
.report-result-inputs input { width: 100%; min-width: 118px; padding: 10px 9px; border-radius: 9px; background: #fbfdff; font-size: 13px; }
.report-result-inputs th:first-child,.report-result-inputs td:first-child { min-width: 190px; }
.report-result-inputs th:last-child,.report-result-inputs td:last-child { width: 70px; }
.report-row-remove { padding: 9px 10px; color: #b12d3b; }
.report-form-actions { justify-content: flex-end; padding-top: 2px; }
.report-history-section { min-width: 0; }
.report-history-list { display: grid; gap: 16px; }
.report-review-card { padding: 21px; border: 1px solid #dce6f2; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(24,49,88,.06); }
.report-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid #edf2f7; }
.report-review-head > div:first-child { display: grid; gap: 5px; }
.report-review-date { color: #18365f; font-size: 18px; }
.report-review-actions { display: flex; gap: 8px; }
.report-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.report-summary-box { padding: 15px; border: 1px solid #e0e9f5; border-radius: 14px; background: #f8fbff; }
.report-summary-box span { color: var(--blue); font-size: 12px; font-weight: 800; }
.report-summary-box p { margin: 8px 0 0; color: #2f435f; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.report-result-heading { margin: 4px 0 10px; color: #263c5b; font-size: 14px; font-weight: 800; }
.report-result-view { min-width: 760px; }
.report-result-view .report-after-value { color: #116b47; font-weight: 800; background: #f1fbf6; }
.report-empty-result { padding: 18px; }
.report-chart-panel { margin-top: 2px; }
.report-chart-panel .section-head { align-items: flex-start; gap: 18px; }
.report-chart-panel .section-head h3 { margin: 0 0 5px; }
.report-chart-filter { justify-content: flex-end; flex-wrap: wrap; }
.report-chart-filter select { min-width: 150px; }
.report-chart-filter input[type="date"] { min-width: 148px; }
.report-chart-actions { margin-top: 16px; padding: 16px; border: 1px solid #dce7f5; border-radius: 15px; background: rgba(255,255,255,.78); }
.report-chart-actions .section-head { align-items: center; margin-bottom: 11px; }
.report-chart-actions h4 { margin: 0; color: #243c60; font-size: 15px; }
.report-chart-action-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 9px; }
.report-chart-action-item { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e0e8f3; border-radius: 12px; background: #fff; }
.report-chart-action-number { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 900; }
.report-chart-action-item strong { color: #294361; font-size: 13px; }
.report-chart-action-item p { margin: 3px 0 0; color: #607089; font-size: 12px; line-height: 1.45; white-space: normal; word-break: break-word; }
.report-chart-action-value { padding: 5px 8px; border-radius: 8px; background: #edf8f2; color: #12714b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.chart-point-group { cursor: help; }
.report-action-editor { display: grid; gap: 18px; }
.report-action-editor h3 { margin: 0 0 5px; }
.report-action-form { display: grid; grid-template-columns: minmax(190px,.35fr) minmax(420px,1fr); gap: 14px; padding: 18px; border: 1px solid #dce7f6; border-radius: 16px; background: linear-gradient(145deg,#fbfdff,#f3f8ff); }
.report-action-form .form-actions { grid-column: 1 / -1; }
.report-action-content textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.report-action-history { padding-top: 4px; border-top: 1px solid #edf2f7; }
.report-action-history h4 { margin: 0; color: #243c60; }
.report-action-list { display: grid; gap: 9px; }
.report-action-card { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid #dfe8f3; border-radius: 13px; background: #fff; }
.report-action-card time { color: var(--blue); font-size: 13px; font-weight: 900; }
.report-action-card p { margin: 0; color: #314660; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.report-action-card > div { display: flex; gap: 7px; }
.report-data-center,.report-linked-chart { min-width: 0; }
.chart-metric-picker { position: relative; min-width: 220px; }
.chart-metric-picker > summary { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; border: 1px solid #d7e2f0; border-radius: 11px; background: #fff; color: #263d5c; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.chart-metric-picker > summary::-webkit-details-marker { display: none; }
.chart-metric-picker > summary::after { content: "▾"; color: #6b7b92; font-size: 11px; }
.chart-metric-picker[open] > summary { border-color: #8eb6ff; box-shadow: 0 0 0 3px rgba(36,99,235,.1); }
.chart-metric-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(520px,82vw); padding: 15px; border: 1px solid #d8e3f1; border-radius: 15px; background: #fff; box-shadow: 0 18px 45px rgba(20,45,83,.18); }
.chart-metric-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.chart-metric-picker-head strong { color: #203a5c; font-size: 14px; }
.chart-metric-picker-head span { color: var(--muted); font-size: 12px; }
.chart-metric-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 300px; overflow-y: auto; }
.chart-metric-checks label { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e4ebf4; border-radius: 10px; background: #f9fbfe; color: #314660; font-size: 13px; cursor: pointer; }
.chart-metric-checks label:hover { border-color: #a9c6fb; background: #f2f7ff; }
.chart-metric-checks input { width: 16px; height: 16px; accent-color: var(--blue); }
.chart-metric-checks small { color: #7a899d; font-size: 11px; }
.chart-metric-picker-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf1f6; }
.multi-chart-svg { height: 360px; }
.today-problem-field textarea { min-height: 82px; resize: vertical; line-height: 1.6; background: #fffdf8; border-color: #ead9ad; }
.history-action-cell { min-width: 210px; }
.history-action-hover { position: relative; display: inline-block; max-width: 280px; padding: 6px 9px; border: 1px solid #cfe0ff; border-radius: 9px; background: #f2f7ff; color: #174da8; font-size: 12px; line-height: 1.45; cursor: help; }
.history-action-hover::after { content: attr(data-tooltip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 80; display: none; width: max-content; max-width: 360px; padding: 10px 12px; border-radius: 10px; background: #102a56; color: #fff; box-shadow: 0 10px 28px rgba(16,42,86,.25); font-size: 12px; line-height: 1.6; white-space: normal; word-break: break-word; }
.history-action-hover:hover::after,.history-action-hover:focus::after { display: block; }
.history-problem-cell { min-width: 210px; }
.history-problem-hover { position: relative; display: inline-block; max-width: 280px; padding: 6px 9px; border: 1px solid #f0d8a9; border-radius: 9px; background: #fff9ea; color: #865815; font-size: 12px; line-height: 1.45; cursor: help; }
.history-problem-hover::after { content: attr(data-tooltip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 80; display: none; width: max-content; max-width: 360px; padding: 10px 12px; border-radius: 10px; background: #49310f; color: #fff; box-shadow: 0 10px 28px rgba(73,49,15,.24); font-size: 12px; line-height: 1.6; white-space: normal; word-break: break-word; }
.history-problem-hover:hover::after,.history-problem-hover:focus::after { display: block; }
.history-action-empty { color: #9aa7b8; }
.chart-action-marker { cursor: help; outline: none; }
.chart-action-visible { transition: r .14s ease, filter .14s ease; }
.chart-action-marker:hover .chart-action-visible,.chart-action-marker:focus .chart-action-visible { r: 12px; filter: drop-shadow(0 3px 5px rgba(16,42,86,.35)); }
.chart-action-tooltip { position: fixed; z-index: 2200; display: none; width: max-content; max-width: min(390px,calc(100vw - 24px)); padding: 11px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: #102a56; color: #fff; box-shadow: 0 14px 36px rgba(16,42,86,.32); font-size: 13px; font-weight: 650; line-height: 1.65; white-space: pre-wrap; word-break: break-word; pointer-events: none; }
.chart-action-tooltip.is-visible { display: block; }

@media (max-width:760px) {
  .report-editor-panel { padding: 16px; }
  .report-page-heading,.report-review-head { display: grid; grid-template-columns: 1fr; }
  .report-plan-grid,.report-summary-grid { grid-template-columns: 1fr; }
  .report-result-editor { padding: 13px; }
  .report-result-editor .section-head { align-items: flex-start; }
  .report-review-card { padding: 15px; }
  .report-review-actions { width: 100%; }
  .report-review-actions button { flex: 1; }
  .report-chart-panel .section-head { display: grid; grid-template-columns: 1fr; }
  .report-chart-filter { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .report-chart-filter .field,.report-chart-filter select,.report-chart-filter input[type="date"] { width: 100%; min-width: 0; }
  .report-chart-actions { padding: 12px; }
  .report-chart-actions .section-head { display: grid; grid-template-columns: 1fr; }
  .report-chart-action-list { grid-template-columns: 1fr; }
  .report-action-form { grid-template-columns: 1fr; padding: 14px; }
  .report-action-form .form-actions { grid-column: auto; }
  .report-action-card { grid-template-columns: 1fr; }
  .report-action-card > div { width: 100%; }
  .report-action-card > div button { flex: 1; }
  .chart-metric-picker { width: 100%; }
  .chart-metric-picker > summary { width: 100%; }
  .chart-metric-popover { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .chart-metric-checks { grid-template-columns: 1fr; }
}

/* V24 · 直播运营决策驾驶舱 */
.wisdom-ticker { height: 28px; box-shadow: 0 3px 12px rgba(15,50,123,.12); }
.wisdom-track { gap: 22px; padding-left: 18px; animation-duration: 46s; font-size: 12px; font-weight: 650; letter-spacing: .05em; }
.shell { min-height: calc(100vh - 28px); }
.page { padding-bottom: 76px; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-color: #cfe0ff; background: linear-gradient(120deg,#ffffff 0%,#f0f6ff 100%); }
.dashboard-hero h3 { margin: 5px 0 4px; font-size: 24px; }
.dashboard-hero p { margin: 0; color: #53657e; }
.dashboard-eyebrow { color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.core-metrics-grid { display: grid; grid-template-columns: repeat(6,minmax(140px,1fr)); gap: 12px; }
.kpi-card { display: grid; min-width: 0; gap: 8px; padding: 18px; border: 1px solid #dbe5f2; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(22,42,77,.06); }
.kpi-card > span { color: #607089; font-size: 13px; font-weight: 700; }
.kpi-card strong { color: #102a56; font-size: clamp(22px,2vw,32px); line-height: 1.05; white-space: nowrap; }
.kpi-card small { min-height: 17px; color: #718096; font-size: 11px; }
.kpi-card.kpi-primary { border-top: 3px solid var(--blue); }
.kpi-card.kpi-primary strong { color: #174bc2; }
.kpi-card.kpi-secondary { background: #f9fbfe; box-shadow: none; }
.traffic-strip { padding: 16px 20px; }
.traffic-strip .section-head { margin-bottom: 12px; }
.traffic-metrics { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.traffic-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #e4ebf4; border-radius: 12px; background: #f8fbff; }
.traffic-metrics span { color: #718096; font-size: 12px; }
.traffic-metrics strong { color: #314660; font-size: 18px; }
.dashboard-v24-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 18px; }
.monthly-goal-card,.ai-judgement-card { min-width: 0; }
.goal-total { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 14px; }
.goal-total strong { color: #174bc2; font-size: 30px; }
.goal-total span { color: #607089; font-weight: 700; }
.goal-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #e9eff8; }
.goal-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2463eb,#61a0ff); }
.goal-percent { margin-top: 7px; color: var(--blue); font-size: 13px; font-weight: 850; text-align: right; }
.goal-detail-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 17px 0; }
.goal-detail-grid div { display: grid; gap: 5px; padding: 11px; border-radius: 11px; background: #f5f8fc; }
.goal-detail-grid span { color: #738197; font-size: 11px; }
.goal-detail-grid strong { color: #2c425f; font-size: 14px; }
.goal-guidance { margin: 0; padding: 12px 14px; border-radius: 12px; background: #edf4ff; color: #245099; font-size: 13px; font-weight: 700; line-height: 1.6; }
.ai-label { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eaf1ff; color: var(--blue); font-size: 10px; font-weight: 850; }
.ai-judgement-card h3 { margin-top: 5px; }
.ai-judgement-card h4 { margin: 18px 0 10px; color: #17345b; font-size: 20px; }
.judgement-change { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #f7faff; color: #53657e; font-size: 13px; }
.ai-judgement-card ol { margin: 14px 0; padding-left: 22px; color: #314660; line-height: 1.9; }
.funnel-flow { display: grid; justify-items: center; gap: 4px; padding: 16px 0; }
.funnel-stage { display: flex; width: var(--funnel-width); max-width: 760px; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border: 1px solid #cfe0ff; border-radius: 12px; background: linear-gradient(90deg,#eef5ff,#f9fbff); }
.funnel-stage span { color: #4b607c; font-weight: 700; }
.funnel-stage strong { color: #174bc2; font-size: 20px; }
.funnel-rate { color: #5b78a5; font-size: 12px; font-weight: 800; }
.funnel-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 12px; background: #f5f8fc; color: #53657e; }
.funnel-alert.is-warning { border: 1px solid #f1cf97; background: #fff8ec; color: #8b5b13; }
.dashboard-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compact-summary { box-shadow: none; }
.tertiary-counts { display: flex; gap: 10px; margin-bottom: 12px; }
.tertiary-counts span { padding: 7px 10px; border-radius: 999px; background: #f0f4fa; color: #68788f; font-size: 12px; }

.task-toolbar-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.task-toolbar-panel h3 { margin: 0 0 4px; }
.task-filter-tabs { display: inline-flex; gap: 5px; padding: 4px; border-radius: 12px; background: #eef3f9; }
.task-filter-tabs button { padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; color: #607089; cursor: pointer; }
.task-filter-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(22,42,77,.08); font-weight: 800; }
.task-filter-tabs span { margin-left: 5px; font-size: 10px; }
.task-sections-grid { gap: 14px; }
.task-block-compact { padding: 16px; }
.task-create-row { display: grid; grid-template-columns: minmax(220px,1fr) 90px 185px 150px auto; gap: 8px; margin-bottom: 12px; }
.task-create-row input,.task-create-row select,.task-create-row button { min-height: 39px; padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.compact-task-list { gap: 7px; }
.compact-task-card { display: grid; grid-template-columns: 22px minmax(0,1fr) 150px auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #e2e9f3; border-radius: 11px; background: #fff; }
.compact-task-copy { min-width: 0; }
.compact-task-copy > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.compact-task-copy strong { overflow: hidden; color: #253b59; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.compact-task-copy small { display: block; margin-top: 3px; color: #8090a5; font-size: 11px; }
.compact-task-card time { color: #6b7b91; font-size: 11px; }
.compact-task-card.done { background: #f7fafc; opacity: .72; }
.compact-task-card.done strong { text-decoration: line-through; }
.priority-badge,.task-status-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.priority-高 { background: #fff0f0; color: #c23a46; }
.priority-中 { background: #fff7e8; color: #9a6417; }
.priority-低 { background: #edf8f2; color: #17714e; }
.task-status-badge { background: #edf4ff; color: #2563b8; }
.compact-delete-btn { padding: 7px 9px; font-size: 11px; }
.todo-converted-badge,.converted-task-note { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #edf4ff; color: #2463b8; font-size: 11px; font-weight: 800; }
.modal-backdrop,.drawer-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgba(16,32,58,.38); backdrop-filter: blur(3px); }
.modal-card { width: min(680px,100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(16,32,58,.28); }
.knowledge-library-head { margin-bottom: 14px; }
.knowledge-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; }
.knowledge-search-row input { padding-left: 16px; }
.knowledge-search-row span { color: #718096; font-size: 12px; }
.knowledge-category-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.knowledge-category-tabs button { padding: 7px 11px; border: 1px solid #dce5f1; border-radius: 999px; background: #fff; color: #617189; cursor: pointer; font-size: 12px; }
.knowledge-category-tabs button.active { border-color: #8bb3fb; background: #edf4ff; color: #155eef; font-weight: 800; }
.knowledge-result-list { gap: 10px; }
.knowledge-result-card { align-items: flex-start; }
.knowledge-card-title { display: flex; align-items: center; gap: 8px; }
.knowledge-card-title span { padding: 3px 7px; border-radius: 999px; background: #edf4ff; color: #2463b8; font-size: 10px; font-weight: 800; }
.knowledge-result-card p { display: -webkit-box; overflow: hidden; margin: 9px 0; color: #465b77; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.knowledge-result-card small { color: #8a98aa; }
.drawer-backdrop { justify-items: end; padding: 0; }
.knowledge-drawer { width: min(520px,94vw); height: 100%; overflow-y: auto; padding: 24px; background: #fff; box-shadow: -18px 0 50px rgba(16,32,58,.22); }
.knowledge-drawer-form { grid-template-columns: 1fr; }

.report-v24-form { display: grid; gap: 14px; }
.report-step-card { display: grid; gap: 9px; padding: 16px; border: 1px solid #dce7f5; border-radius: 15px; background: linear-gradient(145deg,#fbfdff,#f4f8ff); }
.report-step-card > label,.report-step-card .section-head > label { color: #263d5c; font-size: 14px; font-weight: 850; }
.report-step-card textarea { min-height: 112px; background: #fff; line-height: 1.7; resize: vertical; }
.report-auto-metric-grid { display: grid; grid-template-columns: repeat(9,minmax(90px,1fr)); gap: 8px; }
.report-auto-metric-grid article { display: grid; gap: 5px; padding: 10px; border: 1px solid #e2e9f3; border-radius: 10px; background: #fff; }
.report-auto-metric-grid span { color: #77869a; font-size: 11px; }
.report-auto-metric-grid strong { color: #174bc2; font-size: 16px; }
.report-change-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.report-change-grid > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; color: #53657e; font-size: 12px; }
.report-v24-history-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 14px; }
.report-v24-history-grid > div { padding: 12px; border: 1px solid #e2e9f3; border-radius: 11px; background: #f9fbfe; }
.report-v24-history-grid > div:nth-child(2) { grid-column: span 2; }
.report-v24-history-grid span { color: var(--blue); font-size: 11px; font-weight: 800; }
.report-v24-history-grid p { margin: 7px 0 0; color: #3f526d; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.feishu-secure-status { align-content: start; }
.credential-status { padding: 11px 12px; border: 1px solid #eed49f; border-radius: 11px; background: #fff8e9; color: #8a5d18; font-size: 13px; font-weight: 800; }
.credential-status.is-ready { border-color: #bfe4d2; background: #effaf5; color: #14704c; }

.tree-layout.mind-sidebar-hidden { grid-template-columns: 1fr; }
.tree-layout.mind-sidebar-hidden .mind-node-sidebar { display: none; }
.mind-zoom-label { display: inline-flex; min-width: 46px; align-items: center; justify-content: center; color: #607089; font-size: 11px; font-weight: 800; }
.mind-canvas { transition: transform .18s ease; }

.ai-dock { position: fixed; right: 22px; bottom: 22px; z-index: 1100; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.ai-robot-button,.ai-dock-panel { pointer-events: auto; }
.ai-robot-button { display: grid; width: 58px; height: 58px; place-items: center; padding: 5px; border: 2px solid #b9d3ff; border-radius: 20px; background: linear-gradient(145deg,#2463eb,#66a1ff); color: #fff; box-shadow: 0 12px 28px rgba(21,94,239,.28); cursor: pointer; }
.ai-robot-button > span:last-child { font-size: 9px; font-weight: 900; }
.ai-robot-face { display: flex; width: 36px; height: 25px; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: #102a56; }
.ai-robot-face i { width: 5px; height: 5px; border-radius: 50%; background: #70e6ff; box-shadow: 0 0 6px #70e6ff; }
.ai-dock-panel { display: grid; width: 270px; gap: 9px; padding: 15px; border: 1px solid #cfe0ff; border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 18px 46px rgba(16,42,86,.22); }
.ai-dock-panel > div { display: flex; align-items: center; justify-content: space-between; }
.ai-dock-panel p { margin: 0; color: #607089; font-size: 12px; line-height: 1.55; }
.ai-dock-close { border: 0; background: transparent; color: #718096; cursor: pointer; font-size: 20px; }
.ai-dock.is-collapsed .ai-dock-panel { display: none; }
.build-version { right: 92px; bottom: 27px; z-index: 1090; }

@media (max-width:1180px) {
  .core-metrics-grid { grid-template-columns: repeat(3,1fr); }
  .report-auto-metric-grid { grid-template-columns: repeat(3,1fr); }
  .task-create-row { grid-template-columns: minmax(220px,1fr) 90px 180px auto; }
  .task-create-row input[name="tag"] { display: none; }
}
@media (max-width:900px) {
  .dashboard-v24-grid,.dashboard-lower-grid { grid-template-columns: 1fr; }
  .traffic-metrics { grid-template-columns: repeat(2,1fr); }
  .goal-detail-grid { grid-template-columns: repeat(2,1fr); }
  .task-toolbar-panel { align-items: flex-start; flex-direction: column; }
  .task-create-row { grid-template-columns: 1fr 90px; }
  .task-create-row input[type="datetime-local"] { grid-column: 1 / -1; }
  .compact-task-card { grid-template-columns: 22px minmax(0,1fr) auto; }
  .compact-task-card time { grid-column: 2; }
  .report-auto-metric-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:760px) {
  .wisdom-ticker { height: 26px; }
  .wisdom-track { animation-duration: 52s; font-size: 11px; }
  .shell { min-height: calc(100vh - 26px); }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .core-metrics-grid { grid-template-columns: repeat(2,1fr); }
  .traffic-metrics,.report-change-grid,.report-v24-history-grid { grid-template-columns: 1fr; }
  .report-v24-history-grid > div:nth-child(2) { grid-column: auto; }
  .funnel-alert { align-items: flex-start; flex-direction: column; }
  .task-filter-tabs { width: 100%; overflow-x: auto; }
  .compact-task-card { grid-template-columns: 22px minmax(0,1fr); }
  .compact-task-card time,.compact-delete-btn { grid-column: 2; justify-self: start; }
  .report-auto-metric-grid { grid-template-columns: repeat(2,1fr); }
  .ai-dock { right: 14px; bottom: 14px; }
  .ai-robot-button { width: 52px; height: 52px; }
  .build-version { right: 75px; bottom: 22px; }
}
