:root {
  --background: #f7f9fc;
  --text: #0b0d12;
  --muted: #667085;
  --line: rgba(11, 13, 18, 0.12);
  --blue: #0a6cff;
  --blue-strong: #0057d9;
  --cyan: #0f9f8f;
  --cyan-strong: #087f73;
  --pink: #d92d72;
  --amber: #c46a00;
  --amber-strong: #a65300;
  --node-stroke: rgba(11, 13, 18, 0.13);
  --neutral-edge: rgba(86, 96, 112, 0.5);
  --neutral-edge-label: #566070;
  --method-fill: #f7fbff;
  --method-stroke: rgba(10, 108, 255, 0.2);
  --architecture-fill: #f5fffb;
  --architecture-stroke: rgba(15, 159, 143, 0.24);
  --test-fill: #fff8ef;
  --test-stroke: rgba(196, 106, 0, 0.26);
  --shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 18px 48px rgba(15, 23, 42, 0.08),
    0 46px 92px rgba(15, 23, 42, 0.06);
  --shadow-lifted:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 24px 58px rgba(15, 23, 42, 0.11),
    0 58px 112px rgba(15, 23, 42, 0.08);
  --question-sheet-gap: 36px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(142deg, rgba(10, 108, 255, 0.1), transparent 34%),
    linear-gradient(226deg, rgba(217, 45, 114, 0.075), transparent 38%),
    linear-gradient(18deg, rgba(15, 159, 143, 0.1), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 56%, #eef8fb 100%);
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.58);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
  transform: translateY(-160%);
  border-radius: 999px;
  padding: 10px 14px;
  background: #0b0d12;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

body.flow-mode .skip-link {
  display: none;
}

body.flow-mode {
  height: 100dvh;
  overflow: hidden;
}

body.flow-mode.result-mode {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.design-change-mode .skip-link {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(960px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  display: grid;
  justify-items: start;
  align-content: center;
  gap: clamp(24px, 4.2vw, 42px);
}

.home-view {
  width: min(900px, 100%);
  display: grid;
  gap: clamp(24px, 4.2vw, 42px);
}

.site-privacy-notice {
  width: min(900px, 100%);
  color: rgba(86, 96, 112, 0.88);
  font-size: 0.78rem;
  line-height: 1.75;
}

.site-privacy-notice p {
  max-width: 78ch;
  margin: 0;
}

body.flow-mode .site-privacy-notice,
body.design-change-mode .site-privacy-notice {
  display: none;
}

#home-title {
  width: min(900px, 100%);
  margin: 0;
  font-size: 4.86rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.98;
  text-align: left;
  text-wrap: balance;
}

#home-title span {
  display: inline;
}

#home-title span + span::before {
  content: " ";
}

.tools {
  width: min(900px, 100%);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-grid > li {
  min-width: 0;
  display: grid;
}

.tool-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.16;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(2.8em, auto);
  place-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: clamp(24px, 2.4vw, 28px);
  padding: clamp(30px, 3.8vw, 48px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86) 58%, rgba(248, 251, 255, 0.78)),
    radial-gradient(ellipse at 64% 22%, rgba(37, 99, 235, 0.13), transparent 48%),
    radial-gradient(ellipse at 28% 84%, rgba(14, 165, 164, 0.1), transparent 52%);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.tool-button::before {
  position: absolute;
  top: -26%;
  right: -24%;
  z-index: -2;
  width: 76%;
  aspect-ratio: 1;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), rgba(219, 39, 119, 0.07) 42%, transparent 68%);
  opacity: 0.78;
}

.tool-button::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.035), transparent 34%);
  pointer-events: none;
}

.tool-button:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 13, 18, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.91) 58%, rgba(249, 252, 255, 0.82)),
    radial-gradient(ellipse at 64% 22%, rgba(37, 99, 235, 0.16), transparent 48%),
    radial-gradient(ellipse at 28% 84%, rgba(14, 165, 164, 0.12), transparent 52%);
  box-shadow: var(--shadow-lifted);
}

.tool-button-shift {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.85) 58%, rgba(248, 251, 255, 0.78)),
    radial-gradient(ellipse at 66% 22%, rgba(217, 119, 6, 0.14), transparent 48%),
    radial-gradient(ellipse at 28% 84%, rgba(14, 165, 164, 0.09), transparent 52%);
}

.tool-button-shift:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.91) 58%, rgba(249, 252, 255, 0.82)),
    radial-gradient(ellipse at 66% 22%, rgba(217, 119, 6, 0.16), transparent 48%),
    radial-gradient(ellipse at 28% 84%, rgba(14, 165, 164, 0.11), transparent 52%);
}

.tool-button:active {
  transform: translateY(-1px);
}

.tool-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 18px 46px rgba(15, 23, 42, 0.055);
  opacity: 0.72;
}

.tool-button:disabled::before {
  background: radial-gradient(circle, rgba(112, 121, 138, 0.14), transparent 68%);
}

.tool-button:disabled:hover {
  transform: none;
  border-color: rgba(15, 23, 42, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 68% 24%, rgba(112, 121, 138, 0.08), transparent 42%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 18px 46px rgba(15, 23, 42, 0.055);
}

.tool-visual {
  position: relative;
  display: grid;
  place-items: center;
  place-self: center;
  z-index: 1;
  width: clamp(104px, 11vw, 132px);
  aspect-ratio: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
}

.tool-button-shift .tool-visual {
  color: var(--amber);
}

.tool-icon {
  width: 80%;
  height: 80%;
  display: block;
  filter:
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.1))
    drop-shadow(0 2px 7px color-mix(in srgb, currentColor 24%, transparent));
}

.tool-button:disabled .tool-icon {
  opacity: 0.68;
}

.tool-name {
  max-width: 9em;
  display: block;
  z-index: 1;
  justify-self: center;
  align-self: center;
  min-height: 3em;
  font-size: clamp(1.24rem, 1.75vw, 1.56rem);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

body.design-change-mode .app-shell {
  width: min(1180px, 100%);
  align-content: start;
  justify-items: stretch;
}

.design-change-view {
  width: 100%;
  display: grid;
  gap: clamp(20px, 2.8vw, 34px);
  padding: clamp(6px, 1.4vw, 18px) 0 clamp(34px, 5vw, 64px);
}

body.design-change-mode .design-change-home-button {
  position: static;
  justify-self: start;
  inset: auto;
}

.design-change-header {
  width: min(880px, 100%);
  display: grid;
  gap: 12px;
}

.design-change-kicker,
.design-change-step-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.design-change-kicker {
  text-transform: uppercase;
}

.design-change-header h2 {
  margin: 0;
  font-size: clamp(2.42rem, 5.2vw, 4.48rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
}

.design-change-header p:last-child {
  max-width: 56rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.97rem, 1.22vw, 1.08rem);
  line-height: 1.75;
}

.design-change-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.design-change-symptoms,
.design-change-lanes {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: clamp(18px, 2.3vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    radial-gradient(ellipse at 82% 10%, rgba(10, 108, 255, 0.08), transparent 42%),
    radial-gradient(ellipse at 8% 100%, rgba(15, 159, 143, 0.07), transparent 46%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 52px rgba(15, 23, 42, 0.075);
}

.design-change-lanes {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86)),
    radial-gradient(ellipse at 86% 0%, rgba(217, 45, 114, 0.08), transparent 40%),
    radial-gradient(ellipse at 6% 100%, rgba(196, 106, 0, 0.07), transparent 46%);
}

.design-change-section-head {
  display: grid;
  gap: 8px;
}

.design-change-step-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.design-change-step-label span {
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.1);
  color: var(--blue-strong);
  font-size: 0.72rem;
}

.design-change-section-head h3 {
  margin: 0;
  font-size: clamp(1.24rem, 1.7vw, 1.62rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.16;
}

.design-change-section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.design-change-symptom-grid,
.design-change-symptom-group,
.design-change-symptom-list {
  display: grid;
}

.design-change-symptom-grid {
  gap: 16px;
}

.design-change-symptom-group {
  gap: 9px;
}

.design-change-symptom-group h4 {
  margin: 0;
  color: rgba(11, 13, 18, 0.72);
  font-size: 0.86rem;
  font-weight: 840;
  letter-spacing: 0.03em;
}

.design-change-symptom-list {
  gap: 10px;
}

.design-change-symptom-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 11px;
  padding: 15px 18px 15px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.design-change-symptom-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 108, 255, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 12px 28px rgba(15, 23, 42, 0.06);
}

.design-change-symptom-card:has(input:checked) {
  border-color: rgba(10, 108, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9)),
    radial-gradient(ellipse at 94% 0%, rgba(10, 108, 255, 0.11), transparent 44%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 34px rgba(10, 108, 255, 0.08);
}

.design-change-symptom-card input {
  width: 1.14rem;
  height: 1.14rem;
  margin: 0.2rem 0 0;
  accent-color: var(--blue);
}

.design-change-symptom-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.design-change-symptom-text strong {
  max-width: 42ch;
  font-size: 0.96rem;
  font-weight: 820;
  line-height: 1.42;
  text-wrap: pretty;
}

.design-change-symptom-text span {
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.design-change-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-selected-chip,
.design-change-lane-status {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 13, 18, 0.72);
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1;
}

.design-change-selected-label {
  color: rgba(11, 13, 18, 0.54);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
}

.design-change-selected-chip {
  color: var(--text);
  background: rgba(10, 108, 255, 0.08);
}

.design-change-lane-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-lane-item,
.design-change-lane-empty {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.design-change-lane-empty {
  padding: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.design-change-lane-disclosure {
  display: grid;
  gap: 8px;
}

.design-change-lane-disclosure-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(11, 13, 18, 0.7);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.design-change-lane-disclosure-button:hover {
  background: rgba(255, 255, 255, 0.82);
}

.design-change-lane-disclosure-button:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.28);
  outline-offset: 2px;
}

.design-change-lane-disclosure-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.design-change-lane-disclosure-button[aria-expanded="true"] .design-change-lane-disclosure-icon {
  transform: rotate(90deg);
}

.design-change-lane-other-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-change-lane-other-list[hidden] {
  display: none;
}

.design-change-lane-button,
.design-change-lane-static {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 0;
  border-radius: inherit;
  padding: 14px 15px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.design-change-lane-button {
  cursor: pointer;
}

.design-change-lane-button:hover {
  background: rgba(255, 255, 255, 0.56);
}

.design-change-lane-button:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.34);
  outline-offset: -3px;
}

.design-change-lane-item.is-actionable {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.design-change-lane-item.is-static .design-change-lane-static {
  padding-block: 10px;
}

.design-change-lane-item.is-selected {
  border-color: rgba(10, 108, 255, 0.46);
  box-shadow:
    0 0 0 1px rgba(10, 108, 255, 0.12) inset,
    0 12px 30px rgba(10, 108, 255, 0.09);
}

.design-change-lane-item.is-primary {
  border-color: rgba(10, 108, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.88)),
    radial-gradient(ellipse at 100% 0%, rgba(10, 108, 255, 0.1), transparent 38%);
}

.design-change-lane-item.is-secondary {
  border-color: rgba(196, 106, 0, 0.2);
}

.design-change-lane-item.is-unmatched {
  opacity: 0.62;
}

.design-change-lane-item.is-primary .design-change-lane-status {
  border-color: rgba(10, 108, 255, 0.24);
  background: rgba(10, 108, 255, 0.1);
  color: var(--blue-strong);
}

.design-change-lane-item.is-secondary .design-change-lane-status {
  border-color: rgba(196, 106, 0, 0.2);
  background: rgba(196, 106, 0, 0.09);
  color: var(--amber-strong);
}

.design-change-lane-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.design-change-lane-body h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 840;
  line-height: 1.35;
}

.design-change-lane-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.design-change-lane-body .design-change-lane-reason {
  color: rgba(11, 13, 18, 0.68);
}

.design-change-lane-body .design-change-lane-term-note {
  border-left: 2px solid rgba(10, 108, 255, 0.22);
  padding-left: 10px;
  color: rgba(11, 13, 18, 0.66);
  font-size: 0.82rem;
  line-height: 1.58;
}

.design-change-lane-item.is-unmatched .design-change-lane-body {
  gap: 3px;
}

.design-change-lane-item.is-unmatched .design-change-lane-body h4 {
  font-size: 0.9rem;
  font-weight: 780;
}

.design-change-lane-item.is-unmatched .design-change-lane-body .design-change-lane-reason {
  font-size: 0.8rem;
}

.design-change-lane-entry {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  transition:
    opacity 240ms cubic-bezier(0.2, 0, 0, 1),
    transform 240ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-lane-entry[hidden] {
  display: none;
}

.design-change-lane-entry-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(10, 108, 255, 0.16);
  border-radius: 22px;
  padding: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.88)),
    radial-gradient(ellipse at 100% 0%, rgba(10, 108, 255, 0.12), transparent 44%),
    radial-gradient(ellipse at 0% 100%, rgba(15, 159, 143, 0.09), transparent 46%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 38px rgba(15, 23, 42, 0.07);
}

.design-change-lane-entry-category {
  justify-self: start;
  margin: 0;
  border: 1px solid rgba(10, 108, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(10, 108, 255, 0.08);
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.design-change-lane-entry-card h4 {
  margin: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.34rem);
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1.32;
}

.design-change-lane-entry-card > p:not(.design-change-lane-entry-category) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.design-change-lane-answer-form {
  margin: 2px 0 0;
}

.design-change-lane-answer-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.design-change-lane-answer-form legend {
  margin: 0;
  padding: 0;
  color: rgba(11, 13, 18, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.design-change-lane-options {
  display: grid;
  gap: 9px;
}

.design-change-lane-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 17px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 13, 18, 0.88);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.design-change-lane-option:hover {
  border-color: rgba(10, 108, 255, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(15, 23, 42, 0.05);
}

.design-change-lane-option:has(input:checked) {
  border-color: rgba(10, 108, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.92)),
    radial-gradient(ellipse at 100% 0%, rgba(10, 108, 255, 0.12), transparent 48%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 16px 34px rgba(10, 108, 255, 0.09);
}

.design-change-lane-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue-strong);
}

.design-change-lane-option:has(input:focus-visible) {
  outline: 3px solid rgba(10, 108, 255, 0.32);
  outline-offset: 3px;
}

.design-change-lane-option-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.design-change-lane-option-text strong {
  font-size: 0.94rem;
  font-weight: 830;
  line-height: 1.35;
}

.design-change-lane-option-text span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.58;
}

.design-change-lane-checklist-group {
  display: grid;
  gap: 9px;
  margin-top: 3px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 12px;
}

.design-change-lane-checklist-group.is-fixed-prerequisite {
  margin-top: 8px;
  border-top: 0;
  padding-top: 0;
}

.design-change-lane-checklist-title,
.design-change-lane-checklist-help {
  margin: 0;
}

.design-change-lane-checklist-title {
  color: rgba(11, 13, 18, 0.84);
  font-size: 0.86rem;
  font-weight: 840;
  line-height: 1.35;
}

.design-change-lane-checklist-help {
  color: rgba(11, 13, 18, 0.58);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
}

.design-change-lane-confirm[hidden] {
  display: none;
}

