:root {
  color-scheme: light;
  --canvas: #f3f2ee;
  --canvas-line: rgba(24, 27, 36, 0.045);
  --paper: #fffdfa;
  --paper-soft: #f8f6ef;
  --platinum: #e8e4da;
  --platinum-strong: #d4cbbd;
  --ink: #14171f;
  --ink-soft: #42443f;
  --muted: #77756c;
  --navy: #101f45;
  --navy-soft: #edf1fb;
  --champagne: #b79b5f;
  --champagne-soft: #f3ead5;
  --champagne-line: rgba(183, 155, 95, 0.28);
  --sage: #e8efe6;
  --sage-ink: #385d3e;
  --rose: #f2e0e4;
  --rose-ink: #9a3447;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --motion-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--canvas-line) 1px, transparent 1px),
    linear-gradient(180deg, rgba(183, 155, 95, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 253, 250, 0.88), transparent 44%),
    var(--canvas);
  background-size: 38px 38px, 38px 38px, 100% 720px, auto;
  font-family:
    "Noto Sans Thai", "Aptos", "SF Pro Text", "Helvetica Neue", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
select,
input {
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid rgba(183, 155, 95, 0.3);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: var(--s3);
  left: var(--s3);
  z-index: 100;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--platinum-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-72px);
}

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

.app-shell {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: var(--s3);
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  align-items: center;
  margin: var(--s3) auto 0;
  padding: var(--s3);
  border: 1px solid rgba(212, 203, 189, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 250, 0.86);
  box-shadow:
    0 24px 80px rgba(34, 31, 24, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(183, 155, 95, 0.55);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--navy);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}

h2 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

h3 {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.section-icon,
.field-badge {
  display: inline-grid;
  place-items: center;
}

.section-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(183, 155, 95, 0.25);
  border-radius: 999px;
  color: var(--champagne);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 234, 213, 0.55));
}

.section-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

.brand-block p,
.detail-heading p,
.section-heading-row span,
label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.icon-button,
.icon-only {
  border: 1px solid var(--platinum);
  border-radius: var(--radius);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s3);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.icon-button svg,
.icon-only svg,
.search-box svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.05;
}

.icon-button:hover,
.icon-only:hover {
  border-color: rgba(183, 155, 95, 0.7);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(34, 31, 24, 0.08);
  transform: translateY(-1px);
}

.icon-button:active,
.icon-only:active {
  transform: translateY(0) scale(0.98);
}

.icon-only {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.workspace {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  padding: var(--s6) var(--s5) var(--s8);
}

.brand-footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  margin: calc(-1 * var(--s5)) auto 0;
  padding: 0 var(--s3) var(--s7);
  color: var(--champagne);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
  text-align: center;
}

.brand-footer span {
  color: var(--navy);
  font-weight: 900;
}

.brand-footer small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.selector-panel {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--platinum);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 250, 0.9);
  box-shadow:
    0 24px 80px rgba(34, 31, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.selector-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(183, 155, 95, 0.18);
  border-radius: calc(var(--radius-xl) - 7px);
  pointer-events: none;
}

.selector-section,
.search-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: var(--s2);
}

.selector-section {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.selector-section h2,
.search-section h2 {
  grid-column: 1 / -1;
  color: var(--navy);
}

.selector-section label:first-of-type {
  grid-column: 1;
}

.selector-section select:first-of-type {
  grid-column: 1;
}

.selector-section label:last-of-type {
  grid-column: 2;
  grid-row: 2;
}

.selector-section select:last-of-type {
  grid-column: 2;
  grid-row: 3;
}

label {
  margin-bottom: -2px;
}

select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--platinum);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

select {
  padding: 0 var(--s3);
}

select:hover,
input:hover,
.search-box:hover {
  border-color: rgba(183, 155, 95, 0.72);
  background: var(--paper);
}

.search-box {
  min-height: 46px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s3);
  border: 1px solid var(--platinum);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.search-box input {
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
}

.search-box input::placeholder {
  color: #9a978e;
}

.detail-panel {
  min-width: 0;
  display: grid;
  gap: var(--s5);
}

.detail-panel.is-entering > .detail-heading,
.detail-panel.is-entering > section {
  animation: surface-rise 520ms var(--motion-ease) both;
}

.detail-panel.is-entering > .detail-heading {
  animation-delay: 0ms;
}

.detail-panel.is-entering > section:nth-of-type(1) {
  animation-delay: 60ms;
}

.detail-panel.is-entering > section:nth-of-type(2) {
  animation-delay: 92ms;
}

.detail-panel.is-entering > section:nth-of-type(3) {
  animation-delay: 124ms;
}

.detail-panel.is-entering > section:nth-of-type(4) {
  animation-delay: 156ms;
}

