/* =========================================================
   此刻 · Focus Atlas
   A quiet map for human attention.
   ========================================================= */

:root {
  --paper: #f1ece2;
  --paper-deep: #e8e0d2;
  --paper-light: #fbf7ee;
  --ink: #171713;
  --ink-soft: #34322b;
  --muted: #777064;
  --muted-light: #9b9487;
  --line: rgba(23, 23, 19, 0.15);
  --line-strong: rgba(23, 23, 19, 0.38);
  --accent: #ff512b;
  --accent-deep: #d93a16;
  --acid: #d8ff5f;
  --night: #11130f;
  --night-2: #181b15;
  --night-line: rgba(241, 236, 226, 0.16);
  --night-muted: rgba(241, 236, 226, 0.58);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection,
body *::selection {
  background: var(--accent);
  color: var(--paper-light);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

::placeholder {
  color: #a49c8d;
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-script-banner {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  transition: transform 0.2s ease;
}

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

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  opacity: 0.19;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.eyebrow--light {
  color: var(--night-muted);
}

.eyebrow--dark {
  color: rgba(23, 23, 19, 0.68);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 81, 43, 0.6);
  animation: livePulse 2.4s infinite;
  flex: none;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 81, 43, 0.48);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 81, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 81, 43, 0);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.button span {
  font-size: 16px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button--dark {
  background: var(--ink);
  color: var(--paper-light);
}

.button--dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button--light {
  border-color: var(--paper-light);
  color: var(--paper-light);
}

.button--light:hover {
  background: var(--paper-light);
  color: var(--ink);
}

.button--outline {
  border-color: var(--line-strong);
}

.button--outline:hover {
  background: var(--ink);
  color: var(--paper-light);
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  font-size: 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.text-link--dark {
  color: rgba(23, 23, 19, 0.72);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  background: var(--ink);
  color: var(--paper-light);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 236, 226, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-symbol {
  position: relative;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.7s var(--ease);
}

.brand-symbol::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-symbol i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.brand:hover .brand-symbol {
  transform: rotate(180deg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-alt {
  margin-left: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 20px;
}

.nav-toggle {
  display: none;
  padding: 7px 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-soft);
  cursor: pointer;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 12px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.main-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.me-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.me-button:hover {
  color: var(--ink);
}

.me-dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.me-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  border-radius: 50%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 12px;
  transition: background 0.25s ease;
}

.header-cta span {
  font-size: 13px;
}

.header-cta:hover {
  background: var(--accent);
}

/* ---------------------------------------------------------
   Home hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  padding: 66px 0 86px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -22vw;
  right: -16vw;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(23, 23, 19, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -11vw;
  right: -6vw;
  width: 30vw;
  height: 30vw;
  border: 1px dashed rgba(23, 23, 19, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
  gap: clamp(42px, 6vw, 100px);
  align-items: start;
}

.hero-copy {
  padding-top: 16px;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-eyebrow {
  margin-bottom: 34px;
}

.hero h1 {
  max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(54px, 7.4vw, 112px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  color: var(--accent);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -1%;
  bottom: 7%;
  height: 18%;
  background: var(--accent);
  opacity: 0.13;
  transform: rotate(-1.2deg);
}

.hero-lede {
  max-width: 500px;
  margin-top: 34px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 530px;
  margin-top: 46px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 14px 18px 0;
}

.proof-item + .proof-item {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.proof-item strong {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.proof-item span {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-note__line {
  width: 36px;
  height: 1px;
  background: var(--line-strong);
}

.hero-note p {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-symbolic-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(241, 236, 226, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-symbolic-link:hover {
  border-color: var(--ink);
  background: var(--paper-light);
}

.hero-symbolic-link span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}

.hero-symbolic-link b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-symbolic-link i {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
}

.hero-index {
  position: absolute;
  left: 32px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  gap: 28px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted-light);
}

/* ---------------------------------------------------------
   Record card
   --------------------------------------------------------- */

.record-card {
  position: relative;
  padding: 26px 28px 24px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 16px 16px 0 rgba(23, 23, 19, 0.06);
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.record-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 4px;
  background: var(--accent);
}

.record-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.record-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.record-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.record-card time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.record-form {
  padding-top: 4px;
}

.form-block {
  margin-top: 18px;
}

.record-fast-hint {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.record-more {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.record-more summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 4px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.record-more summary::-webkit-details-marker {
  display: none;
}

.record-more summary::before {
  content: "＋";
  margin-right: 5px;
  color: var(--accent-deep);
}

.record-more[open] summary::before {
  content: "−";
}

.record-more summary span {
  color: var(--ink);
}

.record-more summary small {
  font-size: 6px;
  font-weight: 400;
  color: var(--muted-light);
  text-align: right;
}

.record-more__body {
  padding-bottom: 2px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.textarea-wrap {
  position: relative;
}

#focus-body {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 4px 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
}

#focus-body:focus {
  border-color: var(--accent);
}

.char-count {
  position: absolute;
  right: 0;
  bottom: 5px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-light);
}

.char-count b {
  font-weight: 400;
  color: var(--muted);
}

.category-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.category-option input,
.signal-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-option__inner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink-soft);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}

.category-option__inner i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat);
  flex: none;
}

.category-option__inner:hover {
  border-color: var(--cat);
}

.category-option input:checked + .category-option__inner {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.category-option input:focus-visible + .category-option__inner {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.signal-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.signal-option + .signal-option {
  border-left: 1px solid var(--line);
}

.signal-option span {
  display: block;
  padding: 8px 3px;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.signal-option span:hover {
  color: var(--ink);
}

.signal-option input:checked + span {
  background: var(--accent);
  color: #fff;
}

.signal-option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.duration-block {
  min-width: 0;
}

.duration-block .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.duration-block output {
  color: var(--accent-deep);
  font-size: 11px;
}

input[type="range"] {
  width: 100%;
  height: 14px;
  margin: 5px 0 0;
  appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-strong);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper-light);
  box-shadow: 0 0 0 1px var(--accent);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--line-strong);
}

input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper-light);
  box-shadow: 0 0 0 1px var(--accent);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-light);
}

.form-block--meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.form-block--context {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.context-head span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.context-head em {
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  color: var(--muted-light);
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.context-field {
  min-width: 0;
}

.context-field legend {
  margin-bottom: 5px;
  font-size: 8px;
  color: var(--muted-light);
}

.mini-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-options label {
  cursor: pointer;
}

.mini-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mini-options span {
  display: block;
  padding: 4px 6px;
  border: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.4;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.mini-options span:hover {
  border-color: var(--ink);
}

.mini-options input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.mini-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.name-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 110px;
}

.name-field > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.name-field em {
  font-style: normal;
  color: var(--muted-light);
}

.name-field input {
  width: 100%;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  outline: 0;
}

.name-field input:focus {
  border-color: var(--ink);
}

.switch {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: relative;
  width: 30px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: none;
}

.switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.switch input:checked + .switch-track {
  border-color: var(--ink);
  background: var(--ink);
}

.switch input:checked + .switch-track i {
  transform: translateX(14px);
  background: var(--acid);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switch-label {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  margin-top: 20px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.submit-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.submit-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(241, 236, 226, 0.35);
  border-radius: 50%;
  font-size: 13px;
  transition: transform 0.3s var(--ease);
}

.submit-button:hover .submit-arrow {
  transform: rotate(45deg);
}

.form-note {
  margin-top: 8px;
  font-size: 8px;
  line-height: 1.55;
  color: var(--muted-light);
}

.form-error {
  display: none;
  margin-top: 8px;
  padding: 7px 9px;
  background: rgba(255, 81, 43, 0.1);
  border-left: 2px solid var(--accent);
  font-size: 10px;
  line-height: 1.5;
  color: var(--accent-deep);
}

.form-error.is-visible {
  display: block;
}

.record-success {
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 6px;
  animation: fadeIn 0.5s var(--ease) both;
}

.record-card.is-success .record-card__top,
.record-card.is-success .record-form {
  display: none;
}

.record-card.is-success .record-success {
  display: flex;
}

.success-account {
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.success-account a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.success-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: slowSpin 14s linear infinite;
}

.success-orbit::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.success-orbit i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(255, 81, 43, 0.12);
}

.record-success h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.record-success p {
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 320px;
}

.success-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 11px;
}

.text-button:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* ---------------------------------------------------------
   Live ticker
   --------------------------------------------------------- */

.ticker {
  display: flex;
  align-items: stretch;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 25px;
  border-right: 1px solid rgba(241, 236, 226, 0.16);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--acid);
  flex: none;
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tickerMove 74s linear infinite;
}

.ticker-window:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 44px;
  font-size: 12px;
  white-space: nowrap;
  color: rgba(241, 236, 226, 0.82);
}

.ticker-item i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}

.ticker-item em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--night-muted);
}

.ticker-link {
  display: grid;
  place-items: center;
  width: 52px;
  border-left: 1px solid rgba(241, 236, 226, 0.16);
  color: var(--paper);
  flex: none;
  transition: background 0.2s ease;
}

.ticker-link:hover {
  background: var(--accent);
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------
   Attention atlas
   --------------------------------------------------------- */

.atlas {
  position: relative;
  padding: 104px 0 112px;
  border-radius: 38px 38px 0 0;
  background:
    radial-gradient(circle at 22% 55%, rgba(216, 255, 95, 0.055), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(255, 81, 43, 0.05), transparent 32%),
    var(--night);
  color: var(--paper);
  overflow: hidden;
}

.atlas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.19;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(241, 236, 226, 0.9) 0 0.6px, transparent 0.9px),
    radial-gradient(circle at 64% 7%, rgba(241, 236, 226, 0.8) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 88% 42%, rgba(241, 236, 226, 0.9) 0 0.7px, transparent 1px),
    radial-gradient(circle at 38% 84%, rgba(241, 236, 226, 0.8) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 6% 76%, rgba(241, 236, 226, 0.8) 0 0.5px, transparent 0.8px);
  background-size: 220px 220px, 170px 170px, 260px 260px, 190px 190px, 150px 150px;
}

.atlas-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.atlas-head h2 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  color: var(--paper);
}

.atlas-head h2 em {
  color: var(--acid);
  font-style: normal;
}

.atlas-intro {
  padding-bottom: 8px;
}

.atlas-intro p {
  max-width: 330px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--night-muted);
}

.atlas-intro a {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--night-line);
  font-size: 11px;
  color: var(--paper);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.atlas-intro a span {
  color: var(--acid);
}

.atlas-intro a:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.constellation {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1.02;
  margin-inline: auto;
}

.constellation::before,
.constellation::after {
  content: "";
  position: absolute;
  background: var(--night-line);
  pointer-events: none;
}

.constellation::before {
  left: 50%;
  top: 4%;
  bottom: 4%;
  width: 1px;
  opacity: 0.45;
}

.constellation::after {
  top: 50%;
  left: 4%;
  right: 4%;
  height: 1px;
  opacity: 0.45;
}

.constellation__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--night-line);
  border-radius: 50%;
  pointer-events: none;
}

.orbit--one {
  width: 41%;
  height: 41%;
  border-style: dashed;
  opacity: 0.7;
}

.orbit--two {
  width: 69%;
  height: 69%;
  opacity: 0.55;
}

.orbit--three {
  width: 94%;
  height: 94%;
  border-style: dashed;
  opacity: 0.3;
}

.orbit--two::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(216, 255, 95, 0.9);
}

.constellation__cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--night-muted);
  border-radius: 50%;
}

.constellation__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.constellation__lines line {
  stroke: rgba(241, 236, 226, 0.17);
  stroke-width: 0.12;
  stroke-dasharray: 0.8 1.3;
  vector-effect: non-scaling-stroke;
}

.constellation__cross::before,
.constellation__cross::after {
  content: "";
  position: absolute;
  background: var(--night-line);
}

.constellation__cross::before {
  width: 1px;
  height: 250px;
  left: 4px;
  top: -120px;
  transform: rotate(45deg);
}

.atlas-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  border-radius: 50%;
  color: var(--paper);
  transition: transform 0.45s var(--ease);
}

.atlas-node:hover {
  transform: translate(-50%, -50%) scale(calc(var(--scale, 1) * 1.08));
  z-index: 6;
}

.atlas-node__halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--node) 0%, transparent 68%);
  opacity: 0.34;
  filter: blur(4px);
  animation: haloBreathe 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
  transition: opacity 0.3s ease;
}

.atlas-node:hover .atlas-node__halo {
  opacity: 0.55;
}

.atlas-node__ring {
  position: absolute;
  inset: 20%;
  border: 1px solid var(--node);
  border-color: color-mix(in srgb, var(--node) 65%, transparent);
  border-radius: 50%;
  transition: inset 0.35s var(--ease), border-color 0.3s ease;
}

.atlas-node__ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--node);
  box-shadow: 0 0 12px var(--node);
}

.atlas-node:hover .atlas-node__ring {
  inset: 15%;
  border-color: var(--node);
}

.atlas-node__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.atlas-node__label strong {
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.atlas-node__label small {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--night-muted);
}

.atlas-coordinate {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(241, 236, 226, 0.32);
}

.atlas-coordinate--top {
  top: 1%;
  left: 2%;
}

.atlas-coordinate--bottom {
  right: 2%;
  bottom: 1%;
  color: rgba(216, 255, 95, 0.6);
}

@keyframes haloBreathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.44;
  }
}

.live-panel {
  padding-left: clamp(24px, 3.5vw, 44px);
  border-left: 1px solid var(--night-line);
}

.live-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--night-line);
}

.live-panel__head h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 31px);
  letter-spacing: -0.02em;
}

.live-counter {
  padding: 4px 7px;
  border: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--night-muted);
  white-space: nowrap;
}

.live-feed {
  display: flex;
  flex-direction: column;
}

.live-feed .focus-card {
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--night-line);
  background: transparent;
}

.live-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 11px;
  color: var(--paper);
  transition: color 0.2s ease;
}

.live-panel__link span {
  color: var(--acid);
  font-size: 16px;
  transition: transform 0.25s var(--ease);
}

.live-panel__link:hover {
  color: var(--acid);
}

.live-panel__link:hover span {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   Focus cards
   --------------------------------------------------------- */

.focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 242px;
  padding: 21px 22px 17px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.54);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.35s var(--ease),
    background 0.3s ease;
}

.focus-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: var(--card-accent);
  transition: width 0.45s var(--ease);
}

.focus-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--paper-light);
  box-shadow: 0 14px 34px rgba(23, 23, 19, 0.07);
}

.focus-card:hover::after {
  width: 100%;
}

.focus-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
}

.focus-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.focus-category i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  flex: none;
}

.focus-category:hover {
  color: var(--card-accent);
}

.focus-signal {
  padding: 1px 5px;
  border: 1px solid var(--line);
  font-size: 7px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.focus-card time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--muted-light);
  white-space: nowrap;
}

.focus-body {
  flex: 1;
  margin: 20px 0 22px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  word-break: break-word;
}

.focus-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.focus-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 9px;
  color: var(--muted);
}

.author-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 9px;
  color: var(--ink-soft);
  background: rgba(23, 23, 19, 0.03);
  flex: none;
}

.focus-duration {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
  white-space: nowrap;
}

.focus-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.resonate-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 8px;
  color: var(--muted);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.resonate-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  transition: transform 0.4s var(--ease);
}

.resonate-button b {
  min-width: 10px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.resonate-button:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.resonate-button:hover svg {
  transform: rotate(90deg);
}

.resonate-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.permalink {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  font-size: 11px;
  color: var(--muted-light);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.permalink:hover {
  border-color: var(--line);
  color: var(--ink);
}

.focus-card--dark {
  min-height: 0;
  padding: 16px 0 15px;
  color: var(--paper);
}

.focus-card--dark:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.focus-card--dark::after {
  display: none;
}

.focus-card--dark .focus-category {
  color: var(--paper);
}

.focus-card--dark .focus-category i {
  box-shadow: 0 0 9px var(--card-accent);
}

.focus-card--dark .focus-signal {
  border-color: var(--night-line);
  color: var(--night-muted);
}

.focus-card--dark .focus-card time {
  color: rgba(241, 236, 226, 0.34);
}

.focus-card--dark .focus-body {
  margin: 11px 0 12px;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(241, 236, 226, 0.85);
}

.focus-card--dark .focus-card__foot {
  padding-top: 9px;
  border-color: var(--night-line);
}

.focus-card--dark .focus-author {
  color: var(--night-muted);
}

.focus-card--dark .author-mark {
  border-color: var(--night-line);
  background: rgba(241, 236, 226, 0.04);
  color: var(--night-muted);
}

.focus-card--dark .focus-duration {
  border-color: var(--night-line);
  color: rgba(241, 236, 226, 0.35);
}

.focus-card--dark .resonate-button {
  height: 23px;
  border-color: var(--night-line);
  color: var(--night-muted);
}

.focus-card--dark .resonate-button:hover,
.focus-card--dark .resonate-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: #fff;
}

.focus-card--dark .resonate-button span {
  display: none;
}

.focus-card--dark .permalink {
  color: rgba(241, 236, 226, 0.32);
}

.focus-card--dark .permalink:hover {
  border-color: var(--night-line);
  color: var(--paper);
}

/* ---------------------------------------------------------
   Report
   --------------------------------------------------------- */

.report {
  padding: 118px 0 126px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.7vw, 82px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.section-heading__copy {
  max-width: 330px;
  padding-bottom: 8px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.section-heading--tight {
  margin-bottom: 48px;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 18px;
}

.report-primary {
  padding: 34px 38px 26px;
  background: var(--ink);
  color: var(--paper);
}

.report-primary__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--night-muted);
}

.report-number {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 28px;
}

.report-number strong {
  font-family: var(--serif);
  font-size: clamp(66px, 8vw, 118px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: var(--acid);
}

.report-number span {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--night-muted);
}

.report-sub {
  margin-top: 19px;
  font-size: 10px;
  color: var(--night-muted);
}

.report-sub b {
  color: var(--paper);
  font-weight: 500;
}

.report-empty {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px dashed rgba(241, 236, 226, 0.22);
  background: rgba(241, 236, 226, 0.035);
}

.report-empty span {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--paper-light);
}

