:root {
  color-scheme: dark;
  --bg: #151412;
  --rail: #201d19;
  --panel: #28231e;
  --panel-2: #f3ead8;
  --ink: #f7efe2;
  --ink-dark: #161411;
  --muted: #b9aa95;
  --line: rgba(247, 239, 226, 0.13);
  --gold: #d7a84f;
  --red: #bf4d3c;
  --teal: #4ba3a1;
  --green: #7e9e5b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(191, 77, 60, 0.22), transparent 30%),
    linear-gradient(135deg, #171411 0%, #201914 48%, #101615 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(32, 29, 25, 0.86);
  padding: 24px;
  backdrop-filter: blur(22px);
}

.brand {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.seal {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(215, 168, 79, 0.55);
  background: #14110e;
  color: var(--gold);
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 0 0 6px rgba(215, 168, 79, 0.07);
}

.brand h1 {
  font-size: 26px;
  letter-spacing: 0;
}

.brand p,
.mini-panel,
.offer p,
.core-copy,
.card-meta {
  color: var(--muted);
}

.input-stack,
.mini-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: #d8c9b4;
  font-size: 12px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(247, 239, 226, 0.16);
  border-radius: 6px;
  background: rgba(10, 9, 8, 0.5);
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}

input:focus {
  border-color: rgba(215, 168, 79, 0.75);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary,
.log-input button,
.tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--gold);
  color: #17120b;
  font-weight: 900;
}

.mini-panel {
  margin-top: 16px;
}

.panel-title,
.hero-top,
.chart-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title h2 {
  color: var(--ink);
  font-size: 15px;
}

.panel-title span,
.score-pill,
.mode,
.chart-head span,
.offer span,
.badge {
  border: 1px solid rgba(215, 168, 79, 0.38);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.log-input {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.history {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history li {
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  color: #e7dac7;
  font-size: 13px;
  line-height: 1.35;
}

.stage {
  min-width: 0;
  padding: 30px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.overline {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.masthead h2 {
  max-width: 760px;
  margin-top: 8px;
  font-size: 38px;
  line-height: 1.08;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px 11px;
  color: #d9cbb8;
  font-size: 12px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-reading,
.chart-panel,
.reading-card,
.offer,
.calendar-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-reading {
  min-height: 376px;
  background:
    linear-gradient(145deg, rgba(243, 234, 216, 0.98), rgba(220, 203, 173, 0.92)),
    #f3ead8;
  color: var(--ink-dark);
  padding: 28px;
}

.hero-reading .mode {
  border-color: rgba(22, 20, 17, 0.25);
  color: #6c4a0d;
}

.score-pill {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: #17120d;
  color: var(--gold);
  font-size: 20px;
}

.hero-reading h3 {
  max-width: 820px;
  margin-top: 46px;
  font-size: 40px;
  line-height: 1.08;
}

.hero-reading p {
  max-width: 760px;
  margin-top: 16px;
  color: #4a4034;
  font-size: 17px;
  line-height: 1.55;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.evidence {
  border-top: 1px solid rgba(22, 20, 17, 0.18);
  padding-top: 12px;
}

.evidence strong {
  display: block;
  color: #17120d;
  font-size: 22px;
}

.evidence span {
  display: block;
  margin-top: 5px;
  color: #6d6254;
  font-size: 12px;
  font-weight: 800;
}

.chart-panel {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.chart-head h3 {
  font-size: 18px;
}

.element-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.planet-map {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #161a19;
  background-size: 30px 30px;
}

.planet-map span {
  position: absolute;
  width: 2px;
  height: 230px;
  background: var(--gold);
  opacity: 0.82;
  transform: rotate(24deg);
}

.planet-map span:nth-child(1) {
  left: 16%;
  top: -22px;
}

.planet-map span:nth-child(2) {
  left: 44%;
  top: -16px;
  background: var(--teal);
  transform: rotate(-18deg);
}

.planet-map span:nth-child(3) {
  left: 68%;
  top: -30px;
  background: var(--red);
  transform: rotate(12deg);
}

.planet-map span:nth-child(4) {
  left: 82%;
  top: -20px;
  background: var(--green);
  transform: rotate(-28deg);
}

.planet-map strong {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 18px 0;
}

.tabs button {
  min-width: 92px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9cbb8;
  border-color: var(--line);
}

.tabs button.active {
  background: var(--red);
  color: #fff;
}

.reading-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reading-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  min-height: 192px;
  background: rgba(255, 255, 255, 0.052);
  padding: 16px;
}

.glyph {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--gold);
  font-size: 30px;
  font-weight: 950;
}

.reading-card h3 {
  font-size: 19px;
}

.reading-card p {
  margin-top: 8px;
  color: #d8cbb8;
  line-height: 1.5;
}

.micro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.micro-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.commerce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.offer {
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.052);
  padding: 18px;
}

.offer.featured {
  background: linear-gradient(145deg, rgba(191, 77, 60, 0.22), rgba(255, 255, 255, 0.06));
}

.offer h3 {
  font-size: 22px;
}

.offer p {
  line-height: 1.5;
}

.offer strong {
  color: var(--gold);
  font-size: 20px;
}

.calendar-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.052);
  padding: 20px;
}

.calendar-band h2 {
  margin-top: 8px;
  font-size: 24px;
}

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

.calendar div {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.calendar strong {
  display: block;
  margin-bottom: 9px;
  color: var(--teal);
}

.calendar p {
  color: #c7b8a4;
  font-size: 13px;
  line-height: 1.42;
}

.fortune-report {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.038)),
    rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 20px;
}

.fortune-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fortune-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 16px;
}

.fortune-item span,
.fortune-item strong,
.fortune-item em {
  display: block;
}

.fortune-item span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.fortune-item strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  word-break: keep-all;
}

