:root {
  --purple: #6d5dfb;
  --purple-deep: #5140d7;
  --purple-soft: #f4f1ff;
  --purple-line: #ddd7ff;
  --ink: #25222c;
  --muted: #716c7a;
  --faint: #9a94a3;
  --line: #e8e5ed;
  --soft: #faf9fc;
  --green: #16835b;
  --green-soft: #eef9f4;
  --amber: #a4670c;
  --amber-soft: #fff7e8;
  --red: #cc4455;
  --red-soft: #fff1f3;
  --teal: #22a59a;
  --shadow: 0 18px 54px rgba(43, 33, 71, 0.09);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 138px;
}
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(109, 93, 251, 0.22);
  outline-offset: 2px;
}
.product-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-main {
  max-width: 1280px;
  height: 68px;
  margin: auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.brand-symbol {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.04em;
}
.brand small {
  padding: 4px 7px;
  border: 1px solid var(--purple-line);
  border-radius: 7px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 11px;
}
.global-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.global-nav a {
  padding: 9px 13px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.global-nav a:hover {
  background: var(--purple-soft);
  color: var(--purple-deep);
}
.global-nav a.active {
  background: var(--purple);
  color: #fff;
}
.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}
.process-nav {
  height: 52px;
  border-top: 1px solid #f2f0f4;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(22px, 4vw, 62px);
}
.process-nav span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.process-nav b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
}
.process-nav .active {
  color: var(--purple-deep);
  font-weight: 600;
}
.process-nav .active b {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.process-nav .active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 3px 3px 0 0;
}
.page {
  max-width: 1180px;
  margin: auto;
  padding: 48px 30px 80px;
}
.demo-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: -18px 0 30px;
  padding: 12px 15px;
  border: 1px solid var(--purple-line);
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 12px;
}
.demo-banner span {
  color: var(--muted);
}
.page.narrow {
  max-width: 920px;
}
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  margin: 0 0 8px;
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-aside {
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid var(--purple-line);
  border-radius: 14px;
  background: var(--purple-soft);
}
.hero-aside span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.hero-aside strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
}
.hero-aside small {
  display: block;
  margin-top: 5px;
  color: var(--purple-deep);
}
.identity-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 26px 0 0;
}
.field {
  display: grid;
  gap: 7px;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
textarea.control {
  min-height: 98px;
  resize: vertical;
  line-height: 1.7;
}
.control:focus {
  border-color: var(--purple);
}
.identity-note {
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
.automation-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: center;
  margin-top: 26px;
  padding: 17px 20px;
  border: 1px solid var(--purple-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #faf9ff, #f4f1ff);
}
.automation-flow > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.automation-flow b {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
}
.automation-flow span {
  font-weight: 700;
  line-height: 1.35;
}
.automation-flow small {
  color: var(--muted);
  font-weight: 400;
}
.automation-flow i {
  height: 1px;
  background: var(--purple-line);
}
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-child {
  border-bottom: 0;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
}
.section-no {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(109, 93, 251, 0.2);
}
.section-title h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}
.section-title p {
  margin: 7px 0 0;
  color: var(--muted);
}
.section-meta {
  color: var(--muted);
  font-size: 13px;
}
.task-stack {
  display: grid;
  gap: 14px;
}
.task-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: 0.2s ease;
}
.task-card:hover {
  border-color: var(--purple-line);
  box-shadow: var(--shadow);
}
.task-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 21px 22px 16px;
}
.task-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 12px;
}
.task-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.task-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.green {
  background: var(--green-soft);
  color: var(--green);
}
.badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.red {
  background: var(--red-soft);
  color: var(--red);
}
.task-editor {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 0 22px 22px;
}
.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.segment label {
  position: relative;
}
.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segment span {
  min-height: 42px;
  padding: 9px 7px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.segment label:last-child span {
  border-right: 0;
}
.segment input:checked + span {
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}
.progress-line {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 12px;
  align-items: center;
}
.progress-line input {
  width: 100%;
  accent-color: var(--purple);
}
.progress-value {
  text-align: right;
  font-weight: 700;
  color: var(--purple-deep);
}
.task-fields {
  display: grid;
  gap: 14px;
}
.task-detail {
  display: grid;
  gap: 12px;
}
.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quality-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--purple-line);
  border-radius: 13px;
  background: var(--purple-soft);
}
.quality-score {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 18px;
}
.quality-panel strong {
  display: block;
}
.quality-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.task-current {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 22px 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--purple);
  background: var(--purple-soft);
  color: var(--muted);
  font-size: 12px;
}
.task-current strong {
  color: var(--purple-deep);
  font-size: 16px;
}
.task-current small {
  text-align: right;
}
.quality-rubric {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.quality-rubric span {
  padding: 3px 7px;
  border: 1px solid var(--purple-line);
  border-radius: 6px;
  background: #fff;
  color: var(--purple-deep);
  font-size: 11px;
}
.notice.receipt {
  color: var(--ink);
}
.notice.receipt > strong {
  display: block;
  color: var(--green);
  font-size: 17px;
}
.receipt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.receipt-grid span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.notice.receipt p {
  margin: 8px 0;
}
.notice.receipt a {
  color: var(--purple-deep);
  font-weight: 700;
}
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}
.receipt-actions a {
  padding: 9px 12px;
  border: 1px solid var(--purple-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}
.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.achievement-list span {
  padding: 5px 9px;
  border: 1px solid var(--purple-line);
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 11px;
  font-weight: 600;
}
.growth-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 600;
}
.report-detail-card {
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--purple-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #faf9ff);
  box-shadow: var(--shadow);
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.detail-metrics > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.detail-metrics span,
.detail-metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.detail-metrics strong {
  display: block;
  margin: 4px 0;
  color: var(--purple-deep);
  font-size: 25px;
}
.report-card.expanded pre {
  max-height: none;
}
.detail-boundary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.submit-dock {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--purple-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 46px rgba(43, 33, 71, 0.14);
  backdrop-filter: blur(14px);
}
.save-state {
  color: var(--muted);
  font-size: 13px;
}
.button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.button:hover {
  border-color: var(--purple-line);
  color: var(--purple-deep);
}
.button.primary {
  min-width: 178px;
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 93, 251, 0.22);
}
.button.primary:hover {
  background: var(--purple-deep);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.notice {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
}
.notice.show {
  display: block;
}
.notice.error {
  background: var(--red-soft);
  color: var(--red);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 0;
}
.metric {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.2;
}
.metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.view-tabs {
  position: sticky;
  top: 120px;
  z-index: 20;
  display: flex;
  gap: 5px;
  margin: 28px 0 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.view-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.view-tabs button.active {
  background: var(--purple);
  color: #fff;
}
.view {
  display: none;
  padding-top: 32px;
}
.view.active {
  display: block;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}
.content-block {
  padding: 0 0 30px;
}
.content-block + .content-block {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.block-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.block-title h2 {
  margin: 0;
  font-size: 23px;
}
.block-title p {
  margin: 5px 0 0;
  color: var(--muted);
}
.block-title a {
  color: var(--purple-deep);
  font-size: 13px;
}
.list {
  display: grid;
  gap: 10px;
}
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row h3 {
  margin: 0;
  font-size: 15px;
}
.list-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.list-row aside {
  text-align: right;
}
.list-row aside strong {
  display: block;
  color: var(--purple-deep);
}
.list-row aside small {
  color: var(--muted);
}

.item-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.item-overview-card {
  min-height: 124px;
  padding: 22px;
  background: #fff;
}
.item-overview-card span,
.item-overview-card small {
  display: block;
  color: var(--muted);
}
.item-overview-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}
.item-overview-card.red strong { color: var(--red); }
.item-overview-card.amber strong { color: var(--amber); }
.item-overview-card.green strong { color: var(--green); }
.item-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.segmented button.active {
  color: var(--purple);
  background: var(--purple-soft);
  font-weight: 700;
}
.item-analysis-list {
  border-top: 1px solid var(--line);
}
.matter-row {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.matter-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
.matter-row > summary::-webkit-details-marker { display: none; }
.matter-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.matter-index {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.matter-main h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}
.matter-main p,
.matter-progress small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.matter-progress {
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px 9px;
  min-width: 150px;
  align-items: center;
  text-align: right;
}
.matter-progress strong {
  color: var(--purple);
  font-size: 22px;
}
.matter-progress small { grid-column: 1 / -1; }
.matter-toggle {
  color: var(--muted);
  font-size: 12px;
}
.matter-row[open] .matter-toggle::after { content: " 收起"; }
.matter-detail {
  padding: 0 0 28px 36px;
}
.matter-progress-track {
  height: 4px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.matter-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}
.matter-row.overdue .matter-progress-track span { background: var(--red); }
.matter-row.urgent .matter-progress-track span { background: var(--amber); }
.matter-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.matter-analysis-grid article {
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.matter-analysis-grid span,
.matter-detail footer {
  color: var(--muted);
  font-size: 12px;
}
.matter-analysis-grid p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}
.matter-detail footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.chart-wrap {
  padding: 18px 0;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.chart-head h3 {
  margin: 0;
  font-size: 17px;
}
.chart-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.chart-legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.chart-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}
.chart-grid-line {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-area {
  fill: rgba(109, 93, 251, 0.08);
}
.chart-line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
}
.chart-dot {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 3;
}
.chart-label {
  fill: var(--muted);
  font-size: 11px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.person-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.person-card:hover,
.person-card.active {
  border-color: var(--purple-line);
  background: var(--purple-soft);
}
.person-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.person-card h3 {
  margin: 0;
}
.person-card p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mini-stats span {
  padding: 8px 5px;
  border-radius: 7px;
  background: var(--soft);
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.mini-stats strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.report-list {
  display: grid;
  gap: 12px;
}
.timeline-day {
  position: relative;
  padding: 0 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.timeline-day:first-child {
  border-top: 1px solid var(--line);
}
.timeline-day::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: var(--purple-line);
}
.timeline-summary {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
}
.timeline-summary::-webkit-details-marker {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: -25px;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 1px var(--purple-line);
}
.timeline-date {
  text-align: left;
}
.timeline-date strong,
.timeline-date span,
.timeline-date small {
  display: block;
}
.timeline-date strong {
  color: var(--purple-deep);
  font-size: 25px;
  line-height: 1;
}
.timeline-date span,
.timeline-date small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.timeline-content {
  display: grid;
  gap: 12px;
  padding: 0 0 22px 74px;
}
.timeline-summary-copy strong,
.timeline-summary-copy small {
  display: block;
}
.timeline-summary-copy strong {
  font-size: 15px;
}
.timeline-summary-copy small {
  margin-top: 5px;
  color: var(--muted);
}
.timeline-toggle {
  min-width: 54px;
  color: var(--purple-deep);
  font-size: 12px;
  text-align: right;
}
.timeline-toggle::after {
  content: "＋";
  margin-left: 6px;
}
.timeline-day[open] .timeline-toggle {
  font-size: 0;
}
.timeline-day[open] .timeline-toggle::before {
  content: "收起";
  font-size: 12px;
}
.timeline-day[open] .timeline-toggle::after {
  content: "－";
  font-size: 12px;
}
.report-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.report-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.report-card h3 {
  margin: 0;
  font-size: 16px;
}
.report-card time {
  color: var(--muted);
  font-size: 12px;
}
.report-card pre,
.report-preview {
  margin: 12px 0 0;
  font: inherit;
  color: var(--muted);
  line-height: 1.75;
}
.report-card pre {
  white-space: pre-wrap;
  max-height: 170px;
  overflow: hidden;
}
.report-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.report-card .button {
  display: inline-flex;
  margin-top: 15px;
}

.daily-detail-body {
  background: #f5f3fb;
}
.daily-detail-page {
  width: min(820px, calc(100% - 32px));
  margin: 28px auto 70px;
}
.daily-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}
.daily-detail-nav a {
  color: var(--purple-deep);
  text-decoration: none;
}
.daily-detail-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  border-radius: 22px 22px 0 0;
  background: var(--ink);
  color: #fff;
}
.daily-detail-hero p,
.daily-detail-hero h1,
.daily-detail-hero span {
  margin: 0;
}
.daily-detail-hero p {
  color: #c9c3d7;
  font-size: 13px;
}
.daily-detail-hero h1 {
  margin: 9px 0 12px;
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.04em;
}
.daily-detail-hero > div > span {
  color: #ded9e8;
}
.quality-orb {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  text-align: center;
}
.quality-orb strong {
  font-size: 30px;
  line-height: 1;
}
.quality-orb span {
  margin-top: 6px;
  color: #c9c3d7;
  font-size: 11px;
}
.quality-panel,
.daily-detail-section,
.daily-detail-footer {
  padding: 32px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}
.quality-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}
.quality-copy p,
.quality-copy h2,
.quality-copy span {
  margin: 0;
}
.quality-copy p {
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 700;
}
.quality-copy h2 {
  margin: 7px 0 9px;
  font-size: 22px;
}
.quality-copy span {
  color: var(--muted);
  line-height: 1.6;
}
.quality-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quality-breakdown div {
  padding: 13px 10px;
  border-radius: 10px;
  background: var(--purple-soft);
}
.quality-breakdown span,
.quality-breakdown strong {
  display: block;
}
.quality-breakdown span {
  color: var(--muted);
  font-size: 11px;
}
.quality-breakdown strong {
  margin-top: 6px;
  font-size: 20px;
}
.quality-panel .achievement-list {
  grid-column: 1/-1;
}
.detail-section-heading,
.detail-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-section-heading {
  justify-content: space-between;
  margin-bottom: 22px;
}
.detail-section-heading span {
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 700;
}
.detail-section-heading h2 {
  margin: 0;
  font-size: 22px;
}
.detail-section-heading small {
  color: var(--muted);
}
.daily-result-list {
  display: grid;
  gap: 18px;
}
.daily-result-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.daily-result-item header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.daily-result-item header > b {
  color: var(--purple-deep);
  font-size: 12px;
}
.daily-result-item h3,
.daily-result-item p {
  margin: 0;
}
.daily-result-item h3 {
  font-size: 16px;
}
.daily-result-item header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.daily-result-item header > strong {
  color: var(--purple-deep);
  font-size: 22px;
}
.result-body,
.daily-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 0 48px;
}
.result-body > div,
.daily-extra-grid > div {
  padding: 16px;
  border-radius: 10px;
  background: #f8f7fb;
}
.result-body span,
.daily-extra-grid span {
  color: var(--muted);
  font-size: 11px;
}
.result-body p,
.daily-extra-grid p {
  margin: 7px 0 0;
  line-height: 1.6;
}
.daily-raw-text {
  padding: 18px;
  border-radius: 12px;
  background: #f8f7fb;
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.8;
}
.daily-detail-footer {
  border-radius: 0 0 22px 22px;
}
.daily-detail-footer p,
.daily-detail-footer span {
  margin: 0;
}
.daily-detail-footer p {
  font-weight: 700;
}
.daily-detail-footer span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.daily-detail-error {
  margin-top: 20vh;
  padding: 36px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-row .control {
  width: auto;
  min-width: 180px;
}
.decision-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
}
.decision-lead > * {
  min-width: 0;
}
.decision-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.decision-card {
  min-width: 0;
  padding: 20px 22px;
  border-left: 4px solid var(--purple);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  overflow-wrap: anywhere;
}
.decision-card.red {
  border-color: var(--red);
  background: var(--red-soft);
}
.decision-card.amber {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.decision-card h3 {
  margin: 0;
  font-size: 17px;
}
.decision-card p {
  margin: 7px 0 0;
  color: var(--muted);
}
.decision-card footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.decision-card .badge {
  max-width: 100%;
  white-space: normal;
}
.project-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.project-row:last-child {
  border-bottom: 0;
}
.project-row header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.project-row h3 {
  margin: 0;
}
.project-row p {
  margin: 7px 0;
  color: var(--muted);
}
.bar {
  height: 7px;
  border-radius: 6px;
  background: #eeeaf4;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}
.evidence-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.evidence-row strong {
  display: block;
}
.evidence-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 900px) {
  .dashboard-grid,
  .decision-lead {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
  .task-editor {
    grid-template-columns: 1fr;
  }
  .page-hero {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    width: 100%;
  }
  .identity-bar {
    grid-template-columns: 1fr 1fr;
  }
  .identity-note {
    grid-column: 1/-1;
  }
  .item-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 112px;
  }
  .header-main {
    height: 60px;
    padding: 0 14px;
    gap: 10px;
  }
  .brand-symbol {
    width: 34px;
    height: 34px;
  }
  .brand > span:nth-child(2) {
    display: none;
  }
  .brand small,
  .header-status {
    display: none;
  }
  .global-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .global-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    font-size: 12px;
    white-space: nowrap;
  }
  .global-nav a:first-child {
    display: none;
  }
  .process-nav {
    height: 46px;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 15px;
    overflow-x: auto;
  }
  .process-nav span:nth-child(n + 4) {
    display: none;
  }
  .page,
  .page.narrow {
    padding: 28px 14px 62px;
  }
  .page-hero {
    gap: 22px;
    padding-bottom: 26px;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .page-hero p {
    font-size: 14px;
  }
  .demo-banner {
    display: grid;
    margin: -8px 0 22px;
    gap: 3px;
  }
  .automation-flow {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }
  .automation-flow i {
    display: none;
  }
  .automation-flow > div {
    align-items: flex-start;
  }
  .identity-bar,
  .manual-grid {
    grid-template-columns: 1fr;
  }
  .identity-note {
    grid-column: auto;
  }
  .section {
    padding: 36px 0;
  }
  .section-head {
    display: block;
  }
  .section-meta {
    margin-top: 12px;
  }
  .section-title {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }
  .section-no {
    width: 36px;
    height: 29px;
  }
  .section-title h2 {
    font-size: 22px;
  }
  .task-card-head {
    grid-template-columns: 36px 1fr;
    padding: 17px 15px 13px;
  }
  .task-card-head > .badge {
    grid-column: 2;
  }
  .task-index {
    width: 31px;
    height: 31px;
  }
  .task-current {
    grid-template-columns: auto auto;
    margin: 0 15px 14px;
  }
  .task-current small {
    grid-column: 1/-1;
    text-align: left;
  }
  .task-editor {
    padding: 0 15px 17px;
    gap: 14px;
  }
  .segment span {
    font-size: 11px;
    padding: 8px 4px;
  }
  .submit-dock {
    bottom: 8px;
    padding: 10px 10px 10px 13px;
  }
  .button.primary {
    min-width: 132px;
  }
  .save-state {
    max-width: 48%;
    font-size: 11px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 23px;
  }
  .view-tabs {
    top: 105px;
    overflow-x: auto;
  }
  .view-tabs button {
    flex: 0 0 auto;
    padding: 8px 12px;
  }
  .dashboard-grid {
    gap: 16px;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .list-row {
    grid-template-columns: 1fr;
  }
  .list-row aside {
    text-align: left;
  }
  .chart-svg {
    height: 190px;
  }
  .filter-row .control {
    width: 100%;
  }
  .timeline-day {
    padding-left: 22px;
  }
  .timeline-summary {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .timeline-dot {
    left: -19px;
  }
  .timeline-date {
    padding: 0;
  }
  .timeline-date strong {
    font-size: 22px;
  }
  .decision-lead {
    gap: 18px;
  }
  .detail-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-detail-card {
    padding: 20px 15px;
  }
  .timeline-content {
    padding-left: 0;
  }
  .daily-detail-page {
    width: 100%;
    margin: 0;
  }
  .daily-detail-nav {
    padding: 14px;
    margin: 0;
    background: #fff;
  }
  .daily-detail-hero {
    align-items: center;
    padding: 32px 20px;
    border-radius: 0;
  }
  .quality-orb {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
  .quality-panel,
  .daily-detail-section,
  .daily-detail-footer {
    padding: 26px 20px;
  }
  .quality-panel,
  .result-body,
  .daily-extra-grid {
    grid-template-columns: 1fr;
  }
  .result-body,
  .daily-extra-grid {
    margin-left: 48px;
  }
  .daily-detail-footer {
    border-radius: 0;
  }
  .item-overview {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }
  .item-overview-card {
    min-height: 108px;
    padding: 16px;
  }
  .item-overview-card strong { font-size: 27px; }
  .item-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .segmented {
    width: 100%;
    overflow-x: auto;
  }
  .segmented button { flex: 0 0 auto; }
  .item-toolbar .control { width: 100%; }
  .matter-row > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 104px;
  }
  .matter-main { gap: 10px; }
  .matter-progress { min-width: 92px; }
  .matter-progress .badge { display: none; }
  .matter-toggle { display: none; }
  .matter-detail { padding-left: 24px; }
  .matter-analysis-grid { grid-template-columns: 1fr; }
  .matter-detail footer { flex-direction: column; }
}