.design-change-lane-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px 10px 10px 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 8px 20px rgba(15, 23, 42, 0.035);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-lane-confirm.is-actionable {
  border-color: rgba(10, 108, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.74)),
    rgba(255, 255, 255, 0.66);
}

.design-change-lane-confirm.is-stale {
  border-color: rgba(196, 106, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 239, 0.72)),
    rgba(255, 255, 255, 0.66);
}

.design-change-lane-confirm-text {
  display: contents;
}

.design-change-lane-confirm-status,
.design-change-lane-confirm-copy {
  margin: 0;
}

.design-change-lane-confirm-status {
  grid-column: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(10, 108, 255, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(10, 108, 255, 0.06);
  color: rgba(10, 108, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1;
}

.design-change-lane-confirm-status.is-stale {
  border-color: rgba(196, 106, 0, 0.18);
  background: rgba(196, 106, 0, 0.08);
  color: rgba(181, 98, 0, 0.94);
}

.design-change-lane-confirm-copy {
  grid-column: 2;
  min-width: 0;
  color: rgba(11, 13, 18, 0.62);
  font-size: 0.84rem;
  font-weight: 660;
  line-height: 1.48;
}

.design-change-lane-confirm-button {
  grid-column: 3;
  justify-self: end;
  min-height: 34px;
  border: 1px solid rgba(10, 108, 255, 0.16);
  border-radius: 999px;
  padding: 9px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.92)),
    rgba(255, 255, 255, 0.88);
  color: var(--blue-strong);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 24px rgba(10, 108, 255, 0.08);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.design-change-lane-confirm-button:hover {
  border-color: rgba(10, 108, 255, 0.28);
  color: rgba(0, 80, 180, 0.96);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.94) inset,
    0 14px 30px rgba(10, 108, 255, 0.12);
}

.design-change-lane-confirm-button:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.design-change-lane-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.design-change-lane-detail {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.design-change-lane-detail:last-child {
  grid-column: 1 / -1;
}

.design-change-lane-detail.is-maintain {
  background: rgba(245, 250, 255, 0.76);
}

.design-change-lane-detail.is-change {
  background: rgba(248, 250, 245, 0.76);
}

.design-change-lane-detail h5 {
  margin: 0;
  color: rgba(11, 13, 18, 0.78);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.35;
}

.design-change-lane-detail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-change-lane-detail li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.design-change-lane-detail li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.38);
  content: "";
}

.design-change-lane-entry-back {
  justify-self: start;
  margin-top: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(11, 13, 18, 0.78);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.design-change-lane-entry-back:hover {
  border-color: rgba(10, 108, 255, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.design-change-lane-entry-back:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.design-change-result[hidden],
.design-change-migration[hidden],
.design-change-result-block[hidden],
.design-change-result-evidence[hidden] {
  display: none;
}

.design-change-result,
.design-change-migration {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  transition:
    opacity 240ms cubic-bezier(0.2, 0, 0, 1),
    transform 240ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-migration {
  justify-self: center;
  width: min(1180px, 100%);
  gap: clamp(18px, 2.2vw, 26px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
}

.design-change-migration-head {
  max-width: 760px;
}

.design-change-result-shell {
  display: grid;
  gap: 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)),
    radial-gradient(ellipse at 100% 0%, rgba(10, 108, 255, 0.1), transparent 46%),
    radial-gradient(ellipse at 0% 100%, rgba(255, 183, 77, 0.1), transparent 48%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 42px rgba(15, 23, 42, 0.06);
}

.design-change-result-hero {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(10, 108, 255, 0.14);
  border-radius: 21px;
  padding: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(10, 108, 255, 0.14), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255, 183, 77, 0.12), transparent 42%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 18px 32px rgba(10, 108, 255, 0.07);
}

.design-change-result-kicker {
  margin: 0;
  color: rgba(10, 108, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 860;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.design-change-result-hero h4 {
  margin: 0;
  color: rgba(11, 13, 18, 0.92);
  font-size: clamp(1.08rem, 1.02rem + 0.28vw, 1.28rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.28;
}

.design-change-result-hero p:last-child {
  max-width: 68ch;
  margin: 0;
  color: rgba(11, 13, 18, 0.72);
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.6;
}

.design-change-result-evidence {
  display: grid;
  gap: 9px;
  min-width: 0;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.design-change-result-evidence h4 {
  margin: 0;
  color: rgba(11, 13, 18, 0.64);
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.01em;
  line-height: 1.32;
}

.design-change-result-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-change-result-evidence-list li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(10, 108, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(11, 13, 18, 0.78);
  font-size: 0.77rem;
  font-weight: 780;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.design-change-result-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.design-change-result-context section {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.design-change-result-context h4,
.design-change-result-block h4 {
  margin: 0;
  color: rgba(11, 13, 18, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.design-change-result-context p {
  margin: 0;
  color: rgba(11, 13, 18, 0.82);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.55;
}

.design-change-result-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.design-change-result-chip,
.design-change-result-empty {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 13, 18, 0.76);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.2;
}

.design-change-result-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.design-change-result-block {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.68);
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-result-block.is-maintain {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.84));
}

.design-change-result-block.is-change {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 244, 0.84));
}

.design-change-result-block[data-design-change-result-list="changeConditions"] {
  border-color: rgba(34, 197, 94, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 251, 245, 0.86));
}

.design-change-result-block[data-design-change-result-list="rejectedChanges"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 255, 0.84));
}

.design-change-result-block[data-design-change-result-list="migrationSteps"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.84));
}

.design-change-result-block[data-design-change-result-list="reconsiderationConditions"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.88));
}

.design-change-result-block.is-unresolved {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 240, 0.86));
}

.design-change-result-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-change-result-block li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.design-change-result-block li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.42);
  content: "";
}

.design-change-result-actions[hidden],
.design-change-result-next[hidden],
.design-change-memo-copy[hidden],
.design-change-result-next-button[hidden] {
  display: none;
}

.design-change-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
}

.design-change-result-actions.has-primary-action {
  grid-template-columns: minmax(0, 1fr);
}

.design-change-action-label,
.design-change-result-next p,
.design-change-memo-copy p {
  margin: 0;
}

.design-change-action-label {
  color: rgba(11, 13, 18, 0.52);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.3;
}

.design-change-memo-copy,
.design-change-result-next {
  display: grid;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.design-change-memo-copy {
  grid-template-columns: minmax(0, 1fr) auto;
}

.design-change-result-next {
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid rgba(10, 108, 255, 0.12);
  padding-top: 12px;
}

.design-change-result-next-copy,
.design-change-memo-copy-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.design-change-result-next-copy .design-change-action-label {
  color: rgba(10, 108, 255, 0.86);
}

.design-change-result-next p:not(.design-change-action-label) {
  color: rgba(11, 13, 18, 0.72);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.55;
}

.design-change-result-term {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.62);
}

.design-change-result-term[hidden] {
  display: none;
}

.design-change-result-term h4,
.design-change-result-term p {
  margin: 0;
}

.design-change-result-term h4 {
  color: rgba(11, 13, 18, 0.5);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.3;
}

.design-change-result-term-name {
  color: rgba(11, 13, 18, 0.86);
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.42;
}

.design-change-result-term p:not(.design-change-result-term-name) {
  color: rgba(11, 13, 18, 0.68);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.58;
}

.design-change-memo-copy-text p:not(.design-change-action-label) {
  color: rgba(11, 13, 18, 0.54);
  font-size: 0.8rem;
  line-height: 1.5;
}

.design-change-memo-copy-button {
  justify-self: end;
  min-height: 40px;
  border: 1px solid rgba(10, 108, 255, 0.18);
  border-radius: 999px;
  padding: 10px 15px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(226, 239, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  color: rgba(0, 80, 180, 0.92);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 840;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 22px rgba(10, 108, 255, 0.08);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.design-change-memo-copy-button:hover {
  border-color: rgba(10, 108, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(230, 241, 255, 0.98), rgba(213, 232, 255, 0.82)),
    rgba(255, 255, 255, 0.84);
  color: rgba(0, 67, 160, 0.98);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 14px 30px rgba(10, 108, 255, 0.14);
}

.design-change-result-next-button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid rgba(10, 108, 255, 0.18);
  border-radius: 999px;
  padding: 11px 16px;
  background:
    linear-gradient(180deg, rgba(10, 108, 255, 0.96), rgba(0, 91, 220, 0.94)),
    var(--blue-strong);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 860;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 28px rgba(10, 108, 255, 0.18);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.design-change-result-next-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 18px 34px rgba(10, 108, 255, 0.22);
}

.design-change-memo-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.design-change-memo-copy-button:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.design-change-result-next-button:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.32);
  outline-offset: 3px;
}

.design-change-memo-copy-feedback {
  grid-column: 1 / -1;
  min-height: 1.3em;
  color: rgba(11, 13, 18, 0.58);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.design-change-memo-copy-feedback.is-success {
  color: rgba(21, 128, 61, 0.9);
}

.design-change-memo-copy-feedback.is-error {
  color: rgba(185, 28, 28, 0.88);
}

.design-change-migration-content {
  min-width: 0;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 26px;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.78)),
    radial-gradient(ellipse at 100% 0%, rgba(20, 184, 166, 0.1), transparent 42%),
    radial-gradient(ellipse at 0% 100%, rgba(10, 108, 255, 0.08), transparent 46%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 18px 42px rgba(15, 23, 42, 0.045);
}

.design-change-migration-summary,
.design-change-migration-content .code-sample-discovery,
.design-change-migration-content .code-sample-language-panel,
.design-change-migration-content .code-sample-orientation-card,
.design-change-migration-content .code-sample-implementation-plan,
.design-change-migration-content .code-sample-code-readout,
.design-change-migration-content .design-change-implementation-questions,
.design-change-migration-content .code-sample-operational-decisions {
  box-shadow: none;
}

.design-change-migration-outcome {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(12, 118, 110, 0.09);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(240, 253, 250, 0.56), rgba(255, 255, 255, 0.48));
}

.design-change-migration-outcome h4 {
  margin: 0;
  color: #121a2a;
  font-size: 0.92rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.design-change-migration-outcome p:not(.code-sample-section-label) {
  margin: 0;
  color: #344155;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
}

.design-change-migration-notice {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 14px;
  padding: 10px 11px;
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.78), rgba(255, 255, 255, 0.58));
}

.design-change-migration-notice p {
  margin: 0;
}

.design-change-migration-notice .design-change-migration-notice-label {
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0.04em;
}

.design-change-migration-notice p:not(.design-change-migration-notice-label) {
  color: #4b3a2a;
  font-size: 0.74rem;
  font-weight: 680;
  line-height: 1.58;
}

.design-change-migration-reference {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: clamp(13px, 1.8vw, 16px);
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.08), transparent 42%);
}

.design-change-migration-reference p,
.design-change-migration-reference h3 {
  margin: 0;
}

.design-change-migration-reference-label {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.04em;
}

.design-change-migration-reference h3 {
  color: #162033;
  font-size: 0.92rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.3;
}

.design-change-migration-reference p:not(.design-change-migration-reference-label) {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
}

.design-change-migration-code-block .code-sample-file-path {
  overflow-wrap: anywhere;
}

.design-change-implementation-questions {
  background:
    radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(248, 252, 255, 0.42));
}

.design-change-implementation-question-listing {
  display: grid;
  gap: 10px;
}

.design-change-implementation-question-card {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.44));
  overflow: clip;
}

.design-change-implementation-question-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
  border: 0;
  padding: 13px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.design-change-implementation-question-toggle .code-sample-step-number {
  grid-row: span 2;
}

.design-change-implementation-question-toggle strong {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.design-change-implementation-question-toggle small {
  min-width: 0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.56;
}

.design-change-implementation-question-toggle-icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(30, 41, 59, 0.78);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transform: rotate(0deg);
  transform-origin: center;
  transition:
    transform 180ms cubic-bezier(0.2, 0, 0, 1),
    border-color 180ms cubic-bezier(0.2, 0, 0, 1),
    color 180ms cubic-bezier(0.2, 0, 0, 1),
    background 180ms cubic-bezier(0.2, 0, 0, 1);
}

.design-change-implementation-question-toggle:hover {
  background: rgba(255, 255, 255, 0.44);
}

.design-change-implementation-question-toggle:hover .design-change-implementation-question-toggle-icon {
  border-color: rgba(10, 108, 255, 0.22);
  background: rgba(255, 255, 255, 0.86);
}

.design-change-implementation-question-toggle:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.28);
  outline-offset: -3px;
}

.design-change-implementation-question-card.is-open .design-change-implementation-question-toggle-icon {
  border-color: rgba(10, 108, 255, 0.24);
  background: rgba(10, 108, 255, 0.08);
  color: rgba(10, 108, 255, 0.86);
  transform: rotate(90deg);
}

.design-change-implementation-question-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 240ms cubic-bezier(0.2, 0, 0, 1),
    opacity 200ms cubic-bezier(0.2, 0, 0, 1);
  opacity: 0;
}

.design-change-implementation-question-card.is-open .design-change-implementation-question-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.design-change-implementation-question-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 0 13px;
}

.design-change-implementation-question-card.is-open .design-change-implementation-question-inner {
  padding-bottom: 13px;
}

.design-change-implementation-question-block,
.design-change-implementation-question-code {
  display: grid;
  gap: 6px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.045);
}

.design-change-implementation-question-block h5,
.design-change-implementation-question-code h5 {
  margin: 0;
  color: #0c766e;
  font-size: 0.66rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.25;
}

.design-change-implementation-question-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-change-implementation-question-list li {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.52;
}

.design-change-implementation-question-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(12, 118, 110, 0.58);
}

