/* ============================================================
   数鉴 · design tokens
   ============================================================ */
:root {
  --bg: #f4efe5;
  --bg-2: #fbf7ee;
  --surface: #fffdf8;
  --surface-2: #f0e8da;
  --surface-3: #e8dfcf;
  --ink: #1e2a44;
  --ink-2: #3b465c;
  --muted: #737a86;
  --line: #e2d7c4;
  --line-strong: #cfc1a8;
  --accent: #a63d2f;
  --accent-2: #c05a48;
  --accent-soft: #f6e5df;
  --gold: #b08a3e;
  --gold-soft: #f3ead6;
  --green: #3e6b57;
  --green-soft: #e3eee8;
  --blue: #3b6e8f;
  --blue-soft: #e2edf3;
  --danger: #a63d2f;
  --shadow: 0 18px 50px rgba(31, 42, 68, 0.08);
  --shadow-sm: 0 6px 18px rgba(31, 42, 68, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --topbar-h: 64px;
  --tabbar-h: 66px;
}

[data-theme="dark"] {
  --bg: #10141c;
  --bg-2: #141922;
  --surface: #171e29;
  --surface-2: #202938;
  --surface-3: #283244;
  --ink: #f2ede3;
  --ink-2: #d4d9e2;
  --muted: #9aa3b2;
  --line: #2b3546;
  --line-strong: #3b475b;
  --accent: #e07a63;
  --accent-2: #ef927d;
  --accent-soft: #32211f;
  --gold: #d4af61;
  --gold-soft: #2d271d;
  --green: #7bb79a;
  --green-soft: #1b2a24;
  --blue: #7faecb;
  --blue-soft: #1a2733;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 720px at 88% -10%, rgba(176, 138, 62, 0.13), transparent 62%),
    radial-gradient(900px 680px at -10% 18%, rgba(166, 61, 47, 0.08), transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(31, 42, 68, 0.06) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  z-index: -1;
}
[data-theme="dark"] body::before { opacity: 0.18; }

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.app-shell { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.view { width: min(1180px, 100%); margin: 0 auto; padding: 0 18px 42px; }
.page { animation: page-in 0.35s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   top bar / nav
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 21px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: 0.08em; }
.brand-text small { color: var(--muted); font-size: 10.5px; letter-spacing: 0.18em; margin-top: 4px; }
.desktop-nav { display: none; align-items: center; gap: 4px; }
.desktop-nav a {
  padding: 8px 16px; border-radius: 999px; color: var(--muted);
  font-size: 14px; transition: 0.2s ease;
}
.desktop-nav a:hover { color: var(--ink); background: var(--surface-2); }
.desktop-nav a.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.account-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px;
  padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: 0.2s ease;
}
.account-chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.account-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 14px;
}
.account-name { font-size: 12px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .account-name { display: none; } .account-chip { padding-right: 4px; } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink);
  transition: 0.2s ease;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 10.5px; border-radius: 14px;
  transition: 0.2s ease;
}
.tabbar a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tab-icon { display: grid; place-items: center; }
.tab-icon svg { width: 21px; height: 21px; }

/* ============================================================
   primitives
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.serif { font-family: var(--serif); }
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: 0.2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-soft { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn .icon { width: 17px; height: 17px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 11.5px; line-height: 1.4; white-space: nowrap;
}
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.panel-flat { box-shadow: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 34px 0 16px; }
.section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.section-head .more { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.section-head .more:hover { color: var(--accent); }

.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ============================================================
   home
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 26px;
  padding: 26px 0 10px; align-items: center;
}
.hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 7.2vw, 56px);
  line-height: 1.12; letter-spacing: -0.02em;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy p { color: var(--muted); font-size: 15.5px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

.hero-art { position: relative; min-height: 320px; display: grid; place-items: center; }
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line);
  pointer-events: none;
}
.hero-art::before { width: 92%; aspect-ratio: 1; transform: rotate(8deg); opacity: 0.7; }
.hero-art::after { width: 70%; aspect-ratio: 1; border-color: var(--gold); opacity: 0.35; }
.sample-card {
  position: relative; z-index: 1; width: min(100%, 390px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); padding: 20px 20px 18px;
  transform: rotate(-1.5deg);
}
.sample-card .sample-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sample-card .sample-top span { font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted); }
.sample-card .sample-top b { font-family: var(--serif); color: var(--accent); font-size: 13px; }
.sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sample-cell { text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); }
.sample-cell small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.sample-cell strong { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.sample-cell em { display: block; font-style: normal; font-size: 10px; color: var(--muted); margin-top: 2px; }
.sample-relation { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.sample-relation b { color: var(--ink); font-weight: 600; }
.sample-tag { position: absolute; right: 18px; bottom: -12px; background: var(--accent); color: #fff; font-size: 10.5px; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.08em; }

.home-form { margin-top: 26px; }
.home-form .panel { padding: 20px; }
.form-title { font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }

.feature-strip { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.feature-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { margin: 0 0 3px; font-size: 14.5px; font-family: var(--sans); }
.feature p { color: var(--muted); font-size: 12.5px; }

.number-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.number-strip::-webkit-scrollbar { display: none; }
.number-chip {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--serif); font-size: 19px; line-height: 1; transition: 0.2s ease;
}
.number-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.number-chip small { font-family: var(--sans); font-size: 8px; color: var(--muted); line-height: 1; }

.recent-list { display: grid; gap: 10px; }
.recent-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); transition: 0.2s ease;
}
.recent-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.recent-mini { display: flex; gap: 4px; flex: 0 0 auto; }
.recent-mini span { width: 28px; height: 36px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; }
.recent-main { min-width: 0; flex: 1; }
.recent-main strong { display: block; font-size: 14px; }
.recent-main small { color: var(--muted); font-size: 11.5px; }
.recent-arrow { color: var(--muted); }
.recent-arrow svg { width: 17px; height: 17px; }

/* ============================================================
   forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.input, .select {
  width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--bg-2); color: var(--ink);
  outline: none; transition: 0.2s ease;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input-row { display: flex; gap: 10px; }
.input-row > * { flex: 1; min-width: 0; }
.segmented { display: flex; padding: 4px; background: var(--surface-2); border-radius: 999px; gap: 3px; }
.segmented button {
  flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; transition: 0.2s ease;
}
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }
.form-note { color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.form-error { color: var(--danger); font-size: 12px; min-height: 18px; }

/* ============================================================
   chart result
   ============================================================ */