.report-empty p {
  margin-top: 4px;
  font-size: 7px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.5);
}

.report-empty a {
  display: inline-block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent);
}

.week-wrap {
  margin-top: 42px;
  padding-top: 21px;
  border-top: 1px solid var(--night-line);
}

.week-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(241, 236, 226, 0.4);
}

.week-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 18px);
  height: 132px;
  margin-top: 15px;
}

.week-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 5px;
}

.week-value {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.week-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 94px;
  background: rgba(241, 236, 226, 0.035);
}

.week-track i {
  display: block;
  width: 100%;
  height: var(--h);
  background: rgba(241, 236, 226, 0.23);
  transform-origin: bottom;
  animation: growBar 1s var(--ease) both;
  transition: background 0.2s ease;
}

.week-col.is-today .week-track i {
  background: var(--acid);
}

.week-col:hover .week-track i {
  background: var(--accent);
}

.week-label {
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(241, 236, 226, 0.38);
}

.week-col.is-today .week-label {
  color: var(--acid);
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.distribution {
  display: flex;
  flex-direction: column;
  padding: 32px 36px 25px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.distribution__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 25px 0 22px;
  flex: 1;
}

.bar-row {
  --bar: var(--ink);
}

.bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 5px;
}

.bar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--ink-soft);
}

.bar-meta span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bar);
}

.bar-meta b {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}

.bar-meta b small {
  font-size: 7px;
  color: var(--muted-light);
}

.bar-track {
  height: 3px;
  background: rgba(23, 23, 19, 0.08);
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--bar);
  animation: growWidth 1.1s var(--ease) both;
}

@keyframes growWidth {
  from {
    width: 0;
  }
  to {
    width: var(--w);
  }
}

.distribution__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}

.distribution__foot strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.report-quote {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  margin-top: 74px;
  padding-top: 38px;
  border-top: 1px solid var(--line-strong);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.7;
  color: var(--accent);
}

.report-quote p {
  font-family: var(--serif);
  font-size: clamp(29px, 3.6vw, 52px);
  line-height: 1.32;
  letter-spacing: -0.045em;
}

.report-quote cite {
  align-self: end;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Ritual
   --------------------------------------------------------- */

.ritual {
  padding: 110px 0 112px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.ritual-step {
  position: relative;
  min-height: 260px;
  padding: 28px 36px 30px 0;
  border-right: 1px solid var(--line);
}

.ritual-step + .ritual-step {
  padding-left: 36px;
}

.ritual-step:last-child {
  border-right: 0;
}

.ritual-number {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.ritual-step h3 {
  margin-top: 42px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.03em;
}

.ritual-step p {
  max-width: 330px;
  margin-top: 17px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.ritual-en {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted-light);
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq {
  padding: 110px 0 120px;
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.faq-intro h2 {
  margin-top: 19px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.faq-intro p {
  margin-top: 13px;
  font-size: 12px;
  color: var(--muted);
}

.faq-intro .text-link {
  margin-top: 28px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-light);
}

.faq-item summary i {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s ease;
}

.faq-item[open] summary {
  color: var(--ink);
}

.faq-item[open] summary i {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item p {
  max-width: 620px;
  padding: 0 46px 24px 38px;
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted);
  animation: fadeIn 0.3s ease both;
}

/* ---------------------------------------------------------
   Closing
   --------------------------------------------------------- */

.closing {
  position: relative;
  padding: 108px 0 90px;
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
}

.closing__inner {
  position: relative;
  z-index: 2;
}

.closing h2 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(52px, 7.7vw, 108px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.closing h2 em {
  font-style: normal;
  color: var(--paper-light);
}

.closing__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 44px;
}

.closing .button--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.closing .button--dark:hover {
  background: var(--paper-light);
  color: var(--ink);
}

.closing__note {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(23, 23, 19, 0.58);
}

.closing__orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -5vw;
  width: 44vw;
  height: 44vw;
  transform: translateY(-50%);
  border: 1px solid rgba(23, 23, 19, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.closing__orbit::before,
.closing__orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(23, 23, 19, 0.18);
  border-radius: 50%;
}

.closing__orbit::before {
  inset: 14%;
}

.closing__orbit::after {
  inset: 30%;
}

.closing__orbit i {
  position: absolute;
  border-radius: 50%;
  background: var(--ink);
}

.closing__orbit i:nth-child(1) {
  top: 4%;
  left: 49%;
  width: 8px;
  height: 8px;
}

.closing__orbit i:nth-child(2) {
  top: 46%;
  left: 14%;
  width: 5px;
  height: 5px;
}

.closing__orbit i:nth-child(3) {
  right: 7%;
  bottom: 19%;
  width: 11px;
  height: 11px;
  background: var(--paper-light);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding: 76px 0 24px;
  background: var(--night);
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.55fr 0.72fr 0.62fr 0.62fr 1.2fr;
  gap: 34px;
  padding-bottom: 64px;
}

.brand--footer {
  color: var(--paper);
}

.brand--footer .brand-symbol {
  border-color: var(--paper);
}

.brand--footer .brand-symbol::before {
  border-color: var(--paper);
}

.brand--footer .brand-alt {
  border-color: var(--night-line);
  color: var(--night-muted);
}

.footer-brand p {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.78);
}

.footer-en {
  display: block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: rgba(241, 236, 226, 0.32);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-col h3 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(241, 236, 226, 0.36);
}

.footer-col a {
  font-size: 11px;
  color: rgba(241, 236, 226, 0.72);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--acid);
}

.footer-col--note p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--night-muted);
}

.footer-muted {
  margin-top: 5px;
  color: rgba(241, 236, 226, 0.3) !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: rgba(241, 236, 226, 0.35);
}

.footer-bottom a:hover {
  color: var(--acid);
}

.footer-made {
  margin-left: auto;
}

/* ---------------------------------------------------------
   My focus dialog
   --------------------------------------------------------- */

.me-dialog {
  width: min(480px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.me-dialog::backdrop {
  background: rgba(17, 19, 15, 0.55);
  backdrop-filter: blur(3px);
}

.me-dialog[open] {
  animation: drawerIn 0.45s var(--ease) both;
}

.me-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px 34px 26px;
}

.me-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.me-panel__head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.04em;
}

.me-intro {
  margin-top: 16px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.me-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.me-summary div {
  padding: 13px 0;
  border-right: 1px solid var(--line);
}

.me-summary div:last-child {
  border: 0;
  padding-left: 14px;
}

.me-summary div:nth-child(2) {
  padding-left: 14px;
}

.me-summary b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.me-summary span {
  font-size: 8px;
  color: var(--muted-light);
}

.me-list {
  flex: 1;
  overflow-y: auto;
  margin: 14px -4px 0;
  padding: 0 4px;
  overscroll-behavior: contain;
}

.me-loading,
.me-empty {
  padding: 42px 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.me-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.me-entry__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.me-entry__head i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--entry-color);
}

.me-entry__head span:last-child {
  margin-left: auto;
  color: var(--muted-light);
}

.me-entry p {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.me-entry__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 8px;
  color: var(--muted-light);
}

.me-entry__foot button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 8px;
  color: var(--muted);
}

.me-entry__foot button[data-edit-focus] {
  margin-left: auto;
}

.me-entry__foot button:hover {
  color: var(--accent-deep);
}

.me-edit-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 4px 0 2px;
}

.me-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.me-edit-form label > span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.me-edit-form textarea,
.me-edit-form input[type="number"],
.me-edit-form select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
}

.me-edit-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.me-edit-form__row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 7px;
  align-items: end;
}

.me-edit-form__check {
  flex-direction: row !important;
  align-items: center;
  gap: 5px !important;
  padding-bottom: 8px;
  font-size: 8px;
  color: var(--muted);
}

.me-edit-form__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.me-edit-form__actions button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 8px;
  color: var(--muted);
}

.me-edit-form__actions button[type="submit"] {
  color: var(--accent-deep);
}

.private-tag {
  padding: 1px 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.me-panel__foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.me-panel__foot .button {
  width: 100%;
}

.me-panel__foot p {
  margin-top: 9px;
  font-size: 8px;
  color: var(--muted-light);
  text-align: center;
}

@keyframes drawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2000;
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--accent-deep);
}

body.dialog-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.focus-card.is-new {
  animation: cardArrive 0.75s var(--ease) both;
}

@keyframes cardArrive {
  from {
    opacity: 0;
    transform: translateY(-14px);
    background: color-mix(in srgb, var(--card-accent) 14%, var(--paper-light));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------
   Explore page
   --------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.page-hero {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 81, 43, 0.08), transparent 28%),
    var(--paper);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  gap: 70px;
  align-items: end;
}

.page-hero h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-hero__aside {
  padding-bottom: 7px;
}

.page-hero__aside > p {
  max-width: 350px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}

.page-hero__stats b {
  margin-right: 2px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.explore-body {
  padding: 28px 0 118px;
}

.explore-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-strong);
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.2;
  color: var(--muted);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.filter-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot);
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 190px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.search-field svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  flex: none;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline: 0;
}

.sort-field {
  position: relative;
}

.sort-field select {
  appearance: none;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 9px;
  color: var(--muted);
  cursor: pointer;
}

.sort-field::after {
  content: "⌄";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 12px;
  pointer-events: none;
  color: var(--muted);
}

.search-submit {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.explore-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 22px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}

.pagination a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.pagination .is-disabled {
  opacity: 0.3;
}

.empty-state {
  padding: 80px 30px 90px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
}

.empty-state h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 30px;
}

.empty-state p {
  max-width: 390px;
  margin: 10px auto 24px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Topic page
   --------------------------------------------------------- */

.topic-hero {
  position: relative;
  padding: 46px 0 60px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background:
    radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--topic) 17%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--topic) 7%, var(--paper)), var(--paper) 62%);
  overflow: hidden;
}

.topic-hero::after {
  content: "";
  position: absolute;
  top: -34vw;
  right: -11vw;
  width: 54vw;
  height: 54vw;
  border: 1px solid color-mix(in srgb, var(--topic) 24%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.topic-hero .shell {
  position: relative;
  z-index: 1;
}

.topic-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 80px;
  align-items: end;
}

.topic-en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--topic);
}

.topic-title h1 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(98px, 14vw, 188px);
  line-height: 0.95;
  letter-spacing: -0.09em;
  color: var(--ink);
}

.topic-copy {
  padding-bottom: 13px;
}

.topic-copy > p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.topic-copy blockquote {
  margin-top: 17px;
  padding-left: 15px;
  border-left: 2px solid var(--topic);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.topic-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 33px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.topic-stats div {
  padding: 14px 10px 14px 0;
}

.topic-stats div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.topic-stats b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.topic-stats span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: var(--muted);
}

.topic-body {
  padding: 64px 0 100px;
}

.topic-body__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.topic-body__head h2 {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.03em;
}

.topic-body__head > span,
.topic-body__head > a {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.topic-body__head > a:hover {
  color: var(--accent-deep);
}

.topic-more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.topic-switch {
  padding: 68px 0 76px;
  background: var(--night);
  color: var(--paper);
}

.topic-switch__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}

.topic-switch__grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
  padding: 17px;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  transition: background 0.25s ease;
}

.topic-switch__grid a:hover {
  background: color-mix(in srgb, var(--switch) 22%, transparent);
}

.topic-switch__grid a > span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(241, 236, 226, 0.35);
}

.topic-switch__grid strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topic-switch__grid i {
  position: absolute;
  top: 16px;
  right: 16px;
  font-style: normal;
  font-size: 12px;
  color: var(--switch);
  transition: transform 0.25s var(--ease);
}

.topic-switch__grid a:hover i {
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------
   Focus detail
   --------------------------------------------------------- */

.detail {
  padding: 46px 0 116px;
}

.detail-card {
  max-width: 1000px;
  margin: 34px auto 0;
  padding: 38px 46px 32px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  box-shadow: 18px 18px 0 rgba(23, 23, 19, 0.055);
}

.detail-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-signal {
  font-size: 9px;
  color: var(--muted);
}

.detail-card__head time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-light);
}

.detail-quote {
  padding: 54px 0 58px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.1vw, 57px);
  line-height: 1.4;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.detail-quote::before {
  content: "“";
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.6;
  color: var(--topic);
}

.detail-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-mark--large {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.detail-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-author strong {
  font-size: 11px;
  font-weight: 500;
}

.detail-author span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-meta > span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.detail-meta > span b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.detail-meta .resonate-button {
  height: 32px;
  padding: 0 11px;
  font-size: 9px;
}

.detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 70px auto 0;
  padding: 32px 38px;
  background: var(--accent);
}

.detail-cta h2 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.detail-cta__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.related {
  max-width: 1000px;
  margin: 80px auto 0;
  padding-top: 38px;
  border-top: 1px solid var(--line-strong);
}

.related .focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */

.about-hero {
  padding: 52px 0 68px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 44%, rgba(255, 81, 43, 0.09), transparent 34%),
    var(--paper);
}

.about-hero h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(58px, 8.4vw, 120px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.about-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.about-hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-top: 50px;
  padding-top: 21px;
  border-top: 1px solid var(--line-strong);
}

.about-hero__foot p {
  max-width: 500px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.about-hero__foot span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.about-body {
  padding: 70px 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: clamp(50px, 8vw, 120px);
  justify-content: center;
}

.about-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.about-index {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-light);
}

.about-aside ol {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.about-aside li {
  border-bottom: 1px solid var(--line);
}

.about-aside a {
  display: block;
  padding: 10px 0;
  font-size: 10px;
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.25s var(--ease);
}

.about-aside a:hover {
  color: var(--accent-deep);
  padding-left: 4px;
}

.about-content section {
  padding: 0 0 70px;
  margin-bottom: 70px;
  border-bottom: 1px solid var(--line);
}

.about-content section:last-child {
  border: 0;
  margin-bottom: 0;
}

.section-number {
  display: inline-block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.about-content h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.1vw, 51px);
  line-height: 1.27;
  letter-spacing: -0.045em;
}

.about-content p {
  max-width: 650px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

.about-content p.lead {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
}

.about-steps > div {
  padding: 19px 22px 0 0;
  border-right: 1px solid var(--line);
}

.about-steps > div + div {
  padding-left: 22px;
}

.about-steps > div:last-child {
  border: 0;
}

.about-steps span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent-deep);
}

.about-steps h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 22px;
}