.design-change-selected.is-entering,
.design-change-lane-list.is-entering,
.design-change-lane-entry.is-entering,
.design-change-lane-confirm.is-entering,
.design-change-result.is-entering,
.design-change-migration.is-entering,
.design-change-result-block.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.design-change-selected.is-leaving,
.design-change-lane-entry.is-leaving,
.design-change-lane-confirm.is-leaving,
.design-change-result.is-leaving,
.design-change-migration.is-leaving,
.design-change-result-block.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.design-change-selected.is-refreshing,
.design-change-lane-list.is-refreshing,
.design-change-lane-entry.is-refreshing,
.design-change-lane-confirm.is-refreshing,
.design-change-result.is-refreshing,
.design-change-migration.is-refreshing,
.design-change-result-block.is-refreshing,
.design-change-memo-copy-feedback.is-refreshing {
  animation: design-change-content-refresh 220ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes design-change-content-refresh {
  0% {
    opacity: 0.72;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-mode .app-shell {
  width: min(1180px, 100%);
  height: 100dvh;
  min-height: 0;
  align-content: start;
  justify-items: stretch;
  gap: 0;
}

body.result-mode .app-shell {
  height: auto;
  min-height: 100vh;
  gap: clamp(22px, 3.2vw, 34px);
  padding-bottom: max(56px, env(safe-area-inset-bottom));
}

.flow-view {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

body.result-mode .flow-view {
  height: min(100dvh, 860px);
  min-height: min(760px, 100dvh);
}

.flow-canvas {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding: 112px 48px 360px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86)),
    radial-gradient(ellipse at 18% 10%, rgba(10, 108, 255, 0.07), transparent 50%),
    radial-gradient(ellipse at 88% 88%, rgba(15, 159, 143, 0.08), transparent 54%),
    radial-gradient(ellipse at 72% 22%, rgba(217, 45, 114, 0.035), transparent 44%),
    linear-gradient(rgba(15, 23, 42, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.032) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 42px 42px, 42px 42px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.flow-canvas:focus-visible {
  outline: 0;
  box-shadow:
    var(--shadow),
    0 0 0 3px rgba(10, 108, 255, 0.24);
}

.flow-canvas svg {
  width: 100%;
  min-width: 980px;
  height: auto;
  display: block;
}

.icon-button {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  color: #111827;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.11);
}

.choice-popover {
  position: fixed;
  top: var(--choice-popover-top, calc(100vh - 220px));
  right: auto;
  bottom: auto;
  left: var(--choice-popover-left, 50%);
  z-index: 3;
  width: min(720px, calc(100vw - 44px));
  isolation: isolate;
  transform: translateX(var(--choice-popover-offset-x, 0px));
  will-change: opacity, transform, filter;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.choice-popover::before {
  position: absolute;
  inset: -28px -26px -34px;
  z-index: -2;
  pointer-events: none;
  content: "";
  border-radius: 42px;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 255, 255, 0.8), transparent 48%),
    radial-gradient(ellipse at 50% 78%, rgba(13, 24, 40, 0.13), transparent 64%),
    radial-gradient(ellipse at 50% 100%, rgba(10, 108, 255, 0.14), transparent 66%),
    radial-gradient(ellipse at 82% 100%, rgba(15, 159, 143, 0.1), transparent 58%);
  filter: blur(13px);
  opacity: 0.94;
}

.choice-popover::after {
  position: absolute;
  inset: -7px;
  z-index: -1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.2)),
    radial-gradient(ellipse at 50% 100%, rgba(10, 108, 255, 0.08), transparent 68%);
  box-shadow:
    0 24px 74px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.choice-anchor {
  position: fixed;
  top: var(--anchor-y, 0);
  left: var(--anchor-x, 50%);
  z-index: 2;
  width: 1px;
  height: var(--anchor-height, 0);
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    top 180ms cubic-bezier(0.2, 0, 0, 1),
    height 180ms cubic-bezier(0.2, 0, 0, 1);
}

.choice-anchor-line {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(10, 108, 255, 0),
      rgba(10, 108, 255, 0.16) 18%,
      rgba(255, 255, 255, 0.58) 48%,
      rgba(10, 108, 255, 0.2) 74%,
      rgba(10, 108, 255, 0)
    );
  box-shadow:
    0 0 10px rgba(10, 108, 255, 0.16),
    0 0 28px rgba(10, 108, 255, 0.08);
  opacity: 0.72;
}

.choice-anchor-line::before {
  position: absolute;
  inset: 0 -16px;
  content: "";
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10, 108, 255, 0.13), transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.38), transparent 42%);
  filter: blur(12px);
}

.choice-anchor-node {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(10, 108, 255, 0.28),
    0 0 14px rgba(10, 108, 255, 0.28);
}

.choice-anchor.is-sheet-above .choice-anchor-node {
  top: auto;
  bottom: -4px;
}

.choice-popover.is-transitioning {
  opacity: 0.76;
  filter: saturate(0.96);
  pointer-events: none;
  transform: translateX(var(--choice-popover-offset-x, 0px)) translateY(7px);
}

.choice-popover.is-initial-reveal {
  animation: choice-popover-appear 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.choice-popover.is-question-entering .choice-popover-surface {
  animation: question-surface-arrive 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.choice-popover.is-terminal .choice-popover-surface {
  overflow: hidden;
}

.choice-popover-surface {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: var(--choice-popover-max-height, calc(100vh - 68px));
  scrollbar-gutter: stable;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
    radial-gradient(ellipse at 16% 0%, rgba(10, 108, 255, 0.14), transparent 56%),
    radial-gradient(ellipse at 96% 94%, rgba(15, 159, 143, 0.11), transparent 58%),
    radial-gradient(ellipse at 58% 116%, rgba(246, 183, 49, 0.08), transparent 62%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 -1px 0 rgba(255, 255, 255, 0.56) inset,
    0 34px 92px rgba(15, 23, 42, 0.27),
    0 14px 34px rgba(10, 108, 255, 0.09),
    0 0 0 1px rgba(15, 23, 42, 0.11);
  -webkit-backdrop-filter: blur(38px) saturate(1.72) contrast(1.07);
  backdrop-filter: blur(38px) saturate(1.72) contrast(1.07);
  transform: translateZ(0);
  display: grid;
  grid-template-columns: minmax(230px, 286px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.choice-popover-surface::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  content: "";
  border-radius: 29px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08) 43%, rgba(255, 255, 255, 0.22)),
    radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, 0.4), transparent 42%),
    radial-gradient(ellipse at 92% 100%, rgba(255, 255, 255, 0.18), transparent 48%);
}

.choice-popover-glint {
  position: absolute;
  top: -34%;
  left: 9%;
  z-index: 0;
  width: 76%;
  height: clamp(88px, 36%, 220px);
  content: "";
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.38), transparent 66%);
  transform: rotate(-10deg);
}

.choice-popover-refraction {
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  border-radius: 24px;
  background:
    linear-gradient(112deg, transparent 0 32%, rgba(255, 255, 255, 0.28) 46%, transparent 58%),
    radial-gradient(ellipse at 0% 18%, rgba(10, 108, 255, 0.08), transparent 42%),
    radial-gradient(ellipse at 100% 82%, rgba(15, 159, 143, 0.1), transparent 46%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.choice-popover.is-asking .choice-popover-refraction {
  animation: glass-refraction-listen 5200ms ease-in-out infinite;
}

.choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  justify-content: stretch;
  contain: layout paint;
}

.choice-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.choice-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.choice-back[hidden] + .choice-title {
  grid-column: 1 / -1;
}

.choice-back {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  color: #1c2738;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 7px 18px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.choice-back svg {
  width: 18px;
  height: 18px;
}

.choice-back span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.choice-back:hover,
.choice-back:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 108, 255, 0.28);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 22px rgba(10, 108, 255, 0.1);
}

.choice-back:disabled {
  cursor: default;
  opacity: 0.46;
  transform: none;
}

.choice-popover.is-question-entering .choice-copy {
  animation: none;
}

.choice-actions {
  position: relative;
  z-index: 1;
}

.choice-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 3px 1px 1px;
}

.choice-title {
  margin: 0;
  min-width: 0;
  color: #0b1220;
  font-size: 0.88rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.18;
}

.choice-question {
  margin: 7px 0 0;
  color: #0d1728;
  font-size: 1.08rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.42;
}

.choice-help {
  margin: 10px 0 0;
  color: #465365;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
}

.choice-popover.is-question-entering .choice-question {
  animation: question-copy-arrive 360ms cubic-bezier(0.2, 0, 0, 1) 60ms both;
}

.choice-popover.is-question-entering .choice-help {
  animation: question-copy-arrive 360ms cubic-bezier(0.2, 0, 0, 1) 190ms both;
}

.choice-option {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 90% 18%, rgba(10, 108, 255, 0.07), transparent 58%);
  color: #0f172a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 9px 22px rgba(15, 23, 42, 0.055);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  backdrop-filter: blur(20px) saturate(1.45);
  cursor: pointer;
  font: inherit;
  text-align: left;
  letter-spacing: 0;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.choice-option-control {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.choice-popover.is-question-entering .choice-option {
  animation: question-choice-arrive 520ms cubic-bezier(0.16, 1, 0.3, 1)
    calc(170ms + var(--choice-delay, 0ms)) both;
}

.choice-popover.is-transitioning .choice-option {
  animation: none;
}

.choice-option-mark {
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.62));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.choice-option[data-selected="true"] .choice-option-mark {
  border-color: rgba(10, 108, 255, 0.9);
  background:
    radial-gradient(circle at center, #0a6cff 0 36%, transparent 40%),
    #ffffff;
  box-shadow:
    0 0 0 3px rgba(10, 108, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.choice-option-label {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 830;
  line-height: 1.28;
}

.choice-option:hover,
.choice-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 108, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.54)),
    radial-gradient(ellipse at 90% 18%, rgba(10, 108, 255, 0.11), transparent 58%);
  box-shadow:
    0 13px 28px rgba(10, 108, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.choice-option:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.42);
  outline-offset: 3px;
}

.choice-option[data-selected="true"] {
  border-color: rgba(10, 108, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.6)),
    radial-gradient(ellipse at 88% 20%, rgba(10, 108, 255, 0.15), transparent 60%);
  box-shadow:
    0 15px 34px rgba(10, 108, 255, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.choice-option:active {
  transform: translateY(0);
}

.choice-option[data-disabled="true"] {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

.choice-answer-detail {
  position: relative;
  z-index: 1;
  contain: layout paint;
  min-height: 72px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 12px 13px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3)),
    radial-gradient(ellipse at 0% 0%, rgba(15, 159, 143, 0.08), transparent 52%);
  color: #465365;
}

.choice-answer-detail.is-refreshing {
  animation: answer-detail-refresh 260ms cubic-bezier(0.2, 0, 0, 1);
}

.choice-answer-detail.is-empty {
  display: grid;
  align-items: center;
  color: #647084;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.45;
}

.choice-answer-kicker {
  width: fit-content;
  display: block;
  color: #0a6cff;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
}

.choice-answer-detail p {
  margin: 7px 0 0;
  color: #3f4b5d;
  font-size: 0.74rem;
  font-weight: 660;
  line-height: 1.5;
}

.choice-answer-detail .choice-answer-impact {
  color: #263347;
  font-size: 0.72rem;
  font-weight: 720;
}

.choice-adoption-gate {
  position: relative;
  z-index: 1;
  contain: layout paint;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(147, 96, 12, 0.13);
  border-radius: 18px;
  padding: 12px 13px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    radial-gradient(ellipse at 4% 0%, rgba(255, 149, 0, 0.11), transparent 58%),
    radial-gradient(ellipse at 92% 10%, rgba(10, 108, 255, 0.08), transparent 54%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 12px 30px rgba(147, 96, 12, 0.07);
}

.choice-adoption-gate.is-refreshing {
  animation: answer-detail-refresh 280ms cubic-bezier(0.2, 0, 0, 1);
}

.choice-adoption-gate-head {
  display: grid;
  gap: 6px;
}

.choice-adoption-gate-kicker {
  width: fit-content;
  color: #9a5a00;
  font-size: 0.62rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.1;
}

.choice-adoption-gate-head p {
  margin: 0;
  color: #243247;
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.52;
}

.choice-adoption-gate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.choice-adoption-gate-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 13px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.46);
}

.choice-adoption-gate-label {
  color: #0c766e;
  font-size: 0.62rem;
  font-weight: 840;
  line-height: 1.15;
}

.choice-adoption-gate-item p {
  margin: 0;
  color: #485466;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.48;
}

.choice-adoption-gate-example {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(154, 90, 0, 0.12);
  border-radius: 15px;
  padding: 10px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32)),
    radial-gradient(ellipse at 0% 0%, rgba(255, 149, 0, 0.11), transparent 66%);
}

.choice-adoption-gate-example-title {
  color: #9a5a00;
  font-size: 0.62rem;
  font-weight: 840;
  line-height: 1.15;
}

.choice-adoption-gate-example p {
  margin: 0;
  color: #344156;
  font-size: 0.69rem;
  font-weight: 670;
  line-height: 1.52;
}

.choice-adoption-gate-revisit {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.065);
  padding-top: 8px;
}

.choice-adoption-gate-crosscheck {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.065);
  padding-top: 8px;
}

.choice-adoption-gate-revisit span,
.choice-adoption-gate-crosscheck span {
  color: #0c766e;
  font-size: 0.61rem;
  font-weight: 840;
  line-height: 1.15;
}

.choice-adoption-gate-revisit p,
.choice-adoption-gate-crosscheck p {
  color: #4d596a;
  font-size: 0.67rem;
}

.choice-adoption-gate-revisit ul {
  margin: 1px 0 0;
  padding: 0 0 0 15px;
  color: #4d596a;
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.48;
}

.choice-adoption-gate-revisit li + li {
  margin-top: 3px;
}

.choice-adoption-gate-fallback {
  width: fit-content;
  min-height: 30px;
  justify-self: start;
  border: 1px solid rgba(10, 108, 255, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.54);
  color: #0a6cff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 790;
  letter-spacing: 0;
  line-height: 1.15;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.choice-form-footer .choice-adoption-gate-fallback {
  margin-top: -4px;
}

.choice-adoption-gate-fallback:hover,
.choice-adoption-gate-fallback:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 108, 255, 0.28);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(10, 108, 255, 0.1);
}

.choice-adoption-gate-fallback:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.35);
  outline-offset: 3px;
}

.choice-answer-concept {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.choice-answer-concept dt {
  color: #647084;
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1.2;
}

.choice-answer-concept dd {
  margin: 0;
  color: #0c766e;
  font-size: 0.72rem;
  font-weight: 830;
  line-height: 1.2;
}

.choice-form-footer {
  position: relative;
  z-index: 1;
  contain: layout paint;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding-bottom: 4px;
}

.choice-form-footer.is-refreshing {
  animation: answer-detail-refresh 280ms cubic-bezier(0.2, 0, 0, 1);
}

.choice-form-footer.is-confirm-only {
  justify-items: end;
}

.choice-form-footer.has-adoption-fallback {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
}

.choice-form-footer.has-adoption-fallback .choice-continue {
  grid-column: 2;
  grid-row: 1;
}

.choice-form-footer.has-adoption-fallback .choice-adoption-gate-fallback {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

.choice-form-footer.has-adoption-fallback .choice-criteria {
  grid-column: 1 / -1;
}

.choice-criteria {
  min-width: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 9px 0 0;
  background: transparent;
  color: #465365;
  box-shadow: none;
}

.choice-criteria-toggle {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0 2px;
  background: transparent;
  color: #0a6cff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-underline-offset: 3px;
}

.choice-criteria-toggle::after {
  flex: 0 0 auto;
  content: "+";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(10, 108, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.055);
  color: #0a6cff;
  font-weight: 820;
  line-height: 1;
  transition:
    transform 240ms cubic-bezier(0.2, 0, 0, 1),
    background-color 240ms ease,
    border-color 240ms ease;
}

.choice-criteria[data-open="true"] .choice-criteria-toggle::after {
  content: "-";
  transform: rotate(180deg);
  border-color: rgba(10, 108, 255, 0.22);
  background: rgba(10, 108, 255, 0.085);
}

.choice-criteria-toggle:hover,
.choice-criteria-toggle:focus-visible {
  color: #0a6cff;
  text-decoration: underline;
}

.choice-criteria-toggle:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.35);
  outline-offset: 3px;
}

.choice-criteria-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-5px);
  will-change: grid-template-rows, opacity, transform;
  transition:
    grid-template-rows 280ms cubic-bezier(0.2, 0, 0, 1),
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.2, 0, 0, 1);
}

