﻿:root {
  --deep: #0a0a0a;
  --gold: #c8a96e;
  --cloud: #d9d9d9;
  --white: #f7f7f7;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #686868;
  --line: #dedbd4;
  --panel: #fbfaf7;
  --soft: #f5f3ee;
  --surface: #fcfbf8;
  --danger: #9c3b31;
  --cool: #3f6275;
  --shadow: 0 16px 38px rgba(10, 10, 10, 0.06);
}

* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f4f2ed;
  font-family: "DIN Next", "鎬濇簮榛戜綋 CN", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: minmax(340px, 390px) 1fr;
  min-height: 100vh;
}

.input-panel {
  padding: 24px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  overflow: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.brand-block span {
  color: #786848;
  font-size: 12px;
  font-weight: 800;
}
.brand-logo {
  display: block;
  object-fit: contain;
  image-rendering: auto;
}
.internal-logo {
  width: 132px;
  height: auto;
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--deep); }
.brand-mark-light { color: var(--gold); }

.mark-box {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  background: linear-gradient(135deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.mark-box::after {
  content: none;
}

.wordmark { font-size: 28px; font-weight: 800; letter-spacing: 4px; }
.brand-line { display: none; }
.input-panel::after { content: none; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; line-height: 1.18; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.25; }
h3 { margin-bottom: 0; font-size: 15px; line-height: 1.35; }

.analysis-form { display: grid; gap: 14px; }
.form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.form-section-title {
  color: #7d6334;
  font-size: 12px;
  font-weight: 900;
}
label { display: grid; gap: 7px; color: #2b2b2b; font-size: 12px; font-weight: 900; }
input, textarea {
  width: 100%;
  border: 1px solid #cfcbc2;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}
.textarea-label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
textarea { resize: vertical; line-height: 1.62; }
.compact-note textarea { min-height: 96px; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18); }

.assumption-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  padding: 12px 14px;
}
.assumption-box summary { font-weight: 800; cursor: pointer; }
.assumption-box label { margin-top: 12px; }
.assumption-box p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.actions, .header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-btn, .ghost-btn, .icon-btn, .tab {
  min-height: 38px;
  border-radius: 3px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 800;
}
.primary-btn { flex: 1; background: var(--deep); color: var(--gold); min-height: 46px; }
.primary-btn:hover { background: #1b1b1b; }
.ghost-btn, .icon-btn { background: #fff; border-color: var(--line); color: var(--deep); }
.ghost-btn:hover, .icon-btn:hover { border-color: var(--gold); color: #7d6334; }
.mini-btn {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #6f5b36;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}
.mini-btn:hover { border-color: var(--gold); color: var(--deep); }
.analysis-status {
  margin: 12px 0 0;
  color: #7a6a4a;
  font-size: 12px;
  line-height: 1.5;
}
.analysis-progress {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: 12px;
}
.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #5f5137;
  font-size: 12px;
  font-weight: 800;
}
.progress-head strong {
  color: var(--deep);
  font-family: "DIN Next", "DIN Alternate", Arial, sans-serif;
  font-size: 15px;
}
.progress-track {
  height: 8px;
  margin-top: 10px;
  background: #dfd9cb;
  overflow: hidden;
}
.progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 0.35s ease;
}
.analysis-progress[hidden] {
  display: none;
}
.analysis-status.is-warning { color: #9a5f18; }
.analysis-status.is-ok { color: #41624b; }

.workspace { min-width: 0; padding: 28px; overflow: auto; background: #f7f6f2; }
.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.workspace-heading h1 { max-width: 980px; }
.header-actions .icon-btn {
  min-height: 34px;
  padding: 0 12px;
  color: #4f4f4f;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.tabs {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 2px;
  margin-bottom: 18px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #ece8df;
}
.tab { border-radius: 2px; background: transparent; color: var(--muted); min-height: 36px; }
.tab.is-active { background: var(--deep); color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.judgment-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.judgment-main,
.judgment-side article {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.judgment-main {
  padding: 20px;
  border-left: 4px solid var(--gold);
}
.judgment-main span,
.judgment-side span {
  display: block;
  color: #7d6334;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.judgment-main h2 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.45;
}
.judgment-main p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}
.judgment-side {
  display: grid;
  gap: 10px;
}
.judgment-side article {
  padding: 14px 16px;
}
.judgment-side strong {
  display: block;
  color: #222;
  font-size: 14px;
  line-height: 1.55;
}

.score-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.score-card, .section-block { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
.score-card { position: relative; overflow: hidden; padding: 16px; }
.score-card::after { content: ""; position: absolute; right: 16px; top: 16px; width: 8px; height: 8px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); opacity: 0.7; }
.score-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.score-card strong { display: block; margin-top: 10px; font-size: 28px; line-height: 1; }
.score-card small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.45; }

.six-gates-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.six-gates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
}

.six-gates-bars {
  display: grid;
  gap: 10px;
}

.gate-row-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.gate-row-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.gate-row-card b {
  color: var(--deep);
}

.gate-row-card i {
  display: block;
  height: 10px;
  background: #ebe7df;
  overflow: hidden;
}

.gate-row-card em {
  display: block;
  height: 100%;
  width: 0;
  background: var(--silver);
}

.gate-row-card.is-mid em { background: var(--deep); }
.gate-row-card.is-high em { background: var(--gold); }

.six-gates-summary {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: grid;
  gap: 10px;
}

.six-gates-summary h3 {
  margin: 0;
  font-size: 18px;
}

.six-gates-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.six-gates-summary div {
  display: grid;
  gap: 6px;
}

.six-gates-summary strong {
  font-size: 13px;
  color: var(--deep);
}

.six-gates-summary span {
  display: block;
  padding: 7px 9px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.dashboard-grid, .two-column, .roi-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.section-block { padding: 18px; }
#process .section-block { display: flex; flex-direction: column; }
#process .item-list { flex: 1; }
.routing-block { margin-top: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.count-pill, .tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; background: #f4efe4; color: #7d6334; font-size: 12px; font-weight: 800; }
.item-list { display: grid; gap: 10px; }
.finding-card { border: 1px solid #e4e0d7; border-radius: 4px; padding: 14px; background: var(--panel); }
#process .finding-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
}
#process .finding-card .tag-row { margin-top: auto; }
.finding-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.finding-card p { margin: 0 0 10px; color: #494949; font-size: 14px; line-height: 1.6; }
.finding-card .analysis-note {
  color: #6a5a3b;
  background: rgba(200, 169, 110, 0.12);
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag.warning { background: #fff5df; color: #8a651f; }
.tag.danger { background: #f8e7e3; color: var(--danger); }
.tag.cool { background: #e8eef1; color: var(--cool); }

.chart-box { min-height: 280px; }
.compact-chart { min-height: 160px; }
.radar-chart { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.radar-chart text { font-size: 12px; fill: var(--muted); font-weight: 800; }
.bar-chart { display: grid; gap: 14px; padding-top: 12px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 62px; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.bar-row span { font-weight: 800; }
.bar-row b { color: var(--deep); text-align: right; }
.bar-track { height: 30px; background: #eeeae2; }
.bar-track i { display: block; height: 100%; }

.roi-stack {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}
.roi-donut-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
}
.roi-donut {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--saved) * 1%), #d9d9d9 0);
  display: grid;
  place-items: center;
  position: relative;
}
.roi-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}
.roi-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.roi-donut strong {
  font-size: 34px;
  line-height: 1;
}
.roi-donut span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.roi-donut-copy {
  display: grid;
  gap: 12px;
}
.roi-donut-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.roi-stack-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-weight: 800;
}
.roi-stack-head b {
  color: var(--deep);
  font-size: 26px;
}
.stack-bar {
  display: flex;
  width: 100%;
  height: 42px;
  background: #eeeae2;
  border: 1px solid var(--line);
}
.stack-bar i { display: block; height: 100%; }
.stack-saved { background: var(--gold); }
.stack-remain { background: #d9d9d9; }
.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.stack-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.stack-legend i {
  width: 12px;
  height: 12px;
}
.legend-saved { background: var(--gold); }
.legend-remain { background: #d9d9d9; }
.roi-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.roi-mini-grid div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.roi-mini-grid strong { color: var(--deep); }

.priority-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  padding-top: 8px;
}
.priority-table div {
  position: relative;
  min-height: 126px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}
.priority-table b {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}
.priority-table span {
  display: inline-flex;
  background: #f4efe4;
  color: #7d6334;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.priority-table em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.priority-table p {
  margin: 0;
  color: #444;
  line-height: 1.55;
  font-size: 13px;
}

.priority-matrix {
  position: relative;
  min-height: 330px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(200, 169, 110, 0.28) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(200, 169, 110, 0.28) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    #fff;
  overflow: hidden;
}
.priority-matrix::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 28px;
  bottom: 42px;
  top: 28px;
  border-left: 1px solid #bdb6aa;
  border-bottom: 1px solid #bdb6aa;
  pointer-events: none;
}
.matrix-axis {
  position: absolute;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 900;
}
.y-axis {
  left: 12px;
  top: 18px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
.x-axis {
  right: 24px;
  bottom: 13px;
}
.matrix-quadrants {
  position: absolute;
  inset: 28px 28px 42px 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  color: rgba(104, 104, 104, 0.28);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}
.matrix-quadrants span { padding: 14px; }
.matrix-quadrants span:nth-child(2),
.matrix-quadrants span:nth-child(4) { text-align: right; }
.matrix-quadrants span:nth-child(3),
.matrix-quadrants span:nth-child(4) { align-self: end; }
.matrix-dot {
  position: absolute;
  transform: translate(-50%, 50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  min-height: 34px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #fff;
  color: #333;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
  font-size: 12px;
  font-weight: 900;
}
.matrix-dot i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e9e3d6;
  color: #6f5b36;
  font-style: normal;
}
.matrix-dot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matrix-dot.is-top {
  border-color: var(--gold);
  background: var(--deep);
  color: var(--gold);
}
.matrix-dot.is-top i {
  background: var(--gold);
  color: var(--deep);
}
.matrix-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.matrix-list article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}
.matrix-list b,
.matrix-list span {
  display: block;
}
.matrix-list b {
  margin-bottom: 6px;
  font-size: 13px;
}
.matrix-list span {
  margin-bottom: 8px;
  color: #7d6334;
  font-size: 12px;
  font-weight: 900;
}
.matrix-list p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.55;
}

.roi-numbers { display: grid; gap: 10px; margin-top: 12px; }
.roi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.roi-row span { color: var(--muted); font-weight: 800; }
.roi-row strong { font-size: 22px; }

.client-report { max-width: 794px; margin: 0 auto; display: grid; gap: 18px; }
.pdf-page {
  position: relative;
  width: 100%;
  height: calc(min(100vw - 56px, 794px) * 1.4145);
  min-height: 0;
  aspect-ratio: 2480 / 3508;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.report-section > *:not(.inner-diagonal-line) {
  position: relative;
  z-index: 1;
}
.pdf-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.pdf-header-logo {
  display: block;
  width: 92px;
  height: auto;
  object-fit: contain;
}
.pdf-page-footer {
  position: relative;
  flex: 0 0 auto;
  margin-top: auto;
  margin-right: 36px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--gold);
  padding-top: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  z-index: 3;
}
.pdf-page-footer b { color: var(--gold); }

.report-cover {
  container-type: inline-size;
  background: #0b0b0b;
  color: var(--white);
  display: block;
  padding: 0;
  box-shadow: inset 0 0 0 9999px #0b0b0b;
}
.report-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.55) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 74% 63%, rgba(255,255,255,0.42) 0 0.5px, transparent 0.7px);
  background-size: 13px 17px, 19px 23px;
}
.report-cover::after {
  content: "";
  position: absolute;
  left: -24%;
  bottom: 2.5%;
  width: 150%;
  height: 1px;
  background: rgba(198, 164, 106, 0.38);
  transform: rotate(-34deg);
  transform-origin: left center;
  pointer-events: none;
}
.cover-brand {
  position: absolute;
  left: 3.548%;
  top: 3.079%;
  z-index: 2;
}
.cover-logo {
  display: block;
  width: 18.6%;
  height: auto;
  object-fit: contain;
}
.cover-title {
  position: absolute;
  left: 3.548%;
  top: 22.8%;
  z-index: 1;
  max-width: 43%;
}
.cover-title h1 {
  color: #d2b178;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: clamp(34px, 5.35cqw, 133px);
  line-height: 1.151;
  font-weight: 900;
  letter-spacing: 0.161cqw;
  margin: 0 0 2.736cqw;
  white-space: nowrap;
}
.cover-title h2 {
  color: #f2f2f2;
  font-size: clamp(18px, 2.339cqw, 58px);
  font-weight: 600;
  margin: 0 0 0.806cqw;
}
.cover-title p {
  color: #8e8e8e;
  font-size: clamp(10px, 1.129cqw, 28px);
  letter-spacing: 0.242cqw;
}
.cover-change-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cover-change-mark::before,
.cover-change-mark::after,
.cover-change-mark span,
.cover-change-mark i,
.cover-change-mark b {
  content: "";
  position: absolute;
  height: 1px;
  background: rgba(198, 164, 106, 0.18);
  transform: rotate(-34deg);
  transform-origin: left center;
}
.cover-change-mark::before { left: 55%; bottom: 2.5%; width: 58%; opacity: 0.5; }
.cover-change-mark::after { left: 60%; bottom: -0.5%; width: 50%; opacity: 0.38; }
.cover-change-mark i { left: 65%; bottom: -3.5%; width: 42%; opacity: 0.28; }
.cover-change-mark span { left: 70%; bottom: -6.5%; width: 34%; opacity: 0.2; }
.cover-change-mark b { left: 75%; bottom: -9.5%; width: 28%; opacity: 0.14; }
.cover-info-strip {
  position: absolute;
  left: 3.548%;
  width: 84.677%;
  bottom: 11.973%;
  display: flex;
  gap: 6.452%;
  border-top: 1px solid #5e4b2b;
  padding-top: 0.565cqw;
}
.cover-info-strip div { min-width: 0; flex: 0 1 auto; }
.cover-info-strip span {
  display: block;
  color: #6d5a39;
  font-size: clamp(7px, 0.726cqw, 18px);
  letter-spacing: 0.323cqw;
  margin-bottom: 0.323cqw;
}
.cover-info-strip b {
  color: #f5f5f5;
  font-size: clamp(10px, 1.371cqw, 34px);
  font-weight: 400;
  white-space: nowrap;
}
.cover-bottom-brand {
  position: absolute;
  left: 3.548%;
  bottom: 3.079%;
  display: flex;
  align-items: flex-start;
  gap: 1.21cqw;
}
.cover-bottom-brand::before {
  content: "";
  display: block;
  width: 2px;
  height: 1.45cqw;
  margin-top: 0.28cqw;
  background: #8e7348;
}
.cover-bottom-brand strong {
  display: block;
  color: #d2b178;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: clamp(13px, 1.45cqw, 36px);
  font-weight: 500;
  margin-bottom: 0.55cqw;
}
.cover-bottom-brand span {
  display: block;
  color: #8e7348;
  font-size: clamp(7px, 0.726cqw, 18px);
  letter-spacing: 0.32cqw;
}
.cover-confidential {
  position: absolute;
  right: 3.548%;
  bottom: 3.079%;
  color: #7a6440;
  font-family: "DIN Next", "DIN Alternate", Arial, sans-serif;
  font-size: clamp(7px, 0.726cqw, 18px);
  font-weight: 300;
  letter-spacing: 0.403cqw;
  line-height: 1.8;
  text-align: right;
}

.report-section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 34px 42px 34px;
}
.report-section h2 { margin-bottom: 18px; font-size: 26px; }
.report-section h3 { color: #7d6334; margin-bottom: 12px; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.report-kpis div { padding: 18px; background: #f4f0e8; border-left: 3px solid var(--gold); }
.report-kpis span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.report-kpis strong { display: block; margin-top: 8px; font-size: 24px; }
.insight-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.insight-summary div { border: 1px solid var(--line); background: #fff; padding: 18px; }
.insight-summary p { margin: 0; color: #333; line-height: 1.58; font-size: 13px; }
.report-chart-grid, .report-columns, .advice-grid, .roi-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.report-chart, .report-columns > div, .consultant-block, .wide-chart, .report-table > div, .advice-grid > div, .roi-report-grid > div {
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
}
.report-chart { min-height: 220px; }

.report-six-gates {
  border: 1px solid var(--line);
  padding: 14px;
  margin: 14px 0;
  background: var(--panel);
}

.report-six-gates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.report-six-gates-head h3 {
  margin: 0;
  color: var(--gold-dark);
}

.report-six-gates-head strong {
  font-size: 16px;
}

.report-gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.report-gate-grid div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
}

.report-gate-grid span {
  color: var(--muted);
  font-weight: 800;
}

.report-gate-grid b {
  color: var(--deep);
}

.report-gate-grid i {
  grid-column: 1 / -1;
  height: 6px;
  background: #e5e0d7;
}

.report-gate-grid em {
  display: block;
  height: 100%;
  background: var(--gold);
}

.report-six-gates p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.report-columns { grid-template-columns: repeat(3, 1fr); }
.report-columns ul { margin: 0; padding-left: 18px; }
.report-columns li { margin-bottom: 12px; line-height: 1.55; }
.report-columns li span { display: block; color: var(--muted); }
.consultant-block { margin-top: 16px; }
.consultant-block p, .advice-grid p { color: #333; line-height: 1.58; font-size: 13px; margin-bottom: 0; }
.report-table { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.report-table b { display: block; margin-bottom: 8px; }
.report-table span { display: block; color: #7d6334; font-weight: 800; margin-bottom: 8px; }
.report-table p { margin: 0; color: var(--muted); line-height: 1.6; }
.roi-report-grid div span { color: var(--muted); font-weight: 800; }
.roi-report-grid div strong { display: block; margin-top: 10px; font-size: 30px; }

.inner-diagonal-line {
  position: absolute;
  right: -18%;
  bottom: 18%;
  width: 92%;
  height: 1px;
  background: rgba(200, 169, 110, 0.22);
  transform: rotate(-34deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}
.inner-diagonal-line::before,
.inner-diagonal-line::after {
  content: "";
  position: absolute;
  left: 28%;
  height: 1px;
  background: rgba(200, 169, 110, 0.16);
}
.inner-diagonal-line::before {
  top: 28px;
  width: 58%;
}
.inner-diagonal-line::after {
  top: 56px;
  width: 42%;
}

.customer-list-block {
  margin-bottom: 14px;
}
.customer-list {
  display: grid;
  gap: 10px;
}
.customer-list-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}
.customer-list-item:hover,
.customer-list-item.is-active {
  border-color: var(--gold);
  background: #f8f5ee;
}
.customer-list-item b,
.customer-list-item span {
  display: block;
}
.customer-list-item b {
  margin-bottom: 5px;
  font-size: 15px;
}
.customer-list-item span,
.customer-list-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.customer-list-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(200, 169, 110, 0.5);
  background: #fbf6ea;
  color: #6f5b36;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.memory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.memory-summary article {
  border: 1px solid var(--line);
  background: #f8f5ee;
  padding: 14px;
}
.memory-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.memory-summary strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}
.correction-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.correction-panel label {
  display: grid;
  gap: 8px;
  color: #4f4f4f;
  font-weight: 900;
}
.correction-panel select,
.correction-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  padding: 10px 12px;
  font: inherit;
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}
.memory-board section {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.memory-board h3 {
  margin-bottom: 12px;
  color: #7d6334;
  font-size: 16px;
}
.memory-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.memory-list li {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: #333;
}
.memory-list b,
.memory-list span,
.memory-list p,
.timeline-list time {
  display: block;
}
.memory-list b {
  margin-bottom: 4px;
}
.memory-list span,
.memory-list p,
.timeline-list time {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.state-tree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.state-tree span {
  border: 1px solid var(--line);
  background: #f8f5ee;
  padding: 8px 10px;
  font-weight: 800;
}
.state-tree i {
  color: var(--gold);
  font-style: normal;
}

.empty-state { color: var(--muted); padding: 20px 0; }

@media (max-width: 1100px) {
  .app-shell, .dashboard-grid, .two-column, .roi-layout, .report-cover, .report-chart-grid, .judgment-panel { grid-template-columns: 1fr; }
  .score-grid, .report-kpis, .roi-report-grid, .matrix-list, .memory-summary, .memory-board { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .report-columns, .advice-grid, .report-table { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .input-panel, .workspace { padding: 18px; }
  .brand-block { align-items: flex-start; flex-direction: column; }
  .workspace-header { display: grid; }
  .score-grid, .tabs, .report-kpis, .roi-report-grid, .matrix-list, .memory-summary, .memory-board { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 88px 1fr 48px; }
  h1 { font-size: 24px; }
  .judgment-main h2 { font-size: 18px; }
  .priority-matrix { min-height: 300px; }
  .matrix-dot { max-width: 140px; }
  .matrix-dot span { max-width: 90px; }
  .cover-title h1 { font-size: 44px; }
  .cover-info-strip { flex-wrap: wrap; gap: 18px; }
  .report-section { padding: 24px; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .input-panel, .workspace-header, .tabs, .tab-panel:not(#report) { display: none !important; }
  .app-shell, .workspace, #report { display: block; padding: 0; }
  .client-report { max-width: none; display: block; margin: 0; }
  .report-section {
    display: flex;
    flex-direction: column;
    padding: 12mm;
  }
  .pdf-page-header { margin-bottom: 12mm; }
  .report-kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10mm; }
  .report-kpis div { padding: 12px; }
  .report-kpis strong { font-size: 20px; }
  .report-chart-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .report-chart { min-height: 210px; padding: 12px; }
  .report-chart .radar-chart { max-width: 250px; }
  .report-columns { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .report-columns > div { padding: 12px; }
  .report-table { grid-template-columns: 1fr 1fr; gap: 10px; }
  .advice-grid, .roi-report-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .consultant-block { padding: 12px; margin-top: 10px; }
  .consultant-block p, .advice-grid p, .report-table p { line-height: 1.55; font-size: 13px; }
  .pdf-page-footer {
    position: relative;
    margin-top: auto;
    margin-right: 10mm;
    padding-top: 3mm;
  }
  .bar-chart { gap: 10px; }
  .bar-row { grid-template-columns: 86px 1fr 46px; font-size: 11px; gap: 7px; }
  .bar-track { height: 22px; }
  .roi-stack { gap: 10px; padding-top: 4px; }
  .roi-donut-card { grid-template-columns: 120px 1fr; gap: 12px; padding-top: 0; }
  .roi-donut { width: 112px; }
  .roi-donut::after { inset: 20px; }
  .roi-donut strong { font-size: 22px; }
  .stack-bar { height: 30px; }
  .roi-mini-grid div { font-size: 11px; }
  .inner-diagonal-line { left: auto; right: -38mm; bottom: 64mm; width: 190mm; opacity: 0.65; }
  .report-cover {
    padding: 0;
    box-shadow: inset 0 0 0 9999px #0b0b0b;
  }
  .cover-logo { width: 18.6%; }
  .cover-title { left: 3.548%; top: 22.8%; bottom: auto; }
  .cover-title h1 { font-size: 5.35cqw; white-space: nowrap; }
  .pdf-page {
    width: 210mm;
    min-height: 297mm;
    height: 297mm;
    border: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .pdf-page:last-child { break-after: auto; page-break-after: auto; }
}
