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

:root {
  --bg: #0a0c10;
  --bg-glow: #141a24;
  --surface: rgba(18, 24, 36, 0.85);
  --border: rgba(255, 220, 160, 0.12);
  --text: #e8ecf4;
  --muted: #8b95a8;
  --gold: #e8b86d;
  --gold-dim: #a67c3d;
  --life: #5eead4;
  --spent: #f87171;
  --clock-size: min(92vw, 520px);
  --clock-clr: #122033;
  --clock-numbers: #c5d4e8;
  --mask-opacity: 0.88;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 184, 109, 0.14), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(94, 234, 212, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-glow) 100%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  text-align: center;
  padding: 2.5rem 1.25rem 1rem;
  max-width: 42rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.header h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.85rem);
  font-weight: 400;
  line-height: 1.15;
}

.header h1 em {
  font-style: italic;
  color: var(--gold);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.tagline strong {
  color: var(--life);
  font-weight: 500;
}

.layout {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.layout--journey {
  scroll-margin-top: 4.5rem;
}

.layout--journey > .panel {
  scroll-margin-top: 5rem;
}

@media (min-width: 900px) {
  .layout:not(.layout--journey) {
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .layout:not(.layout--journey) .setup {
    grid-row: 1 / 3;
  }

  .layout:not(.layout--journey) #sec-stats {
    grid-column: 2;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem 1.5rem;
  backdrop-filter: blur(12px);
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hidden {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input[type="date"] {
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

.range-row output {
  min-width: 2ch;
  font-weight: 600;
  color: var(--gold);
}

.btn-primary,
.btn-ghost {
  font-family: inherit;
  cursor: pointer;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #1a1208;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-ghost {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--gold-dim);
}

.hint {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Life meter */
.life-meter {
  margin-bottom: 1rem;
}

.meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.2);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spent), var(--gold), var(--life));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-label {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.meter-label span {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
}

/* Clock wheel */
.wheel-section {
  padding-bottom: 0.75rem;
}

.clock-wrap {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.clock {
  position: relative;
  width: var(--clock-size);
  height: var(--clock-size);
  aspect-ratio: 1;
  background: var(--clock-clr);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(232, 184, 109, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.clock::before {
  content: "";
  position: absolute;
  inset: 2px;
  margin: auto;
  border-radius: 50%;
  z-index: 20;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 48%,
    50% 48%,
    50% 52%,
    100% 52%,
    100% 100%,
    0 100%
  );
  background: var(--bg);
  opacity: var(--mask-opacity);
}

.clock > div {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--clock-d);
  height: var(--clock-d);
  font-size: var(--f-size, 0.72rem);
  aspect-ratio: 1;
  border-radius: 50%;
}

.clock > div:nth-of-type(1) {
  --clock-d: calc(var(--clock-size) - 12px);
  --f-size: 0.65rem;
}
.clock > div:nth-of-type(2) {
  --clock-d: calc(var(--clock-size) - 72px);
}
.clock > div:nth-of-type(3) {
  --clock-d: calc(var(--clock-size) - 118px);
}
.clock > div:nth-of-type(4) {
  --clock-d: calc(var(--clock-size) - 168px);
  --f-size: 0.62rem;
}
.clock > div:nth-of-type(5) {
  --clock-d: calc(var(--clock-size) - 228px);
}
.clock > div:nth-of-type(6) {
  --clock-d: calc(var(--clock-size) - 288px);
}
.clock > div:nth-of-type(7) {
  --clock-d: calc(var(--clock-size) - 348px);
  --f-size: 0.68rem;
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 300ms linear;
}

.clock-face .number {
  position: absolute;
  transform-origin: center;
  white-space: nowrap;
  color: var(--clock-numbers);
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

.clock-face .number.active {
  opacity: 1;
  color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(232, 184, 109, 0.5);
}

.clock-face .number.past-life {
  opacity: 0.25;
  color: var(--spent);
}

.center-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 109, 0.35);
  background: var(--clock-clr);
  color: var(--gold);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s, scale 0.2s;
}

.center-btn span {
  font-size: 1.35rem;
  font-weight: 700;
}

.center-btn small {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.center-btn:hover {
  background: rgba(232, 184, 109, 0.15);
  scale: 1.05;
}

.center-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wheel-legend {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Stats */
.stats-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.stat-card {
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.stat-card .value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--life);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-card .value.warn {
  color: var(--gold);
}

.stat-card .value.critical {
  color: var(--spent);
}

.stat-card .label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.wisdom {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(232, 184, 109, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

.compass-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.research-list {
  display: grid;
  gap: 0.7rem;
}

.research-card {
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.research-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--gold);
}

.research-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}

.research-card p + p {
  margin-top: 0.35rem;
}

.research-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--life);
  font-size: 0.75rem;
  text-decoration: none;
}

.research-card a:hover {
  text-decoration: underline;
}

.focus-plan,
.what-you-have {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(232, 184, 109, 0.3);
  background: rgba(18, 24, 36, 0.6);
}

.focus-plan h3,
.what-you-have h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--gold);
}

.focus-prompts,
.use-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text);
  display: grid;
  gap: 0.4rem;
}

.focus-prompts li,
.use-list li {
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Ultimate Value section */
.ultimate {
  margin-top: 0.25rem;
}

.ultimate-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.ultimate-hero h2 {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.2rem;
  color: var(--gold);
}

.ultimate-formula {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.ultimate-rule {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.ultimate-formula-final {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--life);
}

/* Ultimate Value Quotes */
.ultimate-quotes {
  margin-top: 1rem;
}

.quote-card {
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(232, 184, 109, 0.08), rgba(94, 234, 212, 0.04));
  border: 1px solid rgba(232, 184, 109, 0.18);
  position: relative;
}

.quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  quotes: "“" "”" "‘" "’";
}

.quote-author {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--gold-dim);
}