.about-steps p {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.8;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.about-numbers div {
  padding: 18px 20px 18px 0;
}

.about-numbers div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.about-numbers b {
  display: block;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
}

.about-numbers span {
  font-size: 8px;
  color: var(--muted);
}

.about-end {
  padding-top: 6px !important;
}

.about-end > p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about-end h2 {
  font-size: clamp(43px, 5.4vw, 68px);
}

.about-end .button {
  margin-top: 30px;
}

/* ---------------------------------------------------------
   404
   --------------------------------------------------------- */

.not-found {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

.not-found .shell {
  position: relative;
}

.error-code {
  position: absolute;
  top: -50px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.not-found h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(58px, 8.6vw, 122px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.not-found p {
  max-width: 430px;
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  .shell {
    width: min(calc(100% - 48px), var(--max));
  }

  .header-inner {
    gap: 28px;
  }

  .main-nav {
    margin-left: 0;
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    gap: 46px;
  }

  .hero h1 {
    font-size: clamp(52px, 7vw, 90px);
  }

  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
    gap: 40px;
  }

  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1.35fr 0.7fr 0.6fr 0.6fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper-light);
    box-shadow: 0 18px 30px rgba(23, 23, 19, 0.08);
  }

  .main-nav.is-open a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .main-nav.is-open a:last-child {
    border-bottom: 0;
  }

  .header-actions {
    margin-left: 14px;
  }

  .brand-alt {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(56px, 10vw, 96px);
  }

  .hero-lede {
    margin-top: 26px;
  }

  .hero-proof {
    max-width: 560px;
  }

  .record-card {
    width: 100%;
    max-width: 620px;
  }

  .hero-index {
    display: none;
  }

  .atlas-head,
  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
    gap: 38px;
  }

  .atlas-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .live-panel {
    padding-left: 0;
    padding-top: 32px;
    border-left: 0;
    border-top: 1px solid var(--night-line);
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-primary {
    padding-bottom: 34px;
  }

  .distribution {
    min-height: 0;
  }

  .bars {
    gap: 15px;
  }

  .page-hero__grid,
  .topic-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero__aside {
    max-width: 520px;
  }

  .topic-title h1 {
    font-size: clamp(100px, 20vw, 170px);
  }

  .topic-copy {
    max-width: 580px;
  }

  .explore-toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .filter-scroll {
    flex-basis: 100%;
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  }

  .toolbar-actions {
    width: 100%;
  }

  .search-field {
    flex: 1;
    width: auto;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 48px;
  }

  .about-hero__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr;
    row-gap: 38px;
  }

  .footer-col--note {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 36px);
  }

  .header-inner {
    height: 64px;
  }

  .me-button {
    display: inline-flex;
    padding: 6px 0;
    font-size: 10px;
  }

  .header-cta {
    height: 36px;
    padding: 0 12px;
    gap: 9px;
  }

  .hero {
    padding: 42px 0 62px;
  }

  .hero::before {
    width: 80vw;
    height: 80vw;
    top: -28vw;
    right: -26vw;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(48px, 13.2vw, 76px);
  }

  .hero-lede {
    font-size: 13px;
    max-width: 430px;
  }

  .hero-proof {
    margin-top: 33px;
  }

  .proof-item {
    gap: 8px;
    padding-right: 8px;
  }

  .proof-item + .proof-item {
    padding-left: 11px;
  }

  .proof-item strong {
    font-size: 25px;
  }

  .proof-item span {
    font-size: 8px;
  }

  .record-card {
    padding: 22px 20px 20px;
    box-shadow: 9px 9px 0 rgba(23, 23, 19, 0.055);
  }

  #focus-body {
    font-size: 18px;
  }

  .category-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row--split {
    grid-template-columns: 1fr;
  }

  .ticker {
    height: 46px;
  }

  .ticker-label {
    padding: 0 14px;
    font-size: 8px;
  }

  .ticker-item {
    font-size: 11px;
    padding-right: 30px;
  }

  .ticker-link {
    width: 44px;
  }

  .atlas {
    padding: 72px 0 76px;
    border-radius: 26px 26px 0 0;
  }

  .atlas-head,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .atlas-head h2,
  .section-heading h2 {
    font-size: clamp(38px, 10vw, 55px);
  }

  .atlas-intro p,
  .section-heading__copy {
    max-width: 440px;
  }

  .atlas-layout {
    margin-top: 34px;
  }

  .constellation {
    aspect-ratio: 1;
    transform: scale(0.93);
    margin-block: -10px;
  }

  .atlas-node {
    --scale: 0.82;
  }

  .atlas-node__label strong {
    font-size: 17px;
  }

  .atlas-node__label small {
    font-size: 6px;
  }

  .atlas-coordinate {
    display: none;
  }

  .live-panel__head h3 {
    font-size: 26px;
  }

  .report,
  .ritual,
  .faq {
    padding: 74px 0 78px;
  }

  .report-number strong {
    font-size: clamp(66px, 19vw, 100px);
  }

  .report-primary {
    padding: 26px 22px 23px;
  }

  .distribution {
    padding: 25px 22px 22px;
  }

  .report-quote {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    margin-top: 50px;
    padding-top: 28px;
  }

  .report-quote p {
    font-size: clamp(25px, 7vw, 34px);
  }

  .report-quote cite {
    grid-column: 2;
    padding-top: 8px;
  }

  .quote-mark {
    font-size: 62px;
  }

  .week-chart {
    gap: 7px;
    height: 118px;
  }

  .week-track {
    height: 80px;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .ritual-step {
    min-height: 0;
    padding: 25px 0 30px;
    border-top: 1px solid var(--line-strong);
    border-right: 0;
  }

  .ritual-step + .ritual-step {
    padding-left: 0;
  }

  .ritual-step h3 {
    margin-top: 24px;
  }

  .ritual-step p {
    margin-top: 11px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-item p {
    padding-left: 30px;
  }

  .closing {
    padding: 74px 0 64px;
  }

  .closing h2 {
    font-size: clamp(47px, 12.8vw, 80px);
  }

  .closing__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 34px;
  }

  .closing__orbit {
    width: 74vw;
    height: 74vw;
    right: -30vw;
    opacity: 0.7;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px 26px;
    padding-bottom: 44px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-col--note {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer-made {
    width: 100%;
    margin-left: 0;
  }

  .page-hero {
    padding: 38px 0 42px;
  }

  .page-hero h1 {
    font-size: clamp(43px, 11.3vw, 66px);
  }

  .explore-body {
    padding-bottom: 80px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: 212px;
  }

  .focus-body {
    font-size: 18px;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .search-field {
    flex: 1;
    min-width: 0;
  }

  .sort-field {
    margin-left: 0;
  }

  .search-submit {
    display: block;
  }

  .topic-hero {
    padding: 36px 0 44px;
  }

  .topic-title h1 {
    font-size: clamp(86px, 26vw, 142px);
  }

  .topic-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .topic-stats div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .topic-body {
    padding: 46px 0 70px;
  }

  .topic-switch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail {
    padding: 34px 0 80px;
  }

  .detail-card {
    padding: 24px 22px 22px;
    margin-top: 24px;
    box-shadow: 9px 9px 0 rgba(23, 23, 19, 0.05);
  }

  .detail-quote {
    padding: 38px 0 42px;
    font-size: clamp(27px, 7.6vw, 40px);
  }

  .detail-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .detail-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
    margin-top: 46px;
    padding: 24px 22px;
  }

  .detail-cta h2 {
    font-size: 28px;
  }

  .related {
    margin-top: 54px;
  }

  .related .focus-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 38px 0 45px;
  }

  .about-hero h1 {
    font-size: clamp(48px, 12.6vw, 76px);
  }

  .about-hero__foot {
    margin-top: 35px;
  }

  .about-body {
    padding: 48px 0 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-aside {
    position: static;
  }

  .about-aside ol {
    display: flex;
    flex-wrap: wrap;
    border: 0;
    gap: 8px;
    margin-top: 14px;
  }

  .about-aside li {
    border: 1px solid var(--line);
  }

  .about-aside a {
    padding: 6px 9px;
    font-size: 9px;
  }

  .about-content section {
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  .about-content p.lead {
    font-size: 18px;
  }

  .about-steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .about-steps > div {
    padding: 19px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .about-steps > div + div {
    padding-left: 0;
  }

  .about-steps h3 {
    margin-top: 12px;
  }

  .about-numbers b {
    font-size: 28px;
  }

  .me-panel {
    padding: 24px 22px 22px;
  }

  .me-dialog {
    width: 100%;
  }

  .not-found {
    min-height: 62vh;
    padding: 70px 0;
  }

  .not-found__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 46px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-item {
    display: block;
  }

  .proof-item span {
    display: block;
    margin-top: 5px;
  }

  .record-card__top {
    padding-bottom: 14px;
  }

  .signal-option span {
    padding: 8px 1px;
    font-size: 8px;
  }

  .form-block--meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .name-field {
    width: 100%;
  }

  .atlas-node {
    --scale: 0.66;
  }

  .constellation {
    transform: scale(1.02);
    margin-block: -8px;
  }

  .atlas-node__label strong {
    font-size: 16px;
  }

  .week-head {
    flex-direction: column;
    gap: 4px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-col--note {
    grid-column: auto;
  }

  .detail-card__head {
    flex-wrap: wrap;
  }

  .detail-card__head time {
    margin-left: 0;
  }

  .about-numbers {
    grid-template-columns: 1fr;
  }

  .about-numbers div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .me-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .me-summary div:nth-child(2) {
    border-right: 0;
  }

  .me-summary div:last-child {
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .ticker,
  .record-card,
  .me-dialog,
  .toast,
  .site-footer,
  .closing {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* ---------------------------------------------------------
   Private attention portrait
   --------------------------------------------------------- */

.me-portrait-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.me-portrait-link > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.me-portrait-link small {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: rgba(241, 236, 226, 0.42);
}

.me-portrait-link strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.me-portrait-link em {
  font-size: 8px;
  font-style: normal;
  color: rgba(241, 236, 226, 0.52);
}

.me-portrait-link > span:last-child {
  color: var(--acid);
  font-size: 15px;
  transition: transform 0.25s var(--ease);
}

.me-portrait-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.me-portrait-link:hover > span:last-child {
  transform: translate(2px, -2px);
}

.portrait-hero {
  position: relative;
  padding: 48px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 27%, rgba(255, 81, 43, 0.09), transparent 28%),
    radial-gradient(circle at 13% 88%, rgba(82, 99, 166, 0.06), transparent 24%),
    var(--paper);
  overflow: hidden;
}

.portrait-hero::before {
  content: "";
  position: absolute;
  top: -21vw;
  right: -9vw;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.portrait-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 80px;
  align-items: center;
  padding-bottom: 52px;
}

.portrait-hero__copy h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.6vw, 108px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.portrait-hero__copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.portrait-hero__copy > p {
  max-width: 500px;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.portrait-hero__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.portrait-seal {
  position: relative;
  width: 214px;
  height: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-7deg);
  text-align: center;
}

.portrait-seal::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.portrait-seal__top,
.portrait-seal__bottom {
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.portrait-seal__ring {
  position: absolute;
  inset: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.portrait-seal__ring i {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.portrait-seal b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.portrait-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.portrait-stage {
  padding: 44px 0 120px;
  background: var(--paper);
}

.portrait-root {
  min-height: 520px;
}

.portrait-talk {
  padding: 0 0 80px;
  background: var(--paper);
}

.portrait-talk > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.portrait-talk h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.portrait-talk p {
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.portrait-talk .button {
  flex: none;
}

.portrait-document {
  display: grid;
  grid-template-columns: 150px minmax(0, 900px);
  gap: clamp(45px, 7vw, 90px);
  justify-content: center;
  align-items: start;
}

.portrait-index {
  position: sticky;
  top: 108px;
  padding-top: 6px;
}

.portrait-index__label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

.portrait-index ol {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.portrait-index li {
  border-bottom: 1px solid var(--line);
}

.portrait-index a {
  display: block;
  padding: 9px 0;
  font-size: 9px;
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.25s var(--ease);
}

.portrait-index a:hover {
  color: var(--accent-deep);
  padding-left: 4px;
}

.portrait-index > p {
  margin-top: 22px;
  font-size: 8px;
  line-height: 1.75;
  color: var(--muted-light);
}

.portrait-content {
  min-width: 0;
}

.portrait-sample-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--paper-deep);
}

.portrait-sample-banner > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  white-space: nowrap;
}

.portrait-sample-banner > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.portrait-sample-banner p {
  font-size: 9px;
  color: var(--muted);
}

.portrait-sample-banner a {
  margin-left: auto;
  font-size: 9px;
  color: var(--ink);
  white-space: nowrap;
}

.portrait-sample-banner a:hover {
  color: var(--accent-deep);
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.profile-header h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.profile-header h2 em {
  font-style: normal;
  color: var(--accent);
}

.profile-header__stamp {
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-align: center;
  flex: none;
  transform: rotate(5deg);
}

.profile-header__stamp span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.profile-header__stamp b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-deep);
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-meta > div {
  padding: 16px 12px 16px 0;
}

.profile-meta > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.profile-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-meta span {
  font-size: 8px;
  color: var(--muted);
}

.profile-meta > p {
  grid-column: 1 / -1;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  color: var(--muted-light);
}

.profile-section {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--line);
}

.profile-section__head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 28px;
}

.profile-section__num {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent-deep);
}

.profile-section__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 37px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.profile-section__intro {
  max-width: 610px;
  margin: -8px 0 30px 36px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.profile-letter {
  padding-top: 62px;
}

.profile-letter__body {
  max-width: 760px;
  margin-left: 36px;
}

.profile-letter__body p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

.profile-letter__body p.lead {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.8;
  color: var(--ink-soft);
}

.profile-letter__body p.lead::first-letter {
  float: left;
  margin: 3px 6px 0 0;
  font-family: var(--serif);
  font-size: 54px;
  line-height: 0.85;
  color: var(--accent);
}

.profile-label {
  position: relative;
  margin: 20px 0 0;
  padding: 38px 42px 34px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.profile-label::before {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(241, 236, 226, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.profile-label__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-label__en {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: rgba(241, 236, 226, 0.35);
}

.profile-label h2 {
  margin-top: 38px;
  font-family: var(--serif);
  font-size: clamp(46px, 6.3vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  color: var(--acid);
}

.profile-label__tagline {
  max-width: 600px;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.7;
  color: var(--paper);
}

.profile-label__description {
  max-width: 620px;
  margin-top: 24px;
  font-size: 11px;
  line-height: 2;
  color: rgba(241, 236, 226, 0.61);
}

.profile-label__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 25px;
}

.profile-label__tags span {
  padding: 4px 8px;
  border: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: rgba(241, 236, 226, 0.7);
}

.profile-label__note {
  margin-top: 23px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  color: rgba(241, 236, 226, 0.3);
}

.profile-label__stamp {
  position: absolute;
  right: 36px;
  bottom: 33px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 95, 0.45);
  border-radius: 50%;
  transform: rotate(-10deg);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--acid);
}

.insight-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-label .insight-feedback {
  max-width: 520px;
  border-color: var(--night-line);
}

.insight-feedback > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.profile-label .insight-feedback > span {
  color: var(--night-muted);
}

.insight-feedback > div {
  display: flex;
  gap: 4px;
}

.insight-feedback button {
  padding: 3px 6px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 8px;
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-label .insight-feedback button {
  border-color: var(--night-line);
  color: var(--night-muted);
}

.insight-feedback button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.profile-label .insight-feedback button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.insight-feedback button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.insight-feedback small {
  flex-basis: 100%;
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted-light);
}

.profile-label .insight-feedback small {
  color: rgba(241, 236, 226, 0.36);
}

.axis .insight-feedback {
  margin-left: 40px;
  padding-top: 9px;
}

.axis-list {
  margin-left: 36px;
  border-top: 1px solid var(--line-strong);
}

.axis {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.axis__head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}

.axis__head > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.axis__head h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.axis__head b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

.axis__scale {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  margin: 15px 0 13px;
}

.axis__scale > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.axis__scale > span:last-child {
  text-align: right;
}

.axis__track {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}

.axis__track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--line-strong);
}

.axis__track i {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.axis__track i b {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--paper-light);
}

.axis > p {
  max-width: 620px;
  padding-left: 40px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}

.profile-observations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: 36px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.profile-observation {
  padding: 18px 20px 18px 0;
}

.profile-observation + .profile-observation {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.profile-observation > span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

.profile-observation strong {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.profile-observation p {
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
}

.formula {
  margin: 30px 0 0 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.formula__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.formula-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 66px;
  gap: 14px;
  align-items: center;
  min-height: 31px;
}

.formula-row__label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.formula-row__label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat);
}

.formula-row__label span {
  font-size: 10px;
  color: var(--ink-soft);
}

.formula-row__label b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
}

.formula-row__track {
  height: 4px;
  background: rgba(23, 23, 19, 0.075);
}

.formula-row__track span {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--cat);
  animation: growWidth 1s var(--ease) both;
}

.formula-row small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
  text-align: right;
}

.signal-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 0 36px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.signal-strip__label {
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.signal-chip b {
  font-weight: 400;
  color: var(--ink-soft);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-left: 36px;
}

.theme-card {
  padding: 20px 21px 18px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.5);
}

.theme-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.theme-card header b {
  font-weight: 400;
  color: var(--accent-deep);
}

.theme-card h3 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.theme-card > p {
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.theme-card blockquote {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.theme-card blockquote cite {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  color: var(--muted-light);
}

.portrait-ideas {
  margin: 42px 0 0 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.portrait-ideas__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.portrait-ideas__head h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.portrait-ideas__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
}

.portrait-ideas__grid blockquote {
  display: flex;
  flex-direction: column;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.portrait-ideas__grid blockquote > p {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.portrait-ideas__grid blockquote > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: auto;
  padding-top: 11px;
}

.portrait-ideas__grid blockquote > footer span {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.portrait-ideas__grid blockquote > footer b {
  padding: 2px 4px;
  border: 1px solid var(--line);
  font-size: 6px;
  font-weight: 400;
  color: var(--muted);
}

.portrait-ideas > p {
  margin-top: 10px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted-light);
}

.portrait-ai-insight {
  margin: 42px 0 0 36px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.portrait-ai-insight__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.portrait-ai-insight__head h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.portrait-ai-insight > p {
  max-width: 760px;
  margin-top: 11px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.portrait-ai-insight > div:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.portrait-ai-insight > div:nth-of-type(2) span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  font-size: 7px;
  color: var(--muted);
}

.portrait-ai-insight ul {
  margin-top: 10px;
  padding-left: 16px;
}

.portrait-ai-insight li {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
}

.portrait-ai-insight > small {
  display: block;
  margin-top: 10px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.portrait-oracle {
  margin: 42px 0 0 36px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.portrait-oracle--empty {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.portrait-oracle--empty p {
  flex: 1;
  min-width: 240px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.portrait-oracle__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.portrait-oracle__head h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.portrait-oracle__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.portrait-oracle__item {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.portrait-oracle__item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.portrait-oracle__item header span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.portrait-oracle__item header button {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
  cursor: pointer;
}

.portrait-oracle__item header button:hover {
  color: var(--accent-deep);
}

.portrait-oracle__question {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.portrait-oracle__item h4 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.portrait-oracle__item > p:not(.portrait-oracle__question) {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.portrait-oracle__item > small {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.7;
  color: var(--accent-deep);
}

.portrait-oracle__note {
  margin-top: 11px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.evidence {
  margin: 46px 0 0 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.evidence__head h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 25px;
}

.evidence__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 18px;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  padding: 18px;
  background: var(--paper-deep);
}

.evidence-card p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.evidence-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.rhythm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 34px;
  margin-left: 36px;
}

.rhythm__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.rhythm-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}

.rhythm-row > span {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: var(--ink-soft);
}

.rhythm-row > span small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.rhythm-row__track {
  height: 8px;
  background: rgba(23, 23, 19, 0.055);
}

.rhythm-row__track i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--line-strong);
  animation: growWidth 0.9s var(--ease) both;
}

.rhythm-row.is-top .rhythm-row__track i {
  background: var(--accent);
}

.rhythm-row.is-top > span {
  color: var(--accent-deep);
}

.rhythm-row > b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}

.rhythm__note {
  margin-top: 17px;
  font-size: 9px;
  line-height: 1.85;
  color: var(--muted);
}

.recovery {
  padding: 22px 22px 20px;
  background: var(--paper-deep);
}

.recovery__number {
  margin-top: 24px;
}

.recovery__number strong {
  display: block;
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.recovery__number span {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  color: var(--muted);
}

.recovery > p {
  margin-top: 22px;
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted);
}

.recovery blockquote {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.profile-tension {
  margin: 45px 0 0 36px;
  padding: 26px 30px;
  border-left: 3px solid var(--accent);
  background: var(--paper-light);
}

.profile-tension h3 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.profile-tension p {
  max-width: 650px;
  margin-top: 11px;
  font-size: 10px;
  line-height: 1.95;
  color: var(--muted);
}

.profile-questions ol {
  margin-left: 36px;
  border-top: 1px solid var(--line-strong);
  counter-reset: portrait-question;
}

.profile-questions li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: portrait-question;
}

.profile-questions li::before {
  content: "0" counter(portrait-question);
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.profile-questions li span {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
}

.profile-frameworks {
  margin: 40px 0 0 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-frameworks > p {
  margin-top: 8px;
  font-size: 8px;
  color: var(--muted-light);
}

.profile-frameworks > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.profile-frameworks > div span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.profile-disclaimer {
  margin: 38px 0 0 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.profile-disclaimer > p {
  max-width: 680px;
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.8;
  color: var(--muted-light);
}

.profile-disclaimer__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.profile-disclaimer__foot a {
  margin-left: auto;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.profile-disclaimer__foot a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.portrait-loading {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portrait-loading__orbit {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: slowSpin 8s linear infinite;
}

.portrait-loading__orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.portrait-loading__orbit i {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.portrait-loading p {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 22px;
}

.portrait-loading small {
  margin-top: 7px;
  font-size: 9px;
  color: var(--muted-light);
}

.portrait-empty-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 44px;
  max-width: 960px;
  margin: 20px auto 0;
  align-items: start;
}

.portrait-empty {
  padding: 40px 42px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.portrait-empty h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(39px, 4.8vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.portrait-empty > p {
  max-width: 540px;
  margin-top: 17px;
  font-size: 11px;
  line-height: 1.95;
  color: var(--muted);
}

.portrait-empty > p b {
  font-weight: 500;
  color: var(--ink-soft);
}

.readiness {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.readiness__item > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.readiness__item b {
  font-weight: 400;
  color: var(--ink);
}

.readiness__track {
  height: 4px;
  background: var(--line);
}

.readiness__track i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--accent);
  transition: width 0.8s var(--ease);
}

.portrait-empty__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.portrait-empty__note {
  margin-top: 18px !important;
  font-size: 8px !important;
  color: var(--muted-light) !important;
}

.portrait-empty-aside {
  padding-top: 7px;
}

.portrait-empty-aside ol {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.portrait-empty-aside li {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.portrait-empty-aside li > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.portrait-empty-aside p {
  font-size: 8px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .portrait-document {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-inline: auto;
  }

  .portrait-index {
    display: none;
  }

  .portrait-hero__grid {
    gap: 45px;
  }

  .portrait-seal {
    width: 185px;
    height: 185px;
  }
}

@media (max-width: 800px) {
  .portrait-hero {
    padding-top: 36px;
  }

  .portrait-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 38px;
  }

  .portrait-hero__copy h1 {
    font-size: clamp(46px, 12vw, 72px);
  }

  .portrait-seal {
    display: none;
  }

  .portrait-hero__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .portrait-stage {
    padding: 28px 0 80px;
  }

  .portrait-talk {
    padding-bottom: 55px;
  }

  .portrait-talk > .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 18px;
  }

  .profile-header {
    align-items: flex-start;
  }

  .profile-header__stamp {
    width: 76px;
    height: 76px;
  }

  .profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-meta > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .profile-meta > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .profile-section {
    padding: 42px 0 46px;
  }

  .profile-section__head {
    gap: 15px;
  }

  .profile-section__intro,
  .profile-letter__body,
  .axis-list,
  .profile-observations,
  .formula,
  .signal-strip,
  .theme-grid,
  .evidence,
  .rhythm-grid,
  .profile-tension,
  .profile-questions ol,
  .profile-frameworks,
  .profile-disclaimer {
    margin-left: 0;
  }

  .profile-label {
    padding: 28px 22px 26px;
  }

  .profile-label h2 {
    margin-top: 30px;
    font-size: clamp(42px, 11vw, 58px);
  }

  .profile-label__stamp {
    display: none;
  }

  .profile-observations {
    grid-template-columns: 1fr;
  }

  .profile-observation {
    padding: 15px 0;
  }

  .profile-observation + .profile-observation {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .axis > p {
    padding-left: 0;
  }

  .theme-grid,
  .evidence__grid {
    grid-template-columns: 1fr;
  }

  .rhythm-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .profile-tension {
    padding: 22px 20px;
  }

  .profile-tension h3 {
    font-size: 26px;
  }

  .portrait-empty-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portrait-empty {
    padding: 28px 22px;
  }

  .portrait-empty__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .portrait-sample-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .portrait-sample-banner p {
    flex: 1;
  }

  .portrait-sample-banner a {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .portrait-hero__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .profile-header h2 {
    font-size: 35px;
  }

  .profile-header__stamp {
    display: none;
  }

  .profile-letter__body p.lead {
    font-size: 20px;
  }

  .profile-label h2 {
    font-size: 39px;
  }

  .profile-label__description {
    font-size: 10px;
  }

  .formula-row {
    grid-template-columns: 100px minmax(0, 1fr) 54px;
    gap: 9px;
  }

  .formula-row small {
    font-size: 6px;
  }

  .profile-disclaimer__foot a {
    width: 100%;
    margin-left: 0;
  }

  .recovery__number strong {
    font-size: 52px;
  }
}

/* A readability pass for the long-form portrait */
.portrait-document {
  grid-template-columns: 150px minmax(0, 920px);
}

.profile-section__intro {
  font-size: 13px;
  line-height: 1.9;
}

.profile-letter__body {
  max-width: 800px;
}

.profile-letter__body p {
  font-size: 14px;
  line-height: 2;
}

.profile-letter__body p.lead {
  font-size: clamp(22px, 2.3vw, 29px);
}

.profile-label__description {
  font-size: 13px;
  line-height: 2;
}

.profile-label__tags span {
  font-size: 8px;
}

.profile-label__note {
  font-size: 8px;
}

.axis__head h3 {
  font-size: 21px;
}

.axis__head b,
.axis__scale > span {
  font-size: 8px;
}

.axis__track {
  background: rgba(23, 23, 19, 0.48);
}

.axis > p {
  font-size: 12px;
  line-height: 1.9;
}

.profile-observation > span {
  font-size: 8px;
}

.profile-observation strong {
  font-size: 25px;
}

.profile-observation p {
  font-size: 11px;
  line-height: 1.8;
}

.formula-row__label span {
  font-size: 11px;
}

.formula-row__label b {
  font-size: 9px;
}

.formula-row small {
  font-size: 8px;
}

.formula-row__track {
  height: 5px;
}

.signal-chip {
  font-size: 8px;
}

.theme-card header {
  font-size: 8px;
}

.theme-card h3 {
  font-size: 23px;
}

.theme-card > p {
  font-size: 11px;
  line-height: 1.85;
}

.theme-card blockquote {
  font-size: 16px;
}

.theme-card blockquote cite {
  font-size: 8px;
}

.evidence-card p {
  font-size: 17px;
}

.rhythm__head {
  font-size: 8px;
}

.rhythm-row > span {
  font-size: 11px;
}

.rhythm-row > span small {
  font-size: 7px;
}

.rhythm-row > b {
  font-size: 9px;
}

.rhythm__note {
  font-size: 11px;
}

.recovery > p {
  font-size: 11px;
}

.recovery blockquote {
  font-size: 16px;
}

.profile-tension p {
  font-size: 12px;
}

.profile-frameworks > p {
  font-size: 9px;
}

.profile-frameworks > div span {
  font-size: 8px;
}

.profile-disclaimer > p {
  font-size: 9px;
}

.profile-disclaimer__foot {
  font-size: 8px;
}

.profile-meta span {
  font-size: 9px;
}

.profile-meta > p {
  font-size: 8px;
}

.portrait-sample-banner p {
  font-size: 10px;
}

.portrait-empty > p {
  font-size: 13px;
}

.portrait-empty-aside p {
  font-size: 10px;
}

@media (max-width: 500px) {
  .profile-label__description {
    font-size: 12px;
  }

  .formula-row small {
    font-size: 7px;
  }

  .evidence-card p {
    font-size: 16px;
  }
}

@media (max-width: 1080px) {
  .portrait-document {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-inline: auto;
  }
}

/* ---------------------------------------------------------
   Symbolic layer, pathway, and opt-in settings
   --------------------------------------------------------- */

.symbolic-dialog {
  width: min(590px, calc(100% - 32px));
  max-height: min(90vh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}

.symbolic-dialog::backdrop {
  background: rgba(17, 19, 15, 0.62);
  backdrop-filter: blur(4px);
}

.symbolic-panel {
  padding: 30px 32px 26px;
}

.symbolic-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.symbolic-panel__head h2 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.symbolic-intro {
  margin-top: 17px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.symbolic-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 21px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.symbolic-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.symbolic-toggle .switch-track {
  width: 36px;
  height: 19px;
  flex: none;
}

.symbolic-toggle .switch-track i {
  width: 13px;
  height: 13px;
}

.symbolic-toggle input:checked + .switch-track {
  border-color: var(--ink);
  background: var(--ink);
}

.symbolic-toggle input:checked + .switch-track i {
  transform: translateX(17px);
  background: var(--acid);
}

.symbolic-toggle > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.symbolic-toggle b {
  font-size: 11px;
  font-weight: 500;
}

.symbolic-toggle small {
  font-size: 8px;
  color: var(--muted-light);
}

.symbolic-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  transition: opacity 0.2s ease;
}

.symbolic-fields.is-disabled {
  opacity: 0.45;
}

.symbolic-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.symbolic-field--wide {
  grid-column: 1 / -1;
}

.symbolic-field > span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.symbolic-field > span em {
  font-style: normal;
  color: var(--muted-light);
}

.symbolic-field input,
.symbolic-field select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font-size: 11px;
}

.symbolic-field input:focus,
.symbolic-field select:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.symbolic-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  cursor: pointer;
}

.symbolic-check input,
.symbolic-consent input {
  accent-color: var(--accent);
}

.symbolic-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  cursor: pointer;
}

.symbolic-consent input {
  margin-top: 3px;
  flex: none;
}

.symbolic-privacy {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.symbolic-privacy p {
  font-size: 8px;
  line-height: 1.8;
  color: var(--muted-light);
}

.symbolic-privacy p + p {
  margin-top: 5px;
}

.symbolic-error {
  display: none;
  margin-top: 12px;
  padding: 7px 9px;
  background: rgba(255, 81, 43, 0.1);
  border-left: 2px solid var(--accent);
  font-size: 9px;
  color: var(--accent-deep);
}

.symbolic-error.is-visible {
  display: block;
}

.symbolic-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.symbolic-panel__foot .button {
  flex: 1;
}

.symbolic-prompt__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 30px;
  padding: 30px 33px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  overflow: hidden;
}

.symbolic-prompt__card h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.symbolic-prompt__card p {
  max-width: 580px;
  margin-top: 13px;
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}

.symbolic-prompt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 17px;
}

.symbolic-prompt__tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.symbolic-prompt__card .button {
  margin-top: 21px;
}

.symbolic-prompt__privacy {
  font-family: var(--mono);
  font-size: 7px !important;
  color: var(--muted-light) !important;
}

.symbolic-prompt__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 51px;
  color: var(--accent);
  opacity: 0.45;
}

.symbolic-layer__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: -8px 0 28px 36px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.symbolic-layer__bar p {
  max-width: 610px;
  font-size: 8px;
  line-height: 1.75;
  color: var(--muted-light);
}

.symbolic-layer__bar > div {
  display: flex;
  gap: 13px;
  flex: none;
}

.symbolic-sample-note {
  margin: -10px 0 20px 36px;
  font-size: 8px;
  color: var(--muted-light);
}

.symbolic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-left: 36px;
}

.symbolic-card {
  padding: 19px 20px 17px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.45);
}

.symbolic-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.symbolic-card header span:last-child {
  color: var(--accent-deep);
}

.symbolic-card__lead {
  margin-top: 13px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}

.symbolic-card small {
  display: block;
  margin-top: 14px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.bazi-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bazi-pillars > div {
  padding: 12px 5px 10px 0;
  text-align: center;
}

.bazi-pillars > div + div {
  border-left: 1px solid var(--line);
}

.bazi-pillars span {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.bazi-pillars strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.bazi-pillars .is-unknown strong {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted-light);
}

.element-bars {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.element-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 17px;
  gap: 8px;
  align-items: center;
}

.element-row > span {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--el);
}

.element-row > div {
  height: 3px;
  background: rgba(23, 23, 19, 0.07);
}

.element-row i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--el);
}

.element-row b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}

.symbolic-sun,
.symbolic-mbti {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.symbolic-card--sun em,
.symbolic-card--mbti em {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}

.ziwei-palaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ziwei-palaces > div {
  padding: 13px 0;
  text-align: center;
}

.ziwei-palaces > div + div {
  border-left: 1px solid var(--line);
}

.ziwei-palaces span {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.ziwei-palaces strong {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
}

.ziwei-palaces small {
  display: inline;
  margin-left: 5px;
  font-size: 9px;
  color: var(--muted);
}

.mbti-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 15px;
}

.mbti-letters span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.symbolic-alignment {
  margin: 30px 0 0 36px;
  padding-top: 19px;
  border-top: 1px solid var(--line-strong);
}

.alignment-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.alignment-row > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.alignment-row p {
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}

.pathway-basis {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: -5px 0 24px 36px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.pathway-basis > span {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.pathway-basis p {
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
}

.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-left: 36px;
}

.goal-card {
  padding: 22px 23px 20px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.goal-card--long {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.goal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.goal-card--long header {
  color: var(--night-muted);
}

.goal-card header b {
  color: var(--accent);
  font-weight: 400;
}

.goal-card h3 {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.goal-card--long h3 {
  color: var(--acid);
}

.goal-card > p {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}

.goal-card--long > p {
  color: var(--night-muted);
}

.goal-action,
.goal-marker {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.goal-card--long .goal-action,
.goal-card--long .goal-marker {
  border-color: var(--night-line);
}

.goal-action > span,
.goal-marker > span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

.goal-action p,
.goal-marker p {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.goal-card--long .goal-action p,
.goal-card--long .goal-marker p {
  color: rgba(241, 236, 226, 0.72);
}

.goal-symbolic {
  margin-top: 16px;
  padding: 9px 10px;
  border-left: 2px solid var(--accent);
  background: var(--paper-deep);
  font-size: 8px;
  line-height: 1.75;
  color: var(--muted);
}

.goal-card--long .goal-symbolic {
  background: rgba(241, 236, 226, 0.06);
  color: var(--night-muted);
}

.path-steps {
  margin: 35px 0 0 36px;
  border-top: 1px solid var(--line-strong);
}

.path-step {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.path-step > span {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.path-step h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
}

.path-step p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
}

.pathway-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0 36px;
}

.pathway-notes > div {
  padding: 17px 18px;
  border: 1px solid var(--line);
}

.pathway-notes > div > p {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.85;
  color: var(--muted);
}

.pathway-caution {
  grid-column: 1 / -1;
  border-color: var(--accent) !important;
  background: rgba(255, 81, 43, 0.05);
}

.pathway-caution b {
  display: block;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pathway-start {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 25px 0 0 36px;
}

.pathway-start > span {
  font-size: 8px;
  color: var(--muted-light);
}

.direction-block {
  margin: 0 0 26px 36px;
  padding-top: 21px;
  border-top: 1px solid var(--line-strong);
}

.direction-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.direction-block__head p {
  max-width: 400px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

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

.direction-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.direction-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.direction-card header b {
  font-weight: 400;
  color: var(--accent-deep);
}

.direction-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.direction-card > p {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.direction-cost {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.direction-cost span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.direction-cost p {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.direction-card .text-button {
  align-self: flex-start;
  margin-top: 15px;
  font-size: 9px;
}

.direction-card .text-button span {
  margin-left: 4px;
  color: var(--accent);
}

@media (max-width: 800px) {
  .direction-block {
    margin-left: 0;
  }

  .direction-block__head {
    flex-direction: column;
    gap: 8px;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .axis .insight-feedback {
    margin-left: 0;
  }
}

@media (max-width: 800px) {
  .pathway-start {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
  }
}

@media (max-width: 800px) {
  .symbolic-dialog {
    width: calc(100% - 24px);
    max-height: 92vh;
  }

  .symbolic-panel {
    padding: 23px 19px 21px;
  }

  .symbolic-panel__head h2 {
    font-size: 26px;
  }

  .symbolic-fields {
    grid-template-columns: 1fr;
  }

  .symbolic-field--wide {
    grid-column: auto;
  }

  .symbolic-panel__foot {
    flex-wrap: wrap;
  }

  .symbolic-panel__foot .text-button {
    width: 100%;
    text-align: left;
  }

  .symbolic-prompt__card {
    grid-template-columns: 1fr;
    padding: 23px 20px;
  }

  .symbolic-prompt__mark {
    display: none;
  }

  .symbolic-layer__bar,
  .symbolic-sample-note,
  .symbolic-grid,
  .symbolic-alignment,
  .pathway-basis,
  .goal-grid,
  .path-steps,
  .pathway-notes {
    margin-left: 0;
  }

  .symbolic-layer__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .symbolic-grid,
  .goal-grid,
  .pathway-notes {
    grid-template-columns: 1fr;
  }

  .pathway-caution {
    grid-column: auto;
  }

  .alignment-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 500px) {
  .symbolic-prompt__card h3 {
    font-size: 27px;
  }

  .bazi-pillars strong {
    font-size: 22px;
  }

  .symbolic-sun,
  .symbolic-mbti {
    font-size: 37px;
  }

  .goal-card h3 {
    font-size: 23px;
  }

  .path-step {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .path-step > span {
    padding-top: 0;
  }
}

/* ---------------------------------------------------------
   Oracle room
   --------------------------------------------------------- */

.oracle-hero {
  position: relative;
  padding: 46px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 81, 43, 0.08), transparent 28%),
    radial-gradient(circle at 10% 86%, rgba(82, 99, 166, 0.06), transparent 28%),
    var(--paper);
  overflow: hidden;
}

.oracle-hero::before {
  content: "";
  position: absolute;
  right: -12vw;
  top: -24vw;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.oracle-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(50px, 7vw, 105px);
  align-items: start;
  padding-bottom: 48px;
}

.oracle-hero__copy h1 {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.6vw, 92px);
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.oracle-hero__copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.oracle-hero__copy > p {
  max-width: 535px;
  margin-top: 29px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.oracle-hero__actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 30px;
}

.oracle-methods {
  border-top: 1px solid var(--line-strong);
}

.oracle-method {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 17px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), color 0.2s ease;
}

.oracle-method:hover {
  padding-left: 5px;
  color: var(--accent-deep);
}

.oracle-method__num {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.oracle-method > div > span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

.oracle-method h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.oracle-method p {
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted);
}

.oracle-method i {
  font-style: normal;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.oracle-method:hover i {
  transform: translate(2px, -2px);
}

.oracle-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.oracle-stage {
  padding: 53px 0 112px;
  background:
    radial-gradient(circle at 84% 20%, rgba(216, 255, 95, 0.045), transparent 25%),
    var(--night);
  color: var(--paper);
}

.oracle-app {
  max-width: 1120px;
  margin-inline: auto;
}

.oracle-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}

.oracle-tab {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  background: transparent;
  color: var(--night-muted);
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.oracle-tab:hover {
  background: rgba(241, 236, 226, 0.04);
  color: var(--paper);
}

.oracle-tab.is-active {
  background: var(--acid);
  color: var(--ink);
}

.oracle-tab > span {
  grid-row: 1 / span 2;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
}

.oracle-tab.is-active > span {
  color: var(--ink);
}

.oracle-tab b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.oracle-tab small {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.oracle-panel {
  padding: 30px 0 0;
}

.oracle-panel__head {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 28px;
}

.oracle-panel__num {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
}

.oracle-panel__head h2 {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.oracle-panel__head p {
  max-width: 650px;
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--night-muted);
}

.oracle-panel .eyebrow {
  color: rgba(241, 236, 226, 0.43);
}

.oracle-workbench {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.oracle-form-card {
  padding: 21px;
  border: 1px solid var(--night-line);
  background: rgba(241, 236, 226, 0.035);
}

.oracle-form-card label {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--night-muted);
}

.oracle-form-card label em {
  margin-left: 5px;
  font-style: normal;
  color: rgba(241, 236, 226, 0.28);
}

.oracle-form-card textarea {
  display: block;
  width: 100%;
  min-height: 83px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--night-line);
  border-radius: 0;
  background: rgba(17, 19, 15, 0.35);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.oracle-form-card textarea:focus {
  outline: 1px solid var(--acid);
  border-color: var(--acid);
}

.oracle-form-card textarea::placeholder {
  color: rgba(241, 236, 226, 0.24);
}

.oracle-form-card > p {
  margin-top: 9px;
  font-size: 8px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.35);
}

.oracle-form-card > small {
  display: block;
  margin-top: 10px;
  font-size: 7px;
  line-height: 1.6;
  color: rgba(241, 236, 226, 0.3);
}

.oracle-cast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  margin-top: 19px;
  padding: 0 14px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  transition: background 0.22s ease, color 0.22s ease;
}

.oracle-cast:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.oracle-cast span {
  font-size: 14px;
}

.oracle-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.oracle-numbers label span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.oracle-numbers input {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--night-line);
  border-radius: 0;
  background: rgba(17, 19, 15, 0.35);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 22px;
}

.oracle-numbers input:focus {
  outline: 1px solid var(--acid);
  border-color: var(--acid);
}

.oracle-spread-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--night-line);
}

.oracle-spread-note span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.oracle-spread-note p {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 15px;
}

.oracle-result {
  min-height: 456px;
  border: 1px solid var(--night-line);
  background: rgba(241, 236, 226, 0.025);
}

.oracle-idle {
  min-height: 454px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px;
}

.oracle-idle > span {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--acid);
  opacity: 0.75;
}

.oracle-idle p {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.6;
}

.oracle-idle small {
  margin-top: 9px;
  font-size: 8px;
  color: rgba(241, 236, 226, 0.32);
}

.oracle-error {
  padding: 24px;
  font-size: 11px;
  line-height: 1.8;
  color: #ff9b83;
}

.oracle-reading {
  padding: 24px 26px 20px;
}

.oracle-ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 13px 0 0;
  padding: 10px 13px;
  border: 1px solid var(--night-line);
  background: rgba(216, 255, 95, 0.035);
}

.oracle-ai-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  color: var(--night-muted);
}

.oracle-ai-bar input {
  accent-color: var(--acid);
}

.oracle-ai-bar em {
  font-style: normal;
  color: var(--night-muted);
}

.oracle-ai-bar > span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
  text-align: right;
}

.oracle-ai {
  margin-top: 15px;
  padding: 19px 20px 18px;
  border: 1px solid rgba(216, 255, 95, 0.3);
  background:
    linear-gradient(135deg, rgba(216, 255, 95, 0.055), transparent 45%),
    rgba(9, 12, 9, 0.58);
}

.oracle-ai__loading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  color: var(--night-muted);
}

.oracle-ai__loading i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 15px rgba(216, 255, 95, 0.6);
  animation: oracle-pulse 1.3s ease-in-out infinite;
}

@keyframes oracle-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}

.oracle-ai__loading p {
  font-size: 9px;
  line-height: 1.7;
}

.oracle-ai__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-line);
}

.oracle-ai__head span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--acid);
}

.oracle-ai__head small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
}

.oracle-ai h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
}

.oracle-ai__opening {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.95;
  color: var(--night-muted);
}

.oracle-ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 18px;
  margin-top: 15px;
}

.oracle-ai__grid section {
  padding-top: 10px;
  border-top: 1px solid var(--night-line);
}

.oracle-ai__grid section.is-wide {
  grid-column: 1 / -1;
}

.oracle-ai__grid span {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.oracle-ai__grid p {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.95;
  color: var(--paper);
}

.oracle-ai__grid section.is-action p {
  color: var(--acid);
}

.oracle-ai__caution {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--night-line);
  font-size: 7px;
  line-height: 1.7;
  color: var(--night-muted);
}

.oracle-ai__notice {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.7;
  color: var(--accent);
}

.oracle-ai__idle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.oracle-ai__idle p {
  font-size: 9px;
  line-height: 1.7;
  color: var(--night-muted);
}

.oracle-ai__run {
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(216, 255, 95, 0.45);
  background: transparent;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--acid);
  cursor: pointer;
}

