/* Design CSS adapted from 의식의거울_시제품_v3.5.html; no sample data. */

/* Layout: one phone-width app shell (sticky top bar, scrolling main, fixed bottom tabs, bottom sheets). White ground, pastel tints per mirror, one vivid "mirror light" gradient for the single primary action per screen. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F6F4FA; --soft2: #FAF8FD;
  --ink: #1C1B29; --muted: #5E5B70; --faint: #6E687F; --line: #ECE9F3; --line2: #D9D5E6;
  --good: #2457D6; --good-bg: #E6F1FF; --care: #B8326B; --care-bg: #FFE8F1; --try: #0B7A5F; --try-bg: #E3F7F0;
  --t-saju: #FFEDE3; --i-saju: #B4501C; --d-saju: #F07A3A;
  --t-ziwei: #EFE9FF; --i-ziwei: #6345E0; --d-ziwei: #7C5CFA;
  --t-western: #E6F1FF; --i-western: #2457D6; --d-western: #3B82F6;
  --t-tarot: #FFE8F1; --i-tarot: #B8326B; --d-tarot: #E8508A;
  --t-iching: #E3F7F0; --i-iching: #0B7A5F; --d-iching: #10A37F;
  --t-liuyao: #FFF4D6; --i-liuyao: #8A5B00; --d-liuyao: #E0A100;
  --glow1: #FFE3D8; --glow2: #EDE4FF; --glow3: #DDF4EE;
  --c1: #FFA4C9; --c2: #FF74AC; --c3: #FF74AC; /* 4부 이제, 연: 분홍 하나(산호·보라 빼고) */
  --grad: linear-gradient(110deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  --shadow: 0 18px 40px rgba(28,27,41,0.08); --shadow-btn: 0 12px 26px rgba(139,92,246,0.25);
  --display: 'Gowun Batang', Georgia, serif;
  --body: 'Pretendard', 'Apple SD Gothic Neo', system-ui, -apple-system, sans-serif;
  --fs: 16px; --r: 22px; --nav-h: 64px;
}
:root[data-light="dawn"] { --c1: #EC5C9A; --c2: #9B6BF2; --c3: #3B82F6; --shadow-btn: 0 12px 26px rgba(59,130,246,0.25); }
:root[data-light="spring"] { --c1: #F2666E; --c2: #E25C9E; --c3: #14A37F; --shadow-btn: 0 12px 26px rgba(20,163,127,0.25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141217; --surface: #1D1A21; --soft: #26222B; --soft2: #1F1C24; --ink: #F6F2F5; --muted: #B5ACB6; --faint: #8F8792; --line: #2E2A33; --line2: #3A3540;
  --good: #8FB4FF; --good-bg: #1B2B4F; --care: #FF8FBA; --care-bg: #47203A; --try: #6FD9B9; --try-bg: #163B33;
  --t-saju: #3A2418; --i-saju: #FFB38A; --t-ziwei: #2A2347; --i-ziwei: #C4B0FF; --t-western: #1B2B4F; --i-western: #9DC0FF;
  --t-tarot: #42203A; --i-tarot: #FFA3C8; --t-iching: #163B33; --i-iching: #7FE0C2; --t-liuyao: #3D3010; --i-liuyao: #FFD56A;
  --glow1: #4A2A3D; --glow2: #322C52; --glow3: #3F3028; --shadow: 0 16px 40px rgba(0,0,0,.5); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #141217; --surface: #1D1A21; --soft: #26222B; --soft2: #1F1C24; --ink: #F6F2F5; --muted: #B5ACB6; --faint: #8F8792; --line: #2E2A33; --line2: #3A3540;
  --good: #8FB4FF; --good-bg: #1B2B4F; --care: #FF8FBA; --care-bg: #47203A; --try: #6FD9B9; --try-bg: #163B33;
  --t-saju: #3A2418; --i-saju: #FFB38A; --t-ziwei: #2A2347; --i-ziwei: #C4B0FF; --t-western: #1B2B4F; --i-western: #9DC0FF;
  --t-tarot: #42203A; --i-tarot: #FFA3C8; --t-iching: #163B33; --i-iching: #7FE0C2; --t-liuyao: #3D3010; --i-liuyao: #FFD56A;
  --glow1: #4A2A3D; --glow2: #322C52; --glow3: #3F3028; --shadow: 0 16px 40px rgba(0,0,0,.5); color-scheme: dark; }
:root[data-fs="large"] { --fs: 18px; }
* { box-sizing: border-box; }
html { height: 100%; font-size: var(--fs); }
body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--fs); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--c3); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.app { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow-x: clip; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05em; letter-spacing: -0.01em; background: none; border: 0; padding: 6px 4px; }
.brand-mark { width: 30px; height: 20px; }
.topbar-actions { display: flex; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
main { flex: 1; padding-block: 4px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.view { display: flex; flex-direction: column; gap: 16px; animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; justify-content: center; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.nav-inner { width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--nav-h); }
.nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 0.78rem; font-weight: 700; color: var(--faint); padding: 0; }
.nav button svg { width: 22px; height: 22px; }
.nav button[aria-current="page"] { color: var(--ink); }
.nav button[aria-current="page"] .nav-ic { background: var(--soft); }
.nav-ic { width: 44px; height: 30px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.nav button[aria-current="page"] .nav-ic svg { stroke: url(#gradStroke); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.812rem; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chip[aria-pressed="true"], .chip.on { border-color: var(--c3); background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; }
.tag.good { background: var(--good-bg); color: var(--good); } .tag.care { background: var(--care-bg); color: var(--care); } .tag.try { background: var(--try-bg); color: var(--try); }
.tag.sys { color: var(--sys-ink); background: var(--sys-tint); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.soft { background: var(--soft2); border-color: transparent; }
.card.tint { background: var(--sys-tint); border-color: transparent; }
.card h2 { font-size: 1.35em; line-height: 1.35; }
.card h3 { font-size: 1.1em; line-height: 1.4; }
.lead { font-family: var(--display); font-size: 1.75em; line-height: 1.35; letter-spacing: -0.02em; }
.muted { color: var(--muted); font-size: 0.9em; }
.small { font-size: 0.8em; color: var(--faint); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 1em; text-decoration: none; transition: transform .15s ease; }
.btn:active { transform: scale(.97); }
.btn.primary { border: 0; background: var(--grad); color: #FFFFFF; box-shadow: var(--shadow-btn); min-height: 54px; font-size: 1.1em; }
.btn.ghost { border-color: transparent; background: var(--soft); }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 0.88em; }
.btn.full { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.text-btn { background: none; border: 0; padding: 8px 0; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 0.92em; }
.text-btn svg { width: 16px; height: 16px; }
.eyebrow { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.02em; color: var(--muted); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--soft); font-size: 0.85em; color: var(--muted); }
.banner strong { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps div { display: flex; flex-direction: column; gap: 6px; font-size: 0.719rem; color: var(--faint); }
.steps span { height: 4px; border-radius: 4px; background: var(--line); }
.steps div.on { color: var(--ink); font-weight: 700; } .steps div.on span { background: var(--grad); } .steps div.done span { background: var(--line2); }
/* hero mirror */
.hero { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px 2px; }
.hero-glow { position: absolute; inset: -40px -20px; z-index: -1; background: radial-gradient(circle at 20% 40%, var(--glow1) 0%, transparent 55%), radial-gradient(circle at 70% 30%, var(--glow2) 0%, transparent 55%), radial-gradient(circle at 50% 90%, var(--glow3) 0%, transparent 55%); pointer-events: none; }
.mirror { width: 112px; height: 112px; position: relative; animation: floaty 6s ease-in-out infinite; }
.mirror-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 16px 34px rgba(124,92,250,0.22), 0 0 0 5px color-mix(in srgb, var(--surface) 90%, transparent), 0 0 0 6px var(--line); }
.mirror-iri { position: absolute; inset: -30%; background: conic-gradient(from 0deg, #FFC2D4, #D9C8FF, #BFE4FF, #C6F3E3, #FFE9B8, #FFC9B5, #FFC2D4); animation: spin 14s linear infinite; }
.mirror-light { position: absolute; inset: 0; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.45) 26%, rgba(255,255,255,0) 58%); }
.mirror-sheen { position: absolute; top: -20%; left: 0; width: 40%; height: 140%; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%); animation: sheen 4.8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0% { transform: translateX(-140%) rotate(20deg); } 55%, 100% { transform: translateX(140%) rotate(20deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ch { display: inline-block; opacity: 0; animation: charIn .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes charIn { from { opacity: 0; transform: translateY(.4em); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.path { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 12px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 96px; }
.path strong { font-size: 0.95em; }
.path span { font-size: 0.78em; color: var(--muted); line-height: 1.4; }
.path svg { width: 22px; height: 22px; }
.sys-card { border: 1px solid transparent; border-radius: 20px; padding: 14px; background: var(--sys-tint); display: flex; flex-direction: column; gap: 6px; text-align: left; min-height: 150px; color: var(--ink); }
.sys-card .name { font-size: 0.812rem; font-weight: 900; color: var(--sys-ink); display: flex; align-items: center; gap: 6px; }
.sys-card .head { font-weight: 900; font-size: 1.02em; line-height: 1.35; margin-top: 2px; }
.sys-card .sub { font-size: 0.85em; color: var(--muted); line-height: 1.45; }
.sys-card .more { margin-top: auto; font-size: 0.75rem; font-weight: 700; color: var(--sys-ink); }
.sys-card.undrawn { border: 1.5px dashed var(--line2); background: var(--soft2); }
.ic { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--sys-ink); color: #FFFFFF; flex-shrink: 0; }
.ic svg { width: 16px; height: 16px; }
.q-list { display: flex; flex-direction: column; gap: 8px; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 700; }
.q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--faint); }
details.fold { border-top: 1px solid var(--line); padding-top: 4px; }
details.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 700; font-size: 0.95em; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details.fold[open] summary::after { transform: rotate(225deg); }
.basis { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--soft2); font-size: 0.92em; animation: rise .3s ease-out; }
.basis div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.basis b { color: var(--muted); font-size: 0.85em; font-weight: 900; padding-top: 2px; }
.point { display: flex; gap: 10px; align-items: flex-start; }
.point .tag { flex-shrink: 0; margin-top: 2px; }
.lock-box { position: relative; padding: 12px; border-radius: 14px; background: var(--soft2); }
.lock-box .list { display: flex; flex-direction: column; gap: 4px; font-size: 0.92em; }
.lock-box .list span::before { content: "+ "; color: var(--c3); font-weight: 900; }
.price { font-weight: 900; text-align: center; }
/* overlap */
.pair-stage { position: relative; height: 196px; }
.disc { position: absolute; top: 34px; width: 130px; height: 130px; border-radius: 50%; mix-blend-mode: multiply; transition: left .5s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 14px 30px rgba(28,27,41,0.08); }
:root[data-theme="dark"] .disc { mix-blend-mode: screen; opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .disc { mix-blend-mode: screen; opacity: .85; } }
.disc-label { position: absolute; top: 84px; width: 90px; text-align: center; font-size: 0.875rem; font-weight: 900; line-height: 1.3; transition: left .5s cubic-bezier(.34,1.56,.64,1); }
.shared-pill { position: absolute; top: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line2); box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; font-size: 0.812rem; font-weight: 700; animation: pop .4s cubic-bezier(.34,1.56,.64,1) both; }
.shared-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.85); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.cmp-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 16px; background: var(--sys-tint); }
.cmp-row b { flex-shrink: 0; width: 64px; font-size: 0.844rem; color: var(--sys-ink); font-weight: 900; padding-top: 2px; }
.cmp-row p { font-size: 0.95em; line-height: 1.5; }
/* time */
.road { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.road::-webkit-scrollbar { display: none; }
.road button { flex: 0 0 132px; scroll-snap-align: center; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 110px; transition: transform .25s ease; }
.road button .age { font-size: 0.75rem; font-weight: 900; color: var(--muted); }
.road button .yr { font-size: 0.719rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.road button .gz { font-family: var(--display); font-size: 1.05em; font-weight: 700; }
.road button .flow { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.road button.now { border-color: var(--c2); background: var(--t-tarot); }
.road button[aria-pressed="true"] { border-color: var(--c3); box-shadow: 0 10px 24px rgba(139,92,246,0.18); transform: translateY(-3px); }
.road button .mark { display: inline-flex; align-items: center; gap: 4px; font-size: 0.688rem; font-weight: 900; color: var(--c2); }
.seg { display: inline-flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 10px; min-height: 36px; padding: 0 14px; font-weight: 700; font-size: 0.9em; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(28,27,41,0.08); }
.year { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95em; }
.year b { font-size: 0.86em; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.year.lock { color: var(--faint); }
input[type="range"] { width: 100%; height: 36px; margin: 0; accent-color: var(--c3); }
/* draw */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.tcard { aspect-ratio: 2 / 3.1; border-radius: 14px; position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tcard.flip { transform: rotateY(180deg); }
.tcard .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; }
.tcard .back { background: repeating-linear-gradient(45deg, var(--t-tarot) 0 6px, var(--surface) 6px 12px); border: 1.5px solid var(--d-tarot); }
.tcard .front { transform: rotateY(180deg); background: var(--surface); border: 1.5px solid var(--line2); }
.tcard .front.rev .num { transform: rotate(180deg); display: inline-block; }
.tcard .num { font-family: var(--display); font-size: 1.3em; font-weight: 700; }
.tcard .nm { font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.tcard .ori { font-size: 0.656rem; color: var(--faint); }
.hex { display: flex; flex-direction: column-reverse; gap: 7px; width: 120px; }
.hline { height: 12px; display: flex; gap: 10px; }
.hline span { flex: 1; border-radius: 4px; background: var(--ink); }
.hline.yin span:nth-child(1) { margin-right: 0; }
.hline.moving span { background: var(--grad); }
.hline.empty span { background: var(--line); }
.coins { display: flex; gap: 8px; }
.coin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--d-liuyao); background: var(--t-liuyao); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.812rem; color: var(--i-liuyao); animation: pop2 .4s ease-out both; }
@keyframes pop2 { from { transform: scale(.6) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.throws { display: flex; flex-direction: column-reverse; gap: 6px; font-size: 0.9em; }
.throws div { display: grid; grid-template-columns: 44px minmax(0, 1fr) 60px; gap: 8px; align-items: center; }
textarea, input[type="text"], input[type="date"], input[type="time"], select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 0.88em; font-weight: 700; color: var(--muted); }
/* notes */
.note { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.note .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: var(--faint); }
.note q { quotes: none; font-family: var(--display); font-size: 1.05em; }
.note .memo { background: var(--soft2); border-radius: 10px; padding: 8px 10px; font-size: 0.9em; white-space: pre-wrap; }
.react { display: flex; flex-wrap: wrap; gap: 6px; }
.react button { min-height: 36px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 0.85em; font-weight: 700; }
.react button[aria-pressed="true"] { border-color: var(--c3); background: var(--soft); }
/* chart: ziwei palace grid */
.ming { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 4px; aspect-ratio: 1; max-width: 100%; }
.ming button, .ming .center { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 4px 5px; font-size: 0.656rem; line-height: 1.25; display: flex; flex-direction: column; gap: 1px; text-align: left; overflow: hidden; min-width: 0; color: var(--ink); }
.ming button .pn { font-weight: 900; font-size: 0.688rem; }
.ming button .st { font-weight: 700; }
.ming button .br { color: var(--faint); font-size: 0.625rem; margin-top: auto; }
.ming button .ax { font-size: 0.625rem; }
.ming button .ax.good { color: var(--good); } .ming button .ax.care { color: var(--care); }
.ming button[aria-pressed="true"] { border: 2px solid var(--c2); background: var(--t-tarot); }
.ming button.tri { border: 2px solid var(--c3); background: var(--soft); }
.ming button.opp { border: 2px dashed var(--c3); }
.ming button.now::after { content: "지금"; position: absolute; right: 4px; top: 3px; font-size: 0.562rem; font-weight: 900; color: var(--c2); }
.ming button { position: relative; z-index: 2; }
.ming .center { grid-column: 2 / 4; grid-row: 2 / 4; background: var(--soft2); align-items: center; justify-content: center; text-align: center; font-size: 0.719rem; gap: 4px; }
.ming svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ming svg.lines line, .ming svg.lines polygon { stroke: var(--c2); stroke-width: 1.5; vector-effect: non-scaling-stroke; fill: none; opacity: .75; }
.ming svg.lines polygon { fill: color-mix(in srgb, var(--c2) 5%, transparent); }
.ming svg.lines line.opp { stroke-dasharray: 4 4; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.75rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--ink); }
.legend span.g::before { background: var(--good); } .legend span.c::before { background: var(--care); } .legend span.t::before { background: var(--c2); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.pillars div { border-radius: 12px; background: var(--soft2); padding: 8px 4px; display: flex; flex-direction: column; gap: 3px; }
.pillars .pl { font-size: 0.688rem; font-weight: 900; color: var(--muted); }
.pillars .hz { font-family: var(--display); font-size: 1.5em; font-weight: 700; line-height: 1.1; }
.pillars .ko { font-size: 0.719rem; }
.pillars .ss { font-size: 0.688rem; font-weight: 700; color: var(--i-saju); }
.pillars div.me .hz { color: var(--c2); }
/* sheet */
.sheet-root { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(20,19,32,0.45); backdrop-filter: blur(3px); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 92%; background: var(--bg); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: up .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,0.2); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); }
.sheet-top h2 { font-size: 1.15em; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.sheet-top h2 > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--c3); }
.sheet-body { overflow-y: auto; padding-block: 16px calc(24px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 0.9em; font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s; z-index: 30; pointer-events: none; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.term { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.term b { font-size: 0.95em; } .term span { font-size: 0.9em; color: var(--muted); }
.sharecard { width: 100%; border-radius: 18px; border: 1px solid var(--line); display: block; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); }
.toggle button { width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--line2); position: relative; padding: 0; }
.toggle button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.toggle button[aria-checked="true"] { background: var(--c3); } .toggle button[aria-checked="true"]::after { left: 23px; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line2); padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.prose { display: flex; flex-direction: column; gap: 8px; font-size: 0.95em; line-height: 1.6; }
.hint { font-size: 0.85em; color: var(--muted); padding: 8px 12px; border-radius: 12px; background: var(--soft2); }
.ex-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; background: var(--soft); color: var(--muted); }
@media (max-width: 360px) { .path-grid, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: 96px minmax(0, 1fr); } .mirror { width: 96px; height: 96px; } .lead { font-size: 1.5em; } .road button { flex-basis: 120px; } }
@media (prefers-reduced-motion: reduce) { .mirror, .mirror-iri, .mirror-sheen, .ch, .view, .disc, .disc-label, .shared-pill, .tcard, .coin, .road button, .basis { animation: none !important; transition: none !important; opacity: 1; } }
:root[data-motion="off"] .mirror, :root[data-motion="off"] .mirror-iri, :root[data-motion="off"] .mirror-sheen, :root[data-motion="off"] .ch, :root[data-motion="off"] .view, :root[data-motion="off"] .disc, :root[data-motion="off"] .disc-label, :root[data-motion="off"] .shared-pill, :root[data-motion="off"] .tcard, :root[data-motion="off"] .coin, :root[data-motion="off"] .road button, :root[data-motion="off"] .basis { animation: none !important; transition: none !important; opacity: 1; }
/* v3.2: 글씨는 rem(설정의 ‘글씨 크게’를 따라감) · 세 단어 · 문장↔그림 · 회차 · 되돌아보기 · 궁합 · 별자리 동물 */
/* 상태 말투: 선택됨(분홍 굵은 테두리+채움) · 관련됨(보라 실선) · 맞은편(보라 점선) · 바뀜(한 번 빛남). 색만으로 구분하지 않고 굵기·선 모양을 함께 쓴다 */
.is-chg { animation: chg 1.1s ease-out; }
@keyframes chg { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c3) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.trio { display: flex; flex-direction: column; gap: 2px; font-size: 1.6em; line-height: 1.3; }
.trio .w { display: flex; align-items: center; gap: 8px; }
.trio .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bdg { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: .68rem; font-weight: 900; letter-spacing: .01em; vertical-align: 1px; white-space: nowrap; }
.bdg-engine { background: var(--try-bg); color: var(--try); }
.bdg-rule { background: var(--t-liuyao); color: var(--i-liuyao); }
.bdg-off { background: var(--soft); color: var(--faint); border: 1px dashed var(--line2); }
/* v3.3: 근거 종류 표시 — 통설 · 설계 가설 · 원전 · 시제품 문장 */
.bdg-trad { background: var(--t-iching); color: var(--i-iching); }
.bdg-hyp { background: var(--surface); color: var(--care); border: 1.5px dashed var(--care); }
.bdg-src { background: var(--t-ziwei); color: var(--i-ziwei); }
.bdg-draft { background: var(--soft); color: var(--muted); border: 1px solid var(--line2); }
.q-row .q-chip { height: 38px; font-size: .86rem; }
.teaser { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 112px; }
.teaser b { font-size: 1em; line-height: 1.35; }
.teaser .t-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--c3); }
.teaser .t-ic svg { width: 18px; height: 18px; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg.wide button { min-height: 42px; }
.option { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border-radius: 20px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); min-height: 132px; }
.option b { font-size: 1.05em; }
.option.hot { border: 0; background: var(--grad); color: #FFFFFF; box-shadow: var(--shadow-btn); }
.option.hot .small { color: rgba(255,255,255,.9); }
details.pt > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 4px; margin: -4px; transition: background .2s; }
details.pt > summary::-webkit-details-marker { display: none; }
details.pt > summary .tag { flex-shrink: 0; margin-top: 2px; }
details.pt > summary .pt-t { flex: 1; min-width: 0; }
details.pt > summary .why-hint { flex-shrink: 0; font-size: .72rem; font-weight: 700; color: var(--faint); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
details.pt[open] > summary .why-hint { color: var(--c3); border-color: var(--c3); }
details.pt.is-linked > summary { background: color-mix(in srgb, var(--c2) 9%, transparent); box-shadow: inset 3px 0 0 var(--c2); }
details.pt .basis { margin-top: 8px; }
.chart-slot { border-radius: 18px; }
.chart-slot.flash { animation: chg .9s ease-out; }
.chart-cap { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-top: 8px; }
/* 사주 원국(작게) */
.pm { display: flex; flex-direction: column; gap: 8px; }
.pm-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pm-col { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; }
.pm-pl { font-size: .7rem; font-weight: 900; color: var(--muted); }
.pm-c { position: relative; z-index: 2; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pm-c b { font-family: var(--display); font-size: 1.6em; line-height: 1.05; color: color-mix(in srgb, var(--el) 40%, var(--ink)); }
.pm-c small { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.pm-c.is-sel { border: 2.5px solid var(--c2); background: var(--t-tarot); transform: translateY(-2px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 18%, transparent), 0 10px 22px color-mix(in srgb, var(--el) 30%, transparent); }
.pm-c.is-rel { border: 2px solid var(--c3); background: var(--soft); box-shadow: 0 0 18px color-mix(in srgb, var(--el) 35%, transparent); }
.pm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.pm-lines path { fill: none; stroke: var(--c3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s ease-out forwards; opacity: .55; }
.pm-lines circle { fill: var(--c3); opacity: .35; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pm-els { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-e { height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .8rem; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.pm-e::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--el); }
.pm-e.is-empty { border-style: dashed; color: var(--faint); }
.pm-e.is-sel { border: 2px solid var(--c2); background: var(--t-tarot); color: var(--ink); }
.pm-e.is-sel.is-empty { animation: chg 1.1s ease-out 2; }
/* 자미 명반(작게) */
.mm-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 4px; aspect-ratio: 1.25; }
.mm-c { position: relative; z-index: 2; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 4px; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: center; min-width: 0; overflow: hidden; color: var(--ink); }
.mm-c b { font-size: .72rem; }
.mm-c small { font-size: .62rem; color: var(--muted); line-height: 1.2; }
.mm-c.is-sel { border: 2.5px solid var(--c2); background: var(--t-tarot); }
.mm-c.is-rel { border: 2px solid var(--c3); background: var(--soft); }
.mm-c.is-opp { border: 2px dashed var(--c3); }
.mm-center { grid-column: 2 / 4; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: var(--soft2); }
.mm-center b { position: relative; z-index: 3; font-family: var(--display); font-size: 1.15em; }
.mm-center span, .mm-center small { position: relative; z-index: 3; font-size: .72rem; color: var(--muted); }
.mm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.mm-lines polygon, .mm-lines line { fill: none; stroke: var(--c2); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s ease-out forwards; }
.mm-lines line.opp { stroke-dasharray: 4 4; stroke-dashoffset: 0; animation: none; }
/* 서양 휠 */
.wm { display: flex; flex-direction: column; align-items: center; }
.wm-svg { width: min(100%, 300px); height: auto; }
.wm-svg .wh path { fill: var(--surface); stroke: var(--line2); stroke-width: 1; cursor: pointer; transition: fill .2s; }
.wm-svg .wh text { font-size: 0.6875rem; font-weight: 700; fill: var(--muted); pointer-events: none; }
.wm-svg .wh.is-sel path { fill: var(--t-tarot); stroke: var(--c2); stroke-width: 2.5; }
.wm-svg .wm-in { fill: var(--soft2); stroke: var(--line); }
.wm-svg .wb circle { fill: var(--t-western); stroke: var(--d-western); stroke-width: 1.5; cursor: pointer; }
.wm-svg .wb text { font-size: 0.9375rem; fill: var(--i-western); pointer-events: none; }
.wm-svg .wb.is-sel circle { fill: var(--d-western); stroke: var(--c2); stroke-width: 3; }
.wm-svg .wb.is-sel text { fill: #FFFFFF; }
.wm-svg .wa line { stroke: var(--c3); stroke-width: 2; cursor: pointer; }
.wm-svg .wa text { font-size: 0.6875rem; font-weight: 900; fill: var(--c3); }
.wm-svg .wa.is-sel line { stroke: var(--c2); stroke-width: 4; }
.wm-svg .wm-mc { font-size: 0.6875rem; font-weight: 900; fill: var(--muted); }
.wm-els { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: .78rem; color: var(--muted); }
.wm-els span { padding: 2px 8px; border-radius: 999px; background: var(--soft); }
/* 타로·주역 작은 그림 */
.cm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cm-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); text-align: center; }
.cm-c b { font-family: var(--display); font-size: 1.4em; }
.cm-c b.rev { transform: rotate(180deg); }
.cm-c span { font-size: .78rem; line-height: 1.3; }
.cm-c.is-sel { border: 2.5px solid var(--c2); background: var(--t-tarot); }
.hx2 { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hm { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); }
.hm.is-sel { border: 2.5px solid var(--c2); background: var(--t-tarot); }
.hm-lines { display: flex; flex-direction: column; gap: 5px; width: 74px; }
.hm-lines i { height: 8px; border-radius: 3px; background: var(--ink); position: relative; }
.hm-lines i.n { background: linear-gradient(90deg, var(--ink) 0 42%, transparent 42% 58%, var(--ink) 58% 100%); }
.hm-lines i.mv { box-shadow: 0 0 0 2px var(--c2); }
.hx-arrow { font-size: 1.4em; color: var(--c3); }
/* 별자리 동물 */
.cst { width: 100%; height: auto; overflow: visible; }
.cst-l path { fill: none; stroke: var(--cst); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s ease-out forwards; opacity: .85; }
.cst-s circle { fill: var(--cst); filter: drop-shadow(0 0 3px var(--cst)); opacity: 0; animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0% { opacity: 0; } 12% { opacity: 1; } 55% { opacity: .55; } 100% { opacity: 1; } }
.cmp-hero { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; gap: 6px; }
.cmp-hero figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cmp-hero figure .cst { width: 100%; max-width: 150px; }
.cmp-hero figcaption { font-size: .8rem; font-weight: 700; color: var(--muted); }
.cmp-link { position: relative; height: 40px; display: flex; align-items: center; justify-content: center; }
.cmp-link::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; border-top: 3px solid var(--c3); }
.cmp-link.tone-care::before { border-top-style: dashed; border-color: var(--care); animation: tremble 1.6s ease-in-out infinite; }
.cmp-link.tone-neutral::before { border-top-style: dotted; border-color: var(--line2); }
.cmp-link span { position: relative; background: var(--bg); padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 900; color: var(--ink); border: 1.5px solid var(--line2); }
@keyframes tremble { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-1.5px); } 75% { transform: translateY(1.5px); } }
.orb { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.orb b { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 2.2em; color: #FFFFFF; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--orb) 40%, #FFFFFF), var(--orb)); box-shadow: 0 0 28px color-mix(in srgb, var(--orb) 55%, transparent); animation: breathe 3.4s ease-in-out infinite; }
.orb span { font-size: .8rem; font-weight: 700; color: var(--muted); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.cst-pair { display: flex; align-items: center; gap: 10px; }
.cst-pair .cst { width: 86px; }
/* 열두 칸 원 */
.tc { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tc svg { width: min(100%, 320px); height: auto; }
.tc-ring { fill: none; stroke: var(--line2); stroke-width: 1; stroke-dasharray: 2 4; }
.tc-l { font-family: var(--display); font-size: 0.8125rem; fill: var(--ink); }
.tc-a { font-size: 0.53125rem; fill: var(--faint); }
.tc-r { stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s ease-out forwards; opacity: .45; }
.tc-r.tone-good { stroke: var(--c3); }
.tc-r.tone-care { stroke: var(--care); }
.tc-r.is-sel { stroke-width: 3.5; opacity: 1; }
.tc-m circle { stroke: var(--bg); stroke-width: 2; }
.tc-m.me circle { fill: var(--c2); }
.tc-m.you circle { fill: var(--good); }
.tc-m text { font-size: 8px; font-weight: 900; fill: #FFFFFF; pointer-events: none; }
.tc-m.is-sel circle { stroke: var(--ink); stroke-width: 2.5; }
.legend .lg-me::before { background: var(--c2); border-radius: 50%; }
.legend .lg-you::before { background: var(--good); border-radius: 50%; }
.legend .lg-good::before { background: none; border-top: 3px solid var(--c3); height: 0; width: 14px; vertical-align: 3px; border-radius: 0; }
.legend .lg-care::before { background: none; border-top: 3px dashed var(--care); height: 0; width: 14px; vertical-align: 3px; border-radius: 0; }
.ci { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; }
.ci > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.ci > summary::-webkit-details-marker { display: none; }
.ci > summary > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci > summary b { font-size: .86rem; }
.ci .ci-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; background: var(--c3); }
.ci.tone-care .ci-dot { background: none; border: 2px dashed var(--care); }
.ci.tone-neutral .ci-dot { background: var(--line2); }
.ci .basis { margin-top: 8px; }
/* 되돌아보기 */
.retro { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--sys-tint); }
.retro-s { font-size: .95em; line-height: 1.55; }
.retro-q { font-weight: 700; line-height: 1.5; }
.retro .react button { background: var(--surface); }
/* 뽑기 의식 */
.deck { position: relative; height: 150px; margin: 4px auto; width: 100px; }
.deck i { position: absolute; inset: 0; border-radius: 12px; border: 1.5px solid var(--d-tarot); background: repeating-linear-gradient(45deg, var(--t-tarot) 0 6px, var(--surface) 6px 12px); box-shadow: 0 6px 14px rgba(28,27,41,.08); }
.deck i:nth-child(1) { transform: translate(-6px, 4px) rotate(-6deg); } .deck i:nth-child(2) { transform: translate(-2px, 2px) rotate(-2deg); } .deck i:nth-child(3) { transform: translate(2px, 1px) rotate(2deg); } .deck i:nth-child(4) { transform: translate(6px, 0) rotate(5deg); }
.deck.shuffling i:nth-child(odd) { animation: shufA .25s ease-in-out 3 alternate; } .deck.shuffling i:nth-child(even) { animation: shufB .25s ease-in-out 3 alternate; }
@keyframes shufA { to { transform: translate(-46px, -6px) rotate(-14deg); } } @keyframes shufB { to { transform: translate(46px, -4px) rotate(14deg); } }
/* Each back has its own visible hit area; cards never cover a neighbour. */
.fan { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 8px; margin-top: 6px; padding: 6px 0; }
.fan-c { position: relative; width: 100%; min-width: 44px; height: 76px; border-radius: 10px; border: 1.5px solid var(--d-tarot); background: repeating-linear-gradient(45deg, var(--t-tarot) 0 6px, var(--surface) 6px 12px); color: var(--i-tarot); display: flex; align-items: center; justify-content: center; padding: 0; animation: fanIn .35s ease-out; animation-delay: var(--d); transition: opacity .2s, box-shadow .2s; box-shadow: 0 6px 14px rgba(28,27,41,.08); }
.fan-c svg { width: 22px; height: 22px; }
.fan-c:hover, .fan-c:focus-visible { outline: 2px solid var(--i-tarot); outline-offset: 2px; }
.fan-c.picked { opacity: .45; border-width: 3px; animation: none; box-shadow: inset 0 0 0 2px var(--surface); }
@keyframes fanIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 360px) { .fan { grid-template-columns: repeat(4, minmax(44px, 1fr)); } }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { height: 34px; border-radius: 10px; border: 1.5px dashed var(--line2); display: flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--faint); font-weight: 700; }
.slot.full { border-style: solid; border-color: var(--d-tarot); background: var(--t-tarot); color: var(--i-tarot); animation: chg .8s ease-out; }
.tcard { transition-delay: var(--fd, 0s); }
.coin3 { display: flex; gap: 12px; justify-content: center; perspective: 400px; min-height: 52px; }
.coin.big { width: 46px; height: 46px; font-size: .95rem; border-width: 3px; animation: none; }
.coin3.spin .coin.big { animation: coinSpin .5s cubic-bezier(.3,.7,.3,1) both; animation-delay: var(--cd); background: linear-gradient(90deg, var(--t-liuyao), #FFFFFF, var(--t-liuyao)); }
@keyframes coinSpin { 0% { transform: translateY(0) rotateX(0); } 45% { transform: translateY(-26px) rotateX(540deg); } 100% { transform: translateY(0) rotateX(1080deg); } }
.hline.new { animation: rise .45s ease-out; }
.span-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.span-row > b { font-size: .85em; font-variant-numeric: tabular-nums; color: var(--sys-ink); }
.now-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: .7rem; font-weight: 900; color: var(--c2); border: 1px solid var(--c2); vertical-align: 1px; }
.road { position: relative; }
details.sess > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
details.sess > summary::-webkit-details-marker { display: none; }
details.sess .basis { margin-top: 8px; }
.send-list { gap: 8px; }
.send-row { display: flex; gap: 8px; align-items: flex-start; font-size: .9em; line-height: 1.5; }
.send-row svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.send-row.ok svg { color: var(--try); } .send-row.no svg { color: var(--care); }
.send-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c3); }
.q-short { font-family: var(--display); font-size: 1.25em; line-height: 1.55; }
.ming { isolation: isolate; }
.ming .center .ctext { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 10px; background: color-mix(in srgb, var(--soft2) 86%, transparent); }
.legend span.t::before { background: none; border: 2px solid var(--c3); width: 8px; height: 8px; }
.legend span.o::before { background: none; border: 2px dashed var(--c3); width: 8px; height: 8px; }
@media (max-width: 360px) { .cmp-hero { grid-template-columns: 1fr 58px 1fr; } .orb b { width: 74px; height: 74px; } .fan-c { width: 48px; height: 76px; left: calc(50% - 24px); } .pm-c b { font-size: 1.4em; } }
@media (prefers-reduced-motion: reduce) { .cst-l path, .cst-s circle, .pm-lines path, .mm-lines polygon, .mm-lines line, .tc-r, .fan-c, .deck i, .coin3 .coin.big, .orb b, .cmp-link::before, .is-chg, .chart-slot.flash, .slot.full, .hline.new { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1; } }
:root[data-motion="off"] .cst-l path, :root[data-motion="off"] .cst-s circle, :root[data-motion="off"] .pm-lines path, :root[data-motion="off"] .mm-lines polygon, :root[data-motion="off"] .mm-lines line, :root[data-motion="off"] .tc-r, :root[data-motion="off"] .fan-c, :root[data-motion="off"] .deck i, :root[data-motion="off"] .coin3 .coin.big, :root[data-motion="off"] .orb b, :root[data-motion="off"] .cmp-link::before, :root[data-motion="off"] .is-chg, :root[data-motion="off"] .chart-slot.flash, :root[data-motion="off"] .slot.full, :root[data-motion="off"] .hline.new { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1; }
:root[data-motion="off"] .tc-r { opacity: .45; } :root[data-motion="off"] .tc-r.is-sel { opacity: 1; }

/* v3.3: 타로 그림(RWS 1909) */
.tcard .front.has-img { padding: 0; overflow: hidden; justify-content: flex-end; gap: 0; }
.tcard .front .tc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.tc-img.rev { transform: rotate(180deg); }
.tcard .front .cap { position: relative; z-index: 1; width: 100%; padding: 18px 6px 7px; border-radius: 0 0 12px 12px; background: linear-gradient(to top, rgba(20,19,32,.82), rgba(20,19,32,0)); color: #FFFFFF; font-size: .7rem; line-height: 1.3; text-align: center; }
.tcard .front .cap b { font-size: .76rem; }
.cm-c .tc-img { width: 62px; aspect-ratio: 150 / 222; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); }
/* v3.3: 초대 값 고르기 */
.send-row.opt { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.warn-line { color: var(--care); font-weight: 700; }
.gender-note { border: 1.5px dashed var(--care); }
/* ═════ v3.4 · 첫 화면 거울 (은빛 테 · 유리 · 손가락 따라 움직이는 빛 · 네 겹) ═════ */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 32%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 24%; }
:root { --mr-glass: radial-gradient(circle at 50% 44%, #FDFEFF 0%, #F0F4F9 36%, #DAE2EC 70%, #C3CEDB 100%); --mr-ink: #1C1B29; --mr-frame-filter: none; --mr-env-blend: multiply; --mr-fog: rgba(52, 44, 96, 0.5); --mr-spec-o: 1; --mr-refl-o: .12; --mr-refl-gate-o: .42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mr-glass: radial-gradient(circle at 50% 44%, #3B4358 0%, #2B3244 38%, #1F2433 72%, #151925 100%); --mr-ink: #F3F1F8; --mr-frame-filter: brightness(.8) contrast(1.06); --mr-env-blend: screen; --mr-fog: rgba(6, 5, 16, 0.72); --mr-spec-o: .5; --mr-refl-o: .08; --mr-refl-gate-o: .3; } }
:root[data-theme="dark"] { --mr-glass: radial-gradient(circle at 50% 44%, #3B4358 0%, #2B3244 38%, #1F2433 72%, #151925 100%); --mr-ink: #F3F1F8; --mr-frame-filter: brightness(.8) contrast(1.06); --mr-env-blend: screen; --mr-fog: rgba(6, 5, 16, 0.72); --mr-spec-o: .5; --mr-refl-o: .08; --mr-refl-gate-o: .3; }
.mblock { display: flex; flex-direction: column; gap: 10px; }
.mstage { position: relative; display: flex; justify-content: center; padding: 12px 0 22px; perspective: 1000px; }
.mstage-glow { position: absolute; inset: -24px -16px -8px; z-index: -1; pointer-events: none; background: radial-gradient(circle at 50% 46%, var(--glow2) 0%, transparent 62%), radial-gradient(circle at 16% 84%, var(--glow1) 0%, transparent 52%), radial-gradient(circle at 86% 78%, var(--glow3) 0%, transparent 52%); }
.mr { --d: min(78vw, 304px); position: relative; width: var(--d); height: var(--d); flex-shrink: 0; cursor: pointer; touch-action: pan-y; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.mr-frame { position: absolute; inset: 0; border-radius: 50%; filter: var(--mr-frame-filter); background: conic-gradient(from 210deg, #FBFCFD, #A6ACB6 10%, #EEF1F4 22%, #7C838E 36%, #F7F8FA 50%, #9CA3AD 64%, #E7EAEE 76%, #838A95 90%, #FBFCFD); box-shadow: 0 26px 50px rgba(28,27,41,0.22), 0 6px 14px rgba(28,27,41,0.12), inset 0 0 0 1px rgba(255,255,255,0.75), inset 0 -4px 8px rgba(0,0,0,0.2); }
.mr-frame::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: linear-gradient(160deg, #6E7580, #DADDE2 46%, #8A919B); box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.6); }
.mr-glass { position: absolute; inset: 13px; border-radius: 50%; overflow: hidden; isolation: isolate; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; background: var(--mr-glass); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 12px 26px rgba(28,27,41,0.18), inset 0 -10px 22px rgba(255,255,255,0.3); transition: --mx .3s ease-out, --my .3s ease-out; }
.mr-glass:focus-visible { outline: 3px solid var(--c3); outline-offset: 5px; border-radius: 50%; }
.mr-env { position: absolute; inset: 0; mix-blend-mode: var(--mr-env-blend); background: linear-gradient(205deg, color-mix(in srgb, var(--c1) 16%, transparent) 0%, transparent 38%), linear-gradient(20deg, color-mix(in srgb, var(--c3) 20%, transparent) 0%, transparent 45%); }
.mr-refl { position: absolute; inset: 15%; opacity: var(--mr-refl-o); transform: scaleX(-1); filter: saturate(.8) blur(.3px); transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s; }
.mr-refl img { width: 100%; height: 100%; display: block; }
.mstage[data-depth="1"] .mr-refl { transform: scaleX(-1) scale(.84); opacity: calc(var(--mr-refl-o) * .85); }
.mstage[data-depth="2"] .mr-refl { transform: scaleX(-1) scale(.7); opacity: calc(var(--mr-refl-o) * .7); }
.mstage[data-depth="3"] .mr-refl { transform: scaleX(-1) scale(.56); opacity: calc(var(--mr-refl-o) * .55); }
.mstage[data-depth="4"] .mr-refl { transform: scaleX(-1) scale(.42); opacity: calc(var(--mr-refl-o) * .45); }
.mstage[data-depth="4"] .mr-fog { opacity: 1; }
.mr-fog { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 44%, var(--mr-fog) 100%); transition: opacity .8s; }
.mstage[data-depth="1"] .mr-fog { opacity: .3; } .mstage[data-depth="2"] .mr-fog { opacity: .55; } .mstage[data-depth="3"] .mr-fog { opacity: .85; }
.mr-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 15% 13%; text-align: center; pointer-events: none; }
.mr-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--muted); }
.mr-eyebrow b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #FFFFFF; font-size: .7rem; }
.mr-text { font-family: var(--display); font-size: clamp(1rem, 4.7vw, 1.24rem); font-weight: 700; line-height: 1.45; color: var(--mr-ink); text-wrap: balance; word-break: keep-all; }
.mr-seat { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.mr-seat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sd); }
.mr-spec { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: var(--mr-spec-o); background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.36) 13%, rgba(255,255,255,0) 36%); }
.mr-sheen { position: absolute; z-index: 3; top: -30%; left: -10%; width: 34%; height: 160%; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0)); transform: translateX(-160%) rotate(22deg); animation: mrSheen 7.5s ease-in-out 1.5s infinite; }
@keyframes mrSheen { 0% { transform: translateX(-160%) rotate(22deg); } 45%, 100% { transform: translateX(420%) rotate(22deg); } }
.mr-ring { position: absolute; z-index: 3; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 0 14px color-mix(in srgb, var(--c3) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--c2) 35%, transparent); transform: translate(-50%, -50%) scale(.08); }
/* 띠 동물(용): 거울 앞에 서서 거울 속 자기 모습을 봐요. 누르면 거울 안으로 */
.mr-beast { position: absolute; z-index: 4; left: -2%; bottom: 0; width: 42%; max-width: 172px; aspect-ratio: 1; padding: 0; border: 0; background: none; border-radius: 28px; cursor: pointer; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 10px 14px rgba(98,92,140,0.18)); }
.mr-beast img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.mr-beast:focus-visible { outline: 3px solid var(--c3); outline-offset: 2px; }
.mstage.gate .mr-refl { inset: auto; left: 36%; top: 20%; width: 50%; aspect-ratio: 1; opacity: var(--mr-refl-gate-o); }
.mstage.gate .mr-refl img { object-fit:contain; }
.mstage.gaze .mr-refl { opacity: calc(var(--mr-refl-gate-o) + .15); }
.mstage.gate .mr-glass { cursor: pointer; }
.mstage.entering .mr-beast { pointer-events: none; }
.mr-gate { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.mr-gate .btn.primary { min-height: 50px; }
.mr-cap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.mr-cap .text-btn { font-size: .8rem; }
.mr-depths { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mr-depths button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 6px 2px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); text-align: center; }
.mr-depths i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.mr-depths b { font-size: .9rem; color: var(--ink); white-space: nowrap; }
.mr-depths button[aria-pressed="true"] { border-color: var(--c3); background: var(--soft); box-shadow: 0 6px 16px color-mix(in srgb, var(--c3) 18%, transparent); }
.mr-depths button[aria-pressed="true"] i { background: var(--grad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c3) 22%, transparent); }
.mr-hint { text-align: center; }
/* 숨은 나: 지지 속에서 숨은 글자가 튀어나와요 */
.mr-content[data-l="4"] { gap: 7px; padding: 13% 12%; }
.mr-content[data-l="4"] .mr-text { font-size: clamp(.95rem, 4.3vw, 1.1rem); }
.mr-hid { display: flex; gap: 8px; justify-content: center; }
.hd { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--el) 35%, var(--line)); }
.hd b, .hd em { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--display); font-style: normal; font-weight: 700; font-size: 1.12rem; line-height: 1.05; color: var(--mr-ink); }
.hd b small, .hd em small { font-family: var(--body); font-size: .6rem; font-weight: 700; color: var(--muted); }
.hd em { color: var(--el); animation: hdPop .6s cubic-bezier(.2,.7,.3,1.4) var(--hd) both; }
.hd > i { font-style: normal; font-size: .62rem; font-weight: 800; color: var(--faint); }
@keyframes hdPop { from { opacity: 0; transform: translateY(6px) scale(.2) rotate(-25deg); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .mr, .mr-refl, .mr-fog, .mr-glass { transition: none !important; } .mr-sheen { animation: none !important; display: none; } .mr-beast img, .mstage.gate .mr-refl img, .hd em { animation: none !important; } }
:root[data-motion="off"] .mr, :root[data-motion="off"] .mr-refl, :root[data-motion="off"] .mr-fog, :root[data-motion="off"] .mr-glass { transition: none !important; }
:root[data-motion="off"] .mr-sheen { animation: none !important; display: none; }
:root[data-motion="off"] .mr-beast img, :root[data-motion="off"] .mstage.gate .mr-refl img, :root[data-motion="off"] .hd em { animation: none !important; }

/* ═════ v3.4 · 돌려 고르는 선택기 (아이폰식 휠) ═════ */
.bf-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bf-set legend { padding: 0; margin-bottom: 8px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.seg.wide.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg button:disabled { opacity: .6; cursor: default; }
.bf-check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; min-height: 36px; }
.bf-check input { width: 20px; height: 20px; accent-color: var(--c3); }
.wheels { --wh-h: 2.125rem; position: relative; display: flex; gap: 2px; height: calc(var(--wh-h) * 5 + 2px); padding: 0 6px; border-radius: 18px; background: var(--soft2); border: 1px solid var(--line); overflow: hidden; user-select: none; -webkit-user-select: none; }
.wh-band { position: absolute; left: 6px; right: 6px; top: calc(var(--wh-h) * 2); height: var(--wh-h); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 3px rgba(28,27,41,0.08), inset 0 0 0 1px var(--line); pointer-events: none; }
.wh-col { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; height: 100%; overflow-x: hidden; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; cursor: grab; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 68%, transparent 100%); }
.wh-col::-webkit-scrollbar { display: none; }
.wh-col:focus-visible { outline: none; }
.wh-col:focus-visible .wh-i.on { box-shadow: inset 0 0 0 2.5px var(--c3); border-radius: 10px; }
.wh-pad { height: calc(var(--wh-h) * 2); }
.wh-i { height: var(--wh-h); display: flex; align-items: center; justify-content: center; padding: 0 4px; scroll-snap-align: center; font-size: 1.02rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; transform-origin: 50% 50%; backface-visibility: hidden; }
.wh-i.on { color: var(--ink); font-weight: 800; }
.wh-i.off { color: var(--faint); text-decoration: line-through; }
.w-date .c-year { flex-grow: 1.35; }
.w-place .c-prov { flex-grow: 1.1; }
.w-place .wh-i { font-size: .95rem; }
.wheels.is-ro { opacity: .85; }
.wheels.is-ro .wh-col { pointer-events: none; cursor: default; }
.wh-sum { font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.wh-sum .small { font-weight: 500; }
.bf-err { font-size: .85rem; font-weight: 700; color: var(--care); }
/* Existing question, source and access screens keep their behavior, in the new shell. */
:root {--paper:var(--bg);--card:var(--surface);--text:var(--ink);--graphite:var(--ink);--placeholder:var(--faint);--focus:var(--c3);--soft-bg:var(--soft);--m-good:var(--good);--m-good-soft:var(--good-bg);--m-radius:var(--r);--accent:var(--c3)}
.app-shell.app {max-width:480px;padding:0;background:var(--bg);min-height:100vh}
.app main {padding:4px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom,0px));width:100%;min-width:0}
.app .topbar {border:0;flex-wrap:nowrap;min-height:64px;position:sticky;top:0;margin:0;padding:10px 16px}
.app .brand {text-decoration:none;color:var(--ink);font-family:var(--body)}
.screen-nav.nav-inner {display:grid;border:0;border-radius:0;padding:0;margin:0;gap:0;background:none;overflow:visible}
.screen-nav.nav-inner button {font-size:.78rem;min-height:64px;min-width:0;white-space:nowrap;color:var(--muted);border:0;border-radius:0;background:none}
.screen-nav.nav-inner button[aria-current=page] {color:var(--ink);background:none}
.screen-nav.nav-inner button[aria-current=page] .nav-ic {color:var(--c3)}
.mirror-view.v35-home {gap:16px;max-width:none;padding:0;background:none}
.v35-home .grid2 .sys-card {min-width:0;box-shadow:none;gap:6px;border-radius:20px;min-height:164px;overflow-wrap:anywhere}
.v35-home .grid2 .sys-card .head {font-size:1.02em;font-weight:900}
.v35-home .grid2 .sys-card .sub {font-size:.85em}
.v35-home .banner {flex-wrap:wrap}.v35-home .banner .mirror-who {margin:0;min-width:0}
.v35-home .mr-text {font-size:clamp(1rem,4.7vw,1.24rem)}
.v35-home .mr-content {overflow:auto;scrollbar-width:none}.v35-home .mr-seat {max-width:100%;overflow-wrap:anywhere}
.v35-home .mr-beast img {height:100%;width:100%;transform:translateX(var(--zodiac-safe-shift,0px))}
.v35-home .v35-full-entry {background:var(--ink);color:var(--bg);border:0}.v35-full-entry h2 {color:inherit}.v35-full-entry .btn {background:var(--bg);color:var(--ink)}
.v35-home .mirror-disclaimer {text-align:center;margin:0;padding:6px}
.v35-dialog {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:26px 26px 0 0;margin:auto auto 0;width:min(100%,480px);max-width:480px;max-height:92dvh;padding:20px 18px calc(24px + env(safe-area-inset-bottom));overflow:auto;box-shadow:var(--shadow)}
.v35-dialog::backdrop {background:#14132066;backdrop-filter:blur(4px)}
.v35-dialog>.dialog-heading {position:sticky;top:-20px;background:var(--surface);padding:10px 0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:10px}
.v35-dialog .mirror-full {padding:0;border:0;background:none}.v35-dialog .mirror-full p {color:var(--ink)}
.v35-dialog .mirror-price,.v35-dialog .mirror-trial {color:var(--muted)}
#settings {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:24px;width:min(calc(100% - 24px),460px);max-height:90dvh;overflow:auto}
#settings .wide-button {background:var(--soft);border-color:var(--line);color:var(--ink)}
.v35-appearance {padding:12px 0 20px}.v35-appearance .swatches button {min-height:42px;width:64px;border-radius:999px;border:3px solid var(--surface)}
.v35-appearance .swatches button[aria-pressed=true] {outline:2px solid var(--c3)}
.v35-share-canvas {width:100%;height:auto;border-radius:20px}.v35-roadmap .road button {min-width:150px}.v35-roadmap .basis {overflow-wrap:anywhere}
.v35-draw .fan {max-width:100%;overflow:clip}.v35-draw .fan-c {font-size:1.8rem;transition:transform .2s}
.v35-draw .row {justify-content:center}.v35-draw .throws {min-width:0}.v35-draw .hex {flex-shrink:0}
.v35-draw .hline {width:90px}.v35-draw .hline.empty span {background:var(--line)}
.v35-draw .card {overflow:clip}.v35-overlap .mirror-two {border-radius:22px;background:var(--surface);color:var(--ink);border-color:var(--line)}
.v35-overlap .mirror-picker,.v35-overlap .mirror-two-toggle {background:var(--soft);color:var(--ink)}
.v35-overlap .mirror-two-row {background:var(--soft2)}
:root[data-motion=off] *, :root[data-motion=off] *::before, :root[data-motion=off] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
.screen .birth-card {max-width:none;box-shadow:none;background:var(--surface);color:var(--ink);border-color:var(--line)}
.v35-dialog .display-term,.v35-dialog .display-term-value {min-width:0;overflow-wrap:anywhere}
@media (max-width:360px){.app main{padding-left:12px;padding-right:12px}.app .topbar{padding-left:12px;padding-right:12px}.grid2{gap:8px}.sys-card{padding:12px}.mr{--d:min(82vw,304px)}.basis div{grid-template-columns:64px minmax(0,1fr)}.v35-draw .row .btn{padding:0 12px}.v35-dialog{padding-left:12px;padding-right:12px}}
@media (max-width:480px){.small,.muted,.sys-card .more,.sys-card .name,.mr-hint,.mr-seat,.mr-eyebrow,.pm-pl,.pm-c small,.mm-c small,.mm-c b,.chart-cap,.v35-chart-point .tag{font-size:max(.875rem,14px)}.v35-dialog p,.v35-home p,.v35-draw p{font-size:1rem}.v35-home p.small{font-size:.875rem}.v35-home .banner .mirror-who{font-size:.875rem}.mr-depths b{font-size:.875rem}.mr-content[data-l='4'] .mr-text{font-size:1rem}}
.mr-hid{max-width:100%;flex-wrap:wrap;gap:6px}.hd{max-width:100%}.v35-draw .cm-c .tc-img{width:100%;max-width:112px}.v35-draw .cm-c{animation:v35CardIn .6s ease-out both}.v35-draw .cm-c:nth-child(2){animation-delay:.12s}.v35-draw .cm-c:nth-child(3){animation-delay:.24s}
@keyframes v35CardIn{from{opacity:0;transform:rotateY(80deg) translateY(12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Calculation labels and numerals are screen text, not mirror prose. */
.road button .gz,.tcard .num,.pillars .hz,.pm-c b,.mm-center b,.cm-c b,.orb b,.tc-l,.hd b,.hd em {font-family:var(--body)}

/* The packed video is decoded into the app's existing mirror scene. Its source
   element never paints the opaque alpha half. The still is the first frame and
   accessible reduced-motion/error fallback; reflection uses the same PNG. */
.zodiac-source { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; left:0; bottom:0; }
.zodiac-live, .zodiac-soul { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.zodiac-live { z-index:5; }
.zodiac-soul { z-index:6; }
.zodiac-live[hidden], .mr-beast img[hidden] { display:none; }
.mr-refl img { object-fit:contain; object-position:center bottom; }
.zodiac-entering .mr-beast { filter:none; }
.zodiac-entering .mr-refl { transition:none; }

/* v3.8 item cards, topic band, two faces, 지금과 나란히, 이어 읽기.
   Adapted from 의식의거울_시제품_v3.8.html (iv-*). Reading text stays at 14px or larger. */

/* 입구 */
.iv-entry { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 20px; padding: 16px; background: linear-gradient(135deg, var(--sys-tint, var(--soft)), var(--soft2)); color: var(--ink); cursor: pointer; }
.iv-entry > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iv-entry b { font-size: 1.0625rem; font-weight: 800; }
.iv-entry small { font-size: max(.875rem, 14px); color: var(--muted); }
.iv-entry::after { content: "›"; font-size: 1.5rem; color: var(--sys-ink, var(--c3)); line-height: 1; }

/* 목록 */
.iv { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
:root[data-motion='on'] .iv { animation: ivIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ivIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.iv-count { font-size: max(.875rem, 14px); color: var(--muted); }
.iv-empty { padding: 16px; border-radius: 18px; background: var(--soft2); border: 1px dashed var(--line2); font-size: 1rem; }
.iv-list { display: flex; flex-direction: column; gap: 12px; }
.iv-group { display: flex; flex-direction: column; gap: 10px; }
.iv-group-title { font-size: .9375rem; font-weight: 800; color: var(--muted); }
/* 값만 있어요: 분류 이름 · 개수만 보이고, 누른 분류 하나만 펼친다 */
.iv-group:has(.iv-vgroup) { gap: 0; border-radius: 18px; background: var(--soft2); padding: 4px 6px; }
.iv-group:has(.iv-vgroup) > .iv-group-title { padding: 10px 8px 6px; }
.iv-vgroup { min-width: 0; border-top: 1px solid var(--line); }
.iv-vsum { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 8px; border: 0; background: none; font: inherit; font-size: .9375rem; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.iv-vsum b { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.iv-vsum span { flex-shrink: 0; color: var(--muted); font-size: max(.875rem, 14px); }
.iv-vsum::after { content: "›"; margin-left: auto; padding-left: 8px; color: var(--muted); }
:root[data-motion='on'] .iv-vsum::after { transition: transform .2s; }
.iv-vsum[aria-expanded='true']::after { transform: rotate(90deg); }
.iv-vgroup > .iv-list { padding: 0 2px 10px; }
.iv-vgroup > .iv-list[hidden], .iv-more[hidden] { display: none; }
.iv-moretoggle { align-self: stretch; min-height: 44px; }
/* 고른 주제의 카드가 맨 위, 나머지는 '다른 항목 n장' 한 줄로 접는다 */
.iv-topicset { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.iv-topicset > .iv-group-title { font-size: 1rem; color: var(--sys-ink, var(--c3)); overflow-wrap: anywhere; }
.iv-others { min-width: 0; border-radius: 18px; border: 1px solid var(--line); padding: 4px 8px; }
.iv-others > .iv-otherhead b { font-weight: 800; }
.iv-otherbody { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 4px 0 10px; }
.iv-otherbody[hidden] { display: none; }
.iv-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.iv-card.iv-hero { background: linear-gradient(160deg, var(--sys-tint, var(--soft)) 0%, var(--surface) 78%); border-color: transparent; box-shadow: var(--shadow); }
.iv-card.iv-lockcard { background: var(--soft2); }
.iv-card[data-status='value'] { border-style: dashed; }
.iv-main { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 16px 16px 12px; color: var(--ink); cursor: pointer; font: inherit; }
:root[data-motion='on'] .iv-main { transition: transform .15s; }
.iv-main:active { transform: scale(.985); }
.iv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.iv-cat { font-size: max(.875rem, 14px); font-weight: 800; color: var(--sys-ink, var(--c3)); min-width: 0; overflow-wrap: anywhere; }
.iv-pill { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: max(.875rem, 14px); font-weight: 700; background: var(--soft); color: var(--c3); white-space: nowrap; }
.iv-pill[data-kind='cond'] { background: var(--good-bg); color: var(--good); }
.iv-pill[data-kind='value'] { background: transparent; border: 1.5px dashed var(--line2); color: var(--muted); }
.iv-pill[data-kind='basis'], .iv-pill[data-kind='off'] { background: var(--soft2); color: var(--muted); }
.iv-pill.lock { background: var(--soft); color: var(--c3); }
.iv-say { font-family: var(--display); font-size: 1.25rem; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.iv-card.iv-hero .iv-say { font-size: 1.5rem; line-height: 1.38; }
.iv-say.iv-valueonly { font-family: var(--body); }
.iv-say.iv-na { color: var(--faint, var(--muted)); }
.iv-lockmsg { color: var(--muted); font-size: 1.0625rem; }
.iv-prep { font-size: max(.875rem, 14px); color: var(--muted); }
.iv-meta { font-size: max(.875rem, 14px); color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.iv-same { align-self: flex-start; font-size: max(.875rem, 14px); font-weight: 700; color: var(--c3); padding: 2px 10px; border-radius: 999px; background: var(--soft); }
.iv-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.iv-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .9375rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.iv-act[aria-pressed='true'] { background: var(--try-bg); color: var(--try); border-color: transparent; }
.iv-act.primary { background: var(--grad, var(--c3)); color: #FFFFFF; border: 0; box-shadow: var(--shadow-btn, none); }
.iv-ref { border-radius: 18px; background: var(--soft2); padding: 4px 14px; }
.iv-ref > summary { min-height: 44px; display: flex; align-items: center; font-size: .9375rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.iv-refrow { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer; min-width: 0; }
.iv-refrow b { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.iv-refrow span { color: var(--muted); font-size: max(.875rem, 14px); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.iv-refrow span::after { content: " ›"; }
/* 5부 B1: 풀이 없는 값 아래 범위 안내(서버 label_ko·reason_ko). 목록은 세 줄까지, 상세는 전부. B3: 주역 문장의 원문 층 이름. */
.iv-res { display: block; font-size: max(.875rem, 14px); line-height: 1.5; color: var(--muted); text-align: left; overflow-wrap: anywhere; }
.iv-res .k { font-weight: 800; color: var(--ink); margin-right: 6px; }
.iv-res[data-state='calculation_source_mismatch'] { padding: 8px 10px; border-radius: 10px; background: var(--care-bg); color: var(--care); }
.iv-res[data-state='calculation_source_mismatch'] .k { color: var(--care); }
.iv-main .iv-res, .iv-refrow .iv-res { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.iv-refrow { flex-wrap: wrap; }
.iv-refrow > .iv-res { flex-basis: 100%; margin-top: -4px; text-align: left; }
.iv-refrow .iv-res::after, .iv-refrow .iv-res span::after { content: none; }
.iv-refrow .iv-res span, .iv-refrow .iv-res b { text-align: left; font-size: inherit; }
.iv-scope { display: block; align-self: flex-start; font-size: max(.8125rem, 13px); font-weight: 800; letter-spacing: .01em; color: var(--sys-ink, var(--c3)); }

/* 상세 */
.iv-detail { gap: 14px; }
.iv-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 6px 0 0; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 700; color: var(--c3); cursor: pointer; }
.iv-back::before { content: "‹"; font-size: 1.4rem; line-height: 1; }
.iv-head { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; border-radius: 24px; background: linear-gradient(160deg, var(--sys-tint, var(--soft)) 0%, var(--surface) 80%); min-width: 0; }
.iv-head .iv-say { font-size: 1.625rem; line-height: 1.38; }
.iv-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9375rem; font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.iv-verdict .sep { color: var(--faint, var(--muted)); font-weight: 400; }
.iv-sub { font-size: .9375rem; color: var(--muted); }
.iv-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: max(.875rem, 14px); color: var(--muted); }
.iv-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 7px; font-size: max(.875rem, 14px); font-weight: 800; white-space: nowrap; }
.iv-badge.b-orig { background: var(--t-liuyao); color: var(--i-liuyao); }
.iv-badge.b-tr { background: var(--good-bg); color: var(--good); }
.iv-badge.b-based { background: var(--try-bg); color: var(--try); }
.iv-badge.b-ours { background: var(--soft); color: var(--c3); }
.iv-seg { --n: 2; --i: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 3px; border-radius: 14px; background: var(--soft); }
.iv-seg button { position: relative; z-index: 1; border: 0; background: none; min-height: 44px; padding: 4px 6px; border-radius: 11px; font: inherit; font-size: .9375rem; font-weight: 700; color: var(--muted); line-height: 1.25; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.iv-seg button small { display: block; font-size: max(.875rem, 14px); font-weight: 600; }
.iv-seg button[aria-pressed='true'] { color: var(--ink); }
.iv-seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 11px; background: var(--surface); box-shadow: 0 2px 8px rgba(28,27,41,.12); transform: translateX(calc(100% * var(--i))); }
:root[data-motion='on'] .iv-seg .thumb { transition: transform .32s cubic-bezier(.34,1.4,.64,1); }
.iv-pt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: 1rem; line-height: 1.55; }
.iv-pt b { flex-shrink: 0; font-size: max(.875rem, 14px); font-weight: 800; padding: 2px 8px; border-radius: 7px; background: var(--surface); }
.iv-pt.care { background: var(--care-bg); } .iv-pt.care b { color: var(--care); }
.iv-pt.try { background: var(--try-bg); } .iv-pt.try b { color: var(--try); }
.iv-pt.ask { background: var(--soft); } .iv-pt.ask b { color: var(--c3); }
.iv-sec { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 72px; min-width: 0; }
.iv-sec > h3 { font-family: var(--body); font-size: 1.0625rem; font-weight: 800; }
.iv-sec p { font-size: 1rem; line-height: 1.6; }
.iv-sec .lead-s, .iv-dnote { font-size: max(.875rem, 14px); line-height: 1.5; color: var(--muted); }
.iv-why { display: flex; flex-direction: column; gap: 8px; font-size: 1.0625rem; line-height: 1.6; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--soft2); font: inherit; font-size: .9375rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.iv-chip[aria-pressed='true'] { background: var(--soft); border-color: var(--c3); color: var(--c3); }
.iv-chart .v35-diagram:has(.is-sel) [data-diagram-target]:not(.is-sel):not(.is-rel) { opacity: .38; }
.iv-chart .is-sel { transform: translateY(-3px) scale(1.08); }
.iv-chart.is-one .is-sel { transform: translateY(-4px) scale(1.18); box-shadow: 0 0 0 3px var(--c3); }
:root[data-motion='on'] .iv-chart [data-diagram-target] { transition: transform .25s cubic-bezier(.34,1.4,.64,1), opacity .25s, box-shadow .25s; }
.iv-book { border-top: 1px solid var(--line); }
.iv-book:first-of-type { border-top: 0; }
.iv-book > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; }
.iv-book > summary::-webkit-details-marker { display: none; }
.iv-book > summary .t { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.iv-book > summary .t b { font-size: .9375rem; }
.iv-book > summary .t small { font-size: max(.875rem, 14px); color: var(--muted); }
.iv-book > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--faint, var(--muted)); border-bottom: 2px solid var(--faint, var(--muted)); transform: rotate(45deg); flex-shrink: 0; }
.iv-book[open] > summary::after { transform: rotate(-135deg); }
.iv-book .body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; }
.iv-orig { font-family: 'Noto Serif TC', 'Songti TC', 'Noto Serif KR', serif; font-size: 1.0625rem; line-height: 1.8; letter-spacing: .04em; background: var(--soft2); border-radius: 12px; padding: 10px 12px; margin: 0; overflow-wrap: anywhere; }
.iv-gist { font-size: .9375rem; line-height: 1.6; }
.iv-gist .k { font-size: max(.875rem, 14px); font-weight: 800; color: var(--muted); margin-right: 6px; }
/* 6부 B7: 같은 출처에 접혀 온 다른 대목 · B1: 안내 카드에서 대표 카드로 */
.iv-book .more-quote { padding: 0 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.iv-book .more-quote > summary { min-height: 44px; display: flex; align-items: center; font-size: max(.875rem, 14px); font-weight: 700; color: var(--muted); cursor: pointer; }
.more-quote-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.more-quote-body .full-detail-note { font-size: max(.875rem, 14px); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; margin: 0; }
.iv-detail > .iv-topiclink { align-self: flex-start; max-width: 100%; }
.iv-dock { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 3; align-self: center; display: flex; gap: 4px; padding: 6px; margin-top: 4px; border-radius: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--surface) 60%, var(--line)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 30px rgba(28,27,41,.18); }
:root[data-reduce-transparency='true'] .iv-dock { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
.iv-dock::-webkit-scrollbar { display: none; }
.iv-dock button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 16px; background: none; font: inherit; font-size: .9375rem; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; }
.iv-dock button:active { background: var(--soft); }
.iv-dock button[aria-pressed='true'] { color: var(--try); }
.iv-flash { animation: ivFlash .9s ease-out; }
@keyframes ivFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c3) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .iv, .iv-flash { animation: none !important; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
:root[data-motion='off'] ::view-transition-group(*), :root[data-motion='off'] ::view-transition-old(*), :root[data-motion='off'] ::view-transition-new(*) { animation: none !important; }

/* 다른 거울에서 본 ‘주제’ */
.iv-other { display: flex; flex-direction: column; gap: 8px; }
.iv-other .o { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--sys-tint, var(--soft)); }
.iv-other .o b { font-size: max(.875rem, 14px); font-weight: 800; color: var(--sys-ink, var(--c3)); }
.iv-other .o p { font-size: 1rem; line-height: 1.55; color: var(--ink); }
.iv-other .o.none { background: var(--soft2); }
.iv-other .o.none p { font-size: .9375rem; color: var(--muted); }

/* 주제 띠 · 출발 카드 줄 · 이어 읽기 */
.iv-tpill { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 8px 8px 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(28,27,41,.08); font-size: .9375rem; font-weight: 800; color: var(--c3); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 5; min-width: 0; }
:root[data-reduce-transparency='true'] .iv-tpill { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
.iv-tpill span { min-width: 0; overflow-wrap: anywhere; }
.iv-tpill button { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--soft); font: inherit; font-size: max(.875rem, 14px); font-weight: 700; color: var(--ink); cursor: pointer; }
.iv-tpill-slot:empty { display: none; }
.iv-fromrow { width: 100%; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 14px; padding: 10px 12px; background: var(--soft); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 700; text-align: left; cursor: pointer; }
.iv-fromrow::before { content: "‹"; color: var(--c3); font-size: 1.3rem; line-height: 1; }
.iv-resume { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: end; text-align: left; border: 0; border-radius: 20px; padding: 14px 16px; background: linear-gradient(135deg, var(--sys-tint, var(--soft)), var(--soft2)); color: var(--ink); font: inherit; cursor: pointer; }
.iv-resume .k { grid-column: 1 / -1; font-size: max(.875rem, 14px); font-weight: 700; color: var(--muted); }
.iv-resume b { grid-column: 1 / -1; font-size: .9375rem; color: var(--sys-ink, var(--c3)); overflow-wrap: anywhere; }
.iv-resume .t { font-family: var(--display); font-size: 1.125rem; line-height: 1.45; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.iv-resume .go { font-size: .9375rem; font-weight: 800; color: var(--c3); white-space: nowrap; }
.iv-topicpick { display: flex; flex-wrap: wrap; gap: 8px; }

/* 지금과 나란히 */
.iv-pin2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.iv-pin2 > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--soft2); min-width: 0; overflow-wrap: anywhere; }
.iv-pin2 > .now { background: var(--sys-tint, var(--soft)); }
.iv-pin2 .k { font-size: max(.875rem, 14px); font-weight: 800; color: var(--muted); }
.iv-pin2 b { font-family: var(--display); font-size: 1.125rem; }
.iv-pin2 small, .iv-pin2 .yr { font-size: max(.875rem, 14px); color: var(--muted); }
.iv-pin2 p { font-size: .9375rem; line-height: 1.45; }
.iv-pin2 .zw { font-size: max(.875rem, 14px); line-height: 1.4; color: var(--i-ziwei, var(--c3)); padding: 6px 8px; border-radius: 10px; background: var(--t-ziwei, var(--soft)); }
.iv-yr { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.iv-yr .iv-y { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.iv-yr .iv-a { font-size: 1rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.iv-yr .iv-nowtag { font-size: max(.875rem, 14px); font-weight: 800; color: var(--c3); background: var(--soft); border-radius: 999px; padding: 3px 10px; }
.iv-range { width: 100%; min-height: 44px; accent-color: var(--c3); }
.iv-scale { display: flex; justify-content: space-between; gap: 8px; font-size: max(.875rem, 14px); color: var(--muted); font-variant-numeric: tabular-nums; }
.iv-pinbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-diff { display: flex; flex-direction: column; gap: 8px; }
.iv-drow { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 8px; align-items: start; font-size: .9375rem; }
.iv-drow > span { font-weight: 800; color: var(--muted); font-size: max(.875rem, 14px); padding-top: 4px; }
.iv-drow > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.iv-drow em { font-style: normal; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); overflow-wrap: anywhere; }
.iv-drow.add em { background: var(--try-bg); color: var(--try); }
.iv-drow.gone em { color: var(--muted); }
.iv-drow small { font-size: max(.875rem, 14px); color: var(--muted); padding-top: 4px; }

/* 두 모습 */
.iv-mtog { width: min(260px, 100%); align-self: center; }
.iv-c2pairs { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-c2pairs button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: .9375rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.iv-c2pairs button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.iv-c2 { --pa: 50fr; --pb: 50fr; position: relative; display: grid; grid-template-columns: minmax(0, var(--pa)) 26px minmax(0, var(--pb)); min-height: 300px; padding: 6px; border-radius: 30px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--glow2, var(--soft)) 70%, transparent)); border: 1px solid color-mix(in srgb, var(--surface) 40%, var(--line2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow); }
:root[data-motion='on'] .iv-c2 { transition: grid-template-columns .45s cubic-bezier(.34,1.3,.64,1); }
.iv-c2.is-drag { transition: none; }
.iv-c2p { container-type: inline-size; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 24px; background: var(--sys-tint, var(--soft)); min-width: 0; overflow: hidden; cursor: pointer; text-align: left; border: 0; font: inherit; color: var(--ink); }
.iv-c2p .lab { font-size: max(.875rem, 14px); font-weight: 800; color: var(--sys-ink, var(--c3)); }
.iv-c2p .txt { font-family: var(--display); font-weight: 700; line-height: 1.42; font-size: clamp(.9375rem, 8.5cqi, 1.375rem); overflow-wrap: anywhere; }
.iv-c2p .more { display: none; flex-direction: column; gap: 6px; font-size: max(.875rem, 14px); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.iv-c2p .more b { color: var(--ink); font-weight: 800; }
.iv-c2p.is-big .more { display: flex; }
.iv-c2p.is-big { background: color-mix(in srgb, var(--sys-tint, var(--soft)) 80%, var(--surface)); }
.iv-c2p.is-small .ttl { display: none; }
.iv-c2h { position: relative; display: flex; align-items: center; justify-content: center; cursor: ew-resize; touch-action: none; outline: none; }
.iv-c2h::before { content: ""; position: absolute; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: linear-gradient(var(--c1), var(--c3)); opacity: .55; }
.iv-c2h span { position: relative; width: 26px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line2); box-shadow: 0 6px 16px rgba(28,27,41,.2); }
.iv-c2h span::after { content: "‹ ›"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: max(.875rem, 14px); font-weight: 800; color: var(--muted); letter-spacing: -1px; }
.iv-c2h:focus-visible span { outline: 3px solid var(--c3); outline-offset: 2px; }
.iv-c2note { font-size: max(.875rem, 14px); color: var(--muted); line-height: 1.5; }
.mblock.iv-two .mstage { display: none; }
.mblock.iv-morph .mstage, .mblock.iv-morph .iv-c2 { view-transition-name: iv-mirror; }
.iv-noteq { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--soft2); }
.iv-noteq q { font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.iv-noteq small { font-size: max(.875rem, 14px); color: var(--muted); }
.v35-chart-sheet .iv-entry { margin-top: 12px; }
/* 읽는 글씨 14px 이상 (v3.8): earlier screen styles below 14px. */
.banner .text-btn, .mr-cap .text-btn, .chip, .q-chip, .sys-card .sub, .sys-card .name, .sys-card .more, .mirror-reaction-block .eyebrow,
.card .tag, .screen-nav button, .screen-nav .nav-ic, .mr-eyebrow, .mr-eyebrow b, .basis b, .basis span, .cmp-row b, .road .age, .road .yr,
.road .gz, .road .flow, .shared-pill, .disc-label { font-size: max(.875rem, 14px) !important; }
/* 카드 상세의 명반: 시트와 같은 자동 높이 칸, 14px 글씨 */
.iv-chart .mm-grid { aspect-ratio: auto; grid-template-rows: repeat(4, minmax(70px, auto)); }
.iv-chart .mm-c { min-height: 70px; padding: 6px 2px; }
.iv-chart .mm-c b, .iv-chart .mm-c small, .iv-chart .mm-center b, .iv-chart .mm-center small { font-size: max(.875rem, 14px); overflow-wrap: anywhere; line-height: 1.25; }
/* 카드 상세의 원국: mirror_charts.css가 뒤에 와서 작은 화면 규칙을 덮으므로 여기서 14px로 맞춘다 */
.iv-chart .pm-pl, .iv-chart .pm-c small, .iv-chart .pm-e, .iv-chart summary, .iv-chart .chart-cap { font-size: max(.875rem, 14px); }
.iv-chart .pm-c small { white-space: normal; overflow-wrap: anywhere; }
.iv-chart .pm-e { height: auto; min-height: 36px; }
/* 잠긴 카드: 응답이 준 미리 읽기 한 문장만, 잠금 안내 위에 */
.iv-preview { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--c3); }
.iv-preview .k { font-size: max(.875rem, 14px); font-weight: 800; color: var(--muted); }
.iv-preview .t { font-size: 1rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.iv-main .iv-preview { margin: 4px 0; text-align: left; }

/* ── 이제, 연 v14 ─────────────────────────────────────────────────────────
   Glass (--lg-*, copied from the v14 mockups) is only for controls: buttons, tabs,
   segments and sheet controls. Reading cards stay opaque. */
:root {
  --lg-blur: blur(24px) saturate(185%);
  --lg-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.92) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(255,255,255,.5) 0%,rgba(255,255,255,.26) 100%);
  --lg-border: 1px solid rgba(255,255,255,.85);
  --lg-shadow: inset 0 1.5px 0 #fff,inset 0 -1.5px 0 rgba(255,255,255,.55),inset 0 0 14px rgba(255,255,255,.4),0 12px 28px rgba(90,50,120,.14),0 1px 3px rgba(90,50,120,.10);
  --lg-pink-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.85) 0%,rgba(255,255,255,0) 50%),radial-gradient(90% 90% at 75% 115%,rgba(236,112,158,.5) 0%,rgba(236,112,158,0) 70%),linear-gradient(180deg,rgba(252,216,229,.78) 0%,rgba(246,184,207,.78) 100%);
  --lg-pink-border: 1px solid rgba(255,255,255,.8);
  --lg-pink-shadow: inset 0 1.5px 0 #fff,inset 0 -2px 0 rgba(255,255,255,.45),inset 0 -14px 24px rgba(226,98,145,.22),0 14px 30px rgba(214,90,140,.26),0 1px 3px rgba(120,40,80,.14);
  --lg-pink-ink: #6E1A3D;
  --lg-pill-bg: radial-gradient(130% 100% at 25% 0%,rgba(255,255,255,.85) 0%,rgba(255,255,255,0) 55%),linear-gradient(180deg,rgba(252,214,228,.9),rgba(245,182,206,.9));
  --lg-pill-shadow: inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.45),0 4px 12px rgba(214,90,140,.24);
  --lg-lilac-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.9) 0%,rgba(255,255,255,0) 52%),radial-gradient(90% 90% at 75% 115%,rgba(150,120,230,.35) 0%,rgba(150,120,230,0) 70%),linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.26));
  --lg-peach-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.9) 0%,rgba(255,255,255,0) 52%),radial-gradient(90% 90% at 75% 115%,rgba(245,150,100,.35) 0%,rgba(245,150,100,0) 70%),linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.26));
  --ij-ink: #24222B; --ij-muted: #6B6875; --ij-pink-ink: #8C2A52; --ij-card: #FFFFFF; --ij-card-line: #EEE8F1; --ij-soft: #FAF6FA; --ij-chip: #F1ECF5; --ij-lockic: #7A6B86;
  --ij-good: #1F6B4A; --ij-good-bg: #E7F4ED; --ij-care: #9A3412; --ij-care-bg: #FCEEE6; --ij-try: #2D4F9A; --ij-try-bg: #E9EFFB;
  --ij-page: radial-gradient(120% 40% at 0% 0%,#F9D6E5 0%,rgba(249,214,229,0) 60%),radial-gradient(90% 40% at 100% 30%,#E6DCFB 0%,rgba(230,220,251,0) 60%),radial-gradient(100% 40% at 30% 100%,#FCE3D8 0%,rgba(252,227,216,0) 60%),#FAF7FB;
  --lk-ink: #24222B; --lk-seal: #D9607F; --lk-sealink: #FFFFFF;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --lg-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(46,43,68,.78),rgba(30,29,46,.66));
  --lg-border: 1px solid rgba(255,255,255,.18);
  --lg-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(255,255,255,.06),0 12px 28px rgba(0,0,0,.42),0 1px 3px rgba(0,0,0,.3);
  --lg-pink-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 50%),linear-gradient(180deg,rgba(150,52,92,.9),rgba(116,36,72,.9));
  --lg-pink-border: 1px solid rgba(255,255,255,.22); --lg-pink-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 14px 30px rgba(0,0,0,.42); --lg-pink-ink: #FFE6EE;
  --lg-pill-bg: radial-gradient(130% 100% at 25% 0%,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 55%),linear-gradient(180deg,rgba(150,52,92,.92),rgba(116,36,72,.92));
  --lg-pill-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 4px 12px rgba(0,0,0,.35);
  --lg-lilac-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(66,52,110,.8),rgba(40,34,70,.7));
  --lg-peach-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(104,62,46,.8),rgba(64,40,34,.7));
  --ij-ink: var(--ink); --ij-muted: var(--muted); --ij-pink-ink: #FFB8CF; --ij-card: var(--surface); --ij-card-line: var(--line); --ij-soft: var(--soft); --ij-chip: #2E2B44; --ij-lockic: #B4B0C8;
  --ij-good: #8FE0BC; --ij-good-bg: #173A2C; --ij-care: #FFB48F; --ij-care-bg: #45261A; --ij-try: #A9C3FF; --ij-try-bg: #1E2C4E;
  --ij-page: var(--bg); --lk-ink: #F3F1F7; --lk-seal: #F49DB5; --lk-sealink: #17161D; } }