.quote-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.quote-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.quote-btn:hover {
  background: rgba(232, 184, 109, 0.15);
  color: var(--gold);
}

.quote-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.quote-counter {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Ultimate Score 0–100 */
.ultimate-score-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.ultimate-score-panel--high {
  border-color: rgba(94, 234, 212, 0.35);
}

.ultimate-score-panel--mid {
  border-color: rgba(232, 184, 109, 0.35);
}

.ultimate-score-panel--low {
  border-color: rgba(248, 113, 113, 0.35);
}

.ultimate-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
}

.ultimate-score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ultimate-score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.ultimate-score-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ultimate-score-fill--high {
  stroke: var(--life);
}

.ultimate-score-fill--mid {
  stroke: var(--gold);
}

.ultimate-score-fill--low {
  stroke: var(--spent);
}

.ultimate-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.ultimate-score-num {
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.ultimate-score-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.ultimate-score-headline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.ultimate-score-headline--high {
  color: var(--life);
}

.ultimate-score-headline--low {
  color: #fda4af;
}

.ultimate-score-action {
  margin: 0.45rem 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.ultimate-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.55rem;
}

.ultimate-breakdown__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.ultimate-breakdown__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ultimate-breakdown__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dim), var(--life));
  transition: width 0.5s ease;
}

.ultimate-breakdown__detail {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--muted);
}

/* Life paradoxes */
.paradox-section {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.paradox-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--gold);
}

.paradox-daily {
  margin-bottom: 0.75rem;
}

.paradox-all {
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.paradox-all summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
}

