/* Unified report UI — shared by daily, centers, weekly/monthly and formal reports. */
:root {
  color-scheme: light only;
  --ui-purple: #6d5dfb;
  --ui-purple-deep: #5544df;
  --ui-purple-soft: #f5f3ff;
  --ui-purple-line: #ded9ff;
  --ui-ink: #25222c;
  --ui-muted: #726d7b;
  --ui-faint: #9a95a3;
  --ui-line: #e7e4eb;
  --ui-soft: #faf9fc;
  --ui-surface: #fff;
  --ui-green: #16835b;
  --ui-green-soft: #eef8f3;
  --ui-amber: #9b630c;
  --ui-amber-soft: #fff7e9;
  --ui-red: #c94454;
  --ui-red-soft: #fff1f3;
  --ui-header-height: 52px;
  --ui-control-height: 44px;
  --ui-radius: 10px;
}

html {
  color-scheme: light only;
  scroll-padding-top: 102px;
  background: #fff;
}

body,
.report-workbench-surface,
.daily-detail-body {
  background: #fff !important;
  color: var(--ui-ink) !important;
}

button,
input,
select,
textarea {
  color-scheme: light;
}

/* One compact product header for every active report surface. */
.product-header,
.report-workbench-surface .product-header {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  height: var(--ui-header-height) !important;
  border-bottom: 1px solid var(--ui-line) !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-main,
.report-workbench-surface .header-main {
  width: min(1280px, 100%);
  height: var(--ui-header-height) !important;
  margin: 0 auto;
  padding: 0 20px !important;
  gap: 12px !important;
}

.brand {
  gap: 8px !important;
  font-size: 14px;
}

.brand-symbol {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: var(--ui-purple) !important;
  font-size: 11px !important;
}

.global-nav {
  gap: 2px !important;
}

.global-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px !important;
  border-radius: 8px !important;
  color: var(--ui-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

.global-nav a:hover {
  background: var(--ui-purple-soft) !important;
  color: var(--ui-purple-deep) !important;
}

.global-nav a.active {
  background: var(--ui-purple) !important;
  color: #fff !important;
}

.header-status {
  margin-left: 4px !important;
  font-size: 11px !important;
}

/* Shared content rhythm. */
.page,
.page.narrow {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 24px 64px !important;
}

.page.narrow {
  max-width: 960px;
}

.page-hero {
  gap: 22px !important;
  padding: 4px 0 22px !important;
  border-bottom-color: var(--ui-line) !important;
}

.hero-kicker {
  margin-bottom: 5px !important;
  color: var(--ui-purple-deep) !important;
  font-size: 11px !important;
  letter-spacing: .04em !important;
}

.page-hero h1 {
  font-size: clamp(28px, 3.2vw, 40px) !important;
  line-height: 1.2 !important;
}

.page-hero p {
  margin-top: 8px !important;
  color: var(--ui-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.hero-aside {
  min-width: 160px !important;
  padding: 11px 13px !important;
  border-color: var(--ui-purple-line) !important;
  border-radius: var(--ui-radius) !important;
  background: var(--ui-purple-soft) !important;
}

.hero-aside strong {
  font-size: 18px !important;
}

.hero-aside small {
  margin-top: 2px !important;
  font-size: 11px;
}

.auto-source-note {
  margin: 8px 0 12px !important;
  padding: 9px 0 !important;
  gap: 8px !important;
  font-size: 12px !important;
}

.identity-bar {
  margin-top: 14px !important;
}

.identity-note {
  min-height: var(--ui-control-height);
  display: flex;
  align-items: center;
  padding: 8px 12px !important;
  border-radius: var(--ui-radius) !important;
  background: var(--ui-green-soft) !important;
  color: var(--ui-green) !important;
  font-size: 12px !important;
}

/* Shared form controls and feedback. */
.control,
.field input,
.field select,
.field textarea,
.workbench-page .field input,
.workbench-page .field select,
.workbench-page .field textarea,
.report-workbench-surface .field input,
.report-workbench-surface .field select,
.report-workbench-surface .field textarea {
  width: 100%;
  min-height: var(--ui-control-height) !important;
  padding: 9px 12px !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  background: #fff !important;
  color: var(--ui-ink) !important;
  box-shadow: none !important;
}

textarea.control,
.field textarea,
.workbench-page .field textarea,
.report-workbench-surface .field textarea {
  min-height: 88px !important;
  line-height: 1.6 !important;
}

.control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ui-purple) !important;
  outline: 3px solid rgba(109, 93, 251, .13) !important;
  outline-offset: 0 !important;
}

.button,
.btn,
.report-workbench-surface .btn,
.source-gap-actions button,
.source-gap-actions a,
.receipt-actions a {
  min-height: var(--ui-control-height) !important;
  padding: 0 16px !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
}

.button.primary,
.btn:not(.secondary),
.report-workbench-surface .btn:not(.secondary) {
  border-color: var(--ui-purple) !important;
  background: var(--ui-purple) !important;
  color: #fff !important;
}

.button.secondary,
.btn.secondary,
.report-workbench-surface .btn.secondary {
  border-color: var(--ui-line) !important;
  background: #fff !important;
  color: var(--ui-ink) !important;
}

.segment,
.segment-control,
.segmented {
  border-color: var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  background: #fff !important;
}

.segment span,
.segment-control button,
.segmented button {
  min-height: var(--ui-control-height) !important;
  border-color: var(--ui-line) !important;
  background: #fff !important;
  color: var(--ui-muted) !important;
}

.segment input:checked + span,
.segment-control button.is-active,
.segmented button.active {
  background: var(--ui-purple) !important;
  color: #fff !important;
}

input[type="range"] {
  min-height: 28px;
  accent-color: var(--ui-purple);
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: #ddd9e5;
}

input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
}

/* Compact section and card system. */
.section {
  padding: 34px 0 !important;
  border-bottom-color: var(--ui-line) !important;
}

.section-head {
  margin-bottom: 18px !important;
  gap: 16px !important;
}

.section-title {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 11px !important;
}

.section-no,
.chapter-number {
  width: 34px !important;
  height: 28px !important;
  border-radius: 7px !important;
  background: var(--ui-purple) !important;
  box-shadow: none !important;
}

.section-title h2,
.section-head h2 {
  font-size: 23px !important;
}

.section-title p,
.section-intro {
  margin-top: 5px !important;
  color: var(--ui-muted) !important;
  font-size: 13px !important;
}

.task-stack,
.manager-review-list,
.candidate-list,
.personal-result-list {
  gap: 10px !important;
}

.task-card,
.item-card,
.manager-item-review,
.project-review-card,
.candidate-review,
.personal-result-item,
.decision-card,
.person-card {
  border-color: var(--ui-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.task-card:hover,
.item-card:hover,
.manager-item-review:hover {
  border-color: var(--ui-purple-line) !important;
  box-shadow: none !important;
}

.task-card-head {
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  gap: 11px !important;
  padding: 16px 16px 12px !important;
}

.task-index,
.item-index {
  width: 30px !important;
  height: 30px !important;
  background: var(--ui-purple-soft) !important;
  color: var(--ui-purple-deep) !important;
}

.task-card h3,
.item-summary h3 {
  font-size: 16px !important;
}

.task-card-head p,
.item-summary p {
  margin-top: 4px !important;
  font-size: 12px !important;
}

.task-current {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  margin: 0 16px 12px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--ui-purple-soft) !important;
}

.task-editor {
  gap: 12px 14px !important;
  padding: 0 16px 16px !important;
}

.task-optional {
  padding-top: 10px !important;
}

.gap-guide,
.surface-guide,
.completion-guide {
  min-height: 56px !important;
  margin: 10px 0 12px !important;
  padding: 10px 12px !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
}

.quality-panel {
  padding: 14px !important;
  border-radius: 12px !important;
}

.quality-score {
  width: 50px !important;
  height: 50px !important;
}

.submit-dock,
.sticky-actions {
  bottom: 8px !important;
  margin-top: 18px !important;
  padding: 10px 10px 10px 14px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 26px rgba(43, 33, 71, .1) !important;
}

.metric-grid {
  gap: 0 !important;
  margin-top: 18px !important;
  border-top: 1px solid var(--ui-line);
  border-bottom: 1px solid var(--ui-line);
}

.metric {
  padding: 13px 15px !important;
  border: 0 !important;
  border-right: 1px solid var(--ui-line) !important;
  border-radius: 0 !important;
}

.metric:last-child {
  border-right: 0 !important;
}

.metric strong {
  font-size: 23px !important;
}

/* Both daily and report chapter navigation share one sticky height. */
.form-chapter-nav,
.report-workbench-surface .chapter-nav,
.workbench-page .chapter-nav {
  position: sticky !important;
  top: var(--ui-header-height) !important;
  z-index: 70 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-line) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-chapter-nav button,
.form-chapter-nav a,
.report-workbench-surface .chapter-nav a,
.workbench-page .chapter-nav a {
  min-height: 40px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ui-muted) !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

.form-chapter-nav button.active,
.form-chapter-nav a.active,
.report-workbench-surface .chapter-nav a.active,
.workbench-page .chapter-nav a.active {
  border-bottom-color: var(--ui-purple) !important;
  background: var(--ui-purple-soft) !important;
  color: var(--ui-purple-deep) !important;
}

/* The report workbench now uses the same product header. */
.report-workbench-surface .workbench-page {
  padding: 0 0 72px !important;
}

.report-workbench-surface .report-workbench-hero {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  min-height: 0 !important;
  padding: 14px 24px !important;
  border-bottom: 1px solid var(--ui-line) !important;
  background: #fff !important;
  backdrop-filter: none !important;
}

.report-workbench-surface .report-home-link,
.report-workbench-surface .report-utility-links {
  display: none !important;
}

.report-workbench-surface .report-workbench-hero h1 {
  font-size: 20px !important;
}

.report-workbench-surface .report-period,
.report-workbench-surface .period-switch a,
.report-workbench-surface .report-role-switch button {
  min-height: 34px !important;
}

.report-workbench-surface .chapter-nav {
  width: 100% !important;
  max-width: none !important;
  justify-content: center !important;
  gap: clamp(16px, 4vw, 48px) !important;
}

.report-workbench-surface .chapter-nav a b {
  width: 22px !important;
  height: 22px !important;
}

.report-workbench-surface .completion-guide {
  width: min(1120px, calc(100% - 48px)) !important;
  margin: 12px auto 0 !important;
}

.report-workbench-surface .section.report-chapter {
  width: min(1120px, calc(100% - 48px)) !important;
  padding: 40px 0 !important;
  scroll-margin-top: 100px !important;
}

.report-workbench-surface .section-head {
  margin-bottom: 24px !important;
}

.report-workbench-surface .section-head h2 {
  font-size: clamp(26px, 3vw, 34px) !important;
}

/* Formal report and daily detail use the same page geometry. */
.report-page,
.daily-detail-page {
  width: min(1120px, calc(100% - 48px)) !important;
  margin: 20px auto 64px !important;
}

.report-cover,
.daily-detail-hero {
  padding: 28px 30px !important;
  border: 1px solid var(--ui-purple-line) !important;
  border-radius: 14px !important;
  background: var(--ui-purple-soft) !important;
  box-shadow: none !important;
}

.report-section,
.daily-detail-section,
.daily-detail-page > .quality-panel,
.daily-detail-footer {
  padding: 30px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  :root {
    --ui-header-height: 48px;
  }

  html {
    scroll-padding-top: 90px;
  }

  .header-main,
  .report-workbench-surface .header-main {
    padding: 0 10px !important;
    gap: 6px !important;
  }

  .brand-symbol {
    width: 30px !important;
    height: 30px !important;
  }

  .global-nav {
    margin-left: auto !important;
    gap: 0 !important;
  }

  .global-nav a {
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .page,
  .page.narrow {
    padding: 16px 14px 52px !important;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 0 0 14px !important;
  }

  .page-hero h1 {
    font-size: 26px !important;
  }

  .page-hero p {
    margin-top: 6px !important;
    font-size: 13px !important;
  }

  .hero-aside {
    width: auto !important;
    min-width: 92px !important;
    padding: 8px 9px !important;
  }

  .hero-aside strong {
    font-size: 15px !important;
  }

  .hero-aside small {
    display: none !important;
  }

  .auto-source-note {
    display: none !important;
  }

  .identity-bar {
    margin-top: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .identity-bar .identity-note {
    grid-column: 1 / -1 !important;
  }

  .form-chapter-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  .form-chapter-nav button,
  .form-chapter-nav a {
    min-width: 0 !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .form-chapter-nav a > span {
    margin-right: 2px;
    font-size: 10px;
  }

  .gap-guide,
  .surface-guide,
  .completion-guide {
    align-items: center !important;
    gap: 8px !important;
  }

  .gap-guide .button,
  .surface-guide .button,
  .completion-guide .btn {
    min-width: 92px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .section {
    padding: 26px 0 !important;
  }

  .section-head {
    margin-bottom: 14px !important;
  }

  .section-title h2,
  .section-head h2 {
    font-size: 21px !important;
  }

  .section-title p,
  .section-intro {
    font-size: 12px !important;
  }

  .task-card-head {
    padding: 14px 12px 10px !important;
  }

  .task-current {
    margin: 0 12px 10px !important;
  }

  .task-current small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .task-editor {
    grid-template-columns: 1fr !important;
    padding: 0 12px 14px !important;
  }

  .manual-grid {
    grid-template-columns: 1fr !important;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .metric:nth-child(2) {
    border-right: 0 !important;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--ui-line) !important;
  }

  .submit-dock,
  .sticky-actions {
    bottom: 6px !important;
  }

  .report-workbench-surface .report-workbench-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 10px !important;
    padding: 11px 14px !important;
  }

  .report-workbench-surface .report-title-block {
    gap: 0 !important;
  }

  .report-workbench-surface .report-workbench-hero h1 {
    overflow: hidden;
    font-size: 17px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .report-workbench-surface .report-period {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 11px !important;
  }

  .report-workbench-surface .report-role-switch,
  .report-workbench-surface .report-save-tools {
    grid-column: 1 / -1;
  }

  .report-workbench-surface .report-save-tools {
    display: none !important;
  }

  .report-workbench-surface .chapter-nav {
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .report-workbench-surface .chapter-nav::-webkit-scrollbar {
    display: none;
  }

  .report-workbench-surface .chapter-nav a {
    flex: 0 0 auto !important;
    min-width: 92px !important;
    padding: 0 8px !important;
  }

  .report-workbench-surface .completion-guide,
  .report-workbench-surface .section.report-chapter,
  .report-page,
  .daily-detail-page {
    width: calc(100% - 28px) !important;
  }

  .report-workbench-surface .section.report-chapter {
    padding: 28px 0 !important;
    scroll-margin-top: 90px !important;
  }

  .report-workbench-surface .section-head {
    margin-bottom: 18px !important;
  }

  .report-workbench-surface .section-head h2 {
    font-size: 25px !important;
  }

  .report-cover,
  .daily-detail-hero {
    padding: 20px 18px !important;
  }

  .report-section,
  .daily-detail-section,
  .daily-detail-page > .quality-panel,
  .daily-detail-footer {
    padding: 24px 0 !important;
  }
}

@media (max-width: 390px) {
  .global-nav a {
    padding: 0 6px !important;
    font-size: 11px !important;
  }

  .form-chapter-nav button,
  .form-chapter-nav a {
    font-size: 10px !important;
  }

  .form-chapter-nav em {
    display: none !important;
  }
}

/* Direct, low-friction progress editing. */
.task-card > summary.task-card-head {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.task-card > summary.task-card-head::-webkit-details-marker {
  display: none;
}

.task-summary-progress {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: var(--ui-purple-deep);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.task-summary-progress::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.task-card[open] .task-summary-progress::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.task-card[open] > .task-editor {
  padding-top: 2px !important;
  border-top: 1px solid var(--ui-line);
}

.field-progress > span,
.report-workbench-surface .field-progress > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.field-progress > span small {
  color: var(--ui-faint);
  font-size: 11px;
  font-weight: 500;
}

.progress-line,
.report-workbench-surface .progress-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center;
}

.report-workbench-surface .progress-wrap {
  grid-template-columns: minmax(0, 1fr) !important;
}

.progress-line input[type="range"],
.report-workbench-surface input[type="range"] {
  width: 100%;
  min-width: 0;
  min-height: 32px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  touch-action: pan-y;
}

.progress-line input[type="range"]::-webkit-slider-runnable-track,
.report-workbench-surface input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--ui-purple) 0,
    var(--ui-purple) var(--progress-value, 0%),
    #e1dee7 var(--progress-value, 0%),
    #e1dee7 100%
  );
}

.progress-line input[type="range"]::-webkit-slider-thumb,
.report-workbench-surface input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ui-purple);
  box-shadow: 0 1px 5px rgba(64, 49, 146, .22);
}

.field-progress.is-active {
  color: var(--ui-purple-deep);
}

.progress-value,
.progress-readout {
  min-width: 44px;
  color: var(--ui-purple-deep) !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.task-optional > summary::after {
  content: "+" !important;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-purple-soft);
  color: var(--ui-purple-deep);
  font-size: 17px !important;
  line-height: 1;
}

.task-optional[open] > summary::after {
  content: "−" !important;
}

.item-support-details {
  margin: 0 0 16px;
  border-top: 1px solid var(--ui-line);
  border-bottom: 1px solid var(--ui-line);
}

.item-support-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  color: var(--ui-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.item-support-details > summary::-webkit-details-marker {
  display: none;
}

.item-support-details > summary span {
  color: var(--ui-purple-deep);
  font-weight: 600;
}

.item-support-body {
  display: grid;
  gap: 10px;
  padding: 0 0 14px;
}

.item-support-body .criterion,
.item-support-body .notice {
  margin: 0 !important;
}

.report-workbench-surface input[type="hidden"] {
  display: none !important;
}

@media (max-width: 720px) {
  .task-card-head p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .task-editor {
    gap: 10px !important;
  }

  .task-editor textarea.control {
    min-height: 76px !important;
  }

  .optional-section > summary.section-head {
    align-items: center !important;
    gap: 8px !important;
  }

  .optional-section > summary .section-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .optional-section > summary .section-title p,
  .optional-section > summary .section-meta {
    display: none !important;
  }

  .optional-section > summary::after {
    content: "+" !important;
    width: 28px;
    height: 28px;
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--ui-purple-soft);
    color: var(--ui-purple-deep);
    font-size: 18px !important;
    line-height: 1;
  }

  .optional-section[open] > summary::after {
    content: "−" !important;
  }

  .gap-guide.ready {
    min-height: 48px !important;
  }

  .gap-guide.ready span {
    display: none !important;
  }

  #daily-items-section .section-title p {
    display: none;
  }

  .item-support-details {
    margin-bottom: 12px;
  }

  .review-section-heading small {
    display: none !important;
  }

  .report-workbench-surface .section.report-chapter {
    padding: 18px 0 !important;
  }

  .report-workbench-surface .chapter-number {
    margin-bottom: 8px !important;
  }

  .report-workbench-surface .section-head {
    margin-bottom: 12px !important;
    gap: 6px !important;
  }

  .report-workbench-surface .section-head .eyebrow,
  .report-workbench-surface .section-head .section-intro {
    display: none !important;
  }

  .report-workbench-surface .section-head h2 {
    font-size: 23px !important;
  }
}

/* F31 — one interaction language across every active report surface. */
.home-flow-section > summary,
.guide-details > summary,
.quality-detail > summary,
.personal-result-item > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.home-flow-section > summary::-webkit-details-marker,
.guide-details > summary::-webkit-details-marker,
.quality-detail > summary::-webkit-details-marker,
.personal-result-item > summary::-webkit-details-marker {
  display: none;
}

.summary-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--ui-purple-deep);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.home-flow-section > summary {
  margin-bottom: 0 !important;
}

.home-flow-section[open] > summary {
  margin-bottom: 18px !important;
}

.home-flow-section[open] .summary-action::after,
.guide-details[open] .summary-action::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.summary-action::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.view-tabs,
.report-jump,
.detail-context-nav {
  scrollbar-width: none;
}

.view-tabs::-webkit-scrollbar,
.report-jump::-webkit-scrollbar,
.detail-context-nav::-webkit-scrollbar {
  display: none;
}

.view-tabs {
  position: sticky !important;
  top: var(--ui-header-height) !important;
  z-index: 65 !important;
  overflow-x: auto !important;
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.view-tabs button {
  min-height: 42px !important;
  white-space: nowrap;
}

.content-block,
.decision-lead,
.view > .block-title {
  scroll-margin-top: 104px;
}

.quality-detail {
  min-width: min(360px, 100%);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: #fff;
}

.quality-detail > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  color: var(--ui-purple-deep);
  font-size: 12px;
  font-weight: 650;
}

.quality-detail > summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
}