:root[data-theme="dark"] {
  --lg-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(46,43,68,.78),rgba(30,29,46,.66));
  --lg-border: 1px solid rgba(255,255,255,.18);
  --lg-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(255,255,255,.06),0 12px 28px rgba(0,0,0,.42),0 1px 3px rgba(0,0,0,.3);
  --lg-pink-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 50%),linear-gradient(180deg,rgba(150,52,92,.9),rgba(116,36,72,.9));
  --lg-pink-border: 1px solid rgba(255,255,255,.22); --lg-pink-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 14px 30px rgba(0,0,0,.42); --lg-pink-ink: #FFE6EE;
  --lg-pill-bg: radial-gradient(130% 100% at 25% 0%,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 55%),linear-gradient(180deg,rgba(150,52,92,.92),rgba(116,36,72,.92));
  --lg-pill-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 4px 12px rgba(0,0,0,.35);
  --lg-lilac-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(66,52,110,.8),rgba(40,34,70,.7));
  --lg-peach-bg: radial-gradient(130% 100% at 20% 0%,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 52%),linear-gradient(180deg,rgba(104,62,46,.8),rgba(64,40,34,.7));
  --ij-ink: var(--ink); --ij-muted: var(--muted); --ij-pink-ink: #FFB8CF; --ij-card: var(--surface); --ij-card-line: var(--line); --ij-soft: var(--soft); --ij-chip: #2E2B44; --ij-lockic: #B4B0C8;
  --ij-good: #8FE0BC; --ij-good-bg: #173A2C; --ij-care: #FFB48F; --ij-care-bg: #45261A; --ij-try: #A9C3FF; --ij-try-bg: #1E2C4E;
  --ij-page: var(--bg); --lk-ink: #F3F1F7; --lk-seal: #F49DB5; --lk-sealink: #17161D; }