.paradox-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.paradox-card {
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.paradox-card--daily {
  border-color: rgba(232, 184, 109, 0.45);
  background: linear-gradient(
    135deg,
    rgba(232, 184, 109, 0.08),
    rgba(0, 0, 0, 0.25)
  );
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.paradox-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.paradox-card header {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.paradox-icon {
  font-size: 1.2rem;
}

.paradox-card h4 {
  margin: 0;
  font-size: 0.88rem;
}

.paradox-en {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.paradox-line {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.paradox-question {
  margin: 0.45rem 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(94, 234, 212, 0.06);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--life);
}

.paradox-action {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.paradox-tie {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.value-gap-tool,
.pillars-section,
.forgotten-section,
.fake-real-section,
.freedom-audit,
.weekly-audit,
.life-bridge {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.value-gap-tool h3,
.pillars-section h3,
.forgotten-section h3,
.fake-real-section h3,
.freedom-audit h3,
.weekly-audit h3,
.life-bridge h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--gold);
}

.section-hint {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.gap-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.gap-field span {
  font-size: 0.78rem;
  color: var(--muted);
}

.gap-field output {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.gap-result {
  margin-top: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.gap-result__title {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.gap-result--real {
  border-color: rgba(94, 234, 212, 0.45);
}

.gap-result--neutral {
  border-color: rgba(232, 184, 109, 0.45);
}

.gap-result--fake {
  border-color: rgba(248, 113, 113, 0.45);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.pillar-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.22);
}

.pillar-card header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pillar-icon {
  font-size: 1.1rem;
}

.pillar-card h4 {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
}

.pillar-sub {
  margin: 0.1rem 0 0;
  color: var(--gold-dim);
  font-size: 0.72rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.pillar-card p + p {
  margin-top: 0.35rem;
}

.pillar-card a {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--life);
  font-size: 0.73rem;
  text-decoration: none;
}

.pillar-card a:hover {
  text-decoration: underline;
}

.forgotten-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
}

.forgotten-list li {
  font-size: 0.78rem;
  line-height: 1.45;
}

.forgotten-anchor {
  display: inline-block;
  margin-right: 0.3rem;
  color: var(--gold-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.fake-real-table {
  display: grid;
  gap: 0.45rem;
}

.fake-real-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.fake-real-row span {
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.76rem;
  line-height: 1.35;
  border: 1px solid var(--border);
}

.fake-real-row .fake {
  color: #fda4af;
  background: rgba(248, 113, 113, 0.08);
}

.fake-real-row .real {
  color: #99f6e4;
  background: rgba(94, 234, 212, 0.08);
}

.freedom-form,
.weekly-form {
  display: grid;
  gap: 0.45rem;
}

.audit-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.4;
}

.audit-check input {
  margin-top: 0.1rem;
}

.freedom-score {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.freedom-score--high {
  border-color: rgba(94, 234, 212, 0.45);
  color: #99f6e4;
}

.freedom-score--mid {
  border-color: rgba(232, 184, 109, 0.45);
  color: #fcd34d;
}

.freedom-score--low {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fda4af;
}

.life-bridge p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
}

/* AI Life Guide */
.ai-guide h2 {
  margin: 0 0 0.5rem;
}

.ai-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.chip {
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}

.chip:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold-dim);
}

.ai-chat {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 0.75rem;
}

.ai-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ai-msg {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-msg:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ai-msg-role {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.ai-msg--user .ai-msg-role {
  color: var(--gold-dim);
}

.ai-msg--assistant .ai-msg-role {
  color: var(--life);
}

.ai-msg-body {
  font-size: 0.8rem;
  line-height: 1.5;
}

.ai-form textarea {
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 3rem;
}

.ai-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.lives-section,
.gaps-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lives-section h3,
.gaps-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--gold);
}

.lives-search {
  width: 100%;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: inherit;
}

.lives-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.life-card {
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.life-card__tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--life);
}

.life-card h4 {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.9rem;
}

.life-card h4 small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
}

.life-card__quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
}

.life-card p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.life-card__why {
  margin-top: 0.35rem !important;
}

.life-card__links {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.life-card__links a {
  text-decoration: none;
}

.wiki-preview {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.65rem;
  border: 1px dashed var(--border);
  background: rgba(94, 234, 212, 0.05);
}

.wiki-preview h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.wiki-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.wiki-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: wiki-spin 0.7s linear infinite;
}

@keyframes wiki-spin {
  to { transform: rotate(360deg); }
}

.wiki-error {
  padding: 0.75rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #fda4af;
  font-size: 0.78rem;
}

.wiki-preview p {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.wiki-thumb {
  float: right;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.4rem;
  margin: 0 0 0.5rem 0.5rem;
}

.wiki-preview a {
  color: var(--life);
  font-size: 0.78rem;
}

.gaps-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.gaps-list li {
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Life Constitution */
.constitution-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.today-hero {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.18),
    rgba(232, 184, 109, 0.08)
  );
  box-shadow: 0 0 40px rgba(251, 146, 60, 0.08);
}

.today-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fb923c;
  text-transform: uppercase;
}

.today-hero h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
}

.today-lines,
.today-prompts ul,
.today-actions ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.today-lines li,
.today-prompts li,
.today-actions li {
  margin-bottom: 0.35rem;
}

.today-prompts,
.today-actions {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.today-prompts p,
.today-actions p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--gold);
}

.time-budget-section,
.constitution-breakdown,
.phases-section,
.never-again-section,
.reality-section {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.time-budget-section h3,
.constitution-breakdown h3,
.phases-section h3,
.never-again-section h3,
.reality-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--gold);
}

.time-budget-form {
  display: grid;
  gap: 0.45rem;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
}

.budget-row input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.budget-row output {
  min-width: 2.5rem;
  text-align: right;
  color: var(--gold);
  font-size: 0.75rem;
}

.budget-total {
  margin: 0.5rem 0;
  font-size: 0.78rem;
  color: var(--life);
}

.budget-total--warn {
  color: var(--spent);
}