.quality-detail[open] > summary::after {
  content: "−";
}

.quality-detail .quality-breakdown {
  padding: 0 12px 12px;
}

.quality-detail .achievement-list {
  padding: 0 12px 12px;
}

.detail-context-nav,
.report-jump {
  position: sticky !important;
  top: var(--ui-header-height) !important;
  z-index: 62 !important;
  display: flex !important;
  gap: 4px !important;
  overflow-x: auto !important;
  padding: 7px 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.detail-context-nav a,
.report-jump a {
  flex: 0 0 auto;
  min-height: 36px !important;
  display: inline-flex;
  align-items: center;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--ui-muted) !important;
  font-size: 12px !important;
  font-weight: 600;
}

.detail-context-nav a:hover,
.report-jump a:hover {
  background: var(--ui-purple-soft) !important;
  color: var(--ui-purple-deep) !important;
}

.personal-result-item > summary header {
  cursor: pointer;
}

.personal-result-item > summary header::after {
  content: "+";
  align-self: center;
  color: var(--ui-purple-deep);
  font-size: 18px;
}

.personal-result-item[open] > summary header::after {
  content: "−";
}

.guide-details > summary {
  margin: 0 !important;
}

.guide-details > summary .section-intro {
  display: none;
}

.guide-details[open] > summary {
  margin-bottom: 18px !important;
}

