/* 问路 · owned front end. Visual rules: docs/BRAND.md. Quiet neutral surface,
   white rounded cards, ink-black pill actions, five-element glyph seals. */
:root {
  --bg: #f7f7f5; --surface: #ffffff; --surface-2: #f1f0ec; --line: #e7e5df; --line-2: #d9d6ce;
  --ink: #1f1e1c; --ink-2: #4b4842; --muted: #8a867d; --accent: #b0643c; --accent-soft: #f6ece4; --danger: #a33a2b; --ok: #4c7a5e;
  --metal: #d4ad55; --wood: #6f9e86; --water: #3d6475; --fire: #a9493a; --earth: #a77a52;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(20,20,18,.04), 0 6px 20px rgba(20,20,18,.05);
  --shadow-lift: 0 2px 6px rgba(20,20,18,.08), 0 12px 32px rgba(20,20,18,.10);
  --side: 264px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
svg.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boot { padding: 40vh 16px 0; text-align: center; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; white-space: nowrap; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn-dark { background: linear-gradient(#2b2a27, #1a1917); border-color: #1a1917; color: #fff; box-shadow: 0 6px 16px rgba(20,20,18,.18); }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; min-height: 52px; font-size: 16px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.round-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-lift); color: var(--ink); }

/* ---------- glyph seals & avatar ---------- */
.seal { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 600; background: var(--muted); }
.seal.metal { background: var(--metal); } .seal.wood { background: var(--wood); } .seal.water { background: var(--water); } .seal.fire { background: var(--fire); } .seal.earth { background: var(--earth); }
.t-metal { color: #b48b2e; } .t-wood { color: var(--wood); } .t-water { color: var(--water); } .t-fire { color: var(--fire); } .t-earth { color: var(--earth); }
.avatar { width: 34px; height: 34px; font-size: 15px; }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--surface-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 12px; z-index: 50; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .12em; }
.side .logo img { width: 30px; height: 30px; }
.side .close { display: none; margin-left: auto; }
.nav { display: grid; gap: 4px; }
.nav a, .nav span { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); }
.nav a:hover { background: rgba(0,0,0,.035); }
.nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.nav span.soon { color: var(--muted); cursor: default; }
.nav span.soon small { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--line); }
.side h4 { font-size: 12px; color: var(--muted); font-weight: 500; padding: 18px 12px 6px; }
.recent { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.recent a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent a:hover { background: rgba(0,0,0,.035); }
.recent .none { padding: 8px 12px; color: var(--muted); font-size: 13px; }
.me { border-top: 1px solid var(--line); padding-top: 10px; position: relative; }
.me > button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px; border-radius: 12px; text-align: left; }
.me > button:hover { background: rgba(0,0,0,.035); }
.me .who { flex: 1; min-width: 0; line-height: 1.35; }
.me .who b { display: block; font-weight: 600; }
.me .who small { color: var(--muted); font-size: 12px; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 6px; display: grid; gap: 2px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu .cur { font-weight: 600; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.scrim { position: fixed; inset: 0; background: rgba(20,20,18,.32); z-index: 49; }
.main { margin-left: var(--side); min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 17px; flex: 1; }
.top .menu-btn { display: none; }
.top .chip-me { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.content { max-width: 860px; margin: 0 auto; padding: 24px 24px 120px; }
.floaters { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 25; display: flex; gap: 10px; }
.floaters .round-btn { width: 56px; height: 56px; background: var(--ink); color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-pad { padding: 22px 24px; }
.notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.notice.error { background: #fbeee9; color: var(--danger); }

/* chart card */
.fold-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 24px; border: 0; background: none; text-align: left; border-radius: var(--r-lg); }
.fold-head .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; }
.fold-head .tt { flex: 1; min-width: 0; }
.fold-head .tt b { display: block; font-size: 16px; font-weight: 600; }
.fold-head .tt small { color: var(--muted); font-size: 13px; }
.fold-head .chev { color: var(--muted); transition: transform .2s; }
.fold.open > .fold-head .chev { transform: rotate(180deg); }
.fold-body { padding: 0 24px 24px; }
.person-line { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.person-line h2 { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.person-line h2 .sex { font-size: 18px; color: var(--water); margin-left: 4px; }
.person-line .place { color: var(--ink-2); flex: 1; }
.grid-chart { width: 100%; border-collapse: collapse; text-align: center; }
.grid-chart th { font-weight: 600; padding: 10px 4px; font-size: 14px; }
.grid-chart td { padding: 12px 4px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.grid-chart .rh { text-align: left; color: var(--ink-2); width: 64px; font-size: 14px; }
.grid-chart .sub { font-size: 12px; color: var(--muted); display: block; }
.grid-chart .god { font-weight: 600; }
.grid-chart .day .god { color: var(--accent); }
.grid-chart .hid { line-height: 1.8; font-size: 13px; }
.elements { display: grid; gap: 10px; margin-top: 4px; }
.el-row { display: grid; grid-template-columns: 24px 1fr 28px; gap: 12px; align-items: center; font-size: 14px; }
.el-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.el-fill { height: 100%; border-radius: 4px; }
.el-fill.metal { background: var(--metal); } .el-fill.wood { background: var(--wood); } .el-fill.water { background: var(--water); } .el-fill.fire { background: var(--fire); } .el-fill.earth { background: var(--earth); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.split > div { min-width: 0; }
.split h3 { font-size: 15px; margin-bottom: 12px; }
.yun { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0; list-style: none; }
.yun li { flex: 0 0 auto; width: 70px; text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); font-size: 12px; color: var(--muted); line-height: 1.5; }
.yun li b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.yun li.now { background: var(--ink); color: rgba(255,255,255,.75); }
.yun li.now b { color: #fff; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.6; }

/* chapters */
.chapter { scroll-margin-top: 76px; }
.chapter .fold-body { border-top: 1px solid var(--line); padding-top: 18px; }
.lead { font-family: var(--serif); font-size: 18px; line-height: 1.6; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.prose p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.85; }
.prose em { color: var(--muted); font-style: normal; font-size: 13px; }
.prose h4 { margin: 16px 0 8px; font-size: 15px; }
.ask-row { display: flex; gap: 8px; margin-top: 6px; }
.state { text-align: center; padding: 48px 24px; }
.state h2 { font-size: 20px; margin-bottom: 8px; }
.state p { color: var(--ink-2); margin-bottom: 20px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); padding: 28px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding: 16px 4px 0; }

/* ---------- focused pages (landing / form) ---------- */
.solo { min-height: 100vh; display: flex; flex-direction: column; }
.solo-top { display: flex; align-items: center; justify-content: space-between; padding: 28px 40px; }
.solo-top .logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .12em; }
.solo-top .logo img { width: 34px; height: 34px; }
.solo-main { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 32px 20px 56px; }
.solo-main.wide { max-width: 980px; }
.solo-main h1 { font-size: 32px; font-weight: 700; letter-spacing: .02em; }
.solo-main .sub { color: var(--ink-2); margin: 8px 0 28px; font-size: 16px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); line-height: 1.2; }
.hero .sub { font-size: 17px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { aspect-ratio: 1; max-width: 400px; justify-self: center; width: 100%; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-row .card h3 { font-size: 16px; margin: 10px 0 6px; }
.feature-row .card p { color: var(--ink-2); font-size: 14px; }
.feature-row .card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.nots { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.nots ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.nots li::before { content: "—  "; color: var(--accent); }
.support { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.support b { color: var(--ink); white-space: nowrap; }
.legal { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 32px; }

/* form */
.form { display: grid; gap: 16px; }
.input, .seg-wrap { width: 100%; min-height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(20,20,18,.04), inset 0 -1px 0 rgba(20,20,18,.02); }
.input:focus { outline: none; border-color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; padding-left: 4px; }
.hint { color: var(--muted); font-size: 12.5px; padding-left: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.seg label { display: grid; place-items: center; min-height: 42px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.switch input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.switch b { display: block; font-weight: 600; font-size: 14px; }
.switch span { color: var(--muted); font-size: 12.5px; }
.place-box { position: relative; }
.place-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); max-height: 300px; overflow: auto; }
.place-list button { width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; }
.place-list button:hover, .place-list button:focus { background: var(--surface-2); }
.place-list small { color: var(--muted); margin-left: 8px; }
.picked { color: var(--ok); }
.form-error { color: var(--danger); background: #fbeee9; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* ---------- chat drawer ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(20,20,18,.28); z-index: 60; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--bg); display: flex; flex-direction: column; box-shadow: -16px 0 40px rgba(20,20,18,.14); }
.drawer header { display: flex; align-items: center; gap: 8px; padding: 14px 12px 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer header .who { flex: 1; min-width: 0; }
.drawer header h2 { font-size: 16px; }
.drawer header p { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer .msgs { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 14px; align-content: start; }
.msg { max-width: 90%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg h4 { margin: 4px 0 6px; font-size: 15px; }
.msg.user { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.assistant { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.pending:empty::after { content: "正在整理回答…"; color: var(--muted); }
.welcome { display: grid; gap: 10px; padding-top: 8px; }
.welcome h3 { font-size: 20px; font-family: var(--serif); }
.welcome p { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.chip { justify-self: start; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; text-align: left; box-shadow: var(--shadow); }
.chip:hover { border-color: var(--ink-2); }
.drawer footer { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 8px 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.composer textarea { flex: 1; resize: none; border: 0; outline: none; background: none; min-height: 28px; max-height: 160px; padding: 6px 0; line-height: 1.55; }
.send { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.send[disabled] { opacity: .35; cursor: not-allowed; }
.drawer .err { color: var(--danger); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drawer .fine { color: var(--muted); font-size: 12px; text-align: center; }
.drawer .fine button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lift); }
  .side.open { transform: none; }
  .side .close { display: inline-grid; }
  .main { margin-left: 0; }
  .top .menu-btn { display: inline-grid; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 280px; order: -1; }
  .feature-row, .nots { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .content { padding: 16px 16px 120px; }
  .floaters { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .fold-head { padding: 18px 16px; }
  .fold-body { padding: 0 16px 20px; }
  .person-line h2 { font-size: 26px; }
  .seal { width: 34px; height: 34px; font-size: 17px; }
  .grid-chart .rh { width: 40px; font-size: 13px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .solo-top { padding: 20px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .top { padding: 0 12px; }
}

/* ---------- fortune / lists ---------- */
.muted { color: var(--muted); }
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; margin-bottom: 16px; }
.seg-tabs a { padding: 8px 22px; border-radius: 10px; color: var(--ink-2); }
.seg-tabs a[aria-selected=true] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.day-strip a { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; color: var(--ink-2); }
.day-strip a small { font-size: 12px; color: var(--muted); }
.day-strip a b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; }
.day-strip a.on b { background: var(--ink); color: #fff; }
.day-strip a:hover b { background: var(--surface-2); }
.day-strip a.on:hover b { background: var(--ink); }
.pillar-hero { text-align: center; padding: 24px 0 8px; }
.pillar-hero .seals { display: inline-flex; gap: 12px; margin-bottom: 10px; }
.seal.big { width: 64px; height: 64px; font-size: 32px; }
.relations { display: grid; gap: 12px; margin: 18px 0 4px; }
.relations > div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.relations b { font-weight: 600; }
.relations p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.sign { margin: 18px 0 12px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); min-height: 56px; }
h3.sec { font-size: 15px; margin: 22px 0 12px; }
.yun li a { display: block; color: inherit; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.row-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.card.row-card + .card.row-card { margin-top: 10px; }
.row-card .grow { flex: 1; min-width: 0; }
.row-card .grow b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.row-card .grow small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.ic-soft { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
@media (max-width: 600px) {
  .seg-tabs { display: flex; }
  .seg-tabs a { flex: 1; text-align: center; padding: 8px 0; }
  .row-card { flex-wrap: wrap; }
  .row-card .grow { flex-basis: calc(100% - 60px); }
}

/* ---------- divination ---------- */
.cast { display: flex; gap: 28px; align-items: flex-start; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.gua { display: grid; gap: 9px; width: 120px; flex: none; padding: 6px 0; }
.yao { position: relative; display: flex; gap: 14px; height: 12px; }
.yao i { flex: 1; background: var(--ink); border-radius: 3px; }
.yao.yang i + i { display: none; }
.yao.yang i { flex: 1; }
.yao.moving i { background: var(--accent); }
.yao span { position: absolute; right: -22px; top: -5px; font-size: 13px; color: var(--accent); }
.cast-info { flex: 1; min-width: 0; }
.cast-info h2 { font-family: var(--serif); font-size: 26px; }
.cast-info h2 small { font-size: 16px; color: var(--muted); }
.texts { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); font-family: var(--serif); }
.texts p { margin: 4px 0; line-height: 1.7; }
.texts p.muted { font-family: var(--sans); font-size: 13px; }
.reading { margin-top: 18px; }
#divine textarea { flex: 1; resize: none; border: 0; outline: none; background: none; padding: 6px 0; line-height: 1.55; }
@media (max-width: 600px) { .cast { flex-direction: column; align-items: center; } .cast-info { width: 100%; } }

/* annual report */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.area { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.area small { color: var(--accent); font-size: 12px; }
.area b { display: block; margin: 2px 0 6px; }
.area p { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
details.month { border-top: 1px solid var(--line); padding: 10px 0; }
details.month summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
details.month summary::-webkit-details-marker { display: none; }
details.month .prose { margin-top: 8px; }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } }
.rel-line { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; }
.rel-line b { margin-right: 4px; }
.rel-line span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.rel-line .note { flex-basis: 100%; margin-top: 4px; }

/* privacy policy / terms */
.solo-main.doc { max-width: 720px; }
.legal a, .check a, .legal-doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc h2 { font-size: 18px; margin: 28px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); line-height: 1.85; font-size: 15px; }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 10px; padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; cursor: pointer; padding-left: 4px; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.turnstile { min-height: 0; display: flex; justify-content: center; }
.support-reply { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); }
.support-reply p { color: var(--ink); }

/* membership */
.member-now { font-size: 18px; font-weight: 600; margin: 4px 0 14px; }
.meters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.meter-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.redeem { display: flex; gap: 10px; }
.redeem .input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.tiers { margin: 16px 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier h3 { margin: 0 0 10px; }
.tier ul { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.9; }
.tier.on { border: 1.5px solid var(--ink); }
.prices { margin-top: 14px; display: grid; gap: 8px; border-top: 1px solid var(--accent-soft); padding-top: 12px; }
.prices div { display: flex; justify-content: space-between; }

/* onboarding */
.small { font-size: 13px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.hero-note a, .free-offer a, #div-left a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.free-offer { margin-top: 24px; display: grid; gap: 12px; }
.free-offer h3 { margin: 0; }
.free-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.free-offer li { padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.free-offer li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.steps { margin-top: 28px; }
.steps ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.steps li b { display: block; color: var(--ink); font-size: 15px; }
.chapters-preview { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters-preview span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.stepper { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.stepper li { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); }
.stepper li.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.stepper li.done { border-color: var(--accent); }
details.tip { font-size: 13.5px; color: var(--ink-2); padding-left: 4px; }
details.tip summary { cursor: pointer; color: var(--ink); }
details.tip p { margin: 8px 0 0; line-height: 1.7; }
.writing .loading { justify-content: flex-start; padding: 0 0 12px; }
.writing .bar { margin-bottom: 10px; }
.writing .bar i { transition: width 1s linear; }
.writing .toc { margin: 14px 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; font-size: 13.5px; }
.writing .toc small { margin-left: 8px; color: var(--muted); opacity: .8; }
.tip-card { margin-bottom: 16px; background: var(--accent-soft); border-color: transparent; }
.tip-card h3 { margin: 0 0 8px; }
.tip-card ol { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); line-height: 1.8; font-size: 14px; }
.drawer .fine .left { color: var(--ink); font-weight: 600; }
.steps + .feature-row { margin-top: 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; max-width: calc(100vw - 32px); }
.feedback { display: flex; gap: 10px; align-items: center; margin: 12px 8px 10px; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 14px; text-decoration: none; }
.feedback small { display: block; color: var(--muted); font-size: 12px; }
#redeem-msg ~ p a, .card p.muted a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