.oracle-ai__run:hover {
  background: rgba(216, 255, 95, 0.08);
}

.oracle-ai__run:disabled {
  opacity: 0.5;
  cursor: wait;
}

.oracle-save {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--night-line);
}

.oracle-save label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--night-muted);
}

.oracle-save label em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
}

.oracle-save input {
  accent-color: var(--acid);
}

.oracle-save > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.oracle-save small {
  font-size: 6px;
  line-height: 1.6;
  color: var(--night-muted);
}

.oracle-reading__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--night-line);
}

.oracle-reading__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.2;
  color: var(--acid);
  letter-spacing: -0.04em;
}

.oracle-reading__head p {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.oracle-seal {
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border: 1px solid rgba(216, 255, 95, 0.45);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--acid);
  flex: none;
  transform: rotate(6deg);
}

.oracle-question {
  margin-top: 13px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  font-size: 9px;
  line-height: 1.7;
  color: var(--night-muted);
}

.oracle-question b {
  font-weight: 400;
  color: var(--paper);
}

.oracle-reading__grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 27px;
  margin-top: 19px;
}

.hexagram-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hex-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 43px;
  gap: 7px;
  align-items: center;
  min-height: 25px;
}

.hex-line__pos {
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(241, 236, 226, 0.3);
}