.guide-body {
  padding-bottom: 4px;
}

.report-guide-body .topbar {
  padding-top: 26px !important;
  padding-bottom: 18px !important;
}

.report-guide-body .topbar h1 {
  font-size: clamp(34px, 5vw, 58px) !important;
}

.report-guide-body .message-card {
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius);
  background: #fff !important;
}

@media (max-width: 720px) {
  .home-body .page-hero p,
  .daily-center-body .page-hero p,
  .information-body .page-hero p {
    display: none !important;
  }

  .home-body .hero-aside,
  .daily-center-body .hero-aside small,
  .information-body .hero-aside small {
    display: none !important;
  }

  .home-entry-section {
    padding-top: 18px !important;
  }

  .home-entry-section .section-head,
  .home-entry-section .section-title p {
    display: none !important;
  }

  .home-entry-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .home-entry-card {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 3px 10px !important;
    padding: 13px !important;
  }

  .home-entry-card > span {
    grid-row: 1 / span 2;
  }

  .home-entry-card h3,
  .home-entry-card p {
    margin: 0 !important;
  }

  .home-entry-card p {
    grid-column: 2;
    font-size: 12px !important;
  }

  .home-entry-card b {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 12px !important;
  }

  .home-flow-section {
    padding: 18px 0 !important;
  }

  .home-flow-section .section-title {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-flow-section .section-no,
  .home-flow-section .section-title p {
    display: none !important;
  }

  .home-flow-section .section-title h2 {
    font-size: 17px !important;
  }

  .automation-flow {
    overflow-x: auto;
    justify-content: flex-start !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .automation-flow > div {
    flex: 0 0 90px;
  }

  .view-tabs {
    margin-top: 10px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }

  .view-tabs button {
    flex: 0 0 auto !important;
    min-width: 86px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .daily-center-body .surface-guide,
  .information-body .surface-guide {
    min-height: 48px !important;
    margin-bottom: 6px !important;
  }

  .daily-center-body .surface-guide small,
  .information-body .surface-guide small {
    display: none !important;
  }

  .daily-center-body .dashboard-grid,
  .information-body .decision-lead {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .content-block .block-title p,
  .view > .block-title p,
  .decision-lead .block-title p {
    display: none !important;
  }

  .content-block {
    padding: 18px 0 !important;
  }

  .content-block + .content-block {
    border-top: 1px solid var(--ui-line) !important;
  }

  .detail-context-nav,
  .report-jump {
    margin: 0 !important;
  }

  .daily-detail-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  .daily-detail-hero h1 {
    font-size: 26px !important;
  }

  .quality-orb {
    width: 62px !important;
    height: 62px !important;
  }

  .daily-detail-page > .quality-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .quality-detail {
    width: 100%;
    min-width: 0;
  }

  .daily-result-item .result-body {
    grid-template-columns: 1fr !important;
  }

  .personal-result-item > summary header {
    grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    gap: 8px !important;
  }

  .personal-report-page .report-cover h1 {
    font-size: 28px !important;
    line-height: 1.18 !important;
  }

  .personal-report-page .operations-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border-top: 1px solid var(--ui-line);
    border-left: 1px solid var(--ui-line);
  }

  .personal-report-page .operations-metrics article {
    min-height: 88px !important;
    padding: 14px !important;
    border-right: 1px solid var(--ui-line) !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 0 !important;
  }

  .personal-report-page .operations-metrics article strong {
    margin-top: 6px !important;
    font-size: 23px !important;
  }

  .personal-result-item > summary header p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .report-guide-body .workbench-page {
    width: calc(100% - 28px) !important;
  }

  .report-guide-body .topbar {
    padding: 18px 0 14px !important;
  }

  .report-guide-body .topbar h1 {
    font-size: 30px !important;
  }

  .report-guide-body .topbar > div > p:last-child,
  .report-guide-body .identity {
    display: none !important;
  }

  .report-guide-body .tabs {
    position: sticky;
    top: var(--ui-header-height);
    z-index: 60;
    overflow-x: auto;
    background: rgba(255, 255, 255, .98);
  }

  .report-guide-body .flow-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .report-guide-body .flow-card {
    padding: 13px !important;
  }

  .report-guide-body .flow-card h3 {
    margin-top: 9px !important;
    font-size: 14px;
  }

  .report-guide-body .flow-card p {
    font-size: 12px !important;
  }

  .guide-collapsible-section {
    padding: 20px 0 !important;
  }

  .guide-details > summary h2 {
    font-size: 18px !important;
  }

  .guide-details > summary .eyebrow {
    display: none !important;
  }

  .report-guide-body .matrix {
    min-width: 660px;
  }
}

/* F31E — unified visual hierarchy: groups first, lines last. */
:root {
  --ui-purple: #6757e7;
  --ui-purple-deep: #4f40c9;
  --ui-purple-soft: #f1effc;
  --ui-purple-line: #dcd7f5;
  --ui-ink: #292631;
  --ui-muted: #706b79;
  --ui-faint: #9993a3;
  --ui-line: #e8e5ee;
  --ui-soft: #f8f7fb;
  --ui-surface: #fff;
  --ui-green: #217957;
  --ui-green-soft: #eef7f2;
  --ui-amber: #96620f;
  --ui-amber-soft: #fff6e8;
  --ui-red: #bd4554;
  --ui-red-soft: #fff0f2;
  --ui-radius: 12px;
  --ui-radius-lg: 16px;
  --ui-shadow-1: 0 6px 18px rgba(44, 35, 70, .055);
  --ui-shadow-2: 0 12px 34px rgba(44, 35, 70, .08);
}

html,
body,
.report-workbench-surface,
.daily-detail-body {
  background: var(--ui-soft) !important;
}

.product-header,
.report-workbench-surface .product-header {
  border-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(51, 43, 70, .07), 0 5px 18px rgba(51, 43, 70, .035) !important;
}

.page-hero {
  border-bottom: 0 !important;
}

.hero-aside {
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(103, 87, 231, .14) !important;
}

.daily-context-panel,
.surface-overview-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.report-workbench-surface .demo-banner {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  border: 0 !important;
  background: var(--ui-purple-soft) !important;
  box-shadow: inset 0 -1px 0 rgba(103, 87, 231, .08) !important;
}

.daily-context-panel .identity-bar {
  margin: 0 !important;
  gap: 12px !important;
}

.daily-context-panel .gap-guide,
.surface-overview-panel .surface-guide {
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.daily-context-panel .gap-guide {
  background: var(--ui-green-soft) !important;
}

.identity-note {
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(33, 121, 87, .08);
}

.control,
.field input,
.field select,
.field textarea,
.workbench-page .field input,
.workbench-page .field select,
.workbench-page .field textarea,
.report-workbench-surface .field input,
.report-workbench-surface .field select,
.report-workbench-surface .field textarea {
  border-color: transparent !important;
  background: #fbfafd !important;
  box-shadow: inset 0 0 0 1px #e2deea !important;
}

.control:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #cbc4df !important;
}

.form-chapter-nav,
.report-workbench-surface .chapter-nav,
.workbench-page .chapter-nav,
.view-tabs,
.report-jump,
.report-guide-body .tabs {
  gap: 4px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #eeecf4 !important;
  box-shadow: inset 0 0 0 1px rgba(82, 70, 111, .045) !important;
}

.form-chapter-nav {
  margin-top: 12px !important;
}

.form-chapter-nav button,
.form-chapter-nav a,
.report-workbench-surface .chapter-nav a,
.workbench-page .chapter-nav a,
.view-tabs button,
.report-jump a,
.report-guide-body .tabs .tab {
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
}

.form-chapter-nav button.active,
.form-chapter-nav a.active,
.report-workbench-surface .chapter-nav a.active,
.workbench-page .chapter-nav a.active,
.view-tabs button.active,
.report-jump a.active,
.report-guide-body .tabs .tab.active {
  border: 0 !important;
  background: #fff !important;
  color: var(--ui-purple-deep) !important;
  box-shadow: 0 2px 8px rgba(54, 43, 89, .08) !important;
}

.segment,
.segment-control,
.segmented {
  display: flex;
  gap: 4px !important;
  padding: 4px !important;
  border: 0 !important;
  background: #eeecf4 !important;
  box-shadow: inset 0 0 0 1px rgba(82, 70, 111, .045) !important;
}

.segment span,
.segment-control button,
.segmented button {
  border: 0 !important;
  border-radius: 8px !important;
}

.segment input:checked + span,
.segment-control button.is-active,
.segmented button.active {
  background: #fff !important;
  color: var(--ui-purple-deep) !important;
  box-shadow: 0 2px 8px rgba(54, 43, 89, .08) !important;
}

.section,
.report-section,
.daily-detail-section,
.daily-detail-page > .quality-panel,
.daily-detail-footer {
  border-bottom: 0 !important;
}

.task-card,
.item-card,
.manager-item-review,
.project-review-card,
.candidate-review,
.personal-result-item,
.decision-card,
.person-card,
.content-block,
.report-card,
.list-row,
.evidence-row,
.matter-row,
.item-overview-card,
.source-gap-banner,
.quality-detail {
  border: 0 !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow-1) !important;
}

.task-card,
.item-card,
.manager-item-review,
.project-review-card,
.candidate-review,
.personal-result-item,
.decision-card,
.person-card,
.content-block,
.report-card,
.list-row,
.evidence-row,
.matter-row,
.item-overview-card {
  border-radius: var(--ui-radius) !important;
}

.task-card[open],
.matter-row[open],
.personal-result-item[open] {
  box-shadow: var(--ui-shadow-2) !important;
}

.task-card[open] > .task-editor,
.item-support-details,
.quality-detail,
.personal-result-item > summary,
.daily-result-item,
.timeline-day,
.report-section-head,
.subsection {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.task-current,
.criterion,
.notice,
.personal-result,
.daily-result-item .result-body > div,
.analysis-lead,
.summary-grid > *,
.action-list > * {
  border: 0 !important;
  background: var(--ui-purple-soft) !important;
  box-shadow: none !important;
}

.optional-section {
  margin-top: 14px;
  padding: 18px !important;
  border: 0 !important;
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.optional-section > summary.section-head {
  margin: 0 !important;
}

.optional-section[open] > summary.section-head {
  margin-bottom: 16px !important;
}

.submit-dock,
.sticky-actions {
  border: 0 !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 14px 40px rgba(44, 35, 70, .13) !important;
}

.metric-grid {
  gap: 8px !important;
  margin: 0 !important;
  border: 0 !important;
}

.metric {
  padding: 13px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f7f6fa !important;
}

.surface-overview-panel .surface-guide {
  padding: 11px 12px !important;
  background: var(--ui-purple-soft) !important;
}

.surface-overview-panel + .view-tabs {
  margin-top: 12px !important;
}

.dashboard-grid,
.decision-lead,
.split-section,
.chart-grid,
.people-report-grid {
  gap: 16px !important;
}

.content-block {
  padding: 20px !important;
}

.content-block + .content-block {
  margin-top: 14px;
}

.decision-stack,
.list,
.report-list,
.item-analysis-list,
.people-grid {
  gap: 10px !important;
}

.decision-card,
.list-row,
.evidence-row,
.report-card,
.matter-row {
  margin: 0 !important;
}

/* Dense operational cards need a real content inset, not edge-aligned text. */
.person-card {
  padding: 20px !important;
}

.list-row {
  grid-template-columns: minmax(0, 1fr) minmax(82px, auto) !important;
  align-items: center !important;
  gap: 24px !important;
  min-height: 88px;
  padding: 20px 22px !important;
}

.list-row > div {
  min-width: 0;
}

.list-row h3 {
  margin: 0 0 7px !important;
  line-height: 1.45 !important;
}

.list-row p {
  margin: 0 !important;
  line-height: 1.55 !important;
}

.list-row aside {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  min-width: 82px;
  text-align: right !important;
}

.list-row aside strong,
.list-row aside small {
  line-height: 1.35;
}

.list-row aside small {
  white-space: nowrap;
}

.report-card {
  padding: 20px 22px !important;
}

/* 日报中台：在时间线内就地阅读日报，避免反复跳页。 */
.daily-center-body .timeline-content {
  gap: 10px;
}

.daily-report-inline {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.daily-report-inline > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px 18px 8px;
  cursor: pointer;
  list-style: none;
}

.daily-report-inline > summary::-webkit-details-marker {
  display: none;
}

.daily-report-heading h3,
.daily-report-heading p,
.daily-report-preview,
.daily-report-body h4,
.daily-report-body p,
.daily-report-body h5,
.daily-report-body dd {
  margin: 0;
}

.daily-report-heading h3 {
  color: var(--ui-ink);
  font-size: 16px;
  line-height: 1.4;
}

.daily-report-heading p {
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 12px;
}

.daily-report-preview {
  display: -webkit-box;
  overflow: hidden;
  padding: 0 48px 16px 18px;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.daily-report-inline[open] .daily-report-preview {
  display: none;
}

.daily-report-toggle::before {
  color: var(--ui-purple-deep);
  content: "+";
  font-size: 18px;
  font-weight: 400;
}

.daily-report-inline[open] .daily-report-toggle::before {
  content: "−";
}

.daily-report-body {
  display: grid;
  gap: 16px;
  padding: 4px 18px 18px;
}

.report-body-section {
  padding-top: 16px;
  border-top: 1px solid var(--ui-line);
}

.report-body-section h4 {
  margin-bottom: 8px;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 650;
}

.report-body-section p,
.report-follow-up li {
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.7;
}

.report-body-lead {
  padding: 14px 15px;
  border-top: 0;
  border-radius: 12px;
  background: var(--ui-purple-soft);
}

.report-body-lead h4 {
  color: var(--ui-purple-deep);
}

.report-matter-list {
  display: grid;
  gap: 12px;
}

.report-matter {
  padding: 14px 0 0;
}

.report-matter + .report-matter {
  border-top: 1px solid var(--ui-line);
}

.report-matter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-matter-head h5 {
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.55;
}

.report-matter-head p {
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 12px;
}

.report-matter-head strong {
  flex: 0 0 auto;
  color: var(--ui-purple-deep);
  font-size: 16px;
  line-height: 1.4;
}

.report-matter dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.report-matter dl div {
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--ui-soft);
}

.report-matter dt {
  margin-bottom: 5px;
  color: var(--ui-muted);
  font-size: 11px;
}

.report-matter dd {
  color: var(--ui-ink);
  font-size: 12px;
  line-height: 1.55;
}

.report-follow-up ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.person-card .person-report-inline {
  margin: 14px 0;
}

.person-card .daily-report-inline {
  box-shadow: none;
}

.button,
.btn,
.source-gap-actions button,
.source-gap-actions a,
.receipt-actions a {
  border: 0 !important;
}

.button.primary,
.btn:not(.secondary),
.report-workbench-surface .btn:not(.secondary) {
  box-shadow: 0 5px 14px rgba(103, 87, 231, .2) !important;
}

.button.secondary,
.btn.secondary,
.report-workbench-surface .btn.secondary {
  box-shadow: inset 0 0 0 1px #ddd9e6 !important;
}

.source-gap-actions,
.receipt-actions,
.item-toolbar,
.report-role-switch,
.period-switch,
.report-save-tools {
  gap: 8px !important;
}

.report-cover,
.daily-detail-hero {
  border: 0 !important;
  box-shadow: var(--ui-shadow-1) !important;
}

.report-section,
.daily-detail-section,
.daily-detail-page > .quality-panel {
  margin-top: 16px;
  padding: 24px !important;
  border-radius: var(--ui-radius-lg) !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow-1) !important;
}

.report-footer,
.daily-detail-footer {
  margin-top: 18px;
  padding: 18px 4px !important;
}

.matrix th,
.matrix td,
table th,
table td {
  border-bottom: 0 !important;
}

.matrix tbody tr:nth-child(odd),
table tbody tr:nth-child(odd) {
  background: #f8f7fb;
}

.home-entry-card {
  border: 0 !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow-1) !important;
}

.home-flow-section,
.guide-collapsible-section {
  border: 0 !important;
}

.flow-card {
  border: 0 !important;
  border-radius: var(--ui-radius) !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow-1) !important;
}

/* Daily-center item view: act on filters first, then scan one clear task row. */
.daily-center-body .item-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: end !important;
  gap: 16px !important;
  margin: 18px 0 16px !important;
}

