:root {
  --ink: #191919;
  --muted: #666660;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --line: #d9d9d3;
  --hr-bg: #ffe5d8;
  --hr-border: #d65c28;
  --system-bg: #e3e8ff;
  --system-border: #4f63d8;
  --candidate-bg: #ddf4e9;
  --candidate-border: #16845a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
button, summary { font: inherit; }
small { font-size: 14px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

main {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.dashboard-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dashboard-nav a {
  min-height: 44px;
  padding: 9px 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
}
.dashboard-nav a:hover { color: var(--ink); border-color: var(--line); }
.dashboard-nav a[aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.dashboard-nav a:focus-visible {
  outline: 3px solid var(--system-border);
  outline-offset: 3px;
}

.page-header {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink);
}
.kicker,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}
.page-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.page-header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.flow-section,
.detail-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.section-description {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 650;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid;
}
.owner-hr { background: var(--hr-bg); border-color: var(--hr-border); }
.owner-system { background: var(--system-bg); border-color: var(--system-border); }
.owner-candidate { background: var(--candidate-bg); border-color: var(--candidate-border); }

.mermaid-wrap {
  overflow-x: auto;
  padding: clamp(20px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mermaid-wrap .mermaid {
  display: flex;
  min-width: 1080px;
  margin: 0;
  justify-content: center;
}
.mermaid-wrap svg { max-width: none !important; }
.mermaid-wrap .nodeLabel { font-weight: 700; line-height: 1.4; }
.mermaid-wrap .edgePath path { stroke: #777770 !important; }

.detail-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0fr;
  gap: 0;
  align-items: start;
  transition: grid-template-columns .28s ease, gap .28s ease;
}
.detail-workspace.is-preview-open {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 42%);
  gap: 20px;
}
.cards-pane { min-width: 0; }

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-block {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: clamp(18px, 2vw, 24px);
  border-style: solid;
  border-width: 1px;
}
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 14px;
}
.step-meta span {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.04em;
}
.step-meta strong { font-size: 14px; letter-spacing: .06em; }
.step-block h3 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.step-block > p {
  margin: 8px 0 18px;
  color: #44443f;
  font-size: 14px;
  line-height: 1.55;
}
.step-output {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid currentColor;
  font-size: 14px;
}
.step-output span { color: #55554f; }
.step-output b { font-weight: 700; }
.preview-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .52);
  border: 1px solid currentColor;
  cursor: pointer;
  font-weight: 700;
}
.preview-button:hover,
.preview-button[aria-expanded="true"] { background: var(--surface); }
.preview-button:focus-visible,
.preview-close:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.step-block.is-active { box-shadow: inset 0 0 0 2px currentColor; }

.preview-panel {
  position: sticky;
  top: 20px;
  min-width: 0;
  max-height: calc(100vh - 40px);
  overflow: hidden auto;
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity .22s ease, transform .28s ease;
}
.detail-workspace.is-preview-open .preview-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.preview-panel-inner { padding: clamp(20px, 2.5vw, 32px); }
.preview-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.preview-owner {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid;
  font-weight: 750;
}
.preview-owner-hr { background: var(--hr-bg); border-color: var(--hr-border); }
.preview-owner-system { background: var(--system-bg); border-color: var(--system-border); }
.preview-owner-candidate { background: var(--candidate-bg); border-color: var(--candidate-border); }
.preview-header h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; }
.preview-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.preview-description { margin: 18px 0; color: var(--muted); }
.preview-canvas {
  min-height: 430px;
  padding: 18px;
  overflow: hidden;
  background-color: #f3f3ef;
  background-image: linear-gradient(#deded8 1px, transparent 1px), linear-gradient(90deg, #deded8 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
}
.preview-points { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.preview-points > strong { display: block; margin-bottom: 8px; }
.preview-points ul { margin: 0; padding-left: 20px; color: var(--muted); }
.preview-points li + li { margin-top: 5px; }

.wire-browser,
.wire-report,
.wire-review,
.wire-chat-layout,
.wire-result,
.wire-logic {
  width: 100%;
  min-height: 390px;
  color: #292925;
  background: #fff;
  border: 2px solid #2f2f2b;
  box-shadow: 6px 6px 0 rgba(25, 25, 25, .1);
}
.wire-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid #777;
}
.wire-browser-bar i { width: 8px; height: 8px; border: 1px solid; border-radius: 50%; }
.wire-browser-bar span { margin-left: 6px; font-weight: 700; }
.wire-app { display: grid; min-height: 352px; }
.wire-app-form { grid-template-columns: 70px 1fr; }
.wire-nav { display: flex; flex-direction: column; gap: 16px; padding: 16px 12px; color: white; background: #2d2d2a; }
.wire-nav span { height: 7px; background: #777; }
.wire-main { padding: 20px; }
.wire-title-row { display: flex; justify-content: space-between; margin-bottom: 18px; }
.wire-title-row em { font-style: normal; color: #6a6a64; }
.wire-label { display: block; margin-top: 12px; font-weight: 700; }
.wire-field { min-height: 38px; margin-top: 5px; padding: 8px 10px; color: #666; border: 1px solid #8d8d87; font-weight: 400; }
.wire-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wire-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100px; margin-top: 16px; border: 1px dashed #555; }
.wire-upload > span { font-size: 24px; }
.wire-upload small { color: #777; }

.wire-logic { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px 14px; }
.wire-source-stack { display: grid; gap: 8px; }
.wire-source-stack > div,
.wire-structured,
.wire-processor { padding: 12px; border: 1px solid #555; background: #fff; }
.wire-source-stack div { display: grid; grid-template-columns: 38px 1fr; gap: 8px; }
.wire-source-stack span { color: #666; }
.wire-processor { display: flex; flex-direction: column; align-items: center; min-width: 105px; padding: 24px 10px; background: var(--system-bg); border-color: var(--system-border); text-align: center; }
.wire-processor > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px; color: white; background: var(--system-border); border-radius: 50%; font-weight: 800; }
.wire-structured { display: grid; gap: 8px; min-width: 125px; }
.wire-structured span { padding: 5px; background: #eeeeea; }
.wire-arrow { font-size: 24px; }

.wire-dashboard { display: grid; grid-template-columns: 145px 28px 1fr; align-items: center; min-height: 352px; padding: 22px; }
.wire-db { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: end; min-height: 180px; padding: 70px 10px 18px; border: 2px solid #555; border-radius: 50% / 14%; text-align: center; }
.wire-db > span { position: absolute; left: 12px; right: 12px; height: 24px; border: 1px solid #777; border-radius: 50%; }
.wire-db > span:nth-child(1) { top: 30px; }
.wire-db > span:nth-child(2) { top: 52px; }
.wire-db > span:nth-child(3) { top: 74px; }
.wire-connector { text-align: center; font-size: 24px; }
.wire-metrics { display: grid; gap: 13px; }
.wire-metrics > b { margin-bottom: 4px; }
.wire-metrics label { display: grid; grid-template-columns: 88px 1fr 38px; gap: 6px; align-items: center; }
.wire-metrics label > span { height: 10px; background: #e2e2dd; }
.wire-metrics i { display: block; height: 100%; background: var(--system-border); }
.wire-metrics em { font-style: normal; }

.wire-report,
.wire-review,
.wire-result { padding: 20px; }
.wire-report-head,
.wire-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #777; }
.wire-report-head div,
.wire-result-head div { display: grid; }
.wire-report-head > span,
.wire-result-head > span { padding: 5px 8px; border: 1px solid; }
.wire-filter-row,
.wire-review-tabs { display: flex; gap: 7px; margin: 14px 0; }
.wire-filter-row > *,
.wire-review-tabs > * { padding: 6px 8px; border: 1px solid #999; }
.wire-filter-row b,
.wire-review-tabs b { background: #292925; color: white; }
.wire-scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wire-scenario-grid article { display: grid; gap: 6px; padding: 12px; border: 1px solid #777; }
.wire-scenario-grid p { min-height: 34px; margin: 0; color: #666; }
.wire-scenario-grid em { font-style: normal; padding-top: 7px; border-top: 1px solid #ccc; }
.wire-matrix { display: grid; grid-template-columns: 90px repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.wire-matrix span { height: 28px; background: #e4e4df; border: 1px solid #aaa; }

.wire-review-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.wire-document,
.wire-rubric { padding: 14px; border: 1px solid #777; }
.wire-document { display: flex; flex-direction: column; }
.wire-document > p { height: 8px; margin: 8px 0 0; background: #d7d7d2; }
.wire-document > p.short { width: 68%; }
.wire-document > div { display: grid; gap: 3px; margin-top: auto; padding-top: 16px; border-top: 1px solid #aaa; }
.wire-rubric { display: grid; gap: 9px; }
.wire-rubric label,
.wire-score-list label { display: flex; justify-content: space-between; gap: 10px; padding: 8px; background: #eeeeea; }
.wire-rubric em,
.wire-score-list em { font-style: normal; font-weight: 800; }

.wire-chat-layout { display: grid; grid-template-columns: .85fr 1.15fr; }
.wire-chat-doc { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-right: 1px solid #777; }
.wire-chat-doc > p { height: 7px; margin: 4px 0; background: #d5d5cf; }
.wire-change { display: grid; gap: 3px; margin-top: 8px; padding: 8px; border: 1px solid #aaa; }
.wire-chat { display: flex; flex-direction: column; gap: 10px; padding: 15px; }
.wire-chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #aaa; }
.wire-chat-head span { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--system-border); border-radius: 50%; font-weight: 800; }
.wire-chat p { max-width: 88%; margin: 0; padding: 8px 10px; border: 1px solid #aaa; }
.wire-chat .user { align-self: end; background: var(--hr-bg); border-color: var(--hr-border); }
.wire-chat-input { margin-top: auto; padding: 10px; color: #777; border: 1px solid #777; }
.wire-chat-input b { float: right; color: #222; }

.wire-workspace { display: grid; grid-template-columns: 150px 1fr; min-height: 352px; }
.wire-workspace aside { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #30302d; color: white; }
.wire-workspace aside > div { margin-top: auto; padding-top: 12px; border-top: 1px solid #777; }
.wire-workspace section { padding: 16px; }
.wire-tool-row { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #aaa; }
.wire-tool-row span { width: 20px; height: 20px; border: 1px solid; }
.wire-tool-row b { margin-left: auto; }
.wire-workspace h4 { margin: 16px 0 8px; }
.wire-workspace section > p { height: 7px; margin: 6px 0; background: #d5d5cf; }
.wire-work-box { height: 70px; border: 1px solid #999; }
.wire-workspace button { float: right; margin-top: 14px; padding: 8px 13px; color: white; background: var(--candidate-border); border: 0; }

.wire-result-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; padding-top: 18px; }
.wire-radar svg { display: block; width: 100%; color: #aaa; }
.wire-score-list { display: grid; gap: 6px; }
.wire-score-list p { margin: 0 0 5px; color: #666; }

.user-flow-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 42px);
  background-color: #fff;
  background-image: linear-gradient(#ecece7 1px, transparent 1px), linear-gradient(90deg, #ecece7 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--line);
}
.entry-eyebrow {
  display: inline-block;
  margin-top: 24px;
  padding: 5px 9px;
  color: #563014;
  background: var(--hr-bg);
  border: 1px solid var(--hr-border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
}
.user-flow-entry h2 {
  margin: 10px 0 5px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.04em;
}
.user-flow-entry p:last-child { max-width: 720px; margin: 0; color: var(--muted); }
.user-flow-entry > a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 220px;
  min-height: 52px;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 750;
}
.user-flow-entry > a:hover { color: var(--ink); background: #fff; }
.user-flow-entry > a:focus-visible { outline: 3px solid var(--system-border); outline-offset: 3px; }
.user-flow-entry svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.principle {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.principle > span { font-size: 14px; font-weight: 750; }
.principle h2 { margin: 0; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.35; }
.principle p { margin: 8px 0 0; color: var(--muted); }

.minutes-section {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.minutes-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.minutes-section summary::-webkit-details-marker { display: none; }
.minutes-section summary > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.minutes-section summary small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}
.minutes-section summary strong {
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -.035em;
}
.minutes-count {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 750;
  line-height: 1;
}
.minutes-count::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}
.minutes-section[open] .minutes-count::after { content: "−"; }
.minutes-section summary:focus-visible,
.meeting-link:focus-visible,
.reference-link:focus-visible,
.back-button:focus-visible {
  outline: 3px solid var(--system-border);
  outline-offset: 4px;
}
.minutes-list {
  padding: 0 0 20px 52px;
}
.meeting-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 24px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.meeting-link:last-child { border-bottom: 1px solid var(--line); }
.meeting-link:hover .meeting-link-copy strong { text-decoration: underline; text-underline-offset: 4px; }
.meeting-date { color: var(--muted); font-size: 14px; }
.meeting-link-copy { display: grid; gap: 3px; }
.meeting-link-copy strong { font-size: 17px; }
.meeting-link-copy > span { color: var(--muted); font-size: 14px; }
.meeting-link-arrow { font-size: 20px; }

.references-section {
  padding: 64px 0 0;
}
.references-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reference-link {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}
.reference-link:only-child {
  grid-column: 1 / -1;
}
.reference-link:hover {
  border-color: var(--ink);
}
.reference-link:hover > strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reference-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.reference-type {
  padding: 3px 7px;
  color: var(--ink);
  background: var(--system-bg);
  border: 1px solid var(--system-border);
  font-weight: 750;
}
.reference-link > strong {
  padding-right: 42px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.reference-summary {
  max-width: 70ch;
  color: var(--muted);
  font-size: 14px;
}
.reference-link-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-size: 24px;
}
.references-empty {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}

.meeting-view { max-width: 900px; }
.back-button {
  min-height: 44px;
  margin-bottom: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
}
.back-button:hover { color: var(--ink); }
.markdown-body {
  padding: clamp(28px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.3;
  letter-spacing: -.025em;
}
.markdown-body h1 {
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(30px, 5vw, 48px);
}
.markdown-body h2 { margin: 44px 0 14px; font-size: clamp(22px, 3vw, 28px); }
.markdown-body h3 { margin: 28px 0 10px; font-size: 19px; }
.markdown-body p,
.markdown-body li { color: #373733; }
.markdown-body ul,
.markdown-body ol { padding-left: 24px; }
.markdown-body li + li { margin-top: 7px; }
.markdown-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  color: var(--muted);
  border-left: 3px solid var(--line);
}
.markdown-body blockquote p { margin: 0; }
.markdown-body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
}
.markdown-body th { background: var(--paper); }
.markdown-body code {
  padding: 2px 5px;
  background: var(--paper);
  font-size: 1em;
}
.markdown-body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .detail-workspace,
  .detail-workspace.is-preview-open { display: block; }
  .preview-panel {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(580px, calc(100% - 40px));
    height: 100vh;
    max-height: none;
    border-block: 0;
    border-right: 0;
    transform: translateX(100%);
  }
  .detail-workspace.is-preview-open .preview-panel { transform: translateX(0); }
}

@media (max-width: 720px) {
  main { width: min(100% - 28px, 1240px); padding-top: 36px; }
  .page-header { padding-bottom: 32px; }
  .flow-section,
  .detail-section { padding: 48px 0; }
  .references-section { padding-top: 48px; }
  .section-heading { display: block; }
  .legend,
  .section-description { margin-top: 20px; }
  .step-list { grid-template-columns: 1fr; }
  .step-block { min-height: 220px; }
  .preview-panel { width: 100%; }
  .preview-panel-inner { padding: 18px 14px 28px; }
  .preview-canvas { min-height: 360px; padding: 10px; overflow-x: auto; }
  .wire-browser,
  .wire-report,
  .wire-review,
  .wire-chat-layout,
  .wire-result,
  .wire-logic { min-width: 480px; }
  .user-flow-entry { grid-template-columns: 1fr; align-items: start; }
  .user-flow-entry > a { width: 100%; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .minutes-section summary { min-height: 80px; }
  .minutes-list { padding-left: 0; }
  .meeting-link { grid-template-columns: 1fr 20px; gap: 8px 12px; }
  .meeting-date { grid-column: 1 / -1; }
  .meeting-link-copy > span { display: none; }
  .references-list { grid-template-columns: 1fr; }
  .reference-link { min-height: 200px; padding: 20px; }
  .meeting-view { padding-top: 24px; }
  .back-button { margin-bottom: 20px; }
  .markdown-body { padding: 24px 20px; }
  .markdown-body table { display: block; overflow-x: auto; }
}

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