.result-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 0 12px; }
.result-head > div:first-child { min-width: 0; max-width: 100%; }
.result-head h1 { margin: 4px 0 2px; font-size: clamp(26px, 4.5vw, 40px); overflow-wrap: anywhere; }
.result-head .sub { color: var(--muted); font-size: 12.5px; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
.result-actions .btn { flex: 0 0 auto; }

.chart-board { padding: 18px; border-radius: 26px; background: #1f2a44; color: #f4efe5; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.chart-board::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08); right: -140px; top: -170px;
}
.chart-board::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(176,138,62,0.25); left: -110px; bottom: -130px;
}
.chart-board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 1; }
.chart-board-top .label { font-size: 10.5px; letter-spacing: 0.16em; color: rgba(244,239,229,0.62); }
.chart-board-top .chart-name { font-family: var(--serif); font-size: 18px; color: #f4efe5; }
.chart-board-top .pill { background: rgba(255,255,255,0.12); color: #f4efe5; }
.chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.pillar {
  border-radius: 16px; padding: 12px 8px 10px; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
}
.pillar .pillar-label { font-size: 10.5px; color: rgba(244,239,229,0.58); letter-spacing: 0.12em; }
.pillar .numbers { display: flex; justify-content: center; gap: 3px; margin: 5px 0 4px; min-height: 56px; align-items: center; }
.pillar .num { font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); line-height: 1; }
.pillar .num + .num { font-size: clamp(24px, 4.6vw, 34px); opacity: 0.92; }
.pillar .num-sep { font-family: var(--sans); font-size: 14px; color: rgba(244, 239, 229, 0.92); align-self: center; margin: 0 3px; }
.pillar .later-row { display: flex; justify-content: center; gap: 3px; color: var(--gold); font-family: var(--serif); font-size: 15px; opacity: 0.95; }
.pillar .later-row span { min-width: 18px; }
.pillar .element { margin-top: 5px; font-size: 10px; color: rgba(244,239,229,0.55); }
.chart-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); position: relative; z-index: 1; }
.chart-strip span { font-size: 11.5px; color: rgba(244,239,229,0.68); }
.chart-strip b { color: #f4efe5; font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }

.element-bars { display: grid; gap: 8px; margin-top: 16px; }
.element-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.element-bar .name { width: 26px; color: var(--muted); flex: 0 0 auto; }
.element-bar .track { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.element-bar .fill { height: 100%; border-radius: 999px; background: var(--accent); }
.element-bar .fill.gold { background: var(--gold); }
.element-bar .fill.green { background: var(--green); }
.element-bar .fill.blue { background: var(--blue); }
.element-bar .count { width: 22px; text-align: right; color: var(--muted); flex: 0 0 auto; }

.relation-list { display: grid; gap: 8px; }
.relation-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.relation-item .badge { flex: 0 0 auto; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--muted); }
.relation-item .badge.sheng { background: var(--green); }
.relation-item .badge.ke { background: var(--gold); }
.relation-item .badge.jue { background: var(--accent); }
.relation-item .badge.chong { background: var(--blue); }
.relation-item .badge.bi { background: var(--ink-2); }
.relation-item .txt { font-size: 12.5px; color: var(--ink-2); }
.relation-item .txt small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }

.luck-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.luck-item { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.luck-item .range { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }
.luck-item .stage { font-family: var(--serif); font-size: 16px; margin: 2px 0; }
.luck-item .note { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* reading */
.reading-hero { margin-top: 18px; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.reading-hero .kicker { color: var(--accent); font-size: 11px; letter-spacing: 0.16em; font-weight: 700; }
.reading-hero h2 { margin: 8px 0 10px; font-size: clamp(24px, 4vw, 34px); }
.reading-hero p { color: var(--ink-2); font-size: 13.5px; }
.reading-hero .keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.reading-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0 18px; margin-top: 10px; }
.reading-card summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; }
.reading-card summary::-webkit-details-marker { display: none; }
.reading-card summary .idx { font-family: var(--sans); font-size: 10.5px; color: var(--muted); width: 22px; }
.reading-card summary .chev { margin-left: auto; color: var(--muted); transition: 0.2s ease; }
.reading-card[open] summary .chev { transform: rotate(180deg); }
.reading-card .card-body { padding: 0 0 16px 32px; }
.reading-card .card-body p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; }
.reading-card .card-body p:last-child { margin-bottom: 0; }
.evidence { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.evidence summary { padding: 0; font-size: 11.5px; color: var(--muted); font-family: var(--sans); }
.evidence .ev-list { display: grid; gap: 5px; margin-top: 6px; }
.evidence .ev-list span { font-size: 11.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 5px 8px; }

.disclaimer { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.article-body p { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin: 0 0 12px; }
.article-body p:last-child { margin-bottom: 0; }
.pillar[data-count="2"] .num { font-size: clamp(26px, 5vw, 38px); }
.pillar[data-count="3"] .num { font-size: clamp(22px, 4.2vw, 32px); }
.pillar[data-count="3"] .numbers { gap: 1px; }

/* ============================================================
   search / knowledge
   ============================================================ */
.search-hero { padding: 24px 0 8px; }
.search-hero h1 { font-size: clamp(28px, 8vw, 44px); margin: 8px 0 12px; }
.search-bar { position: relative; margin-top: 16px; }
.search-bar .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-bar input { width: 100%; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 0 48px 0 46px; outline: none; font-size: 14.5px; box-shadow: var(--shadow-sm); }
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.search-bar .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; display: none; }
.search-bar.has-value .clear { display: grid; place-items: center; }
.category-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 12px; }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.knowledge-list { display: grid; gap: 10px; }
.knowledge-card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: 0.2s ease; }
.knowledge-card:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.knowledge-card .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.knowledge-card h3 { margin: 0 0 4px; font-size: 16px; font-family: var(--serif); }
.knowledge-card p { color: var(--muted); font-size: 12.5px; }
.knowledge-card .arrow { float: right; color: var(--muted); margin-top: 2px; }

.tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.number-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.number-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--ink); transition: 0.2s ease; }
.number-cell:hover, .number-cell.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.relation-tool { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.relation-tool .field { gap: 4px; }
.relation-result { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); min-height: 48px; }
.relation-result .badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: 11px; margin-right: 6px; }

.number-detail { display: grid; gap: 10px; margin-top: 14px; }
.number-detail .nd-head { display: flex; align-items: center; gap: 12px; }
.number-detail .nd-num { width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 32px; }
.number-detail .nd-head h3 { margin: 0; font-size: 18px; }
.number-detail .nd-head p { color: var(--muted); font-size: 12px; }
.number-detail .nd-body { font-size: 13px; color: var(--ink-2); }
.number-detail .nd-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   records
   ============================================================ */
.records-head { padding: 24px 0 12px; }
.records-head h1 { margin: 8px 0 4px; font-size: clamp(30px, 5vw, 44px); }
.records-head p { color: var(--muted); font-size: 13px; }
.records-tools { display: flex; gap: 10px; margin-top: 16px; min-width: 0; }
.records-tools .search-bar { flex: 1; min-width: 0; margin: 0; }
.records-tools .btn { flex: 0 0 auto; }
.records-tools .search-bar input { height: 46px; }
.records-list { display: grid; gap: 10px; margin-top: 14px; }
.record-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: 0.2s ease; min-width: 0; overflow: hidden; }
.record-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.record-mini { display: flex; gap: 3px; flex: 0 0 auto; }
.record-mini span { width: 26px; height: 34px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--serif); font-size: 14px; }
.record-main { min-width: 0; flex: 1; }
.record-main strong { display: block; font-size: 14px; }
.record-main small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.record-main .record-headline { color: var(--accent); font-size: 11.5px; margin-top: 3px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-actions { display: flex; align-items: center; gap: 4px; }
.record-actions button { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.record-actions button:hover { background: var(--surface-2); color: var(--accent); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.empty .empty-icon svg { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.empty p { font-size: 13px; margin-bottom: 16px; }

/* ============================================================
   me
   ============================================================ */
.me-head { padding: 24px 0 12px; }
.me-head h1 { margin: 8px 0 4px; font-size: clamp(30px, 5vw, 44px); }
.profile-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--ink); color: var(--bg); margin-top: 14px; }
.profile-avatar { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,0.1); display: grid; place-items: center; font-family: var(--serif); font-size: 25px; color: var(--gold); }
.profile-card h2 { margin: 0; font-size: 17px; color: var(--bg); }
.profile-card p { font-size: 11.5px; color: rgba(244,239,229,0.58); margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 22px; }
.stat small { color: var(--muted); font-size: 10.5px; }
.settings { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.setting { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.setting-icon svg { width: 17px; height: 17px; }
.setting-main { flex: 1; }
.setting-main b { display: block; font-size: 13.5px; font-weight: 600; }
.setting-main small { display: block; color: var(--muted); font-size: 11px; }
.setting-action { color: var(--muted); }
.setting-action svg { width: 17px; height: 17px; }
.switch { width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--surface-3); position: relative; transition: 0.2s ease; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); top: 3px; left: 3px; transition: 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--accent); }
.switch.on::after { left: 21px; }