.fortune-item em {
  margin-top: 8px;
  color: var(--teal);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.fortune-item p {
  color: #d8cbb8;
  font-size: 15px;
  line-height: 1.72;
}

.personal-report {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 20px;
}

.acg-report {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(75, 163, 161, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 20px;
}

.acg-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
}

.acg-map {
  min-height: 100%;
}

.acg-cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.acg-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.acg-column h3 {
  color: var(--gold);
  font-size: 15px;
}

.acg-city {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 13px;
}

.acg-city strong,
.acg-city span,
.acg-city em {
  display: block;
}

.acg-city strong {
  font-size: 16px;
}

.acg-city span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.acg-city em {
  color: var(--gold);
  font-style: normal;
  font-weight: 950;
}

.acg-city p {
  grid-column: 1 / -1;
  color: #d8cbb8;
  font-size: 13px;
  line-height: 1.5;
}

.acg-city.caution {
  border-color: rgba(191, 77, 60, 0.34);
}

#profileLine {
  color: var(--gold);
  font-weight: 900;
}

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.narrative-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  padding: 16px;
}

.narrative-grid h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 16px;
}

.narrative-grid p {
  color: #d8cbb8;
  font-size: 14px;
  line-height: 1.72;
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.authority-card {
  min-height: 244px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.card-kicker span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
}

.card-kicker strong {
  color: var(--muted);
  font-size: 12px;
}

.pillar-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pillar {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid rgba(247, 239, 226, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(215, 168, 79, 0.09), rgba(0, 0, 0, 0.2)),
    #171410;
}

.pillar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pillar strong {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.pillar em {
  color: var(--gold);
  font-style: normal;
  font-size: 28px;
  font-weight: 900;
}

.wheel-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: center;
}

.wheel-card p {
  color: #d8cbb8;
  line-height: 1.5;
}

.chart-wheel {
  position: relative;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(215, 168, 79, 0.75);
  background:
    conic-gradient(from 0deg, rgba(215, 168, 79, 0.22), transparent 18deg, rgba(75, 163, 161, 0.16) 44deg, transparent 70deg, rgba(191, 77, 60, 0.18) 110deg, transparent 146deg, rgba(215, 168, 79, 0.14) 210deg, transparent 260deg, rgba(75, 163, 161, 0.16) 318deg, rgba(215, 168, 79, 0.22)),
    radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.14));
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0.18);
}