.daily-center-body .item-filter-group,
.daily-center-body .item-owner-filter {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.daily-center-body .item-filter-label,
.daily-center-body .item-owner-filter > span {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.daily-center-body .item-filter-group .segmented {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 0 !important;
  border-radius: 10px;
  background: #f1eff7;
  box-shadow: none !important;
}

.daily-center-body .item-filter-group .segmented::-webkit-scrollbar { display: none; }

.daily-center-body .item-filter-group .segmented button {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 40px;
  padding: 0 15px;
  white-space: nowrap;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
}

.daily-center-body .item-owner-filter .control {
  width: 100%;
  min-height: 40px;
  padding-right: 36px;
  border: 0 !important;
  border-radius: 10px;
  background: #f7f6fa;
  box-shadow: inset 0 0 0 1px #e2deea;
}

.daily-center-body .item-analysis-list {
  display: grid;
  gap: 12px !important;
  border-top: 0 !important;
}

.daily-center-body .matter-row { overflow: hidden; }

.daily-center-body .matter-row > summary {
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 18px;
  min-height: 96px;
  padding: 20px 22px !important;
}

.daily-center-body .matter-main {
  min-width: 0;
  gap: 12px;
}

.daily-center-body .matter-main > div { min-width: 0; }

.daily-center-body .matter-main h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.4;
}

.daily-center-body .matter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.5;
}