.choice-criteria[data-open="true"] .choice-criteria-body {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.choice-criteria-inner {
  min-height: 0;
  overflow: hidden;
}

.choice-criteria-groups {
  max-width: none;
  margin: 7px 0 0;
  padding: 9px 0 0 11px;
  border-top: 1px solid rgba(15, 23, 42, 0.055);
  border-left: 2px solid rgba(10, 108, 255, 0.14);
  display: grid;
  gap: 8px;
  contain: layout paint;
}

.choice-criteria[data-open="true"] .choice-criteria-groups.is-refreshing {
  animation: criteria-content-refresh 260ms cubic-bezier(0.2, 0, 0, 1);
}

.choice-criteria-group {
  min-width: 0;
}

.choice-criteria-group h3 {
  margin: 0 0 3px;
  color: #253246;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.25;
}

.choice-criteria-list {
  margin: 0;
  padding: 0 0 0 16px;
  color: #4d5969;
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.56;
}

.choice-criteria-list li + li {
  margin-top: 4px;
}

@keyframes criteria-content-refresh {
  0% {
    opacity: 0.72;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes answer-detail-refresh {
  0% {
    opacity: 0.68;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-continue {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  justify-self: end;
  min-width: 168px;
  min-height: 38px;
  border: 1px solid rgba(10, 108, 255, 0.3);
  border-radius: 999px;
  padding: 9px 16px;
  background:
    linear-gradient(180deg, rgba(10, 108, 255, 0.95), rgba(10, 108, 255, 0.78));
  color: #ffffff;
  box-shadow:
    0 13px 28px rgba(10, 108, 255, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.choice-continue:hover,
.choice-continue:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(10, 108, 255, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.42) inset;
}

.choice-continue:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.result-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  justify-items: stretch;
  scroll-margin-top: max(20px, env(safe-area-inset-top));
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-section[hidden] {
  display: none;
}

.result-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.result-surface {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
    radial-gradient(ellipse at 11% 0%, rgba(10, 108, 255, 0.12), transparent 54%),
    radial-gradient(ellipse at 96% 100%, rgba(15, 159, 143, 0.1), transparent 58%),
    radial-gradient(ellipse at 52% 112%, rgba(246, 183, 49, 0.075), transparent 56%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 32px 78px rgba(15, 23, 42, 0.12),
    0 12px 30px rgba(10, 108, 255, 0.07),
    0 0 0 1px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.code-sample-section[hidden] {
  display: none;
}

.code-sample-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 30px;
  padding: clamp(18px, 2.2vw, 24px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    radial-gradient(ellipse at 12% 0%, rgba(217, 45, 114, 0.075), transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgba(15, 159, 143, 0.08), transparent 54%),
    radial-gradient(ellipse at 54% 112%, rgba(10, 108, 255, 0.06), transparent 54%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 20px 54px rgba(15, 23, 42, 0.085),
    0 0 0 1px rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 16px;
}

.implementation-boundary-section {
  min-width: 0;
}

.implementation-boundary-surface {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 30px;
  padding: clamp(18px, 2.2vw, 24px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    radial-gradient(ellipse at 11% 0%, rgba(10, 108, 255, 0.075), transparent 54%),
    radial-gradient(ellipse at 92% 24%, rgba(217, 45, 114, 0.065), transparent 50%),
    radial-gradient(ellipse at 48% 112%, rgba(246, 183, 49, 0.075), transparent 54%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 20px 54px rgba(15, 23, 42, 0.085),
    0 0 0 1px rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 16px;
}

.implementation-boundary-header {
  min-width: 0;
  max-width: 850px;
  display: grid;
  gap: 7px;
}

.implementation-boundary-header h2 {
  margin: 0;
  color: #09111f;
  font-size: clamp(1.18rem, 1.75vw, 1.58rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.implementation-boundary-header p:not(.result-kicker) {
  margin: 0;
  color: #344155;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.implementation-boundary-question em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(10, 108, 255, 0.11);
  border-radius: 999px;
  padding: 4px 8px;
  color: #0a6cff;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.implementation-boundary-workbench {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.implementation-boundary-question-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.implementation-boundary-question {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-items: baseline;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 18px;
  padding: 11px 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  color: #142033;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.implementation-boundary-question:hover,
.implementation-boundary-question:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 108, 255, 0.18);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 26px rgba(15, 23, 42, 0.07);
}

.implementation-boundary-question:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.implementation-boundary-question.is-selected {
  border-color: rgba(10, 108, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
    radial-gradient(ellipse at 0% 0%, rgba(10, 108, 255, 0.1), transparent 58%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(10, 108, 255, 0.085);
}

.implementation-boundary-question[data-boundary-priority="primary"] {
  border-color: rgba(10, 108, 255, 0.15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 0% 0%, rgba(10, 108, 255, 0.08), transparent 62%);
}

.implementation-boundary-question[data-boundary-priority="defer"] {
  background: rgba(255, 255, 255, 0.38);
}

.implementation-boundary-question[data-boundary-priority="defer"] strong,
.implementation-boundary-question[data-boundary-priority="defer"] small {
  color: #647287;
}

.implementation-boundary-question span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(10, 108, 255, 0.14);
  border-radius: 999px;
  color: #0a6cff;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.implementation-boundary-question strong {
  min-width: 0;
  color: #101a2b;
  font-size: 0.79rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.implementation-boundary-question small {
  min-width: 0;
  color: #526174;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.implementation-boundary-question em {
  grid-column: 2;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.08);
}

.implementation-boundary-question[data-boundary-priority="primary"] em {
  color: #0a6cff;
  border-color: rgba(10, 108, 255, 0.14);
}

.implementation-boundary-question[data-boundary-priority="defer"] em {
  color: #77849a;
}

.implementation-boundary-panels {
  min-width: 0;
}

.implementation-boundary-case {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 26px;
  padding: clamp(15px, 1.8vw, 19px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 14px 34px rgba(15, 23, 42, 0.065);
}

.implementation-boundary-case[hidden] {
  display: none;
}

.implementation-boundary-case[data-boundary-tone="outbox"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    radial-gradient(ellipse at 0% 0%, rgba(10, 108, 255, 0.09), transparent 54%);
}

.implementation-boundary-case[data-boundary-tone="translation"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    radial-gradient(ellipse at 100% 0%, rgba(15, 159, 143, 0.095), transparent 54%);
}

.implementation-boundary-case[data-boundary-tone="saga"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    radial-gradient(ellipse at 0% 100%, rgba(217, 45, 114, 0.085), transparent 54%);
}

.implementation-boundary-case[data-boundary-tone="process"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    radial-gradient(ellipse at 100% 100%, rgba(246, 183, 49, 0.1), transparent 54%);
}

.implementation-boundary-case-head {
  display: grid;
  gap: 7px;
}

.implementation-boundary-case-index {
  margin: 0;
  color: #0c766e;
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.implementation-boundary-case h3,
.implementation-boundary-code-head h4,
.implementation-boundary-source-note h4 {
  margin: 0;
  color: #121a2a;
  font-size: 1rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.implementation-boundary-case-head p:not(.implementation-boundary-case-index),
.implementation-boundary-flow p,
.implementation-boundary-source-note p {
  margin: 0;
  color: #253246;
  font-size: 0.76rem;
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.implementation-boundary-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-flow section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.052);
  border-radius: 17px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.54);
}

.implementation-boundary-flow h4 {
  margin: 0;
  color: #0a6cff;
  font-size: 0.66rem;
  font-weight: 870;
  letter-spacing: 0;
  line-height: 1.26;
}

.implementation-boundary-decision-stack {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.implementation-boundary-judgment-card,
.implementation-boundary-responsibility-card,
.implementation-boundary-risk-card,
.implementation-boundary-detail-inner section {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.055);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.implementation-boundary-judgment-card {
  display: grid;
  gap: 10px;
  border-radius: 21px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    radial-gradient(ellipse at 100% 0%, rgba(10, 108, 255, 0.11), transparent 56%);
}

.implementation-boundary-card-kicker {
  margin: 0;
  color: #0a6cff;
  font-size: 0.64rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.18;
}

.implementation-boundary-judgment-card h4,
.implementation-boundary-responsibility-card h4,
.implementation-boundary-risk-card h4 {
  margin: 0;
  color: #121a2a;
  font-size: 0.9rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.3;
}

.implementation-boundary-judgment-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.implementation-boundary-judgment-choices.is-three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.implementation-boundary-criteria-disclosure {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  padding-top: 4px;
}

.implementation-boundary-criteria-toggle {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  padding: 8px 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.implementation-boundary-criteria-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.7px solid rgba(10, 108, 255, 0.74);
  border-bottom: 1.7px solid rgba(10, 108, 255, 0.74);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.implementation-boundary-criteria-toggle:hover {
  background: rgba(10, 108, 255, 0.045);
}

.implementation-boundary-criteria-toggle:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.26);
  outline-offset: 3px;
}

.implementation-boundary-criteria-toggle[aria-expanded="true"] {
  background: rgba(10, 108, 255, 0.055);
}

.implementation-boundary-criteria-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg) translate(-1px, -1px);
}

.implementation-boundary-criteria-toggle span {
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.32;
}

.implementation-boundary-criteria-toggle small {
  justify-self: end;
  color: #667085;
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: right;
}

.implementation-boundary-criteria-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    max-height 240ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.implementation-boundary-criteria-panel.is-open {
  max-height: 760px;
  opacity: 1;
  transform: translateY(0);
}

.implementation-boundary-criteria-inner {
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  padding: 10px 11px 11px 23px;
  background:
    linear-gradient(145deg, rgba(246, 250, 255, 0.62), rgba(255, 255, 255, 0.34));
}

.implementation-boundary-criteria-inner section {
  display: grid;
  gap: 7px;
}

.implementation-boundary-criteria-inner section + section {
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.065);
}

.implementation-boundary-criteria-inner h5 {
  margin: 0;
  color: #121a2a;
  font-size: 0.7rem;
  font-weight: 860;
  line-height: 1.25;
}

.implementation-boundary-judgment-criteria {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.implementation-boundary-judgment-criteria li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #344155;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.implementation-boundary-judgment-criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.58);
}

.implementation-boundary-judgment-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px;
  column-gap: 9px;
  align-items: start;
  position: relative;
  border: 1px solid rgba(10, 108, 255, 0.12);
  border-radius: 16px;
  padding: 12px 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.7));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 20px rgba(15, 23, 42, 0.055);
  transition:
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.implementation-boundary-judgment-choice::before {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 1;
  align-self: start;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1.5px solid rgba(10, 108, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.implementation-boundary-judgment-choice:hover {
  border-color: rgba(10, 108, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.82));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 10px 24px rgba(10, 108, 255, 0.09);
  transform: translateY(-1px);
}

.implementation-boundary-judgment-choice:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.28);
  outline-offset: 3px;
}

.implementation-boundary-judgment-choice[aria-checked="true"] {
  border-color: rgba(10, 108, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 243, 255, 0.86));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 12px 28px rgba(10, 108, 255, 0.13);
}

.implementation-boundary-judgment-choice[aria-checked="true"]::before {
  border-color: rgba(10, 108, 255, 0.84);
  background:
    radial-gradient(circle at center, #0a6cff 0 4px, rgba(255, 255, 255, 0.96) 4.8px);
  box-shadow:
    0 0 0 4px rgba(10, 108, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.implementation-boundary-judgment-choice span {
  grid-column: 2;
  color: #0a6cff;
  font-size: 0.72rem;
  font-weight: 860;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.implementation-boundary-judgment-choice small,
.implementation-boundary-outcome-card p,
.implementation-boundary-outbox-risks li,
.implementation-boundary-responsibility-card p,
.implementation-boundary-detail-inner p {
  margin: 0;
  color: #344155;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.implementation-boundary-judgment-choice small {
  grid-column: 2;
  display: block;
}

.implementation-boundary-outcome-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 21px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.implementation-boundary-outcome-card[hidden] {
  display: none;
}

.implementation-boundary-outcome-card h4 {
  margin: 0;
  color: #121a2a;
  font-size: 0.9rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.implementation-boundary-outcome-label {
  margin-top: 2px;
  color: #121a2a;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.28;
}

.implementation-boundary-next-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.implementation-boundary-next-checks li {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.58);
  color: #344155;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
}

.implementation-boundary-outbox-followup,
.implementation-boundary-outbox-risk,
.implementation-boundary-code-scope {
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.52);
}

.implementation-boundary-outbox-followup {
  display: grid;
  gap: 10px;
}

.implementation-boundary-outbox-gate-head {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.implementation-boundary-outbox-gate-head h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.86rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.implementation-boundary-outbox-gate-head p:not(.code-sample-section-label) {
  margin: 0;
  color: #344155;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.implementation-boundary-outbox-gate-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-outbox-gate-summary article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(246, 252, 255, 0.44));
}

.implementation-boundary-outbox-gate-summary article + article {
  border-color: rgba(255, 138, 76, 0.15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 244, 0.48));
}

.implementation-boundary-outbox-gate-summary span {
  color: #172033;
  font-size: 0.72rem;
  font-weight: 890;
  line-height: 1.28;
}

.implementation-boundary-outbox-gate-summary p {
  margin: 0;
  color: #435066;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.implementation-boundary-outbox-gate-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: outbox-gate;
}

.implementation-boundary-outbox-gate-list li {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 15px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.58);
  counter-increment: outbox-gate;
}

.implementation-boundary-outbox-gate-list h4,
.implementation-boundary-outbox-gate-list h5 {
  position: relative;
  margin: 0;
  padding-left: 25px;
  color: #172033;
  font-size: 0.71rem;
  font-weight: 870;
  letter-spacing: 0;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.implementation-boundary-outbox-gate-list h4::before,
.implementation-boundary-outbox-gate-list h5::before {
  content: counter(outbox-gate, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #0a6cff;
  font-size: 0.56rem;
  font-weight: 920;
  line-height: 1.2;
}

.implementation-boundary-outbox-gate-list p,
.implementation-boundary-outbox-gate-list small {
  margin: 0;
  overflow-wrap: anywhere;
}

.implementation-boundary-outbox-gate-list p {
  color: #4f5e72;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.5;
}

.implementation-boundary-outbox-gate-list small {
  color: #68758a;
  font-size: 0.6rem;
  font-weight: 760;
  line-height: 1.35;
}

.implementation-boundary-outbox-gate-disclosure {
  margin-top: 2px;
}

.implementation-boundary-outbox-risk {
  color: #344155;
}

.implementation-boundary-code-scope {
  display: grid;
  gap: 7px;
}

.implementation-boundary-code-scope span {
  color: #0f172a;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.25;
}

.implementation-boundary-outbox-risks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.implementation-boundary-outbox-risks li {
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #344155;
  font-size: 0.66rem;
  font-weight: 740;
  line-height: 1.22;
}

.implementation-boundary-outbox-risks li {
  border-color: rgba(255, 138, 76, 0.16);
  background: rgba(255, 249, 244, 0.68);
}

.implementation-boundary-file-tree {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(247, 251, 255, 0.48));
}

.implementation-boundary-file-tree-head {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.implementation-boundary-file-tree-head p {
  margin: 0;
}

.implementation-boundary-file-tree-head p:not(.implementation-boundary-outcome-label) {
  color: #344155;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.implementation-boundary-tree-block .code-sample-code {
  font-size: 0.68rem;
  line-height: 1.56;
  white-space: pre;
  overflow-wrap: normal;
}

.implementation-boundary-file-tree-note {
  margin: 0;
  border-radius: 13px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.48);
  color: #4f5e72;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.implementation-boundary-file-tree-note code {
  color: #0a6cff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  font-weight: 760;
}

.implementation-boundary-runtime-decisions {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(244, 250, 255, 0.5));
}

.implementation-boundary-runtime-head {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.implementation-boundary-runtime-head p {
  margin: 0;
}

.implementation-boundary-runtime-head h3 {
  margin: 0;
  max-width: 780px;
  color: #121a2a;
  font-size: 0.92rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.32;
}

.implementation-boundary-runtime-head p:not(.implementation-boundary-outcome-label) {
  color: #344155;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.implementation-boundary-runtime-core {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-runtime-core-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 17px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(246, 252, 255, 0.42));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

.implementation-boundary-runtime-core-card span {
  color: #121a2a;
  font-size: 0.78rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.26;
}

.implementation-boundary-runtime-core-card p,
.implementation-boundary-runtime-core-card small,
.implementation-boundary-runtime-scope p,
.implementation-boundary-runtime-scope small,
.implementation-boundary-runtime-candidates > div:first-child p,
.implementation-boundary-runtime-observability > div:first-child p,
.implementation-boundary-runtime-adapter-note > div:first-child p,
.implementation-boundary-runtime-candidate-grid dd,
.implementation-boundary-runtime-signal-grid p,
.implementation-boundary-runtime-signal-grid small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.implementation-boundary-runtime-core-card p {
  color: #344155;
  font-size: 0.7rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.52;
}

.implementation-boundary-runtime-core-card small {
  color: #68758a;
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.42;
}

.implementation-boundary-runtime-scope {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(118px, 0.22fr) minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  border: 1px solid rgba(10, 108, 255, 0.1);
  border-radius: 16px;
  padding: 11px 12px;
  background:
    linear-gradient(145deg, rgba(239, 248, 255, 0.76), rgba(255, 255, 255, 0.48));
}

.implementation-boundary-runtime-scope span {
  color: #0a6cff;
  font-size: 0.7rem;
  font-weight: 890;
  line-height: 1.3;
}

.implementation-boundary-runtime-scope p {
  color: #344155;
  font-size: 0.7rem;
  font-weight: 660;
  line-height: 1.5;
}

.implementation-boundary-runtime-scope small {
  grid-column: 2;
  color: #5b687c;
  font-size: 0.64rem;
  font-weight: 730;
  line-height: 1.42;
}

.implementation-boundary-runtime-candidates,
.implementation-boundary-runtime-observability,
.implementation-boundary-runtime-adapter-note {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36));
}

.implementation-boundary-runtime-observability {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 253, 250, 0.42));
}

.implementation-boundary-runtime-adapter-note {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 237, 0.4));
}

.implementation-boundary-runtime-subhead {
  margin: 0;
  color: #121a2a;
  font-size: 0.82rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.implementation-boundary-runtime-candidates > div:first-child,
.implementation-boundary-runtime-observability > div:first-child,
.implementation-boundary-runtime-adapter-note > div:first-child {
  display: grid;
  gap: 5px;
}

.implementation-boundary-runtime-candidates > div:first-child p:not(.implementation-boundary-runtime-subhead),
.implementation-boundary-runtime-observability > div:first-child p:not(.implementation-boundary-runtime-subhead),
.implementation-boundary-runtime-adapter-note > div:first-child p:not(.implementation-boundary-runtime-subhead) {
  color: #344155;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.52;
}

.implementation-boundary-runtime-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-runtime-candidate-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.58);
}

.implementation-boundary-runtime-candidate-grid h4 {
  margin: 0;
  color: #142033;
  font-size: 0.74rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.implementation-boundary-runtime-candidate-grid dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.implementation-boundary-runtime-candidate-grid div {
  display: grid;
  gap: 3px;
}

.implementation-boundary-runtime-candidate-grid dt {
  color: #0a6cff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.implementation-boundary-runtime-candidate-grid dd {
  color: #435066;
  font-size: 0.66rem;
  font-weight: 640;
  line-height: 1.5;
}

.implementation-boundary-runtime-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-runtime-signal-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.implementation-boundary-runtime-signal-grid span {
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 880;
  line-height: 1.26;
}

.implementation-boundary-runtime-signal-grid p {
  color: #344155;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.48;
}

.implementation-boundary-runtime-signal-grid small {
  color: #68758a;
  font-size: 0.6rem;
  font-weight: 720;
  line-height: 1.38;
}

.implementation-boundary-runtime-list {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: runtime-decision;
}

.implementation-boundary-runtime-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(122px, 0.36fr) minmax(0, 1fr);
  gap: 4px 11px;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 15px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.52);
  counter-increment: runtime-decision;
}

.implementation-boundary-runtime-list span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #172033;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.implementation-boundary-runtime-list span::before {
  content: counter(runtime-decision, decimal-leading-zero);
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(10, 108, 255, 0.08);
  color: #0a6cff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.implementation-boundary-runtime-list p,
.implementation-boundary-runtime-list small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.implementation-boundary-runtime-list p {
  color: #344155;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.52;
}

.implementation-boundary-runtime-list small {
  grid-column: 2;
  color: #68758a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.42;
}

.implementation-boundary-runtime-note {
  margin: 0;
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.5);
  color: #4f5e72;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.implementation-boundary-runtime-details {
  display: grid;
  gap: 8px;
}

.implementation-boundary-responsibility-card {
  display: grid;
  gap: 12px;
  border-radius: 21px;
  padding: 14px;
}

.implementation-boundary-responsibility-card > div:first-child {
  display: grid;
  gap: 6px;
}

.implementation-boundary-responsibility-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.implementation-boundary-responsibility-flow li {
  min-width: 0;
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 94px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 15px;
  padding: 10px 10px 11px;
  background: rgba(255, 255, 255, 0.56);
}

.implementation-boundary-responsibility-flow li + li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 7px;
  height: 1px;
  background: rgba(10, 108, 255, 0.35);
}

.implementation-boundary-responsibility-flow span {
  color: #0a6cff;
  font-size: 0.62rem;
  font-weight: 870;
  line-height: 1;
}

.implementation-boundary-responsibility-flow strong {
  color: #151f31;
  font-size: 0.72rem;
  font-weight: 860;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.implementation-boundary-responsibility-flow small {
  color: #526176;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.implementation-boundary-risk-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  border-radius: 21px;
  padding: 13px 14px;
}

.implementation-boundary-risk-card > div {
  display: grid;
  gap: 5px;
}

.implementation-boundary-risk-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.implementation-boundary-risk-card li {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.58);
  color: #344155;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
}

.implementation-boundary-disclosure {
  display: grid;
  gap: 8px;
}

.implementation-boundary-disclosure-toggle {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 18px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.52);
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.implementation-boundary-disclosure-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(10, 108, 255, 0.76);
  border-bottom: 2px solid rgba(10, 108, 255, 0.76);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.implementation-boundary-disclosure-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.implementation-boundary-disclosure-toggle:hover {
  border-color: rgba(10, 108, 255, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.implementation-boundary-disclosure-toggle:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.28);
  outline-offset: 3px;
}

.implementation-boundary-disclosure-toggle span,
.implementation-boundary-disclosure-toggle small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.implementation-boundary-disclosure-toggle span {
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.implementation-boundary-disclosure-toggle small {
  color: #5b687c;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.3;
}

.implementation-boundary-detail-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none;
  transition:
    grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0ms linear 240ms;
}

.implementation-boundary-detail-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0ms;
}