.life-bar-row {
  margin-bottom: 0.75rem;
}

.life-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.life-bar-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.life-bar-lived {
  height: 100%;
  transition: width 0.5s ease;
}

.life-bar-left {
  height: 100%;
  transition: width 0.5s ease;
}

.life-bar-day {
  font-size: 0.65rem;
  color: var(--muted);
}

#life-phases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.phase-card {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.phase-card--gone {
  opacity: 0.45;
  border-style: dashed;
}

.phase-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.phase-stat {
  font-size: 0.68rem;
  color: var(--muted);
}

.never-card {
  padding: 0.85rem;
  margin-bottom: 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.never-card--critical {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.06);
}

.never-card--gone {
  border-color: rgba(248, 113, 113, 0.35);
  opacity: 0.9;
}

.never-card--rare {
  border-color: rgba(232, 184, 109, 0.35);
}

.never-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--gold);
}

.never-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.never-action {
  margin-top: 0.4rem !important;
  color: #fb923c !important;
}

.reality-card {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.reality-card--critical {
  border-color: rgba(248, 113, 113, 0.4);
}

.reality-card--warn {
  border-color: rgba(232, 184, 109, 0.4);
}

.reality-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--life);
}

.reality-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer {
  text-align: center;
  padding: 0 1rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* PWA install / update banners */
.pwa-banner {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1000;
  width: min(calc(100% - 1.5rem), 420px);
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(12, 18, 28, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.pwa-banner p {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
}

.pwa-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  width: auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.pwa-banner--update {
  top: max(0.75rem, env(safe-area-inset-top));
  bottom: auto;
}

@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
  }

  .header {
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .clock > div:nth-of-type(1) {
    --f-size: 0.55rem;
  }
}

/* Journey navigation */
.journey-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(10, 12, 16, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.journey-nav-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.journey-nav-track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.journey-nav-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.journey-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.journey-nav-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(232, 184, 109, 0.35);
}

.journey-nav-btn--active {
  color: var(--gold);
  border-color: rgba(232, 184, 109, 0.35);
  background: rgba(232, 184, 109, 0.08);
}

.journey-nav-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Society lens */
.society-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.society-pref {
  margin-bottom: 1.1rem;
}

.society-pref-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.society-pref-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  cursor: pointer;
}

.society-pref-btn--active {
  border-color: rgba(232, 184, 109, 0.5);
  background: rgba(232, 184, 109, 0.12);
  color: var(--gold);
}

.society-columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .society-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.society-segment {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.society-segment--masses {
  border-color: rgba(94, 234, 212, 0.2);
}

.society-segment--elite {
  border-color: rgba(232, 184, 109, 0.25);
}

.society-segment-head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.society-segment-icon {
  font-size: 1.5rem;
}

.society-segment-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold);
}

.society-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.society-details {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.society-details summary {
  cursor: pointer;
  color: var(--life);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.society-wants,
.society-paradox-mini,
.society-escape-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.society-chip-card {
  margin-bottom: 0.55rem;
  padding: 0.55rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.society-chip-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  color: var(--text);
}

.society-chip-bad {
  color: var(--spent);
}

.society-chip-good {
  color: var(--life);
}

.society-illusion,
.society-escape-line {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0.5rem 0 0;
}

.society-common,
.society-matrix,
.society-escape {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.society-common h3,
.society-matrix h3,
.society-escape h3 {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--gold);
}

.society-common-card {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(248, 113, 113, 0.04);
}

.society-common-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.society-common-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.society-paradox-link {
  margin-top: 0.35rem !important;
  color: var(--gold-dim) !important;
  font-size: 0.72rem !important;
}

.society-matrix-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.matrix-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.55rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 720px) {
  .matrix-row {
    grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
    gap: 0.5rem;
    align-items: start;
  }

  .matrix-row--head {
    font-weight: 600;
    color: var(--gold-dim);
    background: transparent;
    border: none;
  }
}

.matrix-paradox {
  color: var(--gold);
  font-weight: 500;
}

.matrix-chipped {
  color: var(--life);
}

.society-ai-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.society-ai-hint em {
  color: #fb923c;
  font-style: normal;
}

/* Life in Weeks grid */
.weeks {
  margin-top: 0.25rem;
}

.weeks-grid {
  display: grid;
  grid-template-columns: repeat(var(--weeks-cols, 52), 1fr);
  gap: 2px;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.weeks-box {
  aspect-ratio: 1;
  border-radius: 2px;
  min-width: 4px;
  min-height: 4px;
}

.weeks-box--lived {
  background: var(--spent);
  opacity: 0.55;
}

.weeks-box--current {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(232, 184, 109, 0.6);
}

.weeks-box--left {
  background: rgba(255, 255, 255, 0.08);
}

.weeks-box--left:hover {
  background: rgba(255, 255, 255, 0.15);
}

.weeks-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.weeks-legend__item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.weeks-legend__item .weeks-box {
  width: 10px;
  height: 10px;
  min-width: unset;
  min-height: unset;
}

.weeks-summary {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Longevity — Body & Mind */
.longevity {
  margin-top: 0.25rem;
}

.long-decade {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), rgba(232, 184, 109, 0.04));
  margin-bottom: 1rem;
}

.long-decade__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--life);
  display: block;
  margin-bottom: 0.2rem;
}