.hex-line__mark {
  display: flex;
  gap: 9px;
  align-items: center;
  height: 9px;
}

.hex-line__mark i {
  display: block;
  flex: 1;
  height: 8px;
  background: rgba(241, 236, 226, 0.72);
}

.hex-line.is-yin .hex-line__mark i {
  flex: 1;
}

.hex-line.is-yang .hex-line__mark i {
  flex: 1;
}

.hex-line.is-moving .hex-line__mark i {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(255, 81, 43, 0.35);
}

.hex-line__state {
  font-family: var(--mono);
  font-size: 6px;
  color: rgba(241, 236, 226, 0.32);
  text-align: right;
}

.hex-line.is-moving .hex-line__state {
  color: var(--accent);
}

.oracle-interpretation > div + div {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--night-line);
}

.oracle-interpretation span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  color: var(--acid);
}

.oracle-interpretation p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.85;
  color: rgba(241, 236, 226, 0.68);
}

.oracle-changed {
  display: grid;
  grid-template-columns: 55px 160px minmax(0, 1fr);
  gap: 15px;
  align-items: baseline;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--night-line);
}

.oracle-changed > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.oracle-changed strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--acid);
}

.oracle-changed p {
  font-size: 9px;
  line-height: 1.75;
  color: var(--night-muted);
}

.oracle-changed small {
  grid-column: 2 / -1;
  font-size: 8px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.4);
}

.oracle-trigrams {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 21px;
}

.oracle-trigrams > div {
  padding: 11px 12px;
  border: 1px solid var(--night-line);
}

.oracle-trigrams span {
  display: block;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
}

.oracle-trigrams strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.oracle-trigrams small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  line-height: 1.6;
  color: rgba(241, 236, 226, 0.42);
}

.oracle-fineprint {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--night-line);
  font-size: 7px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.28);
}

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

.tarot-card {
  min-width: 0;
}

.tarot-card__face {
  position: relative;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border: 1px solid color-mix(in srgb, var(--tarot) 58%, var(--night-line));
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tarot) 13%, transparent), transparent 52%),
    #171a15;
  overflow: hidden;
}

.tarot-card__face::before,
.tarot-card__face::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--tarot) 42%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.tarot-card__face::before {
  width: 150px;
  height: 150px;
}

.tarot-card__face::after {
  width: 200px;
  height: 200px;
  border-style: dashed;
  opacity: 0.4;
}

.tarot-card__roman {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--tarot);
}

.tarot-card__symbol {
  position: relative;
  z-index: 1;
  margin: 18px 0 17px;
  font-family: var(--serif);
  font-size: 57px;
  line-height: 1;
  color: var(--tarot);
  transition: transform 0.5s var(--ease);
}

.tarot-card.is-reversed .tarot-card__symbol {
  transform: rotate(180deg);
}

.tarot-card__face strong {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: var(--paper);
}

.tarot-card__face em {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  color: var(--tarot);
}

.tarot-card__meaning {
  padding: 12px 2px 0;
}

.tarot-card__meaning > span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--night-muted);
}

.tarot-card__meaning p {
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.8;
  color: rgba(241, 236, 226, 0.58);
}

.tarot-card__meaning small {
  display: block;
  margin-top: 7px;
  font-size: 7px;
  color: rgba(241, 236, 226, 0.3);
}

.oracle-disclaimer {
  max-width: 710px;
  margin: 36px 0 0 auto;
  padding-top: 15px;
  border-top: 1px solid var(--night-line);
  font-size: 7px;
  line-height: 1.8;
  color: rgba(241, 236, 226, 0.3);
  text-align: right;
}

@media (max-width: 900px) {
  .oracle-hero__grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .oracle-methods {
    max-width: 520px;
  }

  .oracle-workbench {
    grid-template-columns: 1fr;
  }

  .oracle-form-card {
    max-width: 540px;
  }
}

@media (max-width: 700px) {
  .oracle-hero {
    padding-top: 35px;
  }

  .oracle-hero__copy h1 {
    font-size: clamp(43px, 11.7vw, 68px);
  }

  .oracle-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .oracle-hero__foot {
    flex-direction: column;
    gap: 4px;
  }

  .oracle-stage {
    padding: 35px 0 80px;
  }

  .oracle-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(3, 190px);
  }

  .oracle-tab {
    padding: 12px 13px;
  }

  .oracle-panel__head {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .oracle-reading {
    padding: 18px 17px 16px;
  }

  .oracle-reading__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hexagram-lines {
    max-width: 310px;
  }

  .oracle-changed {
    grid-template-columns: 48px 1fr;
    gap: 8px 12px;
  }

  .oracle-changed small {
    grid-column: 2;
  }

  .oracle-trigrams {
    grid-template-columns: 1fr;
  }

  .tarot-grid {
    grid-template-columns: 1fr;
  }

  .tarot-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .tarot-card__face {
    min-height: 198px;
  }

  .tarot-card__symbol {
    font-size: 42px;
    margin: 12px 0;
  }

  .tarot-card__meaning {
    padding-top: 5px;
  }

  .oracle-disclaimer {
    text-align: left;
  }

  .oracle-ai-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .oracle-ai-bar > span {
    text-align: left;
  }

  .oracle-ai {
    padding: 16px 14px;
  }

  .oracle-ai__grid {
    grid-template-columns: 1fr;
  }

  .oracle-ai__idle {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 450px) {
  .tarot-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .tarot-card__face {
    min-height: 168px;
    padding: 9px 6px;
  }

  .tarot-card__face strong {
    font-size: 15px;
  }

  .tarot-card__symbol {
    font-size: 35px;
  }

  .oracle-reading__head h2 {
    font-size: 29px;
  }

  .oracle-seal {
    width: 51px;
    height: 51px;
    font-size: 14px;
  }
}

/* ---------------------------------------------------------
   Private journey: experiments, change, reviews
   --------------------------------------------------------- */

.me-journey-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.me-journey-link > span:last-child {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.me-journey-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.detail-context {
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-size: 7px !important;
  color: var(--muted) !important;
}

.journey-hero {
  position: relative;
  padding: 45px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 24%, rgba(56, 116, 91, 0.08), transparent 27%),
    radial-gradient(circle at 13% 90%, rgba(255, 81, 43, 0.06), transparent 25%),
    var(--paper);
  overflow: hidden;
}

.journey-hero::before {
  content: "";
  position: absolute;
  right: -10vw;
  top: -26vw;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(23, 23, 19, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.journey-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  padding-bottom: 48px;
}

.journey-hero h1 {
  margin-top: 23px;
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.journey-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.journey-hero__grid > div > p {
  max-width: 530px;
  margin-top: 27px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.journey-hero__actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 29px;
}

.journey-manifesto {
  border-top: 1px solid var(--line-strong);
}

.journey-manifesto > div {
  display: grid;
  grid-template-columns: 24px 60px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.journey-manifesto span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.journey-manifesto b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.journey-manifesto p {
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
}

.journey-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.journey-stage {
  padding: 37px 0 105px;
  background: var(--paper);
}

.journey-summary {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  background: var(--ink);
  color: var(--paper);
}

.journey-summary > div {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid var(--night-line);
}

.journey-summary > div:last-child {
  border: 0;
}

.journey-summary__main strong {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--acid);
}

.journey-summary__main p {
  margin-top: 6px;
  font-size: 8px;
  color: var(--night-muted);
}

.journey-summary > div:not(.journey-summary__main) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.journey-summary > div:not(.journey-summary__main) b {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}

.journey-summary > div:not(.journey-summary__main) span {
  margin-top: 5px;
  font-size: 8px;
  color: var(--night-muted);
}

.journey-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 17px;
  align-items: start;
  margin-top: 17px;
}

.journey-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.journey-card {
  padding: 24px 25px 22px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.journey-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.journey-card__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.journey-badge {
  flex: none;
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.journey-badge--active {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.journey-card__intro {
  max-width: 630px;
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.journey-experiment--active {
  border-top: 3px solid var(--accent);
}

.experiment-hypothesis {
  margin-top: 17px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.experiment-action {
  margin-top: 17px;
  padding: 12px 14px;
  background: var(--paper-deep);
}

.experiment-action > span,
.checkin__head > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.experiment-action p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.experiment-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 20px;
}

.experiment-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.experiment-form label > span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.experiment-form label em {
  font-style: normal;
  color: var(--muted-light);
}

.experiment-form input,
.experiment-form textarea,
.journey-review textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}

.experiment-form input {
  height: 37px;
  font-family: var(--serif);
  font-size: 17px;
}

.experiment-form input:focus,
.experiment-form textarea:focus,
.journey-review textarea:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.experiment-form .button {
  align-self: flex-start;
  min-width: 210px;
  margin-top: 3px;
}

.pending-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding: 9px 11px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 81, 43, 0.06);
}

.pending-note span {
  flex: none;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.pending-note p {
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}

.checkin {
  margin-top: 19px;
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.checkin__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.checkin__head small {
  font-size: 7px;
  color: var(--muted-light);
}

.energy-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.energy-options button {
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 9px;
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.energy-options button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.energy-options button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.checkin textarea {
  width: 100%;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  font-size: 10px;
  line-height: 1.6;
  resize: vertical;
}

.checkin .button {
  width: 100%;
  margin-top: 8px;
}

.checkin-status {
  margin-top: 6px;
  font-size: 8px;
  color: var(--muted-light);
}

.experiment-history {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.checkin-list {
  margin-top: 10px;
}

.checkin-list > div {
  display: grid;
  grid-template-columns: 45px 75px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.checkin-list span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.checkin-list b {
  font-size: 8px;
  font-weight: 400;
}

.checkin-list b.energy-up {
  color: #38745b;
}

.checkin-list b.energy-down {
  color: var(--accent-deep);
}

.checkin-list b.energy-same {
  color: var(--muted);
}

.checkin-list p {
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

.complete-experiment {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.complete-experiment summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.complete-experiment > p {
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted-light);
}

.complete-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.complete-options button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 8px;
  color: var(--muted);
}

.complete-options button:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.complete-experiment textarea {
  width: 100%;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 10px;
  resize: vertical;
}

.complete-status {
  margin-top: 7px;
  font-size: 8px;
  color: var(--muted-light);
}

.journey-completed {
  opacity: 0.86;
}

.journey-completed > p {
  margin-top: 13px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.delta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.delta-grid > div {
  padding: 13px 10px 12px 0;
}

.delta-grid > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.delta-grid span {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.delta-grid b {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
}

.delta-grid small {
  margin-left: 3px;
  font-size: 8px;
  color: var(--muted);
}

.category-deltas {
  margin-top: 17px;
}

.category-deltas > div {
  display: grid;
  grid-template-columns: 1fr 40px 70px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.category-deltas span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-soft);
}

.category-deltas span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat);
}

.category-deltas b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  text-align: right;
}

.category-deltas b.is-up {
  color: #38745b;
}

.category-deltas b.is-down {
  color: var(--accent-deep);
}

.category-deltas small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
  text-align: right;
}

.source-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  font-size: 9px;
  color: var(--muted);
}

.source-line b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
}

.source-line small {
  margin-left: auto;
  font-size: 7px;
  color: var(--muted-light);
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 17px;
}

.comparison-bars > div {
  display: grid;
  grid-template-columns: 55px 1fr 22px;
  gap: 9px;
  align-items: center;
}

.comparison-bars span {
  font-size: 9px;
  color: var(--muted);
}

.comparison-bars > div > div {
  height: 4px;
  background: var(--line);
}

.comparison-bars i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--cat);
}

.comparison-bars b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}