.chart-wheel .axis,
.chart-wheel .orbit,
.chart-wheel i,
.chart-wheel b {
  position: absolute;
}

.axis-v {
  left: 50%;
  top: 10px;
  width: 1px;
  height: calc(100% - 20px);
  background: rgba(247, 239, 226, 0.2);
}

.axis-h {
  top: 50%;
  left: 10px;
  width: calc(100% - 20px);
  height: 1px;
  background: rgba(247, 239, 226, 0.2);
}

.orbit {
  inset: 34px;
  border: 1px solid rgba(247, 239, 226, 0.14);
  border-radius: 50%;
}

.orbit-2 {
  inset: 66px;
}

.chart-wheel i {
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px;
  transform: rotate(var(--a)) translateX(86px) rotate(calc(-1 * var(--a)));
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #17120d;
  color: var(--gold);
  border: 1px solid rgba(215, 168, 79, 0.45);
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
}

.chart-wheel b {
  inset: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.engine-ledger {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.engine-ledger li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.engine-ledger strong {
  color: var(--ink);
  font-size: 13px;
}

.engine-ledger span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.synthesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.synthesis-main,
.overview-main,
.signal-panel,
.overview-side,
.action-card,
.analysis-shell,
.analysis-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.synthesis-main {
  min-height: 390px;
  background:
    linear-gradient(145deg, rgba(243, 234, 216, 0.98), rgba(221, 204, 171, 0.93)),
    #f3ead8;
  color: var(--ink-dark);
  padding: 30px;
}

.synthesis-main .mode {
  border-color: rgba(22, 20, 17, 0.25);
  color: #6c4a0d;
}

.synthesis-main h3 {
  max-width: 880px;
  margin-top: 54px;
  font-size: 42px;
  line-height: 1.06;
}

.synthesis-main p {
  max-width: 800px;
  margin-top: 16px;
  color: #493f33;
  font-size: 18px;
  line-height: 1.55;
}

.overview-main {
  min-height: 410px;
  background:
    linear-gradient(145deg, rgba(243, 234, 216, 0.99), rgba(224, 208, 178, 0.95)),
    #f3ead8;
  color: var(--ink-dark);
  padding: 34px;
}

.overview-main .mode {
  border-color: rgba(22, 20, 17, 0.25);
  color: #6c4a0d;
}

.overview-main h3 {
  max-width: 900px;
  margin-top: 58px;
  font-size: 44px;
  line-height: 1.08;
}

.overview-main p {
  max-width: 820px;
  margin-top: 18px;
  color: #4a4034;
  font-size: 18px;
  line-height: 1.65;
}

.verdict-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.verdict-meta div {
  border-top: 1px solid rgba(22, 20, 17, 0.2);
  padding-top: 12px;
}

.verdict-meta strong {
  display: block;
  color: #17120d;
  font-size: 25px;
  line-height: 1.1;
  word-break: keep-all;
}

.verdict-meta span {
  display: block;
  margin-top: 6px;
  color: #6d6254;
  font-size: 12px;
  font-weight: 900;
}

.signal-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.overview-side {
  display: grid;
  align-content: start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.life-axes {
  display: grid;
  gap: 12px;
}

.life-axis {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.life-axis strong {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgba(215, 168, 79, 0.36);
  border-radius: 8px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.life-axis h4 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
}

.life-axis p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signal-stack {
  display: grid;
  gap: 12px;
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.signal-row strong,
.signal-row span {
  display: block;
}

.signal-row strong {
  font-size: 15px;
}

.signal-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signal-row em {
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.signal-meter {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
}

.action-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.question-report {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 20px;
}

.question-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

.question-main {
  border: 1px solid rgba(215, 168, 79, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(191, 77, 60, 0.2), rgba(0, 0, 0, 0.1));
  padding: 18px;
}

.question-main span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
}

.question-main h3 {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.18;
}

.question-main p {
  margin-top: 12px;
  color: #d8cbb8;
  font-size: 16px;
  line-height: 1.58;
}

.action-card {
  display: grid;
  gap: 10px;
  min-height: 162px;
  background: rgba(255, 255, 255, 0.052);
  padding: 18px;
}

.action-card.primary-action {
  background: linear-gradient(145deg, rgba(75, 163, 161, 0.2), rgba(255, 255, 255, 0.06));
}

.action-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
}

.action-card h3 {
  font-size: 24px;
  line-height: 1.18;
}

.action-card p {
  color: var(--muted);
  line-height: 1.48;
}

.analysis-shell {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin-top: 7px;
  font-size: 26px;
}

.section-head > p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}

.analysis-groups {
  display: grid;
  gap: 12px;
}

.analysis-group {
  background: rgba(0, 0, 0, 0.15);
  padding: 16px;
  box-shadow: none;
}

.analysis-group header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.analysis-group h3 {
  font-size: 20px;
}

.analysis-group header p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.analysis-group header strong {
  flex: 0 0 auto;
  max-width: 330px;
  color: var(--gold);
  text-align: right;
  font-size: 14px;
  line-height: 1.35;
}

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

.method-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.glyph.small {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.method-row h4 {
  margin: 0;
  font-size: 15px;
}

.method-row p {
  margin-top: 6px;
  color: #d8cbb8;
  font-size: 13px;
  line-height: 1.42;
}

@media (max-width: 1120px) {
  .app {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
  }

  .hero-grid,
  .synthesis-grid,
  .overview-grid,
  .authority-grid,
  .acg-layout,
  .action-grid,
  .question-grid,
  .commerce-grid,
  .calendar-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rail,
  .stage {
    padding: 18px;
  }

  .masthead {
    display: grid;
  }

  .masthead h2,
  .hero-reading h3,
  .overview-main h3,
  .synthesis-main h3 {
    font-size: 30px;
  }

  .split,
  .pillar-table,
  .fortune-summary,
  .acg-cities,
  .narrative-grid,
  .method-list,
  .reading-list,
  .evidence-grid,
  .verdict-meta,
  .calendar {
    grid-template-columns: 1fr;
  }

  .reading-card {
    grid-template-columns: 1fr;
  }

  .fortune-item {
    grid-template-columns: 1fr;
  }

  .wheel-card {
    grid-template-columns: 1fr;
  }

  .chart-wheel {
    width: min(240px, 100%);
    justify-self: center;
  }

  .section-head,
  .analysis-group header {
    display: grid;
  }

  .analysis-group header strong {
    max-width: none;
    text-align: left;
  }
}

/* ---------- 엔진 연동 추가 요소 ---------- */
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(247, 239, 226, 0.16);
  border-radius: 6px;
  background: rgba(10, 9, 8, 0.5);
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}

select:focus {
  border-color: rgba(215, 168, 79, 0.75);
}

.form-status {
  margin: 0;
  font-size: 12px;
  color: #d7a84f;
  min-height: 14px;
}

.form-status.error {
  color: #e07a6a;
}

.fortune-item .advice {
  margin-top: 8px;
  color: #d7a84f;
  font-size: 12.5px;
}

.narrative-grid .takeaway {
  margin-top: 8px;
  color: #d7a84f;
  font-size: 12.5px;
}

.method-row h4 .confidence {
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  color: rgba(247, 239, 226, 0.45);
  margin-left: 6px;
}

.calendar div.caution strong {
  color: #e07a6a;
}

.time-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