.detail-panel.is-entering > section:nth-of-type(5) {
  animation-delay: 188ms;
}

.detail-panel.is-entering > section:nth-of-type(6) {
  animation-delay: 220ms;
}

.detail-panel.is-entering > section:nth-of-type(7) {
  animation-delay: 252ms;
}

.detail-panel.is-entering > section:nth-of-type(8) {
  animation-delay: 284ms;
}

.detail-heading,
.dynamic-summary,
.clarity-strip,
.reading-section,
.strategy-section {
  position: relative;
  border: 1px solid var(--platinum);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 250, 0.96);
  box-shadow:
    0 28px 90px rgba(34, 31, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.detail-heading::before,
.dynamic-summary::before,
.reading-section::before,
.strategy-section::before,
.clarity-strip::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(183, 155, 95, 0.16);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}

.detail-heading {
  min-height: 370px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) auto;
  gap: var(--s5);
  align-items: stretch;
  padding: var(--s6);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 239, 0.94)),
    var(--paper);
}

.detail-heading::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -112px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(183, 155, 95, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.card-banner-copy,
.field-graphic,
.detail-heading .icon-only {
  position: relative;
  z-index: 1;
}

.card-banner-copy {
  max-width: 720px;
  align-self: center;
}

.banner-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}

.field-badge {
  grid-auto-flow: column;
  gap: var(--s2);
  min-height: 38px;
  padding: 0 var(--s3);
  border: 1px solid rgba(183, 155, 95, 0.38);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-badge svg {
  width: 15px;
  height: 15px;
}

.detail-heading h2 {
  max-width: 780px;
  margin: var(--s6) 0 var(--s3);
  color: var(--navy);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  text-wrap: balance;
}

.detail-heading p {
  color: var(--champagne);
  font-size: 15px;
  font-weight: 800;
}

.number-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid rgba(183, 155, 95, 0.56);
  border-radius: var(--radius-lg);
  color: var(--navy);
  background:
    linear-gradient(145deg, #ffffff, var(--champagne-soft));
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.detail-heading .icon-only {
  align-self: start;
  border-color: rgba(183, 155, 95, 0.48);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.62);
}

.field-graphic {
  min-height: 280px;
  align-self: stretch;
  border: 1px solid rgba(183, 155, 95, 0.35);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.82), rgba(243, 234, 213, 0.42)),
    var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 70px rgba(34, 31, 24, 0.09);
  overflow: hidden;
}