.long-decade strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.long-decade p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.long-assess {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.long-assess h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--gold);
}

.long-assess-form {
  display: grid;
  gap: 0.25rem;
}

.long-assess-score {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.long-assess-score--high {
  background: rgba(94, 234, 212, 0.08);
  color: var(--life);
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.long-assess-score--mid {
  background: rgba(232, 184, 109, 0.08);
  color: var(--gold);
  border: 1px solid rgba(232, 184, 109, 0.2);
}

.long-assess-score--low {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.long-pillars {
  margin-top: 0.5rem;
}

.long-pillars h3 {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--gold);
}

.long-pillars-grid {
  display: grid;
  gap: 0.65rem;
}

.long-pillar {
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.long-pillar header {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.long-pillar__icon {
  font-size: 1.3rem;
  line-height: 1;
}

.long-pillar h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.long-pillar__sub {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.long-pillar p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.long-pillar__insight {
  color: var(--text);
}

.long-pillar__forgot {
  color: var(--spent);
}

.long-pillar__action {
  color: var(--life);
}

.long-pillar__phase {
  color: var(--gold-dim);
}

.long-pillar__research {
  color: var(--muted);
  font-style: italic;
}

.long-pillar a {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--life);
  text-decoration: none;
  margin-top: 0.25rem;
}

.long-pillar a:hover {
  text-decoration: underline;
}

.long-weekly {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.long-weekly h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--gold);
}

.long-weekly-form {
  display: grid;
  gap: 0.25rem;
}

/* Daily Reflection */
.reflection {
  margin-top: 0.25rem;
}

.reflection-journal h2 {
  margin: 0 0 0.35rem;
}

.journal-form {
  display: grid;
  gap: 0.25rem;
}

.journal-form .field input {
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.journal-saved {
  margin: 0;
  font-size: 0.78rem;
  color: var(--life);
}

.reflection-history {
  margin-top: 1rem;
}

.reflection-history summary,
.enough-history summary {
  font-size: 0.82rem;
  color: var(--gold-dim);
  cursor: pointer;
}

.journal-history {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.journal-entry {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.78rem;
  line-height: 1.4;
}

.journal-entry__date {
  display: block;
  font-size: 0.7rem;
  color: var(--gold-dim);
  margin-bottom: 0.2rem;
}

.journal-entry p {
  margin: 0.15rem 0;
}

/* Enough Number */
.enough-section {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.enough-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--gold);
}

.enough-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.enough-row input {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  max-width: 120px;
}

.enough-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 0.4rem;
}

.enough-bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--gold-dim), var(--gold));
  transition: height 0.3s ease;
}

.enough-cat {
  margin-bottom: 0.6rem;
}

.enough-cat strong {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Reminder */
.reminder-section {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reminder-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--gold);
}

.reminder-status {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--life);
}