.review-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.review-prompts span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}

.journey-review textarea {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 14px;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 11px;
}

.review-actions .button {
  min-width: 125px;
  min-height: 40px;
}

.review-actions span {
  font-size: 8px;
  color: var(--muted-light);
}

.journey-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.journey-aside__card {
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.journey-aside__card h2 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.journey-aside__card > p {
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.journey-aside__card > small {
  display: block;
  margin-top: 11px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.journey-insights {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid var(--line);
}

.journey-insights li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
}

.journey-aside__card .text-link {
  margin-top: 13px;
}

.data-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.data-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 9px;
  color: var(--ink-soft);
}

.data-actions button:hover {
  border-color: var(--ink);
}

.data-actions button:last-child:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.journey-aside__portrait {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
}

.journey-aside__portrait > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.journey-aside__portrait small {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: rgba(241, 236, 226, 0.4);
}

.journey-aside__portrait strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.journey-aside__portrait > span:last-child {
  color: var(--acid);
}

.journey-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 50px;
  align-items: center;
  margin: 20px auto 0;
  padding: 40px 42px;
  max-width: 980px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.journey-empty h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.journey-empty p {
  max-width: 540px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.journey-empty__actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 26px;
}

.journey-empty__steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 8px;
}

.journey-empty__steps span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
}

.journey-empty__steps b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  color: var(--accent-deep);
}

.journey-muted {
  margin-top: 10px;
  font-size: 9px;
  color: var(--muted-light);
}

@media (max-width: 1000px) {
  .journey-hero__grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .journey-manifesto {
    max-width: 560px;
  }

  .journey-summary {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .journey-summary > div:last-child {
    display: none;
  }

  .journey-main {
    grid-template-columns: 1fr;
  }

  .journey-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .journey-aside__portrait {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .journey-hero {
    padding-top: 35px;
  }

  .journey-hero h1 {
    font-size: clamp(47px, 12vw, 70px);
  }

  .journey-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .journey-hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .journey-stage {
    padding: 25px 0 80px;
  }

  .journey-summary {
    grid-template-columns: 1fr 1fr;
  }

  .journey-summary__main {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 1px solid var(--night-line);
  }

  .journey-summary > div:nth-child(3) {
    border-right: 0;
  }

  .journey-summary > div:nth-child(4) {
    display: flex;
    border-top: 1px solid var(--night-line);
  }

  .journey-card {
    padding: 20px 18px 18px;
  }

  .journey-card__head h2 {
    font-size: 25px;
  }

  .journey-badge {
    font-size: 6px;
  }

  .energy-options {
    grid-template-columns: 1fr;
  }

  .checkin-list > div {
    grid-template-columns: 38px 70px minmax(0, 1fr);
  }

  .delta-grid {
    grid-template-columns: 1fr;
  }

  .delta-grid > div {
    padding: 10px 0;
  }

  .delta-grid > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .category-deltas > div {
    grid-template-columns: 1fr 35px;
  }

  .category-deltas small {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: -5px;
  }

  .journey-aside {
    grid-template-columns: 1fr;
  }

  .journey-aside__portrait {
    grid-column: auto;
  }

  .journey-empty {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 28px;
  }

  .journey-empty__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .review-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .journey-summary > div:nth-child(4) b {
    font-size: 20px;
  }
}

/* ---------------------------------------------------------
   Symbolic dossier: bazi, ziwei, astrology, mbti
   --------------------------------------------------------- */

.symbolic-page-hero {
  position: relative;
  padding: 45px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 18%, rgba(82, 99, 166, 0.1), transparent 27%),
    radial-gradient(circle at 14% 85%, rgba(201, 144, 27, 0.08), transparent 25%),
    var(--paper);
  overflow: hidden;
}

.symbolic-page-hero::before,
.symbolic-page-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.symbolic-page-hero::before {
  width: 46vw;
  height: 46vw;
  right: -12vw;
  top: -27vw;
}

.symbolic-page-hero::after {
  width: 25vw;
  height: 25vw;
  left: -12vw;
  bottom: -15vw;
}

.symbolic-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding-bottom: 46px;
}

.symbolic-page-hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(56px, 6.6vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.symbolic-page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.symbolic-page-hero__grid > div > p {
  max-width: 590px;
  margin-top: 25px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.symbolic-page-hero__actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 28px;
}

.symbolic-page-seal {
  position: relative;
  width: 235px;
  height: 235px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
}

.symbolic-page-seal::before,
.symbolic-page-seal::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.symbolic-page-seal::before {
  inset: 11px;
}

.symbolic-page-seal::after {
  inset: 23px;
}

.symbolic-page-seal > span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.symbolic-page-seal > b {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
  letter-spacing: 0.05em;
}

.symbolic-page-seal > i {
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.symbolic-page-seal > small {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  text-align: center;
}

.symbolic-page-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.symbolic-page-stage {
  padding: 0 0 105px;
  background: var(--paper);
}

.symbolic-toolbar {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(241, 236, 226, 0.94);
  backdrop-filter: blur(12px);
}

.symbolic-toolbar__birth {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.symbolic-toolbar__birth b {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.symbolic-toolbar__birth small {
  font-size: 7px;
  color: var(--muted-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.symbolic-subnav {
  display: flex;
  gap: 13px;
  justify-content: center;
}

.symbolic-subnav button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-family: var(--sans);
  font-size: 9px;
  color: var(--muted);
  cursor: pointer;
}

.symbolic-subnav button:hover {
  color: var(--ink);
}

.symbolic-subnav button.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.symbolic-toolbar__actions {
  display: flex;
  gap: 12px;
}

.symbolic-toolbar__actions .text-button {
  font-size: 8px;
}

.symbolic-sample-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
  padding: 9px 12px;
  border: 1px solid rgba(201, 144, 27, 0.35);
  background: rgba(201, 144, 27, 0.07);
}

.symbolic-sample-banner > span {
  flex: none;
  padding: 3px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 7px;
}

.symbolic-sample-banner p {
  flex: 1;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

.symbolic-sample-banner .text-button {
  flex: none;
  font-size: 8px;
}

.symbolic-overview {
  margin-top: 16px;
  padding: 25px 25px 22px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.symbolic-overview__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 30px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.symbolic-overview__head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.symbolic-overview__head p {
  max-width: 800px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.95;
  color: var(--muted);
}

.symbolic-birth-stamp {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: var(--paper-deep);
}

.symbolic-birth-stamp span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

.symbolic-birth-stamp b {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.symbolic-birth-stamp small {
  font-size: 8px;
  color: var(--muted);
}

.symbolic-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 15px 0 18px;
}

.symbolic-keywords span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

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

.symbolic-system-card {
  display: flex;
  flex-direction: column;
  min-height: 152px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.symbolic-system-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.symbolic-system-card > span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.symbolic-system-card > b {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.symbolic-system-card > strong {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--accent-deep);
}

.symbolic-system-card > p {
  margin-top: auto;
  padding-top: 12px;
  font-size: 8px;
  line-height: 1.6;
  color: var(--muted);
}

.symbolic-overview[data-panel],
.symbolic-section[data-panel] {
  display: none;
}

.symbolic-overview[data-panel].is-active,
.symbolic-section[data-panel].is-active {
  display: block;
}

.symbolic-quick-read {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.symbolic-quick-read > div {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.symbolic-quick-read span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.symbolic-quick-read p {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.symbolic-ai {
  margin-top: 17px;
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
}

.symbolic-ai__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--night-line);
}

.symbolic-ai__head h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.symbolic-ai__status {
  padding: 4px 7px;
  border: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
  white-space: nowrap;
}

.symbolic-ai__status.is-remote {
  border-color: var(--acid);
  color: var(--acid);
}

.symbolic-ai__intro {
  max-width: 780px;
  margin-top: 12px;
  font-size: 9px;
  line-height: 1.8;
  color: rgba(241, 236, 226, 0.55);
}

.symbolic-ai__quick {
  display: inline-block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--acid);
}

.symbolic-ai__quick span {
  margin-left: 3px;
}

.page-symbolic .idea-fab {
  display: none;
}

.page-ai .idea-fab,
.page-weekly .idea-fab,
.page-account .idea-fab,
.page-auth .idea-fab {
  display: none;
}

.symbolic-ai__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.symbolic-ai__suggestions button {
  padding: 5px 8px;
  border: 1px solid var(--night-line);
  background: transparent;
  font-size: 8px;
  color: var(--night-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.symbolic-ai__suggestions button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.symbolic-ai__form {
  margin-top: 12px;
}

.symbolic-ai textarea {
  width: 100%;
  min-height: 78px;
  padding: 11px;
  border: 1px solid var(--night-line);
  background: rgba(241, 236, 226, 0.06);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.symbolic-ai textarea::placeholder {
  color: rgba(241, 236, 226, 0.3);
}

.symbolic-ai textarea:focus {
  outline: 1px solid var(--acid);
  border-color: var(--acid);
}

.symbolic-ai__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 8px;
}

.symbolic-ai__controls label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 7px;
  line-height: 1.6;
  color: var(--night-muted);
}

.symbolic-ai__controls input {
  margin-top: 2px;
  accent-color: var(--acid);
}

.symbolic-ai__controls em {
  font-style: normal;
  color: rgba(241, 236, 226, 0.3);
}

.symbolic-ai__controls .button {
  flex: none;
  min-width: 125px;
  min-height: 38px;
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.symbolic-ai__answer {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--night-line);
}

.symbolic-ai__answer-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.symbolic-ai__answer-head span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--acid);
}

.symbolic-ai__answer-head small {
  font-size: 6px;
  color: var(--night-muted);
}

.symbolic-ai__text {
  max-width: 850px;
  margin-top: 9px;
}

.symbolic-ai__text p {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.9;
  color: rgba(241, 236, 226, 0.75);
}

.symbolic-ai__text strong {
  font-weight: 500;
  color: var(--paper);
}

.symbolic-ai__text ul {
  margin-top: 8px;
  padding-left: 16px;
}

.symbolic-ai__text li {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.8;
  color: rgba(241, 236, 226, 0.7);
}

.symbolic-ai__text h4 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
}

.symbolic-ai__text code {
  padding: 1px 4px;
  background: rgba(241, 236, 226, 0.1);
  font-family: var(--mono);
  font-size: 8px;
  color: var(--acid);
}

.symbolic-ai__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.symbolic-ai__sources span {
  padding: 3px 6px;
  border: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
}

.symbolic-ai__notice {
  margin-top: 11px;
  font-size: 7px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.4);
}

.symbolic-ai__error {
  font-size: 9px;
  line-height: 1.7;
  color: #e8a28c;
}

.symbolic-ai__loading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  color: var(--night-muted);
}

.symbolic-ai__loading i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--night-line);
  border-top-color: var(--acid);
  border-radius: 50%;
  animation: symbolic-spin 0.8s linear infinite;
}

@keyframes symbolic-spin {
  to {
    transform: rotate(360deg);
  }
}

.symbolic-section {
  margin-top: 17px;
  padding: 26px 25px 24px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  scroll-margin-top: 110px;
}

.symbolic-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.symbolic-section__num {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.symbolic-section__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.symbolic-section__aside {
  margin-left: auto;
  padding-top: 9px;
  text-align: right;
}

.symbolic-mini {
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted);
}

.bazi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.8fr);
  gap: 18px;
  margin-top: 19px;
}

.bazi-board {
  min-width: 0;
  border: 1px solid var(--line);
}

.bazi-table {
  display: flex;
  flex-direction: column;
}

.bazi-row {
  display: grid;
  grid-template-columns: 58px repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.bazi-row:last-child {
  border-bottom: 0;
}

.bazi-row > span {
  display: flex;
  align-items: center;
  padding: 9px 8px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.bazi-row > div,
.bazi-row > b {
  min-width: 0;
  padding: 9px 8px;
  border-left: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
  word-break: break-word;
}

.bazi-row--head > b {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.bazi-row .gan,
.bazi-row .zhi {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.bazi-row .gan {
  color: var(--accent-deep);
}

.bazi-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding: 8px 10px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted-light);
}

.bazi-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bazi-master {
  padding: 17px;
  background: var(--ink);
  color: var(--paper);
}

.bazi-master > strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 39px;
  font-weight: 400;
  line-height: 1;
  color: var(--acid);
}

.bazi-master > p {
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.8;
  color: rgba(241, 236, 226, 0.68);
}

.bazi-strength {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.bazi-strength > span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--acid);
}

.bazi-strength > i {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(241, 236, 226, 0.15);
}

.bazi-strength > i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ratio);
  height: 100%;
  background: var(--acid);
}

.bazi-strength > small {
  font-size: 6px;
  color: rgba(241, 236, 226, 0.42);
}

.bazi-strength__text {
  margin-top: 8px !important;
  font-size: 8px !important;
  line-height: 1.7 !important;
}

.element-panel {
  padding: 15px;
  border: 1px solid var(--line);
}

.element-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}

.element-bars > div {
  display: grid;
  grid-template-columns: 15px 1fr 30px;
  gap: 7px;
  align-items: center;
}

.element-bars span {
  font-size: 9px;
  color: var(--ink-soft);
}

.element-bars > div > div {
  height: 4px;
  background: var(--line);
}

.element-bars i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--ink);
}

.element-bars i.wood {
  background: #4f7a58;
}

.element-bars i.fire {
  background: #c25a35;
}

.element-bars i.earth {
  background: #9b7b45;
}

.element-bars i.metal {
  background: #747b83;
}

.element-bars i.water {
  background: #4d6b8a;
}

.element-bars i.air {
  background: #687b8c;
}

.element-bars b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}

