@font-face {
  font-family: "Noto Serif Hebrew";
  src: url("./assets/NotoSerifHebrew-Variable.ttf?v=20260805.11") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

:root {
  --ink: #f4e6bd;
  --ink-soft: #b4a57e;
  --paper: #090909;
  --paper-deep: #19150d;
  --line: #40351e;
  --coral: #d6ad55;
  --coral-dark: #f0ca75;
  --mint: #d6ad55;
  --blue: #b78a39;
  --yellow: #f0ca75;
  --white: #f7edd2;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Microsoft YaHei', 'Noto Sans SC', Arial, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, input, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button[disabled] { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(237, 104, 79, .35); outline-offset: 2px; }

body.cover-open { overflow: hidden; }
.entry-cover { position: fixed; inset: 0; z-index: 100; min-height: 100vh; min-height: 100svh; overflow: hidden; color: var(--ink); background: #050505; isolation: isolate; }
.entry-cover::after { content: ''; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 62%; background: rgba(5,5,5,.94); }
.entry-cover.is-leaving { opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s ease; }
.entry-seal-wrap { position: absolute; top: 50%; right: -7vw; width: min(74vw, 1040px); aspect-ratio: 1; transform: translateY(-50%); display: grid; place-items: center; }
.entry-seal-wrap::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(214,173,85,.13); box-shadow: inset 0 0 0 1px rgba(240,202,117,.2), 0 0 80px rgba(214,173,85,.08); }
.entry-seal { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: .72; filter: saturate(.72) sepia(.12) drop-shadow(0 0 28px rgba(214,173,85,.18)); animation: seal-arrival 1.1s ease both; }
.entry-content { position: relative; z-index: 1; min-height: 100svh; width: min(620px, 62vw); padding: 8vh 0 7vh max(34px, 7vw); display: flex; flex-direction: column; justify-content: center; }
.cover-kicker { margin: 0 0 18px; color: var(--coral-dark); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.entry-content > h1 { margin: 0; color: var(--white); font-family: var(--display); font-size: 96px; font-weight: 400; line-height: .98; letter-spacing: 0; }
.cover-daily { max-width: 520px; margin-top: 46px; padding: 5px 0 5px 20px; border-left: 1px solid var(--coral); }
.cover-daily > span { color: var(--ink-soft); font-size: 11px; }
.cover-daily blockquote { margin: 12px 0 0; color: var(--ink); font-family: var(--display); font-size: 25px; line-height: 1.55; }
.cover-daily small { display: block; min-height: 16px; margin-top: 10px; color: #8b836e; font-size: 10px; }
.entry-button { width: 190px; min-height: 50px; margin-top: 42px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--coral); border-radius: 4px; color: #161108; background: var(--coral); font-weight: 700; }
.entry-button:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.entry-button:disabled { color: #6d6249; border-color: #403922; background: #17150f; opacity: 1; }
.entry-button span:last-child { font-size: 20px; }
.entry-cover::after, .particle-field, .cover-vignette, .entry-seal-wrap, .seal-orbit { pointer-events: none; }
.entry-button { position: relative; z-index: 2; pointer-events: auto; }
.license-gate { position: relative; z-index: 2; width: min(100%, 430px); margin-top: 22px; }
.license-form { text-align: left; }
.license-form > label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 10px; }
.license-controls { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 7px; }
.license-controls input { min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 0 11px; color: var(--white); background: rgba(7,7,7,.88); font-family: Consolas, monospace; font-size: 13px; letter-spacing: 0; text-transform: uppercase; }
.license-controls button { height: 44px; border: 1px solid var(--coral); border-radius: 4px; color: var(--coral-dark); background: rgba(214,173,85,.07); font-size: 12px; }
.license-controls button:hover { color: #161108; background: var(--coral); }
.license-form.is-verified > label, .license-form.is-verified .license-controls { display: none; }
.license-status { min-height: 17px; margin: 7px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.license-status.is-success { color: #a8c69f; }
.license-status.is-error { color: #e2a27a; }
.license-gate > small { display: block; margin-top: 4px; color: #746c58; font-size: 9px; line-height: 1.45; }

.hebrew-text {
  font-family: "Noto Serif Hebrew", serif;
  unicode-bidi: bidi-override;
  direction: rtl;
}

@media (pointer: coarse) {
  button, input, select { min-height: 44px; }
}
@keyframes seal-arrival { from { opacity: 0; transform: scale(.94) rotate(-2deg); } to { opacity: .72; transform: scale(1) rotate(0); } }

.app-shell { max-width: 1440px; margin: 0 auto; padding: 0 42px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--coral); border-radius: 50%; color: var(--coral); font-size: 18px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 9px; letter-spacing: .18em; }
.top-actions { display: flex; gap: 4px; }
.quiet-button { min-height: 36px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); background: transparent; font-size: 12px; }
.quiet-button:hover, .quiet-button.is-current { color: var(--ink); border-bottom-color: var(--coral); }
.quiet-button span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: var(--paper-deep); font-size: 10px; }

.masthead { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 58px 0 42px; }
.kicker, .section-label { margin: 0 0 12px; color: var(--coral-dark); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.masthead h1 { max-width: 700px; margin: 0; font-family: var(--display); font-size: clamp(34px, 4.3vw, 62px); font-weight: 500; line-height: 1.05; letter-spacing: 0; }
.masthead-note { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; white-space: nowrap; }
.masthead-note em { color: var(--coral-dark); font-family: var(--display); font-size: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(117, 210, 176, .2); }

.studio-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 20px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: 6px; background: #11100d; }
.intake-panel { padding: 28px; display: flex; flex-direction: column; }
.chart-panel { padding: 28px 28px 24px; background: #050505; color: var(--white); border-color: #5b4621; }
.panel-heading, .section-bar { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.panel-heading h2, .section-bar h2 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 500; line-height: 1.1; }
.panel-index { color: var(--coral); font-family: var(--display); font-size: 24px; }
.chart-panel .section-label { color: var(--mint); }
.chart-panel .panel-heading h2 { color: var(--white); }
.day-night { padding: 6px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: var(--mint); font-size: 10px; letter-spacing: .1em; }

.field-grid { display: grid; gap: 16px; margin-top: 28px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: 1.05fr 1fr 1fr; }
.field { display: grid; gap: 8px; min-width: 0; color: var(--ink-soft); font-size: 11px; }
.field span { display: flex; justify-content: space-between; gap: 8px; }
.field small { color: #84908a; font-size: 10px; }
.field input, .field select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #0a0a0a; font-size: 13px; }
.field input::placeholder { color: #8c7d58; }
.field input:hover, .field select:hover { border-color: var(--coral); }
.field select:disabled { color: #756b52; cursor: not-allowed; opacity: .72; }
.location-picker { min-width: 0; margin: 22px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 4px; }
.location-picker legend { padding: 0 7px; color: var(--ink); font-size: 11px; }
.location-picker legend small { margin-left: 6px; color: var(--coral-dark); font-size: 9px; }
.location-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.location-count { display: block; margin-top: 11px; color: #80765e; font-size: 9px; line-height: 1.5; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 34px; }
.form-hint { max-width: 240px; margin: 0; color: #7a8580; font-size: 11px; line-height: 1.55; }
.form-actions { display: flex; align-items: center; gap: 10px; }
.text-button { border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; }
.text-button:hover { color: var(--coral-dark); }
.primary-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--coral); border-radius: 4px; background: var(--coral); color: #161108; font-size: 12px; font-weight: 700; }
.primary-button:hover { border-color: var(--coral-dark); background: var(--coral-dark); }
.primary-button span { margin-right: 5px; }
.form-status { min-height: 18px; margin: 14px 0 0; color: var(--coral-dark); font-size: 11px; }
.form-status.is-success { color: var(--coral-dark); }
.coordinates-preview { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); background: #0a0a0a; }
.coordinates-mark { color: var(--coral); font-size: 18px; }
.coordinates-preview span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.coordinates-preview strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.coordinates-preview small { color: var(--ink-soft); font-size: 10px; }
.coordinates-preview b { margin-left: auto; color: var(--coral-dark); font-family: var(--display); font-size: 14px; font-weight: 500; }

.chart-wrap { position: relative; width: min(100%, 500px); margin: 18px auto 8px; aspect-ratio: 1; }
#chartCanvas { display: block; width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: rgba(255,255,255,.42); font-family: var(--display); font-size: 17px; line-height: 1.45; pointer-events: none; }
.chart-empty.is-hidden { display: none; }
.point-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; }
.point-card { min-width: 0; }
.point-card .point-name { display: block; color: rgba(255,255,255,.52); font-size: 10px; }
.point-card .point-value { display: block; margin-top: 5px; color: var(--white); font-family: var(--display); font-size: 15px; white-space: nowrap; }
.point-card .point-meta { display: block; margin-top: 4px; color: var(--mint); font-size: 9px; }

.guardian-result { margin-top: 20px; padding: 28px; border-color: #6a5124; background: #0b0a08; }
.guardian-heading { align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.guardian-heading .section-label { color: var(--coral-dark); }
.guardian-source { color: var(--coral-dark); font-family: var(--display); font-size: 12px; letter-spacing: .08em; }
.guardian-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--line); }
.guardian-name-block { min-width: 0; padding: 24px 22px 22px; background: #0b0a08; }
.guardian-label { display: block; color: var(--ink-soft); font-size: 10px; letter-spacing: .12em; }
.guardian-name-block > strong { display: block; margin-top: 11px; color: var(--coral-dark); font-family: var(--display); font-size: clamp(26px, 4vw, 42px); font-weight: 500; letter-spacing: .06em; overflow-wrap: anywhere; }
.pronunciation-label { display: block; margin-top: 18px; color: var(--ink-soft); font-size: 9px; letter-spacing: .1em; }
.vocalized-name { display: block; margin-top: 6px; color: var(--white); font-family: var(--display); font-size: 20px; font-style: normal; letter-spacing: .05em; overflow-wrap: anywhere; }
.hebrew-variant { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(214,173,85,.18); }
.hebrew-variant > small { display: block; color: var(--ink-soft); font-size: 9px; }
.hebrew-name { display: flex !important; align-items: baseline; gap: 9px; color: var(--coral-dark); font-family: "Noto Serif Hebrew", serif; direction: ltr; unicode-bidi: isolate; letter-spacing: 0 !important; }
.hebrew-name bdi { direction: rtl; unicode-bidi: isolate; }
.hebrew-el { color: var(--coral-dark); }
.guardian-audit { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.guardian-audit-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: 10px; letter-spacing: .08em; }
.guardian-audit-head code { color: var(--coral-dark); font-family: Consolas, monospace; font-size: 11px; letter-spacing: .04em; }
.guardian-position-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.guardian-position { min-width: 0; padding: 11px 10px; border: 1px solid var(--line); background: #080807; }
.guardian-position span, .guardian-position strong, .guardian-position small { display: block; }
.guardian-position span { color: var(--ink-soft); font-size: 9px; }
.guardian-position strong { margin-top: 5px; color: var(--ink); font-family: var(--display); font-size: 14px; font-weight: 500; }
.guardian-position small { margin-top: 5px; color: var(--coral-dark); font-size: 11px; }
.table-guardian { color: var(--coral-dark); font-family: var(--display); font-size: 14px; }

.sigil-section, .analysis-section { margin-top: 20px; padding: 28px; background: #070706; }
.sigil-heading, .analysis-heading { align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--coral-dark); background: transparent; font-size: 19px; line-height: 1; }
.icon-button:hover { border-color: var(--coral-dark); background: rgba(214,173,85,.08); }
.sigil-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(240px, .45fr); gap: 36px; align-items: center; padding-top: 24px; }
.sigil-stage { position: relative; width: min(100%, 680px); aspect-ratio: 1; overflow: hidden; margin: 0 auto; background: #070706; }
.sigil-stage img, #sigilCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sigil-stage img { display: block; opacity: .28; transition: opacity .7s ease, filter .7s ease; }
#sigilCanvas { overflow: visible; }
.sigil-path-shadow, .sigil-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sigil-path-shadow { stroke: rgba(0,0,0,.72); stroke-width: 13; }
.sigil-path { stroke: #f0ca75; stroke-width: 5; filter: drop-shadow(0 0 7px rgba(240,202,117,.8)); }
.sigil-marker { opacity: 0; fill: #070706; stroke: #f0ca75; stroke-width: 3; transition: opacity .35s ease; }
.sigil-marker-label { opacity: 0; fill: #f7edd2; font-family: Georgia, serif; font-size: 22px; text-anchor: middle; dominant-baseline: central; transition: opacity .35s ease; }
.sigil-cursor { fill: #fff4d3; stroke: #d6ad55; stroke-width: 4; filter: drop-shadow(0 0 10px rgba(240,202,117,.9)); opacity: 0; }
.sigil-stage.is-drawing .sigil-cursor { opacity: 1; }
.sigil-stage.is-complete img { opacity: .68; filter: drop-shadow(0 0 8px rgba(214,173,85,.22)); }
.sigil-stage.is-complete .sigil-marker, .sigil-stage.is-complete .sigil-marker-label { opacity: 1; }
.sigil-details { min-width: 0; border-left: 1px solid var(--line); padding-left: 28px; }
.sigil-sequence { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; color: var(--coral-dark); font-family: "Noto Serif Hebrew", serif; font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.sigil-sequence-step { display: inline-flex; align-items: center; gap: 8px; direction: ltr; white-space: nowrap; }
.sigil-sequence-glyph { direction: rtl; unicode-bidi: isolate; }
.sigil-sequence-arrow { font-family: Arial, sans-serif; font-size: .72em; }
.sigil-details p { margin: 14px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

.analysis-section { background: #100e09; }
.analysis-heading .primary-button[disabled] { cursor: wait; opacity: .55; }
.analysis-status { min-height: 18px; margin: 16px 0 0; color: var(--ink-soft); font-size: 11px; }
.analysis-status.is-error { color: #e2a27a; }
.analysis-content { margin-top: 18px; }
.analysis-lead { max-width: 820px; }
.analysis-lead strong { display: block; margin-top: 8px; color: var(--coral-dark); font-family: var(--display); font-size: 27px; font-weight: 500; }
.analysis-lead p { margin: 10px 0 0; color: var(--ink); font-size: 13px; line-height: 1.75; }
.forecast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line); }
.forecast-grid > div { min-width: 0; padding: 16px; background: #0a0907; }
.forecast-grid span { color: var(--coral-dark); font-family: var(--display); font-size: 15px; }
.forecast-grid p { margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.65; }
.analysis-content blockquote { margin: 22px 0 0; padding: 15px 18px; border-left: 2px solid var(--coral-dark); color: var(--white); background: rgba(214,173,85,.06); font-family: var(--display); font-size: 15px; line-height: 1.7; }
.analysis-meta { margin: 12px 0 0; color: var(--ink-soft); font-size: 9px; letter-spacing: .06em; }

.message-section, .compatibility-section { margin-top: 20px; padding: 28px; background: #0b0a08; }
.message-heading, .compatibility-heading { align-items: end; }
.message-library-count, .compatibility-heading small { color: var(--ink-soft); font-size: 10px; }
.message-workbench { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.prayer-column { min-width: 0; padding-right: 32px; border-right: 1px solid var(--line); }
.prayer-notice { margin: 0 0 18px; color: var(--white); font-family: var(--display); font-size: 16px; line-height: 1.75; }
.prayer-list details { border-top: 1px solid rgba(214,173,85,.24); }
.prayer-list details:last-child { border-bottom: 1px solid rgba(214,173,85,.24); }
.prayer-list summary { padding: 13px 2px; color: var(--coral-dark); font-size: 12px; cursor: pointer; }
.prayer-list p { margin: 0; padding: 0 2px 16px; color: var(--ink-soft); font-family: var(--display); font-size: 13px; line-height: 1.85; }
.prayer-confirm { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--ink); font-size: 12px; }
.prayer-confirm input { width: 17px; height: 17px; accent-color: var(--coral); }
.listen-button { margin-top: 16px; }
.message-result-column { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.message-result { margin: 18px 0 0; color: var(--white); font-family: var(--display); font-size: 31px; line-height: 1.6; }
.message-result.is-revealing { animation: message-reveal .75s ease both; }
.message-status, .guidance-status, .compatibility-status { min-height: 18px; margin: 16px 0 0; color: var(--ink-soft); font-size: 10px; }
.message-status.is-error, .guidance-status.is-error, .compatibility-status.is-error { color: #e2a27a; }
@keyframes message-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.guidance-section { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.guidance-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.guidance-toolbar h3 { margin: 7px 0 0; font-family: var(--display); font-size: 23px; font-weight: 500; }
.guidance-controls { display: flex; align-items: end; gap: 10px; }
.compact-field { display: grid; gap: 7px; min-width: 210px; color: var(--ink-soft); font-size: 10px; }
.compact-field select { width: 100%; height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #080807; }
.guidance-content { margin-top: 18px; }
.color-guidance { display: grid; grid-template-columns: 130px minmax(180px, .42fr) minmax(240px, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(214,173,85,.2); border-bottom: 1px solid rgba(214,173,85,.2); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.color-swatch { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 12px; }
.color-swatch i { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); }
.swatch-vermilion { background: #b74332; }
.swatch-warm-gold { background: #d6ad55; }
.swatch-moss { background: #66755a; }
.swatch-champagne { background: #d8c78d; }
.swatch-sky { background: #7fa7ae; }
.swatch-silver-white { background: #d8dddc; }
.swatch-moon-white { background: #e4e0d4; }
.swatch-pine-blue { background: #466d73; }
.swatch-sun-gold { background: #d9a441; }
.swatch-crimson { background: #8e342d; }
.swatch-sage { background: #829179; }
.swatch-rice-white { background: #e7e0cf; }
.swatch-soft-pink { background: #c99ba0; }
.swatch-pearl { background: #e3e0d8; }
.swatch-wine { background: #713a42; }
.swatch-bronze { background: #b58b48; }
.swatch-cobalt { background: #3e5e84; }
.swatch-amber { background: #c58c3a; }
.swatch-ink-green { background: #314e45; }
.swatch-stone { background: #8a8b85; }
.swatch-electric-blue { background: #547ea2; }
.swatch-silver-gray { background: #b9c0c3; }
.swatch-sea-blue { background: #3d6f78; }
.swatch-soft-violet { background: #87728f; }
.color-guidance > p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.guidance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--line); }
.guidance-grid > div { min-width: 0; padding: 16px; background: #080807; }
.guidance-grid span, .guidance-evidence > span { color: var(--coral-dark); font-family: var(--display); font-size: 15px; }
.guidance-grid p { margin: 9px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; }
.guidance-evidence { display: grid; grid-template-columns: 150px 1fr; gap: 18px; margin-top: 18px; }
.guidance-evidence ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.guidance-disclaimer, .compatibility-disclaimer { margin: 14px 0 0; color: #7f7b6e; font-size: 9px; line-height: 1.6; }

.compatibility-controls { display: grid; grid-template-columns: minmax(180px, 1fr) 36px minmax(180px, 1fr) auto; gap: 14px; align-items: end; padding-top: 24px; border-top: 1px solid var(--line); }
.compatibility-link { height: 42px; display: grid; place-items: center; color: var(--coral-dark); font-size: 20px; }
.compatibility-result { display: grid; grid-template-columns: 190px 1fr; gap: 28px; margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.compatibility-score { min-height: 160px; display: flex; flex-direction: column; justify-content: center; padding-right: 24px; border-right: 1px solid var(--line); }
.compatibility-score strong { color: var(--coral-dark); font-family: var(--display); font-size: 72px; font-weight: 400; line-height: 1; }
.compatibility-score span { margin-top: 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.compatibility-reading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.compatibility-reading > div { min-width: 0; padding: 16px; background: #080807; }
.compatibility-reading span { color: var(--coral-dark); font-family: var(--display); font-size: 15px; }
.compatibility-reading p { margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; }
.compatibility-aspects { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.aspect-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); font-size: 10px; }
.aspect-chip.is-harmony { color: #b8cda4; border-color: #425339; }
.aspect-chip.is-growth { color: #ddb08d; border-color: #604332; }
.compatibility-disclaimer { grid-column: 1 / -1; }

.records-section { margin: 72px 0 0; }
.section-bar { align-items: end; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.section-meta { margin: 0; color: var(--ink-soft); font-size: 11px; }
.records-table-wrap { overflow-x: auto; border-bottom: 1px solid var(--line); }
table { width: 100%; min-width: 980px; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
th { color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
td { color: var(--ink); }
td:first-child { font-weight: 700; }
tbody tr:hover { background: rgba(214, 173, 85, .08); }
.table-point { font-family: var(--display); font-size: 14px; }
.table-sub { display: block; margin-top: 3px; color: var(--ink-soft); font-family: var(--body); font-size: 9px; }
.empty-cell { padding: 30px 12px; color: var(--ink-soft); text-align: center; }

.footer { display: flex; justify-content: space-between; gap: 18px; margin: 44px 0 30px; color: #87918c; font-size: 9px; letter-spacing: .12em; }

@media (max-width: 900px) {
  .app-shell { padding: 0 24px; }
  .masthead { padding-top: 42px; }
  .studio-grid { grid-template-columns: 1fr; }
  .chart-wrap { width: min(100%, 520px); }
  .entry-seal-wrap { right: -22vw; width: 90vw; opacity: .72; }
  .entry-content { width: 70vw; }
  .message-workbench { grid-template-columns: 1fr; }
  .prayer-column { padding-right: 0; padding-bottom: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .guidance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compatibility-result { grid-template-columns: 150px 1fr; }
  .compatibility-reading { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .app-shell { padding: 0 16px; }
  .topbar { height: auto; min-height: 70px; padding: 12px 0; display: grid; gap: 9px; }
  .brand small { display: none; }
  .top-actions { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .top-actions::-webkit-scrollbar { display: none; }
  .quiet-button { flex: 0 0 auto; padding: 0 9px; font-size: 11px; }
  .masthead { display: block; padding: 38px 0 28px; }
  .masthead h1 { font-size: 39px; }
  .masthead-note { margin-top: 22px; }
  .intake-panel, .chart-panel { padding: 20px; }
  .two-up, .three-up { grid-template-columns: 1fr; gap: 13px; margin-top: 20px; }
  .form-foot { display: block; padding-top: 26px; }
  .form-actions { justify-content: flex-end; margin-top: 18px; }
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .guardian-result { padding: 20px; }
  .guardian-names { grid-template-columns: 1fr; }
  .guardian-position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guardian-audit-head { align-items: start; flex-direction: column; gap: 6px; }
  .sigil-section, .analysis-section, .message-section, .compatibility-section { padding: 20px; }
  .sigil-layout { grid-template-columns: 1fr; gap: 18px; }
  .sigil-details { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-cover::after { inset: auto 0 0; width: 100%; height: 62%; background: rgba(5,5,5,.94); }
  .entry-seal-wrap { top: 6vh; right: -20vw; width: 118vw; transform: none; opacity: .6; }
  .entry-content { width: 100%; min-height: 100svh; padding: 46vh 22px 28px; justify-content: flex-start; }
  .entry-content > h1 { font-size: 58px; }
  .cover-kicker { margin-bottom: 10px; }
  .cover-daily { margin-top: 22px; padding-left: 14px; }
  .cover-daily blockquote { font-size: 20px; }
  .entry-button { margin-top: 24px; }
  .message-result { font-size: 24px; }
  .guidance-toolbar { display: block; }
  .guidance-controls { display: grid; grid-template-columns: 1fr; margin-top: 16px; }
  .compact-field { min-width: 0; }
  .color-guidance { grid-template-columns: 1fr; gap: 11px; }
  .guidance-grid { grid-template-columns: 1fr; }
  .guidance-evidence { grid-template-columns: 1fr; gap: 8px; }
  .compatibility-controls { grid-template-columns: 1fr; }
  .compatibility-link { height: 22px; transform: rotate(90deg); }
  .compatibility-result { grid-template-columns: 1fr; }
  .compatibility-score { min-height: 0; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .compatibility-score strong { font-size: 56px; }
  .footer { display: block; line-height: 1.8; }
  .footer span { display: block; }
}

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

/* Static edition */
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #f0ca75;
  outline-offset: 3px;
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.entry-cover { display: grid; place-items: center; background: #020202; }
.entry-cover::after { display: none; }
.particle-field, .cover-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.particle-field { z-index: -2; }
.cover-vignette { z-index: -1; background: radial-gradient(circle at 50% 43%, transparent 0 28%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.86) 100%); }
.entry-content { width: min(680px, calc(100% - 32px)); min-height: auto; padding: 30px 0; align-items: center; text-align: center; }
.entry-seal-wrap { position: relative; top: auto; right: auto; width: min(54vh, 470px); transform: none; }
.entry-seal-wrap::before { width: 88%; background: rgba(214,173,85,.035); box-shadow: inset 0 0 0 1px rgba(240,202,117,.16), 0 0 90px rgba(214,173,85,.1); }
.entry-seal { opacity: .98; filter: drop-shadow(0 0 16px rgba(226,179,72,.18)); animation: seal-arrival 1.2s ease both, seal-breathe 6s ease-in-out 1.2s infinite; }
.seal-orbit { position: absolute; inset: 7%; border: 1px solid rgba(226,179,72,.16); border-radius: 50%; }
.seal-orbit::before { content: ''; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #f3d484; box-shadow: 0 0 14px #d9a744; }
.seal-orbit-one { animation: orbit 15s linear infinite; }
.seal-orbit-two { inset: 12%; animation: orbit 21s linear infinite reverse; }
.cover-kicker { margin: 0 0 8px; letter-spacing: .28em; }
.entry-content > h1 { margin-top: -20px; color: #e6b748; font-size: clamp(28px, 5vw, 52px); line-height: 1; letter-spacing: .12em; text-shadow: 0 0 24px rgba(214,173,85,.16); }
.cover-subtitle { margin: 12px 0 0; color: #8e805d; font-family: var(--display); font-size: 13px; letter-spacing: .28em; }
.cover-daily { max-width: 560px; margin-top: 30px; padding: 18px 28px 0; border: 0; border-top: 1px solid rgba(226,179,72,.32); }
.cover-daily blockquote { margin-top: 8px; font-size: clamp(19px, 2.4vw, 25px); }
.entry-button { margin-top: 26px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes seal-breathe { 0%,100% { filter: drop-shadow(0 0 14px rgba(226,179,72,.14)); } 50% { filter: drop-shadow(0 0 28px rgba(226,179,72,.3)); } }

.topbar { position: sticky; top: 0; z-index: 20; height: auto; min-height: 82px; background: rgba(9,9,9,.94); backdrop-filter: blur(12px); }
.brand { padding: 0; border: 0; background: transparent; text-align: left; }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.category-tabs { display: flex; align-items: stretch; gap: 3px; }
.category-tab { min-height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 4px; color: var(--ink-soft); background: transparent; font-size: 11px; }
.category-tab span { margin-right: 6px; color: #7f6731; font-family: var(--display); }
.category-tab:hover { color: var(--ink); border-color: var(--line); }
.category-tab.is-current { color: #161108; border-color: var(--coral); background: var(--coral); }
.category-tab.is-current span { color: #161108; }
.audio-toggle { flex: 0 0 auto; width: 36px; height: 36px; font-family: var(--display); font-size: 17px; }
.audio-toggle.is-playing { color: #161108; border-color: var(--coral); background: var(--coral); }
.masthead h2 { max-width: 780px; margin: 0; font-family: var(--display); font-size: clamp(31px, 4vw, 56px); font-weight: 500; line-height: 1.08; }
.privacy-mark { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.privacy-mark span { width: 7px; height: 7px; border-radius: 50%; background: #7e9a78; box-shadow: 0 0 0 4px rgba(126,154,120,.12); }
.category-panel { padding-bottom: 30px; }
.category-panel.is-active { animation: panel-enter .42s ease both; }
.section-intro { padding: 14px 0 8px; }
.section-intro h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 50px); font-weight: 500; }
.section-intro > p:last-child { margin: 12px 0 0; color: var(--ink-soft); font-size: 11px; }
.panel-heading h3, .section-bar h3 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 500; line-height: 1.1; }
.section-bar { align-items: end; }
.result-reveal { animation: result-enter .5s ease both; }
@keyframes panel-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes result-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.archangel-section { margin-top: 20px; padding: 28px; background: #0a0907; }
.archangel-result { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(280px, 1fr); gap: 36px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.archangel-sigil-frame { min-height: 220px; display: grid; place-items: center; border-right: 1px solid var(--line); }
.archangel-sigil-frame img { width: min(100%, 410px); max-height: 220px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(226,179,72,.25)); }
.archangel-identity > span { color: var(--ink-soft); font-size: 11px; letter-spacing: .12em; }
.archangel-identity > strong { display: block; margin-top: 8px; color: var(--coral-dark); font-family: var(--display); font-size: clamp(38px, 5vw, 66px); font-weight: 400; text-transform: uppercase; }
.archangel-identity > bdi { display: block; margin-top: 4px; color: #e6b748; font-family: 'Times New Roman', serif; font-size: 34px; }
.archangel-identity p { max-width: 680px; margin: 15px 0 0; color: var(--ink); font-size: 12px; line-height: 1.75; }
.planet-score-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 20px; }
.planet-score { min-width: 0; padding: 11px 8px; border: 1px solid var(--line); background: #070706; }
.planet-score.is-best { border-color: var(--coral-dark); background: rgba(214,173,85,.08); }
.planet-score span, .planet-score strong, .planet-score small { display: block; }
.planet-score span { color: var(--ink-soft); font-size: 9px; }
.planet-score strong { margin-top: 5px; color: var(--white); font-family: var(--display); font-size: 16px; font-weight: 500; }
.planet-score small { margin-top: 4px; color: var(--coral-dark); font-size: 9px; }

#guidancePanel .message-section, .guidance-section.panel, .archive-section, #archivePanel .compatibility-section { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: #0b0a08; }
.guidance-section.panel { padding-top: 28px; }
.guidance-content { margin-top: 20px; }
.color-advice { display: grid; grid-template-columns: minmax(220px, .48fr) 1fr; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(214,173,85,.22); border-bottom: 1px solid rgba(214,173,85,.22); }
.color-advice > p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.guidance-grid article { min-width: 0; padding: 17px; background: #080807; }
.guidance-grid article span { color: var(--coral-dark); font-family: var(--display); font-size: 15px; }
.guidance-grid article p { margin: 9px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; }
.guidance-evidence { display: block; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.guidance-content > small { display: block; margin-top: 12px; color: #777062; font-size: 9px; line-height: 1.6; }

.archive-count { color: var(--ink-soft); font-size: 10px; }
.archive-heading-actions { display: flex; align-items: center; gap: 14px; }
.archive-clear { padding: 4px 0; }
.archive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--line); }
.archive-item { min-width: 0; padding: 18px; background: #080807; }
.archive-item span, .archive-item strong, .archive-item small { display: block; }
.archive-item span { color: var(--ink-soft); font-size: 9px; }
.archive-item strong { margin-top: 6px; color: var(--white); font-family: var(--display); font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.archive-item small { margin-top: 7px; color: var(--coral-dark); font-size: 10px; line-height: 1.55; }
.empty-copy { grid-column: 1 / -1; margin: 0; padding: 28px; color: var(--ink-soft); background: #080807; text-align: center; font-size: 11px; }
.compare-controls { display: grid; grid-template-columns: minmax(180px, 1fr) 34px minmax(180px, 1fr) auto; gap: 14px; align-items: end; padding-top: 24px; }
.compare-mark { height: 43px; display: grid; place-items: center; color: var(--coral-dark); font-family: var(--display); font-size: 21px; }
.compatibility-result { grid-template-columns: 170px minmax(0, 1fr); }
.compatibility-copy h4 { margin: 0; color: var(--coral-dark); font-family: var(--display); font-size: 24px; font-weight: 500; }
.compatibility-copy p, .guardian-relation p { margin: 10px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; }
.aspect-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.guardian-relation { grid-column: 1 / -1; padding: 18px; border-left: 2px solid var(--coral); background: rgba(214,173,85,.055); }
.guardian-relation span { color: var(--ink-soft); font-size: 9px; letter-spacing: .1em; }
.guardian-relation strong { display: block; margin-top: 6px; color: var(--coral-dark); font-family: var(--display); font-size: 20px; font-weight: 500; }

.compatibility-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.compatibility-metric { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.compatibility-metric span { color: var(--ink-soft); font-size: 10px; }
.compatibility-metric strong { color: var(--coral-dark); font-family: var(--display); font-size: 15px; font-weight: 500; }
.compatibility-meter { grid-column: 1 / -1; width: 100%; height: 4px; border: 0; background: #2b261a; }
.compatibility-meter::-webkit-meter-bar { border: 0; border-radius: 0; background: #2b261a; }
.compatibility-meter::-webkit-meter-optimum-value { background: var(--coral); }
.compatibility-meter::-moz-meter-bar { background: var(--coral); }

.ritual-panel { max-width: 1180px; margin: 0 auto; }
.ritual-panel > .panel { margin-top: 20px; padding: 28px; background: #0b0a08; }
.ritual-note { margin: 20px 0 0; padding: 14px 16px; border-left: 2px solid var(--coral); color: var(--ink); background: rgba(214,173,85,.06); font-size: 12px; line-height: 1.8; }
.ritual-intentions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); }
.ritual-intentions article { min-width: 0; padding: 20px; background: #080807; }
.ritual-intentions article > span { color: var(--coral-dark); font-family: var(--display); font-size: 17px; }
.ritual-intentions p, .ritual-intentions small { display: block; margin: 10px 0 0; color: var(--ink); font-size: 12px; line-height: 1.85; }
.ritual-intentions small { color: var(--ink-soft); font-size: 10px; }
.ritual-prose { max-width: 980px; margin: 22px auto 0; }
.ritual-prose p, .ritual-ending > p { margin: 16px 0 0; color: var(--ink); font-size: 13px; line-height: 1.95; }
.ritual-voces { margin: 20px 0; padding: 17px 20px; border: 1px solid #5d4821; color: #f0ca75; background: #070706; font-family: var(--display); font-size: 16px; line-height: 1.7; letter-spacing: 0; overflow-wrap: anywhere; }
.ritual-recitation > p { padding-left: 15px; border-left: 1px solid rgba(214,173,85,.2); }
.ritual-intention-slot { padding: 12px 15px !important; border: 1px solid rgba(214,173,85,.38) !important; color: var(--coral-dark) !important; background: rgba(214,173,85,.06); font-weight: 700; }
.ritual-ending { border-color: #6a5124; }
.ritual-ending .ritual-voces { text-align: center; font-size: 21px; }

/* 鬼畜区 */
.majesty-panel { --majesty-red: #9b201f; --majesty-blue: #a9d9ff; max-width: 1320px; margin: 0 auto; padding-bottom: 46px; }
.majesty-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: 18px 48px; align-items: end; padding: 28px 0 22px; }
.majesty-intro .section-label { grid-column: 1 / -1; margin-bottom: -8px; color: #d39e3f; }
.majesty-intro h2 { margin: 0; color: #f3e8c9; font-family: var(--display); font-size: clamp(38px, 5vw, 68px); font-weight: 400; line-height: 1; }
.majesty-intro > p:last-child { margin: 0; padding-left: 18px; border-left: 1px solid rgba(214,173,85,.45); color: #aaa28f; font-size: 11px; line-height: 1.8; }
.majesty-stage { position: relative; width: 100%; height: clamp(560px, 72svh, 790px); min-height: 560px; overflow: hidden; border-top: 1px solid #543d20; border-bottom: 1px solid #543d20; background: #060306; isolation: isolate; cursor: grab; outline: none; }
.majesty-stage:active { cursor: grabbing; }
.majesty-stage:focus-visible { outline: 2px solid #f0ca75; outline-offset: 4px; }
.majesty-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.mage-scene-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #c8aa66; background: #060306; font-family: var(--display); font-size: 13px; letter-spacing: .1em; transition: opacity .35s ease, visibility .35s ease; }
.mage-scene-loading::after { content: ''; width: 44px; height: 44px; margin-left: 14px; border: 1px solid #7d5b29; border-top-color: #e4c477; border-radius: 50%; animation: mage-loader 1.2s linear infinite; }
.mage-scene-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mage-scene-loading.is-error { padding: 24px; color: #e7c9a5; text-align: center; line-height: 1.8; }
.mage-scene-loading.is-error::after { display: none; }
@keyframes mage-loader { to { transform: rotate(360deg); } }
.majesty-scene-hud { position: absolute; z-index: 3; top: 26px; left: 28px; display: grid; gap: 5px; pointer-events: none; text-shadow: 0 2px 14px #000; }
.majesty-scene-hud span { color: #c88b45; font-size: 9px; letter-spacing: .16em; }
.majesty-scene-hud strong { color: #f5e8c6; font-family: var(--display); font-size: clamp(20px, 2.5vw, 30px); font-weight: 400; }
.majesty-prompt { position: absolute; z-index: 3; right: 24px; bottom: 20px; margin: 0; padding: 9px 12px; border: 1px solid rgba(214,173,85,.32); color: #d8c59d; background: rgba(7,5,5,.82); font-size: 9px; line-height: 1.4; pointer-events: none; }
.majesty-prompt span { margin-right: 5px; color: #dfb957; }
.artifact-dock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid #4b3920; background: #0a0807; }
.artifact-button { position: relative; min-width: 0; min-height: 84px; padding: 12px 8px; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-content: center; align-items: center; border: 0; border-right: 1px solid #332817; color: #b8ac90; background: transparent; text-align: left; }
.artifact-button:last-child { border-right: 0; }
.artifact-button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.artifact-button > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #4b3c22; border-radius: 50%; color: #be8e3b; font-family: var(--display); font-size: 15px; }
.artifact-button b { min-width: 0; color: #e4d6b4; font-family: var(--display); font-size: 14px; font-weight: 400; }
.artifact-button small { color: #786e59; font-size: 8px; letter-spacing: .08em; overflow-wrap: anywhere; }
.artifact-button:hover, .artifact-button:focus-visible { background: #120d0b; }
.artifact-button.is-active { background: #160e0d; }
.artifact-button.is-active::after { background: #bd8834; }
.artifact-button.is-active > span { color: #ffe4a0; border-color: #be8e3b; box-shadow: 0 0 18px rgba(214,173,85,.18); }
.artifact-caption { min-height: 150px; display: grid; grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 7px 32px; align-items: start; padding: 28px 2px 0; }
.artifact-caption > span { grid-row: 1 / 3; padding-top: 5px; color: #a97737; font-size: 9px; letter-spacing: .13em; }
.artifact-caption h3 { margin: 0; color: #f0e2be; font-family: var(--display); font-size: 25px; font-weight: 400; }
.artifact-caption p { grid-column: 2; margin: 0; max-width: 760px; color: #b6ad9a; font-size: 12px; line-height: 1.75; }
.artifact-caption small { grid-column: 3; grid-row: 1 / 3; align-self: center; color: #696152; font-size: 8px; white-space: nowrap; }

footer { display: flex; justify-content: space-between; gap: 18px; margin: 46px 0 30px; color: #777062; font-size: 9px; letter-spacing: .1em; }

@media (max-width: 900px) {
  .category-tabs { max-width: 64vw; overflow-x: auto; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { flex: 0 0 auto; }
  .planet-score-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ritual-intentions { grid-template-columns: 1fr; }
  .majesty-intro { grid-template-columns: 1fr; }
  .majesty-intro .section-label { grid-column: 1; }
  .majesty-intro > p:last-child { max-width: 620px; }
  .artifact-dock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artifact-button:nth-child(3) { border-right: 0; }
  .artifact-button:nth-child(-n+3) { border-bottom: 1px solid #332817; }
}

@media (max-width: 600px) {
  .entry-content { padding: 16px 0 22px; }
  .entry-seal-wrap { top: auto; right: auto; width: min(34vh, 78vw); transform: none; opacity: 1; }
  .entry-content > h1 { margin-top: -10px; font-size: clamp(25px, 9vw, 38px); }
  .cover-daily { margin-top: 20px; padding: 14px 10px 0; }
  .license-gate { margin-top: 14px; }
  .entry-button { margin-top: 18px; }
  .topbar { display: grid; gap: 10px; padding: 12px 0; }
  .header-actions { width: 100%; }
  .category-tabs { width: 100%; max-width: 100%; }
  .category-tab { padding: 0 10px; font-size: 10px; }
  .masthead { padding-top: 30px; }
  .masthead h2 { font-size: 36px; }
  .privacy-mark { margin-top: 18px; }
  .archangel-section, #guidancePanel .message-section, .guidance-section.panel, .archive-section, #archivePanel .compatibility-section { padding: 20px; }
  .archangel-result { grid-template-columns: 1fr; gap: 20px; }
  .archangel-sigil-frame { min-height: 150px; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .planet-score-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-advice { grid-template-columns: 1fr; }
  .archive-list { grid-template-columns: 1fr; }
  .compare-controls { grid-template-columns: 1fr; }
  .compare-mark { height: 18px; }
  .compatibility-result { grid-template-columns: 1fr; }
  .location-picker { padding: 13px 10px; }
  .location-selects { gap: 6px; }
  .location-selects .field { gap: 6px; font-size: 9px; }
  .location-selects .field select { padding: 0 7px; font-size: 11px; }
  .compatibility-breakdown { grid-template-columns: 1fr; }
  .ritual-panel > .panel { padding: 20px; }
  .ritual-voces { padding: 14px; font-size: 14px; }
  .majesty-intro { padding-top: 20px; }
  .majesty-intro h2 { font-size: 42px; }
  .majesty-stage { height: min(69svh, 620px); min-height: 480px; margin-inline: -20px; width: calc(100% + 40px); }
  .majesty-scene-hud { top: 18px; left: 16px; }
  .majesty-prompt { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .artifact-button { min-height: 76px; grid-template-columns: 24px minmax(0, 1fr); column-gap: 7px; padding: 9px 6px; }
  .artifact-button > span { width: 23px; height: 23px; font-size: 13px; }
  .artifact-button b { font-size: 12px; }
  .artifact-button small { font-size: 7px; }
  .artifact-caption { grid-template-columns: 1fr auto; min-height: 168px; padding-top: 22px; gap: 6px 16px; }
  .artifact-caption > span { grid-column: 1; grid-row: 1; padding: 0; }
  .artifact-caption h3 { grid-column: 1; grid-row: 2; font-size: 22px; }
  .artifact-caption p { grid-column: 1 / -1; grid-row: 3; }
  .artifact-caption small { grid-column: 2; grid-row: 1 / 3; }
  footer { display: block; line-height: 1.9; }
  footer span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .seal-orbit, .entry-seal { animation: none !important; }
  .mage-scene-loading::after { animation: none !important; }
}