@media (max-width: 540px) {
  .weeks-grid {
    gap: 1.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clock-face {
    transition: none;
  }

  .meter-fill {
    transition: none;
  }

  .btn-primary,
  .btn-ghost {
    transition: none;
  }

  .center-btn {
    transition: none;
  }

  .journey-nav-btn {
    transition: none;
  }
}

/* ============ Relationships ============ */
.relationships .rel-intro,
.moneytime .mt-intro {
  color: var(--muted, #a5adba);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.rel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 1rem;
}
.rel-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.rel-card--warn { border-color: rgba(255,180,60,.5); }
.rel-card--danger { border-color: rgba(255,90,90,.6); background: rgba(255,90,90,.06); }
.rel-name {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255,255,255,.15);
  padding: 4px 0;
}
.rel-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.rel-fields label {
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  color: var(--muted, #a5adba);
  gap: 2px;
}
.rel-fields input {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  color: inherit;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .95rem;
}
.rel-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.rel-result > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .7rem;
  color: var(--muted, #a5adba);
  text-align: center;
}
.rel-big {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  font-family: "Instrument Serif", serif;
}
.rel-footnote, .mt-footnote {
  font-size: .8rem;
  color: var(--muted, #a5adba);
  font-style: italic;
  margin-top: 1rem;
}

/* ============ Money ↔ Time ============ */
.mt-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.mt-settings label,
.mt-input-row label {
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  color: var(--muted, #a5adba);
  gap: 3px;
}
.mt-settings input,
.mt-input-row input {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  color: inherit;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1rem;
}
.mt-input-row {
  display: flex;
  gap: .6rem;
  align-items: end;
  margin-bottom: .75rem;
}
.mt-input-row label { flex: 1; }
.mt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.mt-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.mt-card--warn { border-color: rgba(255,180,60,.5); }
.mt-card--danger { border-color: rgba(255,90,90,.6); background: rgba(255,90,90,.07); }
.mt-headline {
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  line-height: 1.4;
}
.mt-headline strong {
  font-family: "Instrument Serif", serif;
  font-size: 1.6rem;
  color: #fff;
}
.mt-breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.mt-breakdown li {
  display: flex;
  flex-direction: column;
  padding: .6rem;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  font-size: .75rem;
  color: var(--muted, #a5adba);
}
.mt-breakdown li span {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
}
.mt-rate {
  margin: 0;
  font-size: .85rem;
  color: var(--muted, #a5adba);
}

/* ===== Bias Detector ===== */
.bias-intro { color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.bias-form { display: flex; flex-direction: column; gap: 1rem; }
.bias-q {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.02);
}
.bias-q legend { padding: 0 .4rem; font-weight: 600; }
.bias-opt {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .35rem 0; cursor: pointer;
}
.bias-opt input { margin-top: .2rem; }
.bias-result {
  margin-top: 1rem;
  border: 1px solid rgba(120, 200, 255,.35);
  background: rgba(120,200,255,.06);
  border-radius: 14px; padding: 1rem 1.2rem;
}
.bias-top .eyebrow { color: rgba(255,255,255,.55); }
.bias-reframe {
  margin-top: .6rem; padding: .7rem .9rem;
  border-radius: 10px; background: rgba(255,255,255,.05);
}
.bias-catalog { margin-top: 1.5rem; }
.bias-item {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: .6rem .8rem; margin-bottom: .5rem;
  background: rgba(255,255,255,.02);
}
.bias-item summary { cursor: pointer; }
.bias-item p { margin: .3rem 0; font-size: .92rem; color: rgba(255,255,255,.78); }
.muted { color: rgba(255,255,255,.55); }

/* ===== Mental Models Deck ===== */
.mm-intro { color: rgba(255,255,255,.7); }
.mm-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(135deg, rgba(120,90,255,.08), rgba(90,180,255,.05));
  margin: 1rem 0;
}
.mm-card h3 { margin: .3rem 0 .1rem; font-size: 1.4rem; }
.mm-by { color: rgba(255,255,255,.55); font-style: italic; margin-bottom: .7rem; }
.mm-idea { line-height: 1.5; }
.mm-apply {
  margin-top: .9rem; padding: .8rem 1rem;
  border-radius: 12px; background: rgba(255,255,255,.05);
}
.mm-apply p { margin: .3rem 0 0; color: rgba(255,255,255,.85); }
.mm-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem;
}
.mm-counter { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.mm-random { margin-top: .8rem; }

/* ===== Regret Minimizer ===== */
.reg-intro { color: rgba(255,255,255,.7); }
.reg-form { display: flex; flex-direction: column; gap: .8rem; margin-top: .8rem; }
.reg-row { display: flex; gap: .8rem; }
.reg-row .field { flex: 1; }
.reg-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.reg-result, .reg-ai-result {
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 1rem 1.1rem;
  background: rgba(255,255,255,.03);
}
.reg-result h3, .reg-ai-result h3 { margin-top: 0; }
.reg-verdict {
  margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px;
  background: rgba(120,200,120,.08);
  border: 1px solid rgba(120,200,120,.3);
}
.reg-ai-text { line-height: 1.55; color: rgba(255,255,255,.88); }
.reg-history { margin-top: 1.2rem; }
.reg-history ul { list-style: none; padding: 0; }
.reg-history li {
  padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .92rem;
}
.warn { color: #ffb46b; }