/* ============================================================
   toast / sheet / loading
   ============================================================ */
.toast-root { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; box-shadow: var(--shadow); animation: toast-in 0.25s ease both; }
.toast.error { background: var(--accent); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sheet-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 22, 0.48); display: grid; align-items: end; animation: fade-in 0.2s ease both; }
.sheet { width: 100%; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: sheet-up 0.28s cubic-bezier(.2,.8,.2,1) both; }
.sheet h3 { margin: 0 0 6px; font-size: 19px; }
.sheet p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.sheet-textarea { min-height: 130px; padding: 12px 14px; line-height: 1.7; resize: vertical; margin: 8px 0 14px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.loading { display: grid; gap: 12px; padding: 30px 0; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skeleton.h1 { height: 40px; width: 60%; }
.skeleton.card { height: 180px; border-radius: 20px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--bg) 35%, transparent); border-top-color: var(--bg); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   responsive
   ============================================================ */
@media (min-width: 760px) {
  .view { padding: 0 26px 54px; }
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 44px 0 18px; }
  .hero-art { min-height: 420px; }
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }
  .result-head { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .result-actions { width: auto; justify-content: flex-end; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .number-grid { grid-template-columns: repeat(13, 1fr); }
  .luck-grid { grid-template-columns: repeat(4, 1fr); }
  .tabbar { display: none; }
  .desktop-nav { display: flex; }
  .app-shell { padding-bottom: 0; }
  .toast-root { bottom: 28px; }
  .sheet-overlay { align-items: center; }
  .sheet { border-radius: 24px; }
  .reading-card .card-body { padding-left: 42px; }
}

@media (min-width: 1024px) {
  .topbar { padding: 0 28px; }
  .hero { gap: 64px; padding-top: 58px; }
  .panel { padding: 26px; }
  .home-form .panel { padding: 24px; }
  .result-head { padding-top: 32px; }
  .chart-board { padding: 24px 28px; }
  .chart-grid { gap: 12px; }
  .pillar { padding: 18px 10px 14px; }
}

@media (max-width: 380px) {
  .view { padding-left: 14px; padding-right: 14px; }
  .hero-copy h1 { font-size: 34px; }
  .number-grid { grid-template-columns: repeat(5, 1fr); }
  .chart-grid { gap: 5px; }
  .pillar { padding: 10px 4px 8px; }
}

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

/* ============================================================
   accounts / learning / deep reading
   ============================================================ */
.auth-page { padding: 20px 0 50px; }
.auth-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.auth-side { display: none; }
.auth-side {
  padding: 26px; border-radius: 26px; background: #1f2a44; color: #f4efe5;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); right: -120px; bottom: -140px;
}
.auth-side .eyebrow { color: var(--gold); }
.auth-side .eyebrow::before { background: var(--gold); }
.auth-side h1 { margin: 12px 0 12px; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; color: #f4efe5; }
.auth-side p { color: rgba(244,239,229,.68); font-size: 13.5px; }
.auth-side-points { display: grid; gap: 9px; margin-top: 22px; color: rgba(244,239,229,.8); font-size: 12.5px; }
.auth-side-points span { display: flex; align-items: center; gap: 8px; }
.auth-side-points svg { color: var(--gold); }
.auth-card { padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-card h2 { margin: 7px 0 20px; font-size: clamp(24px, 4vw, 32px); }
.auth-form { display: grid; gap: 14px; }
.auth-footer { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-demo { margin-top: 14px; }
.demo-account {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong);
  background: var(--bg-2); text-align: left;
}
.demo-account b { display: block; font-size: 12.5px; }
.demo-account small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.learn-hero { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 0 10px; align-items: end; }
.learn-hero h1 { margin: 10px 0 10px; font-size: clamp(30px, 5.4vw, 48px); line-height: 1.15; }
.learn-hero p { color: var(--muted); max-width: 620px; }
.learn-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.learn-stats div { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.learn-stats strong { display: block; font-family: var(--serif); font-size: 26px; }
.learn-stats span { color: var(--muted); font-size: 10.5px; }
.learn-login { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.learn-login strong { font-size: 14px; }
.course-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.course-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); transition: .2s ease; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.course-cover { min-height: 140px; padding: 18px; color: #f4efe5; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.course-cover::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); right: -40px; top: -50px; }
.cover-gold .course-cover, .continue-cover.cover-gold, .course-hero.cover-gold { background: linear-gradient(135deg, #8c6a2f, #c9a45c); }
.cover-navy .course-cover, .continue-cover.cover-navy, .course-hero.cover-navy { background: linear-gradient(135deg, #1f2a44, #3b4d70); }
.cover-cinnabar .course-cover, .continue-cover.cover-cinnabar, .course-hero.cover-cinnabar { background: linear-gradient(135deg, #7f2e25, #c05a48); }
.cover-green .course-cover, .continue-cover.cover-green, .course-hero.cover-green { background: linear-gradient(135deg, #2f5445, #6f9b83); }
.course-level { font-size: 10.5px; letter-spacing: .16em; opacity: .72; }
.course-cover-title { display: block; font-family: var(--serif); font-size: 23px; margin: 5px 0 3px; }
.course-cover-sub { font-size: 11.5px; opacity: .72; }
.course-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body p { color: var(--muted); font-size: 12px; line-height: 1.6; flex: 1; }
.course-link { color: var(--accent); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.progress-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.continue-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); transition: .2s ease;
}
.continue-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.continue-cover { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 10px; text-align: center; flex: 0 0 auto; }
.continue-main { flex: 1; min-width: 0; }
.continue-main strong { display: block; font-size: 14px; }
.continue-main p { color: var(--muted); font-size: 11.5px; margin: 2px 0 8px; }
.continue-meta { text-align: right; flex: 0 0 auto; }
.continue-meta b { display: block; font-family: var(--serif); font-size: 20px; }
.continue-meta small { color: var(--muted); font-size: 10px; }

.learn-promo {
  display: grid; grid-template-columns: 1fr; gap: 20px; padding: 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
}
.learn-promo h3 { margin: 10px 0 6px; font-size: clamp(20px, 3.4vw, 28px); }
.learn-promo p { color: var(--muted); font-size: 12.5px; }
.learn-promo-art { display: flex; align-items: center; justify-content: space-around; gap: 12px; }
.lp-ring { width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); }
.lp-ring span { font-family: var(--serif); font-size: 40px; line-height: 1; }
.lp-ring small { font-size: 10px; }
.lp-line { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }

.course-hero { padding: 22px; border-radius: 26px; color: #f4efe5; position: relative; overflow: hidden; }
.course-hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); right: -100px; top: -120px; }
.course-hero h1 { margin: 10px 0 4px; font-size: clamp(28px, 4.6vw, 44px); color: #f4efe5; }
.course-hero .muted, .course-hero a { color: rgba(255,255,255,.82); }
.course-hero .pill { background: rgba(255,255,255,.16); color: #fff; }
.course-sub { opacity: .8; font-size: 13px; }
.course-desc { margin-top: 12px; max-width: 760px; font-size: 13px; opacity: .78; }
.course-progress { display: flex; align-items: center; gap: 10px; margin-top: 16px; max-width: 520px; font-size: 11px; opacity: .85; }
.course-progress .progress-track { flex: 1; background: rgba(255,255,255,.18); }
.course-progress .progress-track span { background: var(--gold); }
.course-meta-strip { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 14px 4px; color: var(--muted); font-size: 11.5px; }
.course-meta-strip span { display: inline-flex; align-items: center; gap: 6px; }
.module-list { display: grid; gap: 12px; min-width: 0; width: 100%; }
.module-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); min-width: 0; width: 100%; max-width: 100%; overflow: hidden; }
.module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.module-head h3 { margin: 6px 0 0; font-size: 18px; }
.lesson-list { display: grid; gap: 6px; margin-top: 12px; min-width: 0; width: 100%; }
.lesson-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; transition: .2s ease; min-width: 0; max-width: 100%; overflow: hidden; }
.lesson-row:hover { background: var(--surface-2); }
.lesson-row.done .lesson-state { background: var(--green-soft); color: var(--green); }
.lesson-state { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 10.5px; flex: 0 0 auto; }
.lesson-main { flex: 1; min-width: 0; overflow: hidden; }
.lesson-main strong { display: block; font-size: 13px; white-space: normal; }
.lesson-main small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; color: var(--muted); font-size: 11px; white-space: normal; overflow: hidden; }
.lesson-duration { color: var(--muted); font-size: 10.5px; flex: 0 0 auto; }

.lesson-page { max-width: 880px; margin: 0 auto; }
.lesson-top { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0 10px; }
.lesson-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 18px; }
.lesson-head h1 { margin: 8px 0 8px; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.2; }
.lesson-head p { color: var(--muted); font-size: 13px; }
.lesson-time { white-space: nowrap; color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 5px; padding-top: 8px; }
.lesson-content { display: grid; gap: 12px; }
.lesson-block { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.lesson-block h3 { margin: 0 0 10px; font-size: 16px; }
.lesson-block ul { display: grid; gap: 7px; padding-left: 18px; list-style: disc; }
.lesson-block li { color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.lesson-block p { color: var(--ink-2); font-size: 13.5px; line-height: 1.85; }
.lesson-block.accent { border-left: 3px solid var(--accent); }
.lesson-block.warn { border-left: 3px solid var(--gold); }
.lesson-quote { padding: 18px 20px; border-radius: 18px; background: var(--ink); color: var(--bg); }
.lesson-quote span { font-size: 10px; letter-spacing: .16em; color: var(--gold); }
.lesson-quote p { margin-top: 7px; font-family: var(--serif); font-size: 16px; line-height: 1.8; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.lesson-note { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.lesson-note h3 { margin: 0 0 10px; font-size: 16px; }
.note-input { min-height: 110px; resize: vertical; padding: 12px 14px; line-height: 1.7; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }

.detail-hero { margin-top: 18px; padding: 22px; border-radius: 24px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.detail-hero .kicker { color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.detail-hero h2 { margin: 8px 0 8px; font-size: clamp(24px, 4vw, 34px); }
.detail-hero .thesis { font-family: var(--serif); font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.detail-hero p { color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.detail-hero .keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.structure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.structure-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.structure-item span { display: block; color: var(--muted); font-size: 10.5px; }
.structure-item strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 15px; word-break: break-word; }
.relation-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.rt-row { display: grid; grid-template-columns: 82px 86px 86px 1fr; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--line); font-size: 11.5px; align-items: start; }
.rt-row:first-child { border-top: 0; }
.rt-head { background: var(--surface-2); color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.rt-pos { color: var(--muted); }
.rt-verdict { display: block; font-size: 11.5px; color: var(--accent); }
.rt-verdict.good { color: var(--green); }
.rt-verdict.warn { color: var(--accent); }
.rt-row small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.5; margin-top: 2px; }
.luck-table, .year-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.luck-row { display: grid; grid-template-columns: 80px 50px 1fr; gap: 8px; padding: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.luck-row:first-child { border-top: 0; }
.luck-range { color: var(--muted); font-size: 10.5px; }
.luck-row small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.year-row { display: grid; grid-template-columns: 58px 34px 1fr auto; gap: 8px; align-items: center; padding: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.year-row:first-child { border-top: 0; }
.year-row.current { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.year-num { font-family: var(--serif); font-size: 16px; }
.year-num small { display: block; color: var(--muted); font-family: var(--sans); font-size: 9.5px; }
.year-rel { font-weight: 700; color: var(--muted); }
.year-rel.warn { color: var(--accent); }
.year-rel.good { color: var(--green); }
.year-theme small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.5; margin-top: 2px; }
.detail-bullets { display: grid; gap: 6px; padding-left: 18px; list-style: disc; margin: 8px 0; }
.detail-bullets li { color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.section-lead { font-family: var(--serif); font-size: 15px !important; color: var(--ink) !important; }
.direction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.direction-item { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); }
.direction-item strong { display: block; font-size: 11.5px; }
.direction-item span { color: var(--muted); font-size: 10.5px; }
.action-plan { display: grid; gap: 8px; }
.action-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.action-index { font-family: var(--serif); color: var(--accent); font-size: 16px; line-height: 1.2; }
.action-item p { font-size: 12.5px; color: var(--ink-2); }
.recommend-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.learn-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: .2s ease; }
.learn-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.learn-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 8px; }
.learn-card h3 { margin: 0 0 4px; font-size: 15px; }
.learn-card p { color: var(--accent); font-size: 11.5px; }
.learn-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.5; }

@media (min-width: 760px) {
  .auth-layout { grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
  .auth-side { display: block; }
  .auth-side, .auth-card { padding: 34px; }
  .learn-hero { grid-template-columns: 1fr auto; gap: 28px; }
  .learn-stats { grid-template-columns: repeat(4, 1fr); min-width: 360px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-promo { grid-template-columns: 1.2fr .8fr; align-items: center; }
  .structure-grid { grid-template-columns: repeat(4, 1fr); }
  .rt-row { grid-template-columns: 100px 110px 110px 1fr; font-size: 12px; }
  .luck-row { grid-template-columns: 100px 70px 1fr; }
  .recommend-grid { grid-template-columns: repeat(3, 1fr); }
  .direction-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 420px) {
  .rt-head { display: none; }
  .rt-row { grid-template-columns: 1fr 1fr; row-gap: 6px; padding: 12px; }
  .rt-row > span:nth-child(1) { grid-column: 1 / -1; font-weight: 600; color: var(--ink); }
  .rt-row > span:nth-child(2), .rt-row > span:nth-child(3) {
    background: var(--surface-2); padding: 5px 7px; border-radius: 7px; font-size: 10.5px;
  }
  .rt-row > span:nth-child(2)::before { content: "先天 "; color: var(--muted); }
  .rt-row > span:nth-child(3)::before { content: "后天 "; color: var(--muted); }
  .rt-row > span:nth-child(4) { grid-column: 1 / -1; }
  .year-row { grid-template-columns: 50px 30px 1fr; }
  .year-row > .pill { display: none; }
  .lesson-head { flex-direction: column; gap: 6px; }
  .lesson-time { padding-top: 0; }
}

/* ---------- article reading ---------- */
.article-cover { width: 100%; max-width: 760px; max-height: 360px; border-radius: 20px; overflow: hidden; margin: 0 auto 18px; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; }
.article-cover .article-cover-fallback { min-height: 180px; }
.article-head { max-width: 760px; margin: 0 auto; }
.article-head h1 { margin: 8px 0 10px; font-size: clamp(28px, 5vw, 42px); line-height: 1.3; }
.article-subtitle { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-content { max-width: 760px; margin: 0 auto; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.article-content p { margin: 0 0 14px; }
.article-content h2 { font-family: var(--serif); font-size: 24px; line-height: 1.45; margin: 28px 0 12px; color: var(--ink); }
.article-content h3 { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin: 22px 0 10px; color: var(--ink); }
.article-content blockquote { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--ink-2); border-radius: 0 12px 12px 0; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 12px 0 16px; }
.article-content li { margin: 5px 0; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 12px; }
.article-content figure { margin: 20px 0; }
.article-content figcaption { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-content th { background: var(--surface-2); }
.article-content code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 0.9em; }
.article-content pre { background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 12px; overflow-x: auto; }
.knowledge-card .kc-cover { width: 100%; aspect-ratio: 2.35 / 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.knowledge-card .kc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.knowledge-card .kc-cover .article-cover-fallback { min-height: 100%; }
.knowledge-card .kc-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-top: 6px; }
.article-cover-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, #1f2a44, #405577); color: #f4efe5; }
.article-cover-fallback span { font-family: var(--serif); font-size: 42px; }
.article-cover-fallback small { font-size: 9px; letter-spacing: .16em; opacity: .65; }
.home-article-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.home-article-card { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: .2s ease; }
.home-article-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.home-article-cover { width: 92px; height: 92px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.home-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-article-cover .article-cover-fallback { min-height: 100%; }
.home-article-cover .article-cover-fallback span { font-size: 28px; }
.home-article-cover .article-cover-fallback small { display: none; }
.home-article-main { min-width: 0; flex: 1; }
.home-article-main h3 { margin: 5px 0 4px; font-size: 15px; line-height: 1.4; }
.home-article-main p { color: var(--muted); font-size: 11.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-article-main small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
@media (min-width: 760px) { .home-article-list { grid-template-columns: repeat(3, 1fr); } .home-article-card { flex-direction: column; } .home-article-cover { width: 100%; height: 140px; } }

/* ---------- 盘种选择 / 八字 / 奇门 / 邵雍解答 ---------- */
.oracle-chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.oracle-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: .2s ease; }
.oracle-choice:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.oracle-choice.active { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.oracle-choice .oc-icon { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.oracle-choice .oc-icon.gold { color: var(--gold); }
.oracle-choice .oc-icon.green { color: var(--jade, #5d7a55); }
.oracle-choice div { flex: 1; min-width: 0; }
.oracle-choice strong { display: block; font-size: 14px; }
.oracle-choice p { display: none; margin: 3px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.oracle-choice > .icon { display: none; color: var(--muted); flex: 0 0 auto; }

.chart-question { min-height: 82px; resize: vertical; padding-top: 11px; padding-bottom: 11px; line-height: 1.6; }

.bazi-board, .qimen-board { border-radius: 24px; background: #1f2a44; color: #f4efe5; padding: 18px; margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow); }
.bazi-board-top, .bazi-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bazi-board-top .pill { background: rgba(244,239,229,.12); color: #f4efe5; }
.bazi-board-top .muted { color: rgba(244,239,229,.62); }
.bazi-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 14px; }
.bazi-pillar { min-width: 0; border-radius: 12px; border: 1px solid rgba(244,239,229,.14); background: rgba(244,239,229,.045); padding: 10px 6px; text-align: center; }
.bazi-pillar-head { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: rgba(244,239,229,.62); }
.bazi-pillar-head em { font-style: normal; color: var(--gold); font-size: 10px; }
.bazi-char { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 7px 0 5px; }
.bazi-char b { font-family: var(--serif); font-size: clamp(28px, 8vw, 44px); line-height: 1.08; font-weight: 600; }
.bazi-hidden { display: flex; justify-content: center; gap: 3px; flex-wrap: wrap; min-height: 20px; }
.bazi-hidden span { font-size: 10px; padding: 1px 4px; border-radius: 4px; background: rgba(244,239,229,.1); color: rgba(244,239,229,.8); }
.bazi-pillar-foot { margin-top: 5px; font-size: 9px; color: rgba(244,239,229,.48); line-height: 1.4; }
.bazi-strip { border-top: 1px solid rgba(244,239,229,.12); padding-top: 11px; font-size: 11.5px; color: rgba(244,239,229,.62); }
.bazi-strip b { color: #f4efe5; font-family: var(--serif); font-size: 14px; }

.oracle-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.oracle-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.oracle-kv:last-child { border-bottom: 0; }
.oracle-kv span { color: var(--muted); }
.oracle-kv b { text-align: right; font-weight: 600; }
.oracle-relations { display: grid; grid-template-columns: 1fr; gap: 8px; }
.oracle-relation { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 12px; }
.oracle-relation span { color: var(--muted); min-width: 54px; }
.oracle-relation b { flex: 0 0 auto; }
.oracle-relation small { color: var(--muted); }
.oracle-relation.good b { color: var(--jade, #5d7a55); }
.oracle-relation.warn b { color: var(--accent); }

.qimen-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qimen-meta div { background: rgba(244,239,229,.06); border: 1px solid rgba(244,239,229,.1); border-radius: 10px; padding: 8px 10px; }
.qimen-meta span { display: block; font-size: 9px; color: rgba(244,239,229,.5); letter-spacing: .08em; }
.qimen-meta b { display: block; margin-top: 3px; font-family: var(--serif); font-size: 13px; color: #f4efe5; }
.qimen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 14px 0 10px; }
.qimen-palace { min-height: 92px; border-radius: 9px; border: 1px solid rgba(244,239,229,.12); background: rgba(244,239,229,.035); padding: 7px 6px; overflow: hidden; }
.qimen-palace.is-zhifu { border-color: rgba(212,175,97,.65); background: rgba(212,175,97,.1); }
.qimen-palace.is-zhishi { box-shadow: inset 0 0 0 1px rgba(224,122,99,.45); }
.qp-head { display: flex; justify-content: space-between; gap: 4px; font-size: 9.5px; color: rgba(244,239,229,.55); }
.qp-head small { color: rgba(244,239,229,.35); }
.qp-deity { margin-top: 5px; font-size: 9px; color: var(--gold); }
.qp-star { margin-top: 2px; font-size: 10px; color: #f4efe5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-star em { font-style: normal; color: rgba(244,239,229,.72); }
.qp-stems { margin-top: 3px; font-family: var(--serif); font-size: 12px; color: rgba(244,239,229,.9); }
.qp-flags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
.qp-flags span { font-size: 8px; padding: 1px 4px; border-radius: 3px; background: rgba(212,175,97,.22); color: #f0d9a4; }
.qp-good { margin-top: 3px; font-size: 8.5px; color: #a9c89b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qimen-question { border-top: 1px solid rgba(244,239,229,.12); padding-top: 10px; display: flex; gap: 10px; align-items: baseline; }
.qimen-question span { flex: 0 0 auto; font-size: 9px; letter-spacing: .1em; color: var(--gold); }
.qimen-question p { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(244,239,229,.88); }
.qimen-patterns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qimen-patterns span { font-size: 10.5px; padding: 4px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.qimen-patterns .good { color: var(--jade, #5d7a55); background: color-mix(in srgb, var(--jade, #5d7a55) 10%, var(--surface)); }
.qimen-patterns .warn { color: var(--accent); background: var(--accent-soft); }

.shaoyong { margin: 20px 0; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--gold-soft) 70%, var(--surface)), var(--surface)); padding: 18px; }
.shaoyong-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.shaoyong-head .eyebrow { color: var(--gold); }
.shaoyong-head h2 { margin: 5px 0 0; font-family: var(--serif); font-size: clamp(22px, 5vw, 28px); }
.shaoyong-head .pill { flex: 0 0 auto; }
.sy-intro p { margin: 12px 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.sy-facts { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 14px; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 65%, transparent); color: var(--muted); font-size: 11px; line-height: 1.6; }
.sy-facts .icon { flex: 0 0 auto; margin-top: 2px; }
.sy-result-meta { display: flex; align-items: center; gap: 8px; }
.sy-result h2 { margin: 12px 0 8px; font-family: var(--serif); font-size: clamp(22px, 5vw, 30px); line-height: 1.3; }
.sy-opening { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.sy-warning { font-size: 11px; color: var(--accent); display: flex; gap: 6px; align-items: flex-start; }
.sy-sections { margin: 14px 0; }
.sy-section { border-top: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line)); }
.sy-section summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 16px; }
.sy-section summary::-webkit-details-marker { display: none; }
.sy-section summary > span { font-family: var(--sans); font-size: 9px; letter-spacing: .08em; color: var(--gold); }
.sy-section summary .chev { margin-left: auto; transition: .2s; color: var(--muted); }
.sy-section[open] summary .chev { transform: rotate(180deg); }
.sy-section-body { padding: 0 0 14px 22px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.sy-evidence { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sy-evidence span { font-size: 9.5px; padding: 3px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.sy-closing { border-left: 2px solid var(--gold); padding: 4px 0 4px 12px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.sy-disclaimer { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.sy-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.home-oracle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.home-oracle { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.home-oracle > span:first-child { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.home-oracle div { flex: 1; min-width: 0; }
.home-oracle strong { display: block; font-size: 12.5px; }
.home-oracle small { display: none; margin-top: 2px; color: var(--muted); font-size: 10px; }
.home-oracle > .icon { display: none; color: var(--muted); }

.record-kind { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 400; vertical-align: 1px; }
.record-mini.is-bazi span, .record-mini.is-qimen span { width: auto; min-width: 32px; padding: 0 6px; font-family: var(--serif); font-size: 13px; }

@media (max-width: 620px) {
  .record-card {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mini actions" "main main";
    align-items: center; gap: 8px 10px;
  }
  .record-mini { grid-area: mini; flex-wrap: wrap; max-width: 100%; }
  .record-main { grid-area: main; width: 100%; }
  .record-main .record-headline { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .record-actions { grid-area: actions; align-self: start; }
}

@media (min-width: 620px) {
  .oracle-chooser { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .oracle-choice { padding: 14px; gap: 9px; }
  .oracle-choice p { display: block; }
  .oracle-choice .oc-icon { width: 38px; height: 38px; border-radius: 12px; }
  .oracle-grid { grid-template-columns: repeat(3, 1fr); }
  .oracle-relations { grid-template-columns: repeat(2, 1fr); }
  .qimen-meta { grid-template-columns: repeat(4, 1fr); }
  .qimen-grid { gap: 8px; }
  .qimen-palace { min-height: 116px; padding: 10px; }
  .home-oracle-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .home-oracle { flex-direction: row; align-items: center; gap: 10px; padding: 11px 12px; }
  .home-oracle small { display: block; }
  .home-oracle > .icon { display: block; margin-left: auto; }
}