.implementation-boundary-detail-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-detail-inner section {
  display: grid;
  align-content: start;
  gap: 5px;
  border-radius: 15px;
  padding: 10px 11px;
}

.implementation-boundary-detail-inner h5 {
  margin: 0;
  color: #0a6cff;
  font-size: 0.65rem;
  font-weight: 870;
  letter-spacing: 0;
  line-height: 1.25;
}

.implementation-boundary-code-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.34));
}

.implementation-boundary-code-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.implementation-boundary-code-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.implementation-boundary-code-notes {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.implementation-boundary-code-notes section {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 16px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.52);
}

.implementation-boundary-code-notes h5 {
  margin: 0;
  color: #0a6cff;
  font-size: 0.65rem;
  font-weight: 870;
  letter-spacing: 0;
  line-height: 1.25;
}

.implementation-boundary-code-notes p {
  margin: 0;
  color: #344155;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.implementation-boundary-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 180px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.implementation-boundary-language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #344155;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  cursor: pointer;
}

.implementation-boundary-language-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #0a6cff;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(10, 108, 255, 0.08);
}

.implementation-boundary-language-switch button:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.implementation-boundary-code-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.96), rgba(20, 31, 51, 0.92));
}

.implementation-boundary-code-stack {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.implementation-boundary-code-block[hidden] {
  display: none;
}

.implementation-boundary-code-block .code-sample-code {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.implementation-boundary-source-note {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(10, 108, 255, 0.08);
  border-radius: 18px;
  padding: 12px 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.38)),
    radial-gradient(ellipse at 0% 50%, rgba(10, 108, 255, 0.065), transparent 62%);
}

.implementation-boundary-source-note h4 {
  color: #0a6cff;
  font-size: 0.68rem;
  line-height: 1.25;
}

.implementation-boundary-checks {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  padding: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(247, 252, 255, 0.44));
}

.implementation-boundary-checks-label {
  margin: 0 0 6px;
  color: #d92d72;
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.implementation-boundary-checks h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.96rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.implementation-boundary-checks-copy {
  margin: 7px 0 0;
  max-width: 28rem;
  color: #667287;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.55;
}

.implementation-boundary-checks ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: boundary-check;
  display: grid;
  gap: 7px;
  color: #344155;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
}

.implementation-boundary-checks li {
  position: relative;
  min-width: 0;
  counter-increment: boundary-check;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.implementation-boundary-checks li::before {
  content: counter(boundary-check, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(217, 45, 114, 0.08);
  color: #b72262;
  font-size: 0.58rem;
  font-weight: 860;
  line-height: 1;
}

.code-sample-header {
  max-width: 820px;
  display: grid;
  gap: 7px;
}

.code-sample-header h2 {
  margin: 0;
  color: #09111f;
  font-size: clamp(1.18rem, 1.75vw, 1.58rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.14;
}

.code-sample-header p:not(.result-kicker) {
  margin: 0;
  color: #344155;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
}

.code-sample-content {
  display: grid;
  gap: 12px;
}

.code-sample-summary,
.code-sample-empty {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.34));
}

.code-sample-route,
.code-sample-empty-label {
  margin: 0;
  color: #d92d72;
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-summary-copy,
.code-sample-empty p:not(.code-sample-empty-label) {
  margin: 0;
  color: #344155;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
}

.code-sample-empty h3 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.26;
}

.code-sample-difference {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38)),
    radial-gradient(ellipse at 8% 10%, rgba(217, 45, 114, 0.08), transparent 52%),
    radial-gradient(ellipse at 94% 92%, rgba(10, 108, 255, 0.065), transparent 56%);
}

.code-sample-difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.code-sample-difference-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.5);
}

.code-sample-difference-card:first-child {
  grid-column: 1 / -1;
}

.code-sample-difference-label {
  margin: 0;
  color: #0a6cff;
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-difference-card h4 {
  margin: 0;
  color: #121a2a;
  font-size: 0.84rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.3;
}

.code-sample-difference-list {
  margin: 0;
  padding-left: 1.1em;
  color: #344155;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
}

.code-sample-difference-list li + li {
  margin-top: 5px;
}

.code-sample-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(260px, 100%);
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.code-sample-language {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #344155;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.code-sample-language[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #0a6cff;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(10, 108, 255, 0.08);
}

.code-sample-language:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.code-sample-language-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
}

.code-sample-language-copy {
  display: grid;
  gap: 5px;
}

.code-sample-language-copy h3,
.code-sample-implementation-plan h3,
.code-sample-code-readout-head h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.92rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.code-sample-language-copy p:not(.code-sample-section-label),
.code-sample-plan-copy {
  margin: 0;
  color: #344155;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.55;
}

.code-sample-section-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0c766e;
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-section-label span {
  min-width: 24px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.64);
  color: #0f766e;
  font-size: 0.58rem;
  font-weight: 900;
}

.code-sample-discovery-head {
  display: grid;
  gap: 6px;
}

.code-sample-implementation-plan > div:first-child,
.code-sample-orientation-head,
.code-sample-language-panel > div:first-child,
.implementation-boundary-code-title {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.code-sample-orientation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.code-sample-orientation-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.34));
}

.code-sample-orientation-card h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.9rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.code-sample-orientation-copy {
  margin: 0;
  color: #344155;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.55;
}

.code-sample-discovery,
.code-sample-responsibility-guide,
.code-sample-implementation-plan,
.code-sample-code-readout {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.32));
}

.code-sample-discovery {
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(246, 252, 255, 0.4));
}

.code-sample-responsibility-guide {
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(247, 251, 255, 0.42)),
    radial-gradient(ellipse at 8% 0%, rgba(10, 108, 255, 0.07), transparent 54%),
    radial-gradient(ellipse at 100% 96%, rgba(12, 118, 110, 0.07), transparent 54%);
}

.code-sample-discovery h3,
.code-sample-responsibility-guide h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.9rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.28;
}

.code-sample-discovery-copy,
.code-sample-responsibility-copy {
  margin: 0;
  max-width: 760px;
  color: #253246;
  font-size: 0.78rem;
  font-weight: 670;
  letter-spacing: 0;
  line-height: 1.58;
}

.code-sample-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 8px;
}

.code-sample-responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.code-sample-discovery-item,
.code-sample-responsibility-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
}

.code-sample-discovery-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  color: #0a6cff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 248, 255, 0.58));
  box-shadow:
    0 8px 22px rgba(30, 64, 175, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.code-sample-discovery-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-sample-discovery-item[data-discovery-icon="relay"] .code-sample-discovery-icon {
  color: #0f9f78;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(235, 255, 247, 0.58));
}

.code-sample-discovery-item[data-discovery-icon="boundary"] .code-sample-discovery-icon {
  color: #b45309;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.62));
}

.code-sample-discovery-item[data-discovery-icon="duplicate"] .code-sample-discovery-icon {
  color: #7c3aed;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 255, 0.64));
}

.code-sample-discovery-item h4,
.code-sample-discovery-item h5,
.code-sample-responsibility-item h4 {
  margin: 0;
  color: #142033;
  font-size: 0.74rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.3;
}

.code-sample-discovery-item p,
.code-sample-responsibility-item p {
  margin: 0;
  color: #435066;
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.55;
}

.code-sample-discovery-caution {
  margin: 0;
  border: 1px solid rgba(160, 80, 20, 0.1);
  border-radius: 16px;
  padding: 11px 12px;
  color: #4f3523;
  background:
    linear-gradient(145deg, rgba(255, 250, 235, 0.68), rgba(255, 255, 255, 0.44));
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.55;
}

.code-sample-code-readout {
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38));
}