.field-graphic::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(20, 31, 69, 0.08);
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(90deg, rgba(20, 31, 69, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 31, 69, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.field-ring {
  position: absolute;
  border: 1px solid var(--champagne-line);
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center;
}

.field-ring-outer {
  inset: 32px;
}

.field-ring-inner {
  inset: 78px;
  border-color: rgba(20, 31, 69, 0.14);
}

.field-bridge {
  position: absolute;
  top: 50%;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(183, 155, 95, 0.9), rgba(20, 31, 69, 0.75), transparent);
  transform: rotate(-14deg);
  transform-origin: center;
  box-shadow: 0 0 0 7px rgba(255, 253, 250, 0.62);
}

.detail-panel.is-entering .field-ring-outer {
  animation: field-ring-open 860ms var(--motion-ease) 120ms both;
}

.detail-panel.is-entering .field-ring-inner {
  animation: field-ring-open 760ms var(--motion-ease) 170ms both;
}

.detail-panel.is-entering .field-bridge {
  animation: field-bridge-draw 700ms var(--motion-ease) 250ms both;
}

.trigram-card {
  position: absolute;
  width: 136px;
  min-height: 136px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: var(--s3);
  border: 1px solid rgba(183, 155, 95, 0.4);
  border-radius: var(--radius-lg);
  color: var(--navy);
  background: rgba(255, 253, 250, 0.86);
  box-shadow:
    0 20px 60px rgba(34, 31, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  will-change: transform, opacity;
}

.trigram-card-start {
  left: 26px;
  bottom: 26px;
}

.trigram-card-meeting {
  top: 26px;
  right: 26px;
}

.detail-panel.is-entering .trigram-card-start {
  animation: trigram-start-in 560ms var(--motion-snap) 260ms both;
}

.detail-panel.is-entering .trigram-card-meeting {
  animation: trigram-meeting-in 560ms var(--motion-snap) 320ms both;
}

.trigram-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.trigram-card strong {
  color: var(--navy);
  font-size: 58px;
  font-weight: 500;
  line-height: 0.92;
}

.trigram-card small {
  max-width: 112px;
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.dynamic-summary,
.reading-section,
.strategy-section {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--s5);
  padding: var(--s5);
}

.dynamic-summary {
  border-color: rgba(183, 155, 95, 0.38);
  background:
    linear-gradient(135deg, rgba(243, 234, 213, 0.8), rgba(255, 253, 250, 0.98)),
    var(--paper);
}

.dynamic-summary p {
  max-width: 720px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.45;
  font-weight: 900;
  text-wrap: pretty;
}

.reading-section p,
.energy-columns p,
.leverage-grid p,
.clarity-strip p {
  max-width: 75ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.energy-columns,
.leverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.energy-columns > div,
.leverage-grid > div {
  position: relative;
  min-width: 0;
  padding: var(--s5);
  border: 1px solid var(--platinum);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 28px 90px rgba(34, 31, 24, 0.12);
}

.energy-columns h3,
.leverage-grid h3 {
  position: relative;
  z-index: 1;
}

.energy-signature {
  position: relative;
  z-index: 1;
  min-height: 112px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: var(--s4);
  align-items: center;
  margin: var(--s4) 0 var(--s3);
  padding: var(--s3);
  border: 1px solid rgba(183, 155, 95, 0.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 253, 250, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 44px rgba(34, 31, 24, 0.06);
}

.energy-signature::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(20, 31, 69, 0.06);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.energy-glyph {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 155, 95, 0.34);
  border-radius: var(--radius);
  color: var(--navy);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 234, 213, 0.56));
  font-size: 46px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.energy-signature strong,
.energy-signature small {
  display: block;
}

.energy-signature strong {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  text-wrap: balance;
}

.energy-signature small {
  margin-top: 3px;
  color: var(--champagne);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.energy-signature-start .energy-glyph {
  color: var(--sage-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 239, 230, 0.72));
}

.energy-signature-meeting .energy-glyph {
  color: var(--champagne);
}

.energy-columns > div::before,
.leverage-grid > div::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(183, 155, 95, 0.15);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}

.energy-columns > div:first-child {
  background:
    linear-gradient(145deg, rgba(232, 239, 230, 0.95), rgba(255, 253, 250, 0.96)),
    var(--sage);
}

.energy-columns > div:last-child {
  background:
    linear-gradient(145deg, rgba(243, 234, 213, 0.95), rgba(255, 253, 250, 0.96)),
    var(--champagne-soft);
}

.energy-columns > div:first-child h3 {
  color: var(--sage-ink);
}

.energy-columns > div:last-child h3 {
  color: var(--champagne);
}

.leverage-grid > div:last-child {
  background:
    linear-gradient(145deg, rgba(242, 224, 228, 0.95), rgba(255, 253, 250, 0.96)),
    var(--rose);
}

.leverage-grid > div:last-child h3 {
  color: var(--rose-ink);
}

.energy-columns p,
.leverage-grid p {
  margin-top: var(--s2);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  align-items: center;
  margin-bottom: var(--s4);
}

.section-heading-row span {
  color: var(--champagne);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.strategy-section {
  display: block;
}

.strategy-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s3);
}

.strategy-list::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 26px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(183, 155, 95, 0.45), transparent);
}

.strategy-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px 36px minmax(148px, 188px) 1fr;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4);
  border: 1px solid var(--platinum);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 239, 0.88)),
    var(--paper-soft);
  will-change: transform, opacity;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.strategy-item:hover {
  border-color: rgba(183, 155, 95, 0.58);
  box-shadow: 0 16px 44px rgba(34, 31, 24, 0.075);
  transform: translateY(-1px);
}

.detail-panel.is-entering .strategy-item {
  animation: strategy-row-in 420ms var(--motion-ease) both;
}

.detail-panel.is-entering .strategy-item:nth-child(1) {
  animation-delay: 250ms;
}

.detail-panel.is-entering .strategy-item:nth-child(2) {
  animation-delay: 290ms;
}

.detail-panel.is-entering .strategy-item:nth-child(3) {
  animation-delay: 330ms;
}

.detail-panel.is-entering .strategy-item:nth-child(4) {
  animation-delay: 370ms;
}

.detail-panel.is-entering .strategy-item:nth-child(5) {
  animation-delay: 410ms;
}

.detail-panel.is-entering .strategy-item:nth-child(6) {
  animation-delay: 450ms;
}

.strategy-line {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(183, 155, 95, 0.35);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--navy);
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.detail-panel.is-entering .strategy-line {
  animation: strategy-mark-in 360ms var(--motion-snap) both;
}

.detail-panel.is-entering .strategy-item:nth-child(1) .strategy-line {
  animation-delay: 310ms;
}

.detail-panel.is-entering .strategy-item:nth-child(2) .strategy-line {
  animation-delay: 350ms;
}

.detail-panel.is-entering .strategy-item:nth-child(3) .strategy-line {
  animation-delay: 390ms;
}

.detail-panel.is-entering .strategy-item:nth-child(4) .strategy-line {
  animation-delay: 430ms;
}