.element-panel > p {
  margin-top: 12px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.bazi-insights {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-top: 13px;
}

.bazi-useful,
.ten-gods {
  padding: 16px;
  border: 1px solid var(--line);
}

.bazi-useful > b {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  color: var(--accent-deep);
}

.bazi-useful > p {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.bazi-useful > small {
  display: block;
  margin-top: 9px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.ten-gods > div {
  display: grid;
  grid-template-columns: 38px 18px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.ten-gods > div b {
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-soft);
}

.ten-gods > div span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.ten-gods > div p {
  font-size: 8px;
  line-height: 1.65;
  color: var(--muted);
}

.bazi-readings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.bazi-readings article {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bazi-readings article p {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.luck-panel {
  margin-top: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.luck-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.luck-panel__head p {
  font-size: 8px;
  color: var(--muted);
}

.luck-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin-top: 13px;
}

.luck-track > div {
  position: relative;
  padding: 9px 6px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.luck-track > div span {
  display: block;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.luck-track > div b {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.luck-track > div small {
  display: block;
  font-size: 6px;
  color: var(--muted-light);
}

.luck-track > div.is-current {
  border-color: var(--accent);
  background: var(--ink);
  color: var(--paper);
}

.luck-track > div.is-current b {
  color: var(--acid);
}

.luck-track > div.is-current span,
.luck-track > div.is-current small {
  color: rgba(241, 236, 226, 0.55);
}

.luck-track em {
  position: absolute;
  top: 5px;
  right: 5px;
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
  color: var(--accent);
}

.current-year {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.current-year > span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent-deep);
}

.current-year > p {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.symbolic-unavailable {
  padding: 24px 0 4px;
}

.symbolic-unavailable p,
.symbolic-muted {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.symbolic-unavailable .text-button,
.symbolic-muted + .text-button {
  margin-top: 12px;
}

.symbolic-note-line {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.ziwei-scroll {
  margin-top: 17px;
  overflow-x: auto;
}

.ziwei-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(118px, auto));
  gap: 4px;
  min-width: 720px;
  padding: 4px;
  background: var(--ink);
}

.ziwei-palace {
  position: relative;
  min-width: 0;
  padding: 8px;
  background: var(--paper);
}

.ziwei-palace.is-ming {
  background: var(--paper-light);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.ziwei-palace.is-body {
  background: var(--paper-deep);
}

.ziwei-palace > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.ziwei-palace > header span {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
}

.ziwei-palace > header small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ziwei-major {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-top: 6px;
}

.ziwei-major b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
}

.ziwei-major em {
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  color: var(--muted-light);
}

.ziwei-minor {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-top: 4px;
}

.ziwei-minor span {
  font-size: 7px;
  color: var(--muted);
}

.ziwei-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
  color: var(--accent-deep);
}

.ziwei-tag--body {
  right: 26px;
  border-color: var(--muted);
  color: var(--muted);
}

.ziwei-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.ziwei-center > b {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--acid);
}

.ziwei-center > small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--night-muted);
}

.ziwei-center > p {
  margin-top: 12px;
  max-width: 180px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--night-muted);
}

.ziwei-lower {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  margin-top: 13px;
}

.ziwei-palace-readings,
.ziwei-transformations,
.ziwei-current {
  padding: 15px;
  border: 1px solid var(--line);
}

.ziwei-palace-readings > div {
  display: grid;
  grid-template-columns: 42px 80px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.ziwei-palace-readings > div b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.ziwei-palace-readings > div span {
  font-size: 7px;
  color: var(--accent-deep);
}

.ziwei-palace-readings > div p {
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.ziwei-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ziwei-transformations > div {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.ziwei-transformations > div b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.ziwei-transformations > div span {
  margin-left: 7px;
  font-size: 7px;
  color: var(--accent-deep);
}

.ziwei-transformations > div p {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.6;
  color: var(--muted);
}

.ziwei-current > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.ziwei-current > div > span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ziwei-current > div > b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.ziwei-current > div > small {
  font-size: 7px;
  color: var(--muted);
}

.ziwei-current > p {
  margin-top: 9px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.astro-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.astro-trio article {
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.astro-trio article > b {
  display: block;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  color: var(--accent-deep);
}

.astro-trio article > small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.astro-trio article > p {
  margin-top: 12px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.astro-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-top: 12px;
}

.astro-planets {
  padding: 15px;
  border: 1px solid var(--line);
}

.astro-planet {
  display: grid;
  grid-template-columns: 55px 80px 1fr;
  gap: 9px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.astro-planet > span {
  font-size: 8px;
  color: var(--muted);
}

.astro-planet > b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.astro-planet > small {
  font-size: 7px;
  color: var(--muted-light);
}

.astro-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.astro-elements,
.astro-aspects {
  padding: 15px;
  border: 1px solid var(--line);
}

.astro-elements > div {
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.astro-elements > div span {
  font-size: 9px;
  color: var(--muted);
}

.astro-elements > div i {
  height: 4px;
  background: var(--ink);
}

.astro-elements > div i.fire {
  background: #c25a35;
}

.astro-elements > div i.earth {
  background: #9b7b45;
}

.astro-elements > div i.air {
  background: #687b8c;
}

.astro-elements > div i.water {
  background: #4d6b8a;
}

.astro-elements > div b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  text-align: right;
}

.astro-aspects > div {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.astro-aspects > div b {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-soft);
}

.astro-aspects > div span {
  font-size: 7px;
  color: var(--muted-light);
}

.mbti-board {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 25px;
  align-items: center;
  padding: 20px 0 5px;
}

.mbti-type {
  display: flex;
  gap: 5px;
}

.mbti-type span {
  flex: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--serif);
  font-size: 40px;
}

.mbti-copy > b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.mbti-copy > p {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.mbti-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.mbti-letters span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}

.mbti-copy > small {
  display: block;
  margin-top: 12px;
  font-size: 7px;
  color: var(--muted-light);
}

.synthesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.symbolic-cycle {
  margin-top: 18px;
  padding: 17px;
  background: var(--ink);
  color: var(--paper);
}

.symbolic-cycle__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.symbolic-cycle__head .eyebrow {
  color: rgba(241, 236, 226, 0.42);
}

.symbolic-cycle__head b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--acid);
}

.symbolic-cycle__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--night-line);
}

.symbolic-cycle__grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.symbolic-cycle__grid span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--night-muted);
}

.symbolic-cycle__grid b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
}

.symbolic-cycle > p {
  max-width: 900px;
  margin-top: 12px;
  font-size: 8px;
  line-height: 1.8;
  color: rgba(241, 236, 226, 0.55);
}

.synthesis-grid article {
  padding: 17px;
  border: 1px solid var(--line);
}

.synthesis-grid h3 {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.synthesis-grid p,
.synthesis-grid li {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.synthesis-grid ol {
  padding-left: 15px;
}

.synthesis-grid li {
  margin-top: 5px;
}

.synthesis-grid .text-link {
  margin-top: 13px;
}

.symbolic-boundary {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.symbolic-boundary > b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--accent-deep);
}

.symbolic-boundary > p {
  max-width: 800px;
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.symbolic-boundary > div {
  display: flex;
  gap: 22px;
  margin-top: 13px;
}

.symbolic-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 45px;
  align-items: center;
  margin-top: 18px;
  padding: 35px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.symbolic-onboarding h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 65px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.symbolic-onboarding p {
  max-width: 600px;
  margin-top: 15px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.symbolic-onboarding__actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 25px;
}

.symbolic-onboarding__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.symbolic-onboarding__list > div {
  display: grid;
  grid-template-columns: 25px 55px 1fr;
  gap: 9px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.symbolic-onboarding__list > div > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.symbolic-onboarding__list > div > b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.symbolic-onboarding__list > div > p {
  margin: 0;
  font-size: 8px;
  line-height: 1.6;
}

.symbolic-page-error {
  margin-top: 13px !important;
  color: var(--accent-deep) !important;
  font-size: 9px !important;
}

.symbolic-footer-note {
  margin-top: 18px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
  text-align: center;
}

.symbolic-setup {
  width: min(710px, calc(100vw - 28px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.symbolic-setup::backdrop {
  background: rgba(20, 20, 17, 0.55);
  backdrop-filter: blur(4px);
}

.symbolic-setup__panel {
  padding: 25px 27px 22px;
  overflow-y: auto;
  max-height: 88vh;
}

.symbolic-setup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.symbolic-setup__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.symbolic-setup__intro {
  margin-top: 13px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.symbolic-setup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.symbolic-setup__grid .symbolic-field--wide {
  grid-column: 1 / -1;
}

.symbolic-setup .symbolic-field > span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.symbolic-setup .symbolic-field > span em {
  font-style: normal;
  color: var(--muted-light);
}

.symbolic-setup .symbolic-field input,
.symbolic-setup .symbolic-field select {
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 11px;
}

.symbolic-setup .symbolic-consent {
  margin-top: 18px;
}

.symbolic-setup__privacy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.symbolic-setup__privacy p {
  margin-top: 5px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.symbolic-setup__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .symbolic-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .symbolic-page-seal {
    display: none;
  }

  .symbolic-toolbar {
    grid-template-columns: 1fr auto;
  }

  .symbolic-subnav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .symbolic-subnav::-webkit-scrollbar {
    display: none;
  }

  .symbolic-system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bazi-layout {
    grid-template-columns: 1fr;
  }

  .bazi-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ziwei-lower {
    grid-template-columns: 1fr;
  }

  .astro-layout {
    grid-template-columns: 1fr;
  }

  .symbolic-onboarding {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .symbolic-onboarding__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .symbolic-page-hero {
    padding-top: 35px;
  }

  .symbolic-page-hero h1 {
    font-size: clamp(44px, 11vw, 66px);
  }

  .symbolic-page-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .symbolic-page-hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .symbolic-page-stage {
    padding-bottom: 75px;
  }

  .symbolic-toolbar {
    top: 56px;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px 12px;
  }

  .symbolic-toolbar__actions {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .symbolic-toolbar__birth {
    padding-right: 70px;
  }

  .symbolic-overview,
  .symbolic-section {
    padding: 19px 16px 17px;
  }

  .symbolic-quick-read {
    grid-template-columns: 1fr;
  }

  .symbolic-ai {
    padding: 16px;
  }

  .symbolic-ai__head h3 {
    font-size: 21px;
  }

  .symbolic-ai__controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .symbolic-ai__controls .button {
    width: 100%;
  }

  .symbolic-overview__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .symbolic-birth-stamp {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 9px;
  }

  .symbolic-birth-stamp b {
    font-size: 14px;
  }

  .symbolic-system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .symbolic-system-card {
    min-height: 132px;
    padding: 10px;
  }

  .symbolic-system-card > b {
    font-size: 20px;
  }

  .symbolic-section__head {
    gap: 9px;
  }

  .symbolic-section__head h2 {
    font-size: 24px;
  }

  .symbolic-section__aside {
    display: none;
  }

  .bazi-row {
    grid-template-columns: 48px repeat(4, minmax(68px, 1fr));
  }

  .bazi-board {
    overflow-x: auto;
  }

  .bazi-table {
    min-width: 580px;
  }

  .bazi-side {
    grid-template-columns: 1fr;
  }

  .bazi-insights {
    grid-template-columns: 1fr;
  }

  .bazi-readings {
    grid-template-columns: 1fr;
  }

  .luck-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ziwei-palace-readings > div {
    grid-template-columns: 38px 75px 1fr;
  }

  .astro-trio {
    grid-template-columns: 1fr;
  }

  .mbti-board {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .mbti-type {
    max-width: 220px;
  }

  .synthesis-grid {
    grid-template-columns: 1fr;
  }

  .symbolic-cycle__grid {
    grid-template-columns: 1fr;
  }

  .symbolic-onboarding {
    padding: 22px 18px;
  }

  .symbolic-onboarding h2 {
    font-size: 43px;
  }

  .symbolic-onboarding__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .symbolic-onboarding__list {
    grid-template-columns: 1fr;
  }

  .symbolic-setup__panel {
    padding: 20px 17px 18px;
  }

  .symbolic-setup__head h2 {
    font-size: 27px;
  }

  .symbolic-setup__grid {
    grid-template-columns: 1fr;
  }

  .symbolic-setup__grid .symbolic-field--wide {
    grid-column: auto;
  }

  .symbolic-setup__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .symbolic-boundary > div {
    flex-direction: column;
    gap: 12px;
  }

  .symbolic-sample-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .symbolic-sample-banner p {
    flex-basis: 100%;
  }
}

/* ---------------------------------------------------------
   Private idea book + global quick capture
   --------------------------------------------------------- */

.idea-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 25px rgba(23, 23, 19, 0.19);
  transition: transform 0.2s ease, background 0.2s ease;
}

.idea-fab > span {
  color: var(--acid);
  font-size: 13px;
}

.idea-fab:hover {
  transform: translateY(-2px);
  background: #2a2a24;
}

.page-ideas .idea-fab {
  display: none;
}

@media (max-width: 800px) {
  .portrait-ideas {
    margin-left: 0;
  }

  .portrait-ai-insight {
    margin-left: 0;
  }

  .portrait-oracle {
    margin-left: 0;
  }

  .portrait-oracle__list {
    grid-template-columns: 1fr;
  }

  .portrait-ideas__grid {
    grid-template-columns: 1fr 1fr;
  }

  .portrait-ideas__head {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .portrait-ideas__grid {
    grid-template-columns: 1fr;
  }
}

.idea-quick {
  width: min(610px, calc(100vw - 28px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.idea-quick::backdrop {
  background: rgba(20, 20, 17, 0.55);
  backdrop-filter: blur(4px);
}

.idea-quick__panel {
  padding: 24px 26px 21px;
  overflow-y: auto;
  max-height: 88vh;
}

.idea-quick__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.idea-quick__head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.idea-quick__intro {
  margin-top: 12px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.idea-quick textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 16px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  resize: vertical;
}

.idea-quick textarea:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.idea-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.idea-tag-options label {
  cursor: pointer;
}

.idea-tag-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.idea-tag-options span {
  display: block;
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.idea-tag-options input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.idea-tag-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.idea-quick__error,
.idea-page__error {
  min-height: 14px;
  margin-top: 8px;
  font-size: 8px;
  line-height: 1.6;
  color: var(--accent-deep);
}

.idea-quick__foot {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.idea-quick__foot .button {
  min-width: 155px;
  min-height: 40px;
}

.idea-quick__foot > span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ideas-hero {
  position: relative;
  padding: 44px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 144, 27, 0.1), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(56, 116, 91, 0.07), transparent 25%),
    var(--paper);
  overflow: hidden;
}

.ideas-hero::before {
  content: "";
  position: absolute;
  width: 40vw;
  height: 40vw;
  right: -12vw;
  top: -25vw;
  border: 1px solid rgba(23, 23, 19, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.ideas-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding-bottom: 44px;
}

.ideas-hero h1 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(54px, 6.4vw, 89px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.ideas-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.ideas-hero__grid > div > p {
  max-width: 610px;
  margin-top: 23px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.ideas-hero__links {
  display: flex;
  gap: 24px;
  margin-top: 26px;
}

.ideas-hero__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-align: center;
}

.ideas-hero__mark > span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted-light);
}

.ideas-hero__mark > b {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.ideas-hero__mark > small {
  max-width: 150px;
  font-family: var(--mono);
  font-size: 5px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

.ideas-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.ideas-stage {
  padding: 20px 0 105px;
}

.ideas-composer {
  padding: 23px 24px 20px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.ideas-composer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.ideas-composer__head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.ideas-composer__hint {
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.ideas-composer textarea {
  width: 100%;
  min-height: 135px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  resize: vertical;
}

.ideas-composer textarea:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.idea-page__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

.idea-tag-options--page {
  margin-top: 0;
}

.idea-page__meta > span {
  flex: none;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.ideas-composer__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.ideas-composer__actions .button {
  min-width: 165px;
  min-height: 41px;
}

.ideas-composer__note {
  font-size: 8px;
  color: var(--muted-light);
}

.ideas-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 27px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.ideas-list-head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.ideas-list-head h2 b {
  font-weight: 400;
  color: var(--accent-deep);
}

.ideas-list-head > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.ideas-list-head__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ideas-list-head__actions .text-button {
  font-size: 8px;
}

.ideas-list-head__actions > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.ideas-clusters {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.ideas-clusters__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ideas-clusters__head h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.ideas-clusters__head > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.ideas-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.ideas-cluster-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.ideas-cluster-grid h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.ideas-cluster-grid p {
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.ideas-cluster-grid small {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ideas-clusters__note {
  margin-top: 10px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.ideas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.idea-card {
  display: flex;
  flex-direction: column;
  min-height: 165px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.idea-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.idea-card time {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.idea-card > header button {
  width: 21px;
  height: 21px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1;
}

.idea-card > header button:hover {
  border-color: var(--line);
  color: var(--accent-deep);
}

.idea-card > p {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.idea-card > footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.idea-card > footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.idea-card > footer > div span {
  padding: 2px 5px;
  border: 1px solid var(--line);
  font-size: 6px;
  color: var(--muted);
}

.idea-card > footer .text-button {
  flex: none;
  font-size: 8px;
}

.ideas-empty,
.ideas-loading {
  grid-column: 1 / -1;
  padding: 35px 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.ideas-empty span {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-soft);
}

.ideas-empty p,
.ideas-loading {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 900px) {
  .ideas-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ideas-hero__mark {
    display: none;
  }

  .ideas-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ideas-hero {
    padding-top: 34px;
  }

  .ideas-hero h1 {
    font-size: clamp(43px, 11.5vw, 63px);
  }

  .ideas-hero__links {
    flex-direction: column;
    gap: 13px;
  }

  .ideas-hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ideas-stage {
    padding-bottom: 80px;
  }

  .ideas-composer {
    padding: 18px 15px 16px;
  }

  .ideas-composer__head {
    flex-direction: column;
    gap: 4px;
  }

  .ideas-composer__head h2 {
    font-size: 24px;
  }

  .ideas-composer textarea {
    min-height: 120px;
    font-size: 17px;
  }

  .idea-page__meta {
    flex-direction: column;
    gap: 8px;
  }

  .ideas-composer__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .ideas-composer__actions .button {
    width: 100%;
  }

  .ideas-list-head h2 {
    font-size: 24px;
  }

  .ideas-list-head__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ideas-cluster-grid {
    grid-template-columns: 1fr;
  }

  .idea-card > footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .idea-quick__panel {
    padding: 19px 16px 17px;
  }

  .idea-quick__head h2 {
    font-size: 27px;
  }

  .idea-quick__foot {
    flex-wrap: wrap;
    gap: 11px;
  }

  .idea-quick__foot > span {
    display: none;
  }

  .idea-fab {
    right: 14px;
    bottom: 14px;
  }

  .idea-quick__foot .button {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   AI conversation + weekly page
   --------------------------------------------------------- */

.ai-page-hero,
.weekly-page-hero {
  position: relative;
  padding: 43px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(82, 99, 166, 0.1), transparent 28%),
    radial-gradient(circle at 14% 88%, rgba(255, 81, 43, 0.06), transparent 24%),
    var(--paper);
  overflow: hidden;
}

.ai-page-hero__grid,
.weekly-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding-bottom: 42px;
}

.ai-page-hero h1,
.weekly-page-hero h1 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.2vw, 86px);
  line-height: 1.09;
  letter-spacing: -0.06em;
}

.ai-page-hero h1 em,
.weekly-page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.ai-page-hero__grid > div > p,
.weekly-page-hero__grid > div > p {
  max-width: 610px;
  margin-top: 23px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.ai-page-hero__links,
.weekly-page-hero__links {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 26px;
}

.ai-page-hero__mark,
.weekly-page-hero__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 225px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-align: center;
}

.ai-page-hero__mark > span,
.weekly-page-hero__mark > span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--muted-light);
}

.ai-page-hero__mark > b,
.weekly-page-hero__mark > b {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.3;
}

.ai-page-hero__mark > small,
.weekly-page-hero__mark > small {
  max-width: 155px;
  font-family: var(--mono);
  font-size: 5px;
  line-height: 1.6;
  color: var(--muted-light);
}

.ai-page-hero__foot,
.weekly-page-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.ai-page-stage,
.weekly-page-stage {
  padding: 20px 0 100px;
}

.ai-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 10px;
  align-items: start;
}

.ai-sidebar,
.ai-context {
  position: sticky;
  top: 82px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.ai-sidebar {
  padding: 15px;
}

.ai-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ai-sidebar__head h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.ai-sidebar__head .icon-button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  line-height: 1;
}

.ai-sidebar__head .icon-button:hover {
  border-color: var(--ink);
}

.ai-thread-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 350px;
  margin: 9px -5px 0;
  padding: 0 5px;
  overflow-y: auto;
}

.ai-thread {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ai-thread:hover {
  border-color: var(--line);
}

.ai-thread.is-active {
  border-color: var(--line-strong);
  background: var(--paper-deep);
}

.ai-thread b {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-thread small {
  overflow: hidden;
  font-size: 7px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-thread > span {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ai-sidebar__empty {
  padding: 15px 3px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted-light);
}

.ai-usage {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.ai-usage > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.ai-usage > div b {
  font-weight: 400;
  color: var(--ink-soft);
}

.ai-usage > i {
  display: block;
  height: 3px;
  margin-top: 6px;
  background: var(--line);
}

.ai-usage > i em {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--accent);
}

.ai-usage > small {
  display: block;
  margin-top: 5px;
  font-size: 6px;
  color: var(--muted-light);
}

.ai-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.ai-sidebar__links a {
  font-size: 8px;
  color: var(--muted);
}

.ai-sidebar__links a:hover {
  color: var(--ink);
}

.ai-account-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.ai-account-cta span,
.ai-account-cta small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ai-account-cta b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.ai-account-cta:hover {
  border-color: var(--accent);
}

.ai-chat {
  display: flex;
  flex-direction: column;
  min-height: 660px;
  max-height: calc(100vh - 110px);
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.ai-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.ai-chat-head h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.ai-chat-head__actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ai-source {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(201, 144, 27, 0.055);
}

.ai-source span {
  flex: none;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--accent-deep);
}

.ai-source b {
  overflow: hidden;
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-source button {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted-light);
  cursor: pointer;
}

.ai-status {
  padding: 3px 6px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted);
}

.ai-chat-head__actions .text-button {
  font-size: 7px;
  color: var(--muted-light);
}

.ai-messages {
  flex: 1;
  min-height: 380px;
  max-height: 560px;
  padding: 20px;
  overflow-y: auto;
}

.ai-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  margin-bottom: 18px;
}

.ai-message--user {
  align-items: flex-end;
  margin-left: auto;
}

.ai-bubble {
  padding: 11px 13px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.ai-message--assistant {
  max-width: 94%;
}

.ai-message__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.ai-message__head span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.ai-message__head small {
  font-size: 6px;
  color: var(--muted-light);
}

.ai-message__body p {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.ai-message__body strong {
  font-weight: 600;
  color: var(--ink);
}

.ai-message__body ul {
  margin-top: 7px;
  padding-left: 17px;
}

.ai-message__body li {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.ai-message__body h4 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.ai-message__body code {
  padding: 1px 4px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 8px;
}

.ai-message--pending {
  opacity: 0.7;
}

.ai-chat-empty {
  max-width: 590px;
  margin: 35px auto;
  text-align: center;
}

.ai-chat-empty h2 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.ai-chat-empty p {
  max-width: 480px;
  margin: 14px auto 0;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.ai-starters {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 430px;
  margin: 20px auto 0;
}

.ai-starters button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

.ai-starters button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ai-composer {
  margin-top: auto;
  padding: 12px 17px 13px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.ai-composer textarea {
  width: 100%;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.ai-composer textarea:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.ai-composer textarea:disabled {
  opacity: 0.55;
}

.ai-composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 8px;
}

.ai-composer__foot > label {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 7px;
  line-height: 1.5;
  color: var(--muted);
}

.ai-composer__foot > label em {
  font-style: normal;
  color: var(--muted-light);
}

.ai-composer__foot > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-composer__foot > div > span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ai-composer__foot .button {
  min-width: 95px;
  min-height: 36px;
}

.ai-composer__error {
  min-height: 12px;
  margin-top: 5px;
  font-size: 8px;
  color: var(--accent-deep);
}

.ai-context {
  padding: 15px;
}

.ai-context__head {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.ai-context__head h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.ai-context-card {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.ai-context-card > b {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.ai-context-card > small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  color: var(--muted);
}

.ai-context-card .text-link {
  margin-top: 8px;
  font-size: 7px;
}

.ai-context-card--note > p {
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.ai-context-warning {
  margin-top: 12px;
  padding: 11px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 81, 43, 0.06);
}

.ai-context-warning b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.ai-context-warning p {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.ai-context-warning .text-link {
  margin-top: 7px;
  font-size: 7px;
}

.ai-insight {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.ai-insight__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ai-insight__head small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.ai-insight > p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ai-insight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.ai-insight__tags span {
  padding: 2px 5px;
  border: 1px solid var(--line);
  font-size: 6px;
  color: var(--muted);
}

.ai-insight ul {
  margin-top: 9px;
  padding-left: 14px;
}

.ai-insight li {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.ai-insight > b {
  display: block;
  margin-top: 9px;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--accent-deep);
}

.ai-insight-action {
  margin-top: 11px;
  font-size: 8px;
}

.ai-load-error {
  padding: 30px;
  border: 1px solid var(--line);
  text-align: center;
}

.ai-load-error p {
  font-size: 10px;
  color: var(--muted);
}

.ai-load-error .text-link {
  margin-top: 10px;
}

.weekly-paper {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.weekly-paper__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 31px 21px;
  border-bottom: 1px solid var(--line);
}

.weekly-paper__head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(37px, 4vw, 55px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.weekly-paper__stamp {
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.weekly-paper__body {
  padding: 25px 31px 27px;
}

.weekly-paper__summary {
  max-width: 760px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.weekly-patterns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.weekly-patterns > div {
  display: flex;
  gap: 9px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekly-patterns span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.weekly-patterns p {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.weekly-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.weekly-bottom > div {
  padding: 15px;
  background: var(--paper-deep);
}

.weekly-bottom p {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.weekly-paper__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 31px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.weekly-paper__foot > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.weekly-paper__foot .text-button,
.weekly-paper__foot .text-link {
  font-size: 7px;
}

.weekly-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 18px auto 0;
  padding: 34px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.weekly-empty h2 {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.weekly-empty p {
  max-width: 570px;
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
}

.weekly-empty__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 23px;
}

.weekly-empty__note {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.weekly-empty__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-align: center;
}

.weekly-empty__mark span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.weekly-empty__mark b {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .ai-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .ai-context {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ai-context__head {
    grid-column: 1 / -1;
  }

  .ai-context > .ai-context-card,
  .ai-context > .ai-context-warning,
  .ai-context > .ai-insight,
  .ai-context > .ai-insight-action {
    margin-top: 0;
  }
}

@media (max-width: 800px) {
  .ai-page-hero__grid,
  .weekly-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ai-page-hero__mark,
  .weekly-page-hero__mark {
    display: none;
  }

  .ai-workspace {
    grid-template-columns: 1fr;
  }

  .ai-sidebar,
  .ai-context {
    position: static;
  }

  .ai-thread-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    margin-right: -15px;
    padding-right: 15px;
  }

  .ai-thread {
    flex: 0 0 180px;
  }

  .ai-chat {
    min-height: 560px;
    max-height: none;
  }

  .ai-messages {
    min-height: 300px;
    max-height: 520px;
  }

  .ai-context {
    grid-template-columns: 1fr;
  }

  .ai-context__head {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .ai-page-hero,
  .weekly-page-hero {
    padding-top: 34px;
  }

  .ai-page-hero h1,
  .weekly-page-hero h1 {
    font-size: clamp(43px, 11vw, 62px);
  }

  .ai-page-hero__links,
  .weekly-page-hero__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .ai-page-hero__foot,
  .weekly-page-hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ai-page-stage,
  .weekly-page-stage {
    padding-bottom: 75px;
  }

  .ai-chat-head {
    flex-direction: column;
    gap: 9px;
  }

  .ai-messages {
    padding: 15px;
  }

  .ai-message {
    max-width: 96%;
  }

  .ai-bubble {
    font-size: 14px;
  }

  .ai-composer__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-composer__foot > div {
    width: 100%;
    justify-content: space-between;
  }

  .ai-composer__foot .button {
    min-width: 100px;
  }

  .weekly-paper__head,
  .weekly-paper__body {
    padding: 20px 17px;
  }

  .weekly-paper__head {
    flex-direction: column;
    gap: 12px;
  }

  .weekly-paper__head h2 {
    font-size: 35px;
  }

  .weekly-paper__summary {
    font-size: 18px;
  }

  .weekly-patterns {
    grid-template-columns: 1fr;
  }

  .weekly-bottom {
    grid-template-columns: 1fr;
  }

  .weekly-paper__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 12px 17px;
  }

  .weekly-empty {
    grid-template-columns: 1fr;
    padding: 23px 18px;
    gap: 22px;
  }

  .weekly-empty h2 {
    font-size: 34px;
  }

  .weekly-empty__mark {
    display: none;
  }

  .weekly-empty__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}

/* ---------------------------------------------------------
   Auth + account
   --------------------------------------------------------- */

.header-login {
  margin-right: 17px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.header-login:hover,
.header-login.is-authed {
  color: var(--ink);
}

.auth-page,
.account-page {
  background: var(--paper);
}

.auth-page {
  padding: 45px 0 100px;
}

.auth-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.auth-page__copy h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(56px, 6.4vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.auth-page__copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.auth-page__copy > p {
  max-width: 570px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.auth-page__note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.auth-card {
  padding: 24px 25px 21px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.auth-card__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.auth-card__head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-form label > span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.auth-form input {
  height: 39px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

.auth-form input:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.auth-error {
  min-height: 13px;
  font-size: 8px;
  line-height: 1.6;
  color: var(--accent-deep);
}

.auth-form .button {
  width: 100%;
  min-height: 42px;
}

.auth-switch {
  margin-top: 14px;
  font-size: 9px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-fine {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.email-action__status {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.auth-captcha {
  margin-top: 2px;
}

.cf-turnstile {
  margin: 6px 0 2px;
}

/* Payment modal */

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 26, 21, 0.58);
  backdrop-filter: blur(3px);
}

.payment-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  box-shadow: 0 24px 70px rgba(20, 22, 18, 0.25);
}

.payment-modal__panel--qr {
  width: min(440px, 100%);
  text-align: center;
}

.payment-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}

.payment-modal__panel h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.payment-modal__amount {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent-deep);
}

.payment-modal__note {
  margin-top: 12px;
  font-size: 8px;
  line-height: 1.8;
  color: var(--muted);
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.payment-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.payment-options button:hover {
  border-color: var(--accent);
}

.payment-options img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border: 1px solid var(--line);
}

.payment-options b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.payment-options small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.payment-qr {
  display: block;
  width: min(260px, 100%);
  max-height: 300px;
  margin: 15px auto 0;
  object-fit: contain;
  border: 1px solid var(--line);
}

.payment-modal__order {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.payment-modal__order b {
  font-weight: 400;
  color: var(--ink);
  word-break: break-all;
}

.payment-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.payment-actions .button {
  min-height: 39px;
}

@media (max-width: 600px) {
  .payment-modal {
    padding: 10px;
  }

  .payment-modal__panel {
    padding: 19px 15px;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .payment-options img {
    max-height: 140px;
  }
}

.account-page-hero {
  position: relative;
  padding: 44px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 144, 27, 0.1), transparent 27%),
    radial-gradient(circle at 12% 86%, rgba(82, 99, 166, 0.08), transparent 24%),
    var(--paper);
  overflow: hidden;
}

.account-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: center;
  padding-bottom: 42px;
}

.account-page-hero h1 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 83px);
  line-height: 1.09;
  letter-spacing: -0.06em;
}

.account-page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.account-page-hero__grid > div > p {
  max-width: 600px;
  margin-top: 21px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.account-page-hero__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-align: center;
}

.account-page-hero__mark span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.account-page-hero__mark b {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.account-page-hero__mark small {
  max-width: 140px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 5px;
  color: var(--muted-light);
}

.account-page-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.account-page-stage {
  padding: 22px 0 100px;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.account-head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.account-head p {
  margin-top: 5px;
  font-size: 8px;
  color: var(--muted);
}

.account-verify-button {
  margin-top: 7px;
  font-size: 7px;
  color: var(--accent-deep);
}

.account-head__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-plan {
  padding: 4px 8px;
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent-deep);
}

.account-head__actions .text-button {
  font-size: 8px;
  color: var(--muted-light);
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--line);
}

.account-metrics > div {
  min-height: 128px;
  padding: 15px;
  background: var(--paper-light);
}

.account-metrics span {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.account-metrics b {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.account-metrics small {
  display: block;
  margin-top: 7px;
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted-light);
}

.account-bar {
  display: block;
  height: 3px;
  margin-top: 10px;
  background: var(--line);
}

.account-bar em {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--accent);
}

.account-bar--free em {
  background: #4f7a58;
}

.account-bar--daily em {
  background: #9b7b45;
}

.account-bar--monthly em {
  background: #5263a6;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  margin-top: 10px;
}

.account-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.account-card--byok {
  grid-column: 1 / -1;
}

.account-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.account-card__head h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.account-card__head > span {
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--muted-light);
}

.account-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 13px;
}

.account-plans article {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.account-plans article.is-current {
  border-color: var(--accent);
}

.account-plans header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.account-plans header b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.account-plans header span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.account-plans p {
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.account-plans small {
  margin-top: 8px;
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted-light);
}

.account-plans .text-button {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 12px;
  font-size: 8px;
}

.account-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 13px;
}

.account-packs button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.account-packs button:hover {
  border-color: var(--ink);
}

.account-packs b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.account-packs span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-deep);
}

.account-packs small {
  font-size: 6px;
  color: var(--muted-light);
}

.account-note {
  margin-top: 12px;
  font-size: 7px;
  line-height: 1.7;
  color: var(--muted-light);
}

.account-orders {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-orders > div {
  display: grid;
  grid-template-columns: 1fr 60px 45px;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.account-orders > div span,
.account-orders > div small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.account-orders > div b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}

.account-card--byok > p {
  max-width: 750px;
  margin-top: 12px;
  font-size: 8px;
  line-height: 1.75;
  color: var(--muted);
}

.byok-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-top: 12px;
  padding: 9px 10px;
  border-left: 2px solid #4f7a58;
  background: var(--paper);
}

.byok-status b {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.byok-status span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.byok-status .text-button {
  margin-left: auto;
  font-size: 7px;
  color: var(--accent-deep);
}

.byok-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 650px;
  margin-top: 13px;
}

.byok-form > label,
.byok-form > div > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.byok-form > div {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
}

.byok-form label span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.byok-form input {
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 10px;
}

.byok-form input:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

.byok-form .button {
  align-self: flex-start;
  min-width: 170px;
  min-height: 39px;
}

.account-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.account-danger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.account-danger b {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.account-danger p {
  margin-top: 4px;
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted-light);
}

.account-danger > .text-button {
  flex: none;
  font-size: 8px;
  color: var(--accent-deep);
}

.account-danger__form {
  flex: 1;
  max-width: 320px;
}

.account-danger__form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-danger__form label span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.account-danger__form input {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 10px;
}

.account-danger__form > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.account-danger__form .button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 8px;
}

.account-error {
  padding: 35px;
  border: 1px solid var(--line);
  text-align: center;
}

.account-error p {
  font-size: 10px;
  color: var(--muted);
}

.account-error .text-link {
  margin-top: 10px;
}

@media (max-width: 1000px) {
  .auth-page__grid,
  .account-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .account-page-hero__mark {
    display: none;
  }

  .account-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-card--byok {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .auth-page {
    padding-top: 35px;
  }

  .auth-page__copy h1,
  .account-page-hero h1 {
    font-size: clamp(43px, 11.5vw, 63px);
  }

  .auth-card {
    padding: 19px 16px 17px;
  }

  .auth-page__note,
  .account-page-hero__foot,
  .account-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .account-head {
    flex-direction: column;
    gap: 12px;
  }

  .account-head h2 {
    font-size: 28px;
  }

  .account-metrics {
    grid-template-columns: 1fr;
  }

  .account-plans {
    grid-template-columns: 1fr;
  }

  .account-packs {
    grid-template-columns: 1fr 1fr;
  }

  .account-plans article {
    min-height: 130px;
  }

  .byok-form > div {
    grid-template-columns: 1fr;
  }

  .header-login {
    display: none;
  }
}