.code-sample-code-readout-head {
  display: grid;
  gap: 5px;
}

.code-sample-prep {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(12, 118, 110, 0.09);
  border-radius: 16px;
  padding: 11px 12px;
  background:
    linear-gradient(145deg, rgba(236, 253, 245, 0.46), rgba(255, 255, 255, 0.44));
}

.code-sample-prep-label {
  margin: 0;
  color: #0f766e;
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-prep-copy {
  margin: 0;
  color: #253246;
  font-size: 0.74rem;
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.55;
}

.code-sample-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
}

.code-sample-step-groups {
  display: grid;
  gap: 12px;
}

.code-sample-step-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.code-sample-step-group-label {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.25;
}

.code-sample-step-item {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.5);
}

.code-sample-step-number {
  margin: 0;
  color: #0c766e;
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-step-item h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.82rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.32;
}

.code-sample-step-item p {
  margin: 0;
  color: #253246;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
}

.code-sample-checkpoint-guide {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(12, 118, 110, 0.11);
  border-radius: 18px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(240, 253, 250, 0.56), rgba(255, 255, 255, 0.5) 48%, rgba(248, 251, 255, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 34px rgba(20, 184, 166, 0.045);
}

.code-sample-checkpoint-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.code-sample-checkpoint-label,
.code-sample-checkpoint-item-label {
  margin: 0;
  color: #0c766e;
  font-size: 0.62rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-checkpoint-copy h4 {
  margin: 0;
  color: #121a2a;
  font-size: 0.82rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.28;
}

.code-sample-checkpoint-copy p:not(.code-sample-checkpoint-label),
.code-sample-checkpoint-item p:not(.code-sample-checkpoint-item-label) {
  margin: 0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.5;
}

.code-sample-checkpoint-current {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(12, 118, 110, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.58);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  overflow-wrap: anywhere;
}

.code-sample-checkpoint-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.code-sample-checkpoint-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.52);
}

.code-sample-operational-decisions {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 197, 61, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(250, 252, 255, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 42px rgba(15, 23, 42, 0.035);
}

.code-sample-operational-head {
  max-width: 760px;
  display: grid;
  gap: 7px;
}

.code-sample-operational-head h3 {
  margin: 0;
  color: #121a2a;
  font-size: 1.08rem;
  font-weight: 890;
  letter-spacing: 0;
  line-height: 1.24;
}

.code-sample-operational-lead {
  margin: 0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
}

.code-sample-operational-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.code-sample-operational-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.058);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.42));
}

.code-sample-operational-card h4 {
  margin: 0;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.32;
}

.code-sample-operational-row {
  display: grid;
  gap: 4px;
}

.code-sample-operational-label {
  margin: 0;
  color: #0c766e;
  font-size: 0.62rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.2;
}

.code-sample-operational-row p:not(.code-sample-operational-label) {
  margin: 0;
  color: #334155;
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.52;
}

.code-sample-operational-guidance {
  display: grid;
  gap: 6px;
}

.code-sample-operational-guidance-item {
  display: grid;
  gap: 2px;
  border-radius: 12px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.045);
}

.code-sample-operational-guidance-label {
  margin: 0;
  color: #182235;
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.32;
}

.code-sample-operational-guidance-item p:not(.code-sample-operational-guidance-label) {
  margin: 0;
  color: #475569;
  font-size: 0.69rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.48;
}

.code-sample-step-panels {
  display: grid;
  gap: 12px;
}

.code-sample-step-panel {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.32));
}

.implementation-boundary-code-step-panel[data-context-scope],
#boundary-panel-process .code-sample-step-item[data-context-scope] {
  --q04-context-travel-rgb: 10, 108, 255;
  --q04-context-route-rgb: 0, 186, 124;
  --q04-role-connection-rgb: 100, 116, 139;
  --q04-role-verification-rgb: 180, 118, 16;
  --scope-step-color: #475569;
  --scope-tint-rgb: 100, 116, 139;
  --scope-tint-alpha: 0.055;
  --scope-border-alpha: 0.105;
  --scope-shadow-alpha: 0.035;
  --scope-list-tint-alpha: 0.028;
  --scope-list-border-alpha: 0.076;
  --scope-list-shadow-alpha: 0.018;
}

.implementation-boundary-code-step-panel[data-context-scope] {
  background:
    linear-gradient(145deg, rgba(var(--scope-tint-rgb), var(--scope-tint-alpha)), rgba(255, 255, 255, 0.58) 38%, rgba(255, 255, 255, 0.36));
  border-color: rgba(var(--scope-tint-rgb), var(--scope-border-alpha));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 54px rgba(var(--scope-tint-rgb), var(--scope-shadow-alpha));
}

.implementation-boundary-code-step-panel[data-context-scope="travel-booking"],
#boundary-panel-process .code-sample-step-item[data-context-scope="travel-booking"] {
  --scope-step-color: #075edb;
  --scope-tint-rgb: var(--q04-context-travel-rgb);
  --scope-tint-alpha: 0.13;
  --scope-border-alpha: 0.2;
  --scope-shadow-alpha: 0.06;
  --scope-list-tint-alpha: 0.052;
  --scope-list-border-alpha: 0.14;
  --scope-list-shadow-alpha: 0.032;
}

.implementation-boundary-code-step-panel[data-context-scope="route-approval"],
#boundary-panel-process .code-sample-step-item[data-context-scope="route-approval"] {
  --scope-step-color: #047857;
  --scope-tint-rgb: var(--q04-context-route-rgb);
  --scope-tint-alpha: 0.12;
  --scope-border-alpha: 0.19;
  --scope-shadow-alpha: 0.052;
  --scope-list-tint-alpha: 0.048;
  --scope-list-border-alpha: 0.135;
  --scope-list-shadow-alpha: 0.028;
}

.implementation-boundary-code-step-panel[data-context-scope="connection"],
#boundary-panel-process .code-sample-step-item[data-context-scope="connection"] {
  --scope-step-color: #5b6475;
  --scope-tint-rgb: var(--q04-role-connection-rgb);
  --scope-tint-alpha: 0.055;
  --scope-border-alpha: 0.105;
  --scope-shadow-alpha: 0.03;
  --scope-list-tint-alpha: 0.026;
  --scope-list-border-alpha: 0.078;
  --scope-list-shadow-alpha: 0.016;
}

.implementation-boundary-code-step-panel[data-context-scope="verification"],
#boundary-panel-process .code-sample-step-item[data-context-scope="verification"] {
  --scope-step-color: #8a5b00;
  --scope-tint-rgb: var(--q04-role-verification-rgb);
  --scope-tint-alpha: 0.06;
  --scope-border-alpha: 0.11;
  --scope-shadow-alpha: 0.032;
  --scope-list-tint-alpha: 0.03;
  --scope-list-border-alpha: 0.082;
  --scope-list-shadow-alpha: 0.018;
}

.implementation-boundary-code-step-panel[data-context-scope] .code-sample-step-number,
#boundary-panel-process .code-sample-step-item[data-context-scope] .code-sample-step-number {
  color: var(--scope-step-color);
}

#boundary-panel-process .code-sample-step-item[data-context-scope] {
  background:
    linear-gradient(145deg, rgba(var(--scope-tint-rgb), var(--scope-list-tint-alpha)), rgba(255, 255, 255, 0.58) 46%, rgba(255, 255, 255, 0.5));
  border-color: rgba(var(--scope-tint-rgb), var(--scope-list-border-alpha));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 30px rgba(var(--scope-tint-rgb), var(--scope-list-shadow-alpha));
}

.code-sample-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  justify-items: start;
  text-align: left;
}

.code-sample-step-panel h3 {
  margin: 0;
  color: #121a2a;
  font-size: 0.94rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.28;
}

.code-sample-step-copy {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.48);
  color: #344155;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.58;
}

.code-sample-step-copy p {
  margin: 0;
}

.code-sample-step-copy p + p {
  color: #526174;
}

.code-sample-step-note {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 9px;
}

.code-sample-step-note-title {
  color: #0f172a;
  font-size: 0.71rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.42;
}

.code-sample-step-note-copy {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.55;
}

.code-sample-code-block {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.96), rgba(20, 31, 51, 0.92));
}

.code-sample-code-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(237, 246, 255, 0.1);
  padding: 8px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.code-sample-code-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.implementation-boundary-code-step {
  min-width: 0;
  color: rgba(191, 231, 255, 0.92);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.code-sample-file-path {
  min-width: 0;
  color: rgba(237, 246, 255, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.code-sample-code-language {
  flex: 0 0 auto;
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(217, 249, 157, 0.84);
  font-size: 0.58rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.1;
}

.code-sample-code {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 13px 14px;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.96), rgba(20, 31, 51, 0.92));
  color: #edf6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 38px rgba(15, 23, 42, 0.14);
}

.code-sample-code-block .code-sample-code {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.code-sample-diagram {
  border-radius: 16px;
  padding: 12px 13px;
  font-size: 0.68rem;
  line-height: 1.72;
  white-space: pre;
  overflow-wrap: normal;
}

.code-sample-code code {
  display: block;
  min-width: 0;
}

.code-sample-code .hljs-keyword,
.code-sample-code .hljs-built_in,
.code-sample-code .hljs-type,
.code-sample-code .hljs-literal {
  color: #8bd3ff;
}

.code-sample-code .hljs-title,
.code-sample-code .hljs-title.class_,
.code-sample-code .hljs-title.function_ {
  color: #d9f99d;
}

.code-sample-code .hljs-string,
.code-sample-code .hljs-meta .hljs-string {
  color: #f8d88c;
}

.code-sample-code .hljs-number,
.code-sample-code .hljs-attr,
.code-sample-code .hljs-variable,
.code-sample-code .hljs-template-variable {
  color: #f0abfc;
}

.code-sample-code .hljs-comment {
  color: rgba(226, 239, 255, 0.56);
  font-style: italic;
}

.code-sample-code .hljs-meta,
.code-sample-code .hljs-symbol,
.code-sample-code .hljs-operator,
.code-sample-code .hljs-punctuation {
  color: rgba(237, 246, 255, 0.84);
}

.code-sample-mermaid {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 255, 0.72));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 18px 42px rgba(15, 23, 42, 0.1);
}

.code-sample-mermaid img {
  display: block;
  width: max(880px, 100%);
  max-width: none;
  height: auto;
  margin: 0 auto;
}

.code-sample-sequence-read-model-split .code-sample-mermaid {
  padding-block: 18px;
}

.code-sample-sequence-read-model-split .code-sample-mermaid img {
  width: max(1600px, 100%);
  max-width: none;
}

.design-change-migration-sequence .code-sample-mermaid img {
  width: min(1180px, 100%);
  max-width: 100%;
}

#boundary-panel-process .code-sample-sequence .code-sample-mermaid {
  padding: clamp(16px, 2vw, 22px);
}

#boundary-panel-process .code-sample-sequence {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  box-sizing: border-box;
  margin-left: 0;
  transform: none;
}

#boundary-panel-process .code-sample-sequence .code-sample-mermaid img {
  width: max(1880px, 100%);
  max-width: none;
  height: auto;
  object-fit: contain;
}

.code-sample-selected-route {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.code-sample-selected-item {
  display: grid;
  gap: 4px;
}

.code-sample-selected-route dt,
.code-sample-selected-route dd {
  margin: 0;
}

.code-sample-selected-route dt {
  color: #0c766e;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0;
}

.code-sample-selected-route dd {
  color: #253246;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.4;
}

.result-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 2px 2px 0;
}

.result-kicker {
  margin: 0 0 6px;
  color: #0a6cff;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
}

.result-header h2 {
  margin: 0;
  color: #09111f;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.result-back {
  min-height: 42px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  padding: 0 14px 0 11px;
  background: rgba(255, 255, 255, 0.62);
  color: #182234;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 24px rgba(15, 23, 42, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.result-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.result-back:hover,
.result-back:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 108, 255, 0.28);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 30px rgba(10, 108, 255, 0.1);
}

.result-back:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.result-content {
  display: grid;
  gap: 12px;
}

.result-overview,
.result-detail-grid,
.result-basis,
.result-memo {
  display: grid;
  gap: 12px;
}

.result-overview {
  display: block;
}

.result-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.74fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 0% 0%, rgba(10, 108, 255, 0.1), transparent 46%),
    radial-gradient(ellipse at 100% 90%, rgba(15, 159, 143, 0.08), transparent 52%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 16px 36px rgba(15, 23, 42, 0.065);
}

.result-hero[data-tone="method"] {
  border-color: rgba(10, 108, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 14% 4%, rgba(10, 108, 255, 0.13), transparent 42%),
    radial-gradient(ellipse at 92% 96%, rgba(217, 45, 114, 0.075), transparent 48%);
}

.result-hero[data-tone="architecture"] {
  border-color: rgba(15, 159, 143, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 14% 4%, rgba(15, 159, 143, 0.12), transparent 42%),
    radial-gradient(ellipse at 92% 96%, rgba(10, 108, 255, 0.075), transparent 48%);
}

.result-hero[data-route="reevaluation"] {
  border-color: rgba(196, 106, 0, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 12% 2%, rgba(196, 106, 0, 0.11), transparent 42%),
    radial-gradient(ellipse at 94% 94%, rgba(15, 159, 143, 0.08), transparent 48%);
}

.result-hero-main {
  min-width: 0;
  align-self: center;
  padding: 2px 0 2px 4px;
}

.result-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 4px;
}

.result-hero-meta .result-kicker {
  margin: 0;
}

.result-route-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(196, 106, 0, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  color: #8a4b00;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.2;
}

.result-hero-title {
  max-width: 15em;
  margin: 0;
  color: #09111f;
  font-size: clamp(1.36rem, 2.1vw, 1.95rem);
  font-weight: 910;
  letter-spacing: 0;
  line-height: 1.13;
}

.result-hero-copy {
  max-width: 52em;
  margin: 12px 0 0;
  color: #344155;
  font-size: 0.84rem;
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.62;
}

.result-stack {
  display: grid;
  gap: 1px;
  align-self: stretch;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 22px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.result-stack-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(76px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.26);
}

.result-stack-row[data-tone="method"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18)),
    radial-gradient(ellipse at 0% 0%, rgba(10, 108, 255, 0.075), transparent 48%);
}

.result-stack-row[data-tone="architecture"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18)),
    radial-gradient(ellipse at 0% 0%, rgba(15, 159, 143, 0.075), transparent 48%);
}

.result-stack-row[data-tone="test"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18)),
    radial-gradient(ellipse at 0% 0%, rgba(196, 106, 0, 0.075), transparent 48%);
}

.result-stack-term {
  color: #647084;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
}

.result-stack-row[data-tone="method"] .result-stack-term {
  color: #0a6cff;
}

.result-stack-row[data-tone="architecture"] .result-stack-term {
  color: #0c766e;
}

.result-stack-row[data-tone="test"] .result-stack-term {
  color: #a35400;
}

.result-stack-value {
  margin: 0;
  color: #121a2a;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.result-basis {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 2px;
}

.result-section-header {
  display: grid;
  gap: 2px;
}

.result-section-title {
  margin: 0;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.25;
}

.result-basis-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-basis-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(104px, 0.22fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.42);
}