.daily-center-body .matter-meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: #b5afc2;
}

.daily-center-body .matter-progress {
  grid-template-columns: auto;
  justify-items: end;
  gap: 4px;
  min-width: 88px;
}

.daily-center-body .matter-progress strong {
  font-size: 21px;
  line-height: 1.1;
}

.daily-center-body .matter-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef7f2;
  color: #277e58;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.daily-center-body .matter-state.amber { background: #fff6e7; color: #a76706; }
.daily-center-body .matter-state.red { background: #fff0f0; color: #c54747; }

.daily-center-body .matter-progress small {
  max-width: 108px;
  overflow: hidden;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-center-body .matter-toggle {
  width: 18px;
  height: 18px;
  border: solid #9a92aa;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .16s ease;
}

.daily-center-body .matter-row[open] .matter-toggle {
  transform: rotate(225deg) translate(-3px, -3px);
}

.daily-center-body .matter-row[open] .matter-toggle::after { content: none; }

.daily-center-body .matter-detail { padding: 0 22px 22px !important; }

.daily-center-body .matter-progress-track { margin: 0 0 16px; }

.daily-center-body .matter-analysis-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, .9fr);
  gap: 10px;
}

.daily-center-body .matter-analysis-grid article {
  min-width: 0;
  padding: 14px 16px;
  border-left: 0;
  border-radius: 10px;
  background: #f8f7fb;
}