.detail-panel.is-entering .strategy-item:nth-child(5) .strategy-line {
  animation-delay: 470ms;
}

.detail-panel.is-entering .strategy-item:nth-child(6) .strategy-line {
  animation-delay: 510ms;
}

.strategy-stage-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(183, 155, 95, 0.32);
  border-radius: 999px;
  color: var(--champagne);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 234, 213, 0.5));
}

.strategy-stage-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.15;
}

.strategy-lens {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 900;
}

.strategy-reading {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.76;
}

.clarity-strip {
  padding: var(--s6);
  color: var(--paper);
  border-color: rgba(183, 155, 95, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%),
    var(--navy);
}

.clarity-strip h3,
.clarity-strip p {
  color: var(--paper);
}

.clarity-strip .section-icon {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--champagne-soft);
  background: rgba(255, 255, 255, 0.08);
}

.clarity-strip h3 {
  position: relative;
  z-index: 1;
}

.clarity-strip p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-top: var(--s2);
  font-size: 29px;
  line-height: 1.35;
  font-weight: 900;
  text-wrap: balance;
}

.toast {
  position: fixed;
  right: var(--s4);
  bottom: var(--s4);
  z-index: 50;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  color: var(--paper);
  background: var(--navy);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes surface-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes field-ring-open {
  0% {
    opacity: 0;
    transform: scale(0.86) rotate(-4deg);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes field-bridge-draw {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scaleX(0.18);
  }
  58% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(-14deg) scaleX(1);
  }
}

@keyframes trigram-start-in {
  0% {
    opacity: 0;
    transform: translate3d(-18px, 16px, 0) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes trigram-meeting-in {
  0% {
    opacity: 0;
    transform: translate3d(18px, -16px, 0) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes strategy-row-in {
  0% {
    opacity: 0;
    transform: translate3d(10px, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes strategy-mark-in {
  0% {
    transform: scale(0.84);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 24px);
    margin-top: var(--s3);
    padding: var(--s3);
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .icon-button {
    flex: 1;
    justify-content: center;
  }

  .workspace {
    padding: var(--s3);
  }

  .selector-panel,
  .selector-section,
  .dynamic-summary,
  .reading-section,
  .energy-columns,
  .leverage-grid {
    grid-template-columns: 1fr;
  }

  .selector-section label:last-of-type,
  .selector-section select:last-of-type {
    grid-column: 1;
    grid-row: auto;
  }

  .detail-heading {
    grid-template-columns: 1fr;
    min-height: 280px;
    padding: var(--s5);
  }

  .detail-heading .icon-only {
    position: absolute;
    top: var(--s5);
    right: var(--s5);
  }

  .detail-heading h2 {
    font-size: 38px;
  }

  .field-graphic {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 20px;
  }

  .brand-block {
    align-items: flex-start;
  }

  .detail-heading {
    min-height: 250px;
    gap: var(--s4);
  }

  .detail-heading h2 {
    margin-top: var(--s5);
    font-size: 29px;
  }

  .number-chip {
    width: 54px;
    height: 54px;
    font-size: 16px;
  }

  .field-badge {
    min-height: 34px;
    padding: 0 var(--s2);
    font-size: 10px;
  }

  .field-graphic {
    min-height: 235px;
  }

  .field-ring-outer {
    inset: 22px;
  }

  .field-ring-inner {
    inset: 60px;
  }

  .trigram-card {
    width: 108px;
    min-height: 108px;
    padding: var(--s2);
  }

  .trigram-card-start {
    left: 16px;
    bottom: 16px;
  }

  .trigram-card-meeting {
    top: 16px;
    right: 16px;
  }

  .trigram-card strong {
    font-size: 43px;
  }

  .trigram-card small {
    max-width: 92px;
    font-size: 10px;
  }

  .energy-signature {
    min-height: 96px;
    grid-template-columns: 66px 1fr;
    gap: var(--s3);
  }

  .energy-glyph {
    width: 66px;
    height: 66px;
    font-size: 36px;
  }

  .energy-signature strong {
    font-size: 18px;
  }

  .energy-signature small {
    font-size: 10px;
  }

  .dynamic-summary,
  .reading-section,
  .strategy-section,
  .clarity-strip,
  .energy-columns > div,
  .leverage-grid > div {
    padding: var(--s4);
  }

  .dynamic-summary p {
    font-size: 20px;
  }

  .clarity-strip p {
    font-size: 22px;
  }

  .strategy-item {
    grid-template-columns: 44px 34px 1fr;
    gap: var(--s3);
  }

  .strategy-line {
    width: 44px;
    height: 44px;
  }

  .strategy-stage-icon {
    width: 34px;
    height: 34px;
  }

  .strategy-reading {
    grid-column: 1 / -1;
  }
}

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