.result-basis-row::before {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  content: "";
  background: #0a6cff;
  box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.1);
}

.result-basis-row {
  grid-template-columns: 8px minmax(96px, 0.22fr) minmax(0, 1fr);
}

.result-basis-row[data-tone="architecture"]::before {
  background: #0f9f8f;
  box-shadow: 0 0 0 4px rgba(15, 159, 143, 0.11);
}

.result-basis-row[data-tone="test"]::before {
  background: #c46a00;
  box-shadow: 0 0 0 4px rgba(196, 106, 0, 0.1);
}

.result-basis-label {
  color: #253246;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.35;
}

.result-basis-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.result-basis-answer,
.result-basis-impact {
  margin: 0;
  letter-spacing: 0;
}

.result-basis-answer {
  color: #172033;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.45;
}

.result-basis-impact {
  color: #344155;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.62;
}

.result-panel {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3));
}

.result-panel {
  padding: 13px 14px;
}

.result-panel-title {
  margin: 0;
  color: #111827;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.25;
}

.result-panel-title {
  font-size: 0.84rem;
}

.result-panel-body {
  margin: 8px 0 0;
  color: #344155;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
}

.result-list {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  color: #465365;
  font-size: 0.74rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.55;
}

.result-list li + li {
  margin-top: 5px;
}

.result-detail-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(260px, 0.82fr);
  align-items: stretch;
}

.result-memo {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 24px;
  padding: 15px 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    radial-gradient(ellipse at 0% 0%, rgba(10, 108, 255, 0.08), transparent 46%),
    radial-gradient(ellipse at 100% 100%, rgba(15, 159, 143, 0.07), transparent 50%);
}

.result-memo-copy {
  min-width: 0;
}

.result-memo-body {
  max-width: 58em;
  margin: 7px 0 0;
  color: #344155;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.62;
}

.result-memo-action {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.result-copy {
  min-width: 132px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(10, 108, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  background:
    linear-gradient(180deg, rgba(10, 108, 255, 0.96), rgba(8, 86, 214, 0.94));
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 14px 30px rgba(10, 108, 255, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.result-copy svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.result-copy-label {
  width: 6.6em;
  text-align: center;
}

.result-copy[data-state="success"] {
  border-color: rgba(15, 159, 143, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 159, 143, 0.96), rgba(12, 118, 110, 0.94));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 14px 30px rgba(15, 159, 143, 0.18);
}

.result-copy[data-state="copying"] {
  cursor: progress;
  filter: saturate(0.92);
}

.result-copy:hover,
.result-copy:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 18px 34px rgba(10, 108, 255, 0.24);
}

.result-copy:focus-visible {
  outline: 2px solid rgba(10, 108, 255, 0.34);
  outline-offset: 3px;
}

.result-copy-status {
  max-width: 25em;
  min-height: 1.45em;
  margin: 0;
  color: #465365;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.terminology-reference {
  display: grid;
  gap: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.24)),
    radial-gradient(ellipse at 0% 10%, rgba(122, 92, 255, 0.045), transparent 46%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 130, 87, 0.04), transparent 52%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
}

.terminology-reference-head {
  display: contents;
}

.terminology-reference-heading {
  margin: 0;
}

.terminology-reference-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 15px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.terminology-reference-toggle:hover {
  background: rgba(255, 255, 255, 0.42);
}

.terminology-reference-toggle:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.34);
  outline-offset: 3px;
}

.terminology-reference-toggle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.terminology-reference-title {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.28;
}

.terminology-reference-lead {
  color: #465365;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.55;
}

.terminology-reference-toggle-action {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.52);
  color: #344155;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.terminology-reference-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(15, 23, 42, 0.44);
  border-bottom: 2px solid rgba(15, 23, 42, 0.44);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.terminology-reference.is-open .terminology-reference-chevron {
  transform: translateY(3px) rotate(225deg);
}

.terminology-reference-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 220ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.terminology-reference.is-open .terminology-reference-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.terminology-reference-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 8px;
}

.terminology-reference.is-open .terminology-reference-panel-inner {
  padding-top: 6px;
  padding-bottom: 8px;
}

.terminology-reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 0;
}

.terminology-reference-item {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.terminology-reference-item dt {
  margin: 0;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 880;
  line-height: 1.3;
}

.terminology-reference-item dd {
  display: grid;
  gap: 6px;
  margin: 7px 0 0;
}

.terminology-reference-alias {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.35;
}

.terminology-reference-item p {
  margin: 0;
  color: #344155;
  font-size: 0.74rem;
  font-weight: 640;
  line-height: 1.58;
}

.reference-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 10px;
}

.reference-source-card {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 18px;
  padding: 13px 14px 14px;
  background: rgba(255, 255, 255, 0.42);
}

.reference-source-label {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.reference-source-card h4 {
  margin: 0 0 7px;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 880;
  line-height: 1.35;
}

.reference-source-card p {
  margin: 0;
  color: #344155;
  font-size: 0.74rem;
  font-weight: 640;
  line-height: 1.62;
}

.reference-source-card p + p {
  margin-top: 8px;
}

.result-trail {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
}

.result-trail-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

.result-trail dt {
  color: #647084;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.3;
}

.result-trail dd {
  margin: 0;
  color: #253246;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

.flow-edge {
  fill: none;
  stroke: var(--neutral-edge);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    stroke 260ms ease;
}

.flow-edge.is-entry-edge {
  stroke: var(--blue-strong);
  stroke-width: 3.2;
  filter: drop-shadow(0 8px 12px rgba(10, 108, 255, 0.18));
}

.flow-edge.is-architecture-edge {
  stroke: rgba(15, 159, 143, 0.56);
}

.flow-edge.is-neutral-edge {
  stroke: var(--neutral-edge);
}

.flow-edge.is-test-edge {
  stroke: rgba(196, 106, 0, 0.56);
  stroke-width: 2.1;
}

.flow-edge.is-available-state {
  stroke: rgba(10, 108, 255, 0.38);
  stroke-width: 2.65;
  filter:
    drop-shadow(0 0 7px rgba(10, 108, 255, 0.14))
    drop-shadow(0 8px 16px rgba(10, 108, 255, 0.08));
}

.flow-edge.is-visited-state {
  stroke: rgba(10, 108, 255, 0.58);
  stroke-width: 2.65;
}

.flow-edge.is-traversing-state {
  stroke: rgba(10, 108, 255, 0.18);
  stroke-width: 2.6;
}

.flow-edge.is-inactive-state {
  stroke: rgba(86, 96, 112, 0.34);
  stroke-width: 2.1;
  filter: none;
}

.flow-motion-edge {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  opacity: 0.92;
  vector-effect: non-scaling-stroke;
}

.flow-motion-aura {
  fill: none;
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 8.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: none;
  vector-effect: non-scaling-stroke;
}

.flow-motion-dot {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(10, 108, 255, 0.64);
  stroke-width: 1.8;
  opacity: 0;
  filter: none;
}

.flow-arrow-head {
  fill: var(--neutral-edge-label);
}

.flow-arrow-head.is-entry {
  fill: var(--blue-strong);
}

.flow-arrow-head.is-architecture {
  fill: var(--cyan-strong);
}

.flow-arrow-head.is-test {
  fill: var(--amber-strong);
}

.edge-label.is-entry {
  fill: var(--blue-strong);
}

.flow-band {
  fill: rgba(255, 255, 255, 0.38);
  stroke-width: 1.4;
  stroke-dasharray: 7 8;
  transition:
    opacity 260ms ease,
    filter 260ms ease;
}

.flow-band.is-method {
  stroke: rgba(10, 108, 255, 0.18);
}

.flow-band.is-architecture {
  stroke: rgba(15, 159, 143, 0.22);
}

.flow-band.is-test {
  stroke: rgba(196, 106, 0, 0.24);
}

.band-label {
  fill: var(--blue-strong);
  font-size: 15px;
  font-weight: 860;
  letter-spacing: 0;
  text-anchor: start;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 6px;
  transition:
    opacity 260ms ease,
    filter 260ms ease;
}

.band-label.is-architecture {
  fill: var(--cyan-strong);
}

.band-label.is-test {
  fill: var(--amber-strong);
}

.edge-label {
  fill: var(--neutral-edge-label);
  font-size: 12px;
  font-weight: 760;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 7px;
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    fill 260ms ease;
}

.edge-label.is-architecture {
  fill: var(--cyan-strong);
}

.edge-label.is-test {
  fill: var(--amber-strong);
}

.edge-label.is-selected {
  fill: var(--blue-strong);
  font-weight: 840;
}

.edge-label.is-available {
  fill: var(--blue-strong);
  font-weight: 820;
}

.edge-label.is-inactive {
  fill: rgba(86, 96, 112, 0.72);
}

.flow-node rect,
.flow-node polygon {
  fill: rgba(255, 255, 255, 0.96);
  stroke: var(--node-stroke);
  stroke-width: 1.15;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.07));
}

.flow-node {
  transition:
    opacity 260ms ease,
    filter 260ms ease;
}

.flow-node .node-halo {
  pointer-events: none;
}

.flow-canvas.is-question-focus .flow-band,
.flow-canvas.is-question-focus .band-label {
  opacity: 0.5;
  filter: blur(0.18px) saturate(0.88);
  transition-delay: 120ms;
  transition-duration: 560ms;
}

.flow-canvas.is-question-focus
  .flow-edge:not(.is-available-state):not(.is-visited-state):not(.is-traversing-state) {
  opacity: 0.46;
  filter: blur(0.28px) saturate(0.82);
  transition-delay: 120ms;
  transition-duration: 560ms;
}

.flow-canvas.is-question-focus .edge-label:not(.is-available):not(.is-selected) {
  opacity: 0.54;
  filter: blur(0.18px) saturate(0.86);
  transition-delay: 120ms;
  transition-duration: 560ms;
}

.flow-canvas.is-question-focus
  .flow-node:not(.is-current):not(.is-visited):not(.is-available-target):not(.is-reached) {
  opacity: 0.64;
  filter: blur(0.38px) saturate(0.88);
  transition-delay: 120ms;
  transition-duration: 560ms;
}

.flow-node.is-visited:not(.is-current) rect,
.flow-node.is-visited:not(.is-current) polygon {
  stroke: rgba(10, 108, 255, 0.34);
}

.flow-node.is-decision polygon {
  fill: #f8fbff;
  stroke: rgba(10, 108, 255, 0.22);
}

.flow-node.is-method rect {
  fill: var(--method-fill);
  stroke: var(--method-stroke);
}

.flow-node.is-architecture rect {
  fill: var(--architecture-fill);
  stroke: var(--architecture-stroke);
}

.flow-node.is-test rect {
  fill: var(--test-fill);
  stroke: var(--test-stroke);
}

.flow-node .node-halo,
.flow-node.is-decision .node-halo,
.flow-node.is-method .node-halo,
.flow-node.is-architecture .node-halo,
.flow-node.is-test .node-halo {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  opacity: 0;
  filter: none;
}

.flow-node.is-current .node-halo,
.flow-node.is-current.is-decision .node-halo,
.flow-node.is-current.is-method .node-halo,
.flow-node.is-current.is-architecture .node-halo,
.flow-node.is-current.is-test .node-halo {
  fill: rgba(10, 108, 255, 0.055);
  stroke: transparent;
  opacity: 1;
  filter:
    drop-shadow(0 0 10px rgba(10, 108, 255, 0.12))
    drop-shadow(0 18px 30px rgba(10, 108, 255, 0.06));
  animation: question-node-listen 2400ms ease-in-out infinite;
}

.flow-node.is-current.is-departing .node-halo {
  animation: question-node-send 320ms cubic-bezier(0.2, 0, 0, 1) both;
}

.flow-node.is-entry polygon {
  fill: #ffffff;
  stroke: var(--blue);
  stroke-width: 3;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 22px 26px rgba(10, 108, 255, 0.2));
}

.flow-node.is-current rect,
.flow-node.is-current polygon {
  stroke: var(--blue);
  stroke-width: 1.55;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 0 9px rgba(10, 108, 255, 0.14))
    drop-shadow(0 16px 26px rgba(10, 108, 255, 0.08));
}

.flow-node.is-reached rect,
.flow-node.is-reached polygon {
  animation: node-arrival-material 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-node.is-current.is-reached rect,
.flow-node.is-current.is-reached polygon {
  animation:
    node-arrival-material 720ms cubic-bezier(0.16, 1, 0.3, 1),
    node-settle-material 420ms cubic-bezier(0.2, 0, 0, 1) 720ms both;
}

.flow-node.is-current.is-entry polygon {
  stroke-width: 1.85;
}

.flow-node.is-departing rect,
.flow-node.is-departing polygon {
  animation: node-departure-material 260ms cubic-bezier(0.2, 0, 0, 1);
}

.node-label {
  fill: #111827;
  font-size: 15.5px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: middle;
}

.node-detail {
  fill: #5b6472;
  font-size: 10.6px;
  font-weight: 740;
  letter-spacing: 0;
  text-anchor: middle;
}

.flow-node.is-entry .node-detail,
.flow-node.is-entry .node-label {
  fill: #0f172a;
}

@keyframes node-arrival-material {
  0% {
    stroke: rgba(10, 108, 255, 0.26);
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 0 rgba(10, 108, 255, 0))
      drop-shadow(0 8px 18px rgba(10, 108, 255, 0.04));
  }

  48% {
    stroke: rgba(10, 108, 255, 0.62);
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 13px rgba(10, 108, 255, 0.2))
      drop-shadow(0 17px 30px rgba(10, 108, 255, 0.1));
  }

  100% {
    stroke: var(--blue);
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 12px rgba(10, 108, 255, 0.18))
      drop-shadow(0 18px 30px rgba(10, 108, 255, 0.09));
  }
}

@keyframes node-departure-material {
  0% {
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 9px rgba(10, 108, 255, 0.14))
      drop-shadow(0 16px 26px rgba(10, 108, 255, 0.08));
  }

  55% {
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.98))
      drop-shadow(0 0 14px rgba(10, 108, 255, 0.18))
      drop-shadow(0 18px 28px rgba(10, 108, 255, 0.1));
  }

  100% {
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 9px rgba(10, 108, 255, 0.14))
      drop-shadow(0 16px 26px rgba(10, 108, 255, 0.08));
  }
}

@keyframes node-settle-material {
  from {
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 12px rgba(10, 108, 255, 0.18))
      drop-shadow(0 18px 30px rgba(10, 108, 255, 0.09));
  }

  to {
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 9px rgba(10, 108, 255, 0.14))
      drop-shadow(0 16px 26px rgba(10, 108, 255, 0.08));
  }
}