.daily-center-body .matter-analysis-grid span,
.daily-center-body .matter-completion > summary,
.daily-center-body .matter-detail footer {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 700;
}

.daily-center-body .matter-analysis-grid p {
  margin: 6px 0 0;
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.55;
}

.daily-center-body .matter-completion {
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f4f1fb;
}

.daily-center-body .matter-completion > summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.daily-center-body .matter-completion > summary::-webkit-details-marker { display: none; }

.daily-center-body .matter-completion > summary::after {
  content: "查看";
  margin-left: auto;
  color: var(--ui-purple-deep);
  font-weight: 700;
}

.daily-center-body .matter-completion[open] > summary::after { content: "收起"; }

.daily-center-body .matter-completion p {
  margin: 0;
  padding: 0 0 14px;
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.55;
}

.daily-center-body .matter-detail footer {
  margin-top: 14px;
  padding: 0 2px;
}

@media (max-width: 720px) {
  .page,
  .page.narrow {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .daily-context-panel,
  .surface-overview-panel {
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .daily-context-panel .identity-bar {
    gap: 8px !important;
  }

  .form-chapter-nav,
  .view-tabs,
  .report-workbench-surface .chapter-nav,
  .report-guide-body .tabs {
    border-radius: 10px !important;
  }

  .section {
    padding: 22px 0 !important;
  }

  .optional-section {
    padding: 15px !important;
  }

  .content-block {
    padding: 16px !important;
  }

  .content-block + .content-block {
    border-top: 0 !important;
  }

  .person-card {
    padding: 18px !important;
  }

  .list-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, auto) !important;
    gap: 14px !important;
    min-height: 82px;
    padding: 17px 16px !important;
  }

  .list-row aside {
    min-width: 72px;
    justify-items: end;
    text-align: right !important;
  }

  .report-card {
    padding: 18px 16px !important;
  }

  .daily-report-inline > summary {
    min-height: 68px;
    padding: 15px 15px 8px;
  }

  .daily-report-preview {
    padding: 0 38px 15px 15px;
  }

  .daily-report-body {
    gap: 14px;
    padding: 3px 15px 16px;
  }

  .report-matter dl {
    grid-template-columns: 1fr;
  }

  .report-section,
  .daily-detail-section,
  .daily-detail-page > .quality-panel {
    padding: 18px !important;
  }

  .report-workbench-surface .section.report-chapter {
    padding: 22px 0 !important;
  }

  .daily-center-body .item-toolbar {
    grid-template-columns: 1fr;
    gap: 12px !important;
    margin: 14px 0 !important;
  }

  .daily-center-body .item-filter-group .segmented { width: 100%; }

  .daily-center-body .item-filter-group .segmented button {
    min-width: 76px;
    padding: 0 14px;
  }

  .daily-center-body .matter-row > summary {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 10px;
    min-height: 92px;
    padding: 18px 16px !important;
  }

  .daily-center-body .matter-main { gap: 10px; }
  .daily-center-body .matter-index { padding-top: 1px; }
  .daily-center-body .matter-main h3 { font-size: 15px; }
  .daily-center-body .matter-meta { gap: 3px 8px; font-size: 12px; }
  .daily-center-body .matter-meta span + span::before { margin-right: 8px; }
  .daily-center-body .matter-progress { min-width: 66px; }
  .daily-center-body .matter-progress strong { font-size: 19px; }
  .daily-center-body .matter-progress small { display: none; }
  .daily-center-body .matter-state { padding: 2px 6px; font-size: 11px; }
  .daily-center-body .matter-toggle { width: 14px; height: 14px; }
  .daily-center-body .matter-detail { padding: 0 16px 16px !important; }
  .daily-center-body .matter-analysis-grid { grid-template-columns: 1fr; gap: 8px; }
  .daily-center-body .matter-analysis-grid article { padding: 13px 14px; }
  .daily-center-body .matter-analysis-grid p { font-size: 13px; }
  .daily-center-body .matter-completion { padding: 0 14px; }
  .daily-center-body .matter-detail footer { flex-direction: row; gap: 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