body { background: var(--ij-page); background-attachment: fixed; }
.app-shell.app { background: transparent; }
/* 머리줄: 로고(lockup) + 유리 원형 버튼 */
.brand-lockup { height: 30px; width: auto; display: block; }
.brand-lockup .lk-ink { fill: var(--lk-ink); }
.brand-lockup .lk-seal { fill: var(--lk-seal); } .brand-lockup .lk-sealink { fill: var(--lk-sealink); }
.app-shell .topbar .topbar-actions { display: flex; gap: 8px; margin-left: auto; }
.app-shell .topbar .icon-button { width: 44px; height: 44px; min-height: 44px; border-radius: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ij-ink); background: var(--lg-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-border); box-shadow: var(--lg-shadow); }
/* 아래 탭: 떠 있는 유리 알약 네 칸 */
.app-shell { --nav-h: 66px; }
.app-shell main { padding-bottom: calc(var(--nav-h) + 44px + env(safe-area-inset-bottom, 0px)); }
.app-shell aside.nav:not(#_) { left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); height: var(--nav-h); padding: 6px; border: var(--lg-border); border-top: var(--lg-border); border-radius: 33px;
  background: var(--lg-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-shadow); max-width: 448px; margin: 0 auto; }
@media (min-width: 768px) { .app-shell aside.nav:not(#_) { left: 50%; right: auto; width: calc(100% - 32px); transform: translateX(-50%); } }
.app-shell .screen-nav.nav-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; height: 100%; max-width: none; }
.app-shell .screen-nav.nav-inner button { min-height: 0; height: 100%; border-radius: 27px; gap: 1px; font-size: 0.875rem; font-weight: 500; color: var(--ij-muted); }
.app-shell .screen-nav.nav-inner button[aria-current="page"] { color: var(--ij-pink-ink); font-weight: 700; background: var(--lg-pill-bg); box-shadow: var(--lg-pill-shadow); }
.app-shell .screen-nav .nav-ic { width: auto; height: 22px; background: none !important; color: inherit !important; }
.app-shell .screen-nav .nav-ic svg { width: 20px; height: 20px; stroke: currentColor !important; }
.screen-nav .nav-dot { fill: none; } .screen-nav button[aria-current="page"] .nav-dot { fill: currentColor; stroke: none; }
body[data-share-mode="true"] .app-shell .screen-nav.nav-inner { grid-template-columns: 1fr; }

/* 공통 조각 */
.ij-card { background: var(--ij-card); border: 1px solid var(--ij-card-line); border-radius: 24px; padding: 20px 18px; color: var(--ij-ink); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ij-soon { display: inline-flex; align-items: center; border-radius: 12px; padding: 2px 10px; font-size: 0.875rem; font-weight: 700; color: var(--ij-muted); background: var(--ij-chip); white-space: nowrap; font-family: var(--body); }
.ij-link { align-self: flex-start; border: 0; background: none; padding: 4px 0; min-height: 44px; font-size: 0.875rem; font-weight: 700; color: var(--ij-pink-ink); text-align: left; }
.ij-glass { min-height: 48px; border-radius: 24px; font-size: 0.9375rem; font-weight: 500; color: var(--ij-ink); background: var(--lg-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-border); box-shadow: var(--lg-shadow); }
.ij-ic { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--ij-lockic); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ij-chev { font-size: 1.125rem; color: var(--ij-muted); }
.ij-sec-title { margin: 10px 0 0 4px; font-family: var(--body); font-size: 1.0625rem; font-weight: 700; color: var(--ij-ink); }
.ij-seg { min-height: 54px; border-radius: 27px; padding: 5px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  background: var(--lg-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-border); box-shadow: var(--lg-shadow); }
.ij-seg button { border: 0; border-radius: 22px; min-height: 44px; font-size: 0.9375rem; font-weight: 500; color: var(--ij-muted); background: transparent; padding: 0 4px; min-width: 0; }
.ij-seg button[aria-pressed="true"] { background: var(--lg-pill-bg); color: var(--ij-pink-ink); font-weight: 700; box-shadow: var(--lg-pill-shadow); }

/* 첫 화면: 입구 세 개 */
.mirror-intro.ij-start { min-height: calc(100dvh - 190px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 8px 24px; text-align: center; }
.ij-start-art .ij-orb { width: 146px; height: 146px; display: block; }
.ij-start h1.ij-tagline { margin: 0 0 14px; font-family: var(--display); font-size: 1.3125rem; font-weight: 400; color: #7A6B86; }
:root[data-theme="dark"] .ij-start h1.ij-tagline { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ij-start h1.ij-tagline { color: var(--muted); } }
.ij-tagline .ij-comma { color: #E0749A; }
.ij-entry { width: 100%; min-height: 78px; border-radius: 26px; padding: 12px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
  color: var(--ij-ink); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-border); box-shadow: var(--lg-shadow); }
.ij-entry b { font-size: 1.125rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ij-entry > span { font-size: 0.875rem; color: var(--ij-muted); }
.ij-entry.ij-entry-main { background: var(--lg-pink-bg); border: var(--lg-pink-border); box-shadow: var(--lg-pink-shadow); color: var(--lg-pink-ink); }
.ij-entry.ij-entry-main > span { color: var(--lg-pink-ink); }
.ij-entry.ij-entry-lilac { background: var(--lg-lilac-bg); } .ij-entry.ij-entry-peach { background: var(--lg-peach-bg); }
.ij-start-note { margin-top: 4px; font-size: 0.875rem; color: var(--ij-muted); }

/* 나 */
.ij-home { gap: 14px; }
.ij-home .ij-who { min-height: 48px; border-radius: 24px; background: var(--ij-card); border: 1px solid var(--ij-card-line); padding: 0 6px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ij-home .ij-who .mirror-who { font-size: 0.875rem; color: var(--ij-ink); min-width: 0; overflow-wrap: anywhere; }
.ij-home .ij-who .text-btn { min-height: 44px; padding: 0 12px; font-size: 0.875rem; font-weight: 700; color: var(--ij-pink-ink); }
.ij-me { flex-direction: row; align-items: center; gap: 12px; padding: 16px 16px 16px 10px; }
.ij-me-mirror { position: relative; width: 124px; height: 112px; flex: 0 0 auto; border: 0; padding: 0; background: none; border-radius: 20px; }
.ij-me-orb { position: absolute; right: 0; top: 0; width: 92px; height: 92px; }
.ij-me-beast { position: absolute; left: 0; bottom: 0; height: 84px; width: auto; max-width: 100px; object-fit: contain; }
.ij-me-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ij-src { font-size: 0.875rem; color: var(--ij-muted); }
.ij-me-line { font-family: var(--display); font-size: 1.125rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.ij-me-line.muted { font-family: var(--body); font-size: 0.9375rem; font-weight: 400; color: var(--ij-muted); }
.ij-sys-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ij-badge { border-radius: 12px; padding: 5px 12px; font-size: 0.875rem; font-weight: 700; color: var(--sys-ink, var(--ij-ink)); background: var(--sys-tint, var(--ij-chip)); }
.ij-topic { min-height: 40px; border-radius: 20px; padding: 0 14px; font-size: 0.875rem; color: var(--ij-ink); background: var(--lg-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-border); box-shadow: var(--lg-shadow); }
.ij-card h3.ij-headline { font-family: var(--display); font-size: 1.375rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.ij-card .ij-headline.muted { font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--ij-muted); }
.ij-rows { display: flex; flex-direction: column; gap: 10px; }
.ij-row { width: 100%; border: 0; border-radius: 16px; background: var(--ij-soft); padding: 14px; display: flex; gap: 12px; align-items: flex-start; text-align: left; color: var(--ij-ink); min-width: 0; }
.ij-tag { flex: 0 0 auto; min-width: 58px; text-align: center; border-radius: 10px; padding: 3px 6px; font-size: 0.875rem; font-weight: 700; line-height: 1.5; }
.ij-tag.good { color: var(--ij-good); background: var(--ij-good-bg); } .ij-tag.care { color: var(--ij-care); background: var(--ij-care-bg); } .ij-tag.try { color: var(--ij-try); background: var(--ij-try-bg); }
.ij-row-t { font-size: 0.9375rem; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.ij-card > .small { font-size: 0.875rem; color: var(--ij-muted); }
.ij-evidence { min-height: 52px; border-radius: 16px; border: 1px solid var(--ij-card-line); background: var(--ij-card); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.9375rem; color: var(--ij-ink); text-align: left; }
.ij-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ij-acts:has(> :only-child) { grid-template-columns: 1fr; }
.ij-full { gap: 12px; }
.ij-full-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ij-full-head h3 { font-family: var(--body); font-size: 1.125rem; font-weight: 700; }
.ij-lock { display: inline-flex; align-items: center; gap: 4px; border-radius: 12px; padding: 3px 10px; font-size: 0.875rem; font-weight: 700; color: var(--ij-muted); background: var(--ij-chip); white-space: nowrap; }
.ij-lock .ij-ic { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; }
.ij-preview { border-radius: 16px; background: var(--ij-soft); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ij-preview-k { font-size: 0.875rem; font-weight: 700; color: var(--ij-lockic); }
.ij-preview-t { font-family: var(--display); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.ij-preview .small { font-size: 0.875rem; color: var(--ij-muted); }
.ij-scope { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ij-scope li { min-height: 50px; border-bottom: 1px solid var(--ij-chip); padding: 6px 2px; display: flex; align-items: center; gap: 10px; }
.ij-scope li span { font-size: 0.9375rem; flex: 1 1 auto; min-width: 0; }
.ij-scope li small { font-size: 0.875rem; color: var(--ij-muted); text-align: right; }
.ij-items { min-height: 54px; border: 0; background: transparent; padding: 0 2px; display: flex; align-items: center; gap: 10px; color: var(--ij-ink); text-align: left; }
.ij-items b { font-size: 0.9375rem; flex: 1 1 auto; } .ij-items > span { font-size: 1.125rem; color: var(--ij-muted); }
.ij-pay { min-height: 56px; border-radius: 28px; font-size: 1rem; font-weight: 700; color: var(--lg-pink-ink); background: var(--lg-pink-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-pink-border); box-shadow: var(--lg-pink-shadow); }
.ij-card .ij-pay-note { margin-top: -2px; text-align: center; line-height: 1.6; }
.ij-overlap { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; }
.ij-overlap-t { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.ij-overlap-t b { font-size: 0.9375rem; } .ij-overlap-t span { font-size: 0.875rem; color: var(--ij-muted); line-height: 1.5; }
.ij-rings { width: 40px; height: 28px; flex: 0 0 auto; } .ij-rings circle { fill: none; stroke-width: 1.8; }
.ij-rings .r-saju { stroke: var(--i-saju); } .ij-rings .r-western { stroke: var(--i-western); }
.ij-home .mirror-disclaimer { margin: 6px 4px 0; font-size: 0.875rem; line-height: 1.6; color: var(--ij-muted); text-align: center; }

/* 뽑기 — optional question, method and primary action stay together. */
.ij-draw { gap: 14px; }
.ij-draw-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; }
.ij-draw-head h1.lead { font-size: 1.5rem; grid-column: 1; }
.ij-draw-head > .muted { font-size: 0.875rem; grid-column: 1; }
.ij-draw-head > button { grid-column: 2; grid-row: 1 / 3; min-height: 44px; }
.ij-step { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ij-step-t { font-size: 1rem; font-weight: 700; color: var(--ij-ink); }
.ij-ask { border-radius: 18px; border: 1px solid var(--ij-card-line); background: var(--ij-card); padding: 12px 14px; font-size: 1rem; line-height: 1.5; color: var(--ij-ink); resize: vertical; width: 100%; min-height: 50px; }
.ij-step .small, .ij-desc { font-size: 0.875rem; color: var(--ij-muted); line-height: 1.5; }
.ij-question-more > summary { min-height: 44px; display: flex; align-items: center; font-size: 0.875rem; color: var(--ij-pink-ink); cursor: pointer; }
.ij-question-more[open] .q-row { margin-top: 4px; }
.ij-drawcard .deck { height: 60px; width: 44px; margin: 0 auto; }
.ij-drawcard .deck i { border-radius: 7px; }
.ij-drawcard > h2 { font-size: 1.125rem; }
.btn.primary.ij-cta { width: 100%; min-height: 58px; border-radius: 29px; color: var(--lg-pink-ink); background: var(--lg-pink-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-pink-border); box-shadow: var(--lg-pink-shadow); }
.ij-draw .btn.primary.ij-cta { min-height: 52px; }
.ij-draw-note { text-align: center; font-size: 0.875rem; color: var(--ij-muted); }

/* 기록 */
.ij-notes { gap: 14px; }
.ij-notes > h1.lead { font-size: 1.625rem; }
.ij-notes .ij-list, .ij-notes .ij-people, .ij-notes .mirror-reaction-summary { border-radius: 24px; }
.ij-people { display: flex; flex-direction: column; gap: 12px; }
.ij-people-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ij-people-head h2 { font-family: var(--body); font-size: 1rem; }
.ij-person { min-height: 62px; border: 0; border-radius: 18px; background: var(--ij-soft); padding: 8px 14px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ij-ink); }
.ij-avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 20px; background: var(--lg-pill-bg); color: var(--ij-pink-ink); font-size: 0.9375rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ij-person-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ij-person-t b { font-size: 0.9375rem; } .ij-person-t .small { font-size: 0.875rem; color: var(--ij-muted); overflow-wrap: anywhere; }
.ij-soonrow { min-height: 52px; border-radius: 18px; border: 1px solid var(--ij-card-line); padding: 6px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9375rem; }
.ij-notes .ij-list h2 { font-family: var(--body); font-size: 1rem; }
.ij-notes .ij-list > .muted { font-size: 0.875rem; color: var(--ij-muted); line-height: 1.5; }

/* 입력 확인: 확인 중에는 '맞아요, 보기'·'고칠게요' 한 쌍만 */
.bf-confirm { display: flex; flex-direction: column; gap: 10px; }
.bf-confirm[hidden] { display: none; }
.bf-confirm-title { font-size: 1.25rem; font-weight: 700; }
.bf-confirm-place { font-size: 0.875rem; color: var(--ij-muted); line-height: 1.6; }

/* 전체 해석에 들어 있는 것: ✓ 다 들어 있음 · ◐ 계산값·조건까지 · 준비 중은 표시 없이 따로 */
.mirror-scope-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.875rem; color: var(--ij-muted); }
.mirror-scope-legend .ok::before { content: '✓ '; color: var(--ij-good); font-weight: 700; }
.mirror-scope-legend .half::before { content: '◐ '; color: var(--ij-lockic); }
.mirror-scope li[data-status="partial"]::before { content: '◐'; color: var(--ij-lockic); }
.mirror-scope li:is([data-status="input_required"],[data-status="not_applicable"])::before { content: '·'; color: var(--ij-muted); }
.mirror-scope-prep { border-radius: 16px; background: var(--ij-soft); padding: 14px 16px; margin-top: 4px; }
.mirror-scope-prep h4 { margin: 0 0 6px; font-size: 0.875rem; }
.mirror-scope-prep .mirror-scope li { color: var(--ij-muted); }
.mirror-scope-prep .mirror-scope li::before { content: none; }
.mirror-pay-soon { margin-top: 8px; min-height: 56px; border-radius: 28px; border: 1.5px dashed var(--ij-card-line); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; font-size: 1rem; color: var(--ij-muted); }
.mirror-pay-soon .mirror-soon { border-radius: 12px; padding: 2px 10px; font-size: 0.875rem; font-weight: 700; background: var(--ij-chip); }
/* 읽는 글자 14px 아래 없음: sheet hints and fold titles that were smaller */
:root details.pt > summary .why-hint, :root details.sess > summary, :root :is(.v35-gongmang-more,.v35-saeun) > summary, :root .mirror-scope li small { font-size: 0.875rem; }
/* 머리줄: 유리 면의 사방 테두리(안쪽 테두리 그림자·무지개 테두리)는 빼고 바탕만 남긴다 */
.app-shell header.topbar:not(#_) { box-shadow: none; border: 0; }
.app-shell header.topbar:not(#_)::before { content: none; }
/* glass.css's :is(…, dialog#settings, …) carries id weight; :not(#_) gives these v14 rules the same weight without new markup. */
.app-shell aside.nav:not(#_)::before { content: none; }
@media (prefers-reduced-transparency: reduce) { .app-shell aside.nav:not(#_) { background: rgb(var(--glass-base)); -webkit-backdrop-filter: none; backdrop-filter: none; } }
:root[data-reduce-transparency='true'] .app-shell aside.nav:not(#_) { background: rgb(var(--glass-base)); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* 입력 폼의 주 버튼('저장하고 보기'·'맞아요, 보기')은 v14 분홍 유리 */
form.profile-wheels .btn.primary { color: var(--lg-pink-ink); background: var(--lg-pink-bg); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border: var(--lg-pink-border); box-shadow: var(--lg-pink-shadow); border-radius: 28px; min-height: 56px; }
/* 입력 확인: 시안처럼 두 줄 상자 */
.bf-confirm-box { border-radius: 16px; background: var(--ij-soft); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.bf-confirm-box span { font-size: 1.0625rem; font-weight: 500; color: var(--ij-ink); overflow-wrap: anywhere; }
.bf-confirm-warn { font-size: 0.875rem; color: var(--ij-muted); }

/* v19 · sentence evidence and full-height natal charts. Existing v14 glass
   tokens above remain the control material in both light and dark modes. */
.ij-sentence { border-radius:16px; background:var(--ij-paper,var(--surface)); border:1px solid var(--line); min-width:0; }
.ij-sentence.is-open { box-shadow:inset 0 0 0 1.5px var(--c2); }
.ij-sentence .ij-row { width:100%; margin:0; border:0; border-radius:16px; background:transparent; }
.ij-row-chevron { margin-left:auto; font-size:1.125rem; color:var(--muted); flex-shrink:0; }
.ij-sentence.is-open .ij-row-chevron { transform:rotate(180deg); }
.ij-evidence-slot[hidden] { display:none; }
.ij-inline-evidence { display:flex; flex-direction:column; gap:10px; margin:0 14px 14px; padding-top:12px; border-top:1px solid var(--line); min-width:0; overflow-wrap:anywhere; }
.ij-inline-evidence p { margin:0; font-size:0.9375rem; line-height:1.6; }
.ij-inline-evidence .ij-evidence-title { font-size:0.875rem; color:var(--muted); }
.ij-inline-evidence .pm { gap:0; }
.ij-inline-evidence .pm-grid { gap:6px; }
.ij-inline-evidence .pm-col { gap:6px; }
.ij-inline-evidence .pm-c { pointer-events:none; box-shadow:none; transform:none; padding:8px 2px; }
.ij-inline-evidence .pm-c b { font-size:1.375rem; }
.ij-inline-evidence .pm-c small,.ij-inline-evidence .pm-pl { font-size:0.875rem; }
.ij-inline-evidence .pm .pm-els,.ij-inline-evidence .pm>.chart-cap { display:none; }
.ij-inline-evidence .ij-open-chart { align-self:flex-start; min-height:44px; }
.ij-source-spots { display:flex; gap:8px; flex-wrap:wrap; }
.ij-source-spot { display:flex; flex-direction:column; gap:4px; padding:10px 12px; border-radius:12px; border:1px solid var(--c2); background:var(--soft); font-size:0.875rem; }
.ij-topic-empty { padding:18px; border-radius:16px; border:1px dashed var(--line); }
.v35-dialog.v19-chart-dialog { width:100%; max-width:620px; height:100dvh; max-height:100dvh; margin:0 auto; inset:0; padding:0; border:0; border-radius:0; overflow:auto; background:var(--surface); }
.v19-chart-dialog>.dialog-heading { position:sticky; top:0; z-index:12; margin:0; padding:12px 16px; background:var(--surface); border-bottom:1px solid var(--line); }
.v19-chart-dialog>.dialog-heading h2 { font-size:1.125rem; }
.v19-chart { padding:16px; min-width:0; gap:16px; font-size:0.9375rem; }
.v19-chart .v35-chart-sheet-head h2 { font-size:1.375rem; margin:0; }
.v19-chart-content { display:flex; flex-direction:column; gap:16px; min-width:0; }
.v19-reading-pin { position:sticky; top:68px; z-index:10; padding:10px 14px; border-radius:18px; background:var(--surface); box-shadow:inset 0 0 0 1.5px var(--c2),0 4px 12px #0001; }
.v19-reading-pin p { margin:5px 0; font-size:0.9375rem; line-height:1.6; }
.v19-pin-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.v19-pin-head b { font-size:0.875rem; color:var(--muted); }
.v19-pin-head .icon-btn { min-height:36px; width:44px; background:transparent; font-size:1.375rem; box-shadow:none; border:0; }
.v19-chart .chart-cap,.v19-chart small,.v19-chart .mm-c b { font-size:0.875rem; line-height:1.5; }
.v19-chart p { margin:6px 0; }
.v19-chart h3 { font-size:1.125rem; margin:0 0 10px; }
.v19-chart h4 { font-size:0.9375rem; margin:16px 0 8px; }
.v19-chart button { font-family:var(--body); font-size:0.875rem; overflow-wrap:anywhere; }
.v19-chart-overview { display:flex; flex-direction:column; gap:12px; }
.v19-current-decade { padding:10px 12px; border-radius:12px; color:var(--i-ziwei); background:var(--t-ziwei); font-size:0.875rem; }
.v19-view-modes { display:flex; justify-content:flex-end; gap:6px; }
.v19-view-modes button { min-height:40px; min-width:76px; }
.v19-view-modes [aria-pressed=true],.v19-body-buttons [aria-pressed=true] { background:var(--lg-pill-bg); box-shadow:var(--lg-pill-shadow); color:var(--lg-pink-ink); }
.v19-chart .mm-grid { grid-template-rows:repeat(4,minmax(150px,1fr)); gap:4px; aspect-ratio:auto; }
.v19-chart .mm-c { z-index:2; justify-content:flex-start; align-items:flex-start; padding:7px 4px; gap:3px; text-align:left; border-radius:12px; overflow:visible; }
.v19-chart .mm-c .mm-name { color:var(--ink); font-size:0.875rem; }
.v19-chart .mm-c.is-ming .mm-name { color:var(--i-ziwei); font-weight:800; }
.mm-star { display:block; font-size:0.875rem; line-height:1.45; overflow-wrap:anywhere; }
.mm-star-major { font-weight:700; }
.mm-star-extra { color:var(--muted); }
.mm-bright { margin-left:2px; font-size:0.875rem; }
.mm-hua { display:inline-block; margin-left:2px; padding:0 3px; border-radius:4px; background:var(--t-ziwei); color:var(--i-ziwei); font-size:0.875rem; font-weight:700; }
.mm-hua.is-held { border:1px dashed currentColor; }
.v19-chart .mm-age { margin-top:auto; }
.mm-now { color:var(--i-ziwei); font-weight:700; }
.v19-chart .mm-center { position:relative; z-index:3; min-width:0; padding:12px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line),0 4px 14px #0001; }
.v19-chart .mm-center b { font-size:1.125rem; }
.v19-chart .mm-center p { font-size:0.875rem; line-height:1.6; }
.v19-chart .mm-lines { z-index:1; }
.v19-selected-detail,.v19-elements,.v19-aspects { padding:16px; border:1px solid var(--line); border-radius:20px; background:var(--surface); min-width:0; }
.v19-fact-row { display:grid; grid-template-columns:minmax(54px,auto) minmax(0,1fr); gap:10px; padding:8px 0; border-bottom:1px solid var(--line); font-size:0.875rem; line-height:1.6; }
.v19-fact-row>b { color:var(--muted); }
.v19-chart-materials { margin-top:14px; font-size:0.875rem; }
.v19-chart-materials>summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:700; }
.v19-body-buttons { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.v19-body-buttons button { min-width:0; min-height:44px; padding:6px 2px; font-size:0.875rem; }
.v19-chart .wm { width:100%; }
.v19-chart .wm-svg { width:100%; max-width:440px; }
.v19-chart .wm-svg text { font-size:1.25rem; }
.v19-chart .wm-svg .wh.is-sel text { fill:var(--lg-pink-ink); stroke:var(--c2); stroke-width:.5; paint-order:stroke; font-weight:900; }
.wm-aspect { stroke:var(--i-western); stroke-width:1.5; opacity:.6; vector-effect:non-scaling-stroke; }
.wm-aspect.aspect-90,.wm-aspect.aspect-180 { stroke:var(--c2); }
.wm-aspect.aspect-60 { stroke-dasharray:5 4; }
.wm-aspect.is-lit { opacity:1; stroke-width:2.5; }
.wm-aspect.is-dim { opacity:.12; }
.wm-svg .wb.is-dim { opacity:.35; }
.wm-svg .wb.is-lit circle { stroke:var(--c3); stroke-width:2.5; }
.wm-svg .wb.is-sel { opacity:1; }
.v19-aspect-link,.v19-element-row,.v19-aspect-row { width:100%; min-height:48px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); text-align:left; padding:10px 0; font-size:0.875rem; line-height:1.6; }
.v19-aspect-row[aria-expanded=true],.v19-element-row[aria-expanded=true] { color:var(--i-western); font-weight:700; }
.v19-aspect-meaning,.v19-element-members { padding:10px; border-radius:12px; background:var(--soft); font-size:0.875rem; line-height:1.6; }
.v19-aspects-more { width:100%; min-height:44px; margin-top:12px; }
@media(max-width:350px){.v19-chart{padding:12px}.v19-chart .mm-center{padding:8px}.v19-chart .mm-c{padding:6px 3px}.v19-selected-detail,.v19-elements,.v19-aspects{padding:12px}.v19-body-buttons{gap:4px}.v19-chart .mm-grid{grid-template-rows:repeat(4,minmax(150px,1fr))}}
.v19-chart .wm-svg g text,.v19-chart .wm-svg .wm-mc { font-size:1.25rem; }
.wm-svg .v19-house-ring { fill:var(--surface); stroke:var(--c2); stroke-width:2; }
.v19-chart .v19-chart-materials>summary { font-size:0.875rem; }

/* v19 compact chart: all source records remain in the selected-palace sheet. */
.v35-chart-sheet.v19-chart .mm-grid { grid-template-rows:repeat(4,minmax(112px,auto)); }
.v35-chart-sheet.v19-chart .mm-c { padding:5px 3px; gap:2px; min-height:112px; }
.v35-chart-sheet.v19-chart .mm-cell-head { width:100%; display:flex; justify-content:space-between; align-items:baseline; gap:2px; line-height:1.2; }
.v35-chart-sheet.v19-chart .mm-cell-head .mm-name,.v35-chart-sheet.v19-chart .mm-cell-head .mm-branch { font-size:0.875rem; line-height:1.2; white-space:nowrap; }
.v35-chart-sheet.v19-chart .mm-cell-tags { display:flex; align-items:baseline; gap:2px; }
.v35-chart-sheet.v19-chart .mm-star-list { display:flex; flex-wrap:wrap; align-content:flex-start; width:100%; column-gap:3px; row-gap:1px; }
.v35-chart-sheet.v19-chart .mm-star { font-size:0.875rem; line-height:1.15; white-space:nowrap; }
.v35-chart-sheet.v19-chart .mm-star-major { flex-basis:100%; }
.v35-chart-sheet.v19-chart .mm-bright { margin-left:0; }
.v35-chart-sheet.v19-chart .mm-hua { padding:0 1px; margin-left:0; }
.v35-chart-sheet.v19-chart .mm-age { width:100%; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:0; margin-top:auto; }
.v35-chart-sheet.v19-chart .mm-age small { font-size:0.875rem; line-height:1.2; white-space:nowrap; }
.v35-chart-sheet.v19-chart .mm-now { font-weight:700; }
.v35-chart-sheet.v19-chart .mm-c.is-now { box-shadow:inset 0 -3px 0 var(--c2); }
.v35-chart-sheet.v19-chart .mm-center { padding:10px; min-height:0; }
.v35-chart-sheet.v19-chart .mm-center p { line-height:1.45; }
.v35-chart-sheet.v19-chart .mm-lines { display:none; }
.v19-chart-dialog { overflow-anchor:none; }
.v19-reading-pin { overflow-anchor:none; }
.v19-reading-pin.is-compact { display:grid; grid-template-columns:minmax(0,1fr) 40px; align-items:center; gap:0; padding:3px 8px; }
.v19-reading-pin.is-compact .v19-pin-head { display:contents; }
.v19-reading-pin.is-compact .v19-pin-head b,.v19-reading-pin.is-compact>.chart-cap { display:none; }
.v19-reading-pin.is-compact .v19-pin-text { grid-column:1; grid-row:1; min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.875rem; }
.v19-reading-pin.is-compact .icon-btn { grid-column:2; grid-row:1; width:40px; min-height:40px; }
.v35-chart-sheet.v19-chart .wm-svg text,.v35-chart-sheet.v19-chart .wm-svg .wh text,.v35-chart-sheet.v19-chart .wm-svg .wa text { font-size:1.25rem; }
.v35-chart-sheet.v19-chart .wm-svg .wh text,.v35-chart-sheet.v19-chart .wm-svg .wa text,.v35-chart-sheet.v19-chart .wm-svg .wm-mc { font-size:0.9375rem; }
.v35-chart-sheet.v19-chart .wm-svg .wb text { font-size:1.125rem; }
.wm-marker-leader { stroke:var(--muted); stroke-width:1; opacity:.5; pointer-events:none; vector-effect:non-scaling-stroke; }
@media(max-width:350px){.v35-chart-sheet.v19-chart .mm-grid{grid-template-rows:repeat(4,minmax(112px,auto))}.v35-chart-sheet.v19-chart .mm-c{padding:5px 3px}}

/* Launch polish: opaque glyph discs keep every supplied angle behind the star. */
.v35-chart-sheet.v19-chart .wm-svg .wb.is-dim { opacity:1; }
.v35-chart-sheet.v19-chart .wm-svg .wb.is-dim:not(.is-sel) circle { fill:var(--surface); stroke:color-mix(in srgb,var(--i-western) 35%,var(--surface)); }
.v35-chart-sheet.v19-chart .wm-svg .wb.is-dim:not(.is-sel) text { fill:color-mix(in srgb,var(--i-western) 55%,var(--surface)); }
.wm-axis-label-leader { stroke:var(--muted); stroke-width:1; opacity:.5; pointer-events:none; vector-effect:non-scaling-stroke; }
.ij-swatch { -webkit-backdrop-filter:var(--lg-blur); backdrop-filter:var(--lg-blur); }
.swatches .ij-swatch-sunset { background:var(--lg-pink-bg); box-shadow:var(--lg-pink-shadow); }
.swatches .ij-swatch-dawn { background:var(--lg-lilac-bg); box-shadow:var(--lg-shadow); }
.swatches .ij-swatch-spring { background:var(--lg-peach-bg); box-shadow:var(--lg-shadow); }

/* ── v60 READ 갈래: D1·D2 결과 틀, B4 체계별 목록, ME4 근거 줄, FullReading 근거 안내 ── */
.v60-draw-question { margin: 4px 0 10px; font-family: 'Gowun Batang', serif; font-size: 1.125rem; font-weight: 700; line-height: 1.5; color: var(--ij-ink); overflow-wrap: anywhere; }
.v60-draw-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; color: var(--ij-muted); }
.v60-draw-badge { padding: 2px 8px; border-radius: 999px; background: var(--ij-chip); color: var(--ij-ink); font-weight: 600; }
.v60-deeper { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--ij-card-line); border-radius: 16px; background: var(--ij-card); display: grid; gap: 6px; min-width: 0; }
.v60-deeper-head { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.v60-paid { padding: 1px 8px; border-radius: 999px; background: var(--ij-chip); color: var(--ij-pink-ink); font-size: 0.75rem; font-weight: 700; }
.v60-deeper-scope { margin: 0; font-size: 0.84375rem; line-height: 1.6; color: var(--ij-ink); overflow-wrap: anywhere; }
.v60-deeper-state { margin: 0; color: var(--ij-muted); }
.v60-deeper-open > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.875rem; }
.v60-deeper-sec { display: grid; gap: 4px; padding: 6px 0; }
.v60-deeper-sec h4, .v60-deeper-sec p { margin: 0; }
.iching-commentary-compare { display: grid; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ij-card-line); }
.iching-commentary-source { display: grid; gap: 2px; }
.iching-commentary-source p { margin: 0; }
.v60-b4 .mirror-scope-group { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--ij-card-line); }
.v60-b4 .mirror-scope-group h4 { margin: 2px 0 0; }
.v60-b4-name { padding: 10px 12px; border-radius: 12px; background: var(--ij-soft); }
.dialog-heading h2 .v60-sheet-sub { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--ij-muted); }
.v60-read-basis { margin: 4px 0 0; font-size: 0.8125rem; }
.v60-evidence-guide { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ij-soft); display: grid; gap: 4px; font-size: 0.84375rem; line-height: 1.6; }
.v60-evidence-guide p, .v60-evidence-guide b { margin: 0; }
.v19-full-terms { display: flex; flex-direction: column; gap: 8px; }
.v60-slot-state { color: var(--ij-muted); }

/* F3 로그인 시트: 시안처럼 공급자 버튼을 한 줄에 하나씩, '손님으로 둘게요'는 테두리 버튼 */
.mobile-account-sheet .btn { display: flex; width: 100%; margin: 8px 0; }
.mobile-account-sheet .mobile-account-cancel { background: transparent; }

/* CC 3차 READ: A1 전체 해석의 강점·조심·해 볼 것 전부 */
.v60-full-points { display: grid; gap: 10px; margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--ij-card-line); border-radius: 16px; background: var(--ij-card); }
.v60-full-point { display: grid; gap: 4px; }
.v60-full-point h4 { margin: 0; font-size: 0.8125rem; color: var(--ij-muted); }
.v60-full-point p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
/* B5: 카드 하나에 접힌 '근거 보기' 하나 */
.v60-evidence { margin: 10px 0 0; border-top: 1px solid var(--ij-card-line); }
.v60-evidence > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.875rem; color: var(--ij-muted); }
.v60-evidence[open] { display: grid; gap: 8px; padding-bottom: 8px; }
.v60-evidence-item, .v60-evidence-shared, .iching-unit-evidence { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; background: var(--ij-soft); }
.v60-evidence-for { margin: 0; font-weight: 700; font-size: 0.84375rem; overflow-wrap: anywhere; }
.v60-evidence-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 2px 8px; font-size: 0.84375rem; line-height: 1.55; }
.v60-evidence-row b { color: var(--ij-muted); font-weight: 600; }
.v60-evidence-row small { grid-column: 2; color: var(--ij-muted); }
.v60-evidence-note, .v60-evidence-missing { margin: 0; color: var(--ij-muted); }
@media (max-width: 360px) { .v60-evidence-row { grid-template-columns: 1fr; } .v60-evidence-row small { grid-column: 1; } }
/* F26: 타로 배열 고르기 · 지시 카드 */
.v60-spread-pick { display: flex; gap: 6px; margin: 4px 0 10px; }
.v60-spread-pick button { flex: 1 1 0; min-height: 44px; }
.v60-significator { display: grid; gap: 6px; margin: 4px 0 10px; font-size: 0.875rem; }
.v60-significator select { min-height: 44px; max-width: 100%; }
.v60-draw-spread, .v60-draw-significator { margin: 0 0 6px; color: var(--ij-muted); }
.slots.one { grid-template-columns: minmax(0, 1fr); }
.slots.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slots.many .slot { height: auto; min-height: 34px; padding: 4px 6px; text-align: center; line-height: 1.35; }
/* C7: 결제 전 잠긴 묶음은 이름 목록과 서버 안내만 */
.full-group-locked .full-locked-reason { margin: 8px 14px 0; }
.full-locked-names { margin: 8px 0 12px; padding: 0 14px 0 32px; display: grid; gap: 4px; font-size: 0.875rem; }
.full-locked-preview { margin: 2px 0 0; color: var(--ij-ink); font-size: 0.84375rem; line-height: 1.55; }
.full-locked-preview-label { color: var(--ij-muted); }
/* B5: 전체 자료 보기의 타로 카드 한 장에 접힌 근거 보기 하나 */
.system-card .v60-evidence .full-field h4 { margin: 8px 0 4px; }
/* 2부 15: 항목 상세의 새 원전 답(쉬운 문장 → 경우별 결과 → 근거 보기 하나) */
.source-answers { display: grid; gap: 10px; }
.source-answers > h3 { margin: 4px 0 0; font-size: 0.9375rem; }
.source-answer { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--ij-card-line, var(--line)); border-radius: 12px; }
.source-answer h4, .source-answer-row h5, .iching-commentary-comparison h5 { margin: 0; font-size: 0.875rem; }
.source-answer p, .source-answer-row p { margin: 0; overflow-wrap: anywhere; }
.source-answer-row { display: grid; gap: 4px; padding: 6px 0 6px 10px; border-left: 2px solid var(--ij-card-line, var(--line)); }
.source-answer-evidence-body { display: grid; gap: 8px; }
.iching-commentary-comparison .iching-commentary-source { display: grid; gap: 2px; margin: 4px 0; }