@keyframes choice-popover-appear {
  from {
    opacity: 0;
    filter: blur(5px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes question-node-listen {
  0%,
  100% {
    opacity: 0.68;
    filter:
      drop-shadow(0 0 8px rgba(10, 108, 255, 0.1))
      drop-shadow(0 16px 28px rgba(10, 108, 255, 0.05));
  }

  48% {
    opacity: 1;
    filter:
      drop-shadow(0 0 16px rgba(10, 108, 255, 0.18))
      drop-shadow(0 22px 34px rgba(10, 108, 255, 0.08));
  }
}

@keyframes question-node-send {
  0% {
    opacity: 1;
    filter:
      drop-shadow(0 0 14px rgba(10, 108, 255, 0.18))
      drop-shadow(0 20px 32px rgba(10, 108, 255, 0.08));
  }

  100% {
    opacity: 0.36;
    filter:
      drop-shadow(0 0 6px rgba(10, 108, 255, 0.08))
      drop-shadow(0 12px 20px rgba(10, 108, 255, 0.04));
  }
}

@keyframes question-surface-arrive {
  0% {
    opacity: 0;
    filter: blur(7px) saturate(1.08);
    transform: translateY(14px) scale(0.982);
  }

  58% {
    opacity: 1;
    filter: blur(0) saturate(1.12);
    transform: translateY(-2px) scale(1.003);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes question-copy-arrive {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes question-choice-arrive {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(9px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes glass-refraction-listen {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-4px);
  }

  50% {
    opacity: 0.86;
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-popover,
  .choice-popover.is-asking .choice-popover-refraction,
  .choice-popover.is-question-entering .choice-option,
  .choice-popover.is-question-entering .choice-copy,
  .choice-popover.is-question-entering .choice-popover-surface,
  .flow-node.is-current .node-halo,
  .flow-node.is-current rect,
  .flow-node.is-current polygon,
  .flow-node.is-departing rect,
  .flow-node.is-departing polygon,
  .flow-node.is-reached rect,
  .flow-node.is-reached polygon {
    animation: none;
  }

  .design-change-symptom-card {
    transition: none;
  }

  .design-change-selected,
  .design-change-lane-list,
  .design-change-lane-entry,
  .design-change-lane-confirm,
  .design-change-result,
  .design-change-result-block,
  .design-change-memo-copy-feedback {
    animation: none;
    transition: none;
  }

  .design-change-selected.is-entering,
  .design-change-lane-list.is-entering,
  .design-change-lane-entry.is-entering,
  .design-change-lane-confirm.is-entering,
  .design-change-result.is-entering,
  .design-change-result-block.is-entering,
  .design-change-selected.is-leaving,
  .design-change-lane-entry.is-leaving,
  .design-change-lane-confirm.is-leaving,
  .design-change-result.is-leaving,
  .design-change-result-block.is-leaving {
    opacity: 1;
    transform: none;
  }

  .flow-edge,
  .flow-band,
  .band-label,
  .edge-label,
  .flow-node {
    transition: none;
  }
}

@media (max-width: 760px) {
  :root {
    --question-sheet-gap: 24px;
  }

  .app-shell {
    align-content: center;
    gap: 28px;
    padding: max(24px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  #home-title {
    max-width: 9ch;
    font-size: 3.68rem;
    line-height: 0.96;
  }

  #home-title span {
    display: block;
  }

  #home-title span + span::before {
    content: "";
  }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-button {
    aspect-ratio: 1.82;
    grid-template-rows: minmax(0, 1fr) minmax(2.6em, auto);
    gap: 12px;
    border-radius: 26px;
    padding: 22px;
  }

  .tool-visual {
    width: clamp(92px, 24vw, 108px);
  }

  .tool-name {
    min-height: 2.6em;
    font-size: clamp(1rem, 4vw, 1.28rem);
  }

  body.design-change-mode .app-shell {
    align-content: start;
    gap: 22px;
  }

  .design-change-view {
    gap: 22px;
    padding-top: 6px;
    padding-bottom: 36px;
  }

  .design-change-header {
    gap: 10px;
  }

  .design-change-header h2 {
    font-size: clamp(2.18rem, 11vw, 3.18rem);
  }

  .design-change-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .design-change-symptoms,
  .design-change-lanes {
    border-radius: 24px;
    padding: 16px;
  }

  .design-change-symptom-card {
    border-radius: 11px;
    padding: 14px 15px;
  }

  .design-change-lane-button,
  .design-change-lane-static {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .design-change-lane-status {
    justify-self: start;
  }

  .design-change-lane-entry-card {
    border-radius: 20px;
    padding: 15px;
  }

  .design-change-lane-option {
    border-radius: 15px;
    padding: 11px;
  }

  .design-change-lane-detail-grid {
    grid-template-columns: 1fr;
  }

  .design-change-result-shell {
    border-radius: 20px;
    padding: 14px;
  }

  .design-change-result-context,
  .design-change-result-body {
    grid-template-columns: 1fr;
  }

  .design-change-result-context {
    border-radius: 17px;
    padding: 11px;
  }

  .design-change-result-block {
    border-radius: 16px;
    padding: 12px;
  }

  .design-change-migration {
    margin-top: 24px;
    padding-top: 24px;
  }

  .design-change-migration-content {
    border-radius: 20px;
    padding: 14px;
  }

  .design-change-lane-confirm {
    grid-template-columns: 1fr;
    border-radius: 16px;
    padding: 12px;
  }

  .design-change-lane-confirm-text {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
    align-items: center;
  }

  .design-change-lane-confirm-status,
  .design-change-lane-confirm-copy,
  .design-change-lane-confirm-button {
    grid-column: auto;
  }

  .design-change-lane-confirm-button {
    justify-self: stretch;
    width: 100%;
  }

  .design-change-result-actions,
  .design-change-result-actions.has-primary-action {
    grid-template-columns: 1fr;
  }

  .design-change-memo-copy,
  .design-change-result-next {
    grid-template-columns: 1fr;
  }

  .design-change-result-next-button {
    justify-self: stretch;
    width: 100%;
  }

  .design-change-memo-copy-button {
    justify-self: stretch;
  }

  .flow-mode .app-shell {
    align-content: start;
  }

  .flow-view {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .flow-canvas {
    width: 100%;
    height: 100%;
    overflow: auto;
    scroll-padding: 88px 24px 500px;
    border-radius: 26px;
  }

  .flow-canvas svg {
    min-width: 980px;
  }

  .choice-popover {
    position: fixed;
    top: var(--choice-popover-top, calc(100vh - 470px));
    right: auto;
    bottom: auto;
    left: var(--choice-popover-left, 50%);
    width: min(354px, calc(100vw - 28px));
    transform: translateX(var(--choice-popover-offset-x, 0px));
  }

  .choice-popover.is-transitioning {
    transform: translateX(var(--choice-popover-offset-x, 0px)) translateY(7px);
  }

  .choice-popover-surface {
    grid-template-columns: 1fr;
    gap: 13px;
    border-radius: 24px;
    padding: 14px;
  }

  .choice-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .choice-form-footer {
    position: relative;
    align-items: stretch;
    gap: 10px;
    padding: 0 0 4px;
  }

  .choice-form-footer.has-adoption-fallback {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
    gap: 8px;
  }

  .choice-form-footer.has-adoption-fallback .choice-continue,
  .choice-form-footer.has-adoption-fallback .choice-criteria {
    grid-column: auto;
  }

  .choice-form-footer.has-adoption-fallback .choice-continue {
    width: 100%;
    min-width: 0;
    grid-row: 1;
    grid-column: 2;
    padding-inline: 10px;
    white-space: normal;
    line-height: 1.18;
  }

  .choice-form-footer.has-adoption-fallback .choice-adoption-gate-fallback {
    width: 100%;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    padding-inline: 9px;
    background: #ffffff;
    white-space: normal;
    line-height: 1.18;
  }

  .choice-form-footer.has-adoption-fallback .choice-criteria {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .choice-adoption-gate-list {
    grid-template-columns: 1fr;
  }

  .choice-form-footer .choice-adoption-gate-fallback {
    width: 100%;
    justify-content: center;
  }

  .choice-criteria-groups {
    max-height: min(94px, 16vh);
    overflow: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
  }

  .choice-continue {
    position: relative;
    bottom: auto;
    width: 100%;
    background: linear-gradient(180deg, #0a6cff, #075ce6);
  }

  .choice-option {
    width: 100%;
  }

  .result-surface {
    border-radius: 26px;
    padding: 14px;
  }

  .code-sample-surface {
    border-radius: 24px;
    padding: 14px;
  }

  .implementation-boundary-surface {
    border-radius: 24px;
    padding: 14px;
  }

  .result-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-back {
    max-width: 100%;
  }

  .result-overview,
  .result-detail-grid,
  .result-memo {
    grid-template-columns: 1fr;
  }

  .terminology-reference {
    padding: 14px;
  }

  .terminology-reference-toggle {
    gap: 10px;
    padding: 10px;
  }

  .terminology-reference-list {
    grid-template-columns: 1fr;
  }

  .reference-source-grid {
    grid-template-columns: 1fr;
  }

  .code-sample-header h2 {
    font-size: 1.16rem;
  }

  .implementation-boundary-header h2 {
    font-size: 1.16rem;
  }

  .implementation-boundary-header p:not(.result-kicker),
  .implementation-boundary-case-head p:not(.implementation-boundary-case-index),
  .implementation-boundary-flow p,
  .implementation-boundary-judgment-criteria li,
  .implementation-boundary-judgment-choice small,
  .implementation-boundary-criteria-toggle small,
  .implementation-boundary-outcome-card p,
  .implementation-boundary-outbox-risks li,
  .implementation-boundary-file-tree-head p:not(.implementation-boundary-outcome-label),
  .implementation-boundary-file-tree-note,
  .implementation-boundary-runtime-head p:not(.implementation-boundary-outcome-label),
  .implementation-boundary-runtime-list p,
  .implementation-boundary-runtime-list small,
  .implementation-boundary-runtime-note,
  .implementation-boundary-responsibility-card p,
  .implementation-boundary-detail-inner p,
  .implementation-boundary-code-notes p {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .implementation-boundary-case h3,
  .implementation-boundary-judgment-card h4,
  .implementation-boundary-outcome-card h4,
  .implementation-boundary-responsibility-card h4,
  .implementation-boundary-risk-card h4,
  .implementation-boundary-code-head h4,
  .implementation-boundary-source-note h4,
  .implementation-boundary-checks h3 {
    font-size: 0.92rem;
  }

  .implementation-boundary-flow h4,
  .implementation-boundary-card-kicker,
  .implementation-boundary-outcome-label,
  .implementation-boundary-next-checks,
  .implementation-boundary-outbox-risks,
  .implementation-boundary-code-scope span,
  .implementation-boundary-runtime-list span,
  .implementation-boundary-criteria-toggle span,
  .implementation-boundary-criteria-inner h5,
  .implementation-boundary-detail-inner h5,
  .implementation-boundary-code-notes h5,
  .implementation-boundary-checks ol {
    font-size: 0.7rem;
    line-height: 1.56;
  }

  .code-sample-summary,
  .code-sample-empty,
  .code-sample-code-readout,
  .code-sample-operational-decisions,
  .code-sample-step-panel,
  .implementation-boundary-case,
  .implementation-boundary-judgment-card,
  .implementation-boundary-outcome-card,
  .implementation-boundary-responsibility-card,
  .implementation-boundary-risk-card,
  .implementation-boundary-file-tree,
  .implementation-boundary-code-card,
  .implementation-boundary-runtime-decisions,
  .implementation-boundary-checks {
    border-radius: 20px;
    padding: 14px;
  }

  .code-sample-language-panel,
  .implementation-boundary-code-head {
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 12px;
  }

  .code-sample-language-switch,
  .implementation-boundary-language-switch {
    width: 100%;
  }

  .code-sample-orientation,
  .code-sample-responsibility-grid,
  .code-sample-steps,
  .code-sample-checkpoint-guide,
  .code-sample-checkpoint-flow,
  .code-sample-operational-grid,
  .code-sample-step-panel,
  .code-sample-difference-grid,
  .code-sample-selected-route,
  .implementation-boundary-judgment-choices,
  .implementation-boundary-responsibility-flow,
  .implementation-boundary-risk-card,
  .implementation-boundary-detail-inner,
  .implementation-boundary-workbench,
  .implementation-boundary-flow,
  .implementation-boundary-code-notes,
  .implementation-boundary-runtime-list li,
  .implementation-boundary-outbox-gate-summary,
  .implementation-boundary-outbox-gate-list,
  .implementation-boundary-checks {
    grid-template-columns: 1fr;
  }

  .implementation-boundary-judgment-choices.is-three-up {
    grid-template-columns: 1fr;
  }

  .implementation-boundary-runtime-list small {
    grid-column: 1;
  }

  .implementation-boundary-runtime-decisions {
    gap: 9px;
  }

  .implementation-boundary-runtime-list {
    gap: 5px;
  }

  .implementation-boundary-runtime-list li {
    gap: 2px;
    padding: 8px 9px;
  }

  .implementation-boundary-runtime-core,
  .implementation-boundary-runtime-candidate-grid,
  .implementation-boundary-runtime-signal-grid,
  .implementation-boundary-runtime-scope {
    grid-template-columns: 1fr;
  }

  .implementation-boundary-runtime-scope {
    gap: 6px;
  }

  .implementation-boundary-runtime-scope small {
    grid-column: 1;
  }

  .implementation-boundary-runtime-note {
    padding: 8px 9px;
  }

  .implementation-boundary-responsibility-flow li {
    min-height: auto;
  }

  .implementation-boundary-responsibility-flow li + li::before {
    left: 17px;
    top: -7px;
    width: 1px;
    height: 7px;
  }

  .implementation-boundary-disclosure-toggle {
    grid-template-columns: 1fr auto;
  }

  .implementation-boundary-question-list {
    grid-template-columns: 1fr;
  }

  .code-sample-difference-card:first-child {
    grid-column: auto;
  }

  .code-sample-orientation-card {
    border-radius: 18px;
    padding: 12px;
  }

  .code-sample-code {
    border-radius: 16px;
    padding: 12px;
    font-size: 0.68rem;
    line-height: 1.6;
  }

  .code-sample-diagram {
    font-size: 0.64rem;
    line-height: 1.66;
  }

  .code-sample-mermaid img {
    width: max(980px, 100%);
    max-width: 100%;
  }

  .code-sample-sequence-read-model-split .code-sample-mermaid img {
    width: max(1400px, 100%);
    max-width: none;
  }

  .design-change-migration-sequence .code-sample-mermaid img {
    width: 100%;
    max-width: 100%;
  }

  #boundary-panel-process .code-sample-sequence .code-sample-mermaid img {
    width: max(1480px, 100%);
    max-width: none;
    height: auto;
    object-fit: contain;
  }

  #boundary-panel-process .code-sample-sequence {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    margin-left: 0;
    transform: none;
  }

  .result-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 24px;
    padding: 16px;
  }

  .result-hero-title {
    font-size: 1.28rem;
  }

  .result-stack-row,
  .result-basis-row,
  .result-trail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-basis-row {
    padding-left: 14px;
  }

  .result-basis-row::before {
    width: 22px;
    height: 3px;
    margin: 0 0 2px;
  }

  .result-panel {
    border-radius: 20px;
  }

  .result-memo {
    border-radius: 20px;
    padding: 14px;
  }

  .result-memo-action {
    justify-items: start;
  }

  .result-copy-status {
    text-align: left;
  }

  .result-list {
    font-size: 0.78rem;
  }

  .icon-button {
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
  }
}

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

  .flow-motion-aura,
  .flow-motion-edge,
  .flow-motion-dot {
    display: none;
  }
